From 5f68e2d23149061a1d745c89341a799984592eb0 Mon Sep 17 00:00:00 2001 From: iczer <1126263215@qq.com> Date: Wed, 1 Jul 2020 17:23:39 +0800 Subject: [PATCH] chore: optimize the realization of theme color :star2: --- src/components/checkbox/ImgCheckbox.vue | 2 +- src/components/menu/SideMenu.vue | 22 ++---------- src/components/result/Result.vue | 2 +- src/components/setting/StyleItem.vue | 36 ------------------- .../transition/PageToggleTransition.vue | 2 +- src/config/config.js | 4 +++ src/config/{ => default}/animates.js | 0 src/config/index.js | 28 ++++----------- src/layouts/AdminLayout.vue | 2 +- src/layouts/header/AdminHeader.vue | 2 +- src/pages/dashboard/workplace/WorkPlace.vue | 6 ++-- src/pages/login/Login.vue | 2 +- src/store/modules/setting.js | 2 +- src/theme/default/color.less | 18 ++-------- src/utils/colors.js | 11 +++--- src/utils/themeUtil.js | 21 +++++++---- vue.config.js | 9 ++--- 17 files changed, 46 insertions(+), 123 deletions(-) delete mode 100644 src/components/setting/StyleItem.vue create mode 100644 src/config/config.js rename src/config/{ => default}/animates.js (100%) diff --git a/src/components/checkbox/ImgCheckbox.vue b/src/components/checkbox/ImgCheckbox.vue index cedbee7..014c21a 100644 --- a/src/components/checkbox/ImgCheckbox.vue +++ b/src/components/checkbox/ImgCheckbox.vue @@ -138,7 +138,7 @@ export default { padding-top: 15px; padding-left: 24px; height: 100%; - color: #1890ff; + color: @primary-color; font-size: 14px; font-weight: bold; } diff --git a/src/components/menu/SideMenu.vue b/src/components/menu/SideMenu.vue index 07b66e9..f779f84 100644 --- a/src/components/menu/SideMenu.vue +++ b/src/components/menu/SideMenu.vue @@ -1,5 +1,5 @@