@das-fed/web 6.4.0-dev.10 → 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.
- package/{packages/main-app-framework/index-CXsP6QiJ.js → index-B0_oruhN.js} +1 -1
- package/{index-Cp6SD-TQ.js → index-C2ZSdOo4.js} +2466 -2731
- package/index-C2ZSdOo4.js.gz +0 -0
- package/{index-3xCfFiyN.js → index-DCv0mp9Q.js} +1 -1
- package/index-DCv0mp9Q.js.gz +0 -0
- package/{packages/main-app-framework/index-DQRCs8SS.js → index-E3_VNsYI.js} +16 -15
- package/index-E3_VNsYI.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +40 -40
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/layout/index.js +214 -202
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/{index-DtmpkTTl.js → index-BKvL69_g.js} +2044 -2321
- package/packages/main-app-framework/index-BKvL69_g.js.gz +0 -0
- package/{index-BePRIUZj.js → packages/main-app-framework/index-BmlzT8Nw.js} +1 -1
- package/{index-CIytPmSg.js → packages/main-app-framework/index-DGFe8dVS.js} +16 -15
- package/packages/main-app-framework/index-DGFe8dVS.js.gz +0 -0
- package/packages/main-app-framework/{index-CY7DAPNF.js → index-csrvxtZY.js} +1 -1
- package/packages/main-app-framework/index-csrvxtZY.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js +34 -22
- package/packages/micro-frontend/index.js.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index-3xCfFiyN.js.gz +0 -0
- package/index-CIytPmSg.js.gz +0 -0
- package/index-Cp6SD-TQ.js.gz +0 -0
- package/packages/main-app-framework/index-CY7DAPNF.js.gz +0 -0
- package/packages/main-app-framework/index-DQRCs8SS.js.gz +0 -0
- package/packages/main-app-framework/index-DtmpkTTl.js.gz +0 -0
|
Binary file
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
|
|
7
|
-
const
|
|
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(
|
|
10
|
-
const { beforeEntryApp: f, entryApp: d } =
|
|
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 (
|
|
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 [
|
|
35
|
-
if (
|
|
36
|
-
const s = (
|
|
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
|
|
46
|
-
d({ microApp: e, menuCode:
|
|
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
|
|
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) => (
|
|
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
|
-
|
|
70
|
+
G as default
|
|
70
71
|
};
|
|
Binary file
|
|
@@ -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-
|
|
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 = {
|
|
Binary file
|
|
@@ -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
|
|
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),
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
275
|
+
setTimeout(() => {
|
|
276
|
+
_.items = e;
|
|
277
|
+
}, 200);
|
|
272
278
|
},
|
|
273
279
|
getItems: () => _.items,
|
|
274
280
|
setActiveItem: (e) => {
|
|
275
|
-
|
|
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
|
-
|
|
325
|
-
|
|
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
|
-
|
|
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",
|
|
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
|
|
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
|
|
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
|
|
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(),
|
|
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:
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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" && (
|
|
813
|
-
|
|
814
|
-
}, 300)), s === "unload" && (
|
|
815
|
-
|
|
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
|