diff options
| author | pany <[email protected]> | 2023-07-19 13:11:52 +0800 |
|---|---|---|
| committer | pany <[email protected]> | 2023-07-19 13:11:52 +0800 |
| commit | 4571a12742a3674a3d5f7f3444bf78c92b9ff1ae (patch) | |
| tree | 3f72ae722f72ad758888abb2d77b166ed625866f /src | |
| parent | 58cfdebcca56fe9789642acb794e917b7ac01b48 (diff) | |
style: 优化顶部布局模式样式
Diffstat (limited to 'src')
| -rw-r--r-- | src/layouts/components/NavigationBar/index.vue | 7 | ||||
| -rw-r--r-- | src/styles/variables.css | 2 |
2 files changed, 8 insertions, 1 deletions
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; |
