forked from jekip/naive-ui-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.d.ts
77 lines (71 loc) · 1.46 KB
/
config.d.ts
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
65
66
67
68
69
70
71
72
73
74
75
76
77
export interface ProjectSettingState {
//导航模式
navMode: string;
//导航风格
navTheme: string;
//顶部设置
headerSetting: object;
//页脚
showFooter: boolean;
//菜单设置
menuSetting: object;
//多标签
multiTabsSetting: object;
//面包屑
crumbsSetting: object;
//权限模式
permissionMode: string;
}
export interface IBodySetting {
fixed: boolean;
}
export interface IHeaderSetting {
bgColor: string;
fixed: boolean;
isReload: boolean;
}
export interface IMenuSetting {
minMenuWidth: number;
menuWidth: number;
fixed: boolean;
mixMenu: boolean;
collapsed: boolean;
mobileWidth: number;
}
export interface ICrumbsSetting {
show: boolean;
showIcon: boolean;
}
export interface IMultiTabsSetting {
bgColor: string;
fixed: boolean;
show: boolean;
}
export interface GlobConfig {
title: string;
apiUrl: string;
shortName: string;
urlPrefix?: string;
uploadUrl?: string;
useMock: boolean;
fileUrl?: string;
loggerMock: boolean;
}
export interface GlobEnvConfig {
// 标题
VITE_GLOB_APP_TITLE: string;
// 接口地址
VITE_GLOB_API_URL: string;
// 接口前缀
VITE_GLOB_API_URL_PREFIX?: string;
// 网站别名
VITE_GLOB_APP_SHORT_NAME: string;
// 文件上传地址
VITE_GLOB_UPLOAD_URL?: string;
// 文件前缀地址
VITE_GLOB_FILE_URL?: string;
// 开启 mock
VITE_USE_MOCK: boolean;
// 是否开启控制台打印 mock 请求信息
VITE_LOGGER_MOCK: boolean;
}