diff --git a/packages/vant/src/text-ellipsis/README.md b/packages/vant/src/text-ellipsis/README.md index b9ae40cc4..b4d7ae36c 100644 --- a/packages/vant/src/text-ellipsis/README.md +++ b/packages/vant/src/text-ellipsis/README.md @@ -2,7 +2,7 @@ ### Intro -Display ellipsis for long text and support for expanding or collapsing text. Please upgrade to >= v4.1.0 before using this component. +Display ellipsis for long text and support for expanding or collapsing text. Please upgrade `vant` to >= v4.1.0 before using this component. ### Install diff --git a/packages/vant/src/text-ellipsis/README.zh-CN.md b/packages/vant/src/text-ellipsis/README.zh-CN.md index 6c9842e65..cbfeca801 100644 --- a/packages/vant/src/text-ellipsis/README.zh-CN.md +++ b/packages/vant/src/text-ellipsis/README.zh-CN.md @@ -2,7 +2,7 @@ ### 介绍 -对长文本进行省略,支持展开/收起。请升级到 >= 4.1.0 版本来使用该组件。 +对长文本进行省略,支持展开/收起。请升级 `vant` 到 >= 4.1.0 版本来使用该组件。 ### 引入 diff --git a/packages/vant/src/watermark/README.md b/packages/vant/src/watermark/README.md index b7c69b994..025d31c98 100644 --- a/packages/vant/src/watermark/README.md +++ b/packages/vant/src/watermark/README.md @@ -2,7 +2,7 @@ ### Intro -Add watermark for page. +Add specific text or patterns on the page as watermarks, which can be used to prevent information theft. Please upgrade `vant` to >= v4.2.0 before using this component. ### Install @@ -93,22 +93,22 @@ Use the `default slot` to pass HTML directly. Inline styles are supported, and s | Attribute | Description | Type | Default | | --- | --- | --- | --- | -| width | Watermark width | _number_ | 100 | -| height | Watermark height | _number_ | 100 | -| zIndex | Watermark's z-index | _number_ | 100 | +| width | Watermark width | _number_ | `100` | +| height | Watermark height | _number_ | `100` | +| zIndex | Watermark's z-index | _number_ | `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_ | - | -| fullPage | Whether to display the watermark in full screen | _boolean_ | true | -| gapX | Horizontal spacing between watermarks | _number_ | 0 | -| gapY | Vertical spacing between watermarks | _number_ | 0 | -| fontColor | Color of text watermark | _string_ | #dcdee0 | -| opacity | opacity of watermark | _number_ | 1 | +| fullPage | Whether to display the watermark in full screen | _boolean_ | `true` | +| gapX | Horizontal spacing between watermarks | _number_ | `0` | +| gapY | Vertical spacing between watermarks | _number_ | `0` | +| fontColor | Color of text watermark | _string_ | `#dcdee0` | +| opacity | opacity of watermark | _number_ | `1` | ### Slots | Attribute | Description | | --- | --- | -| default | Content of HTML watermark. Inline styles are supported, and self-closing tags are not supported. This slot is invalid if `content` or `image` is passed | +| default | Content of HTML watermark. Inline styles are supported, and self-closing tags are not supported. This slot is invalid if `content` or `image` props is passed | ### Types diff --git a/packages/vant/src/watermark/README.zh-CN.md b/packages/vant/src/watermark/README.zh-CN.md index db7725199..cf46d8757 100644 --- a/packages/vant/src/watermark/README.zh-CN.md +++ b/packages/vant/src/watermark/README.zh-CN.md @@ -2,7 +2,7 @@ ### 介绍 -页面上添加特定的文字或图案,可用于防止信息盗用 +在页面上添加特定的文字或图案作为水印,可用于防止信息盗用。请升级 `vant` 到 >= 4.2.0 版本来使用该组件。 ### 引入 @@ -30,7 +30,7 @@ app.use(Watermark); ### 自定义间隔 -通过 `gapX` `gapY` 属性来控制重复水印之间的间隔。 +通过 `gapX` 和 `gapY` 属性来控制多个重复水印之间的间隔。 ```html ('text'); @@ -35,23 +35,16 @@ const fullPage = ref(false);
+ + {{ t('textWatermark') }} + {{ t('textWatermark') }} - {{ t('imageWatermark') }} + {{ t('imageWatermark') }} +
- + {{ t('switch') }}