@das-fed/web 6.4.0-dev.4 → 6.4.0-dev.6

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 (36) hide show
  1. package/{index-BSYJheVx.js → index-BBbzRiUk.js} +1 -1
  2. package/index-BBbzRiUk.js.gz +0 -0
  3. package/{index--5iw3PcC.js → index-C8iO4QVt.js} +2081 -2167
  4. package/index-C8iO4QVt.js.gz +0 -0
  5. package/{index-D8XgnluX.js → index-CeDdJysJ.js} +1 -1
  6. package/{index-C5zNxpQk.js → index-GDnK0PX4.js} +1 -1
  7. package/index-GDnK0PX4.js.gz +0 -0
  8. package/index.js +1 -1
  9. package/package.json +6 -6
  10. package/packages/create-das-web-app/config.js +1 -0
  11. package/packages/create-das-web-app/index.js +14 -11
  12. package/packages/create-das-web-app/index.js.gz +0 -0
  13. package/packages/i18n/config.js +1 -0
  14. package/packages/layout/config.js +1 -0
  15. package/packages/layout/index.js +153 -151
  16. package/packages/layout/index.js.gz +0 -0
  17. package/packages/main-app-framework/config.js +1 -0
  18. package/packages/main-app-framework/{index-MhsbUVtD.js → index-CB6yJ78W.js} +17 -17
  19. package/packages/main-app-framework/index-CB6yJ78W.js.gz +0 -0
  20. package/packages/main-app-framework/{index-D7pfTqeW.js → index-CIYEqxNR.js} +2393 -2459
  21. package/packages/main-app-framework/index-CIYEqxNR.js.gz +0 -0
  22. package/packages/main-app-framework/{index-BkJc1lDT.js → index-CxDxCkSy.js} +1 -1
  23. package/packages/main-app-framework/{index-C_X3k7z0.js → index-DHvYQRkj.js} +1 -1
  24. package/packages/main-app-framework/index-DHvYQRkj.js.gz +0 -0
  25. package/packages/main-app-framework/index.js +1 -1
  26. package/packages/micro-frontend/config.js +1 -0
  27. package/packages/micro-frontend/index.js +1 -1
  28. package/packages/micro-frontend/index.js.gz +0 -0
  29. package/packages/style/config.js +1 -0
  30. package/packages/theme/config.js +1 -0
  31. package/index--5iw3PcC.js.gz +0 -0
  32. package/index-BSYJheVx.js.gz +0 -0
  33. package/index-C5zNxpQk.js.gz +0 -0
  34. package/packages/main-app-framework/index-C_X3k7z0.js.gz +0 -0
  35. package/packages/main-app-framework/index-D7pfTqeW.js.gz +0 -0
  36. package/packages/main-app-framework/index-MhsbUVtD.js.gz +0 -0
@@ -22,63 +22,63 @@ const g = U({
22
22
  hide: () => {
23
23
  g.visible = !1;
24
24
  },
25
- setLogo: (e) => {
26
- g.logo = e;
25
+ setLogo: (t) => {
26
+ g.logo = t;
27
27
  },
28
- setItems: (e) => {
29
- g.visible || (g.visible = !0), g.items = e;
28
+ setItems: (t) => {
29
+ g.visible || (g.visible = !0), g.items = t;
30
30
  },
31
31
  getItems: () => g.items,
32
- removeItem: (e) => {
33
- const t = g.items.filter((n) => n.value !== e);
34
- g.items = t;
32
+ removeItem: (t) => {
33
+ const e = g.items.filter((n) => n.value !== t);
34
+ g.items = e;
35
35
  },
36
- appendItem: (e) => {
37
- g.visible || (g.visible = !0), !g.items.find((n) => n.value == e.value) && g.items.push(e);
36
+ appendItem: (t) => {
37
+ g.visible || (g.visible = !0), !g.items.find((n) => n.value == t.value) && g.items.push(t);
38
38
  },
39
- setActiveItem: (e) => {
40
- g.activeItem = e;
39
+ setActiveItem: (t) => {
40
+ g.activeItem = t;
41
41
  },
42
- setConfig: (e) => {
43
- g.config = e;
42
+ setConfig: (t) => {
43
+ g.config = t;
44
44
  },
45
- setProjects: (e) => {
46
- g.projects = e;
45
+ setProjects: (t) => {
46
+ g.projects = t;
47
47
  },
48
- setProjectConfig: (e) => {
49
- g.projectConfig = e;
48
+ setProjectConfig: (t) => {
49
+ g.projectConfig = t;
50
50
  },
51
- setActiveProject: (e) => {
52
- g.activeProject = e;
51
+ setActiveProject: (t) => {
52
+ g.activeProject = t;
53
53
  },
54
- setUserInfo: (e) => {
55
- g.userInfo = e;
54
+ setUserInfo: (t) => {
55
+ g.userInfo = t;
56
56
  },
57
- setSearchConfig: (e) => {
58
- g.searchConfig = e;
57
+ setSearchConfig: (t) => {
58
+ g.searchConfig = t;
59
59
  },
60
- triggerEventListener: (e, t, n) => {
60
+ triggerEventListener: (t, e, n) => {
61
61
  var p;
62
- const c = g.eventListeners, { autoRemove: i = !1 } = n || {}, u = [];
62
+ const c = g.eventListeners, { autoRemove: o = !1 } = n || {}, u = [];
63
63
  for (const y in c) {
64
64
  const r = c[y];
65
- r.type === e && u.push(
66
- (p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r, t).then(() => {
67
- i && r.remove();
65
+ r.type === t && u.push(
66
+ (p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r, e).then(() => {
67
+ o && r.remove();
68
68
  })
69
69
  );
70
70
  }
71
71
  return Promise.all(u).then(() => !0).catch(() => !1);
72
72
  },
73
- addEventListener: (e, t) => {
73
+ addEventListener: (t, e) => {
74
74
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), c = () => {
75
75
  g.eventListeners[n] && delete g.eventListeners[n];
76
76
  };
77
77
  return g.eventListeners[n] = {
78
- type: e,
79
- handler: async (i) => {
78
+ type: t,
79
+ handler: async (o) => {
80
80
  try {
81
- await t(i);
81
+ await e(o);
82
82
  } catch (u) {
83
83
  throw u;
84
84
  }
@@ -88,42 +88,42 @@ const g = U({
88
88
  remove: c
89
89
  };
90
90
  }
91
- }, M = U({
91
+ }, x = U({
92
92
  items: [],
93
93
  eventListeners: {}
94
94
  }), Ae = {
95
- setItems: (e) => {
96
- M.items = e;
95
+ setItems: (t) => {
96
+ x.items = t;
97
97
  },
98
- getItems: () => M.items,
99
- setActiveItem: (e) => {
100
- M.activeItem = e;
98
+ getItems: () => x.items,
99
+ setActiveItem: (t) => {
100
+ x.activeItem = t;
101
101
  },
102
- setPopupClassName: (e) => {
103
- M.popupClassName = e;
102
+ setPopupClassName: (t) => {
103
+ x.popupClassName = t;
104
104
  },
105
- triggerEventListener: (e, t, n) => {
105
+ triggerEventListener: (t, e, n) => {
106
106
  var p;
107
- const c = M.eventListeners, { autoRemove: i = !1 } = n || {}, u = [];
107
+ const c = x.eventListeners, { autoRemove: o = !1 } = n || {}, u = [];
108
108
  for (const y in c) {
109
109
  const r = c[y];
110
- r.type === e && u.push(
111
- (p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r, t).then(() => {
112
- i && r.remove();
110
+ r.type === t && u.push(
111
+ (p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r, e).then(() => {
112
+ o && r.remove();
113
113
  })
114
114
  );
115
115
  }
116
116
  return Promise.all(u).then(() => !0).catch(() => !1);
117
117
  },
118
- addEventListener: (e, t) => {
118
+ addEventListener: (t, e) => {
119
119
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), c = () => {
120
- M.eventListeners[n] && delete M.eventListeners[n];
120
+ x.eventListeners[n] && delete x.eventListeners[n];
121
121
  };
122
- return M.eventListeners[n] = {
123
- type: e,
124
- handler: async (i) => {
122
+ return x.eventListeners[n] = {
123
+ type: t,
124
+ handler: async (o) => {
125
125
  try {
126
- await t(i);
126
+ await e(o);
127
127
  } catch (u) {
128
128
  throw u;
129
129
  }
@@ -137,43 +137,43 @@ const g = U({
137
137
  items: [],
138
138
  eventListeners: {}
139
139
  }), Re = {
140
- setItems: (e) => {
141
- T.items = e;
140
+ setItems: (t) => {
141
+ T.items = t;
142
142
  },
143
143
  getItems: () => T.items,
144
- removeItem: (e) => {
145
- const t = T.items.filter((n) => n.value !== e);
146
- T.items = t;
144
+ removeItem: (t) => {
145
+ const e = T.items.filter((n) => n.value !== t);
146
+ console.log(e), T.items = e;
147
147
  },
148
- appendItem: (e) => {
149
- const t = T.items.findIndex((n) => n.value == e.value);
150
- t !== -1 ? T.items.splice(t, 1, e) : T.items.push(e);
148
+ appendItem: (t) => {
149
+ const e = T.items.findIndex((n) => n.value == t.value);
150
+ e !== -1 ? T.items.splice(e, 1, t) : T.items.push(t);
151
151
  },
152
- setActiveItem: (e) => {
153
- T.activeItem = e;
152
+ setActiveItem: (t) => {
153
+ T.activeItem = t;
154
154
  },
155
- triggerEventListener: (e, t, n) => {
155
+ triggerEventListener: (t, e, n) => {
156
156
  var p;
157
- const c = T.eventListeners, { autoRemove: i = !1 } = n || {}, u = [];
157
+ const c = T.eventListeners, { autoRemove: o = !1 } = n || {}, u = [];
158
158
  for (const y in c) {
159
159
  const r = c[y];
160
- r.type === e && u.push(
161
- (p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r, t).then(() => {
162
- i && r.remove();
160
+ r.type === t && u.push(
161
+ (p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r, e).then(() => {
162
+ o && r.remove();
163
163
  })
164
164
  );
165
165
  }
166
166
  return Promise.all(u).then(() => !0).catch(() => !1);
167
167
  },
168
- addEventListener: (e, t) => {
168
+ addEventListener: (t, e) => {
169
169
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), c = () => {
170
170
  T.eventListeners[n] && delete T.eventListeners[n];
171
171
  };
172
172
  return T.eventListeners[n] = {
173
- type: e,
174
- handler: async (i) => {
173
+ type: t,
174
+ handler: async (o) => {
175
175
  try {
176
- await t(i);
176
+ await e(o);
177
177
  } catch (u) {
178
178
  throw u;
179
179
  }
@@ -186,28 +186,28 @@ const g = U({
186
186
  }, W = U({
187
187
  eventListeners: {}
188
188
  }), Ee = {
189
- triggerEventListener: (e, t, n) => {
189
+ triggerEventListener: (t, e, n) => {
190
190
  var p;
191
- const c = W.eventListeners, { autoRemove: i = !1 } = n || {}, u = [];
191
+ const c = W.eventListeners, { autoRemove: o = !1 } = n || {}, u = [];
192
192
  for (const y in c) {
193
193
  const r = c[y];
194
- r.type === e && u.push(
195
- (p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r, t).then(() => {
196
- i && r.remove();
194
+ r.type === t && u.push(
195
+ (p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r, e).then(() => {
196
+ o && r.remove();
197
197
  })
198
198
  );
199
199
  }
200
200
  return Promise.all(u).then(() => !0).catch(() => !1);
201
201
  },
202
- addEventListener: (e, t) => {
202
+ addEventListener: (t, e) => {
203
203
  const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), c = () => {
204
204
  W.eventListeners[n] && delete W.eventListeners[n];
205
205
  };
206
206
  return W.eventListeners[n] = {
207
- type: e,
208
- handler: async (i) => {
207
+ type: t,
208
+ handler: async (o) => {
209
209
  try {
210
- await t(i);
210
+ await e(o);
211
211
  } catch (u) {
212
212
  throw u;
213
213
  }
@@ -221,12 +221,12 @@ const g = U({
221
221
  visible: !1,
222
222
  style: {}
223
223
  }), Pe = {
224
- set: (e, t) => {
225
- te.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (te.style = t);
224
+ set: (t, e) => {
225
+ te.visible = t, e || (e = {}), e.transition || (e.transition = "all 0.3s"), e && (te.style = e);
226
226
  }
227
227
  }, $ = {
228
228
  nav: g,
229
- menu: M,
229
+ menu: x,
230
230
  tab: T,
231
231
  overlay: te,
232
232
  iframeView: W,
@@ -237,7 +237,7 @@ const g = U({
237
237
  tab: Re,
238
238
  overlay: Pe,
239
239
  iframeView: Ee,
240
- setVisible: (e) => $.visible.value = e
240
+ setVisible: (t) => $.visible.value = t
241
241
  }, Ve = ["name"], Se = ["name"], De = /* @__PURE__ */ z({
242
242
  __name: "das-iframe-router-view",
243
243
  props: {
@@ -245,42 +245,42 @@ const g = U({
245
245
  transitionConfig: {},
246
246
  exclude: { default: () => [] }
247
247
  },
248
- setup(e) {
249
- const t = e, n = v(() => {
250
- const { mode: s = "", ...o } = {
248
+ setup(t) {
249
+ const e = t, n = v(() => {
250
+ const { mode: s = "", ...i } = {
251
251
  mode: "out-in",
252
252
  "enter-active-class": "animate__animated animate__fadeInLeft",
253
- ...t.transitionConfig || {}
253
+ ...e.transitionConfig || {}
254
254
  };
255
- return o;
256
- }), c = _e(), i = ve(), u = N([]), p = v(() => u.value.filter((s) => {
257
- var o;
258
- return (o = s.meta) == null ? void 0 : o.isOpen;
255
+ return i;
256
+ }), c = _e(), o = ve(), u = N([]), p = v(() => u.value.filter((s) => {
257
+ var i;
258
+ return (i = s.meta) == null ? void 0 : i.isOpen;
259
259
  })), y = (s) => {
260
- const o = s.lastIndexOf("-");
261
- let a = o !== -1 ? s.substring(o + 1) : "";
260
+ const i = s.lastIndexOf("-");
261
+ let a = i !== -1 ? s.substring(i + 1) : "";
262
262
  a === "0" ? a = "1" : a = "0", p.value.forEach((f) => {
263
263
  f.meta.key === s && (f.meta.key = `${f.path}-${a}`);
264
264
  });
265
265
  };
266
266
  Z(
267
- () => t.exclude,
267
+ () => e.exclude,
268
268
  (s) => {
269
269
  if (!s || !s.length) return;
270
- const o = p.value.find((a) => s.includes(a.path));
271
- o && y(o.meta.key);
270
+ const i = p.value.find((a) => s.includes(a.path));
271
+ i && y(i.meta.key);
272
272
  },
273
273
  { deep: !0 }
274
274
  );
275
275
  const r = async (s) => {
276
- const o = s.component;
276
+ const i = s.component;
277
277
  let a = null;
278
- return typeof o == "function" ? a = (await o()).default : a = o, a;
278
+ return typeof i == "function" ? a = (await i()).default : a = i, a;
279
279
  }, E = async () => {
280
- var o;
280
+ var i;
281
281
  const s = c.options.routes;
282
282
  for (const a of s)
283
- if ((o = a == null ? void 0 : a.meta) != null && o.isIframe) {
283
+ if ((i = a == null ? void 0 : a.meta) != null && i.isIframe) {
284
284
  const f = await r(a);
285
285
  u.value.push({
286
286
  ...a,
@@ -293,15 +293,15 @@ const g = U({
293
293
  if (!u.value || !u.value.length) return;
294
294
  const s = u.value.find((k) => k.meta.isShow);
295
295
  s && (s.meta.isShow = !1, await ie(), m.iframeView.triggerEventListener("onDeactivated", { route: s }));
296
- const o = u.value.find((k) => k.path === i.path);
297
- o && ((a = o.meta) != null && a.isOpen || (o.meta.isOpen = !0), (f = o.meta) != null && f.isShow || (o.meta.isShow = !0), await ie(), m.iframeView.triggerEventListener("onActivated", { route: o }));
296
+ const i = u.value.find((k) => k.path === o.path);
297
+ i && ((a = i.meta) != null && a.isOpen || (i.meta.isOpen = !0), (f = i.meta) != null && f.isShow || (i.meta.isShow = !0), await ie(), m.iframeView.triggerEventListener("onActivated", { route: i }));
298
298
  };
299
299
  return E(), Z(
300
- () => i.path,
300
+ () => o.path,
301
301
  () => {
302
302
  I();
303
303
  }
304
- ), (s, o) => (h(), C(
304
+ ), (s, i) => (h(), C(
305
305
  G,
306
306
  null,
307
307
  [
@@ -322,7 +322,7 @@ const g = U({
322
322
  key: f.key
323
323
  }))
324
324
  ], 8, Ve)), [
325
- [V, f.componentInstance && a === b(i).path]
325
+ [V, f.componentInstance && a === b(o).path]
326
326
  ])),
327
327
  128
328
328
  /* KEYED_FRAGMENT */
@@ -346,7 +346,7 @@ const g = U({
346
346
  key: f.key
347
347
  }))
348
348
  ], 8, Se)), [
349
- [V, f.componentInstance && a === b(i).path]
349
+ [V, f.componentInstance && a === b(o).path]
350
350
  ])),
351
351
  128
352
352
  /* KEYED_FRAGMENT */
@@ -356,12 +356,12 @@ const g = U({
356
356
  /* STABLE_FRAGMENT */
357
357
  ));
358
358
  }
359
- }), de = (e, t) => {
360
- const n = e.__vccOpts || e;
361
- for (const [c, i] of t)
362
- n[c] = i;
359
+ }), de = (t, e) => {
360
+ const n = t.__vccOpts || t;
361
+ for (const [c, o] of e)
362
+ n[c] = o;
363
363
  return n;
364
- }, Me = /* @__PURE__ */ de(De, [["__scopeId", "data-v-71479406"]]), xe = { class: "das-web-app-container" }, je = {
364
+ }, xe = /* @__PURE__ */ de(De, [["__scopeId", "data-v-71479406"]]), Me = { class: "das-web-app-container" }, je = {
365
365
  key: 0,
366
366
  class: "das-web-app-header"
367
367
  }, $e = { class: "das-web-app-main" }, He = {
@@ -391,32 +391,32 @@ const g = U({
391
391
  excludeRoutes: {},
392
392
  routeKeepAliveVisible: { type: Boolean, default: !0 }
393
393
  },
394
- setup(e) {
395
- const t = e;
394
+ setup(t) {
395
+ const e = t;
396
396
  Ie(), Le(), Ce();
397
- const n = ve(), c = N(!1), i = N(!1), u = N(!1), p = v(() => c.value && t.showLayout), y = v(() => i.value && t.showLayout && t.showAside), r = v(() => c.value && t.showLayout && t.showTabs), E = v(() => t.routerViewVisible ?? !0), I = v(() => $.overlay.visible ?? !1), s = v(() => ({
397
+ const n = ve(), c = N(!1), o = N(!1), u = N(!1), p = v(() => c.value && e.showLayout), y = v(() => o.value && e.showLayout && e.showAside), r = v(() => c.value && e.showLayout && e.showTabs), E = v(() => (console.log("xx", e.routerViewVisible), e.routerViewVisible ?? !0)), I = v(() => $.overlay.visible ?? !1), s = v(() => ({
398
398
  "das-web-app-overlay-show": I.value === !0,
399
399
  "das-web-app-overlay-hide": I.value === !1,
400
400
  "das-web-app-overlay-destroy": I.value === "destroy"
401
- })), o = v(() => $.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = v(() => t.excludeRoutes), f = v(() => t.routeKeepAliveVisible);
401
+ })), i = v(() => $.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = v(() => e.excludeRoutes), f = v(() => e.routeKeepAliveVisible);
402
402
  Z(
403
403
  () => [n.meta, n.query],
404
404
  ([L, S]) => {
405
- const { showLayout: l = !0, showAside: d = !0, showTabs: w = !0, layout: x = {} } = L, {
405
+ const { showLayout: l = !0, showAside: d = !0, showTabs: w = !0, layout: M = {} } = L, {
406
406
  showLayout: A = !0,
407
407
  showAside: se = !0,
408
408
  showTabs: ae = !0,
409
409
  app: me
410
410
  } = S;
411
- window.__IN_DAS_MAIN_APP && (me ? Y({ minHeight: "auto", minWidth: "auto" }) : Y({ minHeight: "600px", minWidth: "1200px" })), window.__IN_DAS_MICRO_APP && Y(x);
411
+ window.__IN_DAS_MAIN_APP && (me ? Y({ minHeight: "auto", minWidth: "auto" }) : Y({ minHeight: "600px", minWidth: "1200px" })), window.__IN_DAS_MICRO_APP && Y(M);
412
412
  let re = !0, K = !0, q = !0;
413
- (l === !1 || A === !1 || A === "false") && (re = !1, K = !1, q = !1), (d === !1 || se === !1 || se === "false") && (K = !1), (w === !1 || ae === !1 || ae === "false") && (q = !1), c.value = re, i.value = K, u.value = q;
413
+ (l === !1 || A === !1 || A === "false") && (re = !1, K = !1, q = !1), (d === !1 || se === !1 || se === "false") && (K = !1), (w === !1 || ae === !1 || ae === "false") && (q = !1), c.value = re, o.value = K, u.value = q;
414
414
  }
415
415
  );
416
416
  const k = v(() => ({
417
417
  mode: "out-in",
418
418
  "enter-active-class": "animate__animated animate__fadeInLeft",
419
- ...t.transitionConfig || {}
419
+ ...e.transitionConfig || {}
420
420
  }));
421
421
  let F = /* @__PURE__ */ new Map();
422
422
  const Q = (L, S) => {
@@ -430,12 +430,12 @@ const g = U({
430
430
  }, j = v(() => $.visible.value);
431
431
  return (L, S) => {
432
432
  const l = ge("router-view");
433
- return h(), C("div", xe, [
433
+ return h(), C("div", Me, [
434
434
  P(D(
435
435
  "div",
436
436
  {
437
437
  class: he(["das-web-app-overlay", s.value]),
438
- style: pe(o.value)
438
+ style: pe(i.value)
439
439
  },
440
440
  null,
441
441
  6
@@ -567,7 +567,7 @@ const g = U({
567
567
  "div",
568
568
  Ke,
569
569
  [
570
- J(Me, {
570
+ J(xe, {
571
571
  exclude: a.value,
572
572
  transitionConfig: k.value,
573
573
  needTransition: L.needTransition
@@ -605,32 +605,32 @@ const g = U({
605
605
  }
606
606
  }), at = /* @__PURE__ */ de(Ge, [["__scopeId", "data-v-1c818b3a"]]), Je = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], rt = /* @__PURE__ */ z({
607
607
  __name: "das-web-nav",
608
- setup(e) {
609
- const { nav: t } = $, n = v(() => t.logo || ""), c = v(() => t.activeItem || ""), i = v(() => (t.items || []).filter((d) => d.fixed)), u = v(() => (t.items || []).filter((d) => !d.fixed)), p = v(() => {
610
- var l, d, w, x;
608
+ setup(t) {
609
+ const { nav: e } = $, n = v(() => e.logo || ""), c = v(() => e.activeItem || ""), o = v(() => (e.items || []).filter((d) => d.fixed)), u = v(() => (e.items || []).filter((d) => !d.fixed)), p = v(() => {
610
+ var l, d, w, M;
611
611
  return {
612
- showFullScreen: ((l = t.config) == null ? void 0 : l.showFullScreen) ?? !1,
613
- showChangeEnterprise: ((d = t.config) == null ? void 0 : d.showChangeEnterprise) ?? !1,
614
- showSearch: ((w = t.config) == null ? void 0 : w.showSearch) ?? !0,
615
- showProjectTree: ((x = t.config) == null ? void 0 : x.showProjectTree) ?? !0,
612
+ showFullScreen: ((l = e.config) == null ? void 0 : l.showFullScreen) ?? !1,
613
+ showChangeEnterprise: ((d = e.config) == null ? void 0 : d.showChangeEnterprise) ?? !1,
614
+ showSearch: ((w = e.config) == null ? void 0 : w.showSearch) ?? !0,
615
+ showProjectTree: ((M = e.config) == null ? void 0 : M.showProjectTree) ?? !0,
616
616
  subAppList: u.value.map((A) => ({ code: A.value, name: A.label, ...A }))
617
617
  };
618
618
  }), y = v(() => {
619
- const l = i.value.find((d) => d.value === t.activeItem);
619
+ const l = o.value.find((d) => d.value === e.activeItem);
620
620
  return {
621
621
  activeInnerPagePath: (l == null ? void 0 : l.path) || "",
622
- innerPages: i.value.map((d) => ({ title: d.label, ...d }))
622
+ innerPages: o.value.map((d) => ({ title: d.label, ...d }))
623
623
  };
624
624
  }), r = v(() => ({
625
625
  projectStore: {
626
- projectTree: t.projects,
627
- currentProject: t.activeProject
626
+ projectTree: e.projects,
627
+ currentProject: e.activeProject
628
628
  },
629
- ...t.projectConfig
630
- })), E = v(() => t.userInfo), I = v(() => t.searchConfig), s = async (l) => {
631
- const d = l.detail[0], w = i.value.find((A) => d.value === A.value);
629
+ ...e.projectConfig
630
+ })), E = v(() => e.userInfo), I = v(() => e.searchConfig), s = async (l) => {
631
+ const d = l.detail[0], w = o.value.find((A) => d.value === A.value);
632
632
  await m.nav.triggerEventListener("onItemClick", w) && m.nav.setActiveItem(w.value);
633
- }, o = async (l) => {
633
+ }, i = async (l) => {
634
634
  const d = l.detail[0], w = u.value.find((A) => d === A.value);
635
635
  await m.nav.triggerEventListener("onItemClick", w) && m.nav.setActiveItem(w.value);
636
636
  }, a = async (l) => {
@@ -668,7 +668,7 @@ const g = U({
668
668
  userInfoConfig: E.value,
669
669
  "on:userCommandHandle": k,
670
670
  "on:changeInnerPage": s,
671
- "on:handleTabClick": o,
671
+ "on:handleTabClick": i,
672
672
  "on:handleTabDelete": a,
673
673
  "on:changeTreeHandle": f,
674
674
  "on:searchToPage": F,
@@ -683,15 +683,17 @@ const g = U({
683
683
  props: {
684
684
  menuAttr: {}
685
685
  },
686
- setup(e) {
687
- const { menu: t } = $, n = e, c = v(() => n.menuAttr || {}), i = v(() => t.items), u = v(() => t.items.find((I) => I.fixed)), p = v(() => t.activeItem || ""), y = v(() => t.collapse ?? !1), r = v(() => ({ popupClassName: t.popupClassName ?? "" })), E = async (I) => {
688
- const s = I.detail[0], o = ke(i.value).find((f) => s === f.id);
689
- await m.menu.triggerEventListener("onItemClick", o) && m.menu.setActiveItem(o.id);
686
+ setup(t) {
687
+ const { menu: e } = $, n = t, c = v(() => n.menuAttr || {}), o = v(() => e.items);
688
+ console.log("menus====", o);
689
+ const u = v(() => e.items.find((I) => I.fixed)), p = v(() => e.activeItem || ""), y = v(() => e.collapse ?? !1), r = v(() => ({ popupClassName: e.popupClassName ?? "" })), E = async (I) => {
690
+ const s = I.detail[0], i = ke(o.value).find((f) => s === f.id);
691
+ await m.menu.triggerEventListener("onItemClick", i) && m.menu.setActiveItem(i.id);
690
692
  };
691
- return (I, s) => i.value.length > 0 ? (h(), C("das-ce-menu", ne({
693
+ return (I, s) => o.value.length > 0 ? (h(), C("das-ce-menu", ne({
692
694
  key: 0,
693
695
  modelValue: p.value,
694
- data: i.value,
696
+ data: o.value,
695
697
  collapse: y.value,
696
698
  fixedTopMenu: u.value,
697
699
  subMenuAttrs: r.value
@@ -702,16 +704,16 @@ const g = U({
702
704
  props: {
703
705
  tabsAttr: {}
704
706
  },
705
- setup(e) {
706
- const { tab: t } = $, n = e, c = v(() => n.tabsAttr || {}), i = v(() => t.items.map((s) => ({
707
+ setup(t) {
708
+ const { tab: e } = $, n = t, c = v(() => n.tabsAttr || {}), o = v(() => e.items.map((s) => ({
707
709
  ...s,
708
710
  key: s.value,
709
711
  tab: s.label
710
- }))), u = v(() => t.activeItem || ""), p = async (s) => {
711
- const o = s.detail[0], a = i.value.find((k) => o === k.value);
712
+ }))), u = v(() => e.activeItem || ""), p = async (s) => {
713
+ const i = s.detail[0], a = o.value.find((k) => i === k.value);
712
714
  await m.tab.triggerEventListener("onItemClick", a) && m.tab.setActiveItem(a.value);
713
715
  }, y = async (s) => {
714
- const o = s.detail[0], a = i.value.find((k) => o === k.value);
716
+ const i = s.detail[0], a = o.value.find((k) => i === k.value);
715
717
  await m.tab.triggerEventListener("onItemRemove", a) && m.tab.removeItem(a.value);
716
718
  }, r = async (s) => {
717
719
  await m.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
@@ -720,10 +722,10 @@ const g = U({
720
722
  }, I = () => {
721
723
  m.tab.triggerEventListener("onToggleFullScreen");
722
724
  };
723
- return (s, o) => i.value.length > 0 ? (h(), C("das-ce-tabs", ne({
725
+ return (s, i) => o.value.length > 0 ? (h(), C("das-ce-tabs", ne({
724
726
  key: 0,
725
727
  modelValue: u.value,
726
- options: i.value
728
+ options: o.value
727
729
  }, c.value, {
728
730
  "on:tabClick": p,
729
731
  "on:tabDelete": y,
Binary file
@@ -0,0 +1 @@
1
+ window.config = {}
@@ -1,8 +1,8 @@
1
- import { defineComponent as v, ref as r, nextTick as u, watch as p, onMounted as _, onUnmounted as h, openBlock as c, createElementBlock as l, createVNode as w, unref as g, withCtx as k, withDirectives as x, vShow as y, createCommentVNode as I } from "vue";
1
+ import { defineComponent as v, ref as r, nextTick as u, watch as p, onMounted as _, onUnmounted as h, openBlock as c, createElementBlock as l, createVNode as g, unref as w, withCtx as k, withDirectives as x, vShow as y, createCommentVNode as I } from "vue";
2
2
  import { useRoute as P } from "vue-router";
3
3
  import { DasSpin as S } from "@das-fed/ui/packages/components/spin/index";
4
4
  import { layout as C } from "@das-fed/web/packages/layout/index";
5
- import { I as R, e as L, _ as M } from "./index-D7pfTqeW.js";
5
+ import { I as R, e as L, _ as M } from "./index-CIYEqxNR.js";
6
6
  import { getToken as j, getPersonalInfo as B, getProjectInfo as D } from "@das-fed/utils/common-info";
7
7
  import { getUrlParams as E } from "@das-fed/utils/common-tools";
8
8
  const N = {
@@ -11,37 +11,37 @@ const N = {
11
11
  }, T = ["src"], U = /* @__PURE__ */ v({
12
12
  __name: "index",
13
13
  setup(V) {
14
- const t = r(""), n = r(!0);
14
+ const o = r(""), n = r(!0);
15
15
  C.tab.addEventListener("onPageRefresh", async (e) => {
16
- e && e.path === R && (L(e.applicationCode, [e.code]), n.value = !1, await u(), n.value = !0);
16
+ e && e.path === R && (console.log("onPageRefresh===iframe", e), L(e.applicationCode, [e.code]), n.value = !1, await u(), n.value = !0);
17
17
  });
18
- const a = r(!1), i = r(null), o = r(!1), f = () => {
18
+ const t = r(!1), i = r(null), a = r(!1), f = () => {
19
19
  var e, s;
20
- o.value && (e = i.value) != null && e.contentWindow && ((s = i.value.contentWindow) == null || s.postMessage(
20
+ a.value && (e = i.value) != null && e.contentWindow && ((s = i.value.contentWindow) == null || s.postMessage(
21
21
  {
22
22
  token: j(),
23
23
  userInfo: B(),
24
24
  projectInfo: D()
25
25
  },
26
- t.value
26
+ o.value
27
27
  ));
28
28
  }, m = P();
29
29
  p(
30
30
  () => m.query.iframeSrc,
31
31
  async (e) => {
32
- e && (t.value = e, a.value = !1, await u(), a.value = !0, f());
32
+ e && (o.value = e, t.value = !1, await u(), t.value = !0, f());
33
33
  }
34
34
  );
35
35
  const d = () => {
36
- o.value = !0, f();
36
+ a.value = !0, f();
37
37
  };
38
38
  return _(() => {
39
- a.value = !0, t.value = E(location.href, "iframeSrc");
39
+ t.value = !0, o.value = E(location.href, "iframeSrc");
40
40
  }), h(() => {
41
- o.value = !1, a.value = !1;
42
- }), (e, s) => a.value && n.value ? (c(), l("div", N, [
43
- w(g(S), {
44
- spinning: !o.value
41
+ a.value = !1, t.value = !1;
42
+ }), (e, s) => t.value && n.value ? (c(), l("div", N, [
43
+ g(w(S), {
44
+ spinning: !a.value
45
45
  }, {
46
46
  default: k(() => [
47
47
  x((c(), l("iframe", {
@@ -50,11 +50,11 @@ const N = {
50
50
  ref: i,
51
51
  width: "100%",
52
52
  height: "100%",
53
- src: t.value,
54
- key: t.value,
53
+ src: o.value,
54
+ key: o.value,
55
55
  onLoad: d
56
56
  }, null, 40, T)), [
57
- [y, o.value]
57
+ [y, a.value]
58
58
  ])
59
59
  ]),
60
60
  _: 1