Commit c8442ac3 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Upload: remove delete icon when disabled

parent 007d1fb1
......@@ -214,6 +214,7 @@ export default {
if (this.showFileList) {
uploadList = (
<UploadList
disabled={this.disabled}
listType={this.listType}
files={this.uploadFiles}
on-remove={this.handleRemove}
......
......@@ -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
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment