fix(upload): Fix upload file slot not work bug (#868)

Co-authored-by: bastarder <jie.qian@blockheaders.com>
This commit is contained in:
bastarder 2020-12-07 15:50:47 +08:00 committed by GitHub
parent f5d4f5d25c
commit df3ef2a5cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ export default defineComponent({
handlePreview: this.onPreview,
},
{
file: (props: { file: UploadFile; }) => {
default: (props: { file: UploadFile; }) => {
if (this.$slots.file) {
return this.$slots.file({
file: props.file,