@das-fed/web 6.4.0-hot.52 → 6.4.0-hot.54
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/{index-Cw2qhPqh.js → index-CiFOb1is.js} +3788 -3305
- package/index-CiFOb1is.js.gz +0 -0
- package/{index-w97yLPoX.js → index-NwcDC3hA.js} +1 -1
- package/{packages/main-app-framework/index-BjGERUW3.js → index-j8I631MD.js} +34 -32
- package/index-j8I631MD.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +188 -103
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css.gz +0 -0
- package/{index-piNlKhXT.js → packages/main-app-framework/index-C5NAaLmZ.js} +34 -32
- package/packages/main-app-framework/index-C5NAaLmZ.js.gz +0 -0
- package/packages/main-app-framework/{index-BTF5NK5e.js → index-CY_b3rH6.js} +1 -1
- package/packages/main-app-framework/{index-DGHNA_Mf.js → index-Dyau84mz.js} +3471 -3092
- package/packages/main-app-framework/index-Dyau84mz.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +38 -19
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css.gz +0 -0
- package/packages/theme/index.js.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/create-das-web-app/index.d.ts +1 -1
- package/types/i18n/index.d.ts +2 -2
- package/types/layout/store/index.d.ts +1 -1
- package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
- package/types/main-app-framework/business/video-link/index.d.ts +3 -3
- package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
- package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +6 -6
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +10 -10
- package/types/main-app-framework/index.d.ts +2 -2
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -2
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +1 -1
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +5 -5
- package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
- package/types/main-app-framework/init-platform/index.d.ts +1 -1
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index-Cw2qhPqh.js.gz +0 -0
- package/index-piNlKhXT.js.gz +0 -0
- package/packages/main-app-framework/index-BjGERUW3.js.gz +0 -0
- package/packages/main-app-framework/index-DGHNA_Mf.js.gz +0 -0
|
Binary file
|
|
@@ -6,78 +6,80 @@ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as T } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as b } from "@das-fed/utils/common-tools";
|
|
8
8
|
import { createService as E } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-
|
|
9
|
+
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-CiFOb1is.js";
|
|
10
10
|
const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(F) {
|
|
13
|
-
const { beforeEntryApp: d, entryApp: g } = L(),
|
|
13
|
+
const { beforeEntryApp: d, entryApp: g } = L(), m = p(() => P.value.skinStyle), h = p(() => !!j.menu.items.length), w = p(() => {
|
|
14
14
|
if (!u.value || !u.value.length) return [];
|
|
15
|
-
const
|
|
16
|
-
return Array.isArray(
|
|
15
|
+
const o = f(u.value);
|
|
16
|
+
return Array.isArray(o) ? o.length ? (o.forEach((r) => {
|
|
17
17
|
r.apps = y(
|
|
18
|
-
r.apps
|
|
18
|
+
r.apps,
|
|
19
|
+
// element.apps.filter((item: any) => item?.code && item.code !== 'dasaiassistant'),
|
|
19
20
|
4
|
|
20
21
|
);
|
|
21
|
-
}),
|
|
22
|
-
}), y = (
|
|
23
|
-
const
|
|
24
|
-
for (let a = 0; a <
|
|
25
|
-
|
|
26
|
-
return
|
|
27
|
-
}, _ = async (
|
|
28
|
-
if (!
|
|
22
|
+
}), o) : [] : [];
|
|
23
|
+
}), y = (o, r) => {
|
|
24
|
+
const t = [];
|
|
25
|
+
for (let a = 0; a < o.length; a += r)
|
|
26
|
+
t.push(o.slice(a, a + r));
|
|
27
|
+
return t;
|
|
28
|
+
}, _ = async (o) => {
|
|
29
|
+
if (!o) return;
|
|
29
30
|
if (!sessionStorage.getItem("projectInfo")) {
|
|
30
31
|
window.confirm(D("系统资源更新,请刷新系统")) && (window.__isAutoCloseApp = !1, window.location.reload());
|
|
31
32
|
return;
|
|
32
33
|
}
|
|
33
|
-
const
|
|
34
|
-
if (B.innerSet = !0,
|
|
35
|
-
if (
|
|
36
|
-
window.open(
|
|
34
|
+
const t = f(o);
|
|
35
|
+
if (B.innerSet = !0, t.routeUrl) {
|
|
36
|
+
if (o.code === "Ioc") {
|
|
37
|
+
window.open(t.routeUrl, "_blank");
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
|
-
if (
|
|
40
|
+
if (o.code === "wojiacloud") {
|
|
40
41
|
const e = sessionStorage.getItem("kingdee_token") || "";
|
|
41
42
|
if (e) {
|
|
42
|
-
const [n,
|
|
43
|
-
if (
|
|
44
|
-
const
|
|
45
|
-
|
|
43
|
+
const [n, i] = await V().run({ accessToken: e });
|
|
44
|
+
if (i) {
|
|
45
|
+
const s = (i == null ? void 0 : i.auth_code) ?? "";
|
|
46
|
+
t.routeUrl = t.routeUrl.includes("?") ? `${t.routeUrl}&code=${s}` : `${t.routeUrl}?code=${s}`;
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
|
-
const a = (
|
|
51
|
+
const a = (o == null ? void 0 : o.openType) ?? 1, l = (o == null ? void 0 : o.type) ?? 1;
|
|
51
52
|
if (a === 1) {
|
|
52
|
-
if (!await d(
|
|
53
|
-
const n = T().preTab[
|
|
54
|
-
g({ microApp:
|
|
53
|
+
if (!await d(o)) return;
|
|
54
|
+
const n = T().preTab[o.code], i = (n == null ? void 0 : n.code) ?? "", s = { ...(n == null ? void 0 : n.query) ?? {} };
|
|
55
|
+
g({ microApp: t, menuCode: i, route: { query: s } });
|
|
55
56
|
}
|
|
56
|
-
if (a === 2 &&
|
|
57
|
+
if (a === 2 && t.routeUrl) {
|
|
57
58
|
let e = "";
|
|
58
59
|
if (l === 1)
|
|
59
|
-
e =
|
|
60
|
+
e = t != null && t.applicationPath ? location.origin + "/" + t.applicationPath + t.routeUrl : location.origin + t.routeUrl, e = b(e);
|
|
60
61
|
else if (l === 2) {
|
|
61
|
-
const n = await K(
|
|
62
|
+
const n = await K(t.routeUrl, (t == null ? void 0 : t.param) ?? []);
|
|
62
63
|
e = M(n);
|
|
63
64
|
}
|
|
64
65
|
window.open(e, "_blank");
|
|
65
66
|
}
|
|
66
67
|
};
|
|
67
|
-
return (
|
|
68
|
+
return (o, r) => v((C(), U(c(x), {
|
|
68
69
|
full: "",
|
|
69
70
|
spinning: c(q)
|
|
70
71
|
}, {
|
|
71
72
|
default: A(() => [
|
|
72
73
|
S(c($), {
|
|
73
|
-
theme:
|
|
74
|
+
theme: m.value,
|
|
74
75
|
appCategorys: w.value,
|
|
75
76
|
onOpenApp: _
|
|
76
77
|
}, null, 8, ["theme", "appCategorys"])
|
|
77
78
|
]),
|
|
78
79
|
_: 1
|
|
80
|
+
/* STABLE */
|
|
79
81
|
}, 8, ["spinning"])), [
|
|
80
|
-
[I, !
|
|
82
|
+
[I, !h.value]
|
|
81
83
|
]);
|
|
82
84
|
}
|
|
83
85
|
});
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-
|
|
1
|
+
import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-CiFOb1is.js";
|
|
2
2
|
export {
|
|
3
3
|
e as DasMainAppLayout,
|
|
4
4
|
t as DasWebLayout,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/web",
|
|
3
|
-
"version": "6.4.0-hot.
|
|
3
|
+
"version": "6.4.0-hot.54",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "6.4.0-hot.
|
|
8
|
-
"@das-fed/utils": "6.4.0-hot.
|
|
9
|
-
"@das-fed/web": "6.4.0-hot.
|
|
10
|
-
"@das-fed/web-components": "6.4.0-hot.
|
|
7
|
+
"@das-fed/ui": "6.4.0-hot.54",
|
|
8
|
+
"@das-fed/utils": "6.4.0-hot.54",
|
|
9
|
+
"@das-fed/web": "6.4.0-hot.54",
|
|
10
|
+
"@das-fed/web-components": "6.4.0-hot.54",
|
|
11
11
|
"@microsoft/signalr": "^8.0.7",
|
|
12
12
|
"@vueuse/core": "^9.13.0",
|
|
13
13
|
"animate.css": "^4.1.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"vue-router": "^4.4.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@das-fed/cli": "6.4.0-hot.
|
|
22
|
+
"@das-fed/cli": "6.4.0-hot.54",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
Binary file
|
|
Binary file
|
package/packages/layout/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@das-fed/web/packages/layout/style.css';
|
|
2
|
-
import { reactive as z, ref as U, defineComponent as Q, computed as c, watch as te, createElementBlock as C, openBlock as g, Fragment as Y, createBlock as V, createCommentVNode as
|
|
2
|
+
import { reactive as z, ref as U, defineComponent as Q, computed as c, watch as te, createElementBlock as C, openBlock as g, Fragment as Y, createBlock as V, createCommentVNode as L, TransitionGroup as ge, normalizeProps as ne, mergeProps as ae, withCtx as W, renderList as oe, withDirectives as D, resolveDynamicComponent as O, vShow as M, unref as b, nextTick as ie, resolveComponent as pe, createElementVNode as H, normalizeStyle as ye, normalizeClass as we, renderSlot as N, createVNode as Z, Transition as le, guardReactiveProps as ce, KeepAlive as ue, h as ee, onBeforeMount as be, onMounted as Le, onUnmounted as _e } from "vue";
|
|
3
3
|
import { useRouter as Ie, useRoute as fe } from "vue-router";
|
|
4
4
|
import { setHtmlMinWH as Ce } from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
5
5
|
import { createCeNav as ke, createCeTabs as Te, createCeMenu as Ae } from "@das-fed/web-components/das-web-app";
|
|
@@ -310,9 +310,9 @@ const h = z({
|
|
|
310
310
|
}, T = async () => {
|
|
311
311
|
var o, m;
|
|
312
312
|
if (!r.value || !r.value.length) return;
|
|
313
|
-
const s = r.value.find((
|
|
313
|
+
const s = r.value.find((I) => I.meta.isShow);
|
|
314
314
|
s && (s.meta.isShow = !1, await ie(), v.iframeView.triggerEventListener("onDeactivated", { route: s }));
|
|
315
|
-
const a = r.value.find((
|
|
315
|
+
const a = r.value.find((I) => I.path === d.path);
|
|
316
316
|
a && ((o = a.meta) != null && o.isOpen || (a.meta.isOpen = !0), (m = a.meta) != null && m.isShow || (a.meta.isShow = !0), await ie(), v.iframeView.triggerEventListener("onActivated", { route: a }));
|
|
317
317
|
};
|
|
318
318
|
let S = 0;
|
|
@@ -332,10 +332,43 @@ const h = z({
|
|
|
332
332
|
r.value.forEach((a) => {
|
|
333
333
|
a.path === s && (a.meta.isOpen = !1);
|
|
334
334
|
});
|
|
335
|
-
}), (s, a) => (g(), C(
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
}), (s, a) => (g(), C(
|
|
336
|
+
Y,
|
|
337
|
+
null,
|
|
338
|
+
[
|
|
339
|
+
s.needTransition ? (g(), V(
|
|
340
|
+
ge,
|
|
341
|
+
ne(ae({ key: 0 }, n.value)),
|
|
342
|
+
{
|
|
343
|
+
default: W(() => [
|
|
344
|
+
(g(!0), C(
|
|
345
|
+
Y,
|
|
346
|
+
null,
|
|
347
|
+
oe(f.value, ({ path: o, meta: m }) => D((g(), C("div", {
|
|
348
|
+
class: "das-iframe-router-view",
|
|
349
|
+
key: m.key,
|
|
350
|
+
name: o
|
|
351
|
+
}, [
|
|
352
|
+
(g(), V(O(m.componentInstance), {
|
|
353
|
+
key: m.key
|
|
354
|
+
}))
|
|
355
|
+
], 8, Pe)), [
|
|
356
|
+
[M, m.componentInstance && o === b(d).path]
|
|
357
|
+
])),
|
|
358
|
+
128
|
|
359
|
+
/* KEYED_FRAGMENT */
|
|
360
|
+
))
|
|
361
|
+
]),
|
|
362
|
+
_: 1
|
|
363
|
+
/* STABLE */
|
|
364
|
+
},
|
|
365
|
+
16
|
|
366
|
+
/* FULL_PROPS */
|
|
367
|
+
)) : L("v-if", !0),
|
|
368
|
+
s.needTransition ? L("v-if", !0) : (g(!0), C(
|
|
369
|
+
Y,
|
|
370
|
+
{ key: 1 },
|
|
371
|
+
oe(f.value, ({ path: o, meta: m }) => D((g(), C("div", {
|
|
339
372
|
class: "das-iframe-router-view",
|
|
340
373
|
key: m.key,
|
|
341
374
|
name: o
|
|
@@ -343,24 +376,16 @@ const h = z({
|
|
|
343
376
|
(g(), V(O(m.componentInstance), {
|
|
344
377
|
key: m.key
|
|
345
378
|
}))
|
|
346
|
-
], 8,
|
|
379
|
+
], 8, Se)), [
|
|
347
380
|
[M, m.componentInstance && o === b(d).path]
|
|
348
|
-
])),
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}, [
|
|
357
|
-
(g(), V(O(m.componentInstance), {
|
|
358
|
-
key: m.key
|
|
359
|
-
}))
|
|
360
|
-
], 8, Se)), [
|
|
361
|
-
[M, m.componentInstance && o === b(d).path]
|
|
362
|
-
])), 128))
|
|
363
|
-
], 64));
|
|
381
|
+
])),
|
|
382
|
+
128
|
|
383
|
+
/* KEYED_FRAGMENT */
|
|
384
|
+
))
|
|
385
|
+
],
|
|
386
|
+
64
|
|
387
|
+
/* STABLE_FRAGMENT */
|
|
388
|
+
));
|
|
364
389
|
}
|
|
365
390
|
}), he = (e, t) => {
|
|
366
391
|
const n = e.__vccOpts || e;
|
|
@@ -408,8 +433,8 @@ const h = z({
|
|
|
408
433
|
})), s = c(() => F.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = c(() => t.excludeRoutes), o = c(() => t.routeKeepAliveVisible);
|
|
409
434
|
te(
|
|
410
435
|
() => [n.meta, n.query],
|
|
411
|
-
([
|
|
412
|
-
const { showLayout: A = !0, showAside: x = !0, showTabs: u = !0, layout: p = {} } =
|
|
436
|
+
([_, j]) => {
|
|
437
|
+
const { showLayout: A = !0, showAside: x = !0, showTabs: u = !0, layout: p = {} } = _, {
|
|
413
438
|
showLayout: w = !0,
|
|
414
439
|
showAside: $ = !0,
|
|
415
440
|
showTabs: E = !0,
|
|
@@ -425,86 +450,133 @@ const h = z({
|
|
|
425
450
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
426
451
|
...t.transitionConfig || {}
|
|
427
452
|
}));
|
|
428
|
-
let
|
|
429
|
-
const q = (
|
|
453
|
+
let I = /* @__PURE__ */ new Map();
|
|
454
|
+
const q = (_, j) => {
|
|
430
455
|
let A;
|
|
431
|
-
return
|
|
456
|
+
return I.has(j) ? A = I.get(j) : (A = {
|
|
432
457
|
name: j,
|
|
433
458
|
render() {
|
|
434
|
-
return ee("div", { style: { width: "100%", height: "100%" } }, [ee(
|
|
459
|
+
return ee("div", { style: { width: "100%", height: "100%" } }, [ee(_)]);
|
|
435
460
|
}
|
|
436
|
-
},
|
|
461
|
+
}, I.set(j, A)), ee(A);
|
|
437
462
|
}, B = c(() => F.visible.value);
|
|
438
|
-
return (
|
|
463
|
+
return (_, j) => {
|
|
439
464
|
const A = pe("router-view");
|
|
440
465
|
return g(), C("div", je, [
|
|
441
|
-
D(H(
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
466
|
+
D(H(
|
|
467
|
+
"div",
|
|
468
|
+
{
|
|
469
|
+
class: we(["das-web-app-overlay", S.value]),
|
|
470
|
+
style: ye(s.value)
|
|
471
|
+
},
|
|
472
|
+
null,
|
|
473
|
+
6
|
|
474
|
+
/* CLASS, STYLE */
|
|
475
|
+
), [
|
|
445
476
|
[M, B.value]
|
|
446
477
|
]),
|
|
447
|
-
f.value ? D((g(), C(
|
|
448
|
-
|
|
449
|
-
|
|
478
|
+
f.value ? D((g(), C(
|
|
479
|
+
"div",
|
|
480
|
+
xe,
|
|
481
|
+
[
|
|
482
|
+
N(_.$slots, "header", {}, void 0, !0)
|
|
483
|
+
],
|
|
484
|
+
512
|
|
485
|
+
/* NEED_PATCH */
|
|
486
|
+
)), [
|
|
450
487
|
[M, B.value]
|
|
451
|
-
]) :
|
|
488
|
+
]) : L("v-if", !0),
|
|
452
489
|
H("div", $e, [
|
|
453
|
-
y.value ? D((g(), C(
|
|
454
|
-
|
|
455
|
-
|
|
490
|
+
y.value ? D((g(), C(
|
|
491
|
+
"div",
|
|
492
|
+
He,
|
|
493
|
+
[
|
|
494
|
+
N(_.$slots, "aside", {}, void 0, !0)
|
|
495
|
+
],
|
|
496
|
+
512
|
|
497
|
+
/* NEED_PATCH */
|
|
498
|
+
)), [
|
|
456
499
|
[M, B.value]
|
|
457
|
-
]) :
|
|
500
|
+
]) : L("v-if", !0),
|
|
458
501
|
H("div", Be, [
|
|
459
|
-
i.value ? D((g(), C(
|
|
460
|
-
|
|
461
|
-
|
|
502
|
+
i.value ? D((g(), C(
|
|
503
|
+
"div",
|
|
504
|
+
Fe,
|
|
505
|
+
[
|
|
506
|
+
N(_.$slots, "tab", {}, void 0, !0)
|
|
507
|
+
],
|
|
508
|
+
512
|
|
509
|
+
/* NEED_PATCH */
|
|
510
|
+
)), [
|
|
462
511
|
[M, B.value]
|
|
463
|
-
]) :
|
|
512
|
+
]) : L("v-if", !0),
|
|
464
513
|
H("div", Ne, [
|
|
465
|
-
D(H(
|
|
466
|
-
|
|
467
|
-
|
|
514
|
+
D(H(
|
|
515
|
+
"div",
|
|
516
|
+
Oe,
|
|
517
|
+
[
|
|
518
|
+
N(_.$slots, "banner", {}, void 0, !0)
|
|
519
|
+
],
|
|
520
|
+
512
|
|
521
|
+
/* NEED_PATCH */
|
|
522
|
+
), [
|
|
468
523
|
[M, B.value]
|
|
469
524
|
]),
|
|
470
525
|
H("div", Ue, [
|
|
471
526
|
D((g(), C("div", {
|
|
472
|
-
key:
|
|
527
|
+
key: _.pageKey,
|
|
473
528
|
style: { width: "100%", height: "100%" }
|
|
474
529
|
}, [
|
|
475
|
-
N(
|
|
476
|
-
L
|
|
530
|
+
N(_.$slots, "router-view", {}, () => [
|
|
531
|
+
L(" 有动画 "),
|
|
532
|
+
_.needTransition ? (g(), V(A, { key: 0 }, {
|
|
477
533
|
default: W(({ Component: x }) => [
|
|
478
|
-
Z(
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
534
|
+
Z(
|
|
535
|
+
le,
|
|
536
|
+
ne(ce(m.value)),
|
|
537
|
+
{
|
|
538
|
+
default: W(() => {
|
|
539
|
+
var u;
|
|
540
|
+
return [
|
|
541
|
+
b(n).meta.keepAlive ? (g(), V(ue, {
|
|
542
|
+
key: 0,
|
|
543
|
+
exclude: a.value
|
|
544
|
+
}, [
|
|
545
|
+
o.value && !((u = b(n).meta) != null && u.isIframe) ? (g(), V(O(q(x, b(n).path)), {
|
|
546
|
+
key: b(n).path
|
|
547
|
+
})) : L("v-if", !0)
|
|
548
|
+
], 1032, ["exclude"])) : L("v-if", !0)
|
|
549
|
+
];
|
|
550
|
+
}),
|
|
551
|
+
_: 2
|
|
552
|
+
/* DYNAMIC */
|
|
553
|
+
},
|
|
554
|
+
1040
|
|
555
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
556
|
+
),
|
|
557
|
+
Z(
|
|
558
|
+
le,
|
|
559
|
+
ne(ce(m.value)),
|
|
560
|
+
{
|
|
561
|
+
default: W(() => [
|
|
562
|
+
!b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(), C("div", We, [
|
|
563
|
+
(g(), V(O(x), {
|
|
487
564
|
key: b(n).path
|
|
488
|
-
}))
|
|
489
|
-
]
|
|
490
|
-
]
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
(g(), V(O(x), {
|
|
498
|
-
key: b(n).path
|
|
499
|
-
}))
|
|
500
|
-
])) : I("", !0)
|
|
501
|
-
]),
|
|
502
|
-
_: 2
|
|
503
|
-
}, 1040)
|
|
565
|
+
}))
|
|
566
|
+
])) : L("v-if", !0)
|
|
567
|
+
]),
|
|
568
|
+
_: 2
|
|
569
|
+
/* DYNAMIC */
|
|
570
|
+
},
|
|
571
|
+
1040
|
|
572
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
573
|
+
)
|
|
504
574
|
]),
|
|
505
575
|
_: 1
|
|
506
|
-
|
|
507
|
-
|
|
576
|
+
/* STABLE */
|
|
577
|
+
})) : L("v-if", !0),
|
|
578
|
+
L(" 无动画 "),
|
|
579
|
+
_.needTransition ? L("v-if", !0) : (g(), V(A, { key: 1 }, {
|
|
508
580
|
default: W(({ Component: x }) => [
|
|
509
581
|
b(n).meta.keepAlive ? (g(), V(ue, {
|
|
510
582
|
key: 0,
|
|
@@ -512,32 +584,45 @@ const h = z({
|
|
|
512
584
|
}, [
|
|
513
585
|
o.value && !b(n).meta.isIframe ? (g(), V(O(q(x, b(n).path)), {
|
|
514
586
|
key: b(n).path
|
|
515
|
-
})) :
|
|
516
|
-
], 1032, ["exclude"])) :
|
|
587
|
+
})) : L("v-if", !0)
|
|
588
|
+
], 1032, ["exclude"])) : L("v-if", !0),
|
|
517
589
|
!b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(), C("div", Ke, [
|
|
518
590
|
(g(), V(O(x), {
|
|
519
591
|
key: b(n).path
|
|
520
592
|
}))
|
|
521
|
-
])) :
|
|
593
|
+
])) : L("v-if", !0)
|
|
522
594
|
]),
|
|
523
595
|
_: 1
|
|
596
|
+
/* STABLE */
|
|
524
597
|
})),
|
|
525
|
-
D(H(
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
598
|
+
D(H(
|
|
599
|
+
"div",
|
|
600
|
+
ze,
|
|
601
|
+
[
|
|
602
|
+
Z(Me, {
|
|
603
|
+
exclude: a.value,
|
|
604
|
+
transitionConfig: m.value,
|
|
605
|
+
needTransition: _.needTransition
|
|
606
|
+
}, null, 8, ["exclude", "transitionConfig", "needTransition"])
|
|
607
|
+
],
|
|
608
|
+
512
|
|
609
|
+
/* NEED_PATCH */
|
|
610
|
+
), [
|
|
532
611
|
[M, b(n).meta.isIframe]
|
|
533
612
|
])
|
|
534
613
|
], !0)
|
|
535
614
|
])), [
|
|
536
615
|
[M, P.value]
|
|
537
616
|
]),
|
|
538
|
-
D(H(
|
|
539
|
-
|
|
540
|
-
|
|
617
|
+
D(H(
|
|
618
|
+
"div",
|
|
619
|
+
Qe,
|
|
620
|
+
[
|
|
621
|
+
N(_.$slots, "default", {}, void 0, !0)
|
|
622
|
+
],
|
|
623
|
+
512
|
|
624
|
+
/* NEED_PATCH */
|
|
625
|
+
), [
|
|
541
626
|
[M, !P.value]
|
|
542
627
|
])
|
|
543
628
|
])
|
|
@@ -584,13 +669,13 @@ const h = z({
|
|
|
584
669
|
}, m = async (u) => {
|
|
585
670
|
const [p, w] = u.detail;
|
|
586
671
|
!p || !await v.nav.triggerEventListener("onProjectChange", w) || v.nav.setActiveProject(w);
|
|
587
|
-
},
|
|
672
|
+
}, I = (u) => {
|
|
588
673
|
v.nav.triggerEventListener("onUserCommandChange", u.detail[0]);
|
|
589
674
|
}, q = (u) => {
|
|
590
675
|
v.nav.triggerEventListener("searchToPage", { item: u.detail[0], keyword: u.detail[1], cb: u.detail[2] });
|
|
591
676
|
}, B = (u) => {
|
|
592
677
|
v.nav.triggerEventListener("clearSearchList", { cb: u.detail[0] });
|
|
593
|
-
},
|
|
678
|
+
}, _ = (u) => {
|
|
594
679
|
v.nav.triggerEventListener("deleteSearchItem", { value: u.detail[0], cb: u.detail[1] });
|
|
595
680
|
}, j = () => {
|
|
596
681
|
v.nav.triggerEventListener("changeEnterpriseHandle");
|
|
@@ -614,14 +699,14 @@ const h = z({
|
|
|
614
699
|
searchConfig: S.value,
|
|
615
700
|
projectTreeConfig: P.value,
|
|
616
701
|
userInfoConfig: T.value,
|
|
617
|
-
"on:userCommandHandle":
|
|
702
|
+
"on:userCommandHandle": I,
|
|
618
703
|
"on:changeInnerPage": s,
|
|
619
704
|
"on:handleTabClick": a,
|
|
620
705
|
"on:handleTabDelete": o,
|
|
621
706
|
"on:changeTreeHandle": m,
|
|
622
707
|
"on:searchToPage": q,
|
|
623
708
|
"on:clearSearchList": B,
|
|
624
|
-
"on:deleteSearchItem":
|
|
709
|
+
"on:deleteSearchItem": _,
|
|
625
710
|
"on:changeEnterpriseHandle": j,
|
|
626
711
|
"on:fullScreen": A,
|
|
627
712
|
"on:openAI": x
|
|
@@ -634,7 +719,7 @@ const h = z({
|
|
|
634
719
|
},
|
|
635
720
|
setup(e) {
|
|
636
721
|
const { menu: t } = F, n = e, l = c(() => t.theme), d = c(() => n.menuAttr || {}), r = c(() => t.items), f = c(() => t.items.find((s) => s.fixed)), y = c(() => t.activeItem || ""), i = c(() => t.collapse || !1), P = c(() => ({ popupClassName: t.popupClassName ?? "" })), T = async (s) => {
|
|
637
|
-
const a = s.detail[0], o = Ee(r.value).find((
|
|
722
|
+
const a = s.detail[0], o = Ee(r.value).find((I) => a === I.id);
|
|
638
723
|
await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
|
|
639
724
|
}, S = (s) => {
|
|
640
725
|
v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
|
|
@@ -650,7 +735,7 @@ const h = z({
|
|
|
650
735
|
}, d.value, {
|
|
651
736
|
onChange: T,
|
|
652
737
|
"on:toggleCollapse": S
|
|
653
|
-
}), null, 16, Je)) :
|
|
738
|
+
}), null, 16, Je)) : L("v-if", !0);
|
|
654
739
|
}
|
|
655
740
|
}), Xe = ["theme", "modelValue", "options"], ot = /* @__PURE__ */ Q({
|
|
656
741
|
__name: "das-web-tabs",
|
|
@@ -663,10 +748,10 @@ const h = z({
|
|
|
663
748
|
key: s.value,
|
|
664
749
|
tab: s.label
|
|
665
750
|
}))), f = c(() => t.activeItem || ""), y = async (s) => {
|
|
666
|
-
const a = s.detail[0], o = r.value.find((
|
|
751
|
+
const a = s.detail[0], o = r.value.find((I) => a === I.value);
|
|
667
752
|
await v.tab.triggerEventListener("onItemClick", o) && v.tab.setActiveItem(o.value);
|
|
668
753
|
}, i = async (s) => {
|
|
669
|
-
const a = s.detail[0], o = r.value.find((
|
|
754
|
+
const a = s.detail[0], o = r.value.find((I) => a === I.value);
|
|
670
755
|
await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
|
|
671
756
|
}, P = async (s) => {
|
|
672
757
|
await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
|
|
@@ -686,7 +771,7 @@ const h = z({
|
|
|
686
771
|
"on:menuClick": P,
|
|
687
772
|
"on:pageRefresh": T,
|
|
688
773
|
"on:toggleFullScreen": S
|
|
689
|
-
}), null, 16, Xe)) :
|
|
774
|
+
}), null, 16, Xe)) : L("v-if", !0);
|
|
690
775
|
}
|
|
691
776
|
});
|
|
692
777
|
U("@das-fed/web");
|
|
Binary file
|
|
Binary file
|