mirror of https://github.com/halo-dev/halo
refactor: post list tag rendering using PostTag component (halo-dev/console#443)
Signed-off-by: Ryan Wang <i@ryanc.cc>pull/3445/head
parent
7580459bbc
commit
ff32358bc5
|
@ -210,13 +210,7 @@
|
||||||
>{{ category.name }}
|
>{{ category.name }}
|
||||||
</a-tag>
|
</a-tag>
|
||||||
<br />
|
<br />
|
||||||
<a-tag
|
<post-tag v-for="(tag, tagIndex) in item.tags" :key="tagIndex" :tag="tag" style="margin-bottom: 8px" />
|
||||||
v-for="(tag, tagIndex) in item.tags"
|
|
||||||
:key="'tag_' + tagIndex"
|
|
||||||
:color="tag.color"
|
|
||||||
style="margin-bottom: 8px"
|
|
||||||
>{{ tag.name }}
|
|
||||||
</a-tag>
|
|
||||||
</a-list-item>
|
</a-list-item>
|
||||||
</a-list>
|
</a-list>
|
||||||
|
|
||||||
|
@ -243,7 +237,7 @@
|
||||||
twoToneColor="red"
|
twoToneColor="red"
|
||||||
type="pushpin"
|
type="pushpin"
|
||||||
/>
|
/>
|
||||||
<a-tooltip v-if="record.inProgress" title="当前有内容已保存,但还未发布。" placement="top">
|
<a-tooltip v-if="record.inProgress" placement="top" title="当前有内容已保存,但还未发布。">
|
||||||
<a-icon
|
<a-icon
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
style="margin-right: 3px"
|
style="margin-right: 3px"
|
||||||
|
@ -286,11 +280,9 @@
|
||||||
</a-tag>
|
</a-tag>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span slot="tags" slot-scope="tags">
|
<template #tags="tags">
|
||||||
<a-tag v-for="(tag, index) in tags" :key="index" :color="tag.color" style="margin-bottom: 8px">
|
<post-tag v-for="(tag, index) in tags" :key="index" :tag="tag" style="margin-bottom: 8px" />
|
||||||
{{ tag.name }}
|
</template>
|
||||||
</a-tag>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<span
|
<span
|
||||||
slot="commentCount"
|
slot="commentCount"
|
||||||
|
|
Loading…
Reference in New Issue