site: menu show tag when front-matter has tag prop (#7053)
parent
9bdf882517
commit
242982301d
|
@ -48,6 +48,7 @@
|
||||||
<span>{{ isZhCN ? n.title : n.enTitle || n.title }}</span>
|
<span>{{ isZhCN ? n.title : n.enTitle || n.title }}</span>
|
||||||
<span v-if="isZhCN" class="chinese">{{ n.subtitle }}</span>
|
<span v-if="isZhCN" class="chinese">{{ n.subtitle }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
<a-tag v-if="n.tag" color="green" style="margin-left: auto">{{ n.tag }}</a-tag>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</template>
|
</template>
|
||||||
</a-menu-item-group>
|
</a-menu-item-group>
|
||||||
|
|
|
@ -89,6 +89,11 @@ a {
|
||||||
padding-right: 40px !important;
|
padding-right: 40px !important;
|
||||||
padding-left: 16px !important;
|
padding-left: 16px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-menu-title-content {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nest Category > Type > Article
|
// Nest Category > Type > Article
|
||||||
|
|
Loading…
Reference in New Issue