From 4160a119aa34c12789223af1d0145f19c3101834 Mon Sep 17 00:00:00 2001 From: SuperCuteXiaoSi <1531733886@qq.com> Date: Tue, 25 Oct 2022 16:32:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(layouts):=20=E2=9C=A8=20[App]=20=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E5=88=87=E6=8D=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 10 +- package.json | 1 + pnpm-lock.yaml | 106 ++++++++++++++-- public/serverConfig.json | 1 + src/App.vue | 8 ++ src/components/Application/AppTheme.vue | 3 + src/config/index.ts | 2 + src/hooks/useTransformTheme.ts | 1 + src/hooks/web/useI18n.ts | 1 - .../pageLayouts/components/AppTabs/index.vue | 2 +- .../components/Breadcrumb/index.vue | 3 +- .../components/Seting/ThemeSettings/index.vue | 114 ++++++++++++++++++ .../pageLayouts/components/Seting/index.vue | 73 ++++++----- .../components/SideNavigationBar/index.vue | 13 +- .../components/VerticalSidebar/index.vue | 1 - src/locales/en/modules/layout.ts | 7 ++ src/locales/zh-ch/modules/layout.ts | 7 ++ src/store/modules/app.ts | 4 +- src/store/types.ts | 1 + src/styles/element-style.scss | 3 + src/styles/{ => element}/el-theme.scss | 6 +- src/styles/element/index.scss | 2 +- src/styles/index.scss | 1 + src/styles/theme.scss | 4 +- src/utils/plugin/element.ts | 4 + src/utils/transformTheme.ts | 41 +++++++ 26 files changed, 366 insertions(+), 53 deletions(-) create mode 100644 src/hooks/useTransformTheme.ts create mode 100644 src/layouts/pageLayouts/components/Seting/ThemeSettings/index.vue create mode 100644 src/locales/en/modules/layout.ts create mode 100644 src/locales/zh-ch/modules/layout.ts create mode 100644 src/styles/element-style.scss rename src/styles/{ => element}/el-theme.scss (85%) create mode 100644 src/utils/transformTheme.ts diff --git a/index.html b/index.html index e9079b7a..00a967ae 100644 --- a/index.html +++ b/index.html @@ -156,13 +156,21 @@ } } -