From 97d2badd45e8230f8d4e2a1d743af9dc840e058a Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 15 Oct 2022 22:58:45 +0800 Subject: [PATCH] docs(ImagePreview): improve document (#11137) --- packages/vant/src/image-preview/README.md | 21 ++++++-------- .../vant/src/image-preview/README.zh-CN.md | 29 +++++++++---------- .../vant/src/image-preview/demo/index.vue | 23 +++++---------- 3 files changed, 30 insertions(+), 43 deletions(-) diff --git a/packages/vant/src/image-preview/README.md b/packages/vant/src/image-preview/README.md index f70dfad66..f2e08cc49 100644 --- a/packages/vant/src/image-preview/README.md +++ b/packages/vant/src/image-preview/README.md @@ -118,12 +118,16 @@ export default { }; ``` -### Component Call use image slot +### Use image slot + +When using ImagePreview component, you can custom the image through the `image` slot, such as render a video content. ```html - -