跳到主要内容

show-watermark

<basic.show-watermark>provider

显示水印。

Examples​

Basic​

Playground

Mutiple Content​

Playground

custom style​

Playground

Image​

Playground

Custom container​

Playground

Definition​

Parameters​

#NameDescriptionType
1param_1WatermarkProps

Returns​

void

Type references​

WatermarkProps​

NameDescriptionTypeDefaultRequired
containerHTMLElement | string
contentstring | string[]
zIndexnumber
rotatenumber
widthnumber
heightnumber
imagestring
font{ color?: CanvasFillStrokeStyles["fillStyle"]; fontSize?: number | string; fontWeight?: "normal" | "light" | "weight" | number; fontStyle?: "none" | "normal" | "italic" | "oblique"; fontFamily?: string; textAlign?: CanvasTextAlign }
styleReact.CSSProperties
gap[number, number]
offset[number, number]