@ibiz-template/vue3-components 0.7.41-alpha.0 → 0.7.41-alpha.2
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/index-eIKUlAq_.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{map-chart-user-bTKfT7VH.js → map-chart-user-xOSZGbF2.js} +1 -1
- package/dist/{wang-editor-GTNgz_em.js → wang-editor-6EirGFoh.js} +1 -1
- package/dist/{xlsx-util-_sLiqD2S.js → xlsx-util-J1RHk00u.js} +1 -1
- package/es/common/map-chart-user/map-chart-user.util.mjs +1 -1
- package/es/control/app-menu/app-menu.d.ts +2 -2
- package/es/control/app-menu/app-menu.mjs +17 -9
- package/es/control/calendar/calendar.mjs +6 -2
- package/es/control/calendar/components/calendar-daily/use-calendar-daily.mjs +1 -1
- package/es/control/calendar/components/calendar-week/use-calendar-week.mjs +3 -3
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/kanban/kanban.mjs +6 -1
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/web-app/components/router-shell/router-shell.mjs +6 -4
- package/lib/common/map-chart-user/map-chart-user.util.cjs +1 -1
- package/lib/control/app-menu/app-menu.cjs +16 -8
- package/lib/control/calendar/calendar.cjs +6 -2
- package/lib/control/calendar/components/calendar-daily/use-calendar-daily.cjs +1 -1
- package/lib/control/calendar/components/calendar-week/use-calendar-week.cjs +3 -3
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/kanban/kanban.cjs +6 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/web-app/components/router-shell/router-shell.cjs +6 -4
- package/package.json +7 -7
- package/dist/index-toTw1DLN.js +0 -4
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.40_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.2_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_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.40_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.2_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -57,7 +57,7 @@ const getCssVarByName = (name) => {
|
|
|
57
57
|
const getPointStaticOption = (params) => {
|
|
58
58
|
const { pointSymbol } = params;
|
|
59
59
|
const ns = useNamespace("map-chart-user");
|
|
60
|
-
const textColor = getCssVarByName(ns.cssVarName("color-
|
|
60
|
+
const textColor = getCssVarByName(ns.cssVarName("color-danger"));
|
|
61
61
|
const fontSize = getCssVarByName(ns.cssVarName("font-size-header-4"));
|
|
62
62
|
const options = {
|
|
63
63
|
type: "scatter",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Namespace } from '@ibiz-template/core';
|
|
2
2
|
import { IAppMenu } from '@ibiz/model-core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Ref, PropType } from 'vue';
|
|
4
|
+
import { IControlProvider, AppMenuController } from '@ibiz-template/runtime';
|
|
5
5
|
import './app-menu.scss';
|
|
6
6
|
export declare const AppMenuControl: import("vue").DefineComponent<{
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isVNode, resolveComponent, createVNode, ref, watch, onUnmounted, computed, onMounted, nextTick, mergeProps, defineComponent } from 'vue';
|
|
2
2
|
import { RuntimeError, showTitle, findRecursiveChild } from '@ibiz-template/core';
|
|
3
|
-
import { useControlController, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { useControlController, useNamespace, route2routePath } from '@ibiz-template/vue3-util';
|
|
4
4
|
import { createUUID } from 'qx-util';
|
|
5
5
|
import { AppMenuController, formatSeparator, ViewCallTag } from '@ibiz-template/runtime';
|
|
6
6
|
import { useRoute } from 'vue-router';
|
|
@@ -259,24 +259,32 @@ const AppMenuControl = /* @__PURE__ */ defineComponent({
|
|
|
259
259
|
const calcCurMenu = () => {
|
|
260
260
|
const allItems = c.getAllItems();
|
|
261
261
|
return allItems.find((item) => {
|
|
262
|
-
|
|
262
|
+
var _a;
|
|
263
|
+
if (item.itemType !== "MENUITEM" || !item.appFuncId)
|
|
264
|
+
return false;
|
|
265
|
+
if (ibiz.config.appMenu.echoMode === "VIEW") {
|
|
263
266
|
const app = ibiz.hub.getApp(item.appId);
|
|
264
|
-
if (!app)
|
|
267
|
+
if (!app)
|
|
265
268
|
return false;
|
|
266
|
-
}
|
|
267
269
|
const func = app.getAppFunc(item.appFuncId);
|
|
268
|
-
if (func && func.appViewId && route.params.view2) {
|
|
270
|
+
if (func && func.appViewId && (route == null ? void 0 : route.params.view2)) {
|
|
269
271
|
return func.appViewId.split(".")[1] === route.params.view2;
|
|
270
272
|
}
|
|
273
|
+
} else {
|
|
274
|
+
if (!route) {
|
|
275
|
+
return false;
|
|
276
|
+
}
|
|
277
|
+
const routePath = route2routePath(route);
|
|
278
|
+
if (routePath.pathNodes.length > 1)
|
|
279
|
+
return item.id === ((_a = routePath.pathNodes[1].params) == null ? void 0 : _a.srfmenuitem);
|
|
271
280
|
}
|
|
272
281
|
return false;
|
|
273
282
|
});
|
|
274
283
|
};
|
|
275
284
|
const onClick = async (id, event) => {
|
|
276
285
|
const activeMenu = calcCurMenu();
|
|
277
|
-
if (activeMenu && activeMenu.id === id)
|
|
286
|
+
if (activeMenu && activeMenu.id === id)
|
|
278
287
|
return;
|
|
279
|
-
}
|
|
280
288
|
defaultActive.value = id;
|
|
281
289
|
const menu = c.getAllItems().find((m) => m.id === id);
|
|
282
290
|
if ((menu == null ? void 0 : menu.itemType) === "RAWITEM" || c.runMode === "DESIGN") {
|
|
@@ -285,7 +293,7 @@ const AppMenuControl = /* @__PURE__ */ defineComponent({
|
|
|
285
293
|
await c.onClickMenuItem(id, event);
|
|
286
294
|
};
|
|
287
295
|
if (c.runMode !== "DESIGN") {
|
|
288
|
-
watch(() => route.params.view2, (newVal, oldVal) => {
|
|
296
|
+
watch(() => route == null ? void 0 : route.params.view2, (newVal, oldVal) => {
|
|
289
297
|
if (newVal !== oldVal && ibiz.config.appMenu.enableEcho) {
|
|
290
298
|
const activeMenu = calcCurMenu();
|
|
291
299
|
defaultActive.value = activeMenu ? activeMenu.id : "";
|
|
@@ -301,7 +309,7 @@ const AppMenuControl = /* @__PURE__ */ defineComponent({
|
|
|
301
309
|
const defaultActiveMenuItem = allItems.find((item) => {
|
|
302
310
|
return item.openDefault && !item.hidden;
|
|
303
311
|
});
|
|
304
|
-
if (defaultActiveMenuItem && !route.params.view2 && !route.fullPath.includes("404")) {
|
|
312
|
+
if (defaultActiveMenuItem && !(route == null ? void 0 : route.params.view2) && !(route == null ? void 0 : route.fullPath.includes("404"))) {
|
|
305
313
|
defaultActive.value = defaultActiveMenuItem.id;
|
|
306
314
|
onClick(defaultActive.value);
|
|
307
315
|
} else if (ibiz.config.appMenu.enableEcho) {
|
|
@@ -546,13 +546,17 @@ const CalendarControl = /* @__PURE__ */ defineComponent({
|
|
|
546
546
|
const {
|
|
547
547
|
data
|
|
548
548
|
} = value;
|
|
549
|
-
|
|
549
|
+
const item = data[0];
|
|
550
|
+
if (item)
|
|
551
|
+
this.c.onRowClick(item);
|
|
550
552
|
},
|
|
551
553
|
"onEventDblClick": (value) => {
|
|
552
554
|
const {
|
|
553
555
|
data
|
|
554
556
|
} = value;
|
|
555
|
-
|
|
557
|
+
const item = data[0];
|
|
558
|
+
if (item)
|
|
559
|
+
this.c.onDbRowClick(item);
|
|
556
560
|
}
|
|
557
561
|
}, _isSlot(slots) ? slots : {
|
|
558
562
|
default: () => [slots]
|
|
@@ -125,7 +125,7 @@ const useCalendarDaily = (props, emit) => {
|
|
|
125
125
|
const difference = new Date(endTime).getTime() - new Date(startTime).getTime();
|
|
126
126
|
height = Math.floor(difference / (1e3 * 60));
|
|
127
127
|
}
|
|
128
|
-
if (height <
|
|
128
|
+
if (height < 30) {
|
|
129
129
|
height = "auto";
|
|
130
130
|
}
|
|
131
131
|
return height;
|
|
@@ -151,7 +151,7 @@ const useCalendarWeek = (props, emit) => {
|
|
|
151
151
|
const width = "".concat(percentage, "%");
|
|
152
152
|
const styleLeft = "".concat(index * percentage, "%");
|
|
153
153
|
Object.assign(tempEventContent, { width, styleLeft });
|
|
154
|
-
let height =
|
|
154
|
+
let height = "auto";
|
|
155
155
|
let styleTop = 60;
|
|
156
156
|
let timeRange = "";
|
|
157
157
|
if (isToday(event.beginTime, event.endTime)) {
|
|
@@ -299,8 +299,8 @@ const useCalendarWeek = (props, emit) => {
|
|
|
299
299
|
const difference = new Date(endTime).getTime() - new Date(startTime).getTime();
|
|
300
300
|
height = Math.floor(difference / (1e3 * 60));
|
|
301
301
|
}
|
|
302
|
-
if (height <
|
|
303
|
-
height =
|
|
302
|
+
if (height < 30) {
|
|
303
|
+
height = "auto";
|
|
304
304
|
}
|
|
305
305
|
return height;
|
|
306
306
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, watch, watchEffect, onUnmounted } from 'vue';
|
|
2
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.
|
|
2
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.2_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -235,7 +235,12 @@ const KanbanControl = /* @__PURE__ */ defineComponent({
|
|
|
235
235
|
const findIndex = c.state.selectedData.findIndex((data) => {
|
|
236
236
|
return data.srfkey === item.srfkey;
|
|
237
237
|
});
|
|
238
|
-
const cardClass = [
|
|
238
|
+
const cardClass = [
|
|
239
|
+
ns.b("item"),
|
|
240
|
+
ns.is("selected", findIndex !== -1),
|
|
241
|
+
// 数据更新时不允许拖拽,鼠标变为禁用
|
|
242
|
+
ns.is("disabled", c.state.draggable && c.state.updating)
|
|
243
|
+
];
|
|
239
244
|
const cardStyle = {};
|
|
240
245
|
if (c.model.cardWidth) {
|
|
241
246
|
cardStyle.width = "".concat(c.model.cardWidth, "px");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.
|
|
3
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.2_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
4
4
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -15,6 +15,7 @@ const RouterShell = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
setup(props) {
|
|
18
|
+
var _a;
|
|
18
19
|
const route = useRoute();
|
|
19
20
|
const router = useRouter();
|
|
20
21
|
const viewData = ref({});
|
|
@@ -29,11 +30,13 @@ const RouterShell = /* @__PURE__ */ defineComponent({
|
|
|
29
30
|
context.destroy();
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
|
-
const routeDepth = props.modal.routeDepth;
|
|
33
|
+
const routeDepth = (_a = props.modal) == null ? void 0 : _a.routeDepth;
|
|
33
34
|
onUnmounted(() => {
|
|
34
35
|
destroyContext();
|
|
35
36
|
});
|
|
36
37
|
const calcViewData = async () => {
|
|
38
|
+
if (!routeDepth)
|
|
39
|
+
return;
|
|
37
40
|
try {
|
|
38
41
|
const _viewData = await parseRouteViewData(route, routeDepth);
|
|
39
42
|
const _context = IBizContext.create(_viewData.context);
|
|
@@ -60,7 +63,7 @@ const RouterShell = /* @__PURE__ */ defineComponent({
|
|
|
60
63
|
});
|
|
61
64
|
const routeModal = new Modal({
|
|
62
65
|
mode: ViewMode.ROUTE,
|
|
63
|
-
routeDepth: routeDepth + 1
|
|
66
|
+
routeDepth: (routeDepth || 0) + 1
|
|
64
67
|
});
|
|
65
68
|
onActivated(() => {
|
|
66
69
|
isActivated.value = true;
|
|
@@ -77,9 +80,8 @@ const RouterShell = /* @__PURE__ */ defineComponent({
|
|
|
77
80
|
};
|
|
78
81
|
},
|
|
79
82
|
render() {
|
|
80
|
-
if (!this.isLoaded)
|
|
83
|
+
if (!this.isLoaded)
|
|
81
84
|
return null;
|
|
82
|
-
}
|
|
83
85
|
const {
|
|
84
86
|
context,
|
|
85
87
|
params,
|
|
@@ -59,7 +59,7 @@ const getCssVarByName = (name) => {
|
|
|
59
59
|
const getPointStaticOption = (params) => {
|
|
60
60
|
const { pointSymbol } = params;
|
|
61
61
|
const ns = vue3Util.useNamespace("map-chart-user");
|
|
62
|
-
const textColor = getCssVarByName(ns.cssVarName("color-
|
|
62
|
+
const textColor = getCssVarByName(ns.cssVarName("color-danger"));
|
|
63
63
|
const fontSize = getCssVarByName(ns.cssVarName("font-size-header-4"));
|
|
64
64
|
const options = {
|
|
65
65
|
type: "scatter",
|
|
@@ -261,24 +261,32 @@ const AppMenuControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
261
261
|
const calcCurMenu = () => {
|
|
262
262
|
const allItems = c.getAllItems();
|
|
263
263
|
return allItems.find((item) => {
|
|
264
|
-
|
|
264
|
+
var _a;
|
|
265
|
+
if (item.itemType !== "MENUITEM" || !item.appFuncId)
|
|
266
|
+
return false;
|
|
267
|
+
if (ibiz.config.appMenu.echoMode === "VIEW") {
|
|
265
268
|
const app = ibiz.hub.getApp(item.appId);
|
|
266
|
-
if (!app)
|
|
269
|
+
if (!app)
|
|
267
270
|
return false;
|
|
268
|
-
}
|
|
269
271
|
const func = app.getAppFunc(item.appFuncId);
|
|
270
|
-
if (func && func.appViewId && route.params.view2) {
|
|
272
|
+
if (func && func.appViewId && (route == null ? void 0 : route.params.view2)) {
|
|
271
273
|
return func.appViewId.split(".")[1] === route.params.view2;
|
|
272
274
|
}
|
|
275
|
+
} else {
|
|
276
|
+
if (!route) {
|
|
277
|
+
return false;
|
|
278
|
+
}
|
|
279
|
+
const routePath = vue3Util.route2routePath(route);
|
|
280
|
+
if (routePath.pathNodes.length > 1)
|
|
281
|
+
return item.id === ((_a = routePath.pathNodes[1].params) == null ? void 0 : _a.srfmenuitem);
|
|
273
282
|
}
|
|
274
283
|
return false;
|
|
275
284
|
});
|
|
276
285
|
};
|
|
277
286
|
const onClick = async (id, event) => {
|
|
278
287
|
const activeMenu = calcCurMenu();
|
|
279
|
-
if (activeMenu && activeMenu.id === id)
|
|
288
|
+
if (activeMenu && activeMenu.id === id)
|
|
280
289
|
return;
|
|
281
|
-
}
|
|
282
290
|
defaultActive.value = id;
|
|
283
291
|
const menu = c.getAllItems().find((m) => m.id === id);
|
|
284
292
|
if ((menu == null ? void 0 : menu.itemType) === "RAWITEM" || c.runMode === "DESIGN") {
|
|
@@ -287,7 +295,7 @@ const AppMenuControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
287
295
|
await c.onClickMenuItem(id, event);
|
|
288
296
|
};
|
|
289
297
|
if (c.runMode !== "DESIGN") {
|
|
290
|
-
vue.watch(() => route.params.view2, (newVal, oldVal) => {
|
|
298
|
+
vue.watch(() => route == null ? void 0 : route.params.view2, (newVal, oldVal) => {
|
|
291
299
|
if (newVal !== oldVal && ibiz.config.appMenu.enableEcho) {
|
|
292
300
|
const activeMenu = calcCurMenu();
|
|
293
301
|
defaultActive.value = activeMenu ? activeMenu.id : "";
|
|
@@ -303,7 +311,7 @@ const AppMenuControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
303
311
|
const defaultActiveMenuItem = allItems.find((item) => {
|
|
304
312
|
return item.openDefault && !item.hidden;
|
|
305
313
|
});
|
|
306
|
-
if (defaultActiveMenuItem && !route.params.view2 && !route.fullPath.includes("404")) {
|
|
314
|
+
if (defaultActiveMenuItem && !(route == null ? void 0 : route.params.view2) && !(route == null ? void 0 : route.fullPath.includes("404"))) {
|
|
307
315
|
defaultActive.value = defaultActiveMenuItem.id;
|
|
308
316
|
onClick(defaultActive.value);
|
|
309
317
|
} else if (ibiz.config.appMenu.enableEcho) {
|
|
@@ -548,13 +548,17 @@ const CalendarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
548
548
|
const {
|
|
549
549
|
data
|
|
550
550
|
} = value;
|
|
551
|
-
|
|
551
|
+
const item = data[0];
|
|
552
|
+
if (item)
|
|
553
|
+
this.c.onRowClick(item);
|
|
552
554
|
},
|
|
553
555
|
"onEventDblClick": (value) => {
|
|
554
556
|
const {
|
|
555
557
|
data
|
|
556
558
|
} = value;
|
|
557
|
-
|
|
559
|
+
const item = data[0];
|
|
560
|
+
if (item)
|
|
561
|
+
this.c.onDbRowClick(item);
|
|
558
562
|
}
|
|
559
563
|
}, _isSlot(slots) ? slots : {
|
|
560
564
|
default: () => [slots]
|
|
@@ -127,7 +127,7 @@ const useCalendarDaily = (props, emit) => {
|
|
|
127
127
|
const difference = new Date(endTime).getTime() - new Date(startTime).getTime();
|
|
128
128
|
height = Math.floor(difference / (1e3 * 60));
|
|
129
129
|
}
|
|
130
|
-
if (height <
|
|
130
|
+
if (height < 30) {
|
|
131
131
|
height = "auto";
|
|
132
132
|
}
|
|
133
133
|
return height;
|
|
@@ -153,7 +153,7 @@ const useCalendarWeek = (props, emit) => {
|
|
|
153
153
|
const width = "".concat(percentage, "%");
|
|
154
154
|
const styleLeft = "".concat(index * percentage, "%");
|
|
155
155
|
Object.assign(tempEventContent, { width, styleLeft });
|
|
156
|
-
let height =
|
|
156
|
+
let height = "auto";
|
|
157
157
|
let styleTop = 60;
|
|
158
158
|
let timeRange = "";
|
|
159
159
|
if (util.isToday(event.beginTime, event.endTime)) {
|
|
@@ -301,8 +301,8 @@ const useCalendarWeek = (props, emit) => {
|
|
|
301
301
|
const difference = new Date(endTime).getTime() - new Date(startTime).getTime();
|
|
302
302
|
height = Math.floor(difference / (1e3 * 60));
|
|
303
303
|
}
|
|
304
|
-
if (height <
|
|
305
|
-
height =
|
|
304
|
+
if (height < 30) {
|
|
305
|
+
height = "auto";
|
|
306
306
|
}
|
|
307
307
|
return height;
|
|
308
308
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.
|
|
4
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.2_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -237,7 +237,12 @@ const KanbanControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
237
237
|
const findIndex = c.state.selectedData.findIndex((data) => {
|
|
238
238
|
return data.srfkey === item.srfkey;
|
|
239
239
|
});
|
|
240
|
-
const cardClass = [
|
|
240
|
+
const cardClass = [
|
|
241
|
+
ns.b("item"),
|
|
242
|
+
ns.is("selected", findIndex !== -1),
|
|
243
|
+
// 数据更新时不允许拖拽,鼠标变为禁用
|
|
244
|
+
ns.is("disabled", c.state.draggable && c.state.updating)
|
|
245
|
+
];
|
|
241
246
|
const cardStyle = {};
|
|
242
247
|
if (c.model.cardWidth) {
|
|
243
248
|
cardStyle.width = "".concat(c.model.cardWidth, "px");
|
|
@@ -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.
|
|
5
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.2_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_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";
|
|
@@ -17,6 +17,7 @@ const RouterShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
setup(props) {
|
|
20
|
+
var _a;
|
|
20
21
|
const route = vueRouter.useRoute();
|
|
21
22
|
const router = vueRouter.useRouter();
|
|
22
23
|
const viewData = vue.ref({});
|
|
@@ -31,11 +32,13 @@ const RouterShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
31
32
|
context.destroy();
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
|
-
const routeDepth = props.modal.routeDepth;
|
|
35
|
+
const routeDepth = (_a = props.modal) == null ? void 0 : _a.routeDepth;
|
|
35
36
|
vue.onUnmounted(() => {
|
|
36
37
|
destroyContext();
|
|
37
38
|
});
|
|
38
39
|
const calcViewData = async () => {
|
|
40
|
+
if (!routeDepth)
|
|
41
|
+
return;
|
|
39
42
|
try {
|
|
40
43
|
const _viewData = await vue3Util.parseRouteViewData(route, routeDepth);
|
|
41
44
|
const _context = core.IBizContext.create(_viewData.context);
|
|
@@ -62,7 +65,7 @@ const RouterShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
62
65
|
});
|
|
63
66
|
const routeModal = new runtime.Modal({
|
|
64
67
|
mode: runtime.ViewMode.ROUTE,
|
|
65
|
-
routeDepth: routeDepth + 1
|
|
68
|
+
routeDepth: (routeDepth || 0) + 1
|
|
66
69
|
});
|
|
67
70
|
vue.onActivated(() => {
|
|
68
71
|
isActivated.value = true;
|
|
@@ -79,9 +82,8 @@ const RouterShell = /* @__PURE__ */ vue.defineComponent({
|
|
|
79
82
|
};
|
|
80
83
|
},
|
|
81
84
|
render() {
|
|
82
|
-
if (!this.isLoaded)
|
|
85
|
+
if (!this.isLoaded)
|
|
83
86
|
return null;
|
|
84
|
-
}
|
|
85
87
|
const {
|
|
86
88
|
context,
|
|
87
89
|
params,
|
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.2",
|
|
4
4
|
"description": "web端组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"@ibiz-template-plugin/gantt": "0.1.8-alpha.198",
|
|
35
35
|
"@ibiz-template-plugin/bi-report": "0.0.26",
|
|
36
36
|
"@ibiz-template-plugin/data-view": "0.0.4",
|
|
37
|
-
"@ibiz-template/core": "0.7.
|
|
37
|
+
"@ibiz-template/core": "0.7.41-alpha.2",
|
|
38
38
|
"@ibiz-template/devtool": "0.0.11",
|
|
39
|
-
"@ibiz-template/model-helper": "0.7.41-alpha.
|
|
40
|
-
"@ibiz-template/runtime": "0.7.41-alpha.
|
|
39
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.2",
|
|
40
|
+
"@ibiz-template/runtime": "0.7.41-alpha.2",
|
|
41
41
|
"@ibiz-template/theme": "0.7.39",
|
|
42
|
-
"@ibiz-template/vue3-util": "0.7.41-alpha.
|
|
42
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.2",
|
|
43
43
|
"@ibiz-template/web-theme": "3.4.0",
|
|
44
|
-
"@ibiz/model-core": "^0.1.
|
|
44
|
+
"@ibiz/model-core": "^0.1.76",
|
|
45
45
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
46
46
|
"@monaco-editor/loader": "^1.4.0",
|
|
47
47
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"@ibiz-template/runtime": "^0.7.0",
|
|
107
107
|
"@ibiz-template/theme": "^0.7.0",
|
|
108
108
|
"@ibiz-template/vue3-util": "^0.7.0",
|
|
109
|
-
"@ibiz/model-core": "^0.1.
|
|
109
|
+
"@ibiz/model-core": "^0.1.76",
|
|
110
110
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
111
111
|
"@monaco-editor/loader": "^1.3.3",
|
|
112
112
|
"@wangeditor/editor": "^5.1.23",
|