@das-fed/web 7.0.0-zhaohang.1 → 7.0.0-zhaohang.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/{packages/main-app-framework/index-D6tSxSCm.js → index-DeKFYMKY.js} +1 -1
- package/{packages/main-app-framework/index-uy_tfCFy.js → index-DgV7dEtR.js} +30 -35
- package/index-DgV7dEtR.js.gz +0 -0
- package/{index-Do-hi0sT.js → index-g3DWTus2.js} +3098 -3152
- package/index-g3DWTus2.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/i18n/index.js +17 -17
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +212 -216
- package/packages/layout/index.js.gz +0 -0
- package/{index-ybkIe7Qx.js → packages/main-app-framework/index-CGXiI8Px.js} +30 -35
- package/packages/main-app-framework/index-CGXiI8Px.js.gz +0 -0
- package/{index-Ho3juDFP.js → packages/main-app-framework/index-CX-Rv9Hu.js} +1 -1
- package/packages/main-app-framework/{index-By_I7kxF.js → index-iFGtZyh-.js} +2482 -2532
- package/packages/main-app-framework/index-iFGtZyh-.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.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/i18n/index.d.ts +1 -1
- package/types/main-app-framework/business/message-notify/index.d.ts +0 -1
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +1 -2
- package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +1 -3
- package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +0 -2
- package/types/main-app-framework/init-layout/hooks/nav-slots/index.d.ts +0 -1
- package/types/main-app-framework/utils/src/set-common-info.d.ts +0 -2
- package/index-Do-hi0sT.js.gz +0 -0
- package/index-ybkIe7Qx.js.gz +0 -0
- package/packages/main-app-framework/index-By_I7kxF.js.gz +0 -0
- package/packages/main-app-framework/index-uy_tfCFy.js.gz +0 -0
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-ai-helper.d.ts +0 -4
package/packages/layout/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@das-fed/web/packages/layout/style.css';
|
|
2
|
-
import { reactive as
|
|
3
|
-
import { useRouter as
|
|
2
|
+
import { reactive as K, ref as O, defineComponent as z, computed as u, watch as Z, createElementBlock as I, openBlock as g, Fragment as J, createBlock as V, createCommentVNode as b, TransitionGroup as he, normalizeProps as ee, mergeProps as ne, withCtx as U, renderList as re, withDirectives as D, resolveDynamicComponent as N, vShow as M, unref as w, nextTick as oe, resolveComponent as ge, createElementVNode as $, normalizeStyle as pe, normalizeClass as ye, renderSlot as F, createVNode as X, Transition as ie, guardReactiveProps as le, KeepAlive as ce, h as Y, onBeforeMount as we, onMounted as be, onUnmounted as _e } from "vue";
|
|
3
|
+
import { useRouter as Le, useRoute as me } from "vue-router";
|
|
4
4
|
import { setHtmlMinWH as Ce } from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
5
|
-
import { createCeNav as
|
|
5
|
+
import { createCeNav as Ie, createCeTabs as ke, createCeMenu as Te } 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 h =
|
|
7
|
+
const h = K({
|
|
8
8
|
visible: !1,
|
|
9
9
|
theme: "default",
|
|
10
10
|
logo: "",
|
|
@@ -16,7 +16,7 @@ const h = z({
|
|
|
16
16
|
// activeItem: '',
|
|
17
17
|
// activeProject: {},
|
|
18
18
|
eventListeners: {}
|
|
19
|
-
}),
|
|
19
|
+
}), ue = {
|
|
20
20
|
show: () => {
|
|
21
21
|
h.visible = !0;
|
|
22
22
|
},
|
|
@@ -92,31 +92,31 @@ const h = z({
|
|
|
92
92
|
remove: l
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
},
|
|
95
|
+
}, A = K({
|
|
96
96
|
theme: "default",
|
|
97
97
|
items: [],
|
|
98
98
|
collapse: !1,
|
|
99
99
|
eventListeners: {}
|
|
100
|
-
}),
|
|
100
|
+
}), ve = {
|
|
101
101
|
setItems: (e) => {
|
|
102
|
-
|
|
102
|
+
A.items = e;
|
|
103
103
|
},
|
|
104
|
-
getItems: () =>
|
|
104
|
+
getItems: () => A.items,
|
|
105
105
|
setTheme: (e) => {
|
|
106
|
-
|
|
106
|
+
A.theme = e;
|
|
107
107
|
},
|
|
108
108
|
setActiveItem: (e) => {
|
|
109
|
-
|
|
109
|
+
A.activeItem = e;
|
|
110
110
|
},
|
|
111
111
|
setCollapse: (e) => {
|
|
112
|
-
|
|
112
|
+
A.collapse = e;
|
|
113
113
|
},
|
|
114
114
|
setPopupClassName: (e) => {
|
|
115
|
-
|
|
115
|
+
A.popupClassName = e;
|
|
116
116
|
},
|
|
117
117
|
triggerEventListener: (e, t, n) => {
|
|
118
118
|
var f;
|
|
119
|
-
const l =
|
|
119
|
+
const l = A.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
120
120
|
for (const y in l) {
|
|
121
121
|
const i = l[y];
|
|
122
122
|
i.type === e && r.push(
|
|
@@ -129,9 +129,9 @@ const h = z({
|
|
|
129
129
|
},
|
|
130
130
|
addEventListener: (e, t) => {
|
|
131
131
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
132
|
-
|
|
132
|
+
A.eventListeners[n] && delete A.eventListeners[n];
|
|
133
133
|
};
|
|
134
|
-
return
|
|
134
|
+
return A.eventListeners[n] = {
|
|
135
135
|
type: e,
|
|
136
136
|
handler: async (d) => {
|
|
137
137
|
try {
|
|
@@ -145,11 +145,11 @@ const h = z({
|
|
|
145
145
|
remove: l
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
}, k =
|
|
148
|
+
}, k = K({
|
|
149
149
|
theme: "default",
|
|
150
150
|
items: [],
|
|
151
151
|
eventListeners: {}
|
|
152
|
-
}),
|
|
152
|
+
}), de = {
|
|
153
153
|
setItems: (e) => {
|
|
154
154
|
k.items = e;
|
|
155
155
|
},
|
|
@@ -199,12 +199,12 @@ const h = z({
|
|
|
199
199
|
remove: l
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
},
|
|
202
|
+
}, W = K({
|
|
203
203
|
eventListeners: {}
|
|
204
204
|
}), Re = {
|
|
205
205
|
triggerEventListener: (e, t, n) => {
|
|
206
206
|
var f;
|
|
207
|
-
const l =
|
|
207
|
+
const l = W.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
208
208
|
for (const y in l) {
|
|
209
209
|
const i = l[y];
|
|
210
210
|
i.type === e && r.push(
|
|
@@ -217,9 +217,9 @@ const h = z({
|
|
|
217
217
|
},
|
|
218
218
|
addEventListener: (e, t) => {
|
|
219
219
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
220
|
-
|
|
220
|
+
W.eventListeners[n] && delete W.eventListeners[n];
|
|
221
221
|
};
|
|
222
|
-
return
|
|
222
|
+
return W.eventListeners[n] = {
|
|
223
223
|
type: e,
|
|
224
224
|
handler: async (d) => {
|
|
225
225
|
try {
|
|
@@ -233,31 +233,31 @@ const h = z({
|
|
|
233
233
|
remove: l
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
},
|
|
236
|
+
}, te = K({
|
|
237
237
|
visible: !1,
|
|
238
238
|
style: {}
|
|
239
|
-
}),
|
|
239
|
+
}), Ae = {
|
|
240
240
|
set: (e, t) => {
|
|
241
|
-
|
|
241
|
+
te.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (te.style = t);
|
|
242
242
|
}
|
|
243
|
-
},
|
|
243
|
+
}, H = {
|
|
244
244
|
nav: h,
|
|
245
|
-
menu:
|
|
245
|
+
menu: A,
|
|
246
246
|
tab: k,
|
|
247
|
-
overlay:
|
|
248
|
-
iframeView:
|
|
249
|
-
visible:
|
|
247
|
+
overlay: te,
|
|
248
|
+
iframeView: W,
|
|
249
|
+
visible: O(!0)
|
|
250
250
|
}, v = {
|
|
251
|
-
nav:
|
|
252
|
-
menu:
|
|
253
|
-
tab:
|
|
254
|
-
overlay:
|
|
251
|
+
nav: ue,
|
|
252
|
+
menu: ve,
|
|
253
|
+
tab: de,
|
|
254
|
+
overlay: Ae,
|
|
255
255
|
iframeView: Re,
|
|
256
|
-
setVisible: (e) =>
|
|
256
|
+
setVisible: (e) => H.visible.value = e,
|
|
257
257
|
setTheme: (e) => {
|
|
258
|
-
|
|
258
|
+
ue.setTheme(e), ve.setTheme(e), de.setTheme(e);
|
|
259
259
|
}
|
|
260
|
-
},
|
|
260
|
+
}, Ve = ["name"], Pe = ["name"], Se = /* @__PURE__ */ z({
|
|
261
261
|
__name: "das-iframe-router-view",
|
|
262
262
|
props: {
|
|
263
263
|
needTransition: { type: Boolean },
|
|
@@ -265,14 +265,14 @@ const h = z({
|
|
|
265
265
|
exclude: { default: () => [] }
|
|
266
266
|
},
|
|
267
267
|
setup(e) {
|
|
268
|
-
const t = e, n =
|
|
268
|
+
const t = e, n = u(() => {
|
|
269
269
|
const { mode: s = "", ...a } = {
|
|
270
270
|
mode: "out-in",
|
|
271
271
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
272
272
|
...t.transitionConfig || {}
|
|
273
273
|
};
|
|
274
274
|
return a;
|
|
275
|
-
}), l =
|
|
275
|
+
}), l = Le(), d = me(), r = O([]), f = u(() => r.value.filter((s) => {
|
|
276
276
|
var a;
|
|
277
277
|
return (a = s.meta) == null ? void 0 : a.isOpen;
|
|
278
278
|
})), y = (s) => {
|
|
@@ -282,7 +282,7 @@ const h = z({
|
|
|
282
282
|
m.meta.key === s && (m.meta.key = `${m.path}-${o}`);
|
|
283
283
|
});
|
|
284
284
|
};
|
|
285
|
-
|
|
285
|
+
Z(
|
|
286
286
|
() => t.exclude,
|
|
287
287
|
(s) => {
|
|
288
288
|
if (!s || !s.length) return;
|
|
@@ -310,13 +310,13 @@ 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((
|
|
314
|
-
s && (s.meta.isShow = !1, await
|
|
315
|
-
const a = r.value.find((
|
|
316
|
-
a && ((o = a.meta) != null && o.isOpen || (a.meta.isOpen = !0), (m = a.meta) != null && m.isShow || (a.meta.isShow = !0), await
|
|
313
|
+
const s = r.value.find((C) => C.meta.isShow);
|
|
314
|
+
s && (s.meta.isShow = !1, await oe(), v.iframeView.triggerEventListener("onDeactivated", { route: s }));
|
|
315
|
+
const a = r.value.find((C) => C.path === d.path);
|
|
316
|
+
a && ((o = a.meta) != null && o.isOpen || (a.meta.isOpen = !0), (m = a.meta) != null && m.isShow || (a.meta.isShow = !0), await oe(), v.iframeView.triggerEventListener("onActivated", { route: a }));
|
|
317
317
|
};
|
|
318
318
|
let S = 0;
|
|
319
|
-
return
|
|
319
|
+
return Z(
|
|
320
320
|
() => l.currentRoute.value,
|
|
321
321
|
() => {
|
|
322
322
|
const s = l.options.routes.length;
|
|
@@ -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) => (g(),
|
|
336
|
-
|
|
335
|
+
}), (s, a) => (g(), I(
|
|
336
|
+
J,
|
|
337
337
|
null,
|
|
338
338
|
[
|
|
339
339
|
s.needTransition ? (g(), V(
|
|
340
|
-
|
|
341
|
-
ne(
|
|
340
|
+
he,
|
|
341
|
+
ee(ne({ key: 0 }, n.value)),
|
|
342
342
|
{
|
|
343
|
-
default:
|
|
344
|
-
(g(!0),
|
|
345
|
-
|
|
343
|
+
default: U(() => [
|
|
344
|
+
(g(!0), I(
|
|
345
|
+
J,
|
|
346
346
|
null,
|
|
347
|
-
|
|
347
|
+
re(f.value, ({ path: o, meta: m }) => D((g(), I("div", {
|
|
348
348
|
class: "das-iframe-router-view",
|
|
349
349
|
key: m.key,
|
|
350
350
|
name: o
|
|
351
351
|
}, [
|
|
352
|
-
(g(), V(
|
|
352
|
+
(g(), V(N(m.componentInstance), {
|
|
353
353
|
key: m.key
|
|
354
354
|
}))
|
|
355
|
-
], 8,
|
|
356
|
-
[M, m.componentInstance && o ===
|
|
355
|
+
], 8, Ve)), [
|
|
356
|
+
[M, m.componentInstance && o === w(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 ?
|
|
369
|
-
|
|
367
|
+
)) : b("v-if", !0),
|
|
368
|
+
s.needTransition ? b("v-if", !0) : (g(!0), I(
|
|
369
|
+
J,
|
|
370
370
|
{ key: 1 },
|
|
371
|
-
|
|
371
|
+
re(f.value, ({ path: o, meta: m }) => D((g(), I("div", {
|
|
372
372
|
class: "das-iframe-router-view",
|
|
373
373
|
key: m.key,
|
|
374
374
|
name: o
|
|
375
375
|
}, [
|
|
376
|
-
(g(), V(
|
|
376
|
+
(g(), V(N(m.componentInstance), {
|
|
377
377
|
key: m.key
|
|
378
378
|
}))
|
|
379
|
-
], 8,
|
|
380
|
-
[M, m.componentInstance && o ===
|
|
379
|
+
], 8, Pe)), [
|
|
380
|
+
[M, m.componentInstance && o === w(d).path]
|
|
381
381
|
])),
|
|
382
382
|
128
|
|
383
383
|
/* KEYED_FRAGMENT */
|
|
@@ -387,30 +387,30 @@ const h = z({
|
|
|
387
387
|
/* STABLE_FRAGMENT */
|
|
388
388
|
));
|
|
389
389
|
}
|
|
390
|
-
}),
|
|
390
|
+
}), fe = (e, t) => {
|
|
391
391
|
const n = e.__vccOpts || e;
|
|
392
392
|
for (const [l, d] of t)
|
|
393
393
|
n[l] = d;
|
|
394
394
|
return n;
|
|
395
|
-
},
|
|
395
|
+
}, De = /* @__PURE__ */ fe(Se, [["__scopeId", "data-v-6dd310c9"]]), Me = { class: "das-web-app-container" }, je = {
|
|
396
396
|
key: 0,
|
|
397
397
|
class: "das-web-app-header"
|
|
398
|
-
},
|
|
398
|
+
}, xe = { class: "das-web-app-main" }, $e = {
|
|
399
399
|
key: 0,
|
|
400
400
|
class: "aside"
|
|
401
|
-
}, Be = { class: "das-web-app-main-container" },
|
|
401
|
+
}, Be = { class: "das-web-app-main-container" }, He = {
|
|
402
402
|
key: 0,
|
|
403
403
|
class: "tab"
|
|
404
|
-
},
|
|
404
|
+
}, Fe = { class: "das-web-app-main-content" }, Ne = { class: "banner" }, Oe = { class: "das-web-app-main-router-view" }, Ue = {
|
|
405
405
|
key: 0,
|
|
406
406
|
style: { width: "100%", height: "100%" }
|
|
407
|
-
},
|
|
407
|
+
}, We = {
|
|
408
408
|
key: 1,
|
|
409
409
|
style: { width: "100%", height: "100%" }
|
|
410
|
-
},
|
|
410
|
+
}, Ke = { style: { width: "100%", height: "100%" } }, ze = {
|
|
411
411
|
class: "micro-app",
|
|
412
412
|
style: { height: "100%", width: "100%" }
|
|
413
|
-
},
|
|
413
|
+
}, Qe = /* @__PURE__ */ z({
|
|
414
414
|
__name: "das-web-layout",
|
|
415
415
|
props: {
|
|
416
416
|
needTransition: { type: Boolean, default: !0 },
|
|
@@ -425,49 +425,49 @@ const h = z({
|
|
|
425
425
|
},
|
|
426
426
|
setup(e) {
|
|
427
427
|
const t = e;
|
|
428
|
-
|
|
429
|
-
const n =
|
|
428
|
+
Ie(), ke(), Te();
|
|
429
|
+
const n = me(), l = O(!1), d = O(!1), r = O(!1), f = u(() => l.value && t.showLayout), y = u(() => d.value && t.showLayout && t.showAside), i = u(() => l.value && t.showLayout && t.showTabs), P = u(() => t.routerViewVisible ?? !0), T = u(() => H.overlay.visible ?? !1), S = u(() => ({
|
|
430
430
|
"das-web-app-overlay-show": T.value === !0,
|
|
431
431
|
"das-web-app-overlay-hide": T.value === !1,
|
|
432
432
|
"das-web-app-overlay-destroy": T.value === "destroy"
|
|
433
|
-
})), s =
|
|
434
|
-
|
|
433
|
+
})), s = u(() => H.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = u(() => t.excludeRoutes), o = u(() => t.routeKeepAliveVisible);
|
|
434
|
+
Z(
|
|
435
435
|
() => [n.meta, n.query],
|
|
436
436
|
([_, j]) => {
|
|
437
|
-
const { showLayout:
|
|
438
|
-
showLayout:
|
|
439
|
-
showAside:
|
|
440
|
-
showTabs:
|
|
441
|
-
app:
|
|
437
|
+
const { showLayout: R = !0, showAside: c = !0, showTabs: p = !0, layout: L = {} } = _, {
|
|
438
|
+
showLayout: x = !0,
|
|
439
|
+
showAside: E = !0,
|
|
440
|
+
showTabs: se = !0,
|
|
441
|
+
app: Xe
|
|
442
442
|
} = j;
|
|
443
|
-
Ce(
|
|
444
|
-
let
|
|
445
|
-
(
|
|
443
|
+
Ce(L);
|
|
444
|
+
let ae = !0, q = !0, G = !0;
|
|
445
|
+
(R === !1 || x === !1 || x === "false") && (ae = !1, q = !1, G = !1), (c === !1 || E === !1 || E === "false") && (q = !1), (p === !1 || se === !1 || se === "false") && (G = !1), l.value = ae, d.value = q, r.value = G;
|
|
446
446
|
}
|
|
447
447
|
);
|
|
448
|
-
const m =
|
|
448
|
+
const m = u(() => ({
|
|
449
449
|
mode: "out-in",
|
|
450
450
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
451
451
|
...t.transitionConfig || {}
|
|
452
452
|
}));
|
|
453
|
-
let
|
|
454
|
-
const
|
|
455
|
-
let
|
|
456
|
-
return
|
|
453
|
+
let C = /* @__PURE__ */ new Map();
|
|
454
|
+
const Q = (_, j) => {
|
|
455
|
+
let R;
|
|
456
|
+
return C.has(j) ? R = C.get(j) : (R = {
|
|
457
457
|
name: j,
|
|
458
458
|
render() {
|
|
459
|
-
return
|
|
459
|
+
return Y("div", { style: { width: "100%", height: "100%" } }, [Y(_)]);
|
|
460
460
|
}
|
|
461
|
-
},
|
|
462
|
-
}, B =
|
|
461
|
+
}, C.set(j, R)), Y(R);
|
|
462
|
+
}, B = u(() => H.visible.value);
|
|
463
463
|
return (_, j) => {
|
|
464
|
-
const
|
|
465
|
-
return g(),
|
|
466
|
-
D(
|
|
464
|
+
const R = ge("router-view");
|
|
465
|
+
return g(), I("div", Me, [
|
|
466
|
+
D($(
|
|
467
467
|
"div",
|
|
468
468
|
{
|
|
469
|
-
class:
|
|
470
|
-
style:
|
|
469
|
+
class: ye(["das-web-app-overlay", S.value]),
|
|
470
|
+
style: pe(s.value)
|
|
471
471
|
},
|
|
472
472
|
null,
|
|
473
473
|
6
|
|
@@ -475,77 +475,77 @@ const h = z({
|
|
|
475
475
|
), [
|
|
476
476
|
[M, B.value]
|
|
477
477
|
]),
|
|
478
|
-
f.value ? D((g(),
|
|
478
|
+
f.value ? D((g(), I(
|
|
479
479
|
"div",
|
|
480
|
-
|
|
480
|
+
je,
|
|
481
481
|
[
|
|
482
|
-
|
|
482
|
+
F(_.$slots, "header", {}, void 0, !0)
|
|
483
483
|
],
|
|
484
484
|
512
|
|
485
485
|
/* NEED_PATCH */
|
|
486
486
|
)), [
|
|
487
487
|
[M, B.value]
|
|
488
|
-
]) :
|
|
489
|
-
|
|
490
|
-
y.value ? D((g(),
|
|
488
|
+
]) : b("v-if", !0),
|
|
489
|
+
$("div", xe, [
|
|
490
|
+
y.value ? D((g(), I(
|
|
491
491
|
"div",
|
|
492
|
-
|
|
492
|
+
$e,
|
|
493
493
|
[
|
|
494
|
-
|
|
494
|
+
F(_.$slots, "aside", {}, void 0, !0)
|
|
495
495
|
],
|
|
496
496
|
512
|
|
497
497
|
/* NEED_PATCH */
|
|
498
498
|
)), [
|
|
499
499
|
[M, B.value]
|
|
500
|
-
]) :
|
|
501
|
-
|
|
502
|
-
i.value ? D((g(),
|
|
500
|
+
]) : b("v-if", !0),
|
|
501
|
+
$("div", Be, [
|
|
502
|
+
i.value ? D((g(), I(
|
|
503
503
|
"div",
|
|
504
|
-
|
|
504
|
+
He,
|
|
505
505
|
[
|
|
506
|
-
|
|
506
|
+
F(_.$slots, "tab", {}, void 0, !0)
|
|
507
507
|
],
|
|
508
508
|
512
|
|
509
509
|
/* NEED_PATCH */
|
|
510
510
|
)), [
|
|
511
511
|
[M, B.value]
|
|
512
|
-
]) :
|
|
513
|
-
|
|
514
|
-
D(
|
|
512
|
+
]) : b("v-if", !0),
|
|
513
|
+
$("div", Fe, [
|
|
514
|
+
D($(
|
|
515
515
|
"div",
|
|
516
|
-
|
|
516
|
+
Ne,
|
|
517
517
|
[
|
|
518
|
-
|
|
518
|
+
F(_.$slots, "banner", {}, void 0, !0)
|
|
519
519
|
],
|
|
520
520
|
512
|
|
521
521
|
/* NEED_PATCH */
|
|
522
522
|
), [
|
|
523
523
|
[M, B.value]
|
|
524
524
|
]),
|
|
525
|
-
|
|
526
|
-
D((g(),
|
|
525
|
+
$("div", Oe, [
|
|
526
|
+
D((g(), I("div", {
|
|
527
527
|
key: _.pageKey,
|
|
528
528
|
style: { width: "100%", height: "100%" }
|
|
529
529
|
}, [
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
_.needTransition ? (g(), V(
|
|
533
|
-
default:
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
530
|
+
F(_.$slots, "router-view", {}, () => [
|
|
531
|
+
b(" 有动画 "),
|
|
532
|
+
_.needTransition ? (g(), V(R, { key: 0 }, {
|
|
533
|
+
default: U(({ Component: c }) => [
|
|
534
|
+
X(
|
|
535
|
+
ie,
|
|
536
|
+
ee(le(m.value)),
|
|
537
537
|
{
|
|
538
|
-
default:
|
|
539
|
-
var
|
|
538
|
+
default: U(() => {
|
|
539
|
+
var p;
|
|
540
540
|
return [
|
|
541
|
-
|
|
541
|
+
w(n).meta.keepAlive ? (g(), V(ce, {
|
|
542
542
|
key: 0,
|
|
543
543
|
exclude: a.value
|
|
544
544
|
}, [
|
|
545
|
-
o.value && !((
|
|
546
|
-
key:
|
|
547
|
-
})) :
|
|
548
|
-
], 1032, ["exclude"])) :
|
|
545
|
+
o.value && !((p = w(n).meta) != null && p.isIframe) ? (g(), V(N(Q(c, w(n).path)), {
|
|
546
|
+
key: w(n).path
|
|
547
|
+
})) : b("v-if", !0)
|
|
548
|
+
], 1032, ["exclude"])) : b("v-if", !0)
|
|
549
549
|
];
|
|
550
550
|
}),
|
|
551
551
|
_: 2
|
|
@@ -554,16 +554,16 @@ const h = z({
|
|
|
554
554
|
1040
|
|
555
555
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
556
556
|
),
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
557
|
+
X(
|
|
558
|
+
ie,
|
|
559
|
+
ee(le(m.value)),
|
|
560
560
|
{
|
|
561
|
-
default:
|
|
562
|
-
!
|
|
563
|
-
(g(), V(
|
|
564
|
-
key:
|
|
561
|
+
default: U(() => [
|
|
562
|
+
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", Ue, [
|
|
563
|
+
(g(), V(N(c), {
|
|
564
|
+
key: w(n).path
|
|
565
565
|
}))
|
|
566
|
-
])) :
|
|
566
|
+
])) : b("v-if", !0)
|
|
567
567
|
]),
|
|
568
568
|
_: 2
|
|
569
569
|
/* DYNAMIC */
|
|
@@ -574,32 +574,32 @@ const h = z({
|
|
|
574
574
|
]),
|
|
575
575
|
_: 1
|
|
576
576
|
/* STABLE */
|
|
577
|
-
})) :
|
|
578
|
-
|
|
579
|
-
_.needTransition ?
|
|
580
|
-
default:
|
|
581
|
-
|
|
577
|
+
})) : b("v-if", !0),
|
|
578
|
+
b(" 无动画 "),
|
|
579
|
+
_.needTransition ? b("v-if", !0) : (g(), V(R, { key: 1 }, {
|
|
580
|
+
default: U(({ Component: c }) => [
|
|
581
|
+
w(n).meta.keepAlive ? (g(), V(ce, {
|
|
582
582
|
key: 0,
|
|
583
583
|
exclude: a.value
|
|
584
584
|
}, [
|
|
585
|
-
o.value && !
|
|
586
|
-
key:
|
|
587
|
-
})) :
|
|
588
|
-
], 1032, ["exclude"])) :
|
|
589
|
-
!
|
|
590
|
-
(g(), V(
|
|
591
|
-
key:
|
|
585
|
+
o.value && !w(n).meta.isIframe ? (g(), V(N(Q(c, w(n).path)), {
|
|
586
|
+
key: w(n).path
|
|
587
|
+
})) : b("v-if", !0)
|
|
588
|
+
], 1032, ["exclude"])) : b("v-if", !0),
|
|
589
|
+
!w(n).meta.keepAlive && !w(n).meta.isIframe ? (g(), I("div", We, [
|
|
590
|
+
(g(), V(N(c), {
|
|
591
|
+
key: w(n).path
|
|
592
592
|
}))
|
|
593
|
-
])) :
|
|
593
|
+
])) : b("v-if", !0)
|
|
594
594
|
]),
|
|
595
595
|
_: 1
|
|
596
596
|
/* STABLE */
|
|
597
597
|
})),
|
|
598
|
-
D(
|
|
598
|
+
D($(
|
|
599
599
|
"div",
|
|
600
|
-
|
|
600
|
+
Ke,
|
|
601
601
|
[
|
|
602
|
-
|
|
602
|
+
X(De, {
|
|
603
603
|
exclude: a.value,
|
|
604
604
|
transitionConfig: m.value,
|
|
605
605
|
needTransition: _.needTransition
|
|
@@ -608,17 +608,17 @@ const h = z({
|
|
|
608
608
|
512
|
|
609
609
|
/* NEED_PATCH */
|
|
610
610
|
), [
|
|
611
|
-
[M,
|
|
611
|
+
[M, w(n).meta.isIframe]
|
|
612
612
|
])
|
|
613
613
|
], !0)
|
|
614
614
|
])), [
|
|
615
615
|
[M, P.value]
|
|
616
616
|
]),
|
|
617
|
-
D(
|
|
617
|
+
D($(
|
|
618
618
|
"div",
|
|
619
|
-
|
|
619
|
+
ze,
|
|
620
620
|
[
|
|
621
|
-
|
|
621
|
+
F(_.$slots, "default", {}, void 0, !0)
|
|
622
622
|
],
|
|
623
623
|
512
|
|
624
624
|
/* NEED_PATCH */
|
|
@@ -632,65 +632,62 @@ const h = z({
|
|
|
632
632
|
]);
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
|
-
}), st = /* @__PURE__ */
|
|
635
|
+
}), st = /* @__PURE__ */ fe(Qe, [["__scopeId", "data-v-e2af5217"]]), qe = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], at = /* @__PURE__ */ z({
|
|
636
636
|
__name: "das-web-nav",
|
|
637
637
|
setup(e) {
|
|
638
|
-
const { nav: t } =
|
|
639
|
-
var
|
|
638
|
+
const { nav: t } = H, n = u(() => t.theme), l = u(() => t.logo || ""), d = u(() => t.activeItem || ""), r = u(() => (t.items || []).filter((p) => p.fixed)), f = u(() => (t.items || []).filter((p) => !p.fixed)), y = u(() => {
|
|
639
|
+
var c, p, L, x;
|
|
640
640
|
return {
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
subAppList: f.value.map((G) => ({ code: G.value, name: G.label, ...G }))
|
|
641
|
+
showFullScreen: ((c = t.config) == null ? void 0 : c.showFullScreen) ?? !1,
|
|
642
|
+
showChangeEnterprise: ((p = t.config) == null ? void 0 : p.showChangeEnterprise) ?? !1,
|
|
643
|
+
showSearch: ((L = t.config) == null ? void 0 : L.showSearch) ?? !0,
|
|
644
|
+
showProjectTree: ((x = t.config) == null ? void 0 : x.showProjectTree) ?? !0,
|
|
645
|
+
subAppList: f.value.map((E) => ({ code: E.value, name: E.label, ...E }))
|
|
647
646
|
};
|
|
648
|
-
}), i =
|
|
649
|
-
const
|
|
647
|
+
}), i = u(() => {
|
|
648
|
+
const c = r.value.find((p) => p.value === t.activeItem);
|
|
650
649
|
return {
|
|
651
|
-
activeInnerPagePath: (
|
|
650
|
+
activeInnerPagePath: (c == null ? void 0 : c.path) || "",
|
|
652
651
|
innerPages: r.value.map((p) => ({ title: p.label, ...p }))
|
|
653
652
|
};
|
|
654
|
-
}), P =
|
|
653
|
+
}), P = u(() => ({
|
|
655
654
|
projectStore: {
|
|
656
655
|
projectTree: t.projects,
|
|
657
656
|
currentProject: t.activeProject
|
|
658
657
|
},
|
|
659
658
|
...t.projectConfig
|
|
660
|
-
})), T =
|
|
661
|
-
const p =
|
|
662
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
663
|
-
}, a = async (
|
|
664
|
-
const p =
|
|
665
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
666
|
-
}, o = async (
|
|
667
|
-
const p =
|
|
668
|
-
await v.nav.triggerEventListener("onItemRemove",
|
|
669
|
-
}, m = async (
|
|
670
|
-
const [p,
|
|
671
|
-
!p || !await v.nav.triggerEventListener("onProjectChange",
|
|
672
|
-
},
|
|
673
|
-
v.nav.triggerEventListener("onUserCommandChange",
|
|
674
|
-
},
|
|
675
|
-
v.nav.triggerEventListener("searchToPage", { item:
|
|
676
|
-
}, B = (
|
|
677
|
-
v.nav.triggerEventListener("clearSearchList", { cb:
|
|
678
|
-
}, _ = (
|
|
679
|
-
v.nav.triggerEventListener("deleteSearchItem", { value:
|
|
659
|
+
})), T = u(() => t.userInfo), S = u(() => t.searchConfig), s = async (c) => {
|
|
660
|
+
const p = c.detail[0], L = r.value.find((E) => p.value === E.value);
|
|
661
|
+
await v.nav.triggerEventListener("onItemClick", L) && v.nav.setActiveItem(L.value);
|
|
662
|
+
}, a = async (c) => {
|
|
663
|
+
const p = c.detail[0], L = f.value.find((E) => p === E.value);
|
|
664
|
+
await v.nav.triggerEventListener("onItemClick", L) && v.nav.setActiveItem(L.value);
|
|
665
|
+
}, o = async (c) => {
|
|
666
|
+
const p = c.detail[0], L = f.value.find((E) => p === E.value);
|
|
667
|
+
await v.nav.triggerEventListener("onItemRemove", L) && v.nav.removeItem(L.value);
|
|
668
|
+
}, m = async (c) => {
|
|
669
|
+
const [p, L] = c.detail;
|
|
670
|
+
!p || !await v.nav.triggerEventListener("onProjectChange", L) || v.nav.setActiveProject(L);
|
|
671
|
+
}, C = (c) => {
|
|
672
|
+
v.nav.triggerEventListener("onUserCommandChange", c.detail[0]);
|
|
673
|
+
}, Q = (c) => {
|
|
674
|
+
v.nav.triggerEventListener("searchToPage", { item: c.detail[0], keyword: c.detail[1], cb: c.detail[2] });
|
|
675
|
+
}, B = (c) => {
|
|
676
|
+
v.nav.triggerEventListener("clearSearchList", { cb: c.detail[0] });
|
|
677
|
+
}, _ = (c) => {
|
|
678
|
+
v.nav.triggerEventListener("deleteSearchItem", { value: c.detail[0], cb: c.detail[1] });
|
|
680
679
|
}, j = () => {
|
|
681
680
|
v.nav.triggerEventListener("changeEnterpriseHandle");
|
|
682
|
-
},
|
|
681
|
+
}, R = () => {
|
|
683
682
|
v.nav.triggerEventListener("fullScreenHandle");
|
|
684
|
-
}, x = () => {
|
|
685
|
-
v.nav.triggerEventListener("openAI");
|
|
686
683
|
};
|
|
687
|
-
return
|
|
684
|
+
return we(() => {
|
|
688
685
|
v.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
|
|
689
|
-
}),
|
|
686
|
+
}), be(() => {
|
|
690
687
|
v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
|
|
691
688
|
}), _e(() => {
|
|
692
689
|
v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
|
|
693
|
-
}), (
|
|
690
|
+
}), (c, p) => (g(), I("das-ce-nav", {
|
|
694
691
|
theme: n.value,
|
|
695
692
|
modelValue: d.value,
|
|
696
693
|
logoUrl: l.value,
|
|
@@ -699,32 +696,31 @@ const h = z({
|
|
|
699
696
|
searchConfig: S.value,
|
|
700
697
|
projectTreeConfig: P.value,
|
|
701
698
|
userInfoConfig: T.value,
|
|
702
|
-
"on:userCommandHandle":
|
|
699
|
+
"on:userCommandHandle": C,
|
|
703
700
|
"on:changeInnerPage": s,
|
|
704
701
|
"on:handleTabClick": a,
|
|
705
702
|
"on:handleTabDelete": o,
|
|
706
703
|
"on:changeTreeHandle": m,
|
|
707
|
-
"on:searchToPage":
|
|
704
|
+
"on:searchToPage": Q,
|
|
708
705
|
"on:clearSearchList": B,
|
|
709
706
|
"on:deleteSearchItem": _,
|
|
710
707
|
"on:changeEnterpriseHandle": j,
|
|
711
|
-
"on:fullScreen":
|
|
712
|
-
|
|
713
|
-
}, null, 40, Ge));
|
|
708
|
+
"on:fullScreen": R
|
|
709
|
+
}, null, 40, qe));
|
|
714
710
|
}
|
|
715
|
-
}),
|
|
711
|
+
}), Ge = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], rt = /* @__PURE__ */ z({
|
|
716
712
|
__name: "das-web-menu",
|
|
717
713
|
props: {
|
|
718
714
|
menuAttr: {}
|
|
719
715
|
},
|
|
720
716
|
setup(e) {
|
|
721
|
-
const { menu: t } =
|
|
722
|
-
const a = s.detail[0], o = Ee(r.value).find((
|
|
717
|
+
const { menu: t } = H, n = e, l = u(() => t.theme), d = u(() => n.menuAttr || {}), r = u(() => t.items), f = u(() => t.items.find((s) => s.fixed)), y = u(() => t.activeItem || ""), i = u(() => t.collapse || !1), P = u(() => ({ popupClassName: t.popupClassName ?? "" })), T = async (s) => {
|
|
718
|
+
const a = s.detail[0], o = Ee(r.value).find((C) => a === C.id);
|
|
723
719
|
await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
|
|
724
720
|
}, S = (s) => {
|
|
725
721
|
v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
|
|
726
722
|
};
|
|
727
|
-
return (s, a) => r.value.length > 0 ? (g(),
|
|
723
|
+
return (s, a) => r.value.length > 0 ? (g(), I("das-ce-menu", ne({
|
|
728
724
|
key: 0,
|
|
729
725
|
theme: l.value,
|
|
730
726
|
modelValue: y.value,
|
|
@@ -735,23 +731,23 @@ const h = z({
|
|
|
735
731
|
}, d.value, {
|
|
736
732
|
onChange: T,
|
|
737
733
|
"on:toggleCollapse": S
|
|
738
|
-
}), null, 16,
|
|
734
|
+
}), null, 16, Ge)) : b("v-if", !0);
|
|
739
735
|
}
|
|
740
|
-
}),
|
|
736
|
+
}), Je = ["theme", "modelValue", "options"], ot = /* @__PURE__ */ z({
|
|
741
737
|
__name: "das-web-tabs",
|
|
742
738
|
props: {
|
|
743
739
|
tabsAttr: {}
|
|
744
740
|
},
|
|
745
741
|
setup(e) {
|
|
746
|
-
const { tab: t } =
|
|
742
|
+
const { tab: t } = H, n = e, l = u(() => n.tabsAttr || {}), d = u(() => t.theme), r = u(() => t.items.map((s) => ({
|
|
747
743
|
...s,
|
|
748
744
|
key: s.value,
|
|
749
745
|
tab: s.label
|
|
750
|
-
}))), f =
|
|
751
|
-
const a = s.detail[0], o = r.value.find((
|
|
746
|
+
}))), f = u(() => t.activeItem || ""), y = async (s) => {
|
|
747
|
+
const a = s.detail[0], o = r.value.find((C) => a === C.value);
|
|
752
748
|
await v.tab.triggerEventListener("onItemClick", o) && v.tab.setActiveItem(o.value);
|
|
753
749
|
}, i = async (s) => {
|
|
754
|
-
const a = s.detail[0], o = r.value.find((
|
|
750
|
+
const a = s.detail[0], o = r.value.find((C) => a === C.value);
|
|
755
751
|
await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
|
|
756
752
|
}, P = async (s) => {
|
|
757
753
|
await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
|
|
@@ -760,7 +756,7 @@ const h = z({
|
|
|
760
756
|
}, S = () => {
|
|
761
757
|
v.tab.triggerEventListener("onToggleFullScreen");
|
|
762
758
|
};
|
|
763
|
-
return (s, a) => r.value.length > 0 ? (g(),
|
|
759
|
+
return (s, a) => r.value.length > 0 ? (g(), I("das-ce-tabs", ne({
|
|
764
760
|
key: 0,
|
|
765
761
|
theme: d.value,
|
|
766
762
|
modelValue: f.value,
|
|
@@ -771,15 +767,15 @@ const h = z({
|
|
|
771
767
|
"on:menuClick": P,
|
|
772
768
|
"on:pageRefresh": T,
|
|
773
769
|
"on:toggleFullScreen": S
|
|
774
|
-
}), null, 16,
|
|
770
|
+
}), null, 16, Je)) : b("v-if", !0);
|
|
775
771
|
}
|
|
776
772
|
});
|
|
777
|
-
|
|
773
|
+
O("@das-fed/web");
|
|
778
774
|
export {
|
|
779
775
|
st as DasWebLayout,
|
|
780
776
|
rt as DasWebMenu,
|
|
781
777
|
at as DasWebNav,
|
|
782
778
|
ot as DasWebTabs,
|
|
783
779
|
v as layout,
|
|
784
|
-
|
|
780
|
+
H as layoutData
|
|
785
781
|
};
|