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

Upload: remove delete icon when disabled

parent 26535645
...@@ -171,6 +171,11 @@ ...@@ -171,6 +171,11 @@
} }
} }
} }
@when disabled {
.el-upload-list__item:hover .el-upload-list__item-status-label {
display: block;
}
}
@e item-name { @e item-name {
color: var(--color-extra-light-black); color: var(--color-extra-light-black);
display: block; display: block;
......
<template> <template>
<transition-group <transition-group
tag="ul" tag="ul"
:class="['el-upload-list', 'el-upload-list--' + listType]" :class="[
'el-upload-list',
'el-upload-list--' + listType,
{ 'is-disabled': disabled }
]"
name="el-list" name="el-list"
> >
<li <li
...@@ -24,7 +28,7 @@ ...@@ -24,7 +28,7 @@
'el-icon-check': ['picture-card', 'picture'].indexOf(listType) > -1 'el-icon-check': ['picture-card', 'picture'].indexOf(listType) > -1
}"></i> }"></i>
</label> </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 <el-progress
v-if="file.status === 'uploading'" v-if="file.status === 'uploading'"
:type="listType === 'picture-card' ? 'circle' : 'line'" :type="listType === 'picture-card' ? 'circle' : 'line'"
......
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