defaultSettings.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { ProLayoutProps } from '@ant-design/pro-components';
  2. /**
  3. * @name
  4. */
  5. const Settings: ProLayoutProps & {
  6. pwa?: boolean;
  7. logo?: string;
  8. } = {
  9. navTheme: 'light',
  10. // 拂晓蓝
  11. colorPrimary: '#3246ee',//#1890ff
  12. layout: 'side',//mix
  13. contentWidth: 'Fluid',
  14. fixedHeader: true,
  15. fixSiderbar: true,
  16. colorWeak: false,
  17. title: '星创AI',
  18. pwa: true,
  19. logo: 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png',
  20. iconfontUrl: '',
  21. // "splitMenus": true,
  22. // siderMenuType:"group",
  23. token: {
  24. sider: {
  25. colorMenuBackground: '#3246ee',//#3246ee , #001529
  26. colorTextMenu: '#f0f4ff',
  27. colorTextMenuSelected: "#fff",
  28. colorTextMenuActive: "#fff",
  29. colorBgMenuItemHover: '#b0c0ff',
  30. colorTextMenuItemHover: "#fff",
  31. colorBgMenuItemSelected: "#879bff",
  32. colorTextMenuTitle:"#fff"
  33. },
  34. header: {
  35. colorTextMenu: 'rgba(255,255,255,0.65)',
  36. colorTextMenuSelected: "#fff",
  37. colorTextMenuActive: "#fff",
  38. colorBgHeader: '#001529',
  39. colorHeaderTitle: "#fff"
  40. }
  41. // 参见ts声明,demo 见文档,通过token 修改样式
  42. //https://procomponents.ant.design/components/layout#%E9%80%9A%E8%BF%87-token-%E4%BF%AE%E6%94%B9%E6%A0%B7%E5%BC%8F
  43. },
  44. "splitMenus": false//关闭分割菜单
  45. };
  46. export default Settings;