From f64bd6aff9681b998a1eee932b58f4519e9a382d Mon Sep 17 00:00:00 2001 From: sparksfly Date: Thu, 20 Aug 2026 23:29:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor(setting):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80=E4=B8=8E?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 移除未使用的NList、NListItem类型声明 2. 统一设置页面容器的最大宽度和内边距,调整标题样式 3. 重构设置项卡片样式,改用border替代阴影背景 4. 调整侧边导航栏结构与样式,适配移动端布局 5. 为所有设置页面添加响应式适配规则 --- src/types/components.d.ts | 2 - src/views/Setting.vue | 114 ++++++++++++++++++++++--------- src/views/setting/About.vue | 52 ++++++++------ src/views/setting/Appearance.vue | 51 ++++++++++---- src/views/setting/Shortcut.vue | 31 +++++---- 5 files changed, 167 insertions(+), 83 deletions(-) diff --git a/src/types/components.d.ts b/src/types/components.d.ts index ca6aadf..77d7ef0 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -32,8 +32,6 @@ declare module 'vue' { NLayout: typeof import('naive-ui')['NLayout'] NLayoutContent: typeof import('naive-ui')['NLayoutContent'] NLayoutHeader: typeof import('naive-ui')['NLayoutHeader'] - NList: typeof import('naive-ui')['NList'] - NListItem: typeof import('naive-ui')['NListItem'] NMessageProvider: typeof import('naive-ui')['NMessageProvider'] NModal: typeof import('naive-ui')['NModal'] NNotificationProvider: typeof import('naive-ui')['NNotificationProvider'] diff --git a/src/views/Setting.vue b/src/views/Setting.vue index 31359f4..fe78c24 100644 --- a/src/views/Setting.vue +++ b/src/views/Setting.vue @@ -1,14 +1,13 @@