build(projects): update tsconfig、eslintrc

This commit is contained in:
Soybean
2022-03-12 16:21:40 +08:00
parent 4093dcd6dc
commit 75de2b0604
131 changed files with 1174 additions and 1140 deletions

View File

@ -13,8 +13,8 @@ interface TraditionColor {
export const traditionColors = colorJson as TraditionColor[];
export function isInTraditionColors(color: string) {
return traditionColors.some(item => {
const flag = item.data.some(v => v.color === color);
return traditionColors.some((item) => {
const flag = item.data.some((v) => v.color === color);
return flag;
});
}

View File

@ -26,7 +26,7 @@ const themeColorList = [
'#ffb300',
'#fdd835',
'#6d4c41',
'#546e7a'
'#546e7a',
];
const defaultThemeSetting: ThemeSetting = {
@ -38,8 +38,8 @@ const defaultThemeSetting: ThemeSetting = {
{ value: 'vertical', label: EnumThemeLayoutMode.vertical },
{ value: 'vertical-mix', label: EnumThemeLayoutMode['vertical-mix'] },
{ value: 'horizontal', label: EnumThemeLayoutMode.horizontal },
{ value: 'horizontal-mix', label: EnumThemeLayoutMode['horizontal-mix'] }
]
{ value: 'horizontal-mix', label: EnumThemeLayoutMode['horizontal-mix'] },
],
},
themeColor: themeColorList[0],
themeColorList,
@ -47,7 +47,7 @@ const defaultThemeSetting: ThemeSetting = {
info: '#2080f0',
success: '#52c41a',
warning: '#faad14',
error: '#f5222d'
error: '#f5222d',
},
isCustomizeInfoColor: false,
fixedHeaderAndTab: true,
@ -56,8 +56,8 @@ const defaultThemeSetting: ThemeSetting = {
height: 56,
crumb: {
visible: true,
showIcon: true
}
showIcon: true,
},
},
tab: {
visible: true,
@ -65,28 +65,28 @@ const defaultThemeSetting: ThemeSetting = {
mode: 'chrome',
modeList: [
{ value: 'chrome', label: EnumThemeTabMode.chrome },
{ value: 'button', label: EnumThemeTabMode.button }
{ value: 'button', label: EnumThemeTabMode.button },
],
isCache: true
isCache: true,
},
sider: {
width: 220,
collapsedWidth: 64,
mixWidth: 80,
mixCollapsedWidth: 48,
mixChildMenuWidth: 200
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'] }
]
{ value: 'flex-end', label: EnumThemeHorizontalMenuPosition['flex-end'] },
],
},
footer: {
fixed: false,
height: 48
height: 48,
},
page: {
animate: true,
@ -97,9 +97,9 @@ const defaultThemeSetting: ThemeSetting = {
{ 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'] }
]
}
{ value: 'zoom-out', label: EnumThemeAnimateMode['zoom-out'] },
],
},
};
export const themeSetting = (jsonSetting as ThemeSetting) || defaultThemeSetting;