Change api tab icon.

pull/40/head
ruibaby 5 years ago
parent 5d654db0c9
commit 2ae075c3b1

@ -44,4 +44,3 @@ export default {
height: 100%;
}
</style>

@ -133,7 +133,12 @@
slot-scope="text,record"
style="max-width: 150px;display: block;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
>
<a-icon type="pushpin" v-if="record.topPriority!=0" theme="twoTone" twoToneColor="red" />
<a-icon
type="pushpin"
v-if="record.topPriority!=0"
theme="twoTone"
twoToneColor="red"
/>
<a
:href="options.blog_url+'/archives/'+record.url"
target="_blank"
@ -177,6 +182,30 @@
>{{ tag.name }}</a-tag>
</span>
<span
slot="commentCount"
slot-scope="commentCount"
>
<a-badge
:count="commentCount"
:numberStyle="{backgroundColor: '#f38181'} "
:showZero="true"
:overflowCount="999"
/>
</span>
<span
slot="visits"
slot-scope="visits"
>
<a-badge
:count="visits"
:numberStyle="{backgroundColor: '#00e0ff'} "
:showZero="true"
:overflowCount="9999"
/>
</span>
<span
slot="createTime"
slot-scope="createTime"
@ -304,12 +333,14 @@ const columns = [
{
title: '评论',
width: '70px',
dataIndex: 'commentCount'
dataIndex: 'commentCount',
scopedSlots: { customRender: 'commentCount' }
},
{
title: '访问',
width: '70px',
dataIndex: 'visits'
dataIndex: 'visits',
scopedSlots: { customRender: 'visits' }
},
{
title: '发布时间',

@ -122,6 +122,30 @@
{{ statusProperty.text }}
</span>
<span
slot="commentCount"
slot-scope="commentCount"
>
<a-badge
:count="commentCount"
:numberStyle="{backgroundColor: '#f38181'} "
:showZero="true"
:overflowCount="999"
/>
</span>
<span
slot="visits"
slot-scope="visits"
>
<a-badge
:count="visits"
:numberStyle="{backgroundColor: '#00e0ff'} "
:showZero="true"
:overflowCount="9999"
/>
</span>
<span
slot="createTime"
slot-scope="createTime"
@ -261,11 +285,13 @@ const customColumns = [
},
{
title: '评论量',
dataIndex: 'commentCount'
dataIndex: 'commentCount',
scopedSlots: { customRender: 'commentCount' }
},
{
title: '访问量',
dataIndex: 'visits'
dataIndex: 'visits',
scopedSlots: { customRender: 'visits' }
},
{
title: '发布时间',

@ -628,7 +628,7 @@
</a-tab-pane>
<a-tab-pane key="api">
<span slot="tab">
<a-icon type="align-left" />API 设置
<a-icon type="thunderbolt" />API 设置
</span>
<a-form layout="vertical">
<a-form-item

Loading…
Cancel
Save