feat: dark mode

This commit is contained in:
Vben
2021-04-07 23:14:51 +08:00
parent f05cc6d34e
commit 5b8eb4a49a
109 changed files with 871 additions and 2873 deletions

4
types/config.d.ts vendored
View File

@@ -8,7 +8,6 @@ import {
} from '/@/enums/appEnum';
import { CacheTypeEnum } from '/@/enums/cacheEnum';
import { ThemeMode } from '../build/config/themeConfig';
export type LocaleType = 'zh_CN' | 'en' | 'ru' | 'ja' | 'ko';
@@ -83,6 +82,8 @@ export interface ProjectConfig {
permissionCacheType: CacheTypeEnum;
// Whether to show the configuration button
showSettingButton: boolean;
// Whether to show the theme switch button
showDarkModeToggle: boolean;
// Configure where the button is displayed
settingButtonPosition: SettingButtonPositionEnum;
// Permission mode
@@ -94,7 +95,6 @@ export interface ProjectConfig {
// Theme color
themeColor: string;
themeMode: ThemeMode;
// The main interface is displayed in full screen, the menu is not displayed, and the top
fullContent: boolean;
// content width