vue2-client 1.10.33 → 1.10.35
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/package.json +107 -107
- package/src/App.vue +196 -196
- package/src/base-client/components/common/XAddNativeForm/demo.vue +43 -43
- package/src/base-client/components/common/XAddReport/XAddReport.vue +1 -1
- package/src/base-client/components/common/XConversation/XConversation.vue +12 -0
- package/src/base-client/components/common/XForm/XForm.vue +393 -393
- package/src/base-client/components/common/XForm/XFormItem.vue +1248 -1248
- package/src/base-client/components/common/XFormCol/XFormCol.vue +157 -157
- package/src/base-client/components/common/XFormTable/XFormTable.vue +12 -0
- package/src/base-client/components/common/XIntervalPicker/XIntervalPicker.vue +121 -121
- package/src/base-client/components/common/XReportDrawer/XReportDrawer.vue +1 -1
- package/src/base-client/components/common/XReportGrid/XReport.vue +1079 -1070
- package/src/base-client/components/common/XReportGrid/XReportDemo.vue +46 -47
- package/src/base-client/components/common/XReportGrid/XReportDesign.vue +628 -628
- package/src/base-client/components/common/XReportGrid/XReportJsonRender.vue +380 -380
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +1104 -1104
- package/src/base-client/components/common/XReportGrid/print.js +184 -184
- package/src/base-client/components/common/XTab/XTab.vue +57 -25
- package/src/components/cache/AKeepAlive.js +179 -179
- package/src/layouts/BlankView.vue +78 -78
- package/src/pages/ReportGrid/index.vue +76 -76
- package/src/router/async/router.map.js +2 -2
- package/src/utils/microAppUtils.js +49 -49
|
@@ -72,10 +72,10 @@ routerResource.example = {
|
|
|
72
72
|
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
|
73
73
|
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
|
74
74
|
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
|
75
|
-
component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
|
75
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
|
76
76
|
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
|
77
77
|
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
|
78
|
-
|
|
78
|
+
component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
|
|
79
79
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
80
80
|
// component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
|
|
81
81
|
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取 window 对象
|
|
3
|
-
* @returns {Window} window 对象
|
|
4
|
-
*/
|
|
5
|
-
export function getWindow () {
|
|
6
|
-
return window
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* 获取当前子应用的 name
|
|
11
|
-
* @returns {string} 子应用的 name
|
|
12
|
-
*/
|
|
13
|
-
export function getMicroAppName () {
|
|
14
|
-
// 如果在微前端环境中运行,返回应用名称,否则返回 undefined
|
|
15
|
-
return window.__MICRO_APP_ENVIRONMENT__ ? window.__MICRO_APP_NAME__ : undefined
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* 判断是否处于 microApp 环境
|
|
20
|
-
* @returns {boolean} 如果在 microApp 环境下返回 true,否则返回 false
|
|
21
|
-
*/
|
|
22
|
-
export function isMicroAppEnv () {
|
|
23
|
-
return window.__MICRO_APP_ENVIRONMENT__
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* 发送事件给基座应用
|
|
28
|
-
* @param {Object} data 要传递的数据
|
|
29
|
-
* @param {Function} callBack 如果不是 microApp 环境时的回调函数
|
|
30
|
-
* @returns {*} 在 microApp 环境下返回 dispatch 的结果,否则执行 callBack
|
|
31
|
-
*/
|
|
32
|
-
export function microDispatch (data, callBack) {
|
|
33
|
-
if (window.__MICRO_APP_ENVIRONMENT__) {
|
|
34
|
-
return window.microApp.dispatch(data)
|
|
35
|
-
}
|
|
36
|
-
if (callBack) {
|
|
37
|
-
return callBack()
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* 获取 microApp 的数据
|
|
43
|
-
* @returns {*} microApp 的数据,如果不在 microApp 环境下返回 undefined
|
|
44
|
-
*/
|
|
45
|
-
export function getMicroData () {
|
|
46
|
-
if (window.__MICRO_APP_ENVIRONMENT__) {
|
|
47
|
-
return window.microApp.getData()
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 获取 window 对象
|
|
3
|
+
* @returns {Window} window 对象
|
|
4
|
+
*/
|
|
5
|
+
export function getWindow () {
|
|
6
|
+
return window
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 获取当前子应用的 name
|
|
11
|
+
* @returns {string} 子应用的 name
|
|
12
|
+
*/
|
|
13
|
+
export function getMicroAppName () {
|
|
14
|
+
// 如果在微前端环境中运行,返回应用名称,否则返回 undefined
|
|
15
|
+
return window.__MICRO_APP_ENVIRONMENT__ ? window.__MICRO_APP_NAME__ : undefined
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 判断是否处于 microApp 环境
|
|
20
|
+
* @returns {boolean} 如果在 microApp 环境下返回 true,否则返回 false
|
|
21
|
+
*/
|
|
22
|
+
export function isMicroAppEnv () {
|
|
23
|
+
return window.__MICRO_APP_ENVIRONMENT__
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 发送事件给基座应用
|
|
28
|
+
* @param {Object} data 要传递的数据
|
|
29
|
+
* @param {Function} callBack 如果不是 microApp 环境时的回调函数
|
|
30
|
+
* @returns {*} 在 microApp 环境下返回 dispatch 的结果,否则执行 callBack
|
|
31
|
+
*/
|
|
32
|
+
export function microDispatch (data, callBack) {
|
|
33
|
+
if (window.__MICRO_APP_ENVIRONMENT__) {
|
|
34
|
+
return window.microApp.dispatch(data)
|
|
35
|
+
}
|
|
36
|
+
if (callBack) {
|
|
37
|
+
return callBack()
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 获取 microApp 的数据
|
|
43
|
+
* @returns {*} microApp 的数据,如果不在 microApp 环境下返回 undefined
|
|
44
|
+
*/
|
|
45
|
+
export function getMicroData () {
|
|
46
|
+
if (window.__MICRO_APP_ENVIRONMENT__) {
|
|
47
|
+
return window.microApp.getData()
|
|
48
|
+
}
|
|
49
|
+
}
|