mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Upload: remove delete icon when disabled
This commit is contained in:
@@ -171,6 +171,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@when disabled {
|
||||
.el-upload-list__item:hover .el-upload-list__item-status-label {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
@e item-name {
|
||||
color: var(--color-extra-light-black);
|
||||
display: block;
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
<template>
|
||||
<transition-group
|
||||
tag="ul"
|
||||
:class="['el-upload-list', 'el-upload-list--' + listType]"
|
||||
:class="[
|
||||
'el-upload-list',
|
||||
'el-upload-list--' + listType,
|
||||
{ 'is-disabled': disabled }
|
||||
]"
|
||||
name="el-list"
|
||||
>
|
||||
<li
|
||||
@@ -24,7 +28,7 @@
|
||||
'el-icon-check': ['picture-card', 'picture'].indexOf(listType) > -1
|
||||
}"></i>
|
||||
</label>
|
||||
<i class="el-icon-close" @click="$emit('remove', file)"></i>
|
||||
<i class="el-icon-close" v-if="!disabled" @click="$emit('remove', file)"></i>
|
||||
<el-progress
|
||||
v-if="file.status === 'uploading'"
|
||||
:type="listType === 'picture-card' ? 'circle' : 'line'"
|
||||
|
||||
Reference in New Issue
Block a user