|
|
@@ -18,7 +18,7 @@ const loopMenuItem = (menus: MenuDataItem[]): MenuDataItem[] => { |
|
|
|
return menus?.map(({ icon, routes, ...item }) => ( |
|
|
|
{ |
|
|
|
...item, |
|
|
|
icon: (icon as string) !='' ? React.createElement((Icon as any)[icon as string]):React.createElement((Icon as any)['SettingOutlined']), |
|
|
|
icon: '', |
|
|
|
routes: routes && loopMenuItem(routes), |
|
|
|
})); |
|
|
|
}; |
|
|
@@ -94,44 +94,44 @@ export const layout: RunTimeLayoutConfig = ({ initialState }) => { |
|
|
|
content: '黑菠萝科技研发部', |
|
|
|
}, |
|
|
|
token: { |
|
|
|
layout: { |
|
|
|
bgLayout: '#001529' |
|
|
|
}, |
|
|
|
// colorBgAppListIconHover: '#fff', |
|
|
|
// colorTextAppListIconHover: 'rgba(255,255,255,0.95)', |
|
|
|
// colorTextAppListIcon: 'rgba(255,255,255,0.85)', |
|
|
|
sider: { |
|
|
|
// colorBgCollapsedButton: '#0960bd', |
|
|
|
// colorTextCollapsedButtonHover: '#fff', |
|
|
|
// colorTextCollapsedButton: '#fff', |
|
|
|
colorMenuBackground: '#001529',//菜单背景色 |
|
|
|
//colorBgMenuItemCollapsedHover: '#fff', |
|
|
|
colorBgMenuItemCollapsedElevated: '#001529', |
|
|
|
colorBgMenuItemCollapsedSelected: '#0960bd', |
|
|
|
colorMenuItemDivider: 'rgba(255,255,255,0.15)', |
|
|
|
colorBgMenuItemHover: '#0960bd', |
|
|
|
colorBgMenuItemSelected: '#0960bd', |
|
|
|
colorTextMenuSelected: '#ffffff', |
|
|
|
colorTextMenuItemHover: '#fff', |
|
|
|
colorTextMenu: '#fff', |
|
|
|
colorTextMenuSecondary: '#fff', |
|
|
|
colorTextMenuTitle: '#fff',//系统名称 |
|
|
|
// colorTextMenuActive: '#fff', |
|
|
|
colorTextSubMenuSelected: '#fff', |
|
|
|
// }, |
|
|
|
header: { |
|
|
|
colorBgHeader: '#ffffff', |
|
|
|
colorMenuBackground: '#000', |
|
|
|
colorHeaderTitle: '#ffffff', |
|
|
|
}, |
|
|
|
// layout: { |
|
|
|
// bgLayout: '#001529' |
|
|
|
// }, |
|
|
|
// // colorBgAppListIconHover: '#fff', |
|
|
|
// // colorTextAppListIconHover: 'rgba(255,255,255,0.95)', |
|
|
|
// // colorTextAppListIcon: 'rgba(255,255,255,0.85)', |
|
|
|
// sider: { |
|
|
|
// // colorBgCollapsedButton: '#0960bd', |
|
|
|
// // colorTextCollapsedButtonHover: '#fff', |
|
|
|
// // colorTextCollapsedButton: '#fff', |
|
|
|
// colorMenuBackground: '#001529',//菜单背景色 |
|
|
|
// //colorBgMenuItemCollapsedHover: '#fff', |
|
|
|
// colorBgMenuItemCollapsedElevated: '#001529', |
|
|
|
// colorBgMenuItemCollapsedSelected: '#0960bd', |
|
|
|
// colorMenuItemDivider: 'rgba(255,255,255,0.15)', |
|
|
|
// colorBgMenuItemHover: '#0960bd', |
|
|
|
// colorBgMenuItemSelected: '#0960bd', |
|
|
|
// colorTextMenuSelected: '#ffffff', |
|
|
|
// colorTextMenuItemHover: '#fff', |
|
|
|
// colorTextMenu: '#fff', |
|
|
|
// colorTextMenuSecondary: '#fff', |
|
|
|
// colorTextMenuTitle: '#fff',//系统名称 |
|
|
|
// // colorTextMenuActive: '#fff', |
|
|
|
// colorTextSubMenuSelected: '#fff', |
|
|
|
// // }, |
|
|
|
// header: { |
|
|
|
// colorBgHeader: '#ffffff', |
|
|
|
// colorMenuBackground: '#000', |
|
|
|
// colorHeaderTitle: '#ffffff', |
|
|
|
// }, |
|
|
|
// pageContainer:{ |
|
|
|
// paddingInlinePageContainerContent: 20, |
|
|
|
// paddingBlockPageContainerContent:10 |
|
|
|
}, |
|
|
|
pageContainer: { |
|
|
|
colorBgPageContainer: '#f5f5f5', |
|
|
|
colorBgPageContainerFixed: '#0960bd' |
|
|
|
}, |
|
|
|
// }, |
|
|
|
// pageContainer: { |
|
|
|
// colorBgPageContainer: '#f5f5f5', |
|
|
|
// colorBgPageContainerFixed: '#0960bd' |
|
|
|
// }, |
|
|
|
}, |
|
|
|
footerRender: () => <Footer />, |
|
|
|
onPageChange: () => { |
|
|
|