@das-fed/web 7.0.13 → 7.0.14
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-ChSATpWm.js → index-CFtqoo0v.js} +3362 -3334
- package/index-CFtqoo0v.js.gz +0 -0
- package/{packages/main-app-framework/index-DQCfHi2d.js → index-bMyLyPp0.js} +1 -1
- package/{packages/main-app-framework/index-6MSQfWFl.js → index-eovhT95L.js} +1 -1
- package/index-eovhT95L.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/layout/index.js +136 -132
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/{index-DyiPShVz.js → packages/main-app-framework/index-BfmQBLcY.js} +1 -1
- package/packages/main-app-framework/index-BfmQBLcY.js.gz +0 -0
- package/packages/main-app-framework/{index-DXsVdg4z.js → index-DU1IxZLw.js} +3314 -3290
- package/packages/main-app-framework/index-DU1IxZLw.js.gz +0 -0
- package/{index-DFZ1jLIj.js → packages/main-app-framework/index-DZDYk82X.js} +1 -1
- package/packages/main-app-framework/index.js +1 -1
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index-ChSATpWm.js.gz +0 -0
- package/index-DyiPShVz.js.gz +0 -0
- package/packages/main-app-framework/index-6MSQfWFl.js.gz +0 -0
- package/packages/main-app-framework/index-DXsVdg4z.js.gz +0 -0
package/packages/layout/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
2
|
+
import { reactive as z, ref as U, defineComponent as Q, computed as c, watch as te, createElementBlock as I, openBlock as h, Fragment as Y, createBlock as V, createCommentVNode as y, 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 _, 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";
|
|
6
6
|
import { flatTree as Ee } from "@das-fed/utils/common-tools/nest-tree-format";
|
|
7
|
-
const
|
|
7
|
+
const g = z({
|
|
8
8
|
visible: !1,
|
|
9
9
|
theme: "default",
|
|
10
10
|
logo: "",
|
|
@@ -18,54 +18,54 @@ const h = z({
|
|
|
18
18
|
eventListeners: {}
|
|
19
19
|
}), ve = {
|
|
20
20
|
show: () => {
|
|
21
|
-
|
|
21
|
+
g.visible = !0;
|
|
22
22
|
},
|
|
23
23
|
hide: () => {
|
|
24
|
-
|
|
24
|
+
g.visible = !1;
|
|
25
25
|
},
|
|
26
26
|
setLogo: (e) => {
|
|
27
|
-
|
|
27
|
+
g.logo = e;
|
|
28
28
|
},
|
|
29
29
|
setTheme: (e) => {
|
|
30
|
-
|
|
30
|
+
g.theme = e;
|
|
31
31
|
},
|
|
32
32
|
setItems: (e) => {
|
|
33
|
-
|
|
33
|
+
g.visible || (g.visible = !0), g.items = e;
|
|
34
34
|
},
|
|
35
|
-
getItems: () =>
|
|
35
|
+
getItems: () => g.items,
|
|
36
36
|
removeItem: (e) => {
|
|
37
|
-
const t =
|
|
38
|
-
|
|
37
|
+
const t = g.items.filter((n) => n.value !== e);
|
|
38
|
+
g.items = t;
|
|
39
39
|
},
|
|
40
40
|
appendItem: (e) => {
|
|
41
|
-
|
|
41
|
+
g.visible || (g.visible = !0), !g.items.find((n) => n.value == e.value) && g.items.push(e);
|
|
42
42
|
},
|
|
43
43
|
setActiveItem: (e) => {
|
|
44
|
-
|
|
44
|
+
g.activeItem = e;
|
|
45
45
|
},
|
|
46
46
|
setConfig: (e) => {
|
|
47
|
-
|
|
47
|
+
g.config = e;
|
|
48
48
|
},
|
|
49
49
|
setProjects: (e) => {
|
|
50
|
-
|
|
50
|
+
g.projects = e;
|
|
51
51
|
},
|
|
52
52
|
setProjectConfig: (e) => {
|
|
53
|
-
|
|
53
|
+
g.projectConfig = e;
|
|
54
54
|
},
|
|
55
55
|
setActiveProject: (e) => {
|
|
56
|
-
|
|
56
|
+
g.activeProject = e;
|
|
57
57
|
},
|
|
58
58
|
setUserInfo: (e) => {
|
|
59
|
-
|
|
59
|
+
g.userInfo = e;
|
|
60
60
|
},
|
|
61
61
|
setSearchConfig: (e) => {
|
|
62
|
-
|
|
62
|
+
g.searchConfig = e;
|
|
63
63
|
},
|
|
64
64
|
triggerEventListener: (e, t, n) => {
|
|
65
65
|
var f;
|
|
66
|
-
const l =
|
|
67
|
-
for (const
|
|
68
|
-
const i = l[
|
|
66
|
+
const l = g.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
67
|
+
for (const w in l) {
|
|
68
|
+
const i = l[w];
|
|
69
69
|
i.type === e && r.push(
|
|
70
70
|
(f = i == null ? void 0 : i.handler) == null ? void 0 : f.call(i, t).then(() => {
|
|
71
71
|
d && i.remove();
|
|
@@ -76,9 +76,9 @@ const h = z({
|
|
|
76
76
|
},
|
|
77
77
|
addEventListener: (e, t) => {
|
|
78
78
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
79
|
-
|
|
79
|
+
g.eventListeners[n] && delete g.eventListeners[n];
|
|
80
80
|
};
|
|
81
|
-
return
|
|
81
|
+
return g.eventListeners[n] = {
|
|
82
82
|
type: e,
|
|
83
83
|
handler: async (d) => {
|
|
84
84
|
try {
|
|
@@ -117,8 +117,8 @@ const h = z({
|
|
|
117
117
|
triggerEventListener: (e, t, n) => {
|
|
118
118
|
var f;
|
|
119
119
|
const l = R.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
120
|
-
for (const
|
|
121
|
-
const i = l[
|
|
120
|
+
for (const w in l) {
|
|
121
|
+
const i = l[w];
|
|
122
122
|
i.type === e && r.push(
|
|
123
123
|
(f = i == null ? void 0 : i.handler) == null ? void 0 : f.call(i, t).then(() => {
|
|
124
124
|
d && i.remove();
|
|
@@ -171,8 +171,8 @@ const h = z({
|
|
|
171
171
|
triggerEventListener: (e, t, n) => {
|
|
172
172
|
var f;
|
|
173
173
|
const l = k.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
174
|
-
for (const
|
|
175
|
-
const i = l[
|
|
174
|
+
for (const w in l) {
|
|
175
|
+
const i = l[w];
|
|
176
176
|
i.type === e && r.push(
|
|
177
177
|
(f = i == null ? void 0 : i.handler) == null ? void 0 : f.call(i, t).then(() => {
|
|
178
178
|
d && i.remove();
|
|
@@ -205,8 +205,8 @@ const h = z({
|
|
|
205
205
|
triggerEventListener: (e, t, n) => {
|
|
206
206
|
var f;
|
|
207
207
|
const l = K.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
208
|
-
for (const
|
|
209
|
-
const i = l[
|
|
208
|
+
for (const w in l) {
|
|
209
|
+
const i = l[w];
|
|
210
210
|
i.type === e && r.push(
|
|
211
211
|
(f = i == null ? void 0 : i.handler) == null ? void 0 : f.call(i, t).then(() => {
|
|
212
212
|
d && i.remove();
|
|
@@ -241,7 +241,7 @@ const h = z({
|
|
|
241
241
|
se.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (se.style = t);
|
|
242
242
|
}
|
|
243
243
|
}, F = {
|
|
244
|
-
nav:
|
|
244
|
+
nav: g,
|
|
245
245
|
menu: R,
|
|
246
246
|
tab: k,
|
|
247
247
|
overlay: se,
|
|
@@ -275,7 +275,7 @@ const h = z({
|
|
|
275
275
|
}), l = Ie(), d = fe(), r = U([]), f = c(() => r.value.filter((s) => {
|
|
276
276
|
var a;
|
|
277
277
|
return (a = s.meta) == null ? void 0 : a.isOpen;
|
|
278
|
-
})),
|
|
278
|
+
})), w = (s) => {
|
|
279
279
|
const a = s.lastIndexOf("-");
|
|
280
280
|
let o = a !== -1 ? s.substring(a + 1) : "";
|
|
281
281
|
o === "0" ? o = "1" : o = "0", f.value.forEach((m) => {
|
|
@@ -287,7 +287,7 @@ const h = z({
|
|
|
287
287
|
(s) => {
|
|
288
288
|
if (!s || !s.length) return;
|
|
289
289
|
const a = f.value.find((o) => s.includes(o.path));
|
|
290
|
-
a &&
|
|
290
|
+
a && w(a.meta.key);
|
|
291
291
|
},
|
|
292
292
|
{ deep: !0 }
|
|
293
293
|
);
|
|
@@ -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((C) => C.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((C) => C.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,28 +332,28 @@ const h = z({
|
|
|
332
332
|
r.value.forEach((a) => {
|
|
333
333
|
a.path === s && (a.meta.isOpen = !1);
|
|
334
334
|
});
|
|
335
|
-
}), (s, a) => (
|
|
335
|
+
}), (s, a) => (h(), I(
|
|
336
336
|
Y,
|
|
337
337
|
null,
|
|
338
338
|
[
|
|
339
|
-
s.needTransition ? (
|
|
339
|
+
s.needTransition ? (h(), V(
|
|
340
340
|
ge,
|
|
341
341
|
ne(ae({ key: 0 }, n.value)),
|
|
342
342
|
{
|
|
343
343
|
default: W(() => [
|
|
344
|
-
(
|
|
344
|
+
(h(!0), I(
|
|
345
345
|
Y,
|
|
346
346
|
null,
|
|
347
|
-
oe(f.value, ({ path: o, meta: m }) => D((
|
|
347
|
+
oe(f.value, ({ path: o, meta: m }) => D((h(), I("div", {
|
|
348
348
|
class: "das-iframe-router-view",
|
|
349
349
|
key: m.key,
|
|
350
350
|
name: o
|
|
351
351
|
}, [
|
|
352
|
-
(
|
|
352
|
+
(h(), V(O(m.componentInstance), {
|
|
353
353
|
key: m.key
|
|
354
354
|
}))
|
|
355
355
|
], 8, Pe)), [
|
|
356
|
-
[M, m.componentInstance && o ===
|
|
356
|
+
[M, m.componentInstance && o === _(d).path]
|
|
357
357
|
])),
|
|
358
358
|
128
|
|
359
359
|
/* KEYED_FRAGMENT */
|
|
@@ -364,20 +364,20 @@ const h = z({
|
|
|
364
364
|
},
|
|
365
365
|
16
|
|
366
366
|
/* FULL_PROPS */
|
|
367
|
-
)) :
|
|
368
|
-
s.needTransition ?
|
|
367
|
+
)) : y("v-if", !0),
|
|
368
|
+
s.needTransition ? y("v-if", !0) : (h(!0), I(
|
|
369
369
|
Y,
|
|
370
370
|
{ key: 1 },
|
|
371
|
-
oe(f.value, ({ path: o, meta: m }) => D((
|
|
371
|
+
oe(f.value, ({ path: o, meta: m }) => D((h(), I("div", {
|
|
372
372
|
class: "das-iframe-router-view",
|
|
373
373
|
key: m.key,
|
|
374
374
|
name: o
|
|
375
375
|
}, [
|
|
376
|
-
(
|
|
376
|
+
(h(), V(O(m.componentInstance), {
|
|
377
377
|
key: m.key
|
|
378
378
|
}))
|
|
379
379
|
], 8, Se)), [
|
|
380
|
-
[M, m.componentInstance && o ===
|
|
380
|
+
[M, m.componentInstance && o === _(d).path]
|
|
381
381
|
])),
|
|
382
382
|
128
|
|
383
383
|
/* KEYED_FRAGMENT */
|
|
@@ -395,13 +395,16 @@ const h = z({
|
|
|
395
395
|
}, Me = /* @__PURE__ */ he(De, [["__scopeId", "data-v-6dd310c9"]]), je = { class: "das-web-app-container" }, xe = {
|
|
396
396
|
key: 0,
|
|
397
397
|
class: "das-web-app-header"
|
|
398
|
-
}, $e = { class: "das-web-app-main" },
|
|
398
|
+
}, $e = { class: "das-web-app-main" }, Be = {
|
|
399
399
|
key: 0,
|
|
400
400
|
class: "aside"
|
|
401
|
-
},
|
|
401
|
+
}, He = { class: "das-web-app-main-container" }, Fe = {
|
|
402
402
|
key: 0,
|
|
403
403
|
class: "tab"
|
|
404
|
-
}, Ne = { class: "das-web-app-main-content" }, Oe = { class: "banner" }, Ue = {
|
|
404
|
+
}, Ne = { class: "das-web-app-main-content" }, Oe = { class: "banner" }, Ue = {
|
|
405
|
+
key: 0,
|
|
406
|
+
class: "das-web-app-main-router-view"
|
|
407
|
+
}, We = {
|
|
405
408
|
key: 0,
|
|
406
409
|
style: { width: "100%", height: "100%" }
|
|
407
410
|
}, Ke = {
|
|
@@ -413,6 +416,7 @@ const h = z({
|
|
|
413
416
|
}, qe = /* @__PURE__ */ Q({
|
|
414
417
|
__name: "das-web-layout",
|
|
415
418
|
props: {
|
|
419
|
+
loading: { type: Boolean, default: !0 },
|
|
416
420
|
needTransition: { type: Boolean, default: !0 },
|
|
417
421
|
transitionConfig: {},
|
|
418
422
|
showLayout: { type: Boolean, default: !0 },
|
|
@@ -426,23 +430,23 @@ const h = z({
|
|
|
426
430
|
setup(e) {
|
|
427
431
|
const t = e;
|
|
428
432
|
ke(), Te(), Ae();
|
|
429
|
-
const n = fe(), l = U(!1), d = U(!1), r = U(!1), f = c(() => l.value && t.showLayout),
|
|
433
|
+
const n = fe(), l = U(!1), d = U(!1), r = U(!1), f = c(() => l.value && t.showLayout), w = c(() => d.value && t.showLayout && t.showAside), i = c(() => l.value && t.showLayout && t.showTabs), P = c(() => t.routerViewVisible ?? !0), T = c(() => F.overlay.visible ?? !1), S = c(() => ({
|
|
430
434
|
"das-web-app-overlay-show": T.value === !0,
|
|
431
435
|
"das-web-app-overlay-hide": T.value === !1,
|
|
432
436
|
"das-web-app-overlay-destroy": T.value === "destroy"
|
|
433
437
|
})), s = c(() => F.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = c(() => t.excludeRoutes), o = c(() => t.routeKeepAliveVisible);
|
|
434
438
|
te(
|
|
435
439
|
() => [n.meta, n.query],
|
|
436
|
-
([
|
|
437
|
-
const { showLayout: A = !0, showAside: x = !0, showTabs: u = !0, layout: p = {} } =
|
|
438
|
-
showLayout:
|
|
440
|
+
([b, j]) => {
|
|
441
|
+
const { showLayout: A = !0, showAside: x = !0, showTabs: u = !0, layout: p = {} } = b, {
|
|
442
|
+
showLayout: L = !0,
|
|
439
443
|
showAside: $ = !0,
|
|
440
444
|
showTabs: E = !0,
|
|
441
445
|
app: G
|
|
442
446
|
} = j;
|
|
443
447
|
Ce(p);
|
|
444
448
|
let re = !0, J = !0, X = !0;
|
|
445
|
-
(A === !1 ||
|
|
449
|
+
(A === !1 || L === !1 || L === "false") && (re = !1, J = !1, X = !1), (x === !1 || $ === !1 || $ === "false") && (J = !1), (u === !1 || E === !1 || E === "false") && (X = !1), l.value = re, d.value = J, r.value = X;
|
|
446
450
|
}
|
|
447
451
|
);
|
|
448
452
|
const m = c(() => ({
|
|
@@ -450,19 +454,19 @@ const h = z({
|
|
|
450
454
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
451
455
|
...t.transitionConfig || {}
|
|
452
456
|
}));
|
|
453
|
-
let
|
|
454
|
-
const q = (
|
|
457
|
+
let C = /* @__PURE__ */ new Map();
|
|
458
|
+
const q = (b, j) => {
|
|
455
459
|
let A;
|
|
456
|
-
return
|
|
460
|
+
return C.has(j) ? A = C.get(j) : (A = {
|
|
457
461
|
name: j,
|
|
458
462
|
render() {
|
|
459
|
-
return ee("div", { style: { width: "100%", height: "100%" } }, [ee(
|
|
463
|
+
return ee("div", { style: { width: "100%", height: "100%" } }, [ee(b)]);
|
|
460
464
|
}
|
|
461
|
-
},
|
|
465
|
+
}, C.set(j, A)), ee(A);
|
|
462
466
|
}, B = c(() => F.visible.value);
|
|
463
|
-
return (
|
|
467
|
+
return (b, j) => {
|
|
464
468
|
const A = pe("router-view");
|
|
465
|
-
return
|
|
469
|
+
return h(), I("div", je, [
|
|
466
470
|
D(H(
|
|
467
471
|
"div",
|
|
468
472
|
{
|
|
@@ -475,61 +479,61 @@ const h = z({
|
|
|
475
479
|
), [
|
|
476
480
|
[M, B.value]
|
|
477
481
|
]),
|
|
478
|
-
f.value ? D((
|
|
482
|
+
f.value ? D((h(), I(
|
|
479
483
|
"div",
|
|
480
484
|
xe,
|
|
481
485
|
[
|
|
482
|
-
N(
|
|
486
|
+
N(b.$slots, "header", {}, void 0, !0)
|
|
483
487
|
],
|
|
484
488
|
512
|
|
485
489
|
/* NEED_PATCH */
|
|
486
490
|
)), [
|
|
487
491
|
[M, B.value]
|
|
488
|
-
]) :
|
|
492
|
+
]) : y("v-if", !0),
|
|
489
493
|
H("div", $e, [
|
|
490
|
-
|
|
494
|
+
w.value ? D((h(), I(
|
|
491
495
|
"div",
|
|
492
|
-
|
|
496
|
+
Be,
|
|
493
497
|
[
|
|
494
|
-
N(
|
|
498
|
+
N(b.$slots, "aside", {}, void 0, !0)
|
|
495
499
|
],
|
|
496
500
|
512
|
|
497
501
|
/* NEED_PATCH */
|
|
498
502
|
)), [
|
|
499
503
|
[M, B.value]
|
|
500
|
-
]) :
|
|
501
|
-
H("div",
|
|
502
|
-
i.value ? D((
|
|
504
|
+
]) : y("v-if", !0),
|
|
505
|
+
H("div", He, [
|
|
506
|
+
i.value ? D((h(), I(
|
|
503
507
|
"div",
|
|
504
508
|
Fe,
|
|
505
509
|
[
|
|
506
|
-
N(
|
|
510
|
+
N(b.$slots, "tab", {}, void 0, !0)
|
|
507
511
|
],
|
|
508
512
|
512
|
|
509
513
|
/* NEED_PATCH */
|
|
510
514
|
)), [
|
|
511
515
|
[M, B.value]
|
|
512
|
-
]) :
|
|
516
|
+
]) : y("v-if", !0),
|
|
513
517
|
H("div", Ne, [
|
|
514
518
|
D(H(
|
|
515
519
|
"div",
|
|
516
520
|
Oe,
|
|
517
521
|
[
|
|
518
|
-
N(
|
|
522
|
+
N(b.$slots, "banner", {}, void 0, !0)
|
|
519
523
|
],
|
|
520
524
|
512
|
|
521
525
|
/* NEED_PATCH */
|
|
522
526
|
), [
|
|
523
527
|
[M, B.value]
|
|
524
528
|
]),
|
|
525
|
-
|
|
526
|
-
D((
|
|
527
|
-
key:
|
|
529
|
+
b.loading ? y("v-if", !0) : (h(), I("div", Ue, [
|
|
530
|
+
D((h(), I("div", {
|
|
531
|
+
key: b.pageKey,
|
|
528
532
|
style: { width: "100%", height: "100%" }
|
|
529
533
|
}, [
|
|
530
|
-
N(
|
|
531
|
-
|
|
532
|
-
|
|
534
|
+
N(b.$slots, "router-view", {}, () => [
|
|
535
|
+
y(" 有动画 "),
|
|
536
|
+
b.needTransition ? (h(), V(A, { key: 0 }, {
|
|
533
537
|
default: W(({ Component: x }) => [
|
|
534
538
|
Z(
|
|
535
539
|
le,
|
|
@@ -538,14 +542,14 @@ const h = z({
|
|
|
538
542
|
default: W(() => {
|
|
539
543
|
var u;
|
|
540
544
|
return [
|
|
541
|
-
|
|
545
|
+
_(n).meta.keepAlive ? (h(), V(ue, {
|
|
542
546
|
key: 0,
|
|
543
547
|
exclude: a.value
|
|
544
548
|
}, [
|
|
545
|
-
o.value && !((u =
|
|
546
|
-
key:
|
|
547
|
-
})) :
|
|
548
|
-
], 1032, ["exclude"])) :
|
|
549
|
+
o.value && !((u = _(n).meta) != null && u.isIframe) ? (h(), V(O(q(x, _(n).path)), {
|
|
550
|
+
key: _(n).path
|
|
551
|
+
})) : y("v-if", !0)
|
|
552
|
+
], 1032, ["exclude"])) : y("v-if", !0)
|
|
549
553
|
];
|
|
550
554
|
}),
|
|
551
555
|
_: 2
|
|
@@ -559,11 +563,11 @@ const h = z({
|
|
|
559
563
|
ne(ce(m.value)),
|
|
560
564
|
{
|
|
561
565
|
default: W(() => [
|
|
562
|
-
!
|
|
563
|
-
(
|
|
564
|
-
key:
|
|
566
|
+
!_(n).meta.keepAlive && !_(n).meta.isIframe ? (h(), I("div", We, [
|
|
567
|
+
(h(), V(O(x), {
|
|
568
|
+
key: _(n).path
|
|
565
569
|
}))
|
|
566
|
-
])) :
|
|
570
|
+
])) : y("v-if", !0)
|
|
567
571
|
]),
|
|
568
572
|
_: 2
|
|
569
573
|
/* DYNAMIC */
|
|
@@ -574,23 +578,23 @@ const h = z({
|
|
|
574
578
|
]),
|
|
575
579
|
_: 1
|
|
576
580
|
/* STABLE */
|
|
577
|
-
})) :
|
|
578
|
-
|
|
579
|
-
|
|
581
|
+
})) : y("v-if", !0),
|
|
582
|
+
y(" 无动画 "),
|
|
583
|
+
b.needTransition ? y("v-if", !0) : (h(), V(A, { key: 1 }, {
|
|
580
584
|
default: W(({ Component: x }) => [
|
|
581
|
-
|
|
585
|
+
_(n).meta.keepAlive ? (h(), V(ue, {
|
|
582
586
|
key: 0,
|
|
583
587
|
exclude: a.value
|
|
584
588
|
}, [
|
|
585
|
-
o.value && !
|
|
586
|
-
key:
|
|
587
|
-
})) :
|
|
588
|
-
], 1032, ["exclude"])) :
|
|
589
|
-
!
|
|
590
|
-
(
|
|
591
|
-
key:
|
|
589
|
+
o.value && !_(n).meta.isIframe ? (h(), V(O(q(x, _(n).path)), {
|
|
590
|
+
key: _(n).path
|
|
591
|
+
})) : y("v-if", !0)
|
|
592
|
+
], 1032, ["exclude"])) : y("v-if", !0),
|
|
593
|
+
!_(n).meta.keepAlive && !_(n).meta.isIframe ? (h(), I("div", Ke, [
|
|
594
|
+
(h(), V(O(x), {
|
|
595
|
+
key: _(n).path
|
|
592
596
|
}))
|
|
593
|
-
])) :
|
|
597
|
+
])) : y("v-if", !0)
|
|
594
598
|
]),
|
|
595
599
|
_: 1
|
|
596
600
|
/* STABLE */
|
|
@@ -602,13 +606,13 @@ const h = z({
|
|
|
602
606
|
Z(Me, {
|
|
603
607
|
exclude: a.value,
|
|
604
608
|
transitionConfig: m.value,
|
|
605
|
-
needTransition:
|
|
609
|
+
needTransition: b.needTransition
|
|
606
610
|
}, null, 8, ["exclude", "transitionConfig", "needTransition"])
|
|
607
611
|
],
|
|
608
612
|
512
|
|
609
613
|
/* NEED_PATCH */
|
|
610
614
|
), [
|
|
611
|
-
[M,
|
|
615
|
+
[M, _(n).meta.isIframe]
|
|
612
616
|
])
|
|
613
617
|
], !0)
|
|
614
618
|
])), [
|
|
@@ -618,29 +622,29 @@ const h = z({
|
|
|
618
622
|
"div",
|
|
619
623
|
Qe,
|
|
620
624
|
[
|
|
621
|
-
N(
|
|
625
|
+
N(b.$slots, "default", {}, void 0, !0)
|
|
622
626
|
],
|
|
623
627
|
512
|
|
624
628
|
/* NEED_PATCH */
|
|
625
629
|
), [
|
|
626
630
|
[M, !P.value]
|
|
627
631
|
])
|
|
628
|
-
])
|
|
632
|
+
]))
|
|
629
633
|
])
|
|
630
634
|
])
|
|
631
635
|
])
|
|
632
636
|
]);
|
|
633
637
|
};
|
|
634
638
|
}
|
|
635
|
-
}), st = /* @__PURE__ */ he(qe, [["__scopeId", "data-v-
|
|
639
|
+
}), st = /* @__PURE__ */ he(qe, [["__scopeId", "data-v-006e9528"]]), Ge = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], at = /* @__PURE__ */ Q({
|
|
636
640
|
__name: "das-web-nav",
|
|
637
641
|
setup(e) {
|
|
638
|
-
const { nav: t } = F, n = c(() => t.theme), l = c(() => t.logo || ""), d = c(() => t.activeItem || ""), r = c(() => (t.items || []).filter((p) => p.fixed)), f = c(() => (t.items || []).filter((p) => !p.fixed)),
|
|
639
|
-
var u, p,
|
|
642
|
+
const { nav: t } = F, n = c(() => t.theme), l = c(() => t.logo || ""), d = c(() => t.activeItem || ""), r = c(() => (t.items || []).filter((p) => p.fixed)), f = c(() => (t.items || []).filter((p) => !p.fixed)), w = c(() => {
|
|
643
|
+
var u, p, L, $, E;
|
|
640
644
|
return {
|
|
641
645
|
showAIHelper: ((u = t.config) == null ? void 0 : u.showAIHelper) ?? !1,
|
|
642
646
|
showFullScreen: ((p = t.config) == null ? void 0 : p.showFullScreen) ?? !1,
|
|
643
|
-
showChangeEnterprise: ((
|
|
647
|
+
showChangeEnterprise: ((L = t.config) == null ? void 0 : L.showChangeEnterprise) ?? !1,
|
|
644
648
|
showSearch: (($ = t.config) == null ? void 0 : $.showSearch) ?? !0,
|
|
645
649
|
showProjectTree: ((E = t.config) == null ? void 0 : E.showProjectTree) ?? !0,
|
|
646
650
|
subAppList: f.value.map((G) => ({ code: G.value, name: G.label, ...G }))
|
|
@@ -658,24 +662,24 @@ const h = z({
|
|
|
658
662
|
},
|
|
659
663
|
...t.projectConfig
|
|
660
664
|
})), T = c(() => t.userInfo), S = c(() => t.searchConfig), s = async (u) => {
|
|
661
|
-
const p = u.detail[0],
|
|
662
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
665
|
+
const p = u.detail[0], L = r.value.find((E) => p.value === E.value);
|
|
666
|
+
await v.nav.triggerEventListener("onItemClick", L) && v.nav.setActiveItem(L.value);
|
|
663
667
|
}, a = async (u) => {
|
|
664
|
-
const p = u.detail[0],
|
|
665
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
668
|
+
const p = u.detail[0], L = f.value.find((E) => p === E.value);
|
|
669
|
+
await v.nav.triggerEventListener("onItemClick", L) && v.nav.setActiveItem(L.value);
|
|
666
670
|
}, o = async (u) => {
|
|
667
|
-
const p = u.detail[0],
|
|
668
|
-
await v.nav.triggerEventListener("onItemRemove",
|
|
671
|
+
const p = u.detail[0], L = f.value.find((E) => p === E.value);
|
|
672
|
+
await v.nav.triggerEventListener("onItemRemove", L) && v.nav.removeItem(L.value);
|
|
669
673
|
}, m = async (u) => {
|
|
670
|
-
const [p,
|
|
671
|
-
!p || !await v.nav.triggerEventListener("onProjectChange",
|
|
672
|
-
},
|
|
674
|
+
const [p, L] = u.detail;
|
|
675
|
+
!p || !await v.nav.triggerEventListener("onProjectChange", L) || v.nav.setActiveProject(L);
|
|
676
|
+
}, C = (u) => {
|
|
673
677
|
v.nav.triggerEventListener("onUserCommandChange", u.detail[0]);
|
|
674
678
|
}, q = (u) => {
|
|
675
679
|
v.nav.triggerEventListener("searchToPage", { item: u.detail[0], keyword: u.detail[1], cb: u.detail[2] });
|
|
676
680
|
}, B = (u) => {
|
|
677
681
|
v.nav.triggerEventListener("clearSearchList", { cb: u.detail[0] });
|
|
678
|
-
},
|
|
682
|
+
}, b = (u) => {
|
|
679
683
|
v.nav.triggerEventListener("deleteSearchItem", { value: u.detail[0], cb: u.detail[1] });
|
|
680
684
|
}, j = () => {
|
|
681
685
|
v.nav.triggerEventListener("changeEnterpriseHandle");
|
|
@@ -690,23 +694,23 @@ const h = z({
|
|
|
690
694
|
v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
|
|
691
695
|
}), _e(() => {
|
|
692
696
|
v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
|
|
693
|
-
}), (u, p) => (
|
|
697
|
+
}), (u, p) => (h(), I("das-ce-nav", {
|
|
694
698
|
theme: n.value,
|
|
695
699
|
modelValue: d.value,
|
|
696
700
|
logoUrl: l.value,
|
|
697
|
-
config:
|
|
701
|
+
config: w.value,
|
|
698
702
|
innerPagesConfig: i.value,
|
|
699
703
|
searchConfig: S.value,
|
|
700
704
|
projectTreeConfig: P.value,
|
|
701
705
|
userInfoConfig: T.value,
|
|
702
|
-
"on:userCommandHandle":
|
|
706
|
+
"on:userCommandHandle": C,
|
|
703
707
|
"on:changeInnerPage": s,
|
|
704
708
|
"on:handleTabClick": a,
|
|
705
709
|
"on:handleTabDelete": o,
|
|
706
710
|
"on:changeTreeHandle": m,
|
|
707
711
|
"on:searchToPage": q,
|
|
708
712
|
"on:clearSearchList": B,
|
|
709
|
-
"on:deleteSearchItem":
|
|
713
|
+
"on:deleteSearchItem": b,
|
|
710
714
|
"on:changeEnterpriseHandle": j,
|
|
711
715
|
"on:fullScreen": A,
|
|
712
716
|
"on:openAI": x
|
|
@@ -718,16 +722,16 @@ const h = z({
|
|
|
718
722
|
menuAttr: {}
|
|
719
723
|
},
|
|
720
724
|
setup(e) {
|
|
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)),
|
|
722
|
-
const a = s.detail[0], o = Ee(r.value).find((
|
|
725
|
+
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)), w = c(() => t.activeItem || ""), i = c(() => t.collapse || !1), P = c(() => ({ popupClassName: t.popupClassName ?? "" })), T = async (s) => {
|
|
726
|
+
const a = s.detail[0], o = Ee(r.value).find((C) => a === C.id);
|
|
723
727
|
await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
|
|
724
728
|
}, S = (s) => {
|
|
725
729
|
v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
|
|
726
730
|
};
|
|
727
|
-
return (s, a) => r.value.length > 0 ? (
|
|
731
|
+
return (s, a) => r.value.length > 0 ? (h(), I("das-ce-menu", ae({
|
|
728
732
|
key: 0,
|
|
729
733
|
theme: l.value,
|
|
730
|
-
modelValue:
|
|
734
|
+
modelValue: w.value,
|
|
731
735
|
data: r.value,
|
|
732
736
|
collapse: i.value,
|
|
733
737
|
fixedTopMenu: f.value,
|
|
@@ -735,7 +739,7 @@ const h = z({
|
|
|
735
739
|
}, d.value, {
|
|
736
740
|
onChange: T,
|
|
737
741
|
"on:toggleCollapse": S
|
|
738
|
-
}), null, 16, Je)) :
|
|
742
|
+
}), null, 16, Je)) : y("v-if", !0);
|
|
739
743
|
}
|
|
740
744
|
}), Xe = ["theme", "modelValue", "options"], ot = /* @__PURE__ */ Q({
|
|
741
745
|
__name: "das-web-tabs",
|
|
@@ -747,11 +751,11 @@ const h = z({
|
|
|
747
751
|
...s,
|
|
748
752
|
key: s.value,
|
|
749
753
|
tab: s.label
|
|
750
|
-
}))), f = c(() => t.activeItem || ""),
|
|
751
|
-
const a = s.detail[0], o = r.value.find((
|
|
754
|
+
}))), f = c(() => t.activeItem || ""), w = async (s) => {
|
|
755
|
+
const a = s.detail[0], o = r.value.find((C) => a === C.value);
|
|
752
756
|
await v.tab.triggerEventListener("onItemClick", o) && v.tab.setActiveItem(o.value);
|
|
753
757
|
}, i = async (s) => {
|
|
754
|
-
const a = s.detail[0], o = r.value.find((
|
|
758
|
+
const a = s.detail[0], o = r.value.find((C) => a === C.value);
|
|
755
759
|
await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
|
|
756
760
|
}, P = async (s) => {
|
|
757
761
|
await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
|
|
@@ -760,18 +764,18 @@ const h = z({
|
|
|
760
764
|
}, S = () => {
|
|
761
765
|
v.tab.triggerEventListener("onToggleFullScreen");
|
|
762
766
|
};
|
|
763
|
-
return (s, a) => r.value.length > 0 ? (
|
|
767
|
+
return (s, a) => r.value.length > 0 ? (h(), I("das-ce-tabs", ae({
|
|
764
768
|
key: 0,
|
|
765
769
|
theme: d.value,
|
|
766
770
|
modelValue: f.value,
|
|
767
771
|
options: r.value
|
|
768
772
|
}, l.value, {
|
|
769
|
-
"on:tabClick":
|
|
773
|
+
"on:tabClick": w,
|
|
770
774
|
"on:tabDelete": i,
|
|
771
775
|
"on:menuClick": P,
|
|
772
776
|
"on:pageRefresh": T,
|
|
773
777
|
"on:toggleFullScreen": S
|
|
774
|
-
}), null, 16, Xe)) :
|
|
778
|
+
}), null, 16, Xe)) : y("v-if", !0);
|
|
775
779
|
}
|
|
776
780
|
});
|
|
777
781
|
U("@das-fed/web");
|
|
Binary file
|