fix: navbar text

This commit is contained in:
pengzhanbo 2023-06-29 22:40:34 +08:00
parent f7991a26d2
commit e40bf973e3
6 changed files with 10 additions and 6 deletions

View File

@ -12,7 +12,7 @@ defineProps<{
<div class="menu-group">
<p v-if="text" class="title">
<Icon v-if="icon" :name="icon" />
<span>{{ text }}</span>
<span v-text="text"></span>
</p>
<template v-for="item in items">

View File

@ -23,7 +23,7 @@ const page = usePageData()
:href="item.link"
>
<Icon v-if="item.icon" :name="item.icon" />
<i>{{ item.text }}</i>
<i v-text="item.text"></i>
</AutoLink>
</div>
</template>

View File

@ -25,7 +25,7 @@ const page = usePageData()
:no-icon="true"
>
<Icon v-if="item.icon" :name="item.icon" />
<i>{{ item.text }}</i>
<i v-text="item.text"></i>
</AutoLink>
</template>

View File

@ -31,7 +31,7 @@ function toggle() {
>
<span class="button-text">
<Icon v-if="icon" :name="icon" />
{{ text }}
<i v-text="text"></i>
</span>
<IconPlus class="button-icon" />
</button>
@ -106,6 +106,10 @@ function toggle() {
color: var(--vp-c-brand);
}
.button-text i {
font-style: normal;
}
.button-icon {
width: 14px;
height: 14px;

View File

@ -18,7 +18,7 @@ const closeScreen = inject('close-screen') as () => void
@click="closeScreen"
>
<Icon v-if="icon" :name="icon" />
<i>{{ text }}</i>
<i v-text="text"></i>
</AutoLink>
</template>

View File

@ -14,7 +14,7 @@ const closeScreen = inject('close-screen') as () => void
<template>
<AutoLink class="nav-screen-menu-link" :href="link" @click="closeScreen">
<Icon v-if="icon" :name="icon" />
<i>{{ text }}</i>
<i v-text="text"></i>
</AutoLink>
</template>