首页 新闻 会员 周边

vue中用v-viewer打开大图预览时为什么不显示在最前面

0
悬赏园豆:20 [已关闭问题] 关闭于 2020-04-15 13:16

代码如下:
<div v-viewer="options" class="images">
<template v-for="item in imageList">
<img :src="item.small" class="image" :key="item.imageId" :data-src="item.big" style="weight:50px;height:50px;">
</template>
</div>

data() {
return {
imageList:[],
options: {
url: 'data-src'
},
}
方法:
getImageList() {
getImage().then(response => {
response.data = response.data.map((item,index)=>{
item.big = item.Path
item.small = item.Path
return item
})
this.imageList=response.data;
});
},
用了同一个图片地址,多个图片显示时以缩略图的形式显示,点击单个图片查看就是原先大小的图片,但是点击单个图片弹出预览时整个页面没有显示在最前面,需要关掉当前页面才能查看图片预览,这是为什么?

小白学无止境的主页 小白学无止境 | 初学一级 | 园豆:8
提问于:2020-04-07 13:44

博问支持 markdown 语法,建议改进一下排版

dudu 4年前
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册