mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
docs(Watermark): add props description (#11926)
This commit is contained in:
parent
93d51e85e5
commit
88b17474fa
@ -99,6 +99,7 @@ Use the `content` slot to pass HTML as watermark. Only supports inline styles, a
|
||||
| z-index | Watermark's z-index | _number \| string_ | `100` |
|
||||
| content | Text watermark content | _string_ | - |
|
||||
| image | Image watermark content. If `content` and `image` are passed at the same time, use the `image` watermark first | _string_ | - |
|
||||
| rotate | Watermark rotation angle | _number \| string_ | `-22` |
|
||||
| full-page | Whether to display the watermark in full screen | _boolean_ | `true` |
|
||||
| gap-x | Horizontal spacing between watermarks | _number_ | `0` |
|
||||
| gap-y | Vertical spacing between watermarks | _number_ | `0` |
|
||||
|
@ -99,6 +99,7 @@ app.use(Watermark);
|
||||
| z-index | 水印的 z-index | _number \| string_ | `100` |
|
||||
| content | 文字水印的内容 | _string_ | - |
|
||||
| image | 图片水印的内容,如果与 `content` 同时传入,优先使用图片水印 | _string_ | - |
|
||||
| rotate | 水印的旋转角度 | _number \| string_ | `-22` |
|
||||
| full-page | 水印是否全屏显示 | _boolean_ | `false` |
|
||||
| gap-x | 水印之间的水平间隔 | _number_ | `0` |
|
||||
| gap-y | 水印之间的垂直间隔 | _number_ | `0` |
|
||||
|
Loading…
x
Reference in New Issue
Block a user