From d48812821ff66647ef01d396f5d6142ceaf71e25 Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Fri, 1 Aug 2025 14:37:45 +0800 Subject: [PATCH] =?UTF-8?q?wip:=20=E4=B8=B4=E6=97=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 5 + src/App.vue | 2 - src/composables/types/theme.ts | 10 - src/composables/useTheme.ts | 163 ++----- src/layouts/default.vue | 2 +- src/layouts/tabbar.vue | 2 +- src/pages.json | 18 +- src/pages/login/index.vue | 2 +- src/pages/mine/index.vue | 5 +- src/pages/mine/settings/agreement/index.vue | 16 +- src/pages/mine/settings/index.vue | 12 +- src/pages/mine/settings/theme/index.vue | 458 ++++++-------------- src/store/modules/theme.store.ts | 102 +++-- src/types/auto-imports.d.ts | 21 +- src/types/global.d.ts | 11 + src/types/uni-mini-router.d.ts | 12 - src/types/uni-pages.d.ts | 35 ++ src/types/virtual-uni-pages.d.ts | 16 - src/uni.scss | 66 --- src/utils/theme.ts | 33 -- tsconfig.json | 2 +- vite.config.ts | 11 +- 22 files changed, 355 insertions(+), 649 deletions(-) delete mode 100644 src/types/uni-mini-router.d.ts create mode 100644 src/types/uni-pages.d.ts delete mode 100644 src/types/virtual-uni-pages.d.ts delete mode 100644 src/utils/theme.ts diff --git a/components.d.ts b/components.d.ts index 70bedb6..f7d65f8 100644 --- a/components.d.ts +++ b/components.d.ts @@ -21,11 +21,16 @@ declare module 'vue' { WdCard: typeof import('wot-design-uni/components/wd-card/wd-card.vue')['default'] WdCell: typeof import('wot-design-uni/components/wd-cell/wd-cell.vue')['default'] WdCellGroup: typeof import('wot-design-uni/components/wd-cell-group/wd-cell-group.vue')['default'] + WdCollapse: typeof import('wot-design-uni/components/wd-collapse/wd-collapse.vue')['default'] + WdCollapseItem: typeof import('wot-design-uni/components/wd-collapse-item/wd-collapse-item.vue')['default'] WdConfigProvider: typeof import('wot-design-uni/components/wd-config-provider/wd-config-provider.vue')['default'] WdDivider: typeof import('wot-design-uni/components/wd-divider/wd-divider.vue')['default'] + WdForm: typeof import('wot-design-uni/components/wd-form/wd-form.vue')['default'] WdGrid: typeof import('wot-design-uni/components/wd-grid/wd-grid.vue')['default'] WdGridItem: typeof import('wot-design-uni/components/wd-grid-item/wd-grid-item.vue')['default'] WdIcon: typeof import('wot-design-uni/components/wd-icon/wd-icon.vue')['default'] + WdImg: typeof import('wot-design-uni/components/wd-img/wd-img.vue')['default'] + WdImgCropper: typeof import('wot-design-uni/components/wd-img-cropper/wd-img-cropper.vue')['default'] WdInput: typeof import('wot-design-uni/components/wd-input/wd-input.vue')['default'] WdLoading: typeof import('wot-design-uni/components/wd-loading/wd-loading.vue')['default'] WdMessageBox: typeof import('wot-design-uni/components/wd-message-box/wd-message-box.vue')['default'] diff --git a/src/App.vue b/src/App.vue index 334099a..8b4b848 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,4 @@ + +{ + "name": "theme", + "style": { + "navigationBarTitleText": "用户协议" + } +} + + diff --git a/src/pages/mine/settings/index.vue b/src/pages/mine/settings/index.vue index 26467d1..511dc8e 100644 --- a/src/pages/mine/settings/index.vue +++ b/src/pages/mine/settings/index.vue @@ -1,5 +1,5 @@