<el-image-viewer v-if="showViewer" :url-list="[tableDataScopeRowImgUrl]" @close="closeImg" />
// 表格内的图片展示
const imgExhibition = (imgName: any, imgUrl: string) => {
tableDataScopeRowImgUrl.value = []
if (!/\.(gif|jpg|jpeg|png|GIF|JPG|PNG|pdf|PDF)$/.test(imgName)) {
ElMessage.warning('不是图片无法预览')
} else {
tableDataScopeRowImgUrl.value.push(imgUrl)
showViewer.value = true
}
}
const closeImg = () => {
showViewer.value = false
}