mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-25 05:50:18 +08:00
99 lines
2.4 KiB
TypeScript
99 lines
2.4 KiB
TypeScript
import { EnumThemeLayoutMode, EnumThemeTabMode, EnumThemeHorizontalMenuPosition, EnumThemeAnimateMode } from '@/enum';
|
|
import type { ThemeSetting } from '@/interface';
|
|
|
|
const themeColorList = [
|
|
'#1890ff',
|
|
'#009688',
|
|
'#536dfe',
|
|
'#409EFF',
|
|
'#ff5c93',
|
|
'#0960bd',
|
|
'#ee4f12',
|
|
'#2d8cf0',
|
|
'#0096c7',
|
|
'#9c27b0',
|
|
'#ff9800',
|
|
'#FF3D68',
|
|
'#00C1D4',
|
|
'#71EFA3',
|
|
'#171010',
|
|
'#78DEC7',
|
|
'#1768AC',
|
|
'#fadb14',
|
|
'#FC5404'
|
|
];
|
|
|
|
const defaultThemeSetting: ThemeSetting = {
|
|
darkMode: false,
|
|
layout: {
|
|
minWidth: 900,
|
|
mode: 'vertical',
|
|
modeList: [
|
|
{ value: 'vertical', label: EnumThemeLayoutMode.vertical },
|
|
{ value: 'vertical-mix', label: EnumThemeLayoutMode['vertical-mix'] },
|
|
{ value: 'horizontal', label: EnumThemeLayoutMode.horizontal },
|
|
{ value: 'horizontal-mix', label: EnumThemeLayoutMode['horizontal-mix'] }
|
|
]
|
|
},
|
|
themeColor: themeColorList[0],
|
|
themeColorList,
|
|
otherColor: {
|
|
info: '#2080f0',
|
|
success: '#52c41a',
|
|
warning: '#faad14',
|
|
error: '#f5222d'
|
|
},
|
|
fixedHeaderAndTab: true,
|
|
showReload: true,
|
|
header: {
|
|
height: 56,
|
|
crumb: {
|
|
visible: true,
|
|
showIcon: true
|
|
}
|
|
},
|
|
tab: {
|
|
visible: true,
|
|
height: 44,
|
|
mode: 'chrome',
|
|
modeList: [
|
|
{ value: 'chrome', label: EnumThemeTabMode.chrome },
|
|
{ value: 'button', label: EnumThemeTabMode.button }
|
|
],
|
|
isCache: true
|
|
},
|
|
sider: {
|
|
width: 200,
|
|
collapsedWidth: 64,
|
|
mixWidth: 80,
|
|
mixCollapsedWidth: 48,
|
|
mixChildMenuWidth: 200
|
|
},
|
|
menu: {
|
|
horizontalPosition: 'flex-start',
|
|
horizontalPositionList: [
|
|
{ value: 'flex-start', label: EnumThemeHorizontalMenuPosition['flex-start'] },
|
|
{ value: 'center', label: EnumThemeHorizontalMenuPosition.center },
|
|
{ value: 'flex-end', label: EnumThemeHorizontalMenuPosition['flex-end'] }
|
|
]
|
|
},
|
|
footer: {
|
|
fixed: true,
|
|
height: 48
|
|
},
|
|
page: {
|
|
animate: true,
|
|
animateMode: 'fade-slide',
|
|
animateModeList: [
|
|
{ value: 'fade-slide', label: EnumThemeAnimateMode['fade-slide'] },
|
|
{ value: 'fade', label: EnumThemeAnimateMode.fade },
|
|
{ value: 'fade-bottom', label: EnumThemeAnimateMode['fade-bottom'] },
|
|
{ value: 'fade-scale', label: EnumThemeAnimateMode['fade-scale'] },
|
|
{ value: 'zoom-fade', label: EnumThemeAnimateMode['zoom-fade'] },
|
|
{ value: 'zoom-out', label: EnumThemeAnimateMode['zoom-out'] }
|
|
]
|
|
}
|
|
};
|
|
|
|
export const themeSetting = defaultThemeSetting;
|