From 6dd3bbacc0f9f0cf97d24d91c02355773024e97b Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Wed, 17 Apr 2024 12:12:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(theme):=20=E5=AF=BC=E8=88=AA=E6=A0=8F?= =?UTF-8?q?=E3=80=81=E4=BE=A7=E8=BE=B9=E6=A0=8F=E5=9B=BE=E6=A0=87=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=9B=BE=E7=89=87=E9=93=BE=E6=8E=A5=E5=92=8Csvg?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=20#65?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/plugin-notes-data/src/shared/index.ts | 2 +- .../client/components/Flyout/MenuGroup.vue | 5 ++- .../src/client/components/Flyout/MenuLink.vue | 3 +- theme/src/client/components/Flyout/index.vue | 5 ++- .../client/components/Nav/NavBarMenuLink.vue | 3 +- .../components/Nav/NavScreenMenuGroup.vue | 5 ++- .../components/Nav/NavScreenMenuGroupLink.vue | 5 ++- .../Nav/NavScreenMenuGroupSection.vue | 5 ++- .../components/Nav/NavScreenMenuLink.vue | 5 ++- theme/src/client/components/SidebarItem.vue | 8 +++- theme/src/client/components/VIcon.vue | 43 +++++++++++++++++++ theme/src/shared/options/navbar.ts | 6 +-- 12 files changed, 76 insertions(+), 19 deletions(-) create mode 100644 theme/src/client/components/VIcon.vue diff --git a/plugins/plugin-notes-data/src/shared/index.ts b/plugins/plugin-notes-data/src/shared/index.ts index a197e814..2b7a3773 100644 --- a/plugins/plugin-notes-data/src/shared/index.ts +++ b/plugins/plugin-notes-data/src/shared/index.ts @@ -71,7 +71,7 @@ export interface NotesSidebarItem { /** * 侧边栏图标 */ - icon?: string + icon?: string | { svg: string } } export type NotesData = Record diff --git a/theme/src/client/components/Flyout/MenuGroup.vue b/theme/src/client/components/Flyout/MenuGroup.vue index 15898aa4..bfb5981b 100644 --- a/theme/src/client/components/Flyout/MenuGroup.vue +++ b/theme/src/client/components/Flyout/MenuGroup.vue @@ -1,9 +1,10 @@ @@ -11,7 +12,7 @@ defineProps<{