mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(ImagePreview): fix root attr
This commit is contained in:
parent
f75f6bf293
commit
32560ce3b8
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<demo-section>
|
||||
<demo-block card :title="t('basicUsage')">
|
||||
<van-cell is-link @click="showImagePreview">
|
||||
<van-cell is-link @click="showImagePreview()">
|
||||
{{ t('showImages') }}
|
||||
</van-cell>
|
||||
</demo-block>
|
||||
@ -104,7 +104,7 @@ export default {
|
||||
this.index = index;
|
||||
},
|
||||
|
||||
showImagePreview(options) {
|
||||
showImagePreview(options = {}) {
|
||||
const instance = ImagePreview({
|
||||
images,
|
||||
...options,
|
||||
|
Loading…
x
Reference in New Issue
Block a user