mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(image-preview): usage of Supplementing className
(#12491)
This commit is contained in:
parent
2523aa385a
commit
61a340947e
@ -234,7 +234,7 @@ Vant exports following ImagePreview utility functions:
|
|||||||
| before-close | Callback function before close | _(action: number) => boolean \| Promise\<boolean\>_ | - |
|
| before-close | Callback function before close | _(action: number) => boolean \| Promise\<boolean\>_ | - |
|
||||||
| close-on-popstate | Whether to close when popstate | _boolean_ | `true` |
|
| 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` |
|
| 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` |
|
| max-zoom | Max zoom | _number \| string_ | `3` |
|
||||||
| min-zoom | Min zoom | _number \| string_ | `1/3` |
|
| min-zoom | Min zoom | _number \| string_ | `1/3` |
|
||||||
| closeable | Whether to show close icon | _boolean_ | `false` |
|
| closeable | Whether to show close icon | _boolean_ | `false` |
|
||||||
|
@ -211,7 +211,7 @@ Vant 中导出了以下 ImagePreview 相关的辅助函数:
|
|||||||
| beforeClose | 关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise | _(active: number) => boolean \| Promise\<boolean\>_ | - |
|
| beforeClose | 关闭前的回调函数,返回 `false` 可阻止关闭,支持返回 Promise | _(active: number) => boolean \| Promise\<boolean\>_ | - |
|
||||||
| closeOnPopstate | 是否在页面回退时自动关闭 | _boolean_ | `true` |
|
| closeOnPopstate | 是否在页面回退时自动关闭 | _boolean_ | `true` |
|
||||||
| closeOnClickOverlay `v4.6.4` | 是否在点击遮罩层后关闭图片预览 | _boolean_ | `true` |
|
| closeOnClickOverlay `v4.6.4` | 是否在点击遮罩层后关闭图片预览 | _boolean_ | `true` |
|
||||||
| className | 自定义类名 | _string \| Array \| object_ | - |
|
| className | 自定义类名 (应用在图片预览的弹出层) | _string \| Array \| object_ | - |
|
||||||
| maxZoom | 手势缩放时,最大缩放比例 | _number \| string_ | `3` |
|
| maxZoom | 手势缩放时,最大缩放比例 | _number \| string_ | `3` |
|
||||||
| minZoom | 手势缩放时,最小缩放比例 | _number \| string_ | `1/3` |
|
| minZoom | 手势缩放时,最小缩放比例 | _number \| string_ | `1/3` |
|
||||||
| closeable | 是否显示关闭图标 | _boolean_ | `false` |
|
| closeable | 是否显示关闭图标 | _boolean_ | `false` |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user