课程方图的默认显示
This commit is contained in:
@@ -103,11 +103,22 @@
|
|||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div
|
<div
|
||||||
v-if="scope.row.image"
|
v-if="scope.row.squareImage"
|
||||||
style="width:100%;display: flex;
|
style="width:100%;
|
||||||
align-items: center;justify-content: center;"
|
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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
Reference in New Issue
Block a user