@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.
Files changed (58) hide show
  1. package/CHANGELOG.md +831 -4
  2. package/dist/ind-common-mobile.es.js +267 -399
  3. package/dist/ind-common-mobile.umd.cjs +31 -31
  4. package/dist/styles/index.css +1 -1
  5. package/package.json +1 -1
  6. package/types/api/ipm/dm/demand/demand.d.ts +6 -10
  7. package/types/api/ism/am/basic/item.d.ts +6 -6
  8. package/types/components/404/back-btn-group.vue.d.ts +5 -17
  9. package/types/components/404/error-content.vue.d.ts +10 -24
  10. package/types/components/404/index.d.ts +2 -2
  11. package/types/components/404/index.vue.d.ts +4 -16
  12. package/types/components/form/condition-manager.vue.d.ts +22 -36
  13. package/types/components/form/form.vue.d.ts +15 -29
  14. package/types/components/form/index.d.ts +1 -1
  15. package/types/components/index.d.ts +4 -4
  16. package/types/components/layout/basic/index.d.ts +1 -1
  17. package/types/components/layout/basic/user.vue.d.ts +26 -40
  18. package/types/components/layout/index.d.ts +3 -3
  19. package/types/components/layout/mixin/item-mixin.d.ts +19 -19
  20. package/types/components/layout/mixin/mixin.d.ts +9 -9
  21. package/types/components/layout/route-wrapper/basic-layout.vue.d.ts +16 -28
  22. package/types/components/layout/route-wrapper/empty-layout.vue.d.ts +6 -18
  23. package/types/components/layout/route-wrapper/index.d.ts +2 -2
  24. package/types/components/layout/view-wrapper/detail-view.vue.d.ts +31 -45
  25. package/types/components/layout/view-wrapper/index.d.ts +2 -2
  26. package/types/components/layout/view-wrapper/page-view.vue.d.ts +23 -37
  27. package/types/components/login/index.d.ts +1 -1
  28. package/types/components/login/login-form.vue.d.ts +66 -80
  29. package/types/components/login/login.vue.d.ts +4 -16
  30. package/types/components/tabbar/Tabbar.vue.d.ts +4 -16
  31. package/types/components/tabbar/index.d.ts +1 -1
  32. package/types/config.d.ts +29 -29
  33. package/types/index.d.ts +18 -21
  34. package/types/mixins/popper.d.ts +62 -62
  35. package/types/plugins/config-plugin.d.ts +4 -9
  36. package/types/plugins/index.d.ts +2 -2
  37. package/types/plugins/router-plugin.d.ts +8 -14
  38. package/types/router/basic-routes.d.ts +7 -8
  39. package/types/router/generator-routers.d.ts +4 -4
  40. package/types/router/guard.d.ts +6 -11
  41. package/types/router/index.d.ts +4 -4
  42. package/types/store/app.d.ts +68 -96
  43. package/types/store/index.d.ts +6 -6
  44. package/types/store/user.d.ts +32 -43
  45. package/types/utils/ag-table/ag-table-locale.d.ts +263 -263
  46. package/types/utils/ag-table/agGridUtils.d.ts +1 -1
  47. package/types/utils/ag-table/index.d.ts +2 -2
  48. package/types/utils/date.d.ts +10 -10
  49. package/types/utils/eventBus.d.ts +2 -21
  50. package/types/utils/excel/Export2Excel.d.ts +1 -1
  51. package/types/utils/excel/assist.d.ts +1 -1
  52. package/types/utils/excel/excel.d.ts +42 -61
  53. package/types/utils/excel/index.d.ts +2 -2
  54. package/types/utils/index.d.ts +8 -8
  55. package/types/utils/router.d.ts +12 -12
  56. package/types/utils/style.d.ts +1 -1
  57. package/types/utils/theme.d.ts +3 -3
  58. 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[];
@@ -1,11 +1,6 @@
1
- export function addRouterGuards({
2
- router,
3
- store,
4
- microType,
5
- allowPermissionList,
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;
@@ -1,6 +1,6 @@
1
- export * from './basic-routes'
2
- export * from './guard'
1
+ export * from "./basic-routes";
2
+ export * from "./guard";
3
3
  export namespace routerOptions {
4
- let mode: string
5
- let base: string
4
+ let mode: string;
5
+ let base: string;
6
6
  }
@@ -1,98 +1,70 @@
1
1
  declare namespace _default {
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(
33
- state: any,
34
- {
35
- $router,
36
- route,
37
- }: {
38
- $router: any
39
- route: any
40
- },
41
- ): void
42
- function addTag(
43
- state: any,
44
- {
45
- route,
46
- type,
47
- }: {
48
- route: any
49
- type?: string
50
- },
51
- ): void
52
- function setActiveName(state: any, activeName: any): void
53
- function setCollectMenuList(state: any, list: any): void
54
- function setMaxTabNum(state: any, maxTabNum?: number): void
55
- function setTheme(state: any, theme: any): void
56
- }
57
- namespace actions {
58
- function getAppListData({ commit, getters }: { commit: any; getters: any }): Promise<any>
59
- function getPermissionData({ commit }: { commit: any }): Promise<any>
60
- function addMenuHistory(
61
- {
62
- state,
63
- }: {
64
- state: any
65
- },
66
- {
67
- name,
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;
@@ -1,8 +1,8 @@
1
1
  export namespace store {
2
- namespace modules {
3
- export { user }
4
- export { app }
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';
@@ -1,45 +1,34 @@
1
1
  declare namespace _default {
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(
14
- {
15
- dispatch,
16
- }: {
17
- dispatch: any
18
- },
19
- {
20
- userName,
21
- password,
22
- validCodeId,
23
- validCodeInput,
24
- }: {
25
- userName: any
26
- password: any
27
- validCodeId: any
28
- validCodeInput: any
29
- },
30
- ): Promise<any>
31
- function loginSuccess(
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;