mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
Fix/upload: fix two bug (#927)
* fix(upload): fix picture not show without slot * fix(upload): fix fileList not work
This commit is contained in:
parent
c7d185c6a2
commit
5fa80d3c5e
@ -190,16 +190,13 @@ export default defineComponent({
|
||||
onRemove: this.handleRemove,
|
||||
handlePreview: this.onPreview,
|
||||
},
|
||||
{
|
||||
this.$slots.file ? {
|
||||
default: (props: { file: UploadFile; }) => {
|
||||
if (this.$slots.file) {
|
||||
return this.$slots.file({
|
||||
file: props.file,
|
||||
})
|
||||
}
|
||||
return null
|
||||
},
|
||||
},
|
||||
} : null,
|
||||
)
|
||||
} else {
|
||||
uploadList = null
|
||||
|
@ -135,6 +135,7 @@ export default (props: IUseHandlersProps) => {
|
||||
})
|
||||
}, {
|
||||
immediate: true,
|
||||
deep: true,
|
||||
})
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user