element icon 全局替换

This commit is contained in:
hooray 2021-11-13 10:53:10 +08:00
parent fdd3a63f84
commit 884ffd2018
2 changed files with 8 additions and 4 deletions

View File

@ -14,7 +14,7 @@
<el-image v-if="url === ''" :src="url === '' ? placeholder : url" :style="`width:${width}px;height:${height}px;`" fit="fill">
<template #error>
<div class="image-slot">
<i class="el-icon-plus" />
<svg-icon name="el-icon-plus" />
</div>
</template>
</el-image>
@ -204,8 +204,10 @@ function onSuccess(res) {
width: 100%;
height: 100%;
color: #909399;
font-size: 30px;
background-color: transparent;
i {
font-size: 30px;
}
}
}
.progress {

View File

@ -33,7 +33,7 @@
class="images-upload"
>
<div class="image-slot" :style="`width:${width}px;height:${height}px;`">
<i class="el-icon-plus" />
<svg-icon name="el-icon-plus" />
</div>
<div v-show="uploadData.progress.percent" class="progress" :style="`width:${width}px;height:${height}px;`">
<el-image :src="uploadData.progress.preview" :style="`width:${width}px;height:${height}px;`" fit="fill" />
@ -236,8 +236,10 @@ function onSuccess(res) {
width: 100%;
height: 100%;
color: #909399;
font-size: 30px;
background-color: transparent;
i {
font-size: 30px;
}
}
.progress {
position: absolute;