From 9e818162e29f3f9461e1ae99f16dde06a1a5bd12 Mon Sep 17 00:00:00 2001 From: inottn Date: Sun, 21 May 2023 21:49:14 +0800 Subject: [PATCH] docs(ImagePreview): optimize docs (#11892) --- packages/vant/src/image-preview/README.md | 4 ++-- packages/vant/src/image-preview/README.zh-CN.md | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/vant/src/image-preview/README.md b/packages/vant/src/image-preview/README.md index 04d1bbc7c..74a062fd7 100644 --- a/packages/vant/src/image-preview/README.md +++ b/packages/vant/src/image-preview/README.md @@ -277,9 +277,9 @@ imagePreviewRef.value?.swipeTo(1); | Name | Description | SlotProps | | --- | --- | --- | -| index | Custom index | { index: index of current image } | +| index | Custom index | _{ index: index of current image }_ | | cover | Custom content that covers the image preview | - | -| image | Custom image content | { src: current image src } | +| image | Custom image content | _{ src: current image src }_ | ### onClose Parameters diff --git a/packages/vant/src/image-preview/README.zh-CN.md b/packages/vant/src/image-preview/README.zh-CN.md index 7dd45feeb..8c7e0db41 100644 --- a/packages/vant/src/image-preview/README.zh-CN.md +++ b/packages/vant/src/image-preview/README.zh-CN.md @@ -294,11 +294,11 @@ imagePreviewRef.value?.swipeTo(1); 通过组件调用 `ImagePreview` 时,支持以下插槽: -| 名称 | 说明 | 参数 | -| ----- | ------------------------------ | ------------------------- | -| index | 自定义页码内容 | { index: 当前图片的索引 } | -| cover | 自定义覆盖在图片预览上方的内容 | - | -| image | 自定义图片内容 | { src: 当前资源地址 } | +| 名称 | 说明 | 参数 | +| ----- | ------------------------------ | --------------------------- | +| index | 自定义页码内容 | _{ index: 当前图片的索引 }_ | +| cover | 自定义覆盖在图片预览上方的内容 | - | +| image | 自定义图片内容 | _{ src: 当前资源地址 }_ | ### onClose 回调参数