fix: nav link render

This commit is contained in:
pengzhanbo 2023-05-09 00:21:38 +08:00
parent 9d233bf4d7
commit fcb794e057
8 changed files with 18 additions and 13 deletions

View File

@ -48,11 +48,11 @@
"dotenv": "^16.0.3",
"esbuild": "^0.17.18",
"execa": "^7.1.1",
"netlify-cli": "^14.3.1",
"netlify-cli": "^15.0.2",
"portfinder": "^1.0.32"
},
"devDependencies": {
"@types/node": "^18.16.1"
"@types/node": "^18.16.5"
},
"publishConfig": {
"access": "public"

View File

@ -68,18 +68,18 @@
"@vuepress/plugin-toc": "2.0.0-beta.61",
"@vuepress/shared": "2.0.0-beta.61",
"@vuepress/utils": "2.0.0-beta.61",
"@vueuse/core": "^10.1.0",
"@vueuse/core": "^10.1.2",
"body-scroll-lock": "4.0.0-beta.0",
"date-fns": "^2.29.3",
"date-fns": "^2.30.0",
"lodash.merge": "^4.6.2",
"nanoid": "^4.0.2",
"ts-debounce": "^4.0.0",
"vue": "^3.2.47",
"vue-router": "4.1.6",
"vuepress-plugin-comment2": "2.0.0-beta.206",
"vuepress-plugin-md-enhance": "2.0.0-beta.206",
"vuepress-plugin-seo2": "2.0.0-beta.206",
"vuepress-plugin-sitemap2": "2.0.0-beta.206",
"vuepress-plugin-comment2": "2.0.0-beta.208",
"vuepress-plugin-md-enhance": "2.0.0-beta.208",
"vuepress-plugin-seo2": "2.0.0-beta.208",
"vuepress-plugin-sitemap2": "2.0.0-beta.208",
"windicss": "^3.5.6"
}
}

View File

@ -52,4 +52,9 @@ const linkTo = (e: Event) => {
fill: var(--vp-c-text-3);
transition: fill 0.25s;
}
.auto-link :deep(i) {
font-style: normal;
font-weight: inherit;
}
</style>

View File

@ -12,7 +12,7 @@ defineProps<{
<div class="menu-group">
<p v-if="text" class="title">
<Icon v-if="icon" :name="icon" />
{{ text }}
<span>{{ 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" />
{{ item.text }}
<i>{{ 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" />
{{ item.text }}
<i>{{ item.text }}</i>
</AutoLink>
</template>

View File

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