mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
docs(ImagePreview): fix root attr
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user