优化商品管理筛选功能

This commit is contained in:
yml2213
2026-07-09 23:55:19 +08:00
parent 0a5448b3f5
commit ef67375132
9 changed files with 252 additions and 56 deletions
@@ -14,6 +14,7 @@ const props = withDefaults(
decoding?: 'async' | 'sync' | 'auto'
previewSrcList?: string[]
previewTeleported?: boolean
previewInitialIndex?: number
fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'
imageStyle?: any
}>(),
@@ -25,6 +26,7 @@ const props = withDefaults(
loading: 'lazy',
decoding: 'async',
previewTeleported: true,
previewInitialIndex: 0,
}
)
@@ -105,11 +107,14 @@ onBeforeUnmount(cleanup)
<template>
<el-image
v-if="imageURL && usePreview"
:class="imageClass"
:src="imageURL"
:alt="alt"
:fit="fit"
:style="imageStyle"
:preview-src-list="previewURLs"
:preview-teleported="previewTeleported"
:initial-index="previewInitialIndex"
/>
<img
v-else-if="imageURL"