mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 07:30:53 +00:00
docs(ImagePreview): fix missing parameters (#12955)
This commit is contained in:
@@ -194,7 +194,7 @@ When you customize the image through the `image` slot, you can bind the `style`
|
||||
:close-on-click-image="false"
|
||||
>
|
||||
<template #image="{ src, style, onLoad }">
|
||||
<img :style="[{ width: '100%' }, style]" @load="onLoad" />
|
||||
<img :src="src" :style="[{ width: '100%' }, style]" @load="onLoad" />
|
||||
</template>
|
||||
</van-image-preview>
|
||||
```
|
||||
|
@@ -195,7 +195,7 @@ export default {
|
||||
:close-on-click-image="false"
|
||||
>
|
||||
<template #image="{ src, style, onLoad }">
|
||||
<img :style="[{ width: '100%' }, style]" @load="onLoad" />
|
||||
<img :src="src" :style="[{ width: '100%' }, style]" @load="onLoad" />
|
||||
</template>
|
||||
</van-image-preview>
|
||||
```
|
||||
|
Reference in New Issue
Block a user