From ddc0ed066db0f4d75609219ab5737e240d552b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 15 Nov 2024 13:03:18 +0800 Subject: [PATCH] feat: nav --- napcat.webui/src/components/Dashboard.vue | 24 +++++++++++++------ napcat.webui/src/components/QQLogin.vue | 1 + napcat.webui/src/components/WebUiLogin.vue | 1 + napcat.webui/src/components/webui/Nav.vue | 27 ++++++++++++++++++++++ napcat.webui/src/main.ts | 10 +++++++- 5 files changed, 55 insertions(+), 8 deletions(-) create mode 100644 napcat.webui/src/components/webui/Nav.vue diff --git a/napcat.webui/src/components/Dashboard.vue b/napcat.webui/src/components/Dashboard.vue index 14edff81..fa7b5542 100644 --- a/napcat.webui/src/components/Dashboard.vue +++ b/napcat.webui/src/components/Dashboard.vue @@ -1,13 +1,23 @@ \ No newline at end of file diff --git a/napcat.webui/src/components/QQLogin.vue b/napcat.webui/src/components/QQLogin.vue index 3286d5e3..3a6ad5b6 100644 --- a/napcat.webui/src/components/QQLogin.vue +++ b/napcat.webui/src/components/QQLogin.vue @@ -21,6 +21,7 @@ \ No newline at end of file diff --git a/napcat.webui/src/main.ts b/napcat.webui/src/main.ts index 9c9c0679..7112cef7 100644 --- a/napcat.webui/src/main.ts +++ b/napcat.webui/src/main.ts @@ -6,7 +6,11 @@ import { Form as TForm, FormItem as TFormItem, Select as TSelect, - Option as TOption + Option as TOption, + Menu as TMenu, + MenuItem as TMenuItem, + Icon as TIcon, + Submenu as TSubmenu, } from 'tdesign-vue-next'; import { router } from './router'; @@ -19,4 +23,8 @@ app.use(TForm); app.use(TFormItem); app.use(TSelect); app.use(TOption); +app.use(TMenu); +app.use(TMenuItem); +app.use(TIcon); +app.use(TSubmenu); app.mount('#app'); \ No newline at end of file