mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-08 23:42:27 +08:00
修复:项目配置 空白,多标签背景色 bug
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 1.6.1 (2022-01-06)
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
- 修复 `项目配置` 打开空白
|
||||
- 修复 `多标签` 背景和字体色变量丢失
|
||||
|
||||
- ### ✨ Features
|
||||
- 依赖升级
|
||||
|
||||
## 1.6.0 (2021-12-24)
|
||||
|
||||
### 🐛 Bug Fixes
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
## 留步
|
||||
少侠留步,早知如此绊人心,何如当初莫相识,右上角免费的 `Star` 点一点,帮我们突破一下 `1.5k`,谢谢!O(∩_∩)O
|
||||
少侠留步,早知如此绊人心,何如当初莫相识,右上角免费的 `Star` 点一点,帮我们突破一下 `2k`,谢谢!O(∩_∩)O
|
||||
|
||||
## 简介
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "naive-ui-admin",
|
||||
"version": "1.6.0",
|
||||
"version": "1.6.1",
|
||||
"author": {
|
||||
"name": "Ahjung",
|
||||
"email": "735878602@qq.com",
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -358,7 +358,7 @@
|
||||
border-radius: 2px;
|
||||
margin: 0 5px 5px 0;
|
||||
text-align: center;
|
||||
|
||||
line-height: 14px;
|
||||
.n-icon {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
@@ -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,
|
||||
@@ -505,6 +516,8 @@
|
||||
onClickOutside,
|
||||
getDarkTheme,
|
||||
getAppTheme,
|
||||
getCardColor,
|
||||
getBaseColor,
|
||||
};
|
||||
},
|
||||
});
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user