defaultSettings.ts 1.1 KB
Newer Older
陈小聪 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
export declare type SiderTheme = 'light' | 'dark';

export interface DefaultSettings {
  navTheme: string | SiderTheme;
  primaryColor: string;
  layout: string;
  contentWidth: string;
  fixedHeader: boolean;
  autoHideHeader: boolean;
  fixSiderbar: boolean;
  menu: { disableLocal: boolean };
  title: string;
  pwa: boolean;
  iconfontUrl: string;
  colorWeak: boolean;
}

export default {
A
afc163 已提交
19 20 21 22 23 24 25
  navTheme: 'dark', // theme for nav menu
  primaryColor: '#1890FF', // primary color of ant design
  layout: 'sidemenu', // nav menu position: sidemenu or topmenu
  contentWidth: 'Fluid', // layout of content: Fluid or Fixed, only works when layout is topmenu
  fixedHeader: false, // sticky header
  autoHideHeader: false, // auto hide header
  fixSiderbar: false, // sticky siderbar
陈小聪 已提交
26
  colorWeak: false,
Y
Yu 已提交
27 28 29
  menu: {
    disableLocal: false,
  },
陈帅 已提交
30
  title: 'Ant Design Pro',
Y
Yu 已提交
31 32 33 34 35
  pwa: true,
  // your iconfont Symbol Scrip Url
  // eg://at.alicdn.com/t/font_1039637_btcrd5co4w.js
  // 注意:如果需要图标多色,Iconfont图标项目里要进行批量去色处理
  iconfontUrl: '',
陈小聪 已提交
36
} as DefaultSettings;