From 2327d1c8bb970f7eb7dc13aeaf000abf2fb42238 Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Tue, 27 Aug 2024 20:59:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A1=B5=E9=9D=A2=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 24 +++++- src/components/AppAside.vue | 141 ++++++++++++++++++++++++++++++++++++ src/router/index.js | 45 +++++++++--- 3 files changed, 196 insertions(+), 14 deletions(-) create mode 100644 src/components/AppAside.vue diff --git a/src/App.vue b/src/App.vue index d9ac084..3a005d2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,13 +3,22 @@ :date-locale="configProviderProps.dateLocale" :inline-theme-disabled="configProviderProps.inlineThemeDisabled" :locale="configProviderProps.locale" + :style="{ + '--color-error': themeVars.errorColor, + '--color-info': themeVars.infoColor, + '--color-primary': themeVars.primaryColor, + '--color-success': themeVars.successColor, + '--color-warning': themeVars.warningColor, + }" > -
+
+ +
@@ -19,12 +28,17 @@ diff --git a/src/router/index.js b/src/router/index.js index 7497a31..fc8db9c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,26 +10,51 @@ export const router = createRouter({ path: '/', name: 'IndexView', component: IndexView, - }, - { - path: '/about-view', - name: 'AboutView', - component: AboutView, - }, - { - path: '/nav-view', - name: 'NavView', - component: () => import('@/views/NavView/NavView.vue'), + meta: { + iconClass: 'mdi mdi-home-outline', + showInAside: true, + title: '主页', + }, }, { path: '/search-view', name: 'SearchView', component: () => import('@/views/SearchView/SearchView.vue'), + meta: { + iconClass: 'mdi mdi-magnify', + showInAside: true, + title: '搜索', + }, + }, + { + path: '/nav-view', + name: 'NavView', + component: () => import('@/views/NavView/NavView.vue'), + meta: { + iconClass: 'mdi mdi-compass-outline', + showInAside: true, + title: '导航', + }, }, { path: '/toolbox-view', name: 'ToolboxView', component: () => import('@/views/ToolboxView/ToolboxView.vue'), + meta: { + iconClass: 'mdi mdi-tools', + showInAside: true, + title: '工具箱', + }, + }, + { + path: '/about-view', + name: 'AboutView', + component: AboutView, + meta: { + iconClass: 'mdi mdi-information-outline', + showInAside: true, + title: '关于', + }, }, ], });