@das-fed/web 6.4.0-dev.2 → 6.4.0-dev.4
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/esm-map.json +1 -2
- package/index--5iw3PcC.js +7970 -0
- package/index--5iw3PcC.js.gz +0 -0
- package/{packages/main-app-framework/index-Twj2RXRy.js → index-BSYJheVx.js} +1 -1
- package/index-BSYJheVx.js.gz +0 -0
- package/{index-DpLK467K.js → index-C5zNxpQk.js} +22 -22
- package/index-C5zNxpQk.js.gz +0 -0
- package/{packages/main-app-framework/index-CRT8yHn-.js → index-D8XgnluX.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +187 -192
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/layout/index.js +219 -224
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/{index-CC5hN73H.js → packages/main-app-framework/index-BkJc1lDT.js} +1 -1
- package/packages/main-app-framework/{index-BqkWKMMe.js → index-C_X3k7z0.js} +22 -22
- package/packages/main-app-framework/index-C_X3k7z0.js.gz +0 -0
- package/packages/main-app-framework/index-D7pfTqeW.js +5917 -0
- package/packages/main-app-framework/index-D7pfTqeW.js.gz +0 -0
- package/{index-D4LFa1We.js → packages/main-app-framework/index-MhsbUVtD.js} +1 -1
- package/packages/main-app-framework/index-MhsbUVtD.js.gz +0 -0
- package/packages/main-app-framework/index.js +3 -2
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +209 -209
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/theme/index.js +24 -24
- package/packages/theme/index.js.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/create-das-web-app/index.d.ts +1 -1
- package/types/i18n/index.d.ts +2 -2
- package/types/layout/store/index.d.ts +1 -1
- package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
- package/types/main-app-framework/business/video-link/index.d.ts +3 -3
- package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
- package/types/main-app-framework/index.d.ts +1 -1
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +2 -2
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
- package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
- package/types/main-app-framework/init-platform/index.d.ts +1 -1
- package/types/micro-frontend/index.d.ts +1 -1
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index-BqgahaIi.js +0 -11086
- package/index-BqgahaIi.js.gz +0 -0
- package/index-D4LFa1We.js.gz +0 -0
- package/index-DpLK467K.js.gz +0 -0
- package/packages/main-app-framework/index-2WWk8ggi.js +0 -9022
- package/packages/main-app-framework/index-2WWk8ggi.js.gz +0 -0
- package/packages/main-app-framework/index-BqkWKMMe.js.gz +0 -0
- package/packages/main-app-framework/index-Twj2RXRy.js.gz +0 -0
|
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-D7pfTqeW.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 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.watermark[data-v-61b46ed6]{position:relative;width:100%;height:100%}.menu-tip-diaolg .content[data-v-f9de08eb]{font-size:16px;color:var(--menu-tip-diaolg-content);text-align:center;line-height:24px;font-weight:400}.menu-tip-diaolg .divide[data-v-f9de08eb]{width:100%;height:1px;background-color:var(--menu-tip-diaolg-divide);margin:22px 0 8px}.menu-tip-diaolg .desc-item[data-v-f9de08eb]{font-size:14px;color:var(--menu-tip-diaolg-info);font-weight:400;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-align:left;line-height:21px}.wrapper[data-v-2e9b0fda]{width:var(--6cb537a6);height:var(--6cb537a6);border:1px solid rgb(217,217,217);box-sizing:border-box}.wrapper.is-active[data-v-2e9b0fda]{border-color:var(--das-ui-tree-node-active-font-color)}.layout-wrapper[data-v-d36ddc74]{background-color:#fff;width:100%;height:100%;display:flex;flex-wrap:wrap}.direction-control[data-v-6d1b5d7b]{visibility:hidden;position:absolute;right:10px;bottom:50px;display:grid;grid-template-rows:30px 30px 30px;grid-template-columns:30px 30px 30px;gap:5px}.direction-control .icon[data-v-6d1b5d7b]{width:30px;height:30px;background-repeat:no-repeat;cursor:pointer}.direction-control .icon.icon-top-left[data-v-6d1b5d7b]{background-image:url(../../images/top-left-arrow-gray.png)}.direction-control .icon.icon-top-left[data-v-6d1b5d7b]:hover{background-image:url(../../images/top-left-arrow-blue.png)}.direction-control .icon.icon-top[data-v-6d1b5d7b]{background-image:url(../../images/top-arrow-gray.png)}.direction-control .icon.icon-top[data-v-6d1b5d7b]:hover{background-image:url(../../images/top-arrow-blue.png)}.direction-control .icon.icon-top-right[data-v-6d1b5d7b]{background-image:url(../../images/top-right-arrow-gray.png)}.direction-control .icon.icon-top-right[data-v-6d1b5d7b]:hover{background-image:url(../../images/top-right-arrow-blue.png)}.direction-control .icon.icon-left[data-v-6d1b5d7b]{background-image:url(../../images/left-arrow-gray.png)}.direction-control .icon.icon-left[data-v-6d1b5d7b]:hover{background-image:url(../../images/left-arrow-blue.png)}.direction-control .icon.icon-auto[data-v-6d1b5d7b]{background-image:url(../../images/auto-arrow-gray.png)}.direction-control .icon.icon-auto[data-v-6d1b5d7b]:hover{background-image:url(../../images/auto-arrow-blue.png)}.direction-control .icon.icon-right[data-v-6d1b5d7b]{background-image:url(../../images/right-arrow-gray.png)}.direction-control .icon.icon-right[data-v-6d1b5d7b]:hover{background-image:url(../../images/right-arrow-blue.png)}.direction-control .icon.icon-bottom-left[data-v-6d1b5d7b]{background-image:url(../../images/bottom-left-arrow-gray.png)}.direction-control .icon.icon-bottom-left[data-v-6d1b5d7b]:hover{background-image:url(../../images/bottom-left-arrow-blue.png)}.direction-control .icon.icon-bottom[data-v-6d1b5d7b]{background-image:url(../../images/bottom-arrow-gray.png)}.direction-control .icon.icon-bottom[data-v-6d1b5d7b]:hover{background-image:url(../../images/bottom-arrow-blue.png)}.direction-control .icon.icon-bottom-right[data-v-6d1b5d7b]{background-image:url(../../images/bottom-right-arrow-gray.png)}.direction-control .icon.icon-bottom-right[data-v-6d1b5d7b]:hover{background-image:url(../../images/bottom-right-arrow-blue.png)}.video-wrapper[data-v-
|
|
1
|
+
@charset "UTF-8";.watermark[data-v-61b46ed6]{position:relative;width:100%;height:100%}.menu-tip-diaolg .content[data-v-f9de08eb]{font-size:16px;color:var(--menu-tip-diaolg-content);text-align:center;line-height:24px;font-weight:400}.menu-tip-diaolg .divide[data-v-f9de08eb]{width:100%;height:1px;background-color:var(--menu-tip-diaolg-divide);margin:22px 0 8px}.menu-tip-diaolg .desc-item[data-v-f9de08eb]{font-size:14px;color:var(--menu-tip-diaolg-info);font-weight:400;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-align:left;line-height:21px}.wrapper[data-v-2e9b0fda]{width:var(--6cb537a6);height:var(--6cb537a6);border:1px solid rgb(217,217,217);box-sizing:border-box}.wrapper.is-active[data-v-2e9b0fda]{border-color:var(--das-ui-tree-node-active-font-color)}.layout-wrapper[data-v-d36ddc74]{background-color:#fff;width:100%;height:100%;display:flex;flex-wrap:wrap}.direction-control[data-v-6d1b5d7b]{visibility:hidden;position:absolute;right:10px;bottom:50px;display:grid;grid-template-rows:30px 30px 30px;grid-template-columns:30px 30px 30px;gap:5px}.direction-control .icon[data-v-6d1b5d7b]{width:30px;height:30px;background-repeat:no-repeat;cursor:pointer}.direction-control .icon.icon-top-left[data-v-6d1b5d7b]{background-image:url(../../images/top-left-arrow-gray.png)}.direction-control .icon.icon-top-left[data-v-6d1b5d7b]:hover{background-image:url(../../images/top-left-arrow-blue.png)}.direction-control .icon.icon-top[data-v-6d1b5d7b]{background-image:url(../../images/top-arrow-gray.png)}.direction-control .icon.icon-top[data-v-6d1b5d7b]:hover{background-image:url(../../images/top-arrow-blue.png)}.direction-control .icon.icon-top-right[data-v-6d1b5d7b]{background-image:url(../../images/top-right-arrow-gray.png)}.direction-control .icon.icon-top-right[data-v-6d1b5d7b]:hover{background-image:url(../../images/top-right-arrow-blue.png)}.direction-control .icon.icon-left[data-v-6d1b5d7b]{background-image:url(../../images/left-arrow-gray.png)}.direction-control .icon.icon-left[data-v-6d1b5d7b]:hover{background-image:url(../../images/left-arrow-blue.png)}.direction-control .icon.icon-auto[data-v-6d1b5d7b]{background-image:url(../../images/auto-arrow-gray.png)}.direction-control .icon.icon-auto[data-v-6d1b5d7b]:hover{background-image:url(../../images/auto-arrow-blue.png)}.direction-control .icon.icon-right[data-v-6d1b5d7b]{background-image:url(../../images/right-arrow-gray.png)}.direction-control .icon.icon-right[data-v-6d1b5d7b]:hover{background-image:url(../../images/right-arrow-blue.png)}.direction-control .icon.icon-bottom-left[data-v-6d1b5d7b]{background-image:url(../../images/bottom-left-arrow-gray.png)}.direction-control .icon.icon-bottom-left[data-v-6d1b5d7b]:hover{background-image:url(../../images/bottom-left-arrow-blue.png)}.direction-control .icon.icon-bottom[data-v-6d1b5d7b]{background-image:url(../../images/bottom-arrow-gray.png)}.direction-control .icon.icon-bottom[data-v-6d1b5d7b]:hover{background-image:url(../../images/bottom-arrow-blue.png)}.direction-control .icon.icon-bottom-right[data-v-6d1b5d7b]{background-image:url(../../images/bottom-right-arrow-gray.png)}.direction-control .icon.icon-bottom-right[data-v-6d1b5d7b]:hover{background-image:url(../../images/bottom-right-arrow-blue.png)}.video-wrapper[data-v-866a3799]{width:100%;height:100%;position:relative}.video-wrapper:hover .video-top[data-v-866a3799],.video-wrapper:hover .video-bottom[data-v-866a3799],.video-wrapper:hover .direction-control[data-v-866a3799]{visibility:visible}.video-wrapper .icon[data-v-866a3799]{cursor:pointer}.video-wrapper .video-top[data-v-866a3799],.video-wrapper .video-bottom[data-v-866a3799]{position:absolute;left:0;width:100%;height:40px;background-color:#0006;display:flex;align-items:center;justify-content:space-between;z-index:1;color:#fff;font-size:14px;visibility:hidden}.video-wrapper .video-top[data-v-866a3799]{top:0}.video-wrapper .video-top .video-top_l[data-v-866a3799]{min-width:0;flex:1}.video-wrapper .video-top .video-top_l .video-title[data-v-866a3799]{margin-left:16px}.video-wrapper .video-top .video-top_r[data-v-866a3799]{flex-shrink:0;display:flex;align-items:center}.video-wrapper .video-top .video-top_r .play-status[data-v-866a3799]{font-size:14px;color:#fff;margin-right:10px}.video-wrapper .video-top .video-top_r .close-icon[data-v-866a3799]{margin-right:10px}.video-wrapper .video-bottom[data-v-866a3799]{bottom:0}.video-wrapper .video-bottom .controls[data-v-866a3799]{display:flex;align-items:center}.video-wrapper .video-bottom .controls .icon[data-v-866a3799]{margin-right:16px;width:16px}.das-linakge-video-dialog{z-index:9999!important}.das-linakge-video-dialog.one-video,.das-linakge-video-dialog.four-video{width:933px!important;height:595px!important}.das-linakge-video-dialog.nine-video{width:1370px!important;height:840px!important}.foot-btn-box .das-ui-button+.das-ui-button[data-v-a6a58a01]{margin-left:12px}.handle-alarm-dialog-content[data-v-a6a58a01]{width:100%;height:100%;background-color:#fff;padding:30px 190px 0;display:flex;align-items:center;justify-content:center}.handle-alarm-dialog-content .select-check[data-v-a6a58a01]{width:100%;display:flex;flex-direction:column}.handle-alarm-dialog-content .select-check .form-box[data-v-a6a58a01]{display:flex;align-items:flex-end}.handle-alarm-dialog-content .select-check .form-box .das-ui-tree-select[data-v-a6a58a01],.handle-alarm-dialog-content .select-check .form-box .das-ui-input[data-v-a6a58a01]{width:50%;flex-grow:0}.handle-alarm-dialog-content .select-check .form-box .das-ui-input[data-v-a6a58a01]{margin-left:8px}.alarm-notify{padding:0!important;background-color:transparent}.alarm-notify.ant-notification-notice .ant-notification-notice-close{top:13px}.alarm-notify.ant-notification-notice .ant-notification-notice-close .ant-notification-close-icon{font-size:15px}.alarm-notify .ant-notification-notice-description{padding:0!important}.alarm-notify .ant-notification-notice-message{display:none}.alarm-notify .alarm-msg{box-sizing:border-box;border-radius:4px;z-index:99}.alarm-notify .alarm-msg .content-box{width:100%;padding:8px 20px 20px}.alarm-notify .alarm-msg .content-box .alarm-msg-line{display:flex;align-items:flex-start;font-size:12px;color:#212121;line-height:18px}.alarm-notify .alarm-msg .content-box .alarm-msg-line+.alarm-msg-line{margin-top:8px}.alarm-notify .alarm-msg .content-box .alarm-msg-line .alarm-msg-line-left{flex-shrink:0}.alarm-notify .alarm-msg .content-box .alarm-msg-line .alarm-msg-line-right{flex:1}.alarm-notify .alarm-msg .title-detail{width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;padding:0 20px}.alarm-notify .alarm-msg .title-detail .title-left{display:flex;align-items:center}.alarm-notify .alarm-msg .title-detail .title-left .icon-box{width:20px;height:20px;border-radius:50%;background-color:#fff;margin-right:16px;display:flex;align-items:center;justify-content:center;font-size:16px}.alarm-notify .alarm-msg .title-detail .title-left .title-box{font-size:14px;font-weight:700;color:#fff}.alarm-notify .alarm-msg .title-detail .title-right .icon-close-box{width:20px;height:20px;border-radius:50%;cursor:pointer}.alarm-notify .alarm-msg .btn-box{margin-top:8px}.alarm-notify .alarm-msg .btn-box .das-ui-button+.das-ui-button{margin-left:16px}.alarm-notify .alarm-msg .alarm-content{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.alarm-notify .alarm-msg .alarm-content-object{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#das-ui-notification-container .ant-notification.ant-notification-bottomRight>div .ant-notification-notice.alarm-notify:nth-of-type(n+3){display:none}.message-center-notify .ant-notification-notice-content .ant-notification-notice-icon,.message-center-notify .ant-notification-notice-content .ant-notification-notice-message{display:none!important}.message-center-notify .ant-notification-notice-content .ant-notification-notice-description .custom-title{display:flex;align-items:center}.message-center-notify .ant-notification-notice-content .ant-notification-notice-description .custom-title .title{flex:1;min-width:0;font-size:16px;color:#212121;margin-left:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:20px}.message-center-notify .ant-notification-notice-content .ant-notification-notice-description .custom-content{font-size:12px;color:#212121;line-height:18px;padding-top:5px;padding-left:33px;word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.message-center-notify .ant-notification-notice-content .ant-notification-notice-description .footer-btn{font-size:12px;color:#5582f3;margin-top:8px;cursor:pointer;padding-left:33px}.das-main-app-container[data-v-8a5864d3]{position:relative;width:100%;height:100%}.iframe-container[data-v-9d185d90]{width:100%;height:100%;background-color:var(--das-layout-main-bg-color)}.iframe-container #iframe-view[data-v-9d185d90]{background-color:transparent}
|
|
Binary file
|
|
@@ -1,35 +1,7 @@
|
|
|
1
1
|
import '@das-fed/web/packages/micro-frontend/style.css';
|
|
2
|
-
import {
|
|
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";
|
|
3
3
|
import { DasWebLayout as he, DasWebNav as we, DasWebMenu as ge, DasWebTabs as _e } from "@das-fed/web/packages/layout/index";
|
|
4
|
-
const
|
|
5
|
-
__name: "das-micro-app",
|
|
6
|
-
props: {
|
|
7
|
-
src: {},
|
|
8
|
-
name: {},
|
|
9
|
-
actived: { type: Boolean }
|
|
10
|
-
},
|
|
11
|
-
emits: ["onLoaded", "onActivated", "onDeactivated"],
|
|
12
|
-
setup(e, { emit: t }) {
|
|
13
|
-
const n = e, r = t, c = (s) => {
|
|
14
|
-
r("onLoaded", s);
|
|
15
|
-
}, a = T(() => n.actived);
|
|
16
|
-
return y(() => a.value, (s) => {
|
|
17
|
-
s && r("onActivated"), s || r("onDeactivated");
|
|
18
|
-
}), (s, o) => (I(), N("iframe", {
|
|
19
|
-
class: "das-micro-app",
|
|
20
|
-
src: n.src,
|
|
21
|
-
entry: n.src,
|
|
22
|
-
name: n.name,
|
|
23
|
-
frameborder: "0",
|
|
24
|
-
onLoad: c
|
|
25
|
-
}, null, 40, ye));
|
|
26
|
-
}
|
|
27
|
-
}), te = (e, t) => {
|
|
28
|
-
const n = e.__vccOpts || e;
|
|
29
|
-
for (const [r, c] of t)
|
|
30
|
-
n[r] = c;
|
|
31
|
-
return n;
|
|
32
|
-
}, Le = /* @__PURE__ */ te(Me, [["__scopeId", "data-v-2266bab0"]]), 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), R = w([]), D = w(!0);
|
|
33
5
|
let A = null, h = null, L = null;
|
|
34
6
|
const b = (e, t, n) => {
|
|
35
7
|
var c, a, i, s;
|
|
@@ -47,7 +19,7 @@ const b = (e, t, n) => {
|
|
|
47
19
|
if (!n || !r) return;
|
|
48
20
|
const { origin: c } = new URL(r);
|
|
49
21
|
(a = window.top) == null || a.postMessage({ type: e, data: t }, c);
|
|
50
|
-
},
|
|
22
|
+
}, ye = () => {
|
|
51
23
|
h || (h || (h = {}), window.addEventListener(
|
|
52
24
|
"message",
|
|
53
25
|
(e) => {
|
|
@@ -58,7 +30,7 @@ const b = (e, t, n) => {
|
|
|
58
30
|
},
|
|
59
31
|
!1
|
|
60
32
|
));
|
|
61
|
-
},
|
|
33
|
+
}, Me = () => {
|
|
62
34
|
A || (A || (A = {}), window.addEventListener(
|
|
63
35
|
"message",
|
|
64
36
|
(e) => {
|
|
@@ -69,16 +41,16 @@ const b = (e, t, n) => {
|
|
|
69
41
|
},
|
|
70
42
|
!1
|
|
71
43
|
));
|
|
72
|
-
},
|
|
73
|
-
|
|
44
|
+
}, Le = (e, t) => {
|
|
45
|
+
Me();
|
|
74
46
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
75
47
|
return A[e] || (A[e] = {}), A[e][n] = t, {
|
|
76
48
|
remove: () => {
|
|
77
49
|
A[e] && A[e][n] && delete A[e][n];
|
|
78
50
|
}
|
|
79
51
|
};
|
|
80
|
-
},
|
|
81
|
-
|
|
52
|
+
}, be = (e, t) => {
|
|
53
|
+
ye();
|
|
82
54
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8);
|
|
83
55
|
return h[e] || (h[e] = {}), h[e][n] = t, {
|
|
84
56
|
remove: () => {
|
|
@@ -156,8 +128,8 @@ const b = (e, t, n) => {
|
|
|
156
128
|
},
|
|
157
129
|
sendMessageToMicroApp: b,
|
|
158
130
|
sendMessageToMainApp: q,
|
|
159
|
-
addEventListenerFromMainApp:
|
|
160
|
-
addEventListenerFromMicroApp:
|
|
131
|
+
addEventListenerFromMainApp: Le,
|
|
132
|
+
addEventListenerFromMicroApp: be,
|
|
161
133
|
setMainAppOverlay: (e, t) => {
|
|
162
134
|
q("bodyOverlay", { visible: e, style: t });
|
|
163
135
|
},
|
|
@@ -207,130 +179,7 @@ const b = (e, t, n) => {
|
|
|
207
179
|
setMainAppLayoutVisible: (e) => {
|
|
208
180
|
q("layoutVisible", { visible: e });
|
|
209
181
|
}
|
|
210
|
-
},
|
|
211
|
-
__name: "das-micro-apps",
|
|
212
|
-
setup(e) {
|
|
213
|
-
const t = w(null), n = async (a, i) => {
|
|
214
|
-
const s = f.value.find((m) => m.name === i);
|
|
215
|
-
if (!s) return;
|
|
216
|
-
s.dom = a.target, await ee(), await new Promise((m) => setTimeout(m, 50));
|
|
217
|
-
const o = () => {
|
|
218
|
-
const m = t.value.getBoundingClientRect() || {};
|
|
219
|
-
return m.width = t.value.clientWidth, m.height = t.value.clientHeight, m;
|
|
220
|
-
};
|
|
221
|
-
d.sendMessageToMicroApp(i, "onLoaded", {
|
|
222
|
-
href: location.href,
|
|
223
|
-
microAppContainerRect: o(),
|
|
224
|
-
entry: s.entry,
|
|
225
|
-
name: s.name
|
|
226
|
-
});
|
|
227
|
-
const { dom: p, ...l } = s;
|
|
228
|
-
d.triggerMicroAppLifeCycleListener("onLoaded", l), new ResizeObserver(() => {
|
|
229
|
-
d.sendMessageToMicroApp(i, "resize", o());
|
|
230
|
-
}).observe(t.value), d.sendMessageToMicroApp(i, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), d.sendMessageToMicroApp(i, "setProxSsoStatus", { visible: !0, parentHref: location.href });
|
|
231
|
-
}, r = (a, i) => {
|
|
232
|
-
const s = f.value.find((l) => l.name === i);
|
|
233
|
-
if (!s) return;
|
|
234
|
-
const { dom: o, ...p } = s;
|
|
235
|
-
d.sendMessageToMicroApp(i, "onActivated"), d.triggerMicroAppLifeCycleListener("onActivated", p);
|
|
236
|
-
}, c = (a, i) => {
|
|
237
|
-
const s = f.value.find((l) => l.name === i);
|
|
238
|
-
if (!s) return;
|
|
239
|
-
const { dom: o, ...p } = s;
|
|
240
|
-
d.sendMessageToMicroApp(i, "onDeactivated"), d.triggerMicroAppLifeCycleListener("onDeactivated", p);
|
|
241
|
-
};
|
|
242
|
-
return (a, i) => (I(), N(
|
|
243
|
-
"div",
|
|
244
|
-
{
|
|
245
|
-
ref_key: "containerRef",
|
|
246
|
-
ref: t,
|
|
247
|
-
class: "das-micro-app-container"
|
|
248
|
-
},
|
|
249
|
-
[
|
|
250
|
-
(I(!0), N(
|
|
251
|
-
$,
|
|
252
|
-
null,
|
|
253
|
-
oe(E(f), (s) => (I(), N(
|
|
254
|
-
$,
|
|
255
|
-
null,
|
|
256
|
-
[
|
|
257
|
-
s.loaded ? ce((I(), Z(Le, {
|
|
258
|
-
key: 0,
|
|
259
|
-
src: s.src || "",
|
|
260
|
-
name: s.name,
|
|
261
|
-
actived: s.actived,
|
|
262
|
-
onOnLoaded: (o) => n(o, s.name),
|
|
263
|
-
onOnActivated: (o) => r(o, s.name),
|
|
264
|
-
onOnDeactivated: (o) => c(o, s.name)
|
|
265
|
-
}, null, 8, ["src", "name", "actived", "onOnLoaded", "onOnActivated", "onOnDeactivated"])), [
|
|
266
|
-
[le, s.actived]
|
|
267
|
-
]) : ue("v-if", !0)
|
|
268
|
-
],
|
|
269
|
-
64
|
|
270
|
-
/* STABLE_FRAGMENT */
|
|
271
|
-
))),
|
|
272
|
-
256
|
|
273
|
-
/* UNKEYED_FRAGMENT */
|
|
274
|
-
))
|
|
275
|
-
],
|
|
276
|
-
512
|
|
277
|
-
/* NEED_PATCH */
|
|
278
|
-
));
|
|
279
|
-
}
|
|
280
|
-
}), Oe = /* @__PURE__ */ te(Pe, [["__scopeId", "data-v-2e3798bc"]]), Ze = /* @__PURE__ */ x({
|
|
281
|
-
__name: "das-main-app-layout",
|
|
282
|
-
props: {
|
|
283
|
-
transitionConfig: { default: () => {
|
|
284
|
-
} },
|
|
285
|
-
showLayout: { type: Boolean, default: !0 },
|
|
286
|
-
showAside: { type: Boolean, default: !0 },
|
|
287
|
-
showTabs: { type: Boolean, default: !0 },
|
|
288
|
-
menuAttr: { default: () => {
|
|
289
|
-
} },
|
|
290
|
-
tabsAttr: { default: () => {
|
|
291
|
-
} }
|
|
292
|
-
},
|
|
293
|
-
setup(e) {
|
|
294
|
-
const t = e, n = T(() => !k.value), r = T(() => ({
|
|
295
|
-
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
296
|
-
...t.transitionConfig
|
|
297
|
-
})), c = T(() => ({ showLayout: t.showLayout, showAside: t.showAside, showTabs: t.showTabs }));
|
|
298
|
-
return (a, i) => (I(), Z(E(he), de({
|
|
299
|
-
"transition-config": r.value,
|
|
300
|
-
"router-view-visible": n.value
|
|
301
|
-
}, c.value), {
|
|
302
|
-
header: C(() => [
|
|
303
|
-
V(a.$slots, "header", {}, () => [
|
|
304
|
-
F(E(we))
|
|
305
|
-
])
|
|
306
|
-
]),
|
|
307
|
-
aside: C(() => [
|
|
308
|
-
V(a.$slots, "aside", {}, () => [
|
|
309
|
-
F(E(ge), { menuAttr: a.menuAttr }, null, 8, ["menuAttr"])
|
|
310
|
-
])
|
|
311
|
-
]),
|
|
312
|
-
tab: C(() => [
|
|
313
|
-
V(a.$slots, "tab", {}, () => [
|
|
314
|
-
F(E(_e), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
|
|
315
|
-
])
|
|
316
|
-
]),
|
|
317
|
-
default: C(() => [
|
|
318
|
-
F(Oe)
|
|
319
|
-
]),
|
|
320
|
-
_: 3
|
|
321
|
-
/* FORWARDED */
|
|
322
|
-
}, 16, ["transition-config", "router-view-visible"]));
|
|
323
|
-
}
|
|
324
|
-
}), ne = /* @__PURE__ */ x({
|
|
325
|
-
__name: "das-micro-app-ghost",
|
|
326
|
-
setup(e) {
|
|
327
|
-
return pe(() => {
|
|
328
|
-
setTimeout(() => {
|
|
329
|
-
document.documentElement.checkVisibility() && history.back();
|
|
330
|
-
}, 300);
|
|
331
|
-
}), (t, n) => null;
|
|
332
|
-
}
|
|
333
|
-
}), u = O({
|
|
182
|
+
}, u = O({
|
|
334
183
|
visible: !1,
|
|
335
184
|
logo: "",
|
|
336
185
|
items: [],
|
|
@@ -341,7 +190,7 @@ const b = (e, t, n) => {
|
|
|
341
190
|
// activeItem: '',
|
|
342
191
|
// activeProject: {},
|
|
343
192
|
eventListeners: {}
|
|
344
|
-
}),
|
|
193
|
+
}), Ie = {
|
|
345
194
|
show: () => {
|
|
346
195
|
u.visible = !0;
|
|
347
196
|
},
|
|
@@ -417,7 +266,7 @@ const b = (e, t, n) => {
|
|
|
417
266
|
}, _ = O({
|
|
418
267
|
items: [],
|
|
419
268
|
eventListeners: {}
|
|
420
|
-
}),
|
|
269
|
+
}), Ee = {
|
|
421
270
|
setItems: (e) => {
|
|
422
271
|
_.items = e;
|
|
423
272
|
},
|
|
@@ -462,7 +311,7 @@ const b = (e, t, n) => {
|
|
|
462
311
|
}, v = O({
|
|
463
312
|
items: [],
|
|
464
313
|
eventListeners: {}
|
|
465
|
-
}),
|
|
314
|
+
}), Se = {
|
|
466
315
|
setItems: (e) => {
|
|
467
316
|
v.items = e;
|
|
468
317
|
},
|
|
@@ -511,7 +360,7 @@ const b = (e, t, n) => {
|
|
|
511
360
|
}
|
|
512
361
|
}, P = O({
|
|
513
362
|
eventListeners: {}
|
|
514
|
-
}),
|
|
363
|
+
}), Pe = {
|
|
515
364
|
triggerEventListener: (e, t, n) => {
|
|
516
365
|
var i;
|
|
517
366
|
const r = P.eventListeners, { autoRemove: c = !1 } = n || {}, a = [];
|
|
@@ -546,11 +395,11 @@ const b = (e, t, n) => {
|
|
|
546
395
|
}, W = O({
|
|
547
396
|
visible: !1,
|
|
548
397
|
style: {}
|
|
549
|
-
}),
|
|
398
|
+
}), Oe = {
|
|
550
399
|
set: (e, t) => {
|
|
551
400
|
W.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (W.style = t);
|
|
552
401
|
}
|
|
553
|
-
},
|
|
402
|
+
}, Ce = {
|
|
554
403
|
nav: u,
|
|
555
404
|
menu: _,
|
|
556
405
|
tab: v,
|
|
@@ -558,52 +407,57 @@ const b = (e, t, n) => {
|
|
|
558
407
|
iframeView: P,
|
|
559
408
|
visible: w(!0)
|
|
560
409
|
}, j = {
|
|
561
|
-
nav:
|
|
562
|
-
menu:
|
|
563
|
-
tab:
|
|
564
|
-
overlay:
|
|
565
|
-
iframeView:
|
|
566
|
-
setVisible: (e) =>
|
|
410
|
+
nav: Ie,
|
|
411
|
+
menu: Ee,
|
|
412
|
+
tab: Se,
|
|
413
|
+
overlay: Oe,
|
|
414
|
+
iframeView: Pe,
|
|
415
|
+
setVisible: (e) => Ce.visible.value = e
|
|
416
|
+
}, te = (e, t) => {
|
|
417
|
+
const n = e.__vccOpts || e;
|
|
418
|
+
for (const [r, c] of t)
|
|
419
|
+
n[r] = c;
|
|
420
|
+
return n;
|
|
567
421
|
};
|
|
568
422
|
var H;
|
|
569
|
-
const B = typeof window < "u",
|
|
423
|
+
const B = typeof window < "u", Fe = (e) => typeof e == "string", Re = () => {
|
|
570
424
|
};
|
|
571
425
|
B && ((H = window == null ? void 0 : window.navigator) != null && H.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
572
|
-
function
|
|
573
|
-
return typeof e == "function" ? e() :
|
|
426
|
+
function ne(e) {
|
|
427
|
+
return typeof e == "function" ? e() : I(e);
|
|
574
428
|
}
|
|
575
|
-
function
|
|
429
|
+
function De(e) {
|
|
576
430
|
return e;
|
|
577
431
|
}
|
|
578
|
-
function
|
|
579
|
-
return
|
|
432
|
+
function re(e) {
|
|
433
|
+
return oe() ? (ce(e), !0) : !1;
|
|
580
434
|
}
|
|
581
|
-
function
|
|
582
|
-
|
|
435
|
+
function Te(e, t = !0) {
|
|
436
|
+
le() ? ue(e) : t ? e() : Z(e);
|
|
583
437
|
}
|
|
584
|
-
function
|
|
438
|
+
function se(e) {
|
|
585
439
|
var t;
|
|
586
|
-
const n =
|
|
440
|
+
const n = ne(e);
|
|
587
441
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
588
442
|
}
|
|
589
|
-
const
|
|
590
|
-
function
|
|
443
|
+
const Ne = B ? window : void 0, ke = B ? window.document : void 0;
|
|
444
|
+
function xe(...e) {
|
|
591
445
|
let t, n, r, c;
|
|
592
|
-
if (
|
|
593
|
-
return
|
|
446
|
+
if (Fe(e[0]) || Array.isArray(e[0]) ? ([n, r, c] = e, t = Ne) : [t, n, r, c] = e, !t)
|
|
447
|
+
return Re;
|
|
594
448
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
595
449
|
const a = [], i = () => {
|
|
596
450
|
a.forEach((l) => l()), a.length = 0;
|
|
597
|
-
}, s = (l, g, m, M) => (l.addEventListener(g, m, M), () => l.removeEventListener(g, m, M)), o = y(() => [
|
|
451
|
+
}, s = (l, g, m, M) => (l.addEventListener(g, m, M), () => l.removeEventListener(g, m, M)), o = y(() => [se(t), ne(c)], ([l, g]) => {
|
|
598
452
|
i(), l && a.push(...n.flatMap((m) => r.map((M) => s(l, m, M, g))));
|
|
599
453
|
}, { immediate: !0, flush: "post" }), p = () => {
|
|
600
454
|
o(), i();
|
|
601
455
|
};
|
|
602
|
-
return
|
|
456
|
+
return re(p), p;
|
|
603
457
|
}
|
|
604
|
-
function
|
|
458
|
+
function Ve(e, t = !1) {
|
|
605
459
|
const n = w(), r = () => n.value = !!e();
|
|
606
|
-
return r(),
|
|
460
|
+
return r(), Te(r, t), n;
|
|
607
461
|
}
|
|
608
462
|
const U = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, G = "__vueuse_ssr_handlers__";
|
|
609
463
|
U[G] = U[G] || {};
|
|
@@ -649,10 +503,10 @@ const J = [
|
|
|
649
503
|
"MSFullscreenError"
|
|
650
504
|
]
|
|
651
505
|
];
|
|
652
|
-
function
|
|
653
|
-
const { document: n =
|
|
506
|
+
function qe(e, t = {}) {
|
|
507
|
+
const { document: n = ke, autoExit: r = !1 } = t, c = n == null ? void 0 : n.querySelector("html"), a = w(!1);
|
|
654
508
|
let i = J[0];
|
|
655
|
-
const s =
|
|
509
|
+
const s = Ve(() => {
|
|
656
510
|
if (n) {
|
|
657
511
|
for (const S of J)
|
|
658
512
|
if (S[1] in n)
|
|
@@ -668,15 +522,15 @@ function ze(e, t = {}) {
|
|
|
668
522
|
if (!s.value)
|
|
669
523
|
return;
|
|
670
524
|
await m();
|
|
671
|
-
const S =
|
|
525
|
+
const S = se(c);
|
|
672
526
|
S && (await S[o](), a.value = !0);
|
|
673
527
|
}
|
|
674
528
|
async function ie() {
|
|
675
529
|
a.value ? await m() : await M();
|
|
676
530
|
}
|
|
677
|
-
return n &&
|
|
531
|
+
return n && xe(n, g, () => {
|
|
678
532
|
a.value = !!(n != null && n[l]);
|
|
679
|
-
}, !1), r &&
|
|
533
|
+
}, !1), r && re(m), {
|
|
680
534
|
isSupported: s,
|
|
681
535
|
isFullscreen: a,
|
|
682
536
|
enter: M,
|
|
@@ -688,15 +542,15 @@ var K;
|
|
|
688
542
|
(function(e) {
|
|
689
543
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
690
544
|
})(K || (K = {}));
|
|
691
|
-
var
|
|
545
|
+
var Qe = Object.defineProperty, X = Object.getOwnPropertySymbols, We = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable, Y = (e, t, n) => t in e ? Qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $e = (e, t) => {
|
|
692
546
|
for (var n in t || (t = {}))
|
|
693
|
-
|
|
547
|
+
We.call(t, n) && Y(e, n, t[n]);
|
|
694
548
|
if (X)
|
|
695
549
|
for (var n of X(t))
|
|
696
|
-
|
|
550
|
+
Be.call(t, n) && Y(e, n, t[n]);
|
|
697
551
|
return e;
|
|
698
552
|
};
|
|
699
|
-
const
|
|
553
|
+
const ze = {
|
|
700
554
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
701
555
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
702
556
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -722,15 +576,161 @@ const Je = {
|
|
|
722
576
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
723
577
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
724
578
|
};
|
|
725
|
-
|
|
726
|
-
linear:
|
|
727
|
-
},
|
|
728
|
-
const
|
|
579
|
+
$e({
|
|
580
|
+
linear: De
|
|
581
|
+
}, ze);
|
|
582
|
+
const je = ["src", "entry", "name"], He = /* @__PURE__ */ x({
|
|
583
|
+
__name: "das-micro-app",
|
|
584
|
+
props: {
|
|
585
|
+
src: {},
|
|
586
|
+
name: {},
|
|
587
|
+
actived: { type: Boolean }
|
|
588
|
+
},
|
|
589
|
+
emits: ["onLoaded", "onActivated", "onDeactivated"],
|
|
590
|
+
setup(e, { emit: t }) {
|
|
591
|
+
const n = e, r = t, c = (s) => {
|
|
592
|
+
r("onLoaded", s);
|
|
593
|
+
}, a = T(() => n.actived);
|
|
594
|
+
return y(() => a.value, (s) => {
|
|
595
|
+
s && r("onActivated"), s || r("onDeactivated");
|
|
596
|
+
}), (s, o) => (E(), N("iframe", {
|
|
597
|
+
class: "das-micro-app",
|
|
598
|
+
src: n.src,
|
|
599
|
+
entry: n.src,
|
|
600
|
+
name: n.name,
|
|
601
|
+
frameborder: "0",
|
|
602
|
+
onLoad: c
|
|
603
|
+
}, null, 40, je));
|
|
604
|
+
}
|
|
605
|
+
}), Ue = /* @__PURE__ */ te(He, [["__scopeId", "data-v-2266bab0"]]), Ge = /* @__PURE__ */ x({
|
|
606
|
+
__name: "das-micro-apps",
|
|
607
|
+
setup(e) {
|
|
608
|
+
const t = w(null), n = async (a, i) => {
|
|
609
|
+
const s = f.value.find((m) => m.name === i);
|
|
610
|
+
if (!s) return;
|
|
611
|
+
s.dom = a.target, await Z(), await new Promise((m) => setTimeout(m, 50));
|
|
612
|
+
const o = () => {
|
|
613
|
+
const m = t.value.getBoundingClientRect() || {};
|
|
614
|
+
return m.width = t.value.clientWidth, m.height = t.value.clientHeight, m;
|
|
615
|
+
};
|
|
616
|
+
d.sendMessageToMicroApp(i, "onLoaded", {
|
|
617
|
+
href: location.href,
|
|
618
|
+
microAppContainerRect: o(),
|
|
619
|
+
entry: s.entry,
|
|
620
|
+
name: s.name
|
|
621
|
+
});
|
|
622
|
+
const { dom: p, ...l } = s;
|
|
623
|
+
d.triggerMicroAppLifeCycleListener("onLoaded", l), new ResizeObserver(() => {
|
|
624
|
+
d.sendMessageToMicroApp(i, "resize", o());
|
|
625
|
+
}).observe(t.value), d.sendMessageToMicroApp(i, "setProxyMessageStatus", { visible: !0, parentHref: location.href }), d.sendMessageToMicroApp(i, "setProxSsoStatus", { visible: !0, parentHref: location.href });
|
|
626
|
+
}, r = (a, i) => {
|
|
627
|
+
const s = f.value.find((l) => l.name === i);
|
|
628
|
+
if (!s) return;
|
|
629
|
+
const { dom: o, ...p } = s;
|
|
630
|
+
d.sendMessageToMicroApp(i, "onActivated"), d.triggerMicroAppLifeCycleListener("onActivated", p);
|
|
631
|
+
}, c = (a, i) => {
|
|
632
|
+
const s = f.value.find((l) => l.name === i);
|
|
633
|
+
if (!s) return;
|
|
634
|
+
const { dom: o, ...p } = s;
|
|
635
|
+
d.sendMessageToMicroApp(i, "onDeactivated"), d.triggerMicroAppLifeCycleListener("onDeactivated", p);
|
|
636
|
+
};
|
|
637
|
+
return (a, i) => (E(), N(
|
|
638
|
+
"div",
|
|
639
|
+
{
|
|
640
|
+
ref_key: "containerRef",
|
|
641
|
+
ref: t,
|
|
642
|
+
class: "das-micro-app-container"
|
|
643
|
+
},
|
|
644
|
+
[
|
|
645
|
+
(E(!0), N(
|
|
646
|
+
$,
|
|
647
|
+
null,
|
|
648
|
+
de(I(f), (s) => (E(), N(
|
|
649
|
+
$,
|
|
650
|
+
null,
|
|
651
|
+
[
|
|
652
|
+
s.loaded ? pe((E(), ee(Ue, {
|
|
653
|
+
key: 0,
|
|
654
|
+
src: s.src || "",
|
|
655
|
+
name: s.name,
|
|
656
|
+
actived: s.actived,
|
|
657
|
+
onOnLoaded: (o) => n(o, s.name),
|
|
658
|
+
onOnActivated: (o) => r(o, s.name),
|
|
659
|
+
onOnDeactivated: (o) => c(o, s.name)
|
|
660
|
+
}, null, 8, ["src", "name", "actived", "onOnLoaded", "onOnActivated", "onOnDeactivated"])), [
|
|
661
|
+
[me, s.actived]
|
|
662
|
+
]) : fe("v-if", !0)
|
|
663
|
+
],
|
|
664
|
+
64
|
|
665
|
+
/* STABLE_FRAGMENT */
|
|
666
|
+
))),
|
|
667
|
+
256
|
|
668
|
+
/* UNKEYED_FRAGMENT */
|
|
669
|
+
))
|
|
670
|
+
],
|
|
671
|
+
512
|
|
672
|
+
/* NEED_PATCH */
|
|
673
|
+
));
|
|
674
|
+
}
|
|
675
|
+
}), Je = /* @__PURE__ */ te(Ge, [["__scopeId", "data-v-2e3798bc"]]), Ze = /* @__PURE__ */ x({
|
|
676
|
+
__name: "das-main-app-layout",
|
|
677
|
+
props: {
|
|
678
|
+
transitionConfig: { default: () => {
|
|
679
|
+
} },
|
|
680
|
+
showLayout: { type: Boolean, default: !0 },
|
|
681
|
+
showAside: { type: Boolean, default: !0 },
|
|
682
|
+
showTabs: { type: Boolean, default: !0 },
|
|
683
|
+
menuAttr: { default: () => {
|
|
684
|
+
} },
|
|
685
|
+
tabsAttr: { default: () => {
|
|
686
|
+
} }
|
|
687
|
+
},
|
|
688
|
+
setup(e) {
|
|
689
|
+
const t = e, n = T(() => !k.value), r = T(() => ({
|
|
690
|
+
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
691
|
+
...t.transitionConfig
|
|
692
|
+
})), c = T(() => ({ showLayout: t.showLayout, showAside: t.showAside, showTabs: t.showTabs }));
|
|
693
|
+
return (a, i) => (E(), ee(I(he), ve({
|
|
694
|
+
"transition-config": r.value,
|
|
695
|
+
"router-view-visible": n.value
|
|
696
|
+
}, c.value), {
|
|
697
|
+
header: C(() => [
|
|
698
|
+
V(a.$slots, "header", {}, () => [
|
|
699
|
+
F(I(we))
|
|
700
|
+
])
|
|
701
|
+
]),
|
|
702
|
+
aside: C(() => [
|
|
703
|
+
V(a.$slots, "aside", {}, () => [
|
|
704
|
+
F(I(ge), { menuAttr: a.menuAttr }, null, 8, ["menuAttr"])
|
|
705
|
+
])
|
|
706
|
+
]),
|
|
707
|
+
tab: C(() => [
|
|
708
|
+
V(a.$slots, "tab", {}, () => [
|
|
709
|
+
F(I(_e), { tabsAttr: a.tabsAttr }, null, 8, ["tabsAttr"])
|
|
710
|
+
])
|
|
711
|
+
]),
|
|
712
|
+
default: C(() => [
|
|
713
|
+
F(Je)
|
|
714
|
+
]),
|
|
715
|
+
_: 3
|
|
716
|
+
/* FORWARDED */
|
|
717
|
+
}, 16, ["transition-config", "router-view-visible"]));
|
|
718
|
+
}
|
|
719
|
+
}), ae = /* @__PURE__ */ x({
|
|
720
|
+
__name: "das-micro-app-ghost",
|
|
721
|
+
setup(e) {
|
|
722
|
+
return Ae(() => {
|
|
723
|
+
setTimeout(() => {
|
|
724
|
+
document.documentElement.checkVisibility() && history.back();
|
|
725
|
+
}, 300);
|
|
726
|
+
}), (t, n) => null;
|
|
727
|
+
}
|
|
728
|
+
}), Ke = (e) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => e.startsWith(n)) ? e : `/${e}`, et = (e, t) => {
|
|
729
729
|
if (!(e != null && e.microApps) || !Array.isArray(e.microApps)) return;
|
|
730
730
|
window.__IN_DAS_MAIN_APP = !0, e != null && e.microAppRouterPrefix && (z.value = e.microAppRouterPrefix), f.value = (e.microApps || []).filter((c) => !!c.name).map((c) => ({ ...c, entry: Ke(c.entry || c.name) })), t == null || t.addRoute({
|
|
731
731
|
name: "das-micro-app",
|
|
732
732
|
path: `${z.value}/:pathMatch(.*)*`,
|
|
733
|
-
component:
|
|
733
|
+
component: ae,
|
|
734
734
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
735
735
|
}), d.addEventListenerFromMicroApp("bodyOverlay", (c) => {
|
|
736
736
|
const { visible: a, style: i } = c.data;
|
|
@@ -742,7 +742,7 @@ const Ke = (e) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => e.
|
|
|
742
742
|
const { name: a, cmd: i, path: s } = c.data;
|
|
743
743
|
i === "reload" && d.reloadMicroAppRoute(a, s), i === "unload" && d.unloadMicroAppRoute(a, s);
|
|
744
744
|
});
|
|
745
|
-
const { enter: n, exit: r } =
|
|
745
|
+
const { enter: n, exit: r } = qe();
|
|
746
746
|
d.addEventListenerFromMicroApp("fullscreen", (c) => {
|
|
747
747
|
const a = c.data;
|
|
748
748
|
a && n(), a || r();
|
|
@@ -757,7 +757,7 @@ const Ke = (e) => ["http://", "https://", "ws://", "wss://", "/"].find((n) => e.
|
|
|
757
757
|
t == null || t.addRoute({
|
|
758
758
|
name: n,
|
|
759
759
|
path: `/${n}/:pathMatch(.*)*`,
|
|
760
|
-
component:
|
|
760
|
+
component: ae,
|
|
761
761
|
meta: { isMicroApp: !0, keepAlive: !0 }
|
|
762
762
|
});
|
|
763
763
|
const r = w(!1), c = w(!1), a = w("");
|
|
Binary file
|