提交 59f5a4cd 编写于 作者: 张敬贤's avatar 张敬贤

add

上级 3986bc04
...@@ -202,6 +202,7 @@ ...@@ -202,6 +202,7 @@
<van-image-preview <van-image-preview
v-model="showImg" v-model="showImg"
:images="imageslist" :images="imageslist"
@change="changePreview"
> >
<template v-slot:index> <template v-slot:index>
{{ index }} {{ index }}
...@@ -328,6 +329,9 @@ export default { ...@@ -328,6 +329,9 @@ export default {
} }
}, },
changePreview(index) {
this.index = index;
},
changeImg(index) { changeImg(index) {
console.log(index); console.log(index);
this.imageslist = this.images; this.imageslist = this.images;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册