|
| 1 | +:: BASE_DOC :: |
| 2 | + |
| 3 | +## API |
| 4 | + |
| 5 | +### Watermark Props |
| 6 | + |
| 7 | +name | type | default | description | required |
| 8 | +-- | -- | -- | -- | -- |
| 9 | +style | Object | - | CSS(Cascading Style Sheets) | N |
| 10 | +custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N |
| 11 | +alpha | Number | 1 | \- | N |
| 12 | +content | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N |
| 13 | +height | Number | - | \- | N |
| 14 | +is-repeat | Boolean | true | \- | N |
| 15 | +line-space | Number | 16 | \- | N |
| 16 | +movable | Boolean | false | \- | N |
| 17 | +move-interval | Number | 3000 | \- | N |
| 18 | +offset | Array | - | Typescript:`Array<number>` | N |
| 19 | +removable | Boolean | true | \- | N |
| 20 | +rotate | Number | -22 | \- | N |
| 21 | +watermark-content | Object / Array | - | Typescript:`WatermarkText\|WatermarkImage\|Array<WatermarkText\|WatermarkImage>` | N |
| 22 | +width | Number | - | \- | N |
| 23 | +x | Number | - | \- | N |
| 24 | +y | Number | - | \- | N |
| 25 | +z-index | Number | - | \- | N |
| 26 | + |
| 27 | +### WatermarkText |
| 28 | + |
| 29 | +name | type | default | description | required |
| 30 | +-- | -- | -- | -- | -- |
| 31 | +font-color | String | rgba(0,0,0,0.1) | \- | N |
| 32 | +font-family | String | - | font-family configuration for watermark text | N |
| 33 | +font-size | Number | 16 | \- | N |
| 34 | +font-weight | String | normal | options: normal/lighter/bold/bolder | N |
| 35 | +text | String | - | \- | N |
| 36 | + |
| 37 | +### WatermarkImage |
| 38 | + |
| 39 | +name | type | default | description | required |
| 40 | +-- | -- | -- | -- | -- |
| 41 | +is-grayscale | Boolean | false | \- | N |
| 42 | +url | String | - | \- | N |
0 commit comments