@das-fed/web 7.0.7-dev.2 → 7.0.7-dev.3
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-BVkl_orD.js → index-BUB0t_Vo.js} +1 -1
- package/index-BUB0t_Vo.js.gz +0 -0
- package/{index-Bf3l41zx.js → index-CI83PaxF.js} +1 -1
- package/{index-czdwDc07.js → index-DhNUE9iu.js} +174 -174
- package/{index-czdwDc07.js.gz → index-DhNUE9iu.js.gz} +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/layout/index.js +91 -91
- package/packages/layout/index.js.gz +0 -0
- package/packages/main-app-framework/{index-D1KzfMMX.js → index-B-6riqLS.js} +1 -1
- package/{index-skP-VsV3.js → packages/main-app-framework/index-DGUcf59W.js} +1 -1
- package/packages/main-app-framework/index-DGUcf59W.js.gz +0 -0
- package/packages/main-app-framework/{index-Dm9dhTOr.js → index-DjtNr4lK.js} +2614 -2614
- package/packages/main-app-framework/index-DjtNr4lK.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 +126 -126
- package/packages/micro-frontend/index.js.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index-skP-VsV3.js.gz +0 -0
- package/packages/main-app-framework/index-BVkl_orD.js.gz +0 -0
- package/packages/main-app-framework/index-Dm9dhTOr.js.gz +0 -0
|
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-DhNUE9iu.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": "7.0.7-dev.
|
|
3
|
+
"version": "7.0.7-dev.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "7.0.7-dev.
|
|
8
|
-
"@das-fed/utils": "7.0.7-dev.
|
|
9
|
-
"@das-fed/web": "7.0.7-dev.
|
|
10
|
-
"@das-fed/web-components": "7.0.7-dev.
|
|
7
|
+
"@das-fed/ui": "7.0.7-dev.3",
|
|
8
|
+
"@das-fed/utils": "7.0.7-dev.3",
|
|
9
|
+
"@das-fed/web": "7.0.7-dev.3",
|
|
10
|
+
"@das-fed/web-components": "7.0.7-dev.3",
|
|
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": "7.0.7-dev.
|
|
22
|
+
"@das-fed/cli": "7.0.7-dev.3",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
package/packages/layout/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 L, TransitionGroup as ge, normalizeProps as ne, mergeProps as ae, withCtx as W, renderList as oe, withDirectives as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { setHtmlMinWH 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
|
+
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
7
|
const h = z({
|
|
@@ -145,32 +145,32 @@ const h = z({
|
|
|
145
145
|
remove: l
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
},
|
|
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
|
},
|
|
156
|
-
getItems: () =>
|
|
156
|
+
getItems: () => k.items,
|
|
157
157
|
setTheme: (e) => {
|
|
158
|
-
|
|
158
|
+
k.theme = e;
|
|
159
159
|
},
|
|
160
160
|
removeItem: (e) => {
|
|
161
|
-
const t =
|
|
162
|
-
|
|
161
|
+
const t = k.items.filter((n) => n.value !== e);
|
|
162
|
+
k.items = t;
|
|
163
163
|
},
|
|
164
164
|
appendItem: (e) => {
|
|
165
|
-
const t =
|
|
166
|
-
t !== -1 ?
|
|
165
|
+
const t = k.items.findIndex((n) => n.value == e.value);
|
|
166
|
+
t !== -1 ? k.items.splice(t, 1, e) : k.items.push(e);
|
|
167
167
|
},
|
|
168
168
|
setActiveItem: (e) => {
|
|
169
|
-
|
|
169
|
+
k.activeItem = e;
|
|
170
170
|
},
|
|
171
171
|
triggerEventListener: (e, t, n) => {
|
|
172
172
|
var f;
|
|
173
|
-
const l =
|
|
173
|
+
const l = k.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
|
|
174
174
|
for (const y in l) {
|
|
175
175
|
const i = l[y];
|
|
176
176
|
i.type === e && r.push(
|
|
@@ -183,9 +183,9 @@ const h = z({
|
|
|
183
183
|
},
|
|
184
184
|
addEventListener: (e, t) => {
|
|
185
185
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
186
|
-
|
|
186
|
+
k.eventListeners[n] && delete k.eventListeners[n];
|
|
187
187
|
};
|
|
188
|
-
return
|
|
188
|
+
return k.eventListeners[n] = {
|
|
189
189
|
type: e,
|
|
190
190
|
handler: async (d) => {
|
|
191
191
|
try {
|
|
@@ -243,7 +243,7 @@ const h = z({
|
|
|
243
243
|
}, F = {
|
|
244
244
|
nav: h,
|
|
245
245
|
menu: R,
|
|
246
|
-
tab:
|
|
246
|
+
tab: k,
|
|
247
247
|
overlay: se,
|
|
248
248
|
iframeView: K,
|
|
249
249
|
visible: U(!0)
|
|
@@ -257,7 +257,7 @@ const h = z({
|
|
|
257
257
|
setTheme: (e) => {
|
|
258
258
|
ve.setTheme(e), de.setTheme(e), me.setTheme(e);
|
|
259
259
|
}
|
|
260
|
-
}, Pe = ["name"], Se = ["name"],
|
|
260
|
+
}, Pe = ["name"], Se = ["name"], De = /* @__PURE__ */ Q({
|
|
261
261
|
__name: "das-iframe-router-view",
|
|
262
262
|
props: {
|
|
263
263
|
needTransition: { type: Boolean },
|
|
@@ -272,7 +272,7 @@ const h = z({
|
|
|
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) => {
|
|
@@ -306,8 +306,8 @@ const h = z({
|
|
|
306
306
|
meta: { ...o.meta, key: `${o.path}-0`, componentInstance: m, isOpen: !1, isShow: !1 }
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
|
-
|
|
310
|
-
},
|
|
309
|
+
T();
|
|
310
|
+
}, T = async () => {
|
|
311
311
|
var o, m;
|
|
312
312
|
if (!r.value || !r.value.length) return;
|
|
313
313
|
const s = r.value.find((I) => I.meta.isShow);
|
|
@@ -320,7 +320,7 @@ const h = z({
|
|
|
320
320
|
() => l.currentRoute.value,
|
|
321
321
|
() => {
|
|
322
322
|
const s = l.options.routes.length;
|
|
323
|
-
s !== S ? (P(), S = s) :
|
|
323
|
+
s !== S ? (P(), S = s) : T();
|
|
324
324
|
},
|
|
325
325
|
{ immediate: !0 }
|
|
326
326
|
), v.iframeView.addEventListener("onRefreshCurrentPage", () => {
|
|
@@ -336,7 +336,7 @@ const h = z({
|
|
|
336
336
|
Y,
|
|
337
337
|
null,
|
|
338
338
|
[
|
|
339
|
-
|
|
339
|
+
s.needTransition ? (g(), V(
|
|
340
340
|
ge,
|
|
341
341
|
ne(ae({ key: 0 }, n.value)),
|
|
342
342
|
{
|
|
@@ -344,7 +344,7 @@ const h = z({
|
|
|
344
344
|
(g(!0), C(
|
|
345
345
|
Y,
|
|
346
346
|
null,
|
|
347
|
-
oe(f.value, ({ path: o, meta: m }) =>
|
|
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
|
|
@@ -353,7 +353,7 @@ const h = z({
|
|
|
353
353
|
key: m.key
|
|
354
354
|
}))
|
|
355
355
|
], 8, Pe)), [
|
|
356
|
-
[
|
|
356
|
+
[M, m.componentInstance && o === b(d).path]
|
|
357
357
|
])),
|
|
358
358
|
128
|
|
359
359
|
/* KEYED_FRAGMENT */
|
|
@@ -365,10 +365,10 @@ const h = z({
|
|
|
365
365
|
16
|
|
366
366
|
/* FULL_PROPS */
|
|
367
367
|
)) : L("v-if", !0),
|
|
368
|
-
|
|
368
|
+
s.needTransition ? L("v-if", !0) : (g(!0), C(
|
|
369
369
|
Y,
|
|
370
370
|
{ key: 1 },
|
|
371
|
-
oe(f.value, ({ path: o, meta: m }) =>
|
|
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
|
|
@@ -377,7 +377,7 @@ const h = z({
|
|
|
377
377
|
key: m.key
|
|
378
378
|
}))
|
|
379
379
|
], 8, Se)), [
|
|
380
|
-
[
|
|
380
|
+
[M, m.componentInstance && o === b(d).path]
|
|
381
381
|
])),
|
|
382
382
|
128
|
|
383
383
|
/* KEYED_FRAGMENT */
|
|
@@ -392,7 +392,7 @@ const h = z({
|
|
|
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 = {
|
|
@@ -426,23 +426,23 @@ const h = z({
|
|
|
426
426
|
setup(e) {
|
|
427
427
|
const t = e;
|
|
428
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),
|
|
430
|
-
"das-web-app-overlay-show":
|
|
431
|
-
"das-web-app-overlay-hide":
|
|
432
|
-
"das-web-app-overlay-destroy":
|
|
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
|
+
"das-web-app-overlay-show": T.value === !0,
|
|
431
|
+
"das-web-app-overlay-hide": T.value === !1,
|
|
432
|
+
"das-web-app-overlay-destroy": T.value === "destroy"
|
|
433
433
|
})), s = c(() => F.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = c(() => t.excludeRoutes), o = c(() => t.routeKeepAliveVisible);
|
|
434
434
|
te(
|
|
435
435
|
() => [n.meta, n.query],
|
|
436
|
-
([
|
|
437
|
-
const { showLayout: A = !0, showAside:
|
|
436
|
+
([_, j]) => {
|
|
437
|
+
const { showLayout: A = !0, showAside: x = !0, showTabs: u = !0, layout: p = {} } = _, {
|
|
438
438
|
showLayout: w = !0,
|
|
439
439
|
showAside: $ = !0,
|
|
440
440
|
showTabs: E = !0,
|
|
441
441
|
app: G
|
|
442
|
-
} =
|
|
443
|
-
|
|
442
|
+
} = j;
|
|
443
|
+
Ce(p);
|
|
444
444
|
let re = !0, J = !0, X = !0;
|
|
445
|
-
(A === !1 || w === !1 || w === "false") && (re = !1, J = !1, X = !1), (
|
|
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
448
|
const m = c(() => ({
|
|
@@ -451,19 +451,19 @@ const h = z({
|
|
|
451
451
|
...t.transitionConfig || {}
|
|
452
452
|
}));
|
|
453
453
|
let I = /* @__PURE__ */ new Map();
|
|
454
|
-
const q = (
|
|
454
|
+
const q = (_, j) => {
|
|
455
455
|
let A;
|
|
456
|
-
return I.has(
|
|
457
|
-
name:
|
|
456
|
+
return I.has(j) ? A = I.get(j) : (A = {
|
|
457
|
+
name: j,
|
|
458
458
|
render() {
|
|
459
|
-
return ee("div", { style: { width: "100%", height: "100%" } }, [ee(
|
|
459
|
+
return ee("div", { style: { width: "100%", height: "100%" } }, [ee(_)]);
|
|
460
460
|
}
|
|
461
|
-
}, I.set(
|
|
461
|
+
}, I.set(j, A)), ee(A);
|
|
462
462
|
}, B = c(() => F.visible.value);
|
|
463
|
-
return (
|
|
463
|
+
return (_, j) => {
|
|
464
464
|
const A = pe("router-view");
|
|
465
|
-
return g(), C("div",
|
|
466
|
-
|
|
465
|
+
return g(), C("div", je, [
|
|
466
|
+
D(H(
|
|
467
467
|
"div",
|
|
468
468
|
{
|
|
469
469
|
class: we(["das-web-app-overlay", S.value]),
|
|
@@ -473,64 +473,64 @@ const h = z({
|
|
|
473
473
|
6
|
|
474
474
|
/* CLASS, STYLE */
|
|
475
475
|
), [
|
|
476
|
-
[
|
|
476
|
+
[M, B.value]
|
|
477
477
|
]),
|
|
478
|
-
f.value ?
|
|
478
|
+
f.value ? D((g(), C(
|
|
479
479
|
"div",
|
|
480
|
-
|
|
480
|
+
xe,
|
|
481
481
|
[
|
|
482
|
-
N(
|
|
482
|
+
N(_.$slots, "header", {}, void 0, !0)
|
|
483
483
|
],
|
|
484
484
|
512
|
|
485
485
|
/* NEED_PATCH */
|
|
486
486
|
)), [
|
|
487
|
-
[
|
|
487
|
+
[M, B.value]
|
|
488
488
|
]) : L("v-if", !0),
|
|
489
489
|
H("div", $e, [
|
|
490
|
-
y.value ?
|
|
490
|
+
y.value ? D((g(), C(
|
|
491
491
|
"div",
|
|
492
492
|
He,
|
|
493
493
|
[
|
|
494
|
-
N(
|
|
494
|
+
N(_.$slots, "aside", {}, void 0, !0)
|
|
495
495
|
],
|
|
496
496
|
512
|
|
497
497
|
/* NEED_PATCH */
|
|
498
498
|
)), [
|
|
499
|
-
[
|
|
499
|
+
[M, B.value]
|
|
500
500
|
]) : L("v-if", !0),
|
|
501
501
|
H("div", Be, [
|
|
502
|
-
i.value ?
|
|
502
|
+
i.value ? D((g(), C(
|
|
503
503
|
"div",
|
|
504
504
|
Fe,
|
|
505
505
|
[
|
|
506
|
-
N(
|
|
506
|
+
N(_.$slots, "tab", {}, void 0, !0)
|
|
507
507
|
],
|
|
508
508
|
512
|
|
509
509
|
/* NEED_PATCH */
|
|
510
510
|
)), [
|
|
511
|
-
[
|
|
511
|
+
[M, B.value]
|
|
512
512
|
]) : L("v-if", !0),
|
|
513
513
|
H("div", Ne, [
|
|
514
|
-
|
|
514
|
+
D(H(
|
|
515
515
|
"div",
|
|
516
516
|
Oe,
|
|
517
517
|
[
|
|
518
|
-
N(
|
|
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
525
|
H("div", Ue, [
|
|
526
|
-
|
|
527
|
-
key:
|
|
526
|
+
D((g(), C("div", {
|
|
527
|
+
key: _.pageKey,
|
|
528
528
|
style: { width: "100%", height: "100%" }
|
|
529
529
|
}, [
|
|
530
|
-
N(
|
|
530
|
+
N(_.$slots, "router-view", {}, () => [
|
|
531
531
|
L(" 有动画 "),
|
|
532
|
-
|
|
533
|
-
default: W(({ Component:
|
|
532
|
+
_.needTransition ? (g(), V(A, { key: 0 }, {
|
|
533
|
+
default: W(({ Component: x }) => [
|
|
534
534
|
Z(
|
|
535
535
|
le,
|
|
536
536
|
ne(ce(m.value)),
|
|
@@ -542,7 +542,7 @@ const h = z({
|
|
|
542
542
|
key: 0,
|
|
543
543
|
exclude: a.value
|
|
544
544
|
}, [
|
|
545
|
-
o.value && !((u = b(n).meta) != null && u.isIframe) ? (g(), V(O(q(
|
|
545
|
+
o.value && !((u = b(n).meta) != null && u.isIframe) ? (g(), V(O(q(x, b(n).path)), {
|
|
546
546
|
key: b(n).path
|
|
547
547
|
})) : L("v-if", !0)
|
|
548
548
|
], 1032, ["exclude"])) : L("v-if", !0)
|
|
@@ -560,7 +560,7 @@ const h = z({
|
|
|
560
560
|
{
|
|
561
561
|
default: W(() => [
|
|
562
562
|
!b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(), C("div", We, [
|
|
563
|
-
(g(), V(O(
|
|
563
|
+
(g(), V(O(x), {
|
|
564
564
|
key: b(n).path
|
|
565
565
|
}))
|
|
566
566
|
])) : L("v-if", !0)
|
|
@@ -576,18 +576,18 @@ const h = z({
|
|
|
576
576
|
/* STABLE */
|
|
577
577
|
})) : L("v-if", !0),
|
|
578
578
|
L(" 无动画 "),
|
|
579
|
-
|
|
580
|
-
default: W(({ Component:
|
|
579
|
+
_.needTransition ? L("v-if", !0) : (g(), V(A, { key: 1 }, {
|
|
580
|
+
default: W(({ Component: x }) => [
|
|
581
581
|
b(n).meta.keepAlive ? (g(), V(ue, {
|
|
582
582
|
key: 0,
|
|
583
583
|
exclude: a.value
|
|
584
584
|
}, [
|
|
585
|
-
o.value && !b(n).meta.isIframe ? (g(), V(O(q(
|
|
585
|
+
o.value && !b(n).meta.isIframe ? (g(), V(O(q(x, b(n).path)), {
|
|
586
586
|
key: b(n).path
|
|
587
587
|
})) : L("v-if", !0)
|
|
588
588
|
], 1032, ["exclude"])) : L("v-if", !0),
|
|
589
589
|
!b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(), C("div", Ke, [
|
|
590
|
-
(g(), V(O(
|
|
590
|
+
(g(), V(O(x), {
|
|
591
591
|
key: b(n).path
|
|
592
592
|
}))
|
|
593
593
|
])) : L("v-if", !0)
|
|
@@ -595,35 +595,35 @@ const h = z({
|
|
|
595
595
|
_: 1
|
|
596
596
|
/* STABLE */
|
|
597
597
|
})),
|
|
598
|
-
|
|
598
|
+
D(H(
|
|
599
599
|
"div",
|
|
600
600
|
ze,
|
|
601
601
|
[
|
|
602
|
-
Z(
|
|
602
|
+
Z(Me, {
|
|
603
603
|
exclude: a.value,
|
|
604
604
|
transitionConfig: m.value,
|
|
605
|
-
needTransition:
|
|
605
|
+
needTransition: _.needTransition
|
|
606
606
|
}, null, 8, ["exclude", "transitionConfig", "needTransition"])
|
|
607
607
|
],
|
|
608
608
|
512
|
|
609
609
|
/* NEED_PATCH */
|
|
610
610
|
), [
|
|
611
|
-
[
|
|
611
|
+
[M, b(n).meta.isIframe]
|
|
612
612
|
])
|
|
613
613
|
], !0)
|
|
614
614
|
])), [
|
|
615
|
-
[
|
|
615
|
+
[M, P.value]
|
|
616
616
|
]),
|
|
617
|
-
|
|
617
|
+
D(H(
|
|
618
618
|
"div",
|
|
619
619
|
Qe,
|
|
620
620
|
[
|
|
621
|
-
N(
|
|
621
|
+
N(_.$slots, "default", {}, void 0, !0)
|
|
622
622
|
],
|
|
623
623
|
512
|
|
624
624
|
/* NEED_PATCH */
|
|
625
625
|
), [
|
|
626
|
-
[
|
|
626
|
+
[M, !P.value]
|
|
627
627
|
])
|
|
628
628
|
])
|
|
629
629
|
])
|
|
@@ -657,7 +657,7 @@ const h = z({
|
|
|
657
657
|
currentProject: t.activeProject
|
|
658
658
|
},
|
|
659
659
|
...t.projectConfig
|
|
660
|
-
})),
|
|
660
|
+
})), T = c(() => t.userInfo), S = c(() => t.searchConfig), s = async (u) => {
|
|
661
661
|
const p = u.detail[0], w = r.value.find((E) => p.value === E.value);
|
|
662
662
|
await v.nav.triggerEventListener("onItemClick", w) && v.nav.setActiveItem(w.value);
|
|
663
663
|
}, a = async (u) => {
|
|
@@ -675,20 +675,20 @@ const h = z({
|
|
|
675
675
|
v.nav.triggerEventListener("searchToPage", { item: u.detail[0], keyword: u.detail[1], cb: u.detail[2] });
|
|
676
676
|
}, B = (u) => {
|
|
677
677
|
v.nav.triggerEventListener("clearSearchList", { cb: u.detail[0] });
|
|
678
|
-
},
|
|
678
|
+
}, _ = (u) => {
|
|
679
679
|
v.nav.triggerEventListener("deleteSearchItem", { value: u.detail[0], cb: u.detail[1] });
|
|
680
|
-
},
|
|
680
|
+
}, j = () => {
|
|
681
681
|
v.nav.triggerEventListener("changeEnterpriseHandle");
|
|
682
682
|
}, A = () => {
|
|
683
683
|
v.nav.triggerEventListener("fullScreenHandle");
|
|
684
|
-
},
|
|
684
|
+
}, x = () => {
|
|
685
685
|
v.nav.triggerEventListener("openAI");
|
|
686
686
|
};
|
|
687
687
|
return be(() => {
|
|
688
688
|
v.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
|
|
689
689
|
}), Le(() => {
|
|
690
690
|
v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
|
|
691
|
-
}),
|
|
691
|
+
}), _e(() => {
|
|
692
692
|
v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
|
|
693
693
|
}), (u, p) => (g(), C("das-ce-nav", {
|
|
694
694
|
theme: n.value,
|
|
@@ -698,7 +698,7 @@ const h = z({
|
|
|
698
698
|
innerPagesConfig: i.value,
|
|
699
699
|
searchConfig: S.value,
|
|
700
700
|
projectTreeConfig: P.value,
|
|
701
|
-
userInfoConfig:
|
|
701
|
+
userInfoConfig: T.value,
|
|
702
702
|
"on:userCommandHandle": I,
|
|
703
703
|
"on:changeInnerPage": s,
|
|
704
704
|
"on:handleTabClick": a,
|
|
@@ -706,10 +706,10 @@ const h = z({
|
|
|
706
706
|
"on:changeTreeHandle": m,
|
|
707
707
|
"on:searchToPage": q,
|
|
708
708
|
"on:clearSearchList": B,
|
|
709
|
-
"on:deleteSearchItem":
|
|
710
|
-
"on:changeEnterpriseHandle":
|
|
709
|
+
"on:deleteSearchItem": _,
|
|
710
|
+
"on:changeEnterpriseHandle": j,
|
|
711
711
|
"on:fullScreen": A,
|
|
712
|
-
"on:openAI":
|
|
712
|
+
"on:openAI": x
|
|
713
713
|
}, null, 40, Ge));
|
|
714
714
|
}
|
|
715
715
|
}), Je = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], rt = /* @__PURE__ */ Q({
|
|
@@ -718,7 +718,7 @@ const h = z({
|
|
|
718
718
|
menuAttr: {}
|
|
719
719
|
},
|
|
720
720
|
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)), y = c(() => t.activeItem || ""), i = c(() => t.collapse || !1), P = c(() => ({ popupClassName: t.popupClassName ?? "" })),
|
|
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
722
|
const a = s.detail[0], o = Ee(r.value).find((I) => a === I.id);
|
|
723
723
|
await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
|
|
724
724
|
}, S = (s) => {
|
|
@@ -733,7 +733,7 @@ const h = z({
|
|
|
733
733
|
fixedTopMenu: f.value,
|
|
734
734
|
subMenuAttrs: P.value
|
|
735
735
|
}, d.value, {
|
|
736
|
-
onChange:
|
|
736
|
+
onChange: T,
|
|
737
737
|
"on:toggleCollapse": S
|
|
738
738
|
}), null, 16, Je)) : L("v-if", !0);
|
|
739
739
|
}
|
|
@@ -755,7 +755,7 @@ const h = z({
|
|
|
755
755
|
await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
|
|
756
756
|
}, P = async (s) => {
|
|
757
757
|
await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
|
|
758
|
-
},
|
|
758
|
+
}, T = async (s) => {
|
|
759
759
|
await v.tab.triggerEventListener("onPageRefresh", s.detail[0]);
|
|
760
760
|
}, S = () => {
|
|
761
761
|
v.tab.triggerEventListener("onToggleFullScreen");
|
|
@@ -769,7 +769,7 @@ const h = z({
|
|
|
769
769
|
"on:tabClick": y,
|
|
770
770
|
"on:tabDelete": i,
|
|
771
771
|
"on:menuClick": P,
|
|
772
|
-
"on:pageRefresh":
|
|
772
|
+
"on:pageRefresh": T,
|
|
773
773
|
"on:toggleFullScreen": S
|
|
774
774
|
}), null, 16, Xe)) : L("v-if", !0);
|
|
775
775
|
}
|
|
Binary file
|
|
@@ -6,7 +6,7 @@ import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as b } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as E } from "@das-fed/utils/common-tools";
|
|
8
8
|
import { createService as L } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as P, p as q, a as u, c as d, b as B, l as K, g as M, d as N } from "./index-
|
|
9
|
+
import { u as P, p as q, a as u, c as d, b as B, l as K, g as M, d as N } from "./index-DjtNr4lK.js";
|
|
10
10
|
const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), ee = /* @__PURE__ */ v({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(G) {
|
|
Binary file
|