From 2d135acae17536fa35ef78a65932d6f0cb6119b5 Mon Sep 17 00:00:00 2001 From: lpyhutu <1048672466@qq.com> Date: Wed, 19 Jan 2022 14:00:55 +0800 Subject: [PATCH 01/19] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BE=A7?= =?UTF-8?q?=E8=BE=B9=E6=A0=8Flogo=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 5 ++-- src/assets/image/avatar.png | Bin 0 -> 57016 bytes src/assets/image/logo.png | Bin 57016 -> 23323 bytes src/components/HeaderAvatar/Index.vue | 4 +-- src/components/SkinTheme/Index.vue | 12 +++++++-- src/interface/index.ts | 4 ++- src/layout/components/Sidebar.vue | 34 +++++++++++++++++++++++++- src/main.ts | 3 ++- src/store/modules/theme.ts | 10 +++----- src/views/charts/line/Index.vue | 2 +- 10 files changed, 58 insertions(+), 16 deletions(-) create mode 100644 src/assets/image/avatar.png diff --git a/src/App.vue b/src/App.vue index 119eb5e..c9acf6d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,6 +14,7 @@ const headerBg = computed(() => store.state.theme.styles.headerBg) const mainBg = computed(() => store.state.theme.styles.mainBg) const subMenuBg = computed(() => store.state.theme.styles.subMenuBg) const subMenuHover = computed(() => store.state.theme.styles.subMenuHover) +const subMenuActive = computed(() => store.state.theme.styles.subMenuActive) diff --git a/src/main.ts b/src/main.ts index fa7da46..a8c4bae 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,7 @@ import '@/styles/index.scss' //全局样式 import '@/assets/iconfont/iconfont.scss' const app = createApp(App) -import { ElDrawer, ElColorPicker, ElDialog, ElConfigProvider, ElPagination, ElLoading, ElTag, ElButton, ElMenu, ElIcon, ElBreadcrumb, ElBreadcrumbItem, ElInput, ElForm, ElFormItem, ElTooltip, ElDropdown, ElDropdownItem, ElDropdownMenu, ElRow, ElCol, ElScrollbar, ElTable, ElTableColumn } from 'element-plus' +import { ElSwitch, ElDrawer, ElColorPicker, ElDialog, ElConfigProvider, ElPagination, ElLoading, ElTag, ElButton, ElMenu, ElIcon, ElBreadcrumb, ElBreadcrumbItem, ElInput, ElForm, ElFormItem, ElTooltip, ElDropdown, ElDropdownItem, ElDropdownMenu, ElRow, ElCol, ElScrollbar, ElTable, ElTableColumn } from 'element-plus' import 'element-plus/theme-chalk/index.css' app.use(ElButton) app.use(ElMenu) @@ -32,6 +32,7 @@ app.use(ElConfigProvider) app.use(ElDialog) app.use(ElColorPicker) app.use(ElDrawer) +app.use(ElSwitch) import './permission' import './mock/index' diff --git a/src/store/modules/theme.ts b/src/store/modules/theme.ts index c028fa0..d357f2c 100644 --- a/src/store/modules/theme.ts +++ b/src/store/modules/theme.ts @@ -2,6 +2,7 @@ import { ITheme } from '@/interface' const state: ITheme = { styles: { + isLogo: true, sidebarBg: '#304156', headerBg: '#ffffff', mainBg: '#f0f2f5', @@ -9,14 +10,11 @@ const state: ITheme = { menuTextColor: '#bfcbd9', menuTextActiveColor: '#409EFF', subMenuBg: '#1f2d3d', - subMenuHover: '#001528' - } -} -const mutations = { - SET_TEST: (state: ITheme, flag: boolean) => { - state.styles.menuTextColor = 'red' + subMenuHover: '#001528', + subMenuActive: '#001528' } } +const mutations = {} const actions = {} const getters = {} const theme = { diff --git a/src/views/charts/line/Index.vue b/src/views/charts/line/Index.vue index 9e252fb..13078a6 100644 --- a/src/views/charts/line/Index.vue +++ b/src/views/charts/line/Index.vue @@ -3,7 +3,7 @@ * @Author: hutu * @Date: 2022-01-06 14:51:10 * @LastEditors: hutu - * @LastEditTime: 2022-01-17 15:59:49 + * @LastEditTime: 2022-01-17 16:27:30 -->