增加背景图设置

This commit is contained in:
2023-12-29 00:09:30 +08:00
parent fe816585f0
commit c8e64a1abf
3 changed files with 390 additions and 2 deletions

View File

@@ -296,9 +296,10 @@ function beforeAvatarUpload(file) {
<div class="show-content text-ellipsis-1" v-html="scope.row.content"></div>
</template>
</el-table-column>
<el-table-column align="left" label="封面图" min-width="150">
<el-table-column align="left" label="封面图" min-width="50">
<template #default="scope">
<img class="lbt-thumb" :src="scope.row.cover_img" alt="">
<!-- <img class="lbt-thumb" :src="scope.row.cover_img" alt=""> -->
<el-image :src="scope.row.cover_img" fit="cover" />
</template>
</el-table-column>
<el-table-column align="left" label="阅读量" prop="reading_num" />
@@ -413,6 +414,9 @@ function beforeAvatarUpload(file) {
</div>
</template>
<style scoped lang="scss">
:deep(.el-upload--text img) {
width: 100px;
}
.option-item {
display: flex;
align-items: center;