Skip to content

Commit a2de066

Browse files
committed
fix: Backlog侧边栏样式黑暗模式显示问题
1 parent ae3d44d commit a2de066

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/views/crm/backlog/index.vue

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,17 @@ const leftSides = ref([
9696
const sideClick = (item) => {
9797
leftType.value = item.infoType
9898
}
99-
// TODO @dhb52: 侧边栏样式,在黑暗模式下,颜色会不对。是不是可以读取主题色哈;
10099
</script>
100+
101101
<style lang="scss" scoped>
102102
.side-item-list {
103103
top: 0;
104104
bottom: 0;
105105
left: 0;
106106
z-index: 1;
107107
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);
110110
border-radius: 5px;
111111
112112
.side-item {
@@ -115,21 +115,17 @@ const sideClick = (item) => {
115115
padding: 0 20px;
116116
line-height: 50px;
117117
cursor: pointer;
118-
119-
i {
120-
color: #999;
121-
}
122118
}
123119
}
124120
125121
.side-item-default {
126-
color: #333;
122+
color: var(--el-text-color-primary);
127123
border-right: 2px solid transparent;
128124
}
129125
130126
.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);
133129
border-right: 2px solid var(--el-color-primary);
134130
}
135131

0 commit comments

Comments
 (0)