You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
2.4 KiB
TypeScript
108 lines
2.4 KiB
TypeScript
import { primaryColor } from './'
|
|
import {
|
|
AlignEnum,
|
|
ContentLayoutEnum,
|
|
MenuModeEnum,
|
|
MixSidebarTriggerEnum,
|
|
NavBarModeEnum,
|
|
PermissionModeEnum,
|
|
PlacementEnum,
|
|
RouterTransitionEnum,
|
|
SessionTimeoutProcessingEnum,
|
|
SettingButtonPositionEnum,
|
|
ThemeEnum,
|
|
TriggerEnum,
|
|
} from '~/constants'
|
|
|
|
// ! You need to clear the browser cache after the change
|
|
export const projectSetting: DefineAppConfigOptions = {
|
|
theme: ThemeEnum.LIGHT,
|
|
navBarMode: NavBarModeEnum.SIDEBAR,
|
|
themeColor: primaryColor,
|
|
showThemeModeToggle: true,
|
|
openKeepAlive: true,
|
|
useOpenBackTop: true,
|
|
closeMessageOnSwitch: false,
|
|
removeAllHttpPending: true,
|
|
// permissionCacheType: CacheTypeEnum.LOCAL,
|
|
settingButtonPosition: SettingButtonPositionEnum.AUTO,
|
|
openSettingDrawer: false,
|
|
permissionMode: PermissionModeEnum.PERM,
|
|
sessionTimeoutProcessing: SessionTimeoutProcessingEnum.ROUTE_JUMP,
|
|
grayMode: false,
|
|
colorWeak: false,
|
|
lockTime: 0,
|
|
useLockPage: false,
|
|
canEmbedIFramePage: true,
|
|
closeMixSidebarOnChange: false,
|
|
sidebar: {
|
|
theme: ThemeEnum.DARK,
|
|
show: true,
|
|
visible: true,
|
|
fixed: false,
|
|
width: 210,
|
|
mixSidebarWidth: 80,
|
|
collapsedWidth: 48,
|
|
collapsed: false,
|
|
trigger: TriggerEnum.CENTER,
|
|
},
|
|
menu: {
|
|
show: true,
|
|
canDrag: false,
|
|
split: false,
|
|
mode: MenuModeEnum.VERTICAL,
|
|
accordion: false,
|
|
collapsedShowTitle: false,
|
|
mixSideTrigger: MixSidebarTriggerEnum.CLICK,
|
|
mixSideFixed: false,
|
|
topMenuAlign: AlignEnum.START,
|
|
dropdownPlacement: PlacementEnum.TOP_START,
|
|
subMenuWidth: 0,
|
|
},
|
|
header: {
|
|
theme: ThemeEnum.DARK,
|
|
show: true,
|
|
visible: true,
|
|
fixed: false,
|
|
height: 48,
|
|
showDoc: true,
|
|
showBreadCrumb: true,
|
|
showBreadCrumbIcon: true,
|
|
showFullScreen: true,
|
|
showNotice: true,
|
|
showSearch: true,
|
|
showLocalePicker: true,
|
|
showSetting: true,
|
|
},
|
|
logo: {
|
|
show: true,
|
|
visible: true,
|
|
showTitle: true,
|
|
},
|
|
tabTar: {
|
|
show: true,
|
|
visible: true,
|
|
height: 36,
|
|
cache: true,
|
|
canDrag: false,
|
|
showFold: true,
|
|
showQuick: true,
|
|
showRedo: true,
|
|
},
|
|
content: {
|
|
fullScreen: false,
|
|
mode: ContentLayoutEnum.FULL,
|
|
},
|
|
footer: {
|
|
height: 60,
|
|
show: false,
|
|
visible: false,
|
|
},
|
|
transition: {
|
|
enable: true,
|
|
basicTransition: RouterTransitionEnum.FADE_SIDE,
|
|
openPageLoading: true,
|
|
openNProgress: false,
|
|
},
|
|
}
|