defaultSettings.ts
1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { MenuTheme } from "antd/es/menu/MenuContext";
export type ContentWidth = "Fluid" | "Fixed";
export interface DefaultSettings {
/**
* theme for nav menu
*/
navTheme: MenuTheme;
/**
* primary color of ant design
*/
primaryColor: string;
/**
* nav menu position: `sidemenu` or `topmenu`
*/
layout: "side" | "top" | "mix";
/**
* layout of content: `Fluid` or `Fixed`, only works when layout is topmenu
*/
contentWidth: ContentWidth;
/**
* sticky header
*/
fixedHeader: boolean;
/**
* auto hide header
*/
autoHideHeader: boolean;
/**
* sticky siderbar
*/
fixSiderbar: boolean;
menu: { locale: boolean };
title: string;
pwa: boolean;
// Your custom iconfont Symbol script Url
// eg://at.alicdn.com/t/font_1039637_btcrd5co4w.js
// 注意:如果需要图标多色,Iconfont 图标项目里要进行批量去色处理
// Usage: https://github.com/ant-design/ant-design-pro/pull/3517
iconfontUrl: string;
colorWeak: boolean;
siderWidth: number;
}
const darkSettings = {
navTheme: "dark",
primaryColor: "#1890FF",
layout: "side",
contentWidth: "Fluid",
fixedHeader: true,
pwa: true,
fixSiderbar: true,
colorWeak: false,
menu: {
locale: false,
},
title: "霏微汽车平台",
iconfontUrl: "",
siderWidth: 280,
autoHideHeader: false,
};
export default darkSettings;