Skip to content

Commit 2b1f7dd

Browse files
committed
refactor(fontSwitcher): ♻️ use Vue to implement FontSwitcher
1 parent 162302a commit 2b1f7dd

File tree

10 files changed

+343
-109
lines changed

10 files changed

+343
-109
lines changed

example/docs/.vitepress/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import type { SidebarOptions } from '@project-trans/vitepress-theme-project-trans/theme'
22
import type { ThemeContext } from '@project-trans/vitepress-theme-project-trans/utils'
3+
import type { DefaultTheme } from 'vitepress'
34
import genConfig from '@project-trans/vitepress-theme-project-trans/config'
45
import { withThemeContext } from '@project-trans/vitepress-theme-project-trans/utils'
56

6-
const nav: NavConfig = [
7+
const nav: DefaultTheme.NavItem[] = [
78
{
89
text: '大学指南',
910
link: '/campus/',

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
"@iconify-json/carbon": "^1.2.1",
4545
"@iconify-json/icon-park-outline": "^1.2.0",
4646
"@iconify-json/octicon": "^1.2.0",
47+
"@vitejs/plugin-vue-jsx": "^4.1.1",
48+
"@vueuse/core": "^12.0.0",
4749
"unocss": "^0.65.1",
4850
"vite": "^5.3.1",
4951
"vitepress": "^1.5.0",

0 commit comments

Comments
 (0)