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