defaultSettings.ts 1.08 KB
Newer Older
陈小聪's avatar
陈小聪 committed
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 {
afc163's avatar
afc163 committed
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
陈小聪's avatar
陈小聪 committed
26
  colorWeak: false,
Yu's avatar
Yu committed
27 28 29
  menu: {
    disableLocal: false,
  },
陈帅's avatar
陈帅 committed
30
  title: 'Ant Design Pro',
Yu's avatar
Yu committed
31 32 33 34 35
  pwa: true,
  // your iconfont Symbol Scrip Url
  // eg://at.alicdn.com/t/font_1039637_btcrd5co4w.js
  // 注意:如果需要图标多色,Iconfont图标项目里要进行批量去色处理
  iconfontUrl: '',
陈小聪's avatar
陈小聪 committed
36
} as DefaultSettings;