@das-fed/web 6.4.0-test.3.1 → 6.4.0-test.5.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.
Files changed (38) hide show
  1. package/esm-map.json +2 -1
  2. package/index-BlN9vxIO.js +76 -0
  3. package/index-BlN9vxIO.js.gz +0 -0
  4. package/{packages/main-app-framework/index-D-KaGWK2.js → index-DFAevptD.js} +1 -1
  5. package/{index-D-p5feGf.js → index-DtaKXfS5.js} +2163 -1990
  6. package/index-DtaKXfS5.js.gz +0 -0
  7. package/index.js +20 -19
  8. package/package.json +6 -6
  9. package/packages/i18n/index.js +49 -36
  10. package/packages/i18n/index.js.gz +0 -0
  11. package/packages/layout/index.js +164 -168
  12. package/packages/layout/index.js.gz +0 -0
  13. package/packages/layout/style.css +1 -1
  14. package/packages/layout/style.css.gz +0 -0
  15. package/packages/main-app-framework/{index-C1k_cOnk.js → index-Bld_nBaQ.js} +1913 -1749
  16. package/packages/main-app-framework/index-Bld_nBaQ.js.gz +0 -0
  17. package/{index-BSt1lmGg.js → packages/main-app-framework/index-CumtCu7u.js} +1 -1
  18. package/packages/main-app-framework/index-Cyua9Pa1.js +76 -0
  19. package/packages/main-app-framework/index-Cyua9Pa1.js.gz +0 -0
  20. package/packages/main-app-framework/index.js +3 -2
  21. package/packages/main-app-framework/style.css +1 -1
  22. package/packages/main-app-framework/style.css.gz +0 -0
  23. package/packages/style/style.css +1 -1
  24. package/packages/style/style.css.gz +0 -0
  25. package/style.css +2 -2
  26. package/style.css.gz +0 -0
  27. package/types/i18n/index.d.ts +4 -3
  28. package/types/main-app-framework/constant/index.d.ts +1 -1
  29. package/types/main-app-framework/i18n/index.d.ts +528 -0
  30. package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
  31. package/i18n-collection/en.js +0 -93
  32. package/i18n-collection/zh-CN.js +0 -93
  33. package/index-BWjO8i-G.js +0 -75
  34. package/index-BWjO8i-G.js.gz +0 -0
  35. package/index-D-p5feGf.js.gz +0 -0
  36. package/packages/main-app-framework/index-C1k_cOnk.js.gz +0 -0
  37. package/packages/main-app-framework/index-Cd2KFU7P.js +0 -75
  38. package/packages/main-app-framework/index-Cd2KFU7P.js.gz +0 -0
@@ -1,9 +1,9 @@
1
1
  import '@das-fed/web/packages/layout/style.css';
2
- import { reactive as z, ref as O, defineComponent as Q, computed as u, watch as Z, openBlock as p, createElementBlock as I, Fragment as J, createBlock as V, TransitionGroup as he, normalizeProps as ee, mergeProps as ne, withCtx as W, renderList as re, withDirectives as D, resolveDynamicComponent as N, vShow as M, unref as w, createCommentVNode as b, nextTick as oe, resolveComponent as ge, createElementVNode as $, normalizeClass as pe, normalizeStyle as ye, renderSlot as F, createVNode as X, Transition as ie, guardReactiveProps as le, KeepAlive as ce, h as Y, onBeforeMount as we, onMounted as be, onUnmounted as _e } from "vue";
2
+ import { reactive as z, ref as O, defineComponent as Q, computed as u, watch as Z, openBlock as p, createElementBlock as k, Fragment as J, createBlock as V, TransitionGroup as he, normalizeProps as ee, mergeProps as ne, withCtx as U, renderList as re, withDirectives as D, resolveDynamicComponent as N, vShow as M, unref as w, createCommentVNode as b, nextTick as oe, resolveComponent as ge, createElementVNode as $, normalizeClass as pe, normalizeStyle as ye, renderSlot as F, createVNode as X, Transition as ie, guardReactiveProps as le, KeepAlive as ce, h as Y, onBeforeMount as we, onMounted as be, onUnmounted as _e } from "vue";
3
3
  import { useRouter as Le, useRoute as me } from "vue-router";
4
- import { setHtmlMinWH as ke } from "@das-fed/utils/common-tools/setHtmlMinWH";
5
- import { createCeNav as Ce, createCeTabs as Ie, createCeMenu as Te } from "@das-fed/web-components/das-web-app";
6
- import { flatTree as Ae } from "@das-fed/utils/common-tools/nest-tree-format";
4
+ import { setHtmlMinWH as Ce } from "@das-fed/utils/common-tools/setHtmlMinWH";
5
+ import { createCeNav as Ie, createCeTabs as ke, createCeMenu as Te } from "@das-fed/web-components/das-web-app";
6
+ import { flatTree as Ee } from "@das-fed/utils/common-tools/nest-tree-format";
7
7
  const h = z({
8
8
  visible: !1,
9
9
  theme: "default",
@@ -34,11 +34,11 @@ const h = z({
34
34
  },
35
35
  getItems: () => h.items,
36
36
  removeItem: (e) => {
37
- const t = h.items.filter((s) => s.value !== e);
37
+ const t = h.items.filter((n) => n.value !== e);
38
38
  h.items = t;
39
39
  },
40
40
  appendItem: (e) => {
41
- h.visible || (h.visible = !0), !h.items.find((s) => s.value == e.value) && h.items.push(e);
41
+ h.visible || (h.visible = !0), !h.items.find((n) => n.value == e.value) && h.items.push(e);
42
42
  },
43
43
  setActiveItem: (e) => {
44
44
  h.activeItem = e;
@@ -61,9 +61,9 @@ const h = z({
61
61
  setSearchConfig: (e) => {
62
62
  h.searchConfig = e;
63
63
  },
64
- triggerEventListener: (e, t, s) => {
64
+ triggerEventListener: (e, t, n) => {
65
65
  var f;
66
- const l = h.eventListeners, { autoRemove: d = !1 } = s || {}, r = [];
66
+ const l = h.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
67
67
  for (const y in l) {
68
68
  const i = l[y];
69
69
  i.type === e && r.push(
@@ -75,10 +75,10 @@ const h = z({
75
75
  return Promise.all(r).then(() => !0).catch(() => !1);
76
76
  },
77
77
  addEventListener: (e, t) => {
78
- const s = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
79
- h.eventListeners[s] && delete h.eventListeners[s];
78
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
79
+ h.eventListeners[n] && delete h.eventListeners[n];
80
80
  };
81
- return h.eventListeners[s] = {
81
+ return h.eventListeners[n] = {
82
82
  type: e,
83
83
  handler: async (d) => {
84
84
  try {
@@ -92,31 +92,31 @@ const h = z({
92
92
  remove: l
93
93
  };
94
94
  }
95
- }, R = z({
95
+ }, A = z({
96
96
  theme: "default",
97
97
  items: [],
98
98
  collapse: !1,
99
99
  eventListeners: {}
100
100
  }), ve = {
101
101
  setItems: (e) => {
102
- R.items = e;
102
+ A.items = e;
103
103
  },
104
- getItems: () => R.items,
104
+ getItems: () => A.items,
105
105
  setTheme: (e) => {
106
- R.theme = e;
106
+ A.theme = e;
107
107
  },
108
108
  setActiveItem: (e) => {
109
- R.activeItem = e;
109
+ A.activeItem = e;
110
110
  },
111
111
  setCollapse: (e) => {
112
- R.collapse = e;
112
+ A.collapse = e;
113
113
  },
114
114
  setPopupClassName: (e) => {
115
- R.popupClassName = e;
115
+ A.popupClassName = e;
116
116
  },
117
- triggerEventListener: (e, t, s) => {
117
+ triggerEventListener: (e, t, n) => {
118
118
  var f;
119
- const l = R.eventListeners, { autoRemove: d = !1 } = s || {}, r = [];
119
+ const l = A.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
120
120
  for (const y in l) {
121
121
  const i = l[y];
122
122
  i.type === e && r.push(
@@ -128,10 +128,10 @@ const h = z({
128
128
  return Promise.all(r).then(() => !0).catch(() => !1);
129
129
  },
130
130
  addEventListener: (e, t) => {
131
- const s = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
132
- R.eventListeners[s] && delete R.eventListeners[s];
131
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
132
+ A.eventListeners[n] && delete A.eventListeners[n];
133
133
  };
134
- return R.eventListeners[s] = {
134
+ return A.eventListeners[n] = {
135
135
  type: e,
136
136
  handler: async (d) => {
137
137
  try {
@@ -145,32 +145,32 @@ const h = z({
145
145
  remove: l
146
146
  };
147
147
  }
148
- }, C = z({
148
+ }, I = z({
149
149
  theme: "default",
150
150
  items: [],
151
151
  eventListeners: {}
152
152
  }), de = {
153
153
  setItems: (e) => {
154
- C.items = e;
154
+ I.items = e;
155
155
  },
156
- getItems: () => C.items,
156
+ getItems: () => I.items,
157
157
  setTheme: (e) => {
158
- C.theme = e;
158
+ I.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 = I.items.filter((n) => n.value !== e);
162
+ I.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 = I.items.findIndex((n) => n.value == e.value);
166
+ t !== -1 ? I.items.splice(t, 1, e) : I.items.push(e);
167
167
  },
168
168
  setActiveItem: (e) => {
169
- C.activeItem = e;
169
+ I.activeItem = e;
170
170
  },
171
- triggerEventListener: (e, t, s) => {
171
+ triggerEventListener: (e, t, n) => {
172
172
  var f;
173
- const l = C.eventListeners, { autoRemove: d = !1 } = s || {}, r = [];
173
+ const l = I.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(
@@ -182,10 +182,10 @@ const h = z({
182
182
  return Promise.all(r).then(() => !0).catch(() => !1);
183
183
  },
184
184
  addEventListener: (e, t) => {
185
- const s = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
186
- C.eventListeners[s] && delete C.eventListeners[s];
185
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
186
+ I.eventListeners[n] && delete I.eventListeners[n];
187
187
  };
188
- return C.eventListeners[s] = {
188
+ return I.eventListeners[n] = {
189
189
  type: e,
190
190
  handler: async (d) => {
191
191
  try {
@@ -199,12 +199,12 @@ const h = z({
199
199
  remove: l
200
200
  };
201
201
  }
202
- }, U = z({
202
+ }, W = z({
203
203
  eventListeners: {}
204
- }), Ee = {
205
- triggerEventListener: (e, t, s) => {
204
+ }), Re = {
205
+ triggerEventListener: (e, t, n) => {
206
206
  var f;
207
- const l = U.eventListeners, { autoRemove: d = !1 } = s || {}, r = [];
207
+ const l = W.eventListeners, { autoRemove: d = !1 } = n || {}, r = [];
208
208
  for (const y in l) {
209
209
  const i = l[y];
210
210
  i.type === e && r.push(
@@ -216,10 +216,10 @@ const h = z({
216
216
  return Promise.all(r).then(() => !0).catch(() => !1);
217
217
  },
218
218
  addEventListener: (e, t) => {
219
- const s = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
220
- U.eventListeners[s] && delete U.eventListeners[s];
219
+ const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
220
+ W.eventListeners[n] && delete W.eventListeners[n];
221
221
  };
222
- return U.eventListeners[s] = {
222
+ return W.eventListeners[n] = {
223
223
  type: e,
224
224
  handler: async (d) => {
225
225
  try {
@@ -236,23 +236,23 @@ const h = z({
236
236
  }, te = z({
237
237
  visible: !1,
238
238
  style: {}
239
- }), Re = {
239
+ }), Ae = {
240
240
  set: (e, t) => {
241
241
  te.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (te.style = t);
242
242
  }
243
243
  }, H = {
244
244
  nav: h,
245
- menu: R,
246
- tab: C,
245
+ menu: A,
246
+ tab: I,
247
247
  overlay: te,
248
- iframeView: U,
248
+ iframeView: W,
249
249
  visible: O(!0)
250
250
  }, v = {
251
251
  nav: ue,
252
252
  menu: ve,
253
253
  tab: de,
254
- overlay: Re,
255
- iframeView: Ee,
254
+ overlay: Ae,
255
+ iframeView: Re,
256
256
  setVisible: (e) => H.visible.value = e,
257
257
  setTheme: (e) => {
258
258
  ue.setTheme(e), ve.setTheme(e), de.setTheme(e);
@@ -265,40 +265,40 @@ const h = z({
265
265
  exclude: { default: () => [] }
266
266
  },
267
267
  setup(e) {
268
- const t = e, s = u(() => {
269
- const { mode: n = "", ...a } = {
268
+ const t = e, n = u(() => {
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 = Le(), d = me(), r = O([]), f = u(() => r.value.filter((n) => {
275
+ }), l = Le(), d = me(), r = O([]), f = u(() => r.value.filter((s) => {
276
276
  var a;
277
- return (a = n.meta) == null ? void 0 : a.isOpen;
278
- })), y = (n) => {
279
- const a = n.lastIndexOf("-");
280
- let o = a !== -1 ? n.substring(a + 1) : "";
277
+ return (a = s.meta) == null ? void 0 : a.isOpen;
278
+ })), y = (s) => {
279
+ const a = s.lastIndexOf("-");
280
+ let o = a !== -1 ? s.substring(a + 1) : "";
281
281
  o === "0" ? o = "1" : o = "0", f.value.forEach((m) => {
282
- m.meta.key === n && (m.meta.key = `${m.path}-${o}`);
282
+ m.meta.key === s && (m.meta.key = `${m.path}-${o}`);
283
283
  });
284
284
  };
285
285
  Z(
286
286
  () => t.exclude,
287
- (n) => {
288
- if (!n || !n.length) return;
289
- const a = f.value.find((o) => n.includes(o.path));
287
+ (s) => {
288
+ if (!s || !s.length) return;
289
+ const a = f.value.find((o) => s.includes(o.path));
290
290
  a && y(a.meta.key);
291
291
  },
292
292
  { deep: !0 }
293
293
  );
294
- const i = async (n) => {
295
- const a = n.component;
294
+ const i = async (s) => {
295
+ const a = s.component;
296
296
  let o = null;
297
297
  return typeof a == "function" ? o = (await a()).default : o = a, o;
298
298
  }, P = async () => {
299
299
  var a;
300
- const n = l.options.routes;
301
- for (const o of n)
300
+ const s = l.options.routes;
301
+ for (const o of s)
302
302
  if ((a = o == null ? void 0 : o.meta) != null && a.isIframe && !r.value.find((m) => m.path === o.path)) {
303
303
  const m = await i(o);
304
304
  r.value.push({
@@ -310,8 +310,8 @@ const h = z({
310
310
  }, T = async () => {
311
311
  var o, m;
312
312
  if (!r.value || !r.value.length) return;
313
- const n = r.value.find((L) => L.meta.isShow);
314
- n && (n.meta.isShow = !1, await oe(), v.iframeView.triggerEventListener("onDeactivated", { route: n }));
313
+ const s = r.value.find((L) => L.meta.isShow);
314
+ s && (s.meta.isShow = !1, await oe(), v.iframeView.triggerEventListener("onDeactivated", { route: s }));
315
315
  const a = r.value.find((L) => L.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 oe(), v.iframeView.triggerEventListener("onActivated", { route: a }));
317
317
  };
@@ -319,36 +319,32 @@ const h = z({
319
319
  return Z(
320
320
  () => l.currentRoute.value,
321
321
  () => {
322
- const n = l.options.routes.length;
323
- n !== S ? (P(), S = n) : T();
322
+ const s = l.options.routes.length;
323
+ s !== S ? (P(), S = s) : T();
324
324
  },
325
325
  { immediate: !0 }
326
326
  ), v.iframeView.addEventListener("onRefreshCurrentPage", () => {
327
- f.value.forEach((n) => {
327
+ f.value.forEach((s) => {
328
328
  var a;
329
- (a = n.meta) != null && a.isShow && (n.meta.key.includes("0") ? n.meta.key = n.meta.key.replaceAll("0", "1") : n.meta.key = n.meta.key.replaceAll("1", "0"));
330
- });
331
- }), v.iframeView.addEventListener("onRefreshPage", (n) => {
332
- f.value.forEach((a) => {
333
- a.path === n && (a.meta.key.includes("0") ? a.meta.key = a.meta.key.replaceAll("0", "1") : a.meta.key = a.meta.key.replaceAll("1", "0"));
329
+ (a = s.meta) != null && a.isShow && (s.meta.key.includes("0") ? s.meta.key = s.meta.key.replaceAll("0", "1") : s.meta.key = s.meta.key.replaceAll("1", "0"));
334
330
  });
335
- }), v.iframeView.addEventListener("onRefreshAllPage", () => {
336
- f.value.forEach((n) => {
337
- n.meta.key.includes("0") ? n.meta.key = n.meta.key.replaceAll("0", "1") : n.meta.key = n.meta.key.replaceAll("1", "0");
331
+ }), v.iframeView.addEventListener("onUnloadPage", (s) => {
332
+ r.value.forEach((a) => {
333
+ a.path === s && (a.meta.isOpen = !1);
338
334
  });
339
- }), (n, a) => (p(), I(
335
+ }), (s, a) => (p(), k(
340
336
  J,
341
337
  null,
342
338
  [
343
- n.needTransition ? (p(), V(
339
+ s.needTransition ? (p(), V(
344
340
  he,
345
- ee(ne({ key: 0 }, s.value)),
341
+ ee(ne({ key: 0 }, n.value)),
346
342
  {
347
- default: W(() => [
348
- (p(!0), I(
343
+ default: U(() => [
344
+ (p(!0), k(
349
345
  J,
350
346
  null,
351
- re(f.value, ({ path: o, meta: m }) => D((p(), I("div", {
347
+ re(f.value, ({ path: o, meta: m }) => D((p(), k("div", {
352
348
  class: "das-iframe-router-view",
353
349
  key: m.key,
354
350
  name: o
@@ -369,10 +365,10 @@ const h = z({
369
365
  16
370
366
  /* FULL_PROPS */
371
367
  )) : b("v-if", !0),
372
- n.needTransition ? b("v-if", !0) : (p(!0), I(
368
+ s.needTransition ? b("v-if", !0) : (p(!0), k(
373
369
  J,
374
370
  { key: 1 },
375
- re(f.value, ({ path: o, meta: m }) => D((p(), I("div", {
371
+ re(f.value, ({ path: o, meta: m }) => D((p(), k("div", {
376
372
  class: "das-iframe-router-view",
377
373
  key: m.key,
378
374
  name: o
@@ -392,11 +388,11 @@ const h = z({
392
388
  ));
393
389
  }
394
390
  }), fe = (e, t) => {
395
- const s = e.__vccOpts || e;
391
+ const n = e.__vccOpts || e;
396
392
  for (const [l, d] of t)
397
- s[l] = d;
398
- return s;
399
- }, De = /* @__PURE__ */ fe(Se, [["__scopeId", "data-v-b03d395b"]]), Me = { class: "das-web-app-container" }, je = {
393
+ n[l] = d;
394
+ return n;
395
+ }, De = /* @__PURE__ */ fe(Se, [["__scopeId", "data-v-6dd310c9"]]), Me = { class: "das-web-app-container" }, je = {
400
396
  key: 0,
401
397
  class: "das-web-app-header"
402
398
  }, xe = { class: "das-web-app-main" }, $e = {
@@ -405,7 +401,7 @@ const h = z({
405
401
  }, Be = { class: "das-web-app-main-container" }, He = {
406
402
  key: 0,
407
403
  class: "tab"
408
- }, Fe = { class: "das-web-app-main-content" }, Ne = { class: "banner" }, Oe = { class: "das-web-app-main-router-view" }, We = { style: { width: "100%", height: "100%" } }, Ue = {
404
+ }, Fe = { class: "das-web-app-main-content" }, Ne = { class: "banner" }, Oe = { class: "das-web-app-main-router-view" }, Ue = { style: { width: "100%", height: "100%" } }, We = {
409
405
  key: 0,
410
406
  style: { width: "100%", height: "100%" }
411
407
  }, ze = {
@@ -428,24 +424,24 @@ const h = z({
428
424
  },
429
425
  setup(e) {
430
426
  const t = e;
431
- Ce(), Ie(), Te();
432
- const s = me(), l = O(!1), d = O(!1), r = O(!1), f = u(() => l.value && t.showLayout), y = u(() => d.value && t.showLayout && t.showAside), i = u(() => l.value && t.showLayout && t.showTabs), P = u(() => t.routerViewVisible ?? !0), T = u(() => H.overlay.visible ?? !1), S = u(() => ({
427
+ Ie(), ke(), Te();
428
+ const n = me(), l = O(!1), d = O(!1), r = O(!1), f = u(() => l.value && t.showLayout), y = u(() => d.value && t.showLayout && t.showAside), i = u(() => l.value && t.showLayout && t.showTabs), P = u(() => t.routerViewVisible ?? !0), T = u(() => H.overlay.visible ?? !1), S = u(() => ({
433
429
  "das-web-app-overlay-show": T.value === !0,
434
430
  "das-web-app-overlay-hide": T.value === !1,
435
431
  "das-web-app-overlay-destroy": T.value === "destroy"
436
- })), n = u(() => H.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = u(() => t.excludeRoutes), o = u(() => t.routeKeepAliveVisible);
432
+ })), s = u(() => H.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = u(() => t.excludeRoutes), o = u(() => t.routeKeepAliveVisible);
437
433
  Z(
438
- () => [s.meta, s.query],
439
- ([k, j]) => {
440
- const { showLayout: E = !0, showAside: c = !0, showTabs: g = !0, layout: _ = {} } = k, {
434
+ () => [n.meta, n.query],
435
+ ([C, j]) => {
436
+ const { showLayout: R = !0, showAside: c = !0, showTabs: g = !0, layout: _ = {} } = C, {
441
437
  showLayout: x = !0,
442
- showAside: A = !0,
438
+ showAside: E = !0,
443
439
  showTabs: se = !0,
444
440
  app: Ye
445
441
  } = j;
446
- ke(_);
442
+ Ce(_);
447
443
  let ae = !0, q = !0, G = !0;
448
- (E === !1 || x === !1 || x === "false") && (ae = !1, q = !1, G = !1), (c === !1 || A === !1 || A === "false") && (q = !1), (g === !1 || se === !1 || se === "false") && (G = !1), l.value = ae, d.value = q, r.value = G;
444
+ (R === !1 || x === !1 || x === "false") && (ae = !1, q = !1, G = !1), (c === !1 || E === !1 || E === "false") && (q = !1), (g === !1 || se === !1 || se === "false") && (G = !1), l.value = ae, d.value = q, r.value = G;
449
445
  }
450
446
  );
451
447
  const m = u(() => ({
@@ -454,23 +450,23 @@ const h = z({
454
450
  ...t.transitionConfig || {}
455
451
  }));
456
452
  let L = /* @__PURE__ */ new Map();
457
- const K = (k, j) => {
458
- let E;
459
- return L.has(j) ? E = L.get(j) : (E = {
453
+ const K = (C, j) => {
454
+ let R;
455
+ return L.has(j) ? R = L.get(j) : (R = {
460
456
  name: j,
461
457
  render() {
462
- return Y("div", { style: { width: "100%", height: "100%" } }, [Y(k)]);
458
+ return Y("div", { style: { width: "100%", height: "100%" } }, [Y(C)]);
463
459
  }
464
- }, L.set(j, E)), Y(E);
460
+ }, L.set(j, R)), Y(R);
465
461
  }, B = u(() => H.visible.value);
466
- return (k, j) => {
467
- const E = ge("router-view");
468
- return p(), I("div", Me, [
462
+ return (C, j) => {
463
+ const R = ge("router-view");
464
+ return p(), k("div", Me, [
469
465
  D($(
470
466
  "div",
471
467
  {
472
468
  class: pe(["das-web-app-overlay", S.value]),
473
- style: ye(n.value)
469
+ style: ye(s.value)
474
470
  },
475
471
  null,
476
472
  6
@@ -478,11 +474,11 @@ const h = z({
478
474
  ), [
479
475
  [M, B.value]
480
476
  ]),
481
- f.value ? D((p(), I(
477
+ f.value ? D((p(), k(
482
478
  "div",
483
479
  je,
484
480
  [
485
- F(k.$slots, "header", {}, void 0, !0)
481
+ F(C.$slots, "header", {}, void 0, !0)
486
482
  ],
487
483
  512
488
484
  /* NEED_PATCH */
@@ -490,11 +486,11 @@ const h = z({
490
486
  [M, B.value]
491
487
  ]) : b("v-if", !0),
492
488
  $("div", xe, [
493
- y.value ? D((p(), I(
489
+ y.value ? D((p(), k(
494
490
  "div",
495
491
  $e,
496
492
  [
497
- F(k.$slots, "aside", {}, void 0, !0)
493
+ F(C.$slots, "aside", {}, void 0, !0)
498
494
  ],
499
495
  512
500
496
  /* NEED_PATCH */
@@ -502,11 +498,11 @@ const h = z({
502
498
  [M, B.value]
503
499
  ]) : b("v-if", !0),
504
500
  $("div", Be, [
505
- i.value ? D((p(), I(
501
+ i.value ? D((p(), k(
506
502
  "div",
507
503
  He,
508
504
  [
509
- F(k.$slots, "tab", {}, void 0, !0)
505
+ F(C.$slots, "tab", {}, void 0, !0)
510
506
  ],
511
507
  512
512
508
  /* NEED_PATCH */
@@ -518,7 +514,7 @@ const h = z({
518
514
  "div",
519
515
  Ne,
520
516
  [
521
- F(k.$slots, "banner", {}, void 0, !0)
517
+ F(C.$slots, "banner", {}, void 0, !0)
522
518
  ],
523
519
  512
524
520
  /* NEED_PATCH */
@@ -528,25 +524,25 @@ const h = z({
528
524
  $("div", Oe, [
529
525
  D($(
530
526
  "div",
531
- We,
527
+ Ue,
532
528
  [
533
- F(k.$slots, "router-view", {}, () => [
529
+ F(C.$slots, "router-view", {}, () => [
534
530
  b(" 有动画 "),
535
- k.needTransition ? (p(), V(E, { key: 0 }, {
536
- default: W(({ Component: c }) => [
531
+ C.needTransition ? (p(), V(R, { key: 0 }, {
532
+ default: U(({ Component: c }) => [
537
533
  X(
538
534
  ie,
539
535
  ee(le(m.value)),
540
536
  {
541
- default: W(() => {
537
+ default: U(() => {
542
538
  var g;
543
539
  return [
544
- w(s).meta.keepAlive ? (p(), V(ce, {
540
+ w(n).meta.keepAlive ? (p(), V(ce, {
545
541
  key: 0,
546
542
  exclude: a.value
547
543
  }, [
548
- o.value && !((g = w(s).meta) != null && g.isIframe) ? (p(), V(N(K(c, w(s).path)), {
549
- key: w(s).path
544
+ o.value && !((g = w(n).meta) != null && g.isIframe) ? (p(), V(N(K(c, w(n).path)), {
545
+ key: w(n).path
550
546
  })) : b("v-if", !0)
551
547
  ], 1032, ["exclude"])) : b("v-if", !0)
552
548
  ];
@@ -561,10 +557,10 @@ const h = z({
561
557
  ie,
562
558
  ee(le(m.value)),
563
559
  {
564
- default: W(() => [
565
- !w(s).meta.keepAlive && !w(s).meta.isIframe ? (p(), I("div", Ue, [
560
+ default: U(() => [
561
+ !w(n).meta.keepAlive && !w(n).meta.isIframe ? (p(), k("div", We, [
566
562
  (p(), V(N(c), {
567
- key: w(s).path
563
+ key: w(n).path
568
564
  }))
569
565
  ])) : b("v-if", !0)
570
566
  ]),
@@ -579,19 +575,19 @@ const h = z({
579
575
  /* STABLE */
580
576
  })) : b("v-if", !0),
581
577
  b(" 无动画 "),
582
- k.needTransition ? b("v-if", !0) : (p(), V(E, { key: 1 }, {
583
- default: W(({ Component: c }) => [
584
- w(s).meta.keepAlive ? (p(), V(ce, {
578
+ C.needTransition ? b("v-if", !0) : (p(), V(R, { key: 1 }, {
579
+ default: U(({ Component: c }) => [
580
+ w(n).meta.keepAlive ? (p(), V(ce, {
585
581
  key: 0,
586
582
  exclude: a.value
587
583
  }, [
588
- o.value && !w(s).meta.isIframe ? (p(), V(N(K(c, w(s).path)), {
589
- key: w(s).path
584
+ o.value && !w(n).meta.isIframe ? (p(), V(N(K(c, w(n).path)), {
585
+ key: w(n).path
590
586
  })) : b("v-if", !0)
591
587
  ], 1032, ["exclude"])) : b("v-if", !0),
592
- !w(s).meta.keepAlive && !w(s).meta.isIframe ? (p(), I("div", ze, [
588
+ !w(n).meta.keepAlive && !w(n).meta.isIframe ? (p(), k("div", ze, [
593
589
  (p(), V(N(c), {
594
- key: w(s).path
590
+ key: w(n).path
595
591
  }))
596
592
  ])) : b("v-if", !0)
597
593
  ]),
@@ -605,13 +601,13 @@ const h = z({
605
601
  X(De, {
606
602
  exclude: a.value,
607
603
  transitionConfig: m.value,
608
- needTransition: k.needTransition
604
+ needTransition: C.needTransition
609
605
  }, null, 8, ["exclude", "transitionConfig", "needTransition"])
610
606
  ],
611
607
  512
612
608
  /* NEED_PATCH */
613
609
  ), [
614
- [M, w(s).meta.isIframe]
610
+ [M, w(n).meta.isIframe]
615
611
  ])
616
612
  ], !0)
617
613
  ],
@@ -624,7 +620,7 @@ const h = z({
624
620
  "div",
625
621
  Ke,
626
622
  [
627
- F(k.$slots, "default", {}, void 0, !0)
623
+ F(C.$slots, "default", {}, void 0, !0)
628
624
  ],
629
625
  512
630
626
  /* NEED_PATCH */
@@ -641,14 +637,14 @@ const h = z({
641
637
  }), at = /* @__PURE__ */ fe(qe, [["__scopeId", "data-v-b6d7b17e"]]), Ge = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], rt = /* @__PURE__ */ Q({
642
638
  __name: "das-web-nav",
643
639
  setup(e) {
644
- const { nav: t } = H, s = u(() => t.theme), l = u(() => t.logo || ""), d = u(() => t.activeItem || ""), r = u(() => (t.items || []).filter((g) => g.fixed)), f = u(() => (t.items || []).filter((g) => !g.fixed)), y = u(() => {
640
+ const { nav: t } = H, n = u(() => t.theme), l = u(() => t.logo || ""), d = u(() => t.activeItem || ""), r = u(() => (t.items || []).filter((g) => g.fixed)), f = u(() => (t.items || []).filter((g) => !g.fixed)), y = u(() => {
645
641
  var c, g, _, x;
646
642
  return {
647
643
  showFullScreen: ((c = t.config) == null ? void 0 : c.showFullScreen) ?? !1,
648
644
  showChangeEnterprise: ((g = t.config) == null ? void 0 : g.showChangeEnterprise) ?? !1,
649
645
  showSearch: ((_ = t.config) == null ? void 0 : _.showSearch) ?? !0,
650
646
  showProjectTree: ((x = t.config) == null ? void 0 : x.showProjectTree) ?? !0,
651
- subAppList: f.value.map((A) => ({ code: A.value, name: A.label, ...A }))
647
+ subAppList: f.value.map((E) => ({ code: E.value, name: E.label, ...E }))
652
648
  };
653
649
  }), i = u(() => {
654
650
  const c = r.value.find((g) => g.value === t.activeItem);
@@ -662,14 +658,14 @@ const h = z({
662
658
  currentProject: t.activeProject
663
659
  },
664
660
  ...t.projectConfig
665
- })), T = u(() => t.userInfo), S = u(() => t.searchConfig), n = async (c) => {
666
- const g = c.detail[0], _ = r.value.find((A) => g.value === A.value);
661
+ })), T = u(() => t.userInfo), S = u(() => t.searchConfig), s = async (c) => {
662
+ const g = c.detail[0], _ = r.value.find((E) => g.value === E.value);
667
663
  await v.nav.triggerEventListener("onItemClick", _) && v.nav.setActiveItem(_.value);
668
664
  }, a = async (c) => {
669
- const g = c.detail[0], _ = f.value.find((A) => g === A.value);
665
+ const g = c.detail[0], _ = f.value.find((E) => g === E.value);
670
666
  await v.nav.triggerEventListener("onItemClick", _) && v.nav.setActiveItem(_.value);
671
667
  }, o = async (c) => {
672
- const g = c.detail[0], _ = f.value.find((A) => g === A.value);
668
+ const g = c.detail[0], _ = f.value.find((E) => g === E.value);
673
669
  await v.nav.triggerEventListener("onItemRemove", _) && v.nav.removeItem(_.value);
674
670
  }, m = async (c) => {
675
671
  const [g, _] = c.detail;
@@ -680,11 +676,11 @@ const h = z({
680
676
  v.nav.triggerEventListener("searchToPage", { item: c.detail[0], keyword: c.detail[1], cb: c.detail[2] });
681
677
  }, B = (c) => {
682
678
  v.nav.triggerEventListener("clearSearchList", { cb: c.detail[0] });
683
- }, k = (c) => {
679
+ }, C = (c) => {
684
680
  v.nav.triggerEventListener("deleteSearchItem", { value: c.detail[0], cb: c.detail[1] });
685
681
  }, j = () => {
686
682
  v.nav.triggerEventListener("changeEnterpriseHandle");
687
- }, E = () => {
683
+ }, R = () => {
688
684
  v.nav.triggerEventListener("fullScreenHandle");
689
685
  };
690
686
  return we(() => {
@@ -693,8 +689,8 @@ const h = z({
693
689
  v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
694
690
  }), _e(() => {
695
691
  v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
696
- }), (c, g) => (p(), I("das-ce-nav", {
697
- theme: s.value,
692
+ }), (c, g) => (p(), k("das-ce-nav", {
693
+ theme: n.value,
698
694
  modelValue: d.value,
699
695
  logoUrl: l.value,
700
696
  config: y.value,
@@ -703,15 +699,15 @@ const h = z({
703
699
  projectTreeConfig: P.value,
704
700
  userInfoConfig: T.value,
705
701
  "on:userCommandHandle": L,
706
- "on:changeInnerPage": n,
702
+ "on:changeInnerPage": s,
707
703
  "on:handleTabClick": a,
708
704
  "on:handleTabDelete": o,
709
705
  "on:changeTreeHandle": m,
710
706
  "on:searchToPage": K,
711
707
  "on:clearSearchList": B,
712
- "on:deleteSearchItem": k,
708
+ "on:deleteSearchItem": C,
713
709
  "on:changeEnterpriseHandle": j,
714
- "on:fullScreen": E
710
+ "on:fullScreen": R
715
711
  }, null, 40, Ge));
716
712
  }
717
713
  }), Je = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], ot = /* @__PURE__ */ Q({
@@ -720,13 +716,13 @@ const h = z({
720
716
  menuAttr: {}
721
717
  },
722
718
  setup(e) {
723
- const { menu: t } = H, s = e, l = u(() => t.theme), d = u(() => s.menuAttr || {}), r = u(() => t.items), f = u(() => t.items.find((n) => n.fixed)), y = u(() => t.activeItem || ""), i = u(() => t.collapse || !1), P = u(() => ({ popupClassName: t.popupClassName ?? "" })), T = async (n) => {
724
- const a = n.detail[0], o = Ae(r.value).find((L) => a === L.id);
719
+ const { menu: t } = H, n = e, l = u(() => t.theme), d = u(() => n.menuAttr || {}), r = u(() => t.items), f = u(() => t.items.find((s) => s.fixed)), y = u(() => t.activeItem || ""), i = u(() => t.collapse || !1), P = u(() => ({ popupClassName: t.popupClassName ?? "" })), T = async (s) => {
720
+ const a = s.detail[0], o = Ee(r.value).find((L) => a === L.id);
725
721
  await v.menu.triggerEventListener("onItemClick", o) && v.menu.setActiveItem(o.id);
726
- }, S = (n) => {
727
- v.menu.setCollapse(n.detail[0]), v.menu.triggerEventListener("toggleCollapse", n.detail[0]);
722
+ }, S = (s) => {
723
+ v.menu.setCollapse(s.detail[0]), v.menu.triggerEventListener("toggleCollapse", s.detail[0]);
728
724
  };
729
- return (n, a) => r.value.length > 0 ? (p(), I("das-ce-menu", ne({
725
+ return (s, a) => r.value.length > 0 ? (p(), k("das-ce-menu", ne({
730
726
  key: 0,
731
727
  theme: l.value,
732
728
  modelValue: y.value,
@@ -745,24 +741,24 @@ const h = z({
745
741
  tabsAttr: {}
746
742
  },
747
743
  setup(e) {
748
- const { tab: t } = H, s = e, l = u(() => s.tabsAttr || {}), d = u(() => t.theme), r = u(() => t.items.map((n) => ({
749
- ...n,
750
- key: n.value,
751
- tab: n.label
752
- }))), f = u(() => t.activeItem || ""), y = async (n) => {
753
- const a = n.detail[0], o = r.value.find((L) => a === L.value);
744
+ const { tab: t } = H, n = e, l = u(() => n.tabsAttr || {}), d = u(() => t.theme), r = u(() => t.items.map((s) => ({
745
+ ...s,
746
+ key: s.value,
747
+ tab: s.label
748
+ }))), f = u(() => t.activeItem || ""), y = async (s) => {
749
+ const a = s.detail[0], o = r.value.find((L) => a === L.value);
754
750
  await v.tab.triggerEventListener("onItemClick", o) && v.tab.setActiveItem(o.value);
755
- }, i = async (n) => {
756
- const a = n.detail[0], o = r.value.find((L) => a === L.value);
751
+ }, i = async (s) => {
752
+ const a = s.detail[0], o = r.value.find((L) => a === L.value);
757
753
  await v.tab.triggerEventListener("onItemRemove", o) && v.tab.removeItem(o.value);
758
- }, P = async (n) => {
759
- await v.tab.triggerEventListener("onMenuClick", { type: n.detail[0], data: n.detail[1] });
760
- }, T = async (n) => {
761
- await v.tab.triggerEventListener("onPageRefresh", n.detail[0]);
754
+ }, P = async (s) => {
755
+ await v.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
756
+ }, T = async (s) => {
757
+ await v.tab.triggerEventListener("onPageRefresh", s.detail[0]);
762
758
  }, S = () => {
763
759
  v.tab.triggerEventListener("onToggleFullScreen");
764
760
  };
765
- return (n, a) => r.value.length > 0 ? (p(), I("das-ce-tabs", ne({
761
+ return (s, a) => r.value.length > 0 ? (p(), k("das-ce-tabs", ne({
766
762
  key: 0,
767
763
  theme: d.value,
768
764
  modelValue: f.value,