File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed
Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ $transition-time: 0.35s;
7373}
7474
7575.sidebar-container {
76+ background-color : var (--el-menu-bg-color );
7677 transition : width $transition-time ;
7778 width : var (--v3-sidebar-width ) !important ;
7879 height : 100% ;
Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ const sidebarMenuHoverBgColor = computed(() => {
4343const tipLineWidth = computed (() => {
4444 return ! isTop .value ? " 2px" : " 0px"
4545})
46- /** 当为顶部模式时隐藏垂直滚动条 */
47- const hiddenScrollbarVerticalBar = computed (() => isTop .value ? " none" : " block" )
4846 </script >
4947
5048<template >
@@ -87,37 +85,27 @@ const hiddenScrollbarVerticalBar = computed(() => isTop.value ? "none" : "block"
8785
8886.has-logo {
8987 .el-scrollbar {
90- // 多 1% 是为了在左侧模式时侧边栏最底部不显示 1px 左右的白色线条
91- height : calc (101% - var (--v3-header-height ));
88+ height : calc (100% - var (--v3-header-height ));
9289 }
9390}
9491
9592.el-scrollbar {
96- // 多 1% 是为了在顶部模式时防止垂直滚动
97- height : 101% ;
93+ height : 100% ;
9894 :deep (.scrollbar-wrapper ) {
9995 // 限制水平宽度
10096 overflow-x : hidden !important ;
101- .el-scrollbar__view {
102- height : 100% ;
103- }
10497 }
10598 // 滚动条
10699 :deep(.el-scrollbar__bar ) {
107100 & .is-horizontal {
108101 // 隐藏水平滚动条
109102 display : none ;
110103 }
111- & .is-vertical {
112- // 当为顶部模式时隐藏垂直滚动条
113- display : v-bind (hiddenScrollbarVerticalBar );
114- }
115104 }
116105}
117106
118107.el-menu {
119108 border : none ;
120- min-height : 100% ;
121109 width : 100% !important ;
122110}
123111
You can’t perform that action at this time.
0 commit comments