Skip to content

Commit

Permalink
修复:项目配置 空白,多标签背景色 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jekip committed Jan 6, 2022
1 parent c0ff898 commit 8288f0a
Show file tree
Hide file tree
Showing 6 changed files with 759 additions and 772 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# CHANGELOG

## 1.6.1 (2022-01-06)

### 🐛 Bug Fixes
- 修复 `项目配置` 打开空白
- 修复 `多标签` 背景和字体色变量丢失

- ### ✨ Features
- 依赖升级

## 1.6.0 (2021-12-24)

### 🐛 Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## 留步
少侠留步,早知如此绊人心,何如当初莫相识,右上角免费的 `Star` 点一点,帮我们突破一下 `1.5k`,谢谢!O(∩_∩)O
少侠留步,早知如此绊人心,何如当初莫相识,右上角免费的 `Star` 点一点,帮我们突破一下 `2k`,谢谢!O(∩_∩)O

## 简介

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "naive-ui-admin",
"version": "1.6.0",
"version": "1.6.1",
"author": {
"name": "Ahjung",
"email": "735878602@qq.com",
Expand Down
6 changes: 3 additions & 3 deletions src/layout/components/Header/ProjectSetting.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<n-drawer v-model:show="isDrawer" :width="width" :placement="placement" :native-scrollbar="false">
<n-drawer-content :title="title">
<n-drawer v-model:show="isDrawer" :width="width" :placement="placement">
<n-drawer-content :title="title" :native-scrollbar="false">
<div class="drawer">
<n-divider title-placement="center">主题</n-divider>

Expand Down Expand Up @@ -358,7 +358,7 @@
border-radius: 2px;
margin: 0 5px 5px 0;
text-align: center;
line-height: 14px;
.n-icon {
color: #fff;
}
Expand Down
17 changes: 15 additions & 2 deletions src/layout/components/TagsView/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
import elementResizeDetectorMaker from 'element-resize-detector';
import { useDesignSetting } from '@/hooks/setting/useDesignSetting';
import { useProjectSettingStore } from '@/store/modules/projectSetting';
import { useThemeVars } from 'naive-ui';
export default defineComponent({
name: 'TabsView',
Expand Down Expand Up @@ -145,6 +146,16 @@
const navWrap: any = ref(null);
const isCurrent = ref(false);
const themeVars = useThemeVars();
const getCardColor = computed(() => {
return themeVars.value.cardColor;
});
const getBaseColor = computed(() => {
return themeVars.value.textColor1;
});
const state = reactive({
activeKey: route.fullPath,
scrollable: false,
Expand Down Expand Up @@ -505,6 +516,8 @@
onClickOutside,
getDarkTheme,
getAppTheme,
getCardColor,
getBaseColor,
};
},
});
Expand Down Expand Up @@ -565,8 +578,8 @@
overflow: hidden;
&-item {
background: var(--color);
color: var(--text-color);
background: v-bind(getCardColor);
color: v-bind(getBaseColor);
height: 32px;
padding: 6px 16px 4px;
border-radius: 3px;
Expand Down
Loading

0 comments on commit 8288f0a

Please sign in to comment.