@ibiz-template/vue3-components 0.7.41-alpha.110 → 0.7.41-alpha.112
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/dist/ibiz-markdown-editor-B1eF2FNS.js +1 -0
- package/dist/index-BLBroBhu.js +1 -0
- package/dist/index-C-9vEACb.js +1 -0
- package/dist/{index-DWSenYP7.js → index-XI8ySm9i.js} +7 -7
- package/dist/{index.es-BsB4zr7o.js → index.es-Dsu1bPbQ.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-nwkjjlMK.js +1 -0
- package/dist/map-chart-user-BqadFpkw.js +1 -0
- package/dist/{wang-editor-DRSeYDm8.js → wang-editor-4OTQfjW9.js} +1 -1
- package/dist/{xlsx-util-BP1V2Kg2.js → xlsx-util--TUzshNx.js} +1 -1
- package/es/common/map-chart/map-chart.mjs +2 -9
- package/es/common/map-chart-user/map-chart-user.mjs +3 -11
- package/es/control/calendar/calendar.mjs +17 -4
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +4 -2
- package/es/control/calendar/components/calendar-user2/calendar-user2.mjs +4 -3
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.mjs +4 -2
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.mjs +1 -0
- package/es/control/grid/grid/grid-control.util.mjs +14 -1
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +5 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/map/map.mjs +33 -7
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +2 -2
- package/es/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.mjs +5 -3
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -2
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -2
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +2 -2
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -2
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.mjs +17 -15
- package/es/editor/dropdown-list/dropdown-list-editor.controller.mjs +15 -5
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +19 -4
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +6 -5
- package/es/index.mjs +1 -0
- package/es/locale/en/index.mjs +2 -1
- package/es/locale/zh-CN/index.mjs +2 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view/index.mjs +1 -0
- package/es/view/unauthorized-view/unauthorized-view.css +1 -0
- package/es/view/unauthorized-view/unauthorized-view.mjs +56 -0
- package/es/web-app/adaptive-screen-width.mjs +11 -8
- package/es/web-app/router/index.mjs +10 -0
- package/lib/common/map-chart/map-chart.cjs +1 -8
- package/lib/common/map-chart-user/map-chart-user.cjs +2 -10
- package/lib/control/calendar/calendar.cjs +16 -3
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +4 -2
- package/lib/control/calendar/components/calendar-user2/calendar-user2.cjs +4 -3
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +4 -2
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.cjs +1 -0
- package/lib/control/grid/grid/grid-control.util.cjs +14 -1
- package/lib/control/grid/grid/grid.cjs +5 -2
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/map/map.cjs +32 -6
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +2 -2
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.css +1 -1
- package/lib/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.cjs +5 -3
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +2 -2
- package/lib/editor/date-range-select/date-range-select-picker/date-range-select.cjs +17 -15
- package/lib/editor/dropdown-list/dropdown-list-editor.controller.cjs +15 -5
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +19 -4
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +6 -5
- package/lib/index.cjs +2 -0
- package/lib/locale/en/index.cjs +2 -1
- package/lib/locale/zh-CN/index.cjs +2 -1
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view/index.cjs +2 -0
- package/lib/view/unauthorized-view/unauthorized-view.cjs +58 -0
- package/lib/view/unauthorized-view/unauthorized-view.css +1 -0
- package/lib/web-app/adaptive-screen-width.cjs +11 -8
- package/lib/web-app/router/index.cjs +10 -0
- package/package.json +8 -8
- package/src/common/map-chart/map-chart.tsx +3 -5
- package/src/common/map-chart-user/map-chart-user.tsx +3 -8
- package/src/control/calendar/calendar.tsx +27 -1
- package/src/control/calendar/components/calendar-user/calendar-user.tsx +8 -2
- package/src/control/calendar/components/calendar-user2/calendar-user2.tsx +7 -3
- package/src/control/drtab/drtab.tsx +10 -2
- package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.tsx +1 -0
- package/src/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid2/repeater-grid2.tsx +1 -0
- package/src/control/grid/grid/grid-control.util.ts +20 -0
- package/src/control/grid/grid/grid.scss +1 -1
- package/src/control/grid/grid/grid.tsx +3 -0
- package/src/control/grid/grid-column/grid-field-column/grid-field-column.scss +3 -3
- package/src/control/map/map.tsx +44 -4
- package/src/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.scss +12 -1
- package/src/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.tsx +2 -1
- package/src/editor/color-picker/ibiz-color-mpicker-default/ibiz-color-mpicker-default.tsx +10 -2
- package/src/editor/data-picker/ibiz-mpicker/ibiz-mpicker.tsx +2 -1
- package/src/editor/data-picker/ibiz-picker/ibiz-picker.tsx +2 -1
- package/src/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.tsx +2 -1
- package/src/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.tsx +2 -5
- package/src/editor/date-range-select/date-range-select-picker/date-range-select.tsx +27 -13
- package/src/editor/dropdown-list/dropdown-list-editor.controller.ts +12 -2
- package/src/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.tsx +32 -4
- package/src/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.tsx +5 -5
- package/src/locale/en/index.ts +1 -0
- package/src/locale/zh-CN/index.ts +1 -0
- package/src/panel-component/auth-userinfo/auth-userinfo.scss +5 -1
- package/src/view/index.ts +1 -0
- package/src/view/unauthorized-view/unauthorized-view.scss +20 -0
- package/src/view/unauthorized-view/unauthorized-view.tsx +81 -0
- package/src/web-app/adaptive-screen-width.ts +22 -10
- package/src/web-app/router/index.ts +14 -1
- package/dist/ibiz-markdown-editor-CWm3E2Yp.js +0 -1
- package/dist/index-B_EuifAN.js +0 -1
- package/dist/index-DtplUClV.js +0 -1
- package/dist/map-chart-DbBbP4qh.js +0 -1
- package/dist/map-chart-user-CfTAGaU5.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.113_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.113_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-user-info{--ibiz-user-info-padding:0 var(--ibiz-spacing-loose);--ibiz-user-info-color:var(--ibiz-color-text-0);--ibiz-user-info-font-size:var(--ibiz-font-size-header-5);--ibiz-user-info-height:44px;--ibiz-user-info-collapse-padding:0 var(--ibiz-spacing-base-tight);--ibiz-user-info-avatar-max-width:32px;--ibiz-user-info-avatar-max-height:32px;--ibiz-user-info-avatar-gap:var(--ibiz-spacing-base);--ibiz-user-info-name-max-width:130px;--ibiz-user-info-name-font-size:var(--ibiz-user-info-font-size);--ibiz-user-info-name-person-font-size:var(--ibiz-font-size-small);--ibiz-user-info-name-person-gap:var(--ibiz-spacing-extra-tight);--ibiz-user-info-name-arrow-gap:var(--ibiz-spacing-base-tight);display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%}.ibiz-user-info .el-dropdown{width:100%;height:var(--ibiz-user-info-height);padding:var(--ibiz-user-info-padding);cursor:pointer}.ibiz-user-info.is-left .ibiz-user-info__down{display:none}.ibiz-user-info.is-top .ibiz-user-info__down{margin-left:var(--ibiz-user-info-name-arrow-gap);font-size:var(--ibiz-user-info-font-size)}.ibiz-user-info.is-top .ibiz-user-info-avatar{max-width:var(--ibiz-user-info-avatar-max-width);max-height:var(--ibiz-user-info-avatar-max-height);margin-right:var(--ibiz-user-info-avatar-gap)}.ibiz-user-info.is-collapse .el-dropdown{padding:
|
|
1
|
+
.ibiz-user-info{--ibiz-user-info-padding:0 var(--ibiz-spacing-loose);--ibiz-user-info-color:var(--ibiz-color-text-0);--ibiz-user-info-font-size:var(--ibiz-font-size-header-5);--ibiz-user-info-height:44px;--ibiz-user-info-collapse-padding:0 var(--ibiz-spacing-base-tight);--ibiz-user-info-avatar-max-width:32px;--ibiz-user-info-avatar-max-height:32px;--ibiz-user-info-avatar-gap:var(--ibiz-spacing-base);--ibiz-user-info-name-max-width:130px;--ibiz-user-info-name-font-size:var(--ibiz-user-info-font-size);--ibiz-user-info-name-person-font-size:var(--ibiz-font-size-small);--ibiz-user-info-name-person-gap:var(--ibiz-spacing-extra-tight);--ibiz-user-info-name-arrow-gap:var(--ibiz-spacing-base-tight);display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%}.ibiz-user-info .el-dropdown{width:100%;height:var(--ibiz-user-info-height);padding:var(--ibiz-user-info-padding);cursor:pointer}.ibiz-user-info__icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-user-info.is-left .ibiz-user-info__down{display:none}.ibiz-user-info.is-top .ibiz-user-info__down{margin-left:var(--ibiz-user-info-name-arrow-gap);font-size:var(--ibiz-user-info-font-size)}.ibiz-user-info.is-top .ibiz-user-info-avatar{max-width:var(--ibiz-user-info-avatar-max-width);max-height:var(--ibiz-user-info-avatar-max-height);margin-right:var(--ibiz-user-info-avatar-gap)}.ibiz-user-info.is-collapse .el-dropdown{padding:var(--ibiz-user-info-collapse-padding)}.ibiz-user-info.is-collapse .ibiz-user-info-avatar{max-width:var(--ibiz-user-info-avatar-max-width);max-height:var(--ibiz-user-info-avatar-max-height);margin:0}.ibiz-user-info.is-readonly .el-dropdown{cursor:default}.ibiz-user-info-avatar{width:var(--ibiz-user-info-height);height:var(--ibiz-user-info-height);margin-right:10px}.ibiz-user-info-info{width:100%;display:flex;align-items:center;justify-content:space-between;color:var(--ibiz-user-info-color)}.ibiz-user-info-info.is-collapse{justify-content:center}.ibiz-user-info-name__user-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--ibiz-user-info-name-max-width);font-size:var(--ibiz-user-info-name-font-size);line-height:1.3}.ibiz-user-info-name__person-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--ibiz-user-info-name-max-width);margin-top:var(--ibiz-user-info-name-person-gap);font-size:var(--ibiz-user-info-name-person-font-size);line-height:1.2}.ibiz-user-info-name.is-collapse{display:none}.ibiz-user-info-label{display:flex;align-items:center;justify-content:flex-start;font-size:var(--ibiz-user-info-font-size);color:var(--ibiz-user-info-color);outline:0}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var ElementPlus = require('element-plus');
|
|
5
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
5
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.117_axios@1.12.2_lodash-es@4.17.21_qs@6.14.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
6
6
|
var fullscreenToolbar = require('../../common/fullscreen-toolbar/fullscreen-toolbar.cjs');
|
|
7
7
|
|
|
8
8
|
"use strict";
|
package/lib/view/index.cjs
CHANGED
|
@@ -6,6 +6,7 @@ var loginView = require('./login-view/login-view.cjs');
|
|
|
6
6
|
var index = require('./wf-step-trace-view/index.cjs');
|
|
7
7
|
var index$1 = require('./sub-app-ref-view/index.cjs');
|
|
8
8
|
var errorView = require('./error-view/error-view.cjs');
|
|
9
|
+
var unauthorizedView = require('./unauthorized-view/unauthorized-view.cjs');
|
|
9
10
|
|
|
10
11
|
"use strict";
|
|
11
12
|
|
|
@@ -15,3 +16,4 @@ exports.LoginView = loginView.LoginView;
|
|
|
15
16
|
exports.IBizWFStepTraceView = index.IBizWFStepTraceView;
|
|
16
17
|
exports.IBizSubAppRefView = index$1.IBizSubAppRefView;
|
|
17
18
|
exports.ErrorView = errorView.ErrorView;
|
|
19
|
+
exports.UnauthorizedView = unauthorizedView.UnauthorizedView;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var vueRouter = require('vue-router');
|
|
6
|
+
var core = require('@ibiz-template/core');
|
|
7
|
+
require('./unauthorized-view.css');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const UnauthorizedView = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
setup() {
|
|
12
|
+
const ns = vue3Util.useNamespace("unauthorized-view");
|
|
13
|
+
const route = vueRouter.useRoute();
|
|
14
|
+
const viewCodeName = vue.computed(() => {
|
|
15
|
+
return "".concat(route.params.viewcodename);
|
|
16
|
+
});
|
|
17
|
+
const hasAppView = vue.ref(false);
|
|
18
|
+
const appView = vue.ref(null);
|
|
19
|
+
const viewShell = vue.resolveComponent("IBizViewShell");
|
|
20
|
+
const context = core.IBizContext.create({});
|
|
21
|
+
const params = {};
|
|
22
|
+
const isMounted = vue.ref(false);
|
|
23
|
+
vue.onMounted(async () => {
|
|
24
|
+
try {
|
|
25
|
+
const appViewConfig = await ibiz.hub.config.view.get(viewCodeName.value);
|
|
26
|
+
if (appViewConfig) {
|
|
27
|
+
appView.value = appViewConfig;
|
|
28
|
+
hasAppView.value = true;
|
|
29
|
+
}
|
|
30
|
+
} catch (err) {
|
|
31
|
+
ibiz.log.warn(err);
|
|
32
|
+
}
|
|
33
|
+
ibiz.util.hiddenAppLoading();
|
|
34
|
+
isMounted.value = true;
|
|
35
|
+
});
|
|
36
|
+
return () => {
|
|
37
|
+
if (isMounted.value) {
|
|
38
|
+
return hasAppView.value ? vue.h(viewShell, {
|
|
39
|
+
context,
|
|
40
|
+
params,
|
|
41
|
+
viewId: appView.value.id
|
|
42
|
+
}) : vue.createVNode("div", {
|
|
43
|
+
"class": ns.b()
|
|
44
|
+
}, [vue.createVNode("img", {
|
|
45
|
+
"class": ns.e("img"),
|
|
46
|
+
"src": "".concat(ibiz.env.assetsUrl, "/images/404.png")
|
|
47
|
+
}, null), vue.createVNode("div", {
|
|
48
|
+
"class": ns.e("tips")
|
|
49
|
+
}, [ibiz.i18n.t("view.noResourcesView.noResourcePrompt"), vue.createVNode("br", null, null), ibiz.i18n.t("view.noResourcesView.noExistPrompt", {
|
|
50
|
+
code: viewCodeName.value
|
|
51
|
+
})])]);
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
exports.UnauthorizedView = UnauthorizedView;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-unauthorized-view{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.ibiz-unauthorized-view__img{width:375px;max-width:100%;-o-object-fit:contain;object-fit:contain;overflow:hidden}.ibiz-unauthorized-view__tips{margin-top:var(--ibiz-spacing-super-loose);text-align:center;display:flex;flex-flow:column nowrap;align-items:center;justify-content:center}
|
|
@@ -53,7 +53,7 @@ const fixContextMenuPosition = (el) => {
|
|
|
53
53
|
el.style.top = fixedTop;
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
const
|
|
56
|
+
const fixPopperTransform = (el) => {
|
|
57
57
|
if (currentScale === 1)
|
|
58
58
|
return;
|
|
59
59
|
const transform = el.style.transform;
|
|
@@ -63,8 +63,8 @@ const fixFormItemContainerPopperTransform = (el) => {
|
|
|
63
63
|
return;
|
|
64
64
|
el.dataset.zoomOriginalTransform = transform;
|
|
65
65
|
const fixed = transform.replace(
|
|
66
|
-
/translate3d\(\s*([^,)]+),\s*([^,)]+),\s*([^,)]+)\s*\)/g,
|
|
67
|
-
(_,
|
|
66
|
+
/translate3d\(\s*([^,)]+),\s*([^,)]+),\s*([^,)]+)\s*\)|translate\(\s*([^,)]+),\s*([^,)]+)\s*\)/g,
|
|
67
|
+
(_, x3d, y3d, z3d, x2d, y2d) => {
|
|
68
68
|
const fixAxis = (val) => {
|
|
69
69
|
const part = val.trim();
|
|
70
70
|
const match = part.match(/^(-?[\d.]+)(px|rem|em|%)?$/);
|
|
@@ -75,7 +75,10 @@ const fixFormItemContainerPopperTransform = (el) => {
|
|
|
75
75
|
}
|
|
76
76
|
return part;
|
|
77
77
|
};
|
|
78
|
-
|
|
78
|
+
if (x3d !== void 0) {
|
|
79
|
+
return "translate3d(".concat(fixAxis(x3d), ", ").concat(fixAxis(y3d), ", ").concat(fixAxis(z3d), ")");
|
|
80
|
+
}
|
|
81
|
+
return "translate(".concat(fixAxis(x2d), ", ").concat(fixAxis(y2d), ")");
|
|
79
82
|
}
|
|
80
83
|
);
|
|
81
84
|
el.style.transform = fixed;
|
|
@@ -96,8 +99,8 @@ const startObservePoppers = () => {
|
|
|
96
99
|
const el = node;
|
|
97
100
|
if ((_a2 = el.classList) == null ? void 0 : _a2.contains("el-popper")) {
|
|
98
101
|
fixPopperInset(el);
|
|
99
|
-
if (el.classList.contains("ibiz-form-item-container__popper")) {
|
|
100
|
-
|
|
102
|
+
if (el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-form-mdctrl-popper")) {
|
|
103
|
+
fixPopperTransform(el);
|
|
101
104
|
}
|
|
102
105
|
} else if ((_b2 = el.classList) == null ? void 0 : _b2.contains("mx-context-menu")) {
|
|
103
106
|
fixContextMenuPosition(el);
|
|
@@ -107,8 +110,8 @@ const startObservePoppers = () => {
|
|
|
107
110
|
const el = mutation.target;
|
|
108
111
|
if ((_a = el.classList) == null ? void 0 : _a.contains("el-popper")) {
|
|
109
112
|
fixPopperInset(el);
|
|
110
|
-
if (el.classList.contains("ibiz-form-item-container__popper")) {
|
|
111
|
-
|
|
113
|
+
if (el.classList.contains("ibiz-form-item-container__popper") || el.classList.contains("ibiz-form-mdctrl-popper")) {
|
|
114
|
+
fixPopperTransform(el);
|
|
112
115
|
}
|
|
113
116
|
} else if ((_b = el.classList) == null ? void 0 : _b.contains("mx-context-menu")) {
|
|
114
117
|
fixContextMenuPosition(el);
|
|
@@ -12,6 +12,7 @@ require('../../util/index.cjs');
|
|
|
12
12
|
require('nprogress/nprogress.css');
|
|
13
13
|
var loginView = require('../../view/login-view/login-view.cjs');
|
|
14
14
|
var errorView = require('../../view/error-view/error-view.cjs');
|
|
15
|
+
var unauthorizedView = require('../../view/unauthorized-view/unauthorized-view.cjs');
|
|
15
16
|
var modalRouterShell = require('../components/modal-router-shell/modal-router-shell.cjs');
|
|
16
17
|
var routerShell = require('../components/router-shell/router-shell.cjs');
|
|
17
18
|
var userRouteUtil = require('../../util/user-route-util/user-route-util.cjs');
|
|
@@ -86,6 +87,15 @@ class AppRouter {
|
|
|
86
87
|
},
|
|
87
88
|
component: vue3Util.AppRedirectView
|
|
88
89
|
},
|
|
90
|
+
{
|
|
91
|
+
path: "/unauthorized/:viewcodename",
|
|
92
|
+
name: "unauthorizedView",
|
|
93
|
+
beforeEnter: async (_to, from, next) => {
|
|
94
|
+
await this.authGuard(this.getAppContext(_to), false);
|
|
95
|
+
next();
|
|
96
|
+
},
|
|
97
|
+
component: unauthorizedView.UnauthorizedView
|
|
98
|
+
},
|
|
89
99
|
{
|
|
90
100
|
path: "/:appContext(".concat(paramReg, ")/:view1(").concat(viewReg, ")/:params1(").concat(paramReg, ")"),
|
|
91
101
|
beforeEnter: async (_to, from, next) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.112",
|
|
4
4
|
"description": "web端组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"@ibiz-template-plugin/gantt": "0.1.8-alpha.468",
|
|
36
36
|
"@ibiz-template-plugin/bi-report": "0.0.32",
|
|
37
37
|
"@ibiz-template-plugin/data-view": "0.0.7",
|
|
38
|
-
"@ibiz-template/core": "0.7.41-alpha.
|
|
38
|
+
"@ibiz-template/core": "0.7.41-alpha.117",
|
|
39
39
|
"@ibiz-template/devtool": "0.0.16",
|
|
40
|
-
"@ibiz-template/model-helper": "0.7.41-alpha.
|
|
41
|
-
"@ibiz-template/runtime": "0.7.41-alpha.
|
|
40
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.117",
|
|
41
|
+
"@ibiz-template/runtime": "0.7.41-alpha.117",
|
|
42
42
|
"@ibiz-template/theme": "0.7.39",
|
|
43
|
-
"@ibiz-template/vue3-util": "0.7.41-alpha.
|
|
44
|
-
"@ibiz-template/web-theme": "3.
|
|
45
|
-
"@ibiz/model-core": "^0.1.
|
|
43
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.117",
|
|
44
|
+
"@ibiz-template/web-theme": "3.16.0",
|
|
45
|
+
"@ibiz/model-core": "^0.1.89",
|
|
46
46
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
47
47
|
"@monaco-editor/loader": "^1.4.0",
|
|
48
48
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"@ibiz-template/runtime": "^0.7.0",
|
|
114
114
|
"@ibiz-template/theme": "^0.7.0",
|
|
115
115
|
"@ibiz-template/vue3-util": "^0.7.0",
|
|
116
|
-
"@ibiz/model-core": "^0.1.
|
|
116
|
+
"@ibiz/model-core": "^0.1.89",
|
|
117
117
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
118
118
|
"@monaco-editor/loader": "^1.3.3",
|
|
119
119
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable eqeqeq */
|
|
2
2
|
import { defineComponent, onMounted, PropType, computed } from 'vue';
|
|
3
3
|
import { isNil, mergeDeepWithKey } from 'ramda';
|
|
4
|
-
import { useNamespace
|
|
4
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
5
5
|
import { IMapData, MapController } from '@ibiz-template/runtime';
|
|
6
6
|
import { defaultOpts, MapOptions } from './map-chart.util';
|
|
7
7
|
import { useMapManager } from './map-manager';
|
|
@@ -27,7 +27,6 @@ export const IBizMapChart = defineComponent({
|
|
|
27
27
|
},
|
|
28
28
|
setup(props, { emit }) {
|
|
29
29
|
const ns = useNamespace('map-chart');
|
|
30
|
-
const { semanticClass, semanticStyle } = useSemanticNode(props.controller);
|
|
31
30
|
const options = computed<MapOptions>(() => {
|
|
32
31
|
// 后一个的undefined不覆盖
|
|
33
32
|
return mergeDeepWithKey(
|
|
@@ -203,7 +202,7 @@ export const IBizMapChart = defineComponent({
|
|
|
203
202
|
changeMap(options.value.defaultAreaCode, true);
|
|
204
203
|
});
|
|
205
204
|
|
|
206
|
-
return { ns, chartRef, historyNames,
|
|
205
|
+
return { ns, chartRef, historyNames, goBack };
|
|
207
206
|
},
|
|
208
207
|
render() {
|
|
209
208
|
return (
|
|
@@ -211,8 +210,7 @@ export const IBizMapChart = defineComponent({
|
|
|
211
210
|
<div class={this.ns.e('chart')} ref='chartRef'></div>
|
|
212
211
|
{this.historyNames.length > 1 && (
|
|
213
212
|
<div
|
|
214
|
-
|
|
215
|
-
class={[this.ns.e('goback'), this.semanticClass('goback')]}
|
|
213
|
+
class={this.ns.e('goback')}
|
|
216
214
|
onClick={() => {
|
|
217
215
|
this.goBack();
|
|
218
216
|
}}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
onBeforeUnmount,
|
|
9
9
|
} from 'vue';
|
|
10
10
|
import { isNil, mergeDeepLeft, mergeDeepWithKey } from 'ramda';
|
|
11
|
-
import { useNamespace
|
|
11
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
12
12
|
import {
|
|
13
13
|
IMapData,
|
|
14
14
|
MapController,
|
|
@@ -49,7 +49,6 @@ export const IBizMapChartUser = defineComponent({
|
|
|
49
49
|
},
|
|
50
50
|
setup(props) {
|
|
51
51
|
const ns = useNamespace('map-chart-user');
|
|
52
|
-
const { semanticClass, semanticStyle } = useSemanticNode(props.controller);
|
|
53
52
|
const c = props.controller;
|
|
54
53
|
let option: IData = defaultOpts;
|
|
55
54
|
const mapRef = ref();
|
|
@@ -182,8 +181,6 @@ export const IBizMapChartUser = defineComponent({
|
|
|
182
181
|
isFull,
|
|
183
182
|
chartRef,
|
|
184
183
|
historyNames,
|
|
185
|
-
semanticClass,
|
|
186
|
-
semanticStyle,
|
|
187
184
|
onBack,
|
|
188
185
|
toggleFullScreen,
|
|
189
186
|
};
|
|
@@ -196,8 +193,7 @@ export const IBizMapChartUser = defineComponent({
|
|
|
196
193
|
<el-button
|
|
197
194
|
type='info'
|
|
198
195
|
onClick={this.toggleFullScreen}
|
|
199
|
-
|
|
200
|
-
class={[this.ns.e('fullscreen'), this.semanticClass('fullscreen')]}
|
|
196
|
+
class={this.ns.e('fullscreen')}
|
|
201
197
|
title={
|
|
202
198
|
this.isFull
|
|
203
199
|
? ibiz.i18n.t('app.cancelFullscreen')
|
|
@@ -212,8 +208,7 @@ export const IBizMapChartUser = defineComponent({
|
|
|
212
208
|
<div class={this.ns.e('chart')} ref='chartRef'></div>
|
|
213
209
|
{this.historyNames.length > 1 && (
|
|
214
210
|
<div
|
|
215
|
-
|
|
216
|
-
class={[this.ns.e('goback'), this.semanticClass('goback')]}
|
|
211
|
+
class={this.ns.e('goback')}
|
|
217
212
|
onClick={() => {
|
|
218
213
|
this.onBack();
|
|
219
214
|
}}
|
|
@@ -111,6 +111,22 @@ export const CalendarControl = defineComponent({
|
|
|
111
111
|
const showDateRange = ref(c.controlParams.showmode === 'daterange');
|
|
112
112
|
const showDateList = ref(c.controlParams.showmode === 'expand');
|
|
113
113
|
|
|
114
|
+
// 子类类名透传
|
|
115
|
+
const childClass = [
|
|
116
|
+
{
|
|
117
|
+
class: semanticClass('body'),
|
|
118
|
+
selector: '.el-calendar__body',
|
|
119
|
+
},
|
|
120
|
+
];
|
|
121
|
+
|
|
122
|
+
// 子类样式透传
|
|
123
|
+
const childStyle = [
|
|
124
|
+
{
|
|
125
|
+
style: semanticStyle('body'),
|
|
126
|
+
selector: '.el-calendar__body',
|
|
127
|
+
},
|
|
128
|
+
];
|
|
129
|
+
|
|
114
130
|
/**
|
|
115
131
|
* 无限滚动元素
|
|
116
132
|
*/
|
|
@@ -552,6 +568,8 @@ export const CalendarControl = defineComponent({
|
|
|
552
568
|
c,
|
|
553
569
|
ns,
|
|
554
570
|
legends,
|
|
571
|
+
childClass,
|
|
572
|
+
childStyle,
|
|
555
573
|
semanticClass,
|
|
556
574
|
semanticStyle,
|
|
557
575
|
curPopover,
|
|
@@ -729,6 +747,11 @@ export const CalendarControl = defineComponent({
|
|
|
729
747
|
this.curPopover = el;
|
|
730
748
|
}
|
|
731
749
|
}}
|
|
750
|
+
popper-class={[
|
|
751
|
+
this.semanticClass('popup'),
|
|
752
|
+
this.ns.be('more', 'popper'),
|
|
753
|
+
]}
|
|
754
|
+
popper-style={this.semanticStyle('popup')}
|
|
732
755
|
onShow={() => {
|
|
733
756
|
this.popoverValue = items[0].id;
|
|
734
757
|
}}
|
|
@@ -737,7 +760,8 @@ export const CalendarControl = defineComponent({
|
|
|
737
760
|
reference: () => {
|
|
738
761
|
return (
|
|
739
762
|
<span
|
|
740
|
-
|
|
763
|
+
style={this.semanticStyle('more')}
|
|
764
|
+
class={[this.ns.b('more'), this.semanticClass('more')]}
|
|
741
765
|
>{`+${items.length - 1} ${ibiz.i18n.t('app.more')}...`}</span>
|
|
742
766
|
);
|
|
743
767
|
},
|
|
@@ -788,6 +812,8 @@ export const CalendarControl = defineComponent({
|
|
|
788
812
|
ref='calendarRef'
|
|
789
813
|
v-model={this.c.state.selectedDate}
|
|
790
814
|
class={this.ns.b('month')}
|
|
815
|
+
v-child-class={this.childClass}
|
|
816
|
+
v-child-style={this.childStyle}
|
|
791
817
|
>
|
|
792
818
|
{{
|
|
793
819
|
header: ({ date }: { date: string }): VNode => {
|
|
@@ -55,12 +55,17 @@ export const CalendarUser = defineComponent({
|
|
|
55
55
|
slots.event?.({ data: items[0] }),
|
|
56
56
|
<el-popover
|
|
57
57
|
trigger='click'
|
|
58
|
-
popper-class={ns.e('custom-user-popover')}
|
|
59
58
|
ref={(el: IData) => {
|
|
60
59
|
if (el && items[0].id === popoverValue.value) {
|
|
61
60
|
curPopover.value = el;
|
|
62
61
|
}
|
|
63
62
|
}}
|
|
63
|
+
popper-class={[
|
|
64
|
+
ns.em('more', 'popper'),
|
|
65
|
+
ns.e('custom-user-popover'),
|
|
66
|
+
props.semanticClass('popup'),
|
|
67
|
+
]}
|
|
68
|
+
popper-style={props.semanticStyle('popup')}
|
|
64
69
|
onShow={() => {
|
|
65
70
|
popoverValue.value = items[0].id;
|
|
66
71
|
}}
|
|
@@ -69,7 +74,8 @@ export const CalendarUser = defineComponent({
|
|
|
69
74
|
reference: () => {
|
|
70
75
|
return (
|
|
71
76
|
<span
|
|
72
|
-
|
|
77
|
+
style={props.semanticStyle('more')}
|
|
78
|
+
class={[ns.e('more'), props.semanticClass('more')]}
|
|
73
79
|
>{`+${items.length - 1} ${ibiz.i18n.t('app.more')}...`}</span>
|
|
74
80
|
);
|
|
75
81
|
},
|
|
@@ -239,7 +239,11 @@ export const CalendarUser2 = defineComponent({
|
|
|
239
239
|
trigger='click'
|
|
240
240
|
persistent={false}
|
|
241
241
|
disabled={!marks.length}
|
|
242
|
-
|
|
242
|
+
popper-style={this.semanticStyle('popup')}
|
|
243
|
+
popper-class={[
|
|
244
|
+
this.ns.e('popover'),
|
|
245
|
+
this.semanticClass('popup'),
|
|
246
|
+
]}
|
|
243
247
|
>
|
|
244
248
|
{{
|
|
245
249
|
default: () => {
|
|
@@ -277,13 +281,13 @@ export const CalendarUser2 = defineComponent({
|
|
|
277
281
|
class={[
|
|
278
282
|
this.ns.e('mark'),
|
|
279
283
|
this.ns.e('item'),
|
|
280
|
-
this.semanticClass('
|
|
284
|
+
this.semanticClass('mark', {
|
|
281
285
|
item: mark,
|
|
282
286
|
}),
|
|
283
287
|
]}
|
|
284
288
|
style={{
|
|
285
289
|
backgroundColor: mark.bkcolor,
|
|
286
|
-
...this.semanticStyle('
|
|
290
|
+
...this.semanticStyle('mark', {
|
|
287
291
|
item: mark,
|
|
288
292
|
}),
|
|
289
293
|
}}
|
|
@@ -167,7 +167,11 @@ export const DRTabControl = defineComponent({
|
|
|
167
167
|
trigger='click'
|
|
168
168
|
onCommand={onTabChange}
|
|
169
169
|
style={semanticStyle('dropdown', { item: activeTab.value })}
|
|
170
|
-
popper-class={
|
|
170
|
+
popper-class={[
|
|
171
|
+
semanticClass('popup'),
|
|
172
|
+
ns.be('dropdown-list', 'popper'),
|
|
173
|
+
]}
|
|
174
|
+
popper-style={semanticStyle('popup')}
|
|
171
175
|
class={[
|
|
172
176
|
ns.b('dropdown-list'),
|
|
173
177
|
ns.e('dropdown'),
|
|
@@ -335,7 +339,11 @@ export const DRTabControl = defineComponent({
|
|
|
335
339
|
<el-dropdown
|
|
336
340
|
trigger='click'
|
|
337
341
|
style={this.semanticStyle('more')}
|
|
338
|
-
popper-class={
|
|
342
|
+
popper-class={[
|
|
343
|
+
this.semanticClass('popup'),
|
|
344
|
+
this.ns.b('more-dropdown-popper'),
|
|
345
|
+
]}
|
|
346
|
+
popper-style={this.semanticStyle('popup')}
|
|
339
347
|
class={[this.ns.b('more-dropdown'), this.semanticClass('more')]}
|
|
340
348
|
>
|
|
341
349
|
{{
|
|
@@ -178,6 +178,7 @@ export const RepeaterGrid: ReturnType<typeof defineComponent> = defineComponent(
|
|
|
178
178
|
title={showTitle(
|
|
179
179
|
ibiz.i18n.t('control.form.repeaterGrid.promptInformation'),
|
|
180
180
|
)}
|
|
181
|
+
popper-class={['el-popover', ns2.b('popper')]}
|
|
181
182
|
confirm-button-text={ibiz.i18n.t('app.confirm')}
|
|
182
183
|
cancel-button-text={ibiz.i18n.t('app.cancel')}
|
|
183
184
|
onConfirm={() => props.controller.remove(index)}
|
|
@@ -164,6 +164,7 @@ export const RepeaterGrid2: ReturnType<typeof defineComponent> =
|
|
|
164
164
|
if (ibiz.config.form.mdCtrlConfirmBeforeRemove) {
|
|
165
165
|
return (
|
|
166
166
|
<el-popconfirm
|
|
167
|
+
popper-class={['el-popover', ns2.b('popper')]}
|
|
167
168
|
title={ibiz.i18n.t('control.form.repeaterGrid.promptInformation')}
|
|
168
169
|
confirm-button-text={ibiz.i18n.t('app.confirm')}
|
|
169
170
|
cancel-button-text={ibiz.i18n.t('app.cancel')}
|
|
@@ -134,6 +134,7 @@ export function useITableEvent(c: GridController): {
|
|
|
134
134
|
cleanClick: () => void;
|
|
135
135
|
cleanEnter: () => void;
|
|
136
136
|
cleanTab: () => void;
|
|
137
|
+
onSelectAll: (selections: ControlVO[]) => void;
|
|
137
138
|
} {
|
|
138
139
|
const tableRef = ref<IData>();
|
|
139
140
|
let forbidChange = false;
|
|
@@ -455,6 +456,15 @@ export function useITableEvent(c: GridController): {
|
|
|
455
456
|
function onSelectionChange(selection: ControlVO[]): void {
|
|
456
457
|
// 选中数据在回显的时候屏蔽值变更事件,否则会递归。
|
|
457
458
|
if (!forbidChange && !c.state.isLoading) c.setSelection(selection);
|
|
459
|
+
// 设置表格全选状态
|
|
460
|
+
if (
|
|
461
|
+
c.state.selectedData.length === c.state.items.length &&
|
|
462
|
+
c.state.items.length !== 0
|
|
463
|
+
) {
|
|
464
|
+
c.state.isSelectedAll = true;
|
|
465
|
+
} else {
|
|
466
|
+
c.state.isSelectedAll = false;
|
|
467
|
+
}
|
|
458
468
|
}
|
|
459
469
|
|
|
460
470
|
// element表格选中数据
|
|
@@ -615,6 +625,15 @@ export function useITableEvent(c: GridController): {
|
|
|
615
625
|
},
|
|
616
626
|
);
|
|
617
627
|
|
|
628
|
+
// 表格是否全选
|
|
629
|
+
function onSelectAll(selections: ControlVO[]) {
|
|
630
|
+
if (selections.length === c.state.items.length) {
|
|
631
|
+
c.state.isSelectedAll = true;
|
|
632
|
+
} else {
|
|
633
|
+
c.state.isSelectedAll = false;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
618
637
|
return {
|
|
619
638
|
tableRef,
|
|
620
639
|
onRowClick,
|
|
@@ -626,6 +645,7 @@ export function useITableEvent(c: GridController): {
|
|
|
626
645
|
cleanClick,
|
|
627
646
|
cleanEnter,
|
|
628
647
|
cleanTab,
|
|
648
|
+
onSelectAll,
|
|
629
649
|
};
|
|
630
650
|
}
|
|
631
651
|
|
|
@@ -518,7 +518,7 @@ $control-grid-sort: (
|
|
|
518
518
|
z-index: 99;
|
|
519
519
|
display: none;
|
|
520
520
|
width: calc(100% - 54px);
|
|
521
|
-
height: getCssVar(control-grid,
|
|
521
|
+
height: getCssVar(control-grid, setting, height);
|
|
522
522
|
font-size: getCssVar(font-size, regular);
|
|
523
523
|
font-weight: getCssVar(font-weight, regular);
|
|
524
524
|
background-color: getCssVar(control-grid, header-row, bg-color);
|
|
@@ -453,6 +453,7 @@ export const GridControl = defineComponent({
|
|
|
453
453
|
cleanClick = NOOP,
|
|
454
454
|
cleanEnter = NOOP,
|
|
455
455
|
cleanTab = NOOP,
|
|
456
|
+
onSelectAll,
|
|
456
457
|
} = useITableEvent(c);
|
|
457
458
|
const { pageSemantic, onPageChange, onPageRefresh, onPageSizeChange } =
|
|
458
459
|
usePagination(c);
|
|
@@ -724,6 +725,7 @@ export const GridControl = defineComponent({
|
|
|
724
725
|
renderBatchToolBar,
|
|
725
726
|
renderDragIconColumn,
|
|
726
727
|
handleHeaderCellClassName,
|
|
728
|
+
onSelectAll,
|
|
727
729
|
};
|
|
728
730
|
},
|
|
729
731
|
render() {
|
|
@@ -769,6 +771,7 @@ export const GridControl = defineComponent({
|
|
|
769
771
|
default-sort={this.defaultSort}
|
|
770
772
|
show-summary={this.c.enableAgg}
|
|
771
773
|
onSortChange={this.onSortChange}
|
|
774
|
+
onSelectAll={this.onSelectAll}
|
|
772
775
|
onRowDblclick={this.onDbRowClick}
|
|
773
776
|
summary-method={this.summaryMethod}
|
|
774
777
|
onHeaderDragend={this.headerDragend}
|
|
@@ -47,13 +47,13 @@ $grid-field-column: (
|
|
|
47
47
|
flex-shrink: 0;
|
|
48
48
|
}
|
|
49
49
|
.#{bem('grid-field-column', 'script')} {
|
|
50
|
-
max-height: calc(getCssVar(control-grid,
|
|
51
|
-
line-height: calc(getCssVar(control-grid,
|
|
50
|
+
max-height: calc(getCssVar(control-grid, body-row, height) - 2 * getCssVar(grid-field-column, cell-padding));
|
|
51
|
+
line-height: calc(getCssVar(control-grid, body-row, height) - 2 * getCssVar(grid-field-column, cell-padding));
|
|
52
52
|
|
|
53
53
|
* {
|
|
54
54
|
margin: 0;
|
|
55
55
|
@include utils-ellipsis;
|
|
56
|
-
|
|
56
|
+
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
span {
|
package/src/control/map/map.tsx
CHANGED
|
@@ -55,7 +55,45 @@ const MapControl = defineComponent({
|
|
|
55
55
|
|
|
56
56
|
const mapStyle = c.model.mapStyle;
|
|
57
57
|
const { semanticClass, semanticStyle } = useSemanticNode(c);
|
|
58
|
+
// 子类类名透传
|
|
59
|
+
const childClass = [
|
|
60
|
+
{
|
|
61
|
+
class: semanticClass('editor.content'),
|
|
62
|
+
selector: '.ibiz-control-map__map',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
class: semanticClass('editor.goback'),
|
|
66
|
+
selector: '.ibiz-map-chart-user__goback',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
class: semanticClass('editor.goback'),
|
|
70
|
+
selector: '.ibiz-map-chart__goback',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
class: semanticClass('editor.fullscreen'),
|
|
74
|
+
selector: '.ibiz-map-chart-user__fullscreen',
|
|
75
|
+
},
|
|
76
|
+
];
|
|
58
77
|
|
|
78
|
+
// 子类样式透传
|
|
79
|
+
const childStyle = [
|
|
80
|
+
{
|
|
81
|
+
style: semanticStyle('editor.content'),
|
|
82
|
+
selector: '.ibiz-control-map__map',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
style: semanticStyle('editor.goback'),
|
|
86
|
+
selector: '.ibiz-map-chart-user__goback',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
style: semanticStyle('editor.goback'),
|
|
90
|
+
selector: '.ibiz-map-chart__goback',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
style: semanticStyle('editor.fullscreen'),
|
|
94
|
+
selector: '.ibiz-map-chart-user__fullscreen',
|
|
95
|
+
},
|
|
96
|
+
];
|
|
59
97
|
const mapOpts = computed<Partial<MapOptions>>(() => {
|
|
60
98
|
return {
|
|
61
99
|
strAreaCode: c.state.strAreaCode,
|
|
@@ -70,6 +108,8 @@ const MapControl = defineComponent({
|
|
|
70
108
|
mapRef,
|
|
71
109
|
mapOpts,
|
|
72
110
|
mapStyle,
|
|
111
|
+
childClass,
|
|
112
|
+
childStyle,
|
|
73
113
|
semanticClass,
|
|
74
114
|
semanticStyle,
|
|
75
115
|
};
|
|
@@ -87,8 +127,7 @@ const MapControl = defineComponent({
|
|
|
87
127
|
options={this.mapOpts}
|
|
88
128
|
areaData={state.areaData}
|
|
89
129
|
pointData={state.pointData}
|
|
90
|
-
|
|
91
|
-
class={[this.ns.e('map'), this.semanticClass('content')]}
|
|
130
|
+
class={this.ns.e('map')}
|
|
92
131
|
></iBizMapChartUser>
|
|
93
132
|
) : (
|
|
94
133
|
<iBizMapChart
|
|
@@ -97,8 +136,7 @@ const MapControl = defineComponent({
|
|
|
97
136
|
options={this.mapOpts}
|
|
98
137
|
areaData={state.areaData}
|
|
99
138
|
pointData={state.pointData}
|
|
100
|
-
|
|
101
|
-
class={[this.ns.e('map'), this.semanticClass('content')]}
|
|
139
|
+
class={this.ns.e('map')}
|
|
102
140
|
onPointClick={(e: IMapData) => {
|
|
103
141
|
this.c.onPointClick(e);
|
|
104
142
|
}}
|
|
@@ -114,6 +152,8 @@ const MapControl = defineComponent({
|
|
|
114
152
|
controller={this.c}
|
|
115
153
|
class={this.semanticClass('root')}
|
|
116
154
|
style={this.semanticStyle('root')}
|
|
155
|
+
v-child-class={this.childClass}
|
|
156
|
+
v-child-style={this.childStyle}
|
|
117
157
|
>
|
|
118
158
|
{content}
|
|
119
159
|
{this.c.state.enableNavView && this.c.state.showNavIcon ? (
|