课程方图的默认显示
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user