mirror of https://github.com/ElemeFE/element
Upload: remove delete icon when disabled
parent
007d1fb1ad
commit
c8442ac3c9
|
@ -214,6 +214,7 @@ export default {
|
||||||
if (this.showFileList) {
|
if (this.showFileList) {
|
||||||
uploadList = (
|
uploadList = (
|
||||||
<UploadList
|
<UploadList
|
||||||
|
disabled={this.disabled}
|
||||||
listType={this.listType}
|
listType={this.listType}
|
||||||
files={this.uploadFiles}
|
files={this.uploadFiles}
|
||||||
on-remove={this.handleRemove}
|
on-remove={this.handleRemove}
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
<i class="el-icon-view"></i>
|
<i class="el-icon-view"></i>
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
|
v-if="!disabled"
|
||||||
class="el-upload-list__item-delete"
|
class="el-upload-list__item-delete"
|
||||||
@click="$emit('remove', file)"
|
@click="$emit('remove', file)"
|
||||||
>
|
>
|
||||||
|
@ -65,6 +66,10 @@
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
handlePreview: Function,
|
handlePreview: Function,
|
||||||
listType: String
|
listType: String
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue