File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -96,17 +96,17 @@ const leftSides = ref([
96
96
const sideClick = (item ) => {
97
97
leftType .value = item .infoType
98
98
}
99
- // TODO @dhb52: 侧边栏样式,在黑暗模式下,颜色会不对。是不是可以读取主题色哈;
100
99
</script >
100
+
101
101
<style lang="scss" scoped>
102
102
.side-item-list {
103
103
top : 0 ;
104
104
bottom : 0 ;
105
105
left : 0 ;
106
106
z-index : 1 ;
107
107
font-size : 14px ;
108
- background-color : white ;
109
- border : 1px solid #e6e6e6 ;
108
+ background-color : var ( --el-bg-color ) ;
109
+ border : 1px solid var ( --el-border-color ) ;
110
110
border-radius : 5px ;
111
111
112
112
.side-item {
@@ -115,21 +115,17 @@ const sideClick = (item) => {
115
115
padding : 0 20px ;
116
116
line-height : 50px ;
117
117
cursor : pointer ;
118
-
119
- i {
120
- color : #999 ;
121
- }
122
118
}
123
119
}
124
120
125
121
.side-item-default {
126
- color : #333 ;
122
+ color : var ( --el-text-color-primary ) ;
127
123
border-right : 2px solid transparent ;
128
124
}
129
125
130
126
.side-item-select {
131
- color : #409eff ;
132
- background-color : #ecf5ff ;
127
+ color : var ( --el-color-primary ) ;
128
+ background-color : var ( --el-color-primary-light-9 ) ;
133
129
border-right : 2px solid var (--el-color-primary );
134
130
}
135
131
You can’t perform that action at this time.
0 commit comments