合并分支 'dev_project_style' 到 'master'

修改样式

查看合并请求 coscoshipping/fe_service_ebtp_frontend!5
This commit is contained in:
李鑫
2025-06-20 09:02:19 +00:00
11 changed files with 124 additions and 47 deletions

View File

@ -2,7 +2,10 @@ import { defineConfig } from 'umi';
import defaultSettings from './defaultSettings';
// import proxy from './proxy';
import PageRoutes from './router.config'
import theme from './theme';
const { REACT_APP_ENV } = process.env;
export default defineConfig({
hash: true,
antd: {},
@ -25,10 +28,7 @@ export default defineConfig({
// umi routes: https://umijs.org/docs/routing
routes: PageRoutes,
// Theme for antd: https://ant.design/docs/react/customize-theme-cn
theme: {
// ...darkTheme,
'primary-color': defaultSettings.primaryColor,
},
theme,
// @ts-ignore
title: false,
ignoreMomentLocale: true,

View File

@ -6,7 +6,7 @@ type DefaultSettings = ProSettings & {
const proSettings: DefaultSettings = {
navTheme: 'light',
primaryColor: '#b30000',
primaryColor: '#014F8F',
layout: 'side',
contentWidth: 'Fluid',
fixedHeader: false,

24
config/theme.js Normal file
View File

@ -0,0 +1,24 @@
export default {
// 主题色
'primary-color': '#014F8F',
// 按钮圆角
'border-radius-base': '4px',
// layout background
'layout-background': '#F5F7FA',
// 链接色
'link-color': '#014F8F',
// layout-header-background
'layout-header-background': '#ffffff',
// error
'error-color': '#D7000F',
// menu background
'menu-list-bg': '#F2F6FC',
// menu item selected background
'menu-item-selected-bg': '#D9ECFF',
// table header
'table-header-bg': '#F2F6FC',
// table header text color
'table-header-color': '#8F9298',
// table select row background
'table-selected-row-bg': '#F2F6FC',
}