Vben
2021-04-10 967b28c4c06cf92e9ab90cff51f59a0d6ced5d7b
types/config.d.ts
@@ -8,8 +8,8 @@
} from '/@/enums/appEnum';
import { CacheTypeEnum } from '/@/enums/cacheEnum';
import type { LocaleType } from '/@/locales/types';
import { ThemeMode } from '../build/config/themeConfig';
export type LocaleType = 'zh_CN' | 'en' | 'ru' | 'ja' | 'ko';
export interface MenuSetting {
  bgColor: string;
@@ -33,6 +33,7 @@
}
export interface MultiTabsSetting {
  cache: boolean;
  show: boolean;
  showQuick: boolean;
  canDrag: boolean;
@@ -57,9 +58,9 @@
}
export interface LocaleSetting {
  show: boolean;
  showPicker: boolean;
  // Current language
  lang: LocaleType;
  locale: LocaleType;
  // default language
  fallback: LocaleType;
  // available Locales
@@ -78,12 +79,12 @@
}
export interface ProjectConfig {
  // Multilingual configuration
  locale: LocaleSetting;
  // Storage location of permission related information
  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
@@ -95,7 +96,6 @@
  // 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