| | |
| | | ThemeEnum, |
| | | RouterTransitionEnum, |
| | | SettingButtonPositionEnum, |
| | | SessionTimeoutProcessingEnum, |
| | | } from '/@/enums/appEnum'; |
| | | import { primaryColor, themeMode } from '../../build/config/themeConfig'; |
| | | import { SIDE_BAR_BG_COLOR_LIST, HEADER_PRESET_BG_COLOR_LIST } from './designSetting'; |
| | | |
| | | const primaryColor = '#0960bd'; |
| | | |
| | | // ! You need to clear the browser cache after the change |
| | | const setting: ProjectConfig = { |
| | | // Whether to show the configuration button |
| | | showSettingButton: true, |
| | | |
| | | // Whether to show the theme switch button |
| | | showDarkModeToggle: true, |
| | | |
| | | // `Settings` button position |
| | | settingButtonPosition: SettingButtonPositionEnum.AUTO, |
| | | |
| | | // Permission mode |
| | | permissionMode: PermissionModeEnum.BACK, |
| | | permissionMode: PermissionModeEnum.ROUTE_MAPPING, |
| | | |
| | | // Permission-related cache is stored in sessionStorage or localStorage |
| | | permissionCacheType: CacheTypeEnum.SESSION, |
| | | permissionCacheType: CacheTypeEnum.LOCAL, |
| | | |
| | | // Session timeout processing |
| | | sessionTimeoutProcessing: SessionTimeoutProcessingEnum.ROUTE_JUMP, |
| | | |
| | | // color |
| | | themeColor: primaryColor, |
| | | |
| | | // TODO dark theme |
| | | themeMode: themeMode, |
| | | |
| | | // Website gray mode, open for possible mourning dates |
| | | grayMode: false, |
| | |
| | | // Header configuration |
| | | headerSetting: { |
| | | // header bg color |
| | | bgColor: '#ffffff', |
| | | bgColor: HEADER_PRESET_BG_COLOR_LIST[0], |
| | | // Fixed at the top |
| | | fixed: true, |
| | | // Whether to show top |
| | |
| | | theme: ThemeEnum.LIGHT, |
| | | // Whether to enable the lock screen function |
| | | useLockPage: true, |
| | | |
| | | // Whether to show the full screen button |
| | | showFullScreen: true, |
| | | // Whether to show the document button |
| | |
| | | showNotice: true, |
| | | // Whether to display the menu search |
| | | showSearch: true, |
| | | showApi: true, |
| | | }, |
| | | |
| | | // Menu configuration |
| | | menuSetting: { |
| | | // sidebar menu bg color |
| | | bgColor: '#001529', |
| | | bgColor: SIDE_BAR_BG_COLOR_LIST[0], |
| | | // Whether to fix the left menu |
| | | fixed: true, |
| | | // Menu collapse |
| | | collapsed: false, |
| | | // When sider hide because of the responsive layout |
| | | siderHidden: false, |
| | | // Whether to display the menu name when folding the menu |
| | | collapsedShowTitle: false, |
| | | // Whether it can be dragged |
| | |
| | | |
| | | // Multi-label |
| | | multiTabsSetting: { |
| | | cache: false, |
| | | // Turn on |
| | | show: true, |
| | | // Is it possible to drag and drop sorting tabs |
| | | canDrag: true, |
| | | // Turn on quick actions |
| | | showQuick: true, |
| | | |
| | | // Whether to show the refresh button |
| | | showRedo: true, |
| | | // Whether to show the collapse button |
| | |
| | | // Transition Setting |
| | | transitionSetting: { |
| | | // Whether to open the page switching animation |
| | | // The disabled state will also disable pageLoadinng |
| | | // The disabled state will also disable pageLoading |
| | | enable: true, |
| | | |
| | | // Route basic switching animation |