From 851cfe1453be3c44a1e0467feeb776034842e196 Mon Sep 17 00:00:00 2001 From: lanyeeee Date: Mon, 4 Aug 2025 05:16:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=B3=E4=BA=8EDialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 + src/AppContent.vue | 16 ++++++++++- src/dialogs/AboutDialog.vue | 56 +++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 src/dialogs/AboutDialog.vue diff --git a/components.d.ts b/components.d.ts index 8cfac07..68f5dea 100644 --- a/components.d.ts +++ b/components.d.ts @@ -8,6 +8,7 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { + NA: typeof import('naive-ui')['NA'] NButton: typeof import('naive-ui')['NButton'] NCheckbox: typeof import('naive-ui')['NCheckbox'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] diff --git a/src/AppContent.vue b/src/AppContent.vue index a0484ad..a54ed32 100644 --- a/src/AppContent.vue +++ b/src/AppContent.vue @@ -2,12 +2,14 @@ import { onMounted, ref } from 'vue' import { useStore } from './store.ts' import LogDialog from './dialogs/LogDialog.vue' -import { PhClockCounterClockwise } from '@phosphor-icons/vue' +import { PhClockCounterClockwise, PhInfo } from '@phosphor-icons/vue' import { commands } from './bindings.ts' +import AboutDialog from './dialogs/AboutDialog.vue' const store = useStore() const logDialogShowing = ref(false) +const aboutDialogShowing = ref(false) onMounted(async () => { // 屏蔽浏览器右键菜单 @@ -33,10 +35,22 @@ onMounted(async () => { + + + 关于 + + + diff --git a/src/dialogs/AboutDialog.vue b/src/dialogs/AboutDialog.vue new file mode 100644 index 0000000..422a112 --- /dev/null +++ b/src/dialogs/AboutDialog.vue @@ -0,0 +1,56 @@ + + +