|
|
|
@ -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', |
|
|
|
|