增加分类图片

feature/0423
Wayne 9 months ago
parent 3aed4c2270
commit d8be5ff1f6
  1. 11
      src/views/content/article/category/Index.vue

@ -14,6 +14,12 @@
:pagination="false"
:loading="isLoading"
>
<!-- 文章封面图 -->
<span slot="img_url" slot-scope="text">
<a v-if="text" title="点击查看原图" :href="text" target="_blank">
<img height="50" :src="text" alt="分类图片" />
</a>
</span>
<!-- 状态 -->
<span slot="status" slot-scope="text">
<a-tag :color="text ? 'green' : ''">{{ text ? '显示' : '隐藏' }}</a-tag>
@ -59,6 +65,11 @@ export default {
title: '分类名称',
dataIndex: 'name'
},
{
title: '分类图片',
dataIndex: 'img_url',
scopedSlots: { customRender: 'img_url' }
},
{
title: '状态',
dataIndex: 'status',

Loading…
Cancel
Save