<el-image-viewer
v-if="imgViewerVisible"
hide-on-click-modal="true"
@close="closeImgViewer"
:url-list="imgList"
/>
const imgViewerVisible = ref(false)
const imgList = [
const showImgViewer = () => {
imgViewerVisible.value = true
// const m = (e) => {
// e.preventDefault()
// }
// document.body.style.overflow = 'hidden'
// document.addEventListener('touchmove', m, false) // 禁止页面滑动
}
const closeImgViewer = () => {
console.log('执行关闭')
imgViewerVisible.value = false
// const m = (e) => {
// e.preventDefault()
// }
// document.body.style.overflow = 'auto'
// document.removeEventListener('touchmove', m, true)
}