@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.
@@ -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 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";
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 h = z({
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
- h.visible = !0;
21
+ g.visible = !0;
22
22
  },
23
23
  hide: () => {
24
- h.visible = !1;
24
+ g.visible = !1;
25
25
  },
26
26
  setLogo: (e) => {
27
- h.logo = e;
27
+ g.logo = e;
28
28
  },
29
29
  setTheme: (e) => {
30
- h.theme = e;
30
+ g.theme = e;
31
31
  },
32
32
  setItems: (e) => {
33
- h.visible || (h.visible = !0), h.items = e;
33
+ g.visible || (g.visible = !0), g.items = e;
34
34
  },
35
- getItems: () => h.items,
35
+ getItems: () => g.items,
36
36
  removeItem: (e) => {
37
- const t = h.items.filter((n) => n.value !== e);
38
- h.items = t;
37
+ const t = g.items.filter((n) => n.value !== e);
38
+ g.items = t;
39
39
  },
40
40
  appendItem: (e) => {
41
- h.visible || (h.visible = !0), !h.items.find((n) => n.value == e.value) && h.items.push(e);
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
- h.activeItem = e;
44
+ g.activeItem = e;
45
45
  },
46
46
  setConfig: (e) => {
47
- h.config = e;
47
+ g.config = e;
48
48
  },
49
49
  setProjects: (e) => {
50
- h.projects = e;
50
+ g.projects = e;
51
51
  },
52
52
  setProjectConfig: (e) => {
53
- h.projectConfig = e;
53
+ g.projectConfig = e;
54
54
  },
55
55
  setActiveProject: (e) => {
56
- h.activeProject = e;
56
+ g.activeProject = e;
57
57
  },
58
58
  setUserInfo: (e) => {
59
- h.userInfo = e;
59
+ g.userInfo = e;
60
60
  },
61
61
  setSearchConfig: (e) => {
62
- h.searchConfig = e;
62
+ g.searchConfig = e;
63
63
  },
64
64
  triggerEventListener: (e, t, n) => {
65
65
  var f;
66
- const l = h.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
67
- for (const y in l) {
68
- const i = l[y];
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
- h.eventListeners[n] && delete h.eventListeners[n];
79
+ g.eventListeners[n] && delete g.eventListeners[n];
80
80
  };
81
- return h.eventListeners[n] = {
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 y in l) {
121
- const i = l[y];
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 y in l) {
175
- const i = l[y];
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 y in l) {
209
- const i = l[y];
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: h,
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
- })), y = (s) => {
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 && y(a.meta.key);
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((I) => I.meta.isShow);
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((I) => I.path === d.path);
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) => (g(), C(
335
+ }), (s, a) => (h(), I(
336
336
  Y,
337
337
  null,
338
338
  [
339
- s.needTransition ? (g(), V(
339
+ s.needTransition ? (h(), V(
340
340
  ge,
341
341
  ne(ae({ key: 0 }, n.value)),
342
342
  {
343
343
  default: W(() => [
344
- (g(!0), C(
344
+ (h(!0), I(
345
345
  Y,
346
346
  null,
347
- oe(f.value, ({ path: o, meta: m }) => D((g(), C("div", {
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
- (g(), V(O(m.componentInstance), {
352
+ (h(), V(O(m.componentInstance), {
353
353
  key: m.key
354
354
  }))
355
355
  ], 8, Pe)), [
356
- [M, m.componentInstance && o === b(d).path]
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
- )) : L("v-if", !0),
368
- s.needTransition ? L("v-if", !0) : (g(!0), C(
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((g(), C("div", {
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
- (g(), V(O(m.componentInstance), {
376
+ (h(), V(O(m.componentInstance), {
377
377
  key: m.key
378
378
  }))
379
379
  ], 8, Se)), [
380
- [M, m.componentInstance && o === b(d).path]
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" }, He = {
398
+ }, $e = { class: "das-web-app-main" }, Be = {
399
399
  key: 0,
400
400
  class: "aside"
401
- }, Be = { class: "das-web-app-main-container" }, Fe = {
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 = { class: "das-web-app-main-router-view" }, We = {
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), 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(() => ({
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
- ([_, j]) => {
437
- const { showLayout: A = !0, showAside: x = !0, showTabs: u = !0, layout: p = {} } = _, {
438
- showLayout: w = !0,
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 || 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;
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 I = /* @__PURE__ */ new Map();
454
- const q = (_, j) => {
457
+ let C = /* @__PURE__ */ new Map();
458
+ const q = (b, j) => {
455
459
  let A;
456
- return I.has(j) ? A = I.get(j) : (A = {
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
- }, I.set(j, A)), ee(A);
465
+ }, C.set(j, A)), ee(A);
462
466
  }, B = c(() => F.visible.value);
463
- return (_, j) => {
467
+ return (b, j) => {
464
468
  const A = pe("router-view");
465
- return g(), C("div", je, [
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((g(), C(
482
+ f.value ? D((h(), I(
479
483
  "div",
480
484
  xe,
481
485
  [
482
- N(_.$slots, "header", {}, void 0, !0)
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
- ]) : L("v-if", !0),
492
+ ]) : y("v-if", !0),
489
493
  H("div", $e, [
490
- y.value ? D((g(), C(
494
+ w.value ? D((h(), I(
491
495
  "div",
492
- He,
496
+ Be,
493
497
  [
494
- N(_.$slots, "aside", {}, void 0, !0)
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
- ]) : L("v-if", !0),
501
- H("div", Be, [
502
- i.value ? D((g(), C(
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(_.$slots, "tab", {}, void 0, !0)
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
- ]) : L("v-if", !0),
516
+ ]) : y("v-if", !0),
513
517
  H("div", Ne, [
514
518
  D(H(
515
519
  "div",
516
520
  Oe,
517
521
  [
518
- N(_.$slots, "banner", {}, void 0, !0)
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
- H("div", Ue, [
526
- D((g(), C("div", {
527
- key: _.pageKey,
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(_.$slots, "router-view", {}, () => [
531
- L(" 有动画 "),
532
- _.needTransition ? (g(), V(A, { key: 0 }, {
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
- b(n).meta.keepAlive ? (g(), V(ue, {
545
+ _(n).meta.keepAlive ? (h(), V(ue, {
542
546
  key: 0,
543
547
  exclude: a.value
544
548
  }, [
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
+ 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
- !b(n).meta.keepAlive && !b(n).meta.isIframe ? (g(), C("div", We, [
563
- (g(), V(O(x), {
564
- key: b(n).path
566
+ !_(n).meta.keepAlive && !_(n).meta.isIframe ? (h(), I("div", We, [
567
+ (h(), V(O(x), {
568
+ key: _(n).path
565
569
  }))
566
- ])) : L("v-if", !0)
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
- })) : L("v-if", !0),
578
- L(" 无动画 "),
579
- _.needTransition ? L("v-if", !0) : (g(), V(A, { key: 1 }, {
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
- b(n).meta.keepAlive ? (g(), V(ue, {
585
+ _(n).meta.keepAlive ? (h(), V(ue, {
582
586
  key: 0,
583
587
  exclude: a.value
584
588
  }, [
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
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
- ])) : L("v-if", !0)
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: _.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, b(n).meta.isIframe]
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(_.$slots, "default", {}, void 0, !0)
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-e2af5217"]]), Ge = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], at = /* @__PURE__ */ Q({
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)), y = c(() => {
639
- var u, p, w, $, E;
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: ((w = t.config) == null ? void 0 : w.showChangeEnterprise) ?? !1,
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], w = r.value.find((E) => p.value === E.value);
662
- await v.nav.triggerEventListener("onItemClick", w) && v.nav.setActiveItem(w.value);
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], w = f.value.find((E) => p === E.value);
665
- await v.nav.triggerEventListener("onItemClick", w) && v.nav.setActiveItem(w.value);
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], w = f.value.find((E) => p === E.value);
668
- await v.nav.triggerEventListener("onItemRemove", w) && v.nav.removeItem(w.value);
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, w] = u.detail;
671
- !p || !await v.nav.triggerEventListener("onProjectChange", w) || v.nav.setActiveProject(w);
672
- }, I = (u) => {
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
- }, _ = (u) => {
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) => (g(), C("das-ce-nav", {
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: y.value,
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": I,
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)), 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);
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 ? (g(), C("das-ce-menu", ae({
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: y.value,
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)) : L("v-if", !0);
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 || ""), y = async (s) => {
751
- const a = s.detail[0], o = r.value.find((I) => a === I.value);
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((I) => a === I.value);
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 ? (g(), C("das-ce-tabs", ae({
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": y,
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)) : L("v-if", !0);
778
+ }), null, 16, Xe)) : y("v-if", !0);
775
779
  }
776
780
  });
777
781
  U("@das-fed/web");
Binary file