@indfnd/common-mobile 0.0.2 → 0.0.82
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/CHANGELOG.md +831 -4
- package/dist/ind-common-mobile.es.js +267 -399
- package/dist/ind-common-mobile.umd.cjs +31 -31
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/types/api/ipm/dm/demand/demand.d.ts +6 -10
- package/types/api/ism/am/basic/item.d.ts +6 -6
- package/types/components/404/back-btn-group.vue.d.ts +5 -17
- package/types/components/404/error-content.vue.d.ts +10 -24
- package/types/components/404/index.d.ts +2 -2
- package/types/components/404/index.vue.d.ts +4 -16
- package/types/components/form/condition-manager.vue.d.ts +22 -36
- package/types/components/form/form.vue.d.ts +15 -29
- package/types/components/form/index.d.ts +1 -1
- package/types/components/index.d.ts +4 -4
- package/types/components/layout/basic/index.d.ts +1 -1
- package/types/components/layout/basic/user.vue.d.ts +26 -40
- package/types/components/layout/index.d.ts +3 -3
- package/types/components/layout/mixin/item-mixin.d.ts +19 -19
- package/types/components/layout/mixin/mixin.d.ts +9 -9
- package/types/components/layout/route-wrapper/basic-layout.vue.d.ts +16 -28
- package/types/components/layout/route-wrapper/empty-layout.vue.d.ts +6 -18
- package/types/components/layout/route-wrapper/index.d.ts +2 -2
- package/types/components/layout/view-wrapper/detail-view.vue.d.ts +31 -45
- package/types/components/layout/view-wrapper/index.d.ts +2 -2
- package/types/components/layout/view-wrapper/page-view.vue.d.ts +23 -37
- package/types/components/login/index.d.ts +1 -1
- package/types/components/login/login-form.vue.d.ts +66 -80
- package/types/components/login/login.vue.d.ts +4 -16
- package/types/components/tabbar/Tabbar.vue.d.ts +4 -16
- package/types/components/tabbar/index.d.ts +1 -1
- package/types/config.d.ts +29 -29
- package/types/index.d.ts +18 -21
- package/types/mixins/popper.d.ts +62 -62
- package/types/plugins/config-plugin.d.ts +4 -9
- package/types/plugins/index.d.ts +2 -2
- package/types/plugins/router-plugin.d.ts +8 -14
- package/types/router/basic-routes.d.ts +7 -8
- package/types/router/generator-routers.d.ts +4 -4
- package/types/router/guard.d.ts +6 -11
- package/types/router/index.d.ts +4 -4
- package/types/store/app.d.ts +68 -96
- package/types/store/index.d.ts +6 -6
- package/types/store/user.d.ts +32 -43
- package/types/utils/ag-table/ag-table-locale.d.ts +263 -263
- package/types/utils/ag-table/agGridUtils.d.ts +1 -1
- package/types/utils/ag-table/index.d.ts +2 -2
- package/types/utils/date.d.ts +10 -10
- package/types/utils/eventBus.d.ts +2 -21
- package/types/utils/excel/Export2Excel.d.ts +1 -1
- package/types/utils/excel/assist.d.ts +1 -1
- package/types/utils/excel/excel.d.ts +42 -61
- package/types/utils/excel/index.d.ts +2 -2
- package/types/utils/index.d.ts +8 -8
- package/types/utils/router.d.ts +12 -12
- package/types/utils/style.d.ts +1 -1
- package/types/utils/theme.d.ts +3 -3
- package/types/utils/transfer-queue.d.ts +2 -2
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|
* @param {Array} permissionList 全部的权限数据
|
|
6
6
|
* @returns 此应用里的权限数据
|
|
7
7
|
*/
|
|
8
|
-
export function filterMicroPermissionList(microType: string, permissionList?: any[]): any[]
|
|
8
|
+
export function filterMicroPermissionList(microType: string, permissionList?: any[]): any[];
|
|
9
9
|
/**
|
|
10
10
|
* 根据所有的权限组织菜单
|
|
11
11
|
*
|
|
12
12
|
* @param {Array} permissionList 权限数据
|
|
13
13
|
* @returns 菜单
|
|
14
14
|
*/
|
|
15
|
-
export function generatorMenuTree(permissionList?: any[]): any[]
|
|
15
|
+
export function generatorMenuTree(permissionList?: any[]): any[];
|
|
16
16
|
/**
|
|
17
17
|
* 根据权限数据生成动态的树形路由表
|
|
18
18
|
*
|
|
19
19
|
* @param {Array} permissionList 权限数据
|
|
20
20
|
* @returns 路由表
|
|
21
21
|
*/
|
|
22
|
-
export function generatorDynamicRouter(permissionList?: any[]): any[]
|
|
22
|
+
export function generatorDynamicRouter(permissionList?: any[]): any[];
|
|
23
23
|
/**
|
|
24
24
|
* 生成 vue-router 层级路由表
|
|
25
25
|
*
|
|
26
26
|
* @param {Array} menuData 权限的树形结构数据
|
|
27
27
|
* @returns 路由表
|
|
28
28
|
*/
|
|
29
|
-
export function generator(menuData?: any[]): any[]
|
|
29
|
+
export function generator(menuData?: any[]): any[];
|
package/types/router/guard.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
export function addRouterGuards({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}:
|
|
7
|
-
router: any
|
|
8
|
-
store: any
|
|
9
|
-
microType: any
|
|
10
|
-
allowPermissionList: any
|
|
11
|
-
}): void
|
|
1
|
+
export function addRouterGuards({ router, store, microType, allowPermissionList }: {
|
|
2
|
+
router: any;
|
|
3
|
+
store: any;
|
|
4
|
+
microType: any;
|
|
5
|
+
allowPermissionList: any;
|
|
6
|
+
}): void;
|
package/types/router/index.d.ts
CHANGED
package/types/store/app.d.ts
CHANGED
|
@@ -1,98 +1,70 @@
|
|
|
1
1
|
declare namespace _default {
|
|
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
|
-
route,
|
|
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
|
-
name: any
|
|
70
|
-
},
|
|
71
|
-
): Promise<void>
|
|
72
|
-
function addMenuCollect(
|
|
73
|
-
{
|
|
74
|
-
state,
|
|
75
|
-
}: {
|
|
76
|
-
state: any
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name,
|
|
80
|
-
}: {
|
|
81
|
-
name: any
|
|
82
|
-
},
|
|
83
|
-
): Promise<never>
|
|
84
|
-
function removeMenuCollect(
|
|
85
|
-
{
|
|
86
|
-
state,
|
|
87
|
-
}: {
|
|
88
|
-
state: any
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name,
|
|
92
|
-
}: {
|
|
93
|
-
name: any
|
|
94
|
-
},
|
|
95
|
-
): Promise<never>
|
|
96
|
-
}
|
|
2
|
+
namespace state {
|
|
3
|
+
let appInfo: string;
|
|
4
|
+
let appList: any[];
|
|
5
|
+
let permissionList: any[];
|
|
6
|
+
let permission: {};
|
|
7
|
+
let menuTreeList: any[];
|
|
8
|
+
let homeRoute: {};
|
|
9
|
+
let breadCrumbList: any[];
|
|
10
|
+
let tagNavList: any[];
|
|
11
|
+
let activeName: string;
|
|
12
|
+
let collectMenuList: any[];
|
|
13
|
+
let maxTabNum: number;
|
|
14
|
+
let theme: any;
|
|
15
|
+
}
|
|
16
|
+
namespace getters {
|
|
17
|
+
function getAppInfo(state: any): any;
|
|
18
|
+
function getAppList(state: any): any;
|
|
19
|
+
function getMenuTreeList(state: any): any;
|
|
20
|
+
function getMaxTabNum(state: any): any;
|
|
21
|
+
function getTheme(state: any): any;
|
|
22
|
+
}
|
|
23
|
+
namespace mutations {
|
|
24
|
+
function setAppList(state: any, appList: any): void;
|
|
25
|
+
function setAppInfo(state: any, appId: any): void;
|
|
26
|
+
function setPermission(state: any, permission: any): void;
|
|
27
|
+
function setPermissionList(state: any, permissionList: any): void;
|
|
28
|
+
function setMenuTreeList(state: any, menuTreeList: any): void;
|
|
29
|
+
function setHomeRoute(state: any, $router: any): void;
|
|
30
|
+
function setBreadCrumb(state: any, route: any): void;
|
|
31
|
+
function setTagNavList(state: any, list: any): void;
|
|
32
|
+
function closeTag(state: any, { $router, route }: {
|
|
33
|
+
$router: any;
|
|
34
|
+
route: any;
|
|
35
|
+
}): void;
|
|
36
|
+
function addTag(state: any, { route, type }: {
|
|
37
|
+
route: any;
|
|
38
|
+
type?: string;
|
|
39
|
+
}): void;
|
|
40
|
+
function setActiveName(state: any, activeName: any): void;
|
|
41
|
+
function setCollectMenuList(state: any, list: any): void;
|
|
42
|
+
function setMaxTabNum(state: any, maxTabNum?: number): void;
|
|
43
|
+
function setTheme(state: any, theme: any): void;
|
|
44
|
+
}
|
|
45
|
+
namespace actions {
|
|
46
|
+
function getAppListData({ commit, getters }: {
|
|
47
|
+
commit: any;
|
|
48
|
+
getters: any;
|
|
49
|
+
}): Promise<any>;
|
|
50
|
+
function getPermissionData({ commit }: {
|
|
51
|
+
commit: any;
|
|
52
|
+
}): Promise<any>;
|
|
53
|
+
function addMenuHistory({ state }: {
|
|
54
|
+
state: any;
|
|
55
|
+
}, { name }: {
|
|
56
|
+
name: any;
|
|
57
|
+
}): Promise<void>;
|
|
58
|
+
function addMenuCollect({ state }: {
|
|
59
|
+
state: any;
|
|
60
|
+
}, { name }: {
|
|
61
|
+
name: any;
|
|
62
|
+
}): Promise<never>;
|
|
63
|
+
function removeMenuCollect({ state }: {
|
|
64
|
+
state: any;
|
|
65
|
+
}, { name }: {
|
|
66
|
+
name: any;
|
|
67
|
+
}): Promise<never>;
|
|
68
|
+
}
|
|
97
69
|
}
|
|
98
|
-
export default _default
|
|
70
|
+
export default _default;
|
package/types/store/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export namespace store {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
namespace modules {
|
|
3
|
+
export { user };
|
|
4
|
+
export { app };
|
|
5
|
+
}
|
|
6
6
|
}
|
|
7
|
-
import user from './user'
|
|
8
|
-
import app from './app'
|
|
7
|
+
import user from './user';
|
|
8
|
+
import app from './app';
|
package/types/store/user.d.ts
CHANGED
|
@@ -1,45 +1,34 @@
|
|
|
1
1
|
declare namespace _default {
|
|
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
|
-
commit,
|
|
34
|
-
dispatch,
|
|
35
|
-
}: {
|
|
36
|
-
commit: any
|
|
37
|
-
dispatch: any
|
|
38
|
-
},
|
|
39
|
-
token: any,
|
|
40
|
-
): void
|
|
41
|
-
function handleLogout({ state, commit }: { state: any; commit: any }): Promise<void>
|
|
42
|
-
function getUserInfo({ commit }: { commit: any }): Promise<any>
|
|
43
|
-
}
|
|
2
|
+
namespace state {
|
|
3
|
+
let userName: string;
|
|
4
|
+
let avatarImgPath: string;
|
|
5
|
+
let token: string | boolean;
|
|
6
|
+
}
|
|
7
|
+
namespace mutations {
|
|
8
|
+
function setAvatar(state: any, avatarPath: any): void;
|
|
9
|
+
function setUserName(state: any, name: any): void;
|
|
10
|
+
function setToken(state: any, token: any): void;
|
|
11
|
+
}
|
|
12
|
+
namespace actions {
|
|
13
|
+
function handleLogin({ dispatch }: {
|
|
14
|
+
dispatch: any;
|
|
15
|
+
}, { userName, password, validCodeId, validCodeInput }: {
|
|
16
|
+
userName: any;
|
|
17
|
+
password: any;
|
|
18
|
+
validCodeId: any;
|
|
19
|
+
validCodeInput: any;
|
|
20
|
+
}): Promise<any>;
|
|
21
|
+
function loginSuccess({ commit, dispatch }: {
|
|
22
|
+
commit: any;
|
|
23
|
+
dispatch: any;
|
|
24
|
+
}, token: any): void;
|
|
25
|
+
function handleLogout({ state, commit }: {
|
|
26
|
+
state: any;
|
|
27
|
+
commit: any;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
function getUserInfo({ commit }: {
|
|
30
|
+
commit: any;
|
|
31
|
+
}): Promise<any>;
|
|
32
|
+
}
|
|
44
33
|
}
|
|
45
|
-
export default _default
|
|
34
|
+
export default _default;
|