diff --git a/packages/components/upload/src/upload-list.vue b/packages/components/upload/src/upload-list.vue index df21907274..0e8428731a 100644 --- a/packages/components/upload/src/upload-list.vue +++ b/packages/components/upload/src/upload-list.vue @@ -33,15 +33,12 @@ alt="" />
@@ -128,7 +125,7 @@ defineOptions({ name: 'ElUploadList', }) -const props = defineProps(uploadListProps) +defineProps(uploadListProps) const emit = defineEmits(uploadListEmits) const { t } = useLocale() @@ -138,10 +135,6 @@ const nsList = useNamespace('list') const focusing = ref(false) -const handleClick = (file: UploadFile) => { - props.handlePreview(file) -} - const handleRemove = (file: UploadFile) => { emit('remove', file) } diff --git a/packages/theme-chalk/src/upload.scss b/packages/theme-chalk/src/upload.scss index ae4b3c86fe..edacb3bc1d 100644 --- a/packages/theme-chalk/src/upload.scss +++ b/packages/theme-chalk/src/upload.scss @@ -440,6 +440,8 @@ box-sizing: border-box; margin-top: 10px; padding: 10px; + display: flex; + align-items: center; .#{bem('icon', '' ,'check')}, .#{bem('icon', '' ,'circle-check')} {