41 lines
871 B
TypeScript
41 lines
871 B
TypeScript
import { Settings as ProSettings } from '@ant-design/pro-layout';
|
|
|
|
type DefaultSettings = ProSettings & {
|
|
pwa: boolean;
|
|
headingColor: string;
|
|
textColor: string;
|
|
};
|
|
|
|
const proSettings: DefaultSettings = {
|
|
navTheme: 'light',
|
|
primaryColor: 'rgb(0,79,142)',
|
|
headingColor: "#000",
|
|
textColor: "#000",
|
|
layout: 'side',
|
|
contentWidth: 'Fluid',
|
|
fixedHeader: false,
|
|
fixSiderbar: true,
|
|
colorWeak: false,
|
|
menu: {
|
|
locale: true,
|
|
},
|
|
title: '中远海运',
|
|
pwa: false,
|
|
iconfontUrl: '',
|
|
};
|
|
|
|
export const antdTheme = {
|
|
// 更改antd 组件颜色
|
|
'table-header-bg': 'rgb(241,245,251)',
|
|
'table-row-hover-bg': 'rgb(241,245,251)',
|
|
'table-padding-vertical': '8px',
|
|
'table-header-color': 'rgb(143,146,153)',
|
|
'menu-item-active-bg': 'rgba(0,79,142,0.1)',
|
|
'red-5': 'rgb(214,0,14)',
|
|
}
|
|
|
|
export type { DefaultSettings };
|
|
|
|
|
|
export default proSettings;
|