el-image-viewer组件在el-table使用时层级异常问题解决
element-plus框架
使用手动打开预览功能时,发现preview-teleported属性使用无效
<div><el-button @click="showPreview = true"> preview controlled </el-button><el-image-viewerv-if="showPreview":url-list="srcList"show-progress:initial-index="4"@close="showPreview = false"/>
</div>
跳转组件构建源码发现teleported属性
:teleported="true"
补充上属性即可