@das-fed/web 6.4.0-hot.3 → 6.4.0-test.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.
- package/{index-E3_VNsYI.js → index-CNuui6rH.js} +1 -1
- package/index-CNuui6rH.js.gz +0 -0
- package/{index-B0_oruhN.js → index-D_CiHfGN.js} +1 -1
- package/{index-C2ZSdOo4.js → index-LTwaM8dS.js} +246 -246
- package/index-LTwaM8dS.js.gz +0 -0
- package/{packages/main-app-framework/index-csrvxtZY.js → index-_67_4aoo.js} +1 -1
- package/index-_67_4aoo.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/{index-DCv0mp9Q.js → packages/main-app-framework/index-Bnb7HNMb.js} +1 -1
- package/packages/main-app-framework/index-Bnb7HNMb.js.gz +0 -0
- package/packages/main-app-framework/{index-BmlzT8Nw.js → index-CBrBve1k.js} +1 -1
- package/packages/main-app-framework/{index-BKvL69_g.js → index-DF7V-TBl.js} +324 -322
- package/packages/main-app-framework/index-DF7V-TBl.js.gz +0 -0
- package/packages/main-app-framework/{index-DGFe8dVS.js → index-DOTMbc-l.js} +1 -1
- package/packages/main-app-framework/index-DOTMbc-l.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js +31 -33
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/index-C2ZSdOo4.js.gz +0 -0
- package/index-DCv0mp9Q.js.gz +0 -0
- package/index-E3_VNsYI.js.gz +0 -0
- package/packages/main-app-framework/index-BKvL69_g.js.gz +0 -0
- package/packages/main-app-framework/index-DGFe8dVS.js.gz +0 -0
- package/packages/main-app-framework/index-csrvxtZY.js.gz +0 -0
|
Binary file
|
|
@@ -4,7 +4,7 @@ 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
5
|
import { setShowLayout as S } from "@das-fed/utils/common-tools";
|
|
6
6
|
import { createService as j } from "@das-fed/utils/create-api-service";
|
|
7
|
-
import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-
|
|
7
|
+
import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-DF7V-TBl.js";
|
|
8
8
|
const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(q) {
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@das-fed/web/packages/micro-frontend/style.css';
|
|
2
|
-
import { ref as w, watch as
|
|
3
|
-
import { DasWebLayout as he, DasWebNav as we, DasWebMenu as ge, DasWebTabs as
|
|
2
|
+
import { ref as w, watch as M, 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
|
+
import { DasWebLayout as he, DasWebNav as we, DasWebMenu as ge, DasWebTabs as ye } from "@das-fed/web/packages/layout/index";
|
|
4
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) => {
|
|
@@ -14,12 +14,10 @@ const b = (e, t, n) => {
|
|
|
14
14
|
(s = (i = r.dom) == null ? void 0 : i.contentWindow) == null || s.postMessage({ type: t, data: n }, r.entry);
|
|
15
15
|
}
|
|
16
16
|
}, q = (e, t) => {
|
|
17
|
-
var
|
|
18
|
-
const {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
(a = window.top) == null || a.postMessage({ type: e, data: t }, c);
|
|
22
|
-
}, ye = () => {
|
|
17
|
+
var r;
|
|
18
|
+
const { origin: n } = new URL(location.href);
|
|
19
|
+
(r = window.top) == null || r.postMessage({ type: e, data: t }, n);
|
|
20
|
+
}, Me = () => {
|
|
23
21
|
h || (h || (h = {}), window.addEventListener(
|
|
24
22
|
"message",
|
|
25
23
|
(e) => {
|
|
@@ -30,7 +28,7 @@ const b = (e, t, n) => {
|
|
|
30
28
|
},
|
|
31
29
|
!1
|
|
32
30
|
));
|
|
33
|
-
},
|
|
31
|
+
}, _e = () => {
|
|
34
32
|
A || (A || (A = {}), window.addEventListener(
|
|
35
33
|
"message",
|
|
36
34
|
(e) => {
|
|
@@ -42,7 +40,7 @@ const b = (e, t, n) => {
|
|
|
42
40
|
!1
|
|
43
41
|
));
|
|
44
42
|
}, Le = (e, t) => {
|
|
45
|
-
|
|
43
|
+
_e();
|
|
46
44
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
47
45
|
return A[e] || (A[e] = {}), A[e][n] = t, {
|
|
48
46
|
remove: () => {
|
|
@@ -50,7 +48,7 @@ const b = (e, t, n) => {
|
|
|
50
48
|
}
|
|
51
49
|
};
|
|
52
50
|
}, be = (e, t) => {
|
|
53
|
-
|
|
51
|
+
Me();
|
|
54
52
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
55
53
|
return h[e] || (h[e] = {}), h[e][n] = t, {
|
|
56
54
|
remove: () => {
|
|
@@ -60,7 +58,7 @@ const b = (e, t, n) => {
|
|
|
60
58
|
}, Q = async (e) => {
|
|
61
59
|
await Promise.all(
|
|
62
60
|
f.value.filter((t) => t.loaded).map((t) => new Promise(async (n) => {
|
|
63
|
-
t.dom || await new Promise((r) =>
|
|
61
|
+
t.dom || await new Promise((r) => M(() => t.dom, r)), setTimeout(() => {
|
|
64
62
|
b(t.name, "sessionStorage", e), n(!0);
|
|
65
63
|
}, 0);
|
|
66
64
|
}))
|
|
@@ -86,7 +84,7 @@ const b = (e, t, n) => {
|
|
|
86
84
|
},
|
|
87
85
|
hideMicroApp: async (e) => {
|
|
88
86
|
const t = f.value.find((n) => n.name === e);
|
|
89
|
-
t && t.loaded && (t.dom || await new Promise((n) =>
|
|
87
|
+
t && t.loaded && (t.dom || await new Promise((n) => M(() => t.dom, n)), b(e, "router", {
|
|
90
88
|
cmd: "push",
|
|
91
89
|
route: {
|
|
92
90
|
name: "das-micro-app-ghost",
|
|
@@ -110,7 +108,7 @@ const b = (e, t, n) => {
|
|
|
110
108
|
},
|
|
111
109
|
setMicroAppRoute: async (e, t, n) => {
|
|
112
110
|
const r = f.value.find((s) => s.name === t);
|
|
113
|
-
if (!r || !r.loaded || !r.actived || (r.dom || await new Promise((s) =>
|
|
111
|
+
if (!r || !r.loaded || !r.actived || (r.dom || await new Promise((s) => M(() => r.dom, s)), !r.actived)) return r;
|
|
114
112
|
const c = n.path || n, a = n.query || {}, i = n.params || {};
|
|
115
113
|
return e.push({
|
|
116
114
|
path: `/${t}${c}`,
|
|
@@ -170,11 +168,11 @@ const b = (e, t, n) => {
|
|
|
170
168
|
},
|
|
171
169
|
reloadMicroAppRoute: async (e, t) => {
|
|
172
170
|
const n = f.value.find((r) => r.name === e);
|
|
173
|
-
n && (!n.loaded || !n.actived || (n.dom || await new Promise((r) =>
|
|
171
|
+
n && (!n.loaded || !n.actived || (n.dom || await new Promise((r) => M(() => n.dom, r)), b(e, "route", { cmd: "reload", path: t })));
|
|
174
172
|
},
|
|
175
173
|
unloadMicroAppRoute: async (e, t) => {
|
|
176
174
|
const n = f.value.find((r) => r.name === e);
|
|
177
|
-
n && (!n.loaded || !n.actived || (n.dom || await new Promise((r) =>
|
|
175
|
+
n && (!n.loaded || !n.actived || (n.dom || await new Promise((r) => M(() => n.dom, r)), b(e, "route", { cmd: "unload", path: t })));
|
|
178
176
|
},
|
|
179
177
|
setMainAppLayoutVisible: (e) => {
|
|
180
178
|
q("layoutVisible", { visible: e });
|
|
@@ -267,27 +265,27 @@ const b = (e, t, n) => {
|
|
|
267
265
|
remove: r
|
|
268
266
|
};
|
|
269
267
|
}
|
|
270
|
-
},
|
|
268
|
+
}, y = O({
|
|
271
269
|
items: [],
|
|
272
270
|
eventListeners: {}
|
|
273
271
|
}), Ee = {
|
|
274
272
|
setItems: (e) => {
|
|
275
273
|
setTimeout(() => {
|
|
276
|
-
|
|
274
|
+
y.items = e;
|
|
277
275
|
}, 200);
|
|
278
276
|
},
|
|
279
|
-
getItems: () =>
|
|
277
|
+
getItems: () => y.items,
|
|
280
278
|
setActiveItem: (e) => {
|
|
281
279
|
setTimeout(() => {
|
|
282
|
-
|
|
280
|
+
y.activeItem = e;
|
|
283
281
|
}, 200);
|
|
284
282
|
},
|
|
285
283
|
setPopupClassName: (e) => {
|
|
286
|
-
|
|
284
|
+
y.popupClassName = e;
|
|
287
285
|
},
|
|
288
286
|
triggerEventListener: (e, t, n) => {
|
|
289
287
|
var i;
|
|
290
|
-
const r =
|
|
288
|
+
const r = y.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
|
|
291
289
|
for (const s in r) {
|
|
292
290
|
const o = r[s];
|
|
293
291
|
o.type === e && a.push(
|
|
@@ -300,9 +298,9 @@ const b = (e, t, n) => {
|
|
|
300
298
|
},
|
|
301
299
|
addEventListener: (e, t) => {
|
|
302
300
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), r = () => {
|
|
303
|
-
|
|
301
|
+
y.eventListeners[n] && delete y.eventListeners[n];
|
|
304
302
|
};
|
|
305
|
-
return
|
|
303
|
+
return y.eventListeners[n] = {
|
|
306
304
|
type: e,
|
|
307
305
|
handler: async (c) => {
|
|
308
306
|
try {
|
|
@@ -413,7 +411,7 @@ const b = (e, t, n) => {
|
|
|
413
411
|
}
|
|
414
412
|
}, Ce = {
|
|
415
413
|
nav: u,
|
|
416
|
-
menu:
|
|
414
|
+
menu: y,
|
|
417
415
|
tab: v,
|
|
418
416
|
overlay: W,
|
|
419
417
|
iframeView: P,
|
|
@@ -460,8 +458,8 @@ function xe(...e) {
|
|
|
460
458
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
461
459
|
const a = [], i = () => {
|
|
462
460
|
a.forEach((l) => l()), a.length = 0;
|
|
463
|
-
}, s = (l, g, m,
|
|
464
|
-
i(), l && a.push(...n.flatMap((m) => r.map((
|
|
461
|
+
}, s = (l, g, m, _) => (l.addEventListener(g, m, _), () => l.removeEventListener(g, m, _)), o = M(() => [se(t), ne(c)], ([l, g]) => {
|
|
462
|
+
i(), l && a.push(...n.flatMap((m) => r.map((_) => s(l, m, _, g))));
|
|
465
463
|
}, { immediate: !0, flush: "post" }), p = () => {
|
|
466
464
|
o(), i();
|
|
467
465
|
};
|
|
@@ -530,7 +528,7 @@ function qe(e, t = {}) {
|
|
|
530
528
|
async function m() {
|
|
531
529
|
s.value && (n != null && n[l] && await n[p](), a.value = !1);
|
|
532
530
|
}
|
|
533
|
-
async function
|
|
531
|
+
async function _() {
|
|
534
532
|
if (!s.value)
|
|
535
533
|
return;
|
|
536
534
|
await m();
|
|
@@ -538,14 +536,14 @@ function qe(e, t = {}) {
|
|
|
538
536
|
S && (await S[o](), a.value = !0);
|
|
539
537
|
}
|
|
540
538
|
async function ie() {
|
|
541
|
-
a.value ? await m() : await
|
|
539
|
+
a.value ? await m() : await _();
|
|
542
540
|
}
|
|
543
541
|
return n && xe(n, g, () => {
|
|
544
542
|
a.value = !!(n != null && n[l]);
|
|
545
543
|
}, !1), r && re(m), {
|
|
546
544
|
isSupported: s,
|
|
547
545
|
isFullscreen: a,
|
|
548
|
-
enter:
|
|
546
|
+
enter: _,
|
|
549
547
|
exit: m,
|
|
550
548
|
toggle: ie
|
|
551
549
|
};
|
|
@@ -603,7 +601,7 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
|
|
|
603
601
|
const n = e, r = t, c = (s) => {
|
|
604
602
|
r("onLoaded", s);
|
|
605
603
|
}, a = D(() => n.actived);
|
|
606
|
-
return
|
|
604
|
+
return M(() => a.value, (s) => {
|
|
607
605
|
s && r("onActivated"), s || r("onDeactivated");
|
|
608
606
|
}), (s, o) => (E(), N("iframe", {
|
|
609
607
|
class: "das-micro-app",
|
|
@@ -718,7 +716,7 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
|
|
|
718
716
|
]),
|
|
719
717
|
tab: C(() => [
|
|
720
718
|
V(a.$slots, "tab", {}, () => [
|
|
721
|
-
F(I(
|
|
719
|
+
F(I(ye), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
|
|
722
720
|
])
|
|
723
721
|
]),
|
|
724
722
|
default: C(() => [
|
|
@@ -773,7 +771,7 @@ const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
|
|
|
773
771
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
774
772
|
});
|
|
775
773
|
const r = w(!1), c = w(!1), a = w("");
|
|
776
|
-
|
|
774
|
+
M(
|
|
777
775
|
() => t.currentRoute.value,
|
|
778
776
|
(i) => {
|
|
779
777
|
if (r.value) {
|
|
Binary file
|
package/packages/style/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";*,:before,:after{border-width:0;border-style:solid;border-color:currentColor}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;height:100%}body{height:100%;margin:0;line-height:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif}#app{width:100%;height:100%}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.dark{color-scheme:dark}label{font-weight:700}*,*:before,*:after{box-sizing:inherit}a:focus,a:active{outline:none}a,a:focus,a:hover{cursor:pointer;color:inherit;text-decoration:none}div:focus{outline:none}*::-webkit-scrollbar-track,*::-webkit-scrollbar-corner{background:transparent}*::-webkit-scrollbar{width:calc(var(--das-ui-scrollbar-thumb-size) + var(--das-ui-scrollbar-padding) * 2);height:calc(var(--das-ui-scrollbar-thumb-size) + var(--das-ui-scrollbar-padding) * 2);background-color:transparent}*::-webkit-scrollbar-thumb{border-radius:calc(var(--das-ui-scrollbar-thumb-size) + var(--das-ui-scrollbar-padding) * 2);border:var(--das-ui-scrollbar-padding) solid transparent;transition:border .15s;background-clip:content-box;background-color:var(--das-ui-scrollbar-thumb-color);cursor:pointer}*::-webkit-scrollbar-thumb:hover{border-left:none;border-right:none;background-color:var(--das-ui-scrollbar-thumb-hover-color)}.clearfix:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.flex-center__y{display:flex;align-items:center}.is-hide{display:none!important}.overflow-hide{overflow:hidden!important}.overflow-visible{overflow:visible!important}.text-break{word-break:break-all}
|
|
1
|
+
@charset "UTF-8";*,:before,:after{border-width:0;border-style:solid;border-color:currentColor}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;height:100%}body{height:100%;margin:0;line-height:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif}#app{width:100%;height:100%}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0!important;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.dark{color-scheme:dark}label{font-weight:700}*,*:before,*:after{box-sizing:inherit}a:focus,a:active{outline:none}a,a:focus,a:hover{cursor:pointer;color:inherit;text-decoration:none}div:focus{outline:none}*::-webkit-scrollbar-track,*::-webkit-scrollbar-corner{background:transparent}*::-webkit-scrollbar{width:calc(var(--das-ui-scrollbar-thumb-size) + var(--das-ui-scrollbar-padding) * 2);height:calc(var(--das-ui-scrollbar-thumb-size) + var(--das-ui-scrollbar-padding) * 2);background-color:transparent}*::-webkit-scrollbar-thumb{border-radius:calc(var(--das-ui-scrollbar-thumb-size) + var(--das-ui-scrollbar-padding) * 2);border:var(--das-ui-scrollbar-padding) solid transparent;transition:border .15s;background-clip:content-box;background-color:var(--das-ui-scrollbar-thumb-color);cursor:pointer}*::-webkit-scrollbar-thumb:hover{border-left:none;border-right:none;background-color:var(--das-ui-scrollbar-thumb-hover-color)}.clearfix:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.flex-center__y{display:flex;align-items:center}.is-hide{display:none!important}.overflow-hide{overflow:hidden!important}.overflow-visible{overflow:visible!important}.text-break{word-break:break-all}
|
|
Binary file
|
package/index-C2ZSdOo4.js.gz
DELETED
|
Binary file
|
package/index-DCv0mp9Q.js.gz
DELETED
|
Binary file
|
package/index-E3_VNsYI.js.gz
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|