@fmdevui/fm-dev 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/es/component.d.ts +3 -0
- package/es/component.mjs +7 -0
- package/es/defaults.d.ts +5 -0
- package/es/defaults.mjs +6 -0
- package/es/fmcore/index.d.ts +2 -0
- package/es/fmcore/index.mjs +2 -0
- package/es/fmcore/types/axios/index.d.ts +11 -0
- package/es/fmcore/types/axios/index.mjs +2 -0
- package/es/fmcore/types/comm/index.d.ts +26 -0
- package/es/fmcore/types/comm/index.mjs +1 -0
- package/es/fmcore/types/emitt/index.d.ts +37 -0
- package/es/fmcore/types/emitt/index.mjs +1 -0
- package/es/fmcore/types/index.d.ts +8 -0
- package/es/fmcore/types/index.mjs +8 -0
- package/es/fmcore/types/layout/index.d.ts +47 -0
- package/es/fmcore/types/layout/index.mjs +1 -0
- package/es/fmcore/types/menu/MenuOutput.d.ts +131 -0
- package/es/fmcore/types/menu/MenuOutput.mjs +1 -0
- package/es/fmcore/types/menu/index.d.ts +1 -0
- package/es/fmcore/types/menu/index.mjs +1 -0
- package/es/fmcore/types/menu/menu-type-enum.d.ts +5 -0
- package/es/fmcore/types/menu/menu-type-enum.mjs +8 -0
- package/es/fmcore/types/menu/status-enum.d.ts +9 -0
- package/es/fmcore/types/menu/status-enum.mjs +7 -0
- package/es/fmcore/types/menu/sys-menu-meta.d.ts +57 -0
- package/es/fmcore/types/menu/sys-menu-meta.mjs +1 -0
- package/es/fmcore/types/pinia/index.d.ts +99 -0
- package/es/fmcore/types/pinia/index.mjs +1 -0
- package/es/fmcore/types/router/index.d.ts +41 -0
- package/es/fmcore/types/router/index.mjs +1 -0
- package/es/fmcore/types/table/index.d.ts +8 -0
- package/es/fmcore/types/table/index.mjs +1 -0
- package/es/fmcore/types/view/index.d.ts +316 -0
- package/es/fmcore/types/view/index.mjs +1 -0
- package/es/fmcore/ui/login/index.d.ts +3 -0
- package/es/fmcore/ui/login/index.mjs +7 -0
- package/es/fmcore/ui/login/src/index.vue.d.ts +3 -0
- package/es/fmcore/ui/login/src/index.vue.mjs +5 -0
- package/es/fmcore/ui/login/src/index.vue2.mjs +27 -0
- package/es/fmcore/ui/login/src/type.d.ts +1 -0
- package/es/fmcore/ui/login/src/type.mjs +1 -0
- package/es/fmcore/ui/login/style/css.d.ts +0 -0
- package/es/fmcore/ui/login/style/css.mjs +1 -0
- package/es/fmcore/ui/login/style/index.d.ts +0 -0
- package/es/fmcore/ui/login/style/index.mjs +1 -0
- package/es/index.d.ts +6 -0
- package/es/index.mjs +8 -0
- package/es/make-installer.d.ts +4 -0
- package/es/make-installer.mjs +10 -0
- package/es/version.d.ts +1 -0
- package/es/version.mjs +3 -0
- package/global.d.ts +9 -0
- package/index.css +0 -0
- package/index.d.ts +10 -0
- package/index.js +60 -0
- package/index.min.js +1 -0
- package/index.min.mjs +1 -0
- package/index.mjs +49 -0
- package/lib/component.d.ts +3 -0
- package/lib/component.js +11 -0
- package/lib/defaults.d.ts +5 -0
- package/lib/defaults.js +10 -0
- package/lib/fmcore/index.d.ts +2 -0
- package/lib/fmcore/index.js +8 -0
- package/lib/fmcore/types/axios/index.d.ts +11 -0
- package/lib/fmcore/types/axios/index.js +28 -0
- package/lib/fmcore/types/comm/index.d.ts +26 -0
- package/lib/fmcore/types/comm/index.js +2 -0
- package/lib/fmcore/types/emitt/index.d.ts +37 -0
- package/lib/fmcore/types/emitt/index.js +2 -0
- package/lib/fmcore/types/index.d.ts +8 -0
- package/lib/fmcore/types/index.js +11 -0
- package/lib/fmcore/types/layout/index.d.ts +47 -0
- package/lib/fmcore/types/layout/index.js +2 -0
- package/lib/fmcore/types/menu/MenuOutput.d.ts +131 -0
- package/lib/fmcore/types/menu/MenuOutput.js +2 -0
- package/lib/fmcore/types/menu/index.d.ts +1 -0
- package/lib/fmcore/types/menu/index.js +4 -0
- package/lib/fmcore/types/menu/menu-type-enum.d.ts +5 -0
- package/lib/fmcore/types/menu/menu-type-enum.js +10 -0
- package/lib/fmcore/types/menu/status-enum.d.ts +9 -0
- package/lib/fmcore/types/menu/status-enum.js +9 -0
- package/lib/fmcore/types/menu/sys-menu-meta.d.ts +57 -0
- package/lib/fmcore/types/menu/sys-menu-meta.js +2 -0
- package/lib/fmcore/types/pinia/index.d.ts +99 -0
- package/lib/fmcore/types/pinia/index.js +2 -0
- package/lib/fmcore/types/router/index.d.ts +41 -0
- package/lib/fmcore/types/router/index.js +2 -0
- package/lib/fmcore/types/table/index.d.ts +8 -0
- package/lib/fmcore/types/table/index.js +2 -0
- package/lib/fmcore/types/view/index.d.ts +316 -0
- package/lib/fmcore/types/view/index.js +2 -0
- package/lib/fmcore/ui/login/index.d.ts +3 -0
- package/lib/fmcore/ui/login/index.js +9 -0
- package/lib/fmcore/ui/login/src/index.vue.d.ts +3 -0
- package/lib/fmcore/ui/login/src/index.vue.js +9 -0
- package/lib/fmcore/ui/login/src/index.vue2.js +31 -0
- package/lib/fmcore/ui/login/src/type.d.ts +1 -0
- package/lib/fmcore/ui/login/src/type.js +2 -0
- package/lib/fmcore/ui/login/style/css.d.ts +0 -0
- package/lib/fmcore/ui/login/style/css.js +2 -0
- package/lib/fmcore/ui/login/style/index.d.ts +0 -0
- package/lib/fmcore/ui/login/style/index.js +2 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +15 -0
- package/lib/make-installer.d.ts +4 -0
- package/lib/make-installer.js +12 -0
- package/lib/version.d.ts +1 -0
- package/lib/version.js +5 -0
- package/package.json +92 -0
- package/theme-chalk/index.css +0 -0
- package/theme-chalk/src/index.scss +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type EmptyArrayType<T = any> = T[];
|
|
2
|
+
export type EmptyObjectType<T = any> = {
|
|
3
|
+
[key: string]: T;
|
|
4
|
+
};
|
|
5
|
+
export type RefType<T = any> = T | null;
|
|
6
|
+
export type HtmlType = HTMLElement | string | undefined | null;
|
|
7
|
+
export type ChilType<T = any> = {
|
|
8
|
+
children?: T[];
|
|
9
|
+
};
|
|
10
|
+
export type SelectOptionType = {
|
|
11
|
+
value: string | number;
|
|
12
|
+
label: string | number;
|
|
13
|
+
};
|
|
14
|
+
export interface WheelEventType extends WheelEvent {
|
|
15
|
+
wheelDelta: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 字符串类型对象
|
|
19
|
+
*/
|
|
20
|
+
export type Recordable<T> = Record<string, T>;
|
|
21
|
+
/**
|
|
22
|
+
* 字符串类型对象(只读)
|
|
23
|
+
*/
|
|
24
|
+
export interface ReadonlyRecordable<T = any> {
|
|
25
|
+
readonly [key: string]: T;
|
|
26
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { RouteRecordRaw, RouteItem } from '../router';
|
|
2
|
+
/**
|
|
3
|
+
* mitt 事件类型定义
|
|
4
|
+
*
|
|
5
|
+
* @method openSettingsDrawer 打开布局设置弹窗
|
|
6
|
+
* @method restoreDefault 分栏布局,鼠标移入、移出数据显示
|
|
7
|
+
* @method setSendColumnsChildren 分栏布局,鼠标移入、移出菜单数据传入到 navMenu 下的菜单中
|
|
8
|
+
* @method setSendClassicChildren 经典布局,开启切割菜单时,菜单数据传入到 navMenu 下的菜单中
|
|
9
|
+
* @method getBreadcrumbIndexSetFilterRoutes 布局设置弹窗,开启切割菜单时,菜单数据传入到 navMenu 下的菜单中
|
|
10
|
+
* @method layoutMobileResize 浏览器窗口改变时,用于适配移动端界面显示
|
|
11
|
+
* @method openOrCloseSortable 布局设置弹窗,开启 TagsView 拖拽
|
|
12
|
+
* @method openShareTagsView 布局设置弹窗,开启 TagsView 共用
|
|
13
|
+
* @method onTagsViewRefreshRouterView tagsview 刷新界面
|
|
14
|
+
* @method onCurrentContextmenuClick tagsview 右键菜单每项点击时
|
|
15
|
+
* @method submitRefreshFk
|
|
16
|
+
*/
|
|
17
|
+
export type MittType<T = any> = {
|
|
18
|
+
openSettingsDrawer?: string;
|
|
19
|
+
restoreDefault?: string;
|
|
20
|
+
setSendColumnsChildren: T;
|
|
21
|
+
setSendClassicChildren: T;
|
|
22
|
+
getBreadcrumbIndexSetFilterRoutes?: string;
|
|
23
|
+
layoutMobileResize: T;
|
|
24
|
+
openOrCloseSortable?: string;
|
|
25
|
+
openShareTagsView?: string;
|
|
26
|
+
onTagsViewRefreshRouterView?: T;
|
|
27
|
+
onCurrentContextmenuClick?: T;
|
|
28
|
+
submitRefreshFk?: T;
|
|
29
|
+
};
|
|
30
|
+
export type LayoutMobileResize = {
|
|
31
|
+
layout: string;
|
|
32
|
+
clientWidth: number;
|
|
33
|
+
};
|
|
34
|
+
export type MittMenu = {
|
|
35
|
+
children: RouteRecordRaw[];
|
|
36
|
+
item?: RouteItem;
|
|
37
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('./comm/index.js');
|
|
4
|
+
require('./router/index.js');
|
|
5
|
+
require('./emitt/index.js');
|
|
6
|
+
require('./table/index.js');
|
|
7
|
+
require('./layout/index.js');
|
|
8
|
+
require('./pinia/index.js');
|
|
9
|
+
require('./view/index.js');
|
|
10
|
+
require('./menu/index.js');
|
|
11
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { RouteRecordRaw } from '../router';
|
|
2
|
+
export type AsideState = {
|
|
3
|
+
menuList: RouteRecordRaw[];
|
|
4
|
+
clientWidth: number;
|
|
5
|
+
};
|
|
6
|
+
export type ColumnsAsideState<T = any> = {
|
|
7
|
+
columnsAsideList: T[];
|
|
8
|
+
liIndex: number;
|
|
9
|
+
liOldIndex: null | number;
|
|
10
|
+
liHoverIndex: null | number;
|
|
11
|
+
liOldPath: null | string;
|
|
12
|
+
difference: number;
|
|
13
|
+
routeSplit: string[];
|
|
14
|
+
};
|
|
15
|
+
export type BreadcrumbState<T = any> = {
|
|
16
|
+
breadcrumbList: T[];
|
|
17
|
+
routeSplit: string[];
|
|
18
|
+
routeSplitFirst: string;
|
|
19
|
+
routeSplitIndex: number;
|
|
20
|
+
};
|
|
21
|
+
export type SearchState<T = any> = {
|
|
22
|
+
isShowSearch: boolean;
|
|
23
|
+
menuQuery: string;
|
|
24
|
+
tagsViewList: T[];
|
|
25
|
+
};
|
|
26
|
+
export type TagsViewState<T = any> = {
|
|
27
|
+
routeActive: string | T;
|
|
28
|
+
routePath: string | unknown;
|
|
29
|
+
dropdown: {
|
|
30
|
+
x: string | number;
|
|
31
|
+
y: string | number;
|
|
32
|
+
};
|
|
33
|
+
sortable: T;
|
|
34
|
+
tagsRefsIndex: number;
|
|
35
|
+
tagsViewList: T[];
|
|
36
|
+
tagsViewRoutesList: T[];
|
|
37
|
+
};
|
|
38
|
+
export type ParentViewState<T = any> = {
|
|
39
|
+
refreshRouterViewKey: string;
|
|
40
|
+
iframeRefreshKey: string;
|
|
41
|
+
keepAliveNameList: string[];
|
|
42
|
+
iframeList: T[];
|
|
43
|
+
};
|
|
44
|
+
export type LinkViewState = {
|
|
45
|
+
title: string;
|
|
46
|
+
isLink: string;
|
|
47
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { MenuTypeEnum } from './menu-type-enum';
|
|
2
|
+
import { SysMenuMeta } from './sys-menu-meta';
|
|
3
|
+
import { StatusEnum } from './status-enum';
|
|
4
|
+
/**
|
|
5
|
+
* 系统菜单返回结果
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @interface MenuOutput
|
|
9
|
+
*/
|
|
10
|
+
export interface MenuOutput {
|
|
11
|
+
/**
|
|
12
|
+
* Id
|
|
13
|
+
*
|
|
14
|
+
* @type {number}
|
|
15
|
+
* @memberof MenuOutput
|
|
16
|
+
*/
|
|
17
|
+
id?: number;
|
|
18
|
+
/**
|
|
19
|
+
* 父Id
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof MenuOutput
|
|
23
|
+
*/
|
|
24
|
+
pid?: number;
|
|
25
|
+
/**
|
|
26
|
+
* @type {MenuTypeEnum}
|
|
27
|
+
* @memberof MenuOutput
|
|
28
|
+
*/
|
|
29
|
+
type?: MenuTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* 名称
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof MenuOutput
|
|
35
|
+
*/
|
|
36
|
+
name?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* 国际化名称
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof MenuOutput
|
|
42
|
+
*/
|
|
43
|
+
i18nName?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* 路由地址
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof MenuOutput
|
|
49
|
+
*/
|
|
50
|
+
path?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* 组件路径
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof MenuOutput
|
|
56
|
+
*/
|
|
57
|
+
component?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* 权限标识
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof MenuOutput
|
|
63
|
+
*/
|
|
64
|
+
permission?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* 重定向
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof MenuOutput
|
|
70
|
+
*/
|
|
71
|
+
redirect?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* 排序
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof MenuOutput
|
|
77
|
+
*/
|
|
78
|
+
orderNo?: number;
|
|
79
|
+
/**
|
|
80
|
+
* @type {StatusEnum}
|
|
81
|
+
* @memberof MenuOutput
|
|
82
|
+
*/
|
|
83
|
+
status?: StatusEnum;
|
|
84
|
+
/**
|
|
85
|
+
* 备注
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof MenuOutput
|
|
89
|
+
*/
|
|
90
|
+
remark?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* 创建时间
|
|
93
|
+
*
|
|
94
|
+
* @type {Date}
|
|
95
|
+
* @memberof MenuOutput
|
|
96
|
+
*/
|
|
97
|
+
createTime?: Date;
|
|
98
|
+
/**
|
|
99
|
+
* 更新时间
|
|
100
|
+
*
|
|
101
|
+
* @type {Date}
|
|
102
|
+
* @memberof MenuOutput
|
|
103
|
+
*/
|
|
104
|
+
updateTime?: Date;
|
|
105
|
+
/**
|
|
106
|
+
* 创建者姓名
|
|
107
|
+
*
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof MenuOutput
|
|
110
|
+
*/
|
|
111
|
+
createUserName?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* 修改者姓名
|
|
114
|
+
*
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof MenuOutput
|
|
117
|
+
*/
|
|
118
|
+
updateUserName?: string | null;
|
|
119
|
+
/**
|
|
120
|
+
* @type {SysMenuMeta}
|
|
121
|
+
* @memberof MenuOutput
|
|
122
|
+
*/
|
|
123
|
+
meta?: SysMenuMeta;
|
|
124
|
+
/**
|
|
125
|
+
* 菜单子项
|
|
126
|
+
*
|
|
127
|
+
* @type {Array<MenuOutput>}
|
|
128
|
+
* @memberof MenuOutput
|
|
129
|
+
*/
|
|
130
|
+
children?: Array<MenuOutput> | null;
|
|
131
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MenuOutput';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var MenuTypeEnum = /* @__PURE__ */ ((MenuTypeEnum2) => {
|
|
4
|
+
MenuTypeEnum2[MenuTypeEnum2["NUMBER_1"] = 1] = "NUMBER_1";
|
|
5
|
+
MenuTypeEnum2[MenuTypeEnum2["NUMBER_2"] = 2] = "NUMBER_2";
|
|
6
|
+
MenuTypeEnum2[MenuTypeEnum2["NUMBER_3"] = 3] = "NUMBER_3";
|
|
7
|
+
return MenuTypeEnum2;
|
|
8
|
+
})(MenuTypeEnum || {});
|
|
9
|
+
|
|
10
|
+
exports.MenuTypeEnum = MenuTypeEnum;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var StatusEnum = /* @__PURE__ */ ((StatusEnum2) => {
|
|
4
|
+
StatusEnum2[StatusEnum2["NUMBER_1"] = 1] = "NUMBER_1";
|
|
5
|
+
StatusEnum2[StatusEnum2["NUMBER_2"] = 2] = "NUMBER_2";
|
|
6
|
+
return StatusEnum2;
|
|
7
|
+
})(StatusEnum || {});
|
|
8
|
+
|
|
9
|
+
exports.StatusEnum = StatusEnum;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 菜单Meta配置
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @interface SysMenuMeta
|
|
6
|
+
*/
|
|
7
|
+
export interface SysMenuMeta {
|
|
8
|
+
/**
|
|
9
|
+
* 标题
|
|
10
|
+
*
|
|
11
|
+
* @type {string}
|
|
12
|
+
* @memberof SysMenuMeta
|
|
13
|
+
*/
|
|
14
|
+
title?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* 图标
|
|
17
|
+
*
|
|
18
|
+
* @type {string}
|
|
19
|
+
* @memberof SysMenuMeta
|
|
20
|
+
*/
|
|
21
|
+
icon?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* 是否内嵌
|
|
24
|
+
*
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof SysMenuMeta
|
|
27
|
+
*/
|
|
28
|
+
isIframe?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* 外链链接
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SysMenuMeta
|
|
34
|
+
*/
|
|
35
|
+
isLink?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* 是否隐藏
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof SysMenuMeta
|
|
41
|
+
*/
|
|
42
|
+
isHide?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* 是否缓存
|
|
45
|
+
*
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof SysMenuMeta
|
|
48
|
+
*/
|
|
49
|
+
isKeepAlive?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* 是否固定
|
|
52
|
+
*
|
|
53
|
+
* @type {boolean}
|
|
54
|
+
* @memberof SysMenuMeta
|
|
55
|
+
*/
|
|
56
|
+
isAffix?: boolean;
|
|
57
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pinia 类型定义
|
|
3
|
+
*/
|
|
4
|
+
export interface UserInfos<T = any> {
|
|
5
|
+
authApiList: string[];
|
|
6
|
+
photo: string;
|
|
7
|
+
roles: string[];
|
|
8
|
+
time: number;
|
|
9
|
+
userName: string;
|
|
10
|
+
[key: string]: string | number | string[] | T;
|
|
11
|
+
}
|
|
12
|
+
export interface UserInfosState<T = any> {
|
|
13
|
+
userInfos: UserInfos;
|
|
14
|
+
constList: T[];
|
|
15
|
+
dictList: T;
|
|
16
|
+
userTableList: T[];
|
|
17
|
+
}
|
|
18
|
+
export interface KeepAliveNamesState {
|
|
19
|
+
keepAliveNames: string[];
|
|
20
|
+
cachedViews: string[];
|
|
21
|
+
}
|
|
22
|
+
export interface RequestOldRoutesState {
|
|
23
|
+
requestOldRoutes: string[];
|
|
24
|
+
}
|
|
25
|
+
export interface TagsViewRoutesState<T = any> {
|
|
26
|
+
tagsViewRoutes: T[];
|
|
27
|
+
isTagsViewCurrenFull: Boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface RoutesListState<T = any> {
|
|
30
|
+
routesList: T[];
|
|
31
|
+
isColumnsMenuHover: Boolean;
|
|
32
|
+
isColumnsNavHover: Boolean;
|
|
33
|
+
currentRoute: T;
|
|
34
|
+
}
|
|
35
|
+
export interface ThemeConfigState {
|
|
36
|
+
themeConfig: {
|
|
37
|
+
isDrawer: boolean;
|
|
38
|
+
primary: string;
|
|
39
|
+
topBar: string;
|
|
40
|
+
topBarColor: string;
|
|
41
|
+
isTopBarColorGradual: boolean;
|
|
42
|
+
menuBar: string;
|
|
43
|
+
menuBarColor: string;
|
|
44
|
+
menuBarActiveColor: string;
|
|
45
|
+
isMenuBarColorGradual: boolean;
|
|
46
|
+
columnsMenuBar: string;
|
|
47
|
+
columnsMenuBarColor: string;
|
|
48
|
+
isColumnsMenuBarColorGradual: boolean;
|
|
49
|
+
isColumnsMenuHoverPreload: boolean;
|
|
50
|
+
columnsLogoHeight: number;
|
|
51
|
+
columnsMenuWidth: number;
|
|
52
|
+
columnsMenuHeight: number;
|
|
53
|
+
isCollapse: boolean;
|
|
54
|
+
isUniqueOpened: boolean;
|
|
55
|
+
isFixedHeader: boolean;
|
|
56
|
+
isFixedHeaderChange: boolean;
|
|
57
|
+
isClassicSplitMenu: boolean;
|
|
58
|
+
isLockScreen: boolean;
|
|
59
|
+
lockScreenTime: number;
|
|
60
|
+
isShowLogo: boolean;
|
|
61
|
+
isShowLogoChange: boolean;
|
|
62
|
+
isBreadcrumb: boolean;
|
|
63
|
+
isTagsview: boolean;
|
|
64
|
+
isBreadcrumbIcon: boolean;
|
|
65
|
+
isTagsviewIcon: boolean;
|
|
66
|
+
isCacheTagsView: boolean;
|
|
67
|
+
isSortableTagsView: boolean;
|
|
68
|
+
isShareTagsView: boolean;
|
|
69
|
+
isFooter: boolean;
|
|
70
|
+
isGrayscale: boolean;
|
|
71
|
+
isInvert: boolean;
|
|
72
|
+
isIsDark: boolean;
|
|
73
|
+
isWatermark: boolean;
|
|
74
|
+
watermarkText: string;
|
|
75
|
+
tagsStyle: string;
|
|
76
|
+
animation: string;
|
|
77
|
+
columnsAsideStyle: string;
|
|
78
|
+
columnsAsideLayout: string;
|
|
79
|
+
layout: string;
|
|
80
|
+
isRequestRoutes: boolean;
|
|
81
|
+
globalI18n: string;
|
|
82
|
+
globalComponentSize: string;
|
|
83
|
+
globalTitle: string;
|
|
84
|
+
globalViceTitle: string;
|
|
85
|
+
globalViceTitleMsg: string;
|
|
86
|
+
copyright: string;
|
|
87
|
+
logoUrl: string;
|
|
88
|
+
icp: string;
|
|
89
|
+
icpUrl: string;
|
|
90
|
+
version?: string;
|
|
91
|
+
secondVer?: boolean;
|
|
92
|
+
captcha?: boolean;
|
|
93
|
+
forceChangePassword?: boolean;
|
|
94
|
+
passwordExpirationTime?: number;
|
|
95
|
+
i18NSwitch: boolean;
|
|
96
|
+
idleTimeout: number;
|
|
97
|
+
onlineNotice: boolean;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type { RouteRecordRaw, RouteRecordSingleView, RouteRecordSingleViewWithChildren, RouteRecordMultipleViews, RouteRecordMultipleViewsWithChildren, RouteRecordRedirect } from 'vue-router';
|
|
2
|
+
export type RouteItem<T = any> = {
|
|
3
|
+
path: string;
|
|
4
|
+
name?: string | symbol | undefined | null;
|
|
5
|
+
redirect?: string;
|
|
6
|
+
k?: T;
|
|
7
|
+
meta?: {
|
|
8
|
+
title?: string;
|
|
9
|
+
isLink?: string;
|
|
10
|
+
isHide?: boolean;
|
|
11
|
+
isKeepAlive?: boolean;
|
|
12
|
+
isAffix?: boolean;
|
|
13
|
+
isIframe?: boolean;
|
|
14
|
+
roles?: string[];
|
|
15
|
+
icon?: string;
|
|
16
|
+
isDynamic?: boolean;
|
|
17
|
+
isDynamicPath?: string;
|
|
18
|
+
isIframeOpen?: string;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
};
|
|
21
|
+
children: T[];
|
|
22
|
+
query?: {
|
|
23
|
+
[key: string]: T;
|
|
24
|
+
};
|
|
25
|
+
params?: {
|
|
26
|
+
[key: string]: T;
|
|
27
|
+
};
|
|
28
|
+
contextMenuClickId?: string | number;
|
|
29
|
+
commonUrl?: string;
|
|
30
|
+
isFnClick?: boolean;
|
|
31
|
+
type?: string | number;
|
|
32
|
+
url?: string;
|
|
33
|
+
transUrl?: string;
|
|
34
|
+
title?: string;
|
|
35
|
+
id?: string | number;
|
|
36
|
+
};
|
|
37
|
+
export interface RouteToFrom<T = any> extends Omit<RouteItem<T>, 'path' | 'children'> {
|
|
38
|
+
path?: string;
|
|
39
|
+
children?: T[];
|
|
40
|
+
}
|
|
41
|
+
export type RouteItems<T extends RouteItem = any> = T[];
|