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