Add a slot to the file-list

pull/21733/head
Joel Rodrigues 2022-03-03 16:15:54 +00:00 committed by GitHub
parent 473ef53f93
commit 516fe58bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 14 deletions

View File

@ -270,6 +270,7 @@ export default {
if (this.showFileList) { if (this.showFileList) {
uploadList = ( uploadList = (
<slot :file-list="this.uploadFiles">
<UploadList <UploadList
disabled={this.uploadDisabled} disabled={this.uploadDisabled}
listType={this.listType} listType={this.listType}
@ -286,6 +287,7 @@ export default {
} }
} }
</UploadList> </UploadList>
</slot>
); );
} }