Upload: remove delete icon when disabled

pull/5855/merge
Leopoldthecoder 2017-07-13 18:21:58 +08:00 committed by 杨奕
parent 007d1fb1ad
commit c8442ac3c9
2 changed files with 6 additions and 0 deletions

View File

@ -214,6 +214,7 @@ export default {
if (this.showFileList) {
uploadList = (
<UploadList
disabled={this.disabled}
listType={this.listType}
files={this.uploadFiles}
on-remove={this.handleRemove}

View File

@ -40,6 +40,7 @@
<i class="el-icon-view"></i>
</span>
<span
v-if="!disabled"
class="el-upload-list__item-delete"
@click="$emit('remove', file)"
>
@ -65,6 +66,10 @@
return [];
}
},
disabled: {
type: Boolean,
default: false
},
handlePreview: Function,
listType: String
},