1.更新上传按钮的圆角

v1.0.0
sws 2024-10-19 18:49:59 +08:00
parent 226244b6cd
commit 3aaed0c04b
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
<upload v-model="row.new_cover" :limit="1" size="40" styles="2"></upload>
<el-image :src="row.data[imgParams]" fit="contain" class="img radius-xs">
<template #error>
<div class="bg-f5 flex-row jc-c align-c radius h w">
<div class="bg-f5 flex-row jc-c align-c radius-xs h w">
<icon name="error-img" size="16" color="9"></icon>
</div>
</template>

View File

@ -178,19 +178,19 @@
</div>
<template v-if="type == 'video'">
<video :src="item.url" class="w h"></video>
<div v-if="item.error == true" class="bg-f5 img flex-row jc-c align-c radius h w abs top-0">
<div v-if="item.error == true" class="bg-f5 img flex-row jc-c align-c radius-xs h w abs top-0">
<icon name="video" :size="Number(size) / 2 + ''" color="9"></icon>
</div>
</template>
<template v-else-if="type == 'file'">
<div class="bg-f5 img flex-row jc-c align-c radius h w">
<div class="bg-f5 img flex-row jc-c align-c radius-xs h w">
<icon :name="ext_file_name_list_map.filter((ext) => ext.type == item.type).length > 0 && ext_file_name_list_map.filter((ext) => ext.type == item.type)[0].type == item.type ? ext_file_name_list_map.filter((ext) => ext.type == item.type)[0].icon : 'file'" :size="Number(size) / 2 + ''" color="9"></icon>
</div>
</template>
<template v-else>
<el-image :src="item.url" fit="contain" class="w h radius-xs">
<template #error>
<div class="bg-f5 img flex-row jc-c align-c radius h w">
<div class="bg-f5 img flex-row jc-c align-c radius-xs h w">
<icon name="error-img" :size="Number(size) / 2 + ''" color="9"></icon>
</div>
</template>