From 61a340947ede410f3c2baf875a41ad3bd837bde6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E8=8F=9C=20Cai?= <1064425721@qq.com> Date: Sun, 10 Dec 2023 11:04:13 +0800 Subject: [PATCH] docs(image-preview): usage of Supplementing `className` (#12491) --- packages/vant/src/image-preview/README.md | 2 +- packages/vant/src/image-preview/README.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vant/src/image-preview/README.md b/packages/vant/src/image-preview/README.md index e4c3a420e..7a339625d 100644 --- a/packages/vant/src/image-preview/README.md +++ b/packages/vant/src/image-preview/README.md @@ -234,7 +234,7 @@ Vant exports following ImagePreview utility functions: | before-close | Callback function before close | _(action: number) => boolean \| Promise\_ | - | | close-on-popstate | Whether to close when popstate | _boolean_ | `true` | | close-on-click-overlay `v4.6.4` | Whether to close when overlay is clicked | _boolean_ | `true` | -| class-name | Custom className | _string \| Array \| object_ | - | +| class-name | Custom className (apply to Popup in image preview) | _string \| Array \| object_ | - | | max-zoom | Max zoom | _number \| string_ | `3` | | min-zoom | Min zoom | _number \| string_ | `1/3` | | closeable | Whether to show close icon | _boolean_ | `false` | diff --git a/packages/vant/src/image-preview/README.zh-CN.md b/packages/vant/src/image-preview/README.zh-CN.md index 056ccc6a2..c6f26f35f 100644 --- a/packages/vant/src/image-preview/README.zh-CN.md +++ b/packages/vant/src/image-preview/README.zh-CN.md @@ -211,7 +211,7 @@ Vant 中导出了以下 ImagePreview 相关的辅助函数: | beforeClose | 关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise | _(active: number) => boolean \| Promise\_ | - | | closeOnPopstate | 是否在页面回退时自动关闭 | _boolean_ | `true` | | closeOnClickOverlay `v4.6.4` | 是否在点击遮罩层后关闭图片预览 | _boolean_ | `true` | -| className | 自定义类名 | _string \| Array \| object_ | - | +| className | 自定义类名 (应用在图片预览的弹出层) | _string \| Array \| object_ | - | | maxZoom | 手势缩放时,最大缩放比例 | _number \| string_ | `3` | | minZoom | 手势缩放时,最小缩放比例 | _number \| string_ | `1/3` | | closeable | 是否显示关闭图标 | _boolean_ | `false` |