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>
|
<template>
|
||||||
<demo-section>
|
<demo-section>
|
||||||
<demo-block card :title="t('basicUsage')">
|
<demo-block card :title="t('basicUsage')">
|
||||||
<van-cell is-link @click="showImagePreview">
|
<van-cell is-link @click="showImagePreview()">
|
||||||
{{ t('showImages') }}
|
{{ t('showImages') }}
|
||||||
</van-cell>
|
</van-cell>
|
||||||
</demo-block>
|
</demo-block>
|
||||||
@ -104,7 +104,7 @@ export default {
|
|||||||
this.index = index;
|
this.index = index;
|
||||||
},
|
},
|
||||||
|
|
||||||
showImagePreview(options) {
|
showImagePreview(options = {}) {
|
||||||
const instance = ImagePreview({
|
const instance = ImagePreview({
|
||||||
images,
|
images,
|
||||||
...options,
|
...options,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user