File tree Expand file tree Collapse file tree 6 files changed +759
-772
lines changed Expand file tree Collapse file tree 6 files changed +759
-772
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
+ ## 1.6.1 (2022-01-06)
4
+
5
+ ### 🐛 Bug Fixes
6
+ - 修复 ` 项目配置 ` 打开空白
7
+ - 修复 ` 多标签 ` 背景和字体色变量丢失
8
+
9
+ - ### ✨ Features
10
+ - 依赖升级
11
+
3
12
## 1.6.0 (2021-12-24)
4
13
5
14
### 🐛 Bug Fixes
Original file line number Diff line number Diff line change 1
1
## 留步
2
- 少侠留步,早知如此绊人心,何如当初莫相识,右上角免费的 ` Star ` 点一点,帮我们突破一下 ` 1.5k ` ,谢谢!O(∩_ ∩)O
2
+ 少侠留步,早知如此绊人心,何如当初莫相识,右上角免费的 ` Star ` 点一点,帮我们突破一下 ` 2k ` ,谢谢!O(∩_ ∩)O
3
3
4
4
## 简介
5
5
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " naive-ui-admin" ,
3
- "version" : " 1.6.0 " ,
3
+ "version" : " 1.6.1 " ,
4
4
"author" : {
5
5
"name" : " Ahjung" ,
6
6
"email" : " 735878602@qq.com" ,
Original file line number Diff line number Diff line change 1
1
<template >
2
- <n-drawer v-model:show =" isDrawer" :width =" width" :placement =" placement" :native-scrollbar = " false " >
3
- <n-drawer-content :title =" title" >
2
+ <n-drawer v-model:show =" isDrawer" :width =" width" :placement =" placement" >
3
+ <n-drawer-content :title =" title" :native-scrollbar = " false " >
4
4
<div class =" drawer" >
5
5
<n-divider title-placement =" center" >主题</n-divider >
6
6
358
358
border-radius : 2px ;
359
359
margin : 0 5px 5px 0 ;
360
360
text-align : center ;
361
-
361
+ line-height : 14 px ;
362
362
.n-icon {
363
363
color : #fff ;
364
364
}
Original file line number Diff line number Diff line change 115
115
import elementResizeDetectorMaker from ' element-resize-detector' ;
116
116
import { useDesignSetting } from ' @/hooks/setting/useDesignSetting' ;
117
117
import { useProjectSettingStore } from ' @/store/modules/projectSetting' ;
118
+ import { useThemeVars } from ' naive-ui' ;
118
119
119
120
export default defineComponent ({
120
121
name: ' TabsView' ,
145
146
const navWrap: any = ref (null );
146
147
const isCurrent = ref (false );
147
148
149
+ const themeVars = useThemeVars ();
150
+
151
+ const getCardColor = computed (() => {
152
+ return themeVars .value .cardColor ;
153
+ });
154
+
155
+ const getBaseColor = computed (() => {
156
+ return themeVars .value .textColor1 ;
157
+ });
158
+
148
159
const state = reactive ({
149
160
activeKey: route .fullPath ,
150
161
scrollable: false ,
505
516
onClickOutside ,
506
517
getDarkTheme ,
507
518
getAppTheme ,
519
+ getCardColor ,
520
+ getBaseColor ,
508
521
};
509
522
},
510
523
});
565
578
overflow : hidden ;
566
579
567
580
&-item {
568
- background : var ( --color );
569
- color : var ( --text-color );
581
+ background : v - bind(getCardColor );
582
+ color : v - bind(getBaseColor );
570
583
height : 32px ;
571
584
padding : 6px 16px 4px ;
572
585
border-radius : 3px ;
You can’t perform that action at this time.
0 commit comments