import type { ReactNode, CSSProperties } from 'react'; export interface WatermarkProps { zIndex?: number; rotate?: number; /** * 水印的宽度,content 的默认值为自身的宽度 * @default 120 */ width?: number; /** * 水印的高度,content 的默认值为自身的高度 * @default 64 */ height?: number; image?: string; content?: string | string[]; font?: { color?: string; fontSize?: number | string; fontWeight?: 'normal' | 'light' | 'weight' | number; fontStyle?: 'none' | 'normal' | 'italic' | 'oblique'; fontFamily?: string; }; style?: CSSProperties; className?: string; rootClassName?: string; /** * 水印之间的间距 * @default [100,100] */ gap?: [number, number]; /** *水印距离容器左上角的偏移量,默认为 gap/2 * @default [gap[0]/2,gap[1]/2] */ offset?: [number, number]; children?: ReactNode; }