@das-fed/web 6.4.0-dev.11 → 6.4.0-dev.12

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 (33) hide show
  1. package/{index-D7VM--Bp.js → index-B0_oruhN.js} +1 -1
  2. package/{index-CdrOv9ce.js → index-C2ZSdOo4.js} +900 -885
  3. package/index-C2ZSdOo4.js.gz +0 -0
  4. package/{index-CzmiHoa4.js → index-DCv0mp9Q.js} +1 -1
  5. package/index-DCv0mp9Q.js.gz +0 -0
  6. package/{index-jFzyVhGM.js → index-E3_VNsYI.js} +16 -15
  7. package/index-E3_VNsYI.js.gz +0 -0
  8. package/index.js +1 -1
  9. package/package.json +6 -6
  10. package/packages/create-das-web-app/index.js +40 -40
  11. package/packages/create-das-web-app/index.js.gz +0 -0
  12. package/packages/layout/index.js +214 -202
  13. package/packages/layout/index.js.gz +0 -0
  14. package/packages/layout/style.css +1 -1
  15. package/packages/layout/style.css.gz +0 -0
  16. package/packages/main-app-framework/{index-_nvo7ltJ.js → index-BKvL69_g.js} +167 -164
  17. package/packages/main-app-framework/index-BKvL69_g.js.gz +0 -0
  18. package/packages/main-app-framework/{index-D38gLa5D.js → index-BmlzT8Nw.js} +1 -1
  19. package/packages/main-app-framework/{index-Cq8Fro8z.js → index-DGFe8dVS.js} +16 -15
  20. package/packages/main-app-framework/index-DGFe8dVS.js.gz +0 -0
  21. package/packages/main-app-framework/{index-DyKCvROV.js → index-csrvxtZY.js} +1 -1
  22. package/packages/main-app-framework/index-csrvxtZY.js.gz +0 -0
  23. package/packages/main-app-framework/index.js +1 -1
  24. package/packages/micro-frontend/index.js +34 -22
  25. package/packages/micro-frontend/index.js.gz +0 -0
  26. package/style.css +1 -1
  27. package/style.css.gz +0 -0
  28. package/index-CdrOv9ce.js.gz +0 -0
  29. package/index-CzmiHoa4.js.gz +0 -0
  30. package/index-jFzyVhGM.js.gz +0 -0
  31. package/packages/main-app-framework/index-Cq8Fro8z.js.gz +0 -0
  32. package/packages/main-app-framework/index-DyKCvROV.js.gz +0 -0
  33. package/packages/main-app-framework/index-_nvo7ltJ.js.gz +0 -0
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as c } from "./index-_nvo7ltJ.js";
2
+ import { _ as c } from "./index-BKvL69_g.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return e(), r("div");
@@ -1,13 +1,14 @@
1
- import { defineComponent as w, computed as y, openBlock as _, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
1
+ import { defineComponent as _, computed as w, openBlock as y, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
2
2
  import { DasAppContainer as C } from "@das-fed/ui/packages/business-components/app-container/index";
3
3
  import { DasSpin as v } from "@das-fed/ui/packages/components/spin/index";
4
4
  import { getTabInfo as I } from "@das-fed/utils/common-info";
5
+ import { setShowLayout as S } from "@das-fed/utils/common-tools";
5
6
  import { createService as j } from "@das-fed/utils/create-api-service";
6
- import { u as S, a as c, c as l, b as $, l as x, d as L } from "./index-_nvo7ltJ.js";
7
- const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/auth/user/auth_code"), V = /* @__PURE__ */ w({
7
+ import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-BKvL69_g.js";
8
+ const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
8
9
  __name: "index",
9
- setup(E) {
10
- const { beforeEntryApp: f, entryApp: d } = S(), g = y(() => {
10
+ setup(q) {
11
+ const { beforeEntryApp: f, entryApp: d } = $(), g = w(() => {
11
12
  if (!c.value || !c.value.length) return [];
12
13
  const o = l(c.value);
13
14
  return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
@@ -23,7 +24,7 @@ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/
23
24
  return;
24
25
  }
25
26
  const e = l(o);
26
- if (x.innerSet = !0, e.routeUrl) {
27
+ if (T.innerSet = !0, e.routeUrl) {
27
28
  if (o.code === "Ioc") {
28
29
  window.open(e.routeUrl, "_blank");
29
30
  return;
@@ -31,9 +32,9 @@ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/
31
32
  if (o.code === "wojiacloud") {
32
33
  const t = sessionStorage.getItem("kingdee_token") || "";
33
34
  if (t) {
34
- const [a, i] = await D().run({ accessToken: t });
35
- if (i) {
36
- const s = (i == null ? void 0 : i.auth_code) ?? "";
35
+ const [i, a] = await L().run({ accessToken: t });
36
+ if (a) {
37
+ const s = (a == null ? void 0 : a.auth_code) ?? "";
37
38
  e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
38
39
  }
39
40
  }
@@ -42,17 +43,17 @@ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/
42
43
  const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
43
44
  if (r === 1) {
44
45
  if (!await f(o)) return;
45
- const a = I().preTab[o.code], i = (a == null ? void 0 : a.code) ?? "", s = { ...(a == null ? void 0 : a.query) ?? {} };
46
- d({ microApp: e, menuCode: i, route: { query: s } });
46
+ const i = I().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
47
+ d({ microApp: e, menuCode: a, route: { query: s } });
47
48
  }
48
49
  if (r === 2 && e.routeUrl) {
49
50
  let t = "";
50
- u === 1 ? t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl + "?showLayout=false" : location.origin + e.routeUrl + "?showLayout=false" : u === 2 && (t = L(e.routeUrl)), window.open(t, "_blank");
51
+ u === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = S(t)) : u === 2 && (t = b(e.routeUrl)), window.open(t, "_blank");
51
52
  }
52
53
  };
53
- return (o, n) => (_(), k(p(v), {
54
+ return (o, n) => (y(), k(p(v), {
54
55
  full: "",
55
- spinning: p($)
56
+ spinning: p(x)
56
57
  }, {
57
58
  default: U(() => [
58
59
  A(p(C), {
@@ -66,5 +67,5 @@ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/
66
67
  }
67
68
  });
68
69
  export {
69
- V as default
70
+ G as default
70
71
  };
@@ -2,7 +2,7 @@ import { defineComponent as v, ref as r, nextTick as u, watch as p, onMounted as
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-_nvo7ltJ.js";
5
+ import { I as R, e as L, _ as M } from "./index-BKvL69_g.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 = {
@@ -1,6 +1,6 @@
1
1
  import '@das-fed/web/packages/main-app-framework/style.css';
2
2
  import "vue";
3
- import { m as p } from "./index-_nvo7ltJ.js";
3
+ import { m as p } from "./index-BKvL69_g.js";
4
4
  export {
5
5
  p as mainAppFramework
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import '@das-fed/web/packages/micro-frontend/style.css';
2
- import { ref as w, watch as y, reactive as O, getCurrentScope as oe, onScopeDispose as ce, unref as I, getCurrentInstance as le, onMounted as ue, nextTick as Z, defineComponent as x, computed as T, openBlock as E, createElementBlock as N, Fragment as $, renderList as de, withDirectives as pe, createBlock as ee, vShow as me, createCommentVNode as fe, mergeProps as ve, withCtx as C, renderSlot as V, createVNode as F, onActivated as Ae } from "vue";
2
+ import { ref as w, watch as y, reactive as O, getCurrentScope as oe, onScopeDispose as ce, unref as I, getCurrentInstance as le, onMounted as ue, nextTick as Z, defineComponent as x, computed as D, openBlock as E, createElementBlock as N, Fragment as $, renderList as de, withDirectives as pe, createBlock as ee, vShow as me, createCommentVNode as fe, mergeProps as ve, withCtx as C, renderSlot as V, createVNode as F, onActivated as Ae } from "vue";
3
3
  import { DasWebLayout as he, DasWebNav as we, DasWebMenu as ge, DasWebTabs as _e } from "@das-fed/web/packages/layout/index";
4
- const z = w("/das-micro-app"), f = w([]), k = w(!1), R = w([]), D = w(!0);
4
+ const z = w("/das-micro-app"), f = w([]), k = w(!1), T = w([]), R = w(!0);
5
5
  let A = null, h = null, L = null;
6
6
  const b = (e, t, n) => {
7
7
  var c, a, i, s;
@@ -209,10 +209,14 @@ const b = (e, t, n) => {
209
209
  u.items = t;
210
210
  },
211
211
  appendItem: (e) => {
212
- u.visible || (u.visible = !0), !u.items.find((n) => n.value == e.value) && u.items.push(e);
212
+ setTimeout(() => {
213
+ u.visible || (u.visible = !0), !u.items.find((n) => n.value == e.value) && u.items.push(e);
214
+ }, 200);
213
215
  },
214
216
  setActiveItem: (e) => {
215
- u.activeItem = e;
217
+ setTimeout(() => {
218
+ u.activeItem = e;
219
+ }, 200);
216
220
  },
217
221
  setConfig: (e) => {
218
222
  u.config = e;
@@ -268,11 +272,15 @@ const b = (e, t, n) => {
268
272
  eventListeners: {}
269
273
  }), Ee = {
270
274
  setItems: (e) => {
271
- _.items = e;
275
+ setTimeout(() => {
276
+ _.items = e;
277
+ }, 200);
272
278
  },
273
279
  getItems: () => _.items,
274
280
  setActiveItem: (e) => {
275
- _.activeItem = e;
281
+ setTimeout(() => {
282
+ _.activeItem = e;
283
+ }, 200);
276
284
  },
277
285
  setPopupClassName: (e) => {
278
286
  _.popupClassName = e;
@@ -321,11 +329,15 @@ const b = (e, t, n) => {
321
329
  v.items = t;
322
330
  },
323
331
  appendItem: (e) => {
324
- const t = v.items.findIndex((n) => n.value == e.value);
325
- t !== -1 ? v.items.splice(t, 1, e) : v.items.push(e);
332
+ setTimeout(() => {
333
+ const t = v.items.findIndex((n) => n.value == e.value);
334
+ t !== -1 ? v.items.splice(t, 1, e) : v.items.push(e);
335
+ }, 200);
326
336
  },
327
337
  setActiveItem: (e) => {
328
- v.activeItem = e;
338
+ setTimeout(() => {
339
+ v.activeItem = e;
340
+ }, 200);
329
341
  },
330
342
  triggerEventListener: (e, t, n) => {
331
343
  var i;
@@ -420,19 +432,19 @@ const b = (e, t, n) => {
420
432
  return n;
421
433
  };
422
434
  var H;
423
- const B = typeof window < "u", Fe = (e) => typeof e == "string", Re = () => {
435
+ const B = typeof window < "u", Fe = (e) => typeof e == "string", Te = () => {
424
436
  };
425
437
  B && ((H = window == null ? void 0 : window.navigator) != null && H.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
426
438
  function ne(e) {
427
439
  return typeof e == "function" ? e() : I(e);
428
440
  }
429
- function De(e) {
441
+ function Re(e) {
430
442
  return e;
431
443
  }
432
444
  function re(e) {
433
445
  return oe() ? (ce(e), !0) : !1;
434
446
  }
435
- function Te(e, t = !0) {
447
+ function De(e, t = !0) {
436
448
  le() ? ue(e) : t ? e() : Z(e);
437
449
  }
438
450
  function se(e) {
@@ -444,7 +456,7 @@ const Ne = B ? window : void 0, ke = B ? window.document : void 0;
444
456
  function xe(...e) {
445
457
  let t, n, r, c;
446
458
  if (Fe(e[0]) || Array.isArray(e[0]) ? ([n, r, c] = e, t = Ne) : [t, n, r, c] = e, !t)
447
- return Re;
459
+ return Te;
448
460
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
449
461
  const a = [], i = () => {
450
462
  a.forEach((l) => l()), a.length = 0;
@@ -457,7 +469,7 @@ function xe(...e) {
457
469
  }
458
470
  function Ve(e, t = !1) {
459
471
  const n = w(), r = () => n.value = !!e();
460
- return r(), Te(r, t), n;
472
+ return r(), De(r, t), n;
461
473
  }
462
474
  const U = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, G = "__vueuse_ssr_handlers__";
463
475
  U[G] = U[G] || {};
@@ -577,7 +589,7 @@ const ze = {
577
589
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
578
590
  };
579
591
  $e({
580
- linear: De
592
+ linear: Re
581
593
  }, ze);
582
594
  const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
583
595
  __name: "das-micro-app",
@@ -590,7 +602,7 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
590
602
  setup(e, { emit: t }) {
591
603
  const n = e, r = t, c = (s) => {
592
604
  r("onLoaded", s);
593
- }, a = T(() => n.actived);
605
+ }, a = D(() => n.actived);
594
606
  return y(() => a.value, (s) => {
595
607
  s && r("onActivated"), s || r("onDeactivated");
596
608
  }), (s, o) => (E(), N("iframe", {
@@ -686,10 +698,10 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
686
698
  } }
687
699
  },
688
700
  setup(e) {
689
- const t = e, n = T(() => !k.value), r = T(() => ({
701
+ const t = e, n = D(() => !k.value), r = D(() => ({
690
702
  "enter-active-class": "animate__animated animate__fadeInLeft",
691
703
  ...t.transitionConfig
692
- })), c = T(() => ({ showLayout: t.showLayout, showAside: t.showAside, showTabs: t.showTabs }));
704
+ })), c = D(() => ({ showLayout: t.showLayout, showAside: t.showAside, showTabs: t.showTabs }));
693
705
  return (a, i) => (E(), ee(I(he), ve({
694
706
  "transition-config": r.value,
695
707
  "router-view-visible": n.value
@@ -809,10 +821,10 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
809
821
  s === "setItem" && window.sessionStorage.setItem(o, p), s === "getItem" && window.sessionStorage.getItem(o), s === "removeItem" && window.sessionStorage.removeItem(o), s === "clear" && window.sessionStorage.clear();
810
822
  }), d.addEventListenerFromMainApp("route", (i) => {
811
823
  const { cmd: s, path: o } = i.data;
812
- s === "reload" && (R.value.push(o), D.value = !1, setTimeout(() => {
813
- D.value = !0, R.value = [];
814
- }, 300)), s === "unload" && (R.value.push(o), D.value = !1, setTimeout(() => {
815
- D.value = !0, R.value = [];
824
+ s === "reload" && (T.value.push(o), R.value = !1, setTimeout(() => {
825
+ R.value = !0, T.value = [];
826
+ }, 300)), s === "unload" && (T.value.push(o), R.value = !1, setTimeout(() => {
827
+ R.value = !0, T.value = [];
816
828
  }, 100));
817
829
  });
818
830
  };
Binary file