课程方图的默认显示

This commit is contained in:
liuyuan
2025-04-23 14:23:43 +08:00
parent 9ae57c0989
commit 3a40d2d3ee
2 changed files with 15 additions and 4 deletions

BIN
dist.zip

Binary file not shown.

View File

@@ -103,11 +103,22 @@
>
<template slot-scope="scope">
<div
v-if="scope.row.image"
style="width:100%;display: flex;
align-items: center;justify-content: center;"
v-if="scope.row.squareImage"
style="width:100%;
display: flex;
align-items: center;
justify-content: center;"
>
<img :src="scope.row.squareImage" alt="" width="40px" height="40px" />
<img :src="scope.row.squareImage" alt="" width="60px" height="60px" />
</div>
<div
v-else
style="width:100%;
display: flex;
align-items: center;
justify-content: center;"
>
<span style="width:60px; height: 60px; background: #f2f2f2; font-size: 12px; line-height: 60px; display: inline-block;">暂无图片</span>
</div>
</template>
</el-table-column>