From 4571a12742a3674a3d5f7f3444bf78c92b9ff1ae Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Wed, 19 Jul 2023 13:11:52 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E6=A8=A1=E5=BC=8F=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/NavigationBar/index.vue | 7 +++++++ src/styles/variables.css | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/layouts/components/NavigationBar/index.vue b/src/layouts/components/NavigationBar/index.vue index 40c49ac..48247b1 100644 --- a/src/layouts/components/NavigationBar/index.vue +++ b/src/layouts/components/NavigationBar/index.vue @@ -98,6 +98,13 @@ const logout = () => { :deep(.el-menu) { background-color: transparent; } + :deep(.el-sub-menu) { + &.is-active { + .el-sub-menu__title { + color: var(--el-menu-active-color) !important; + } + } + } } .right-menu { margin-right: 10px; diff --git a/src/styles/variables.css b/src/styles/variables.css index 81b6328..fae92c1 100644 --- a/src/styles/variables.css +++ b/src/styles/variables.css @@ -7,7 +7,7 @@ --v3-header-bg-color: #ffffff; /** NavigationBar 组件 */ --v3-navigationbar-height: 50px; - /** Sidebar 组件 */ + /** Sidebar 组件(左侧模式全部生效、顶部模式全部不生效、混合模式非颜色部分生效) */ --v3-sidebar-width: 220px; --v3-sidebar-hide-width: 58px; --v3-sidebar-menu-item-height: 60px;