@das-fed/web 6.4.0-dev.7 → 6.4.0-dev.9

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 (41) hide show
  1. package/{index-KF0qlXuZ.js → index-1rgcqPwr.js} +14 -14
  2. package/index-1rgcqPwr.js.gz +0 -0
  3. package/{index-DjvYNTdd.js → index-Dj08Rzpl.js} +2785 -2643
  4. package/index-Dj08Rzpl.js.gz +0 -0
  5. package/{packages/main-app-framework/index-Cg3QA-m6.js → index-FqrjMxhu.js} +1 -1
  6. package/{index-BVFBG18b.js → index-kp3YC2yr.js} +1 -1
  7. package/index-kp3YC2yr.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 +11 -14
  11. package/packages/create-das-web-app/index.js.gz +0 -0
  12. package/packages/i18n/index.js.gz +0 -0
  13. package/packages/layout/index.js +152 -154
  14. package/packages/layout/index.js.gz +0 -0
  15. package/packages/layout/style.css +2 -2
  16. package/packages/layout/style.css.gz +0 -0
  17. package/packages/main-app-framework/{index-B-mymH8S.js → index-Bb93MzFY.js} +1 -1
  18. package/packages/main-app-framework/index-Bb93MzFY.js.gz +0 -0
  19. package/packages/main-app-framework/index-BgnG17a9.js +6041 -0
  20. package/packages/main-app-framework/index-BgnG17a9.js.gz +0 -0
  21. package/packages/main-app-framework/index-CaRxqPOy.js +68 -0
  22. package/packages/main-app-framework/index-CaRxqPOy.js.gz +0 -0
  23. package/{index-Bxc6TFIP.js → packages/main-app-framework/index-CeWtWuF1.js} +1 -1
  24. package/packages/main-app-framework/index.js +1 -1
  25. package/packages/main-app-framework/style.css +1 -1
  26. package/packages/main-app-framework/style.css.gz +0 -0
  27. package/packages/micro-frontend/index.js +3 -3
  28. package/packages/micro-frontend/index.js.gz +0 -0
  29. package/packages/micro-frontend/style.css +1 -1
  30. package/packages/style/style.css.gz +0 -0
  31. package/packages/theme/index.js.gz +0 -0
  32. package/style.css +2 -2
  33. package/style.css.gz +0 -0
  34. package/index-BVFBG18b.js.gz +0 -0
  35. package/index-DjvYNTdd.js.gz +0 -0
  36. package/index-KF0qlXuZ.js.gz +0 -0
  37. package/packages/main-app-framework/index-B-mymH8S.js.gz +0 -0
  38. package/packages/main-app-framework/index-C0DqSXpB.js +0 -5915
  39. package/packages/main-app-framework/index-C0DqSXpB.js.gz +0 -0
  40. package/packages/main-app-framework/index-C7g0JYXU.js +0 -68
  41. package/packages/main-app-framework/index-C7g0JYXU.js.gz +0 -0
@@ -1,68 +0,0 @@
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
- import { useRoute as P } from "vue-router";
3
- import { DasSpin as S } from "@das-fed/ui/packages/components/spin/index";
4
- import { layout as C } from "@das-fed/web/packages/layout/index";
5
- import { I as R, e as b, _ as L } from "./index-C0DqSXpB.js";
6
- import { getToken as M, getPersonalInfo as j, getProjectInfo as B } from "@das-fed/utils/common-info";
7
- import { getUrlParams as D } from "@das-fed/utils/common-tools";
8
- const E = {
9
- key: 0,
10
- class: "iframe-container"
11
- }, N = ["src"], T = /* @__PURE__ */ v({
12
- __name: "index",
13
- setup(U) {
14
- const o = r(""), n = r(!0);
15
- C.tab.addEventListener("onPageRefresh", async (e) => {
16
- e && e.path === R && (console.log("onPageRefresh===iframe", e), b(e.applicationCode, [e.code]), n.value = !1, await u(), n.value = !0);
17
- });
18
- const t = r(!1), i = r(null), a = r(!1), f = () => {
19
- var e, s;
20
- a.value && (e = i.value) != null && e.contentWindow && ((s = i.value.contentWindow) == null || s.postMessage(
21
- {
22
- token: M(),
23
- userInfo: j(),
24
- projectInfo: B()
25
- },
26
- o.value
27
- ));
28
- }, m = P();
29
- p(
30
- () => m.query.iframeSrc,
31
- async (e) => {
32
- e && (o.value = e, t.value = !1, await u(), t.value = !0, f());
33
- }
34
- );
35
- const d = () => {
36
- a.value = !0, f();
37
- };
38
- return _(() => {
39
- t.value = !0, o.value = D(location.href, "iframeSrc");
40
- }), h(() => {
41
- a.value = !1, t.value = !1;
42
- }), (e, s) => t.value && n.value ? (c(), l("div", E, [
43
- g(w(S), {
44
- spinning: !a.value
45
- }, {
46
- default: k(() => [
47
- x((c(), l("iframe", {
48
- id: "iframe-view",
49
- ref_key: "iframeRef",
50
- ref: i,
51
- width: "100%",
52
- height: "100%",
53
- src: o.value,
54
- key: o.value,
55
- onLoad: d
56
- }, null, 40, N)), [
57
- [y, a.value]
58
- ])
59
- ]),
60
- _: 1
61
- /* STABLE */
62
- }, 8, ["spinning"])
63
- ])) : I("v-if", !0);
64
- }
65
- }), H = /* @__PURE__ */ L(T, [["__scopeId", "data-v-98dbb97f"]]);
66
- export {
67
- H as default
68
- };