feat(layouts): 添加侧边栏/头部的反转模式来增加对比度

This commit is contained in:
元家怿
2022-04-27 16:39:20 +08:00
committed by Soybean
parent a782461453
commit 861c8b9852
15 changed files with 56 additions and 13 deletions

View File

@ -38,6 +38,14 @@ export const useThemeStore = defineStore('theme-store', {
setLayoutMode(mode: EnumType.ThemeLayoutMode) {
this.layout.mode = mode;
},
/** 设置侧边栏反转色 */
setSiderInverted(isInverted: boolean) {
this.sider.inverted = isInverted;
},
/** 设置头部反转色 */
setHeaderInverted(isInverted: boolean) {
this.header.inverted = isInverted;
},
/** 设置系统主题颜色 */
setThemeColor(themeColor: string) {
this.themeColor = themeColor;