@indfnd/common-mobile 0.0.82 → 0.0.85

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 (61) hide show
  1. package/CHANGELOG.md +210 -479
  2. package/dist/ind-common-mobile.es.js +5788 -2772
  3. package/dist/ind-common-mobile.umd.cjs +103 -102
  4. package/dist/styles/index.css +1 -1
  5. package/package.json +2 -2
  6. package/src/styles/variables/base.less +7 -4
  7. package/src/styles/variables/theme1.less +12 -2
  8. package/src/styles/variables/theme2.less +7 -2
  9. package/types/api/ipm/dm/demand/demand.d.ts +10 -6
  10. package/types/api/ism/am/basic/item.d.ts +6 -6
  11. package/types/components/404/back-btn-group.vue.d.ts +17 -5
  12. package/types/components/404/error-content.vue.d.ts +24 -10
  13. package/types/components/404/index.d.ts +2 -2
  14. package/types/components/404/index.vue.d.ts +16 -4
  15. package/types/components/form/condition-manager.vue.d.ts +36 -22
  16. package/types/components/form/form.vue.d.ts +29 -15
  17. package/types/components/form/index.d.ts +1 -1
  18. package/types/components/index.d.ts +4 -4
  19. package/types/components/layout/basic/index.d.ts +1 -1
  20. package/types/components/layout/basic/user.vue.d.ts +40 -26
  21. package/types/components/layout/index.d.ts +3 -3
  22. package/types/components/layout/mixin/item-mixin.d.ts +19 -19
  23. package/types/components/layout/mixin/mixin.d.ts +9 -9
  24. package/types/components/layout/route-wrapper/basic-layout.vue.d.ts +28 -16
  25. package/types/components/layout/route-wrapper/empty-layout.vue.d.ts +18 -6
  26. package/types/components/layout/route-wrapper/index.d.ts +2 -2
  27. package/types/components/layout/view-wrapper/detail-view.vue.d.ts +45 -31
  28. package/types/components/layout/view-wrapper/index.d.ts +2 -2
  29. package/types/components/layout/view-wrapper/page-view.vue.d.ts +37 -23
  30. package/types/components/login/index.d.ts +1 -1
  31. package/types/components/login/login-form.vue.d.ts +80 -66
  32. package/types/components/login/login.vue.d.ts +16 -4
  33. package/types/components/tabbar/Tabbar.vue.d.ts +16 -4
  34. package/types/components/tabbar/index.d.ts +1 -1
  35. package/types/config.d.ts +29 -29
  36. package/types/index.d.ts +21 -18
  37. package/types/mixins/popper.d.ts +62 -62
  38. package/types/plugins/config-plugin.d.ts +9 -4
  39. package/types/plugins/index.d.ts +2 -2
  40. package/types/plugins/router-plugin.d.ts +14 -8
  41. package/types/router/basic-routes.d.ts +8 -7
  42. package/types/router/generator-routers.d.ts +4 -4
  43. package/types/router/guard.d.ts +11 -6
  44. package/types/router/index.d.ts +4 -4
  45. package/types/store/app.d.ts +96 -68
  46. package/types/store/index.d.ts +6 -6
  47. package/types/store/user.d.ts +43 -32
  48. package/types/utils/ag-table/ag-table-locale.d.ts +263 -263
  49. package/types/utils/ag-table/agGridUtils.d.ts +1 -1
  50. package/types/utils/ag-table/index.d.ts +2 -2
  51. package/types/utils/date.d.ts +10 -10
  52. package/types/utils/eventBus.d.ts +21 -2
  53. package/types/utils/excel/Export2Excel.d.ts +1 -1
  54. package/types/utils/excel/assist.d.ts +1 -1
  55. package/types/utils/excel/excel.d.ts +61 -42
  56. package/types/utils/excel/index.d.ts +2 -2
  57. package/types/utils/index.d.ts +8 -8
  58. package/types/utils/router.d.ts +12 -12
  59. package/types/utils/style.d.ts +1 -1
  60. package/types/utils/theme.d.ts +3 -3
  61. package/types/utils/transfer-queue.d.ts +2 -2
@@ -1,68 +1,68 @@
1
1
  declare namespace _default {
2
- namespace props {
3
- namespace eventsEnabled {
4
- export let type: BooleanConstructor;
5
- let _default: boolean;
6
- export { _default as default };
7
- }
8
- namespace placement {
9
- let type_1: StringConstructor;
10
- export { type_1 as type };
11
- let _default_1: string;
12
- export { _default_1 as default };
13
- }
14
- namespace boundariesPadding {
15
- let type_2: NumberConstructor;
16
- export { type_2 as type };
17
- let _default_2: number;
18
- export { _default_2 as default };
19
- }
20
- let reference: ObjectConstructor;
21
- let popper: ObjectConstructor;
22
- namespace offset {
23
- let _default_3: number;
24
- export { _default_3 as default };
25
- }
26
- namespace value {
27
- let type_3: BooleanConstructor;
28
- export { type_3 as type };
29
- let _default_4: boolean;
30
- export { _default_4 as default };
31
- }
32
- let transition: StringConstructor;
33
- namespace options {
34
- let type_4: ObjectConstructor;
35
- export { type_4 as type };
36
- function _default(): {
37
- modifiers: {
38
- computeStyle: {
39
- gpuAcceleration: boolean;
40
- };
41
- preventOverflow: {
42
- boundariesElement: string;
43
- };
44
- };
45
- };
46
- export { _default as default };
47
- }
2
+ namespace props {
3
+ namespace eventsEnabled {
4
+ export let type: BooleanConstructor
5
+ let _default: boolean
6
+ export { _default as default }
7
+ }
8
+ namespace placement {
9
+ let type_1: StringConstructor
10
+ export { type_1 as type }
11
+ let _default_1: string
12
+ export { _default_1 as default }
13
+ }
14
+ namespace boundariesPadding {
15
+ let type_2: NumberConstructor
16
+ export { type_2 as type }
17
+ let _default_2: number
18
+ export { _default_2 as default }
19
+ }
20
+ let reference: ObjectConstructor
21
+ let popper: ObjectConstructor
22
+ namespace offset {
23
+ let _default_3: number
24
+ export { _default_3 as default }
25
+ }
26
+ namespace value {
27
+ let type_3: BooleanConstructor
28
+ export { type_3 as type }
29
+ let _default_4: boolean
30
+ export { _default_4 as default }
48
31
  }
49
- function data(): {
50
- visible: any;
51
- };
52
- namespace watch {
53
- export namespace value_1 {
54
- let immediate: boolean;
55
- function handler(val: any): void;
32
+ let transition: StringConstructor
33
+ namespace options {
34
+ let type_4: ObjectConstructor
35
+ export { type_4 as type }
36
+ function _default(): {
37
+ modifiers: {
38
+ computeStyle: {
39
+ gpuAcceleration: boolean
40
+ }
41
+ preventOverflow: {
42
+ boundariesElement: string
43
+ }
56
44
  }
57
- export { value_1 as value };
58
- export function visible(val: any): void;
45
+ }
46
+ export { _default as default }
59
47
  }
60
- namespace methods {
61
- function createPopper(): void;
62
- function updatePopper(): void;
63
- function doDestroy(): void;
48
+ }
49
+ function data(): {
50
+ visible: any
51
+ }
52
+ namespace watch {
53
+ export namespace value_1 {
54
+ let immediate: boolean
55
+ function handler(val: any): void
64
56
  }
65
- function updated(): void;
66
- function beforeDestroy(): void;
57
+ export { value_1 as value }
58
+ export function visible(val: any): void
59
+ }
60
+ namespace methods {
61
+ function createPopper(): void
62
+ function updatePopper(): void
63
+ function doDestroy(): void
64
+ }
65
+ function updated(): void
66
+ function beforeDestroy(): void
67
67
  }
68
- export default _default;
68
+ export default _default
@@ -1,6 +1,11 @@
1
1
  declare namespace _default {
2
- function install(Vue: any, { config: appConfig }?: {
3
- config: any;
4
- }): void;
2
+ function install(
3
+ Vue: any,
4
+ {
5
+ config: appConfig,
6
+ }?: {
7
+ config: any
8
+ },
9
+ ): void
5
10
  }
6
- export default _default;
11
+ export default _default
@@ -1,2 +1,2 @@
1
- export { default as IndConfigPlugin } from "./config-plugin";
2
- export { default as IndRouterPlugin } from "./router-plugin";
1
+ export { default as IndConfigPlugin } from './config-plugin'
2
+ export { default as IndRouterPlugin } from './router-plugin'
@@ -1,10 +1,16 @@
1
1
  declare namespace _default {
2
- /**
3
- * 使用场景:从权限资源配置的页面回到配置的菜单
4
- */
5
- function install(Vue: any, { router, store }: {
6
- router: any;
7
- store: any;
8
- }): void;
2
+ /**
3
+ * 使用场景:从权限资源配置的页面回到配置的菜单
4
+ */
5
+ function install(
6
+ Vue: any,
7
+ {
8
+ router,
9
+ store,
10
+ }: {
11
+ router: any
12
+ store: any
13
+ },
14
+ ): void
9
15
  }
10
- export default _default;
16
+ export default _default
@@ -1,7 +1,8 @@
1
- export function createMacroBasicRoutes({ homeComponent, rootChildren }?: {
2
- homeComponent: any;
3
- rootChildren: any;
4
- }): any[];
5
- export function createMicroBasicRoutes({ rootChildren }?: {
6
- rootChildren: any;
7
- }): any[];
1
+ export function createMacroBasicRoutes({
2
+ homeComponent,
3
+ rootChildren,
4
+ }?: {
5
+ homeComponent: any
6
+ rootChildren: any
7
+ }): any[]
8
+ export function createMicroBasicRoutes({ rootChildren }?: { rootChildren: any }): any[]
@@ -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,6 +1,11 @@
1
- export function addRouterGuards({ router, store, microType, allowPermissionList }: {
2
- router: any;
3
- store: any;
4
- microType: any;
5
- allowPermissionList: any;
6
- }): void;
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,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,70 +1,98 @@
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(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
- }
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
+ }
69
97
  }
70
- export default _default;
98
+ 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,34 +1,45 @@
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({ 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
- }
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
+ }
33
44
  }
34
- export default _default;
45
+ export default _default