<viewer :images="fileimagelist"> <div v-for="(src, index) in fileimagelist" :key="src" :src="src" > <img v-show="scope.$index === index" class="imgbox" :src="src" alt="" srcset="" > </div> </viewer>
这样可以实现---表格里面只显示一个图片但是底部会显示所有的图片 main.js
import Viewer from 'v-viewer' import 'viewerjs/dist/viewer.css' Vue.use(Viewer)
标签:dist,viewer,---,Viewer,import,图片 From: https://www.cnblogs.com/ylblogs/p/18089160