@@ -4,6 +4,7 @@
:url-list="urlList"
:initial-index="initialIndex"
teleported
+ :z-index="zIndex"
@close="handleClose"
/>
</template>
@@ -15,8 +16,10 @@ withDefaults(
visible: boolean;
urlList: string[];
initialIndex?: number;
+ /** 高于 el-table fixed 列、侧栏等,避免预览被盖住 */
+ zIndex?: number;
}>(),
- { initialIndex: 0 }
+ { initialIndex: 0, zIndex: 5000 }
);
const emit = defineEmits<{
@@ -83,6 +83,8 @@
fit="cover"
class="facility-thumb"
:preview-src-list="[row.equipmentImage || row.imgUrl]"
+ preview-teleported
+ :z-index="5000"
>
<template #error>
<div class="image-placeholder">
@@ -23,6 +23,8 @@
:src="row.imageUrl"
:preview-src-list="[row.imageUrl]"
style="width: 60px; height: 60px; border-radius: 4px"