@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.
- package/CHANGELOG.md +210 -479
- package/dist/ind-common-mobile.es.js +5788 -2772
- package/dist/ind-common-mobile.umd.cjs +103 -102
- package/dist/styles/index.css +1 -1
- package/package.json +2 -2
- package/src/styles/variables/base.less +7 -4
- package/src/styles/variables/theme1.less +12 -2
- package/src/styles/variables/theme2.less +7 -2
- package/types/api/ipm/dm/demand/demand.d.ts +10 -6
- package/types/api/ism/am/basic/item.d.ts +6 -6
- package/types/components/404/back-btn-group.vue.d.ts +17 -5
- package/types/components/404/error-content.vue.d.ts +24 -10
- package/types/components/404/index.d.ts +2 -2
- package/types/components/404/index.vue.d.ts +16 -4
- package/types/components/form/condition-manager.vue.d.ts +36 -22
- package/types/components/form/form.vue.d.ts +29 -15
- 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 +40 -26
- 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 +28 -16
- package/types/components/layout/route-wrapper/empty-layout.vue.d.ts +18 -6
- package/types/components/layout/route-wrapper/index.d.ts +2 -2
- package/types/components/layout/view-wrapper/detail-view.vue.d.ts +45 -31
- package/types/components/layout/view-wrapper/index.d.ts +2 -2
- package/types/components/layout/view-wrapper/page-view.vue.d.ts +37 -23
- package/types/components/login/index.d.ts +1 -1
- package/types/components/login/login-form.vue.d.ts +80 -66
- package/types/components/login/login.vue.d.ts +16 -4
- package/types/components/tabbar/Tabbar.vue.d.ts +16 -4
- package/types/components/tabbar/index.d.ts +1 -1
- package/types/config.d.ts +29 -29
- package/types/index.d.ts +21 -18
- package/types/mixins/popper.d.ts +62 -62
- package/types/plugins/config-plugin.d.ts +9 -4
- package/types/plugins/index.d.ts +2 -2
- package/types/plugins/router-plugin.d.ts +14 -8
- package/types/router/basic-routes.d.ts +8 -7
- package/types/router/generator-routers.d.ts +4 -4
- package/types/router/guard.d.ts +11 -6
- package/types/router/index.d.ts +4 -4
- package/types/store/app.d.ts +96 -68
- package/types/store/index.d.ts +6 -6
- package/types/store/user.d.ts +43 -32
- 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 +21 -2
- 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 +61 -42
- 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
package/types/mixins/popper.d.ts
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
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
|
-
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
58
|
-
|
|
45
|
+
}
|
|
46
|
+
export { _default as default }
|
|
59
47
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
66
|
-
function
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
package/types/plugins/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as IndConfigPlugin } from
|
|
2
|
-
export { default as IndRouterPlugin } from
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
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[]
|
package/types/router/guard.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
export function addRouterGuards({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
package/types/router/index.d.ts
CHANGED
package/types/store/app.d.ts
CHANGED
|
@@ -1,70 +1,98 @@
|
|
|
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
|
-
|
|
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
|
-
|
|
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
|
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,34 +1,45 @@
|
|
|
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
|
-
|
|
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
|