fix(components): [el-image] preview-src-list warn (#4472)

This commit is contained in:
C.Y.Kun 2021-11-21 19:17:17 +08:00 committed by GitHub
parent 61ef932e15
commit e9f3d989c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,7 @@ import {
watch,
nextTick,
effectScope,
markRaw,
} from 'vue'
import { useEventListener } from '@vueuse/core'
import ElIcon from '@element-plus/components/icon'
@ -108,11 +109,11 @@ import type { CSSProperties } from 'vue'
const Mode = {
CONTAIN: {
name: 'contain',
icon: FullScreen,
icon: markRaw(FullScreen),
},
ORIGINAL: {
name: 'original',
icon: ScaleToOriginal,
icon: markRaw(ScaleToOriginal),
},
}