mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
feat: update
This commit is contained in:
parent
af6a1b03cd
commit
02f2cd9747
@ -16,7 +16,7 @@ import { debounce } from "/@/utils/debounce";
|
|||||||
import { themeColorsType } from "../../types";
|
import { themeColorsType } from "../../types";
|
||||||
import { useAppStoreHook } from "/@/store/modules/app";
|
import { useAppStoreHook } from "/@/store/modules/app";
|
||||||
import { storageLocal, storageSession } from "/@/utils/storage";
|
import { storageLocal, storageSession } from "/@/utils/storage";
|
||||||
import { toggleTheme } from "@zougt/vite-plugin-theme-preprocessor/dist/browser-utils";
|
import { addClassNameToHtmlTag } from "@zougt/vite-plugin-theme-preprocessor/dist/browser-utils";
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { isSelect } = useCssModule();
|
const { isSelect } = useCssModule();
|
||||||
@ -198,10 +198,8 @@ function setLayoutModel(layout: string) {
|
|||||||
// 设置导航主题色
|
// 设置导航主题色
|
||||||
function setLayoutThemeColor(theme: string) {
|
function setLayoutThemeColor(theme: string) {
|
||||||
layoutTheme.value.theme = theme;
|
layoutTheme.value.theme = theme;
|
||||||
toggleTheme({
|
addClassNameToHtmlTag({
|
||||||
scopeName: `layout-theme-${theme}`,
|
scopeName: `layout-theme-${theme}`
|
||||||
hasRemoveScopeName: false,
|
|
||||||
themeLinkTagInjectTo: "head"
|
|
||||||
});
|
});
|
||||||
instance.layout = { layout: useAppStoreHook().layout, theme };
|
instance.layout = { layout: useAppStoreHook().layout, theme };
|
||||||
}
|
}
|
||||||
|
@ -1 +1,9 @@
|
|||||||
// 极光绿
|
// 极光绿
|
||||||
|
|
||||||
|
$subMenuActiveText: #409eff;
|
||||||
|
$menuBg: #93f9b9;
|
||||||
|
$menuHover: #e0ebf6;
|
||||||
|
$subMenuBg: #fff;
|
||||||
|
$subMenuHover: #e0ebf6;
|
||||||
|
$navTextColor: #7a80b4;
|
||||||
|
$menuText: #7a80b4;
|
||||||
|
@ -16,4 +16,4 @@ $subMenuBg: #1f2d3d !default;
|
|||||||
// 鼠标覆盖子菜单时的背景
|
// 鼠标覆盖子菜单时的背景
|
||||||
$subMenuHover: #001528 !default;
|
$subMenuHover: #001528 !default;
|
||||||
$navTextColor: #fff !default;
|
$navTextColor: #fff !default;
|
||||||
$menuText: #7a80b4;
|
$menuText: #7a80b4 !default;
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
// 薄暮
|
// 薄暮
|
||||||
|
|
||||||
// 菜单选中后字体样式
|
$subMenuActiveText: #409eff;
|
||||||
$subMenuActiveText: #f4f4f5 !default;
|
$menuBg: #ff5f6d;
|
||||||
//菜单背景
|
$menuHover: #e0ebf6;
|
||||||
$menuBg: #1b2a47 !default;
|
$subMenuBg: #fff;
|
||||||
// 鼠标覆盖菜单时的背景
|
$subMenuHover: #e0ebf6;
|
||||||
$menuHover: #2a395b !default;
|
$navTextColor: #7a80b4;
|
||||||
// 子菜单背景
|
|
||||||
$subMenuBg: #1f2d3d !default;
|
|
||||||
// 鼠标覆盖子菜单时的背景
|
|
||||||
$subMenuHover: #001528 !default;
|
|
||||||
$navTextColor: #fff !default;
|
|
||||||
$menuText: #7a80b4;
|
$menuText: #7a80b4;
|
||||||
|
@ -1 +1,9 @@
|
|||||||
// 极客蓝
|
// 极客蓝
|
||||||
|
|
||||||
|
$subMenuActiveText: #409eff;
|
||||||
|
$menuBg: #302b63;
|
||||||
|
$menuHover: #e0ebf6;
|
||||||
|
$subMenuBg: #fff;
|
||||||
|
$subMenuHover: #e0ebf6;
|
||||||
|
$navTextColor: #7a80b4;
|
||||||
|
$menuText: #7a80b4;
|
||||||
|
@ -1 +1,9 @@
|
|||||||
// 日暮
|
// 日暮
|
||||||
|
|
||||||
|
$subMenuActiveText: #409eff;
|
||||||
|
$menuBg: #ffc371;
|
||||||
|
$menuHover: #e0ebf6;
|
||||||
|
$subMenuBg: #fff;
|
||||||
|
$subMenuHover: #e0ebf6;
|
||||||
|
$navTextColor: #7a80b4;
|
||||||
|
$menuText: #7a80b4;
|
||||||
|
@ -1 +1,9 @@
|
|||||||
// 明青
|
// 明青
|
||||||
|
|
||||||
|
$subMenuActiveText: #409eff;
|
||||||
|
$menuBg: rgb(19, 194, 194);
|
||||||
|
$menuHover: #e0ebf6;
|
||||||
|
$subMenuBg: #fff;
|
||||||
|
$subMenuHover: #e0ebf6;
|
||||||
|
$navTextColor: #7a80b4;
|
||||||
|
$menuText: #7a80b4;
|
||||||
|
@ -1 +1,9 @@
|
|||||||
// 酱紫
|
// 酱紫
|
||||||
|
|
||||||
|
$subMenuActiveText: #409eff;
|
||||||
|
$menuBg: #232526;
|
||||||
|
$menuHover: #e0ebf6;
|
||||||
|
$subMenuBg: #fff;
|
||||||
|
$subMenuHover: #e0ebf6;
|
||||||
|
$navTextColor: #7a80b4;
|
||||||
|
$menuText: #7a80b4;
|
||||||
|
@ -1 +1,9 @@
|
|||||||
// 火山
|
// 火山
|
||||||
|
|
||||||
|
$subMenuActiveText: #409eff;
|
||||||
|
$menuBg: #200122;
|
||||||
|
$menuHover: #e0ebf6;
|
||||||
|
$subMenuBg: #fff;
|
||||||
|
$subMenuHover: #e0ebf6;
|
||||||
|
$navTextColor: #7a80b4;
|
||||||
|
$menuText: #7a80b4;
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
.sidebar-container {
|
.sidebar-container {
|
||||||
transition: width 0.28s;
|
transition: width 0.28s;
|
||||||
width: $sideBarWidth !important;
|
width: $sideBarWidth !important;
|
||||||
background-color: $menuBg;
|
background: $menuBg;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
@ -158,7 +158,7 @@
|
|||||||
.horizontal-header {
|
.horizontal-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
background-color: $menuBg;
|
background: $menuBg;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 62px;
|
height: 62px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user