@das-fed/web 7.0.7-hot.6 → 7.0.7-hot.60
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-BvMPIPcw.js → index-8eYS921_.js} +7483 -7261
- package/index-8eYS921_.js.gz +0 -0
- package/{packages/main-app-framework/index-DxTe9g1t.js → index-CYed9XU6.js} +1 -1
- package/index-srSiACfB.js +100 -0
- package/index-srSiACfB.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +12 -8
- package/packages/create-das-web-app/index.js +45 -49
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +346 -346
- 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/assets/black-logo-B-Qipuvf.png +0 -0
- package/packages/main-app-framework/assets/cjb-CTZzysmN.png +0 -0
- package/packages/main-app-framework/assets/cjb-preview-Cz6ZEp0h.png +0 -0
- package/packages/main-app-framework/assets/cjb-preview-DWYaDhQb.png +0 -0
- package/packages/main-app-framework/assets/default-DOjV2jIm.png +0 -0
- package/packages/main-app-framework/assets/default-preview-DEfMZxi2.png +0 -0
- package/packages/main-app-framework/assets/default-preview-HZjPO_Oz.png +0 -0
- package/packages/main-app-framework/assets/dkh-DkyUTuR0.png +0 -0
- package/packages/main-app-framework/assets/dkh-preview-DQZDuJfb.png +0 -0
- package/packages/main-app-framework/assets/dkh-preview-SJ0YoU2z.png +0 -0
- package/packages/main-app-framework/assets/feedback-QNGIKgWm.png +0 -0
- package/packages/main-app-framework/assets/hengxian-CyCsW-Hu.png +0 -0
- package/packages/main-app-framework/assets/kjl-DozNzlyC.png +0 -0
- package/packages/main-app-framework/assets/kjl-preview-CCoSuYDK.png +0 -0
- package/packages/main-app-framework/assets/kjl-preview-xHIEscys.png +0 -0
- package/packages/main-app-framework/assets/noIconurl-7L4lHbul.png +0 -0
- package/packages/main-app-framework/assets/qianru-Bsf1Lhh2.png +0 -0
- package/packages/main-app-framework/assets/setected-tvECHVG9.svg +31 -0
- package/packages/main-app-framework/assets/ssl-XnQ4A9bQ.png +0 -0
- package/packages/main-app-framework/assets/ssl-preview-C4BD2d61.png +0 -0
- package/packages/main-app-framework/assets/ssl-preview-DI5pA3Df.png +0 -0
- package/packages/main-app-framework/assets/unselected-C4QVkFPL.svg +39 -0
- package/packages/main-app-framework/assets/white-logo-D7bqAkJL.png +0 -0
- package/packages/main-app-framework/index-DLlWagE3.js +100 -0
- package/packages/main-app-framework/index-DLlWagE3.js.gz +0 -0
- package/packages/main-app-framework/index-DvSOhjci.js +16799 -0
- package/packages/main-app-framework/index-DvSOhjci.js.gz +0 -0
- package/{index-CtwGrzH9.js → packages/main-app-framework/index-qekI7fBd.js} +1 -1
- package/packages/main-app-framework/index.js +1 -1
- 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.gz +0 -0
- package/packages/style/style.css.gz +0 -0
- package/packages/theme/index.js.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/types/main-app-framework/business/video-link/open.d.ts +1 -0
- package/types/main-app-framework/i18n/index.d.ts +10 -0
- package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -0
- package/types/main-app-framework/init-config/get-project-config/index.d.ts +5 -0
- package/types/main-app-framework/init-config/get-project-config/station-reserve-entry.d.ts +64 -0
- package/types/main-app-framework/init-platform/api.d.ts +1 -0
- package/types/main-app-framework/init-sso/useTokenRefresh.d.ts +9 -0
- package/types/main-app-framework/utils/src/set-common-info.d.ts +11 -11
- package/index-BvMPIPcw.js.gz +0 -0
- package/index-E77gum55.js +0 -88
- package/index-E77gum55.js.gz +0 -0
- package/packages/main-app-framework/index-76Uhoeeg.js +0 -88
- package/packages/main-app-framework/index-76Uhoeeg.js.gz +0 -0
- package/packages/main-app-framework/index-B3BnT3-C.js +0 -16574
- package/packages/main-app-framework/index-B3BnT3-C.js.gz +0 -0
- package/types/create-das-web-app/get-web-config.d.ts +0 -1
package/packages/layout/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@das-fed/web/packages/layout/style.css';
|
|
2
|
-
import { reactive as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { setHtmlMinWH as
|
|
5
|
-
import { createCeNav as
|
|
6
|
-
import { flatTree as
|
|
7
|
-
const
|
|
2
|
+
import { reactive as Q, ref as $, defineComponent as z, computed as c, watch as te, createElementBlock as I, openBlock as g, Fragment as Y, createBlock as V, createCommentVNode as w, TransitionGroup as we, normalizeProps as ne, mergeProps as ae, withCtx as W, renderList as ue, withDirectives as D, resolveDynamicComponent as N, vShow as M, unref as _, nextTick as ce, resolveComponent as be, createElementVNode as x, normalizeStyle as Le, normalizeClass as _e, renderSlot as F, createVNode as Z, Transition as ve, guardReactiveProps as de, KeepAlive as me, h as ee, onBeforeMount as Ie, onMounted as Ce, onUnmounted as ke } from "vue";
|
|
3
|
+
import { useRouter as Te, useRoute as pe } from "vue-router";
|
|
4
|
+
import { setHtmlMinWH as Ae } from "@das-fed/utils/common-tools/setHtmlMinWH";
|
|
5
|
+
import { createCeNav as Ee, createCeTabs as Re, createCeMenu as Ve } from "@das-fed/web-components/das-web-app";
|
|
6
|
+
import { flatTree as Pe } from "@das-fed/utils/common-tools/nest-tree-format";
|
|
7
|
+
const p = Q({
|
|
8
8
|
visible: !1,
|
|
9
9
|
theme: "default",
|
|
10
10
|
logo: "",
|
|
@@ -16,69 +16,69 @@ const h = z({
|
|
|
16
16
|
// activeItem: '',
|
|
17
17
|
// activeProject: {},
|
|
18
18
|
eventListeners: {}
|
|
19
|
-
}),
|
|
19
|
+
}), fe = {
|
|
20
20
|
show: () => {
|
|
21
|
-
|
|
21
|
+
p.visible = !0;
|
|
22
22
|
},
|
|
23
23
|
hide: () => {
|
|
24
|
-
|
|
24
|
+
p.visible = !1;
|
|
25
25
|
},
|
|
26
26
|
setLogo: (e) => {
|
|
27
|
-
|
|
27
|
+
p.logo = e;
|
|
28
28
|
},
|
|
29
29
|
setTheme: (e) => {
|
|
30
|
-
|
|
30
|
+
p.theme = e;
|
|
31
31
|
},
|
|
32
32
|
setItems: (e) => {
|
|
33
|
-
|
|
33
|
+
p.visible || (p.visible = !0), p.items = e;
|
|
34
34
|
},
|
|
35
|
-
getItems: () =>
|
|
35
|
+
getItems: () => p.items,
|
|
36
36
|
removeItem: (e) => {
|
|
37
|
-
const t =
|
|
38
|
-
|
|
37
|
+
const t = p.items.filter((s) => s.value !== e);
|
|
38
|
+
p.items = t;
|
|
39
39
|
},
|
|
40
40
|
appendItem: (e) => {
|
|
41
|
-
|
|
41
|
+
p.visible || (p.visible = !0), !p.items.find((s) => s.value == e.value) && p.items.push(e);
|
|
42
42
|
},
|
|
43
43
|
setActiveItem: (e) => {
|
|
44
|
-
|
|
44
|
+
p.activeItem = e;
|
|
45
45
|
},
|
|
46
46
|
setConfig: (e) => {
|
|
47
|
-
|
|
47
|
+
p.config = e;
|
|
48
48
|
},
|
|
49
49
|
setProjects: (e) => {
|
|
50
|
-
|
|
50
|
+
p.projects = e;
|
|
51
51
|
},
|
|
52
52
|
setProjectConfig: (e) => {
|
|
53
|
-
|
|
53
|
+
p.projectConfig = e;
|
|
54
54
|
},
|
|
55
55
|
setActiveProject: (e) => {
|
|
56
|
-
|
|
56
|
+
p.activeProject = e;
|
|
57
57
|
},
|
|
58
58
|
setUserInfo: (e) => {
|
|
59
|
-
|
|
59
|
+
p.userInfo = e;
|
|
60
60
|
},
|
|
61
61
|
setSearchConfig: (e) => {
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
triggerEventListener: (e, t,
|
|
65
|
-
var
|
|
66
|
-
const l =
|
|
67
|
-
for (const
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
(
|
|
71
|
-
d &&
|
|
62
|
+
p.searchConfig = e;
|
|
63
|
+
},
|
|
64
|
+
triggerEventListener: (e, t, s) => {
|
|
65
|
+
var m;
|
|
66
|
+
const l = p.eventListeners, { autoRemove: d = !1 } = s || {}, r = [];
|
|
67
|
+
for (const b in l) {
|
|
68
|
+
const o = l[b];
|
|
69
|
+
o.type === e && r.push(
|
|
70
|
+
(m = o == null ? void 0 : o.handler) == null ? void 0 : m.call(o, t).then(() => {
|
|
71
|
+
d && o.remove();
|
|
72
72
|
})
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
75
|
return Promise.all(r).then(() => !0).catch(() => !1);
|
|
76
76
|
},
|
|
77
77
|
addEventListener: (e, t) => {
|
|
78
|
-
const
|
|
79
|
-
|
|
78
|
+
const s = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
79
|
+
p.eventListeners[s] && delete p.eventListeners[s];
|
|
80
80
|
};
|
|
81
|
-
return
|
|
81
|
+
return p.eventListeners[s] = {
|
|
82
82
|
type: e,
|
|
83
83
|
handler: async (d) => {
|
|
84
84
|
try {
|
|
@@ -92,12 +92,12 @@ const h = z({
|
|
|
92
92
|
remove: l
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
}, R =
|
|
95
|
+
}, R = Q({
|
|
96
96
|
theme: "default",
|
|
97
97
|
items: [],
|
|
98
98
|
collapse: !1,
|
|
99
99
|
eventListeners: {}
|
|
100
|
-
}),
|
|
100
|
+
}), he = {
|
|
101
101
|
setItems: (e) => {
|
|
102
102
|
R.items = e;
|
|
103
103
|
},
|
|
@@ -114,24 +114,24 @@ const h = z({
|
|
|
114
114
|
setPopupClassName: (e) => {
|
|
115
115
|
R.popupClassName = e;
|
|
116
116
|
},
|
|
117
|
-
triggerEventListener: (e, t,
|
|
118
|
-
var
|
|
119
|
-
const l = R.eventListeners, { autoRemove: d = !1 } =
|
|
120
|
-
for (const
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
(
|
|
124
|
-
d &&
|
|
117
|
+
triggerEventListener: (e, t, s) => {
|
|
118
|
+
var m;
|
|
119
|
+
const l = R.eventListeners, { autoRemove: d = !1 } = s || {}, r = [];
|
|
120
|
+
for (const b in l) {
|
|
121
|
+
const o = l[b];
|
|
122
|
+
o.type === e && r.push(
|
|
123
|
+
(m = o == null ? void 0 : o.handler) == null ? void 0 : m.call(o, t).then(() => {
|
|
124
|
+
d && o.remove();
|
|
125
125
|
})
|
|
126
126
|
);
|
|
127
127
|
}
|
|
128
128
|
return Promise.all(r).then(() => !0).catch(() => !1);
|
|
129
129
|
},
|
|
130
130
|
addEventListener: (e, t) => {
|
|
131
|
-
const
|
|
132
|
-
R.eventListeners[
|
|
131
|
+
const s = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
132
|
+
R.eventListeners[s] && delete R.eventListeners[s];
|
|
133
133
|
};
|
|
134
|
-
return R.eventListeners[
|
|
134
|
+
return R.eventListeners[s] = {
|
|
135
135
|
type: e,
|
|
136
136
|
handler: async (d) => {
|
|
137
137
|
try {
|
|
@@ -145,11 +145,11 @@ const h = z({
|
|
|
145
145
|
remove: l
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
}, k =
|
|
148
|
+
}, k = Q({
|
|
149
149
|
theme: "default",
|
|
150
150
|
items: [],
|
|
151
151
|
eventListeners: {}
|
|
152
|
-
}),
|
|
152
|
+
}), ge = {
|
|
153
153
|
setItems: (e) => {
|
|
154
154
|
k.items = e;
|
|
155
155
|
},
|
|
@@ -158,34 +158,34 @@ const h = z({
|
|
|
158
158
|
k.theme = e;
|
|
159
159
|
},
|
|
160
160
|
removeItem: (e) => {
|
|
161
|
-
const t = k.items.filter((
|
|
161
|
+
const t = k.items.filter((s) => s.value !== e);
|
|
162
162
|
k.items = t;
|
|
163
163
|
},
|
|
164
164
|
appendItem: (e) => {
|
|
165
|
-
const t = k.items.findIndex((
|
|
165
|
+
const t = k.items.findIndex((s) => s.value == e.value);
|
|
166
166
|
t !== -1 ? k.items.splice(t, 1, e) : k.items.push(e);
|
|
167
167
|
},
|
|
168
168
|
setActiveItem: (e) => {
|
|
169
169
|
k.activeItem = e;
|
|
170
170
|
},
|
|
171
|
-
triggerEventListener: (e, t,
|
|
172
|
-
var
|
|
173
|
-
const l = k.eventListeners, { autoRemove: d = !1 } =
|
|
174
|
-
for (const
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
(
|
|
178
|
-
d &&
|
|
171
|
+
triggerEventListener: (e, t, s) => {
|
|
172
|
+
var m;
|
|
173
|
+
const l = k.eventListeners, { autoRemove: d = !1 } = s || {}, r = [];
|
|
174
|
+
for (const b in l) {
|
|
175
|
+
const o = l[b];
|
|
176
|
+
o.type === e && r.push(
|
|
177
|
+
(m = o == null ? void 0 : o.handler) == null ? void 0 : m.call(o, t).then(() => {
|
|
178
|
+
d && o.remove();
|
|
179
179
|
})
|
|
180
180
|
);
|
|
181
181
|
}
|
|
182
182
|
return Promise.all(r).then(() => !0).catch(() => !1);
|
|
183
183
|
},
|
|
184
184
|
addEventListener: (e, t) => {
|
|
185
|
-
const
|
|
186
|
-
k.eventListeners[
|
|
185
|
+
const s = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
186
|
+
k.eventListeners[s] && delete k.eventListeners[s];
|
|
187
187
|
};
|
|
188
|
-
return k.eventListeners[
|
|
188
|
+
return k.eventListeners[s] = {
|
|
189
189
|
type: e,
|
|
190
190
|
handler: async (d) => {
|
|
191
191
|
try {
|
|
@@ -199,27 +199,27 @@ const h = z({
|
|
|
199
199
|
remove: l
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
}, K =
|
|
202
|
+
}, K = Q({
|
|
203
203
|
eventListeners: {}
|
|
204
|
-
}),
|
|
205
|
-
triggerEventListener: (e, t,
|
|
206
|
-
var
|
|
207
|
-
const l = K.eventListeners, { autoRemove: d = !1 } =
|
|
208
|
-
for (const
|
|
209
|
-
const
|
|
210
|
-
|
|
211
|
-
(
|
|
212
|
-
d &&
|
|
204
|
+
}), Se = {
|
|
205
|
+
triggerEventListener: (e, t, s) => {
|
|
206
|
+
var m;
|
|
207
|
+
const l = K.eventListeners, { autoRemove: d = !1 } = s || {}, r = [];
|
|
208
|
+
for (const b in l) {
|
|
209
|
+
const o = l[b];
|
|
210
|
+
o.type === e && r.push(
|
|
211
|
+
(m = o == null ? void 0 : o.handler) == null ? void 0 : m.call(o, t).then(() => {
|
|
212
|
+
d && o.remove();
|
|
213
213
|
})
|
|
214
214
|
);
|
|
215
215
|
}
|
|
216
216
|
return Promise.all(r).then(() => !0).catch(() => !1);
|
|
217
217
|
},
|
|
218
218
|
addEventListener: (e, t) => {
|
|
219
|
-
const
|
|
220
|
-
K.eventListeners[
|
|
219
|
+
const s = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), l = () => {
|
|
220
|
+
K.eventListeners[s] && delete K.eventListeners[s];
|
|
221
221
|
};
|
|
222
|
-
return K.eventListeners[
|
|
222
|
+
return K.eventListeners[s] = {
|
|
223
223
|
type: e,
|
|
224
224
|
handler: async (d) => {
|
|
225
225
|
try {
|
|
@@ -233,31 +233,31 @@ const h = z({
|
|
|
233
233
|
remove: l
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
}, se =
|
|
236
|
+
}, se = Q({
|
|
237
237
|
visible: !1,
|
|
238
238
|
style: {}
|
|
239
|
-
}),
|
|
239
|
+
}), De = {
|
|
240
240
|
set: (e, t) => {
|
|
241
241
|
se.visible = e, t || (t = {}), t.transition || (t.transition = "all 0.3s"), t && (se.style = t);
|
|
242
242
|
}
|
|
243
|
-
},
|
|
244
|
-
nav:
|
|
243
|
+
}, B = {
|
|
244
|
+
nav: p,
|
|
245
245
|
menu: R,
|
|
246
246
|
tab: k,
|
|
247
247
|
overlay: se,
|
|
248
248
|
iframeView: K,
|
|
249
|
-
visible:
|
|
249
|
+
visible: $(!0)
|
|
250
250
|
}, v = {
|
|
251
|
-
nav:
|
|
252
|
-
menu:
|
|
253
|
-
tab:
|
|
254
|
-
overlay:
|
|
255
|
-
iframeView:
|
|
256
|
-
setVisible: (e) =>
|
|
251
|
+
nav: fe,
|
|
252
|
+
menu: he,
|
|
253
|
+
tab: ge,
|
|
254
|
+
overlay: De,
|
|
255
|
+
iframeView: Se,
|
|
256
|
+
setVisible: (e) => B.visible.value = e,
|
|
257
257
|
setTheme: (e) => {
|
|
258
|
-
|
|
258
|
+
fe.setTheme(e), he.setTheme(e), ge.setTheme(e);
|
|
259
259
|
}
|
|
260
|
-
},
|
|
260
|
+
}, Me = ["name"], je = ["name"], xe = /* @__PURE__ */ z({
|
|
261
261
|
__name: "das-iframe-router-view",
|
|
262
262
|
props: {
|
|
263
263
|
needTransition: { type: Boolean },
|
|
@@ -265,95 +265,95 @@ const h = z({
|
|
|
265
265
|
exclude: { default: () => [] }
|
|
266
266
|
},
|
|
267
267
|
setup(e) {
|
|
268
|
-
const t = e,
|
|
269
|
-
const { mode:
|
|
268
|
+
const t = e, s = c(() => {
|
|
269
|
+
const { mode: n = "", ...a } = {
|
|
270
270
|
mode: "out-in",
|
|
271
271
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
272
272
|
...t.transitionConfig || {}
|
|
273
273
|
};
|
|
274
274
|
return a;
|
|
275
|
-
}), l =
|
|
275
|
+
}), l = Te(), d = pe(), r = $([]), m = c(() => r.value.filter((n) => {
|
|
276
276
|
var a;
|
|
277
|
-
return (a =
|
|
278
|
-
})),
|
|
279
|
-
const a =
|
|
280
|
-
let
|
|
281
|
-
|
|
282
|
-
|
|
277
|
+
return (a = n.meta) == null ? void 0 : a.isOpen;
|
|
278
|
+
})), b = (n) => {
|
|
279
|
+
const a = n.lastIndexOf("-");
|
|
280
|
+
let i = a !== -1 ? n.substring(a + 1) : "";
|
|
281
|
+
i === "0" ? i = "1" : i = "0", m.value.forEach((f) => {
|
|
282
|
+
f.meta.key === n && (f.meta.key = `${f.path}-${i}`);
|
|
283
283
|
});
|
|
284
284
|
};
|
|
285
285
|
te(
|
|
286
286
|
() => t.exclude,
|
|
287
|
-
(
|
|
288
|
-
if (!
|
|
289
|
-
const a =
|
|
290
|
-
a &&
|
|
287
|
+
(n) => {
|
|
288
|
+
if (!n || !n.length) return;
|
|
289
|
+
const a = m.value.find((i) => n.includes(i.path));
|
|
290
|
+
a && b(a.meta.key);
|
|
291
291
|
},
|
|
292
292
|
{ deep: !0 }
|
|
293
293
|
);
|
|
294
|
-
const
|
|
295
|
-
const a =
|
|
296
|
-
let
|
|
297
|
-
return typeof a == "function" ?
|
|
294
|
+
const o = async (n) => {
|
|
295
|
+
const a = n.component;
|
|
296
|
+
let i = null;
|
|
297
|
+
return typeof a == "function" ? i = (await a()).default : i = a, i;
|
|
298
298
|
}, P = async () => {
|
|
299
299
|
var a;
|
|
300
|
-
const
|
|
301
|
-
for (const
|
|
302
|
-
if ((a =
|
|
303
|
-
const
|
|
300
|
+
const n = l.options.routes;
|
|
301
|
+
for (const i of n)
|
|
302
|
+
if ((a = i == null ? void 0 : i.meta) != null && a.isIframe && !r.value.find((f) => f.path === i.path)) {
|
|
303
|
+
const f = await o(i);
|
|
304
304
|
r.value.push({
|
|
305
|
-
...
|
|
306
|
-
meta: { ...
|
|
305
|
+
...i,
|
|
306
|
+
meta: { ...i.meta, key: `${i.path}-0`, componentInstance: f, isOpen: !1, isShow: !1 }
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
309
|
T();
|
|
310
310
|
}, T = async () => {
|
|
311
|
-
var
|
|
311
|
+
var i, f;
|
|
312
312
|
if (!r.value || !r.value.length) return;
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
const a = r.value.find((
|
|
316
|
-
a && ((
|
|
313
|
+
const n = r.value.find((C) => C.meta.isShow);
|
|
314
|
+
n && (n.meta.isShow = !1, await ce(), v.iframeView.triggerEventListener("onDeactivated", { route: n }));
|
|
315
|
+
const a = r.value.find((C) => C.path === d.path);
|
|
316
|
+
a && ((i = a.meta) != null && i.isOpen || (a.meta.isOpen = !0), (f = a.meta) != null && f.isShow || (a.meta.isShow = !0), await ce(), v.iframeView.triggerEventListener("onActivated", { route: a }));
|
|
317
317
|
};
|
|
318
|
-
let
|
|
318
|
+
let A = 0;
|
|
319
319
|
return te(
|
|
320
320
|
() => l.currentRoute.value,
|
|
321
321
|
() => {
|
|
322
|
-
const
|
|
323
|
-
|
|
322
|
+
const n = l.options.routes.length;
|
|
323
|
+
n !== A ? (P(), A = n) : T();
|
|
324
324
|
},
|
|
325
325
|
{ immediate: !0 }
|
|
326
326
|
), v.iframeView.addEventListener("onRefreshCurrentPage", () => {
|
|
327
|
-
|
|
327
|
+
m.value.forEach((n) => {
|
|
328
328
|
var a;
|
|
329
|
-
(a =
|
|
329
|
+
(a = n.meta) != null && a.isShow && (n.meta.key.includes("0") ? n.meta.key = n.meta.key.replaceAll("0", "1") : n.meta.key = n.meta.key.replaceAll("1", "0"));
|
|
330
330
|
});
|
|
331
|
-
}), v.iframeView.addEventListener("onUnloadPage", (
|
|
331
|
+
}), v.iframeView.addEventListener("onUnloadPage", (n) => {
|
|
332
332
|
r.value.forEach((a) => {
|
|
333
|
-
a.path ===
|
|
333
|
+
a.path === n && (a.meta.isOpen = !1);
|
|
334
334
|
});
|
|
335
|
-
}), (
|
|
335
|
+
}), (n, a) => (g(), I(
|
|
336
336
|
Y,
|
|
337
337
|
null,
|
|
338
338
|
[
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
ne(ae({ key: 0 },
|
|
339
|
+
n.needTransition ? (g(), V(
|
|
340
|
+
we,
|
|
341
|
+
ne(ae({ key: 0 }, s.value)),
|
|
342
342
|
{
|
|
343
343
|
default: W(() => [
|
|
344
|
-
(g(!0),
|
|
344
|
+
(g(!0), I(
|
|
345
345
|
Y,
|
|
346
346
|
null,
|
|
347
|
-
|
|
347
|
+
ue(m.value, ({ path: i, meta: f }) => D((g(), I("div", {
|
|
348
348
|
class: "das-iframe-router-view",
|
|
349
|
-
key:
|
|
350
|
-
name:
|
|
349
|
+
key: f.key,
|
|
350
|
+
name: i
|
|
351
351
|
}, [
|
|
352
|
-
(g(), V(
|
|
353
|
-
key:
|
|
352
|
+
(g(), V(N(f.componentInstance), {
|
|
353
|
+
key: f.key
|
|
354
354
|
}))
|
|
355
|
-
], 8,
|
|
356
|
-
[M,
|
|
355
|
+
], 8, Me)), [
|
|
356
|
+
[M, f.componentInstance && i === _(d).path]
|
|
357
357
|
])),
|
|
358
358
|
128
|
|
359
359
|
/* KEYED_FRAGMENT */
|
|
@@ -364,20 +364,20 @@ const h = z({
|
|
|
364
364
|
},
|
|
365
365
|
16
|
|
366
366
|
/* FULL_PROPS */
|
|
367
|
-
)) :
|
|
368
|
-
|
|
367
|
+
)) : w("v-if", !0),
|
|
368
|
+
n.needTransition ? w("v-if", !0) : (g(!0), I(
|
|
369
369
|
Y,
|
|
370
370
|
{ key: 1 },
|
|
371
|
-
|
|
371
|
+
ue(m.value, ({ path: i, meta: f }) => D((g(), I("div", {
|
|
372
372
|
class: "das-iframe-router-view",
|
|
373
|
-
key:
|
|
374
|
-
name:
|
|
373
|
+
key: f.key,
|
|
374
|
+
name: i
|
|
375
375
|
}, [
|
|
376
|
-
(g(), V(
|
|
377
|
-
key:
|
|
376
|
+
(g(), V(N(f.componentInstance), {
|
|
377
|
+
key: f.key
|
|
378
378
|
}))
|
|
379
|
-
], 8,
|
|
380
|
-
[M,
|
|
379
|
+
], 8, je)), [
|
|
380
|
+
[M, f.componentInstance && i === _(d).path]
|
|
381
381
|
])),
|
|
382
382
|
128
|
|
383
383
|
/* KEYED_FRAGMENT */
|
|
@@ -387,32 +387,37 @@ const h = z({
|
|
|
387
387
|
/* STABLE_FRAGMENT */
|
|
388
388
|
));
|
|
389
389
|
}
|
|
390
|
-
}),
|
|
391
|
-
const
|
|
390
|
+
}), ye = (e, t) => {
|
|
391
|
+
const s = e.__vccOpts || e;
|
|
392
392
|
for (const [l, d] of t)
|
|
393
|
-
|
|
394
|
-
return
|
|
395
|
-
},
|
|
393
|
+
s[l] = d;
|
|
394
|
+
return s;
|
|
395
|
+
}, $e = /* @__PURE__ */ ye(xe, [["__scopeId", "data-v-6dd310c9"]]), Be = { class: "das-web-app-container" }, He = {
|
|
396
396
|
key: 0,
|
|
397
397
|
class: "das-web-app-header"
|
|
398
|
-
},
|
|
398
|
+
}, Fe = { class: "das-web-app-main" }, Ne = {
|
|
399
399
|
key: 0,
|
|
400
400
|
class: "aside"
|
|
401
|
-
},
|
|
401
|
+
}, Oe = { class: "das-web-app-main-container" }, Ue = {
|
|
402
402
|
key: 0,
|
|
403
403
|
class: "tab"
|
|
404
|
-
},
|
|
404
|
+
}, We = { class: "das-web-app-main-content" }, Ke = { class: "banner" }, Qe = {
|
|
405
|
+
key: 0,
|
|
406
|
+
class: "das-web-app-main-router-view"
|
|
407
|
+
}, ze = {
|
|
405
408
|
key: 0,
|
|
406
409
|
style: { width: "100%", height: "100%" }
|
|
407
|
-
},
|
|
410
|
+
}, qe = {
|
|
408
411
|
key: 1,
|
|
409
412
|
style: { width: "100%", height: "100%" }
|
|
410
|
-
},
|
|
413
|
+
}, Ge = { style: { width: "100%", height: "100%" } }, Je = {
|
|
411
414
|
class: "micro-app",
|
|
412
415
|
style: { height: "100%", width: "100%" }
|
|
413
|
-
},
|
|
416
|
+
}, Xe = /* @__PURE__ */ z({
|
|
414
417
|
__name: "das-web-layout",
|
|
415
418
|
props: {
|
|
419
|
+
loading: { type: Boolean, default: !0 },
|
|
420
|
+
ignoreLoading: { type: Boolean, default: !0 },
|
|
416
421
|
needTransition: { type: Boolean, default: !0 },
|
|
417
422
|
transitionConfig: {},
|
|
418
423
|
showLayout: { type: Boolean, default: !0 },
|
|
@@ -425,127 +430,122 @@ const h = z({
|
|
|
425
430
|
},
|
|
426
431
|
setup(e) {
|
|
427
432
|
const t = e;
|
|
428
|
-
|
|
429
|
-
const
|
|
433
|
+
Ee(), Re(), Ve();
|
|
434
|
+
const s = pe(), l = $(!0), d = $(!0), r = $(!0), m = c(() => l.value && t.showLayout), b = c(() => d.value && t.showLayout && t.showAside), o = c(() => l.value && t.showLayout && t.showTabs), P = c(() => t.routerViewVisible ?? !0), T = c(() => B.overlay.visible ?? !1), A = $(!0), n = c(() => A.value && B.visible.value), a = c(() => !m.value || t.ignoreLoading || !t.loading), i = c(() => ({
|
|
430
435
|
"das-web-app-overlay-show": T.value === !0,
|
|
431
436
|
"das-web-app-overlay-hide": T.value === !1,
|
|
432
437
|
"das-web-app-overlay-destroy": T.value === "destroy"
|
|
433
|
-
})),
|
|
438
|
+
})), f = c(() => B.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), C = c(() => t.excludeRoutes), q = c(() => t.routeKeepAliveVisible);
|
|
434
439
|
te(
|
|
435
|
-
() => [
|
|
436
|
-
([
|
|
437
|
-
const {
|
|
438
|
-
showLayout:
|
|
439
|
-
showAside:
|
|
440
|
-
showTabs:
|
|
441
|
-
|
|
442
|
-
} =
|
|
443
|
-
|
|
444
|
-
let
|
|
445
|
-
(
|
|
440
|
+
() => [s.meta, s.query],
|
|
441
|
+
([L, S]) => {
|
|
442
|
+
const { layout: u = {}, showLayout: h = !0, showAside: y = !0, showTabs: j = !0 } = L, {
|
|
443
|
+
showLayout: E = !0,
|
|
444
|
+
showAside: H = !0,
|
|
445
|
+
showTabs: re = !0,
|
|
446
|
+
layoutVisible: oe = !0
|
|
447
|
+
} = S;
|
|
448
|
+
Ae(u);
|
|
449
|
+
let ie = !0, J = !0, X = !0;
|
|
450
|
+
(h === !1 || E === !1 || E === "false") && (ie = !1, J = !1, X = !1), (y === !1 || H === !1 || H === "false") && (J = !1), (j === !1 || re === !1 || re === "false") && (X = !1), l.value = ie, d.value = J, r.value = X;
|
|
451
|
+
let le = !0;
|
|
452
|
+
(oe === !1 || oe === "false") && (le = !1), A.value = le;
|
|
446
453
|
}
|
|
447
454
|
);
|
|
448
|
-
const
|
|
455
|
+
const O = c(() => ({
|
|
449
456
|
mode: "out-in",
|
|
450
457
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
451
458
|
...t.transitionConfig || {}
|
|
452
459
|
}));
|
|
453
|
-
let
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
460
|
+
let U = /* @__PURE__ */ new Map();
|
|
461
|
+
const G = (L, S) => {
|
|
462
|
+
if (!L) return null;
|
|
463
|
+
let u;
|
|
464
|
+
return U.has(S) ? u = U.get(S) : (u = {
|
|
465
|
+
name: S,
|
|
458
466
|
render() {
|
|
459
|
-
return ee("div", { style: { width: "100%", height: "100%" } }, [ee(
|
|
467
|
+
return ee("div", { style: { width: "100%", height: "100%" } }, [ee(L)]);
|
|
460
468
|
}
|
|
461
|
-
},
|
|
462
|
-
}
|
|
463
|
-
return (
|
|
464
|
-
const
|
|
465
|
-
return g(),
|
|
466
|
-
D(
|
|
469
|
+
}, U.set(S, u)), ee(u);
|
|
470
|
+
};
|
|
471
|
+
return (L, S) => {
|
|
472
|
+
const u = be("router-view");
|
|
473
|
+
return g(), I("div", Be, [
|
|
474
|
+
D(x(
|
|
467
475
|
"div",
|
|
468
476
|
{
|
|
469
|
-
class:
|
|
470
|
-
style:
|
|
477
|
+
class: _e(["das-web-app-overlay", i.value]),
|
|
478
|
+
style: Le(f.value)
|
|
471
479
|
},
|
|
472
480
|
null,
|
|
473
481
|
6
|
|
474
482
|
/* CLASS, STYLE */
|
|
475
483
|
), [
|
|
476
|
-
[M,
|
|
484
|
+
[M, n.value]
|
|
477
485
|
]),
|
|
478
|
-
|
|
486
|
+
m.value ? D((g(), I(
|
|
479
487
|
"div",
|
|
480
|
-
|
|
488
|
+
He,
|
|
481
489
|
[
|
|
482
|
-
|
|
490
|
+
F(L.$slots, "header", {}, void 0, !0)
|
|
483
491
|
],
|
|
484
492
|
512
|
|
485
493
|
/* NEED_PATCH */
|
|
486
494
|
)), [
|
|
487
|
-
[M,
|
|
488
|
-
]) :
|
|
489
|
-
|
|
490
|
-
|
|
495
|
+
[M, n.value]
|
|
496
|
+
]) : w("v-if", !0),
|
|
497
|
+
x("div", Fe, [
|
|
498
|
+
b.value ? D((g(), I(
|
|
491
499
|
"div",
|
|
492
|
-
|
|
500
|
+
Ne,
|
|
493
501
|
[
|
|
494
|
-
|
|
502
|
+
F(L.$slots, "aside", {}, void 0, !0)
|
|
495
503
|
],
|
|
496
504
|
512
|
|
497
505
|
/* NEED_PATCH */
|
|
498
506
|
)), [
|
|
499
|
-
[M,
|
|
500
|
-
]) :
|
|
501
|
-
|
|
502
|
-
|
|
507
|
+
[M, n.value]
|
|
508
|
+
]) : w("v-if", !0),
|
|
509
|
+
x("div", Oe, [
|
|
510
|
+
o.value ? D((g(), I(
|
|
503
511
|
"div",
|
|
504
|
-
|
|
512
|
+
Ue,
|
|
505
513
|
[
|
|
506
|
-
|
|
514
|
+
F(L.$slots, "tab", {}, void 0, !0)
|
|
507
515
|
],
|
|
508
516
|
512
|
|
509
517
|
/* NEED_PATCH */
|
|
510
518
|
)), [
|
|
511
|
-
[M,
|
|
512
|
-
]) :
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
"
|
|
516
|
-
Oe,
|
|
517
|
-
[
|
|
518
|
-
N(_.$slots, "banner", {}, void 0, !0)
|
|
519
|
-
],
|
|
520
|
-
512
|
|
521
|
-
/* NEED_PATCH */
|
|
522
|
-
), [
|
|
523
|
-
[M, B.value]
|
|
519
|
+
[M, n.value]
|
|
520
|
+
]) : w("v-if", !0),
|
|
521
|
+
x("div", We, [
|
|
522
|
+
x("div", Ke, [
|
|
523
|
+
F(L.$slots, "banner", {}, void 0, !0)
|
|
524
524
|
]),
|
|
525
|
-
|
|
526
|
-
D((g(),
|
|
527
|
-
key:
|
|
525
|
+
a.value ? (g(), I("div", Qe, [
|
|
526
|
+
D((g(), I("div", {
|
|
527
|
+
key: L.pageKey,
|
|
528
528
|
style: { width: "100%", height: "100%" }
|
|
529
529
|
}, [
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
default: W(({ Component:
|
|
530
|
+
F(L.$slots, "router-view", {}, () => [
|
|
531
|
+
w(" 有动画 "),
|
|
532
|
+
L.needTransition ? (g(), V(u, { key: 0 }, {
|
|
533
|
+
default: W(({ Component: h }) => [
|
|
534
534
|
Z(
|
|
535
|
-
|
|
536
|
-
ne(
|
|
535
|
+
ve,
|
|
536
|
+
ne(de(O.value)),
|
|
537
537
|
{
|
|
538
538
|
default: W(() => {
|
|
539
|
-
var
|
|
539
|
+
var y;
|
|
540
540
|
return [
|
|
541
|
-
|
|
541
|
+
_(s).meta.keepAlive ? (g(), V(me, {
|
|
542
542
|
key: 0,
|
|
543
|
-
exclude:
|
|
543
|
+
exclude: C.value
|
|
544
544
|
}, [
|
|
545
|
-
|
|
546
|
-
key:
|
|
547
|
-
})) :
|
|
548
|
-
], 1032, ["exclude"])) :
|
|
545
|
+
q.value && !((y = _(s).meta) != null && y.isIframe) ? (g(), V(N(G(h, _(s).path)), {
|
|
546
|
+
key: _(s).fullPath
|
|
547
|
+
})) : w("v-if", !0)
|
|
548
|
+
], 1032, ["exclude"])) : w("v-if", !0)
|
|
549
549
|
];
|
|
550
550
|
}),
|
|
551
551
|
_: 2
|
|
@@ -555,15 +555,15 @@ const h = z({
|
|
|
555
555
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
556
556
|
),
|
|
557
557
|
Z(
|
|
558
|
-
|
|
559
|
-
ne(
|
|
558
|
+
ve,
|
|
559
|
+
ne(de(O.value)),
|
|
560
560
|
{
|
|
561
561
|
default: W(() => [
|
|
562
|
-
!
|
|
563
|
-
(g(), V(
|
|
564
|
-
key:
|
|
562
|
+
!_(s).meta.keepAlive && !_(s).meta.isIframe ? (g(), I("div", ze, [
|
|
563
|
+
(g(), V(N(h), {
|
|
564
|
+
key: _(s).fullPath
|
|
565
565
|
}))
|
|
566
|
-
])) :
|
|
566
|
+
])) : w("v-if", !0)
|
|
567
567
|
]),
|
|
568
568
|
_: 2
|
|
569
569
|
/* DYNAMIC */
|
|
@@ -574,82 +574,82 @@ const h = z({
|
|
|
574
574
|
]),
|
|
575
575
|
_: 1
|
|
576
576
|
/* STABLE */
|
|
577
|
-
})) :
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
default: W(({ Component:
|
|
581
|
-
|
|
577
|
+
})) : w("v-if", !0),
|
|
578
|
+
w(" 无动画 "),
|
|
579
|
+
L.needTransition ? w("v-if", !0) : (g(), V(u, { key: 1 }, {
|
|
580
|
+
default: W(({ Component: h }) => [
|
|
581
|
+
_(s).meta.keepAlive ? (g(), V(me, {
|
|
582
582
|
key: 0,
|
|
583
|
-
exclude:
|
|
583
|
+
exclude: C.value
|
|
584
584
|
}, [
|
|
585
|
-
|
|
586
|
-
key:
|
|
587
|
-
})) :
|
|
588
|
-
], 1032, ["exclude"])) :
|
|
589
|
-
!
|
|
590
|
-
(g(), V(
|
|
591
|
-
key:
|
|
585
|
+
q.value && !_(s).meta.isIframe ? (g(), V(N(G(h, _(s).path)), {
|
|
586
|
+
key: _(s).fullPath
|
|
587
|
+
})) : w("v-if", !0)
|
|
588
|
+
], 1032, ["exclude"])) : w("v-if", !0),
|
|
589
|
+
!_(s).meta.keepAlive && !_(s).meta.isIframe ? (g(), I("div", qe, [
|
|
590
|
+
(g(), V(N(h), {
|
|
591
|
+
key: _(s).fullPath
|
|
592
592
|
}))
|
|
593
|
-
])) :
|
|
593
|
+
])) : w("v-if", !0)
|
|
594
594
|
]),
|
|
595
595
|
_: 1
|
|
596
596
|
/* STABLE */
|
|
597
597
|
})),
|
|
598
|
-
D(
|
|
598
|
+
D(x(
|
|
599
599
|
"div",
|
|
600
|
-
|
|
600
|
+
Ge,
|
|
601
601
|
[
|
|
602
|
-
Z(
|
|
603
|
-
exclude:
|
|
604
|
-
transitionConfig:
|
|
605
|
-
needTransition:
|
|
602
|
+
Z($e, {
|
|
603
|
+
exclude: C.value,
|
|
604
|
+
transitionConfig: O.value,
|
|
605
|
+
needTransition: L.needTransition
|
|
606
606
|
}, null, 8, ["exclude", "transitionConfig", "needTransition"])
|
|
607
607
|
],
|
|
608
608
|
512
|
|
609
609
|
/* NEED_PATCH */
|
|
610
610
|
), [
|
|
611
|
-
[M,
|
|
611
|
+
[M, _(s).meta.isIframe]
|
|
612
612
|
])
|
|
613
613
|
], !0)
|
|
614
614
|
])), [
|
|
615
615
|
[M, P.value]
|
|
616
616
|
]),
|
|
617
|
-
D(
|
|
617
|
+
D(x(
|
|
618
618
|
"div",
|
|
619
|
-
|
|
619
|
+
Je,
|
|
620
620
|
[
|
|
621
|
-
|
|
621
|
+
F(L.$slots, "default", {}, void 0, !0)
|
|
622
622
|
],
|
|
623
623
|
512
|
|
624
624
|
/* NEED_PATCH */
|
|
625
625
|
), [
|
|
626
626
|
[M, !P.value]
|
|
627
627
|
])
|
|
628
|
-
])
|
|
628
|
+
])) : w("v-if", !0)
|
|
629
629
|
])
|
|
630
630
|
])
|
|
631
631
|
])
|
|
632
632
|
]);
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
|
-
}),
|
|
635
|
+
}), ot = /* @__PURE__ */ ye(Xe, [["__scopeId", "data-v-687de0c1"]]), Ye = ["theme", "modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], it = /* @__PURE__ */ z({
|
|
636
636
|
__name: "das-web-nav",
|
|
637
637
|
setup(e) {
|
|
638
|
-
const { nav: t } =
|
|
639
|
-
var u,
|
|
638
|
+
const { nav: t } = B, s = c(() => t.theme), l = c(() => t.logo || ""), d = c(() => t.activeItem || ""), r = c(() => (t.items || []).filter((h) => h.fixed)), m = c(() => (t.items || []).filter((h) => !h.fixed)), b = c(() => {
|
|
639
|
+
var u, h, y, j, E;
|
|
640
640
|
return {
|
|
641
641
|
showAIHelper: ((u = t.config) == null ? void 0 : u.showAIHelper) ?? !1,
|
|
642
|
-
showFullScreen: ((
|
|
643
|
-
showChangeEnterprise: ((
|
|
644
|
-
showSearch: ((
|
|
642
|
+
showFullScreen: ((h = t.config) == null ? void 0 : h.showFullScreen) ?? !1,
|
|
643
|
+
showChangeEnterprise: ((y = t.config) == null ? void 0 : y.showChangeEnterprise) ?? !1,
|
|
644
|
+
showSearch: ((j = t.config) == null ? void 0 : j.showSearch) ?? !0,
|
|
645
645
|
showProjectTree: ((E = t.config) == null ? void 0 : E.showProjectTree) ?? !0,
|
|
646
|
-
subAppList:
|
|
646
|
+
subAppList: m.value.map((H) => ({ code: H.value, name: H.label, ...H }))
|
|
647
647
|
};
|
|
648
|
-
}),
|
|
649
|
-
const u = r.value.find((
|
|
648
|
+
}), o = c(() => {
|
|
649
|
+
const u = r.value.find((h) => h.value === t.activeItem);
|
|
650
650
|
return {
|
|
651
651
|
activeInnerPagePath: (u == null ? void 0 : u.path) || "",
|
|
652
|
-
innerPages: r.value.map((
|
|
652
|
+
innerPages: r.value.map((h) => ({ title: h.label, ...h }))
|
|
653
653
|
};
|
|
654
654
|
}), P = c(() => ({
|
|
655
655
|
projectStore: {
|
|
@@ -657,129 +657,129 @@ const h = z({
|
|
|
657
657
|
currentProject: t.activeProject
|
|
658
658
|
},
|
|
659
659
|
...t.projectConfig
|
|
660
|
-
})), T = c(() => t.userInfo),
|
|
661
|
-
const
|
|
662
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
660
|
+
})), T = c(() => t.userInfo), A = c(() => t.searchConfig), n = async (u) => {
|
|
661
|
+
const h = u.detail[0], y = r.value.find((E) => h.value === E.value);
|
|
662
|
+
await v.nav.triggerEventListener("onItemClick", y) && v.nav.setActiveItem(y.value);
|
|
663
663
|
}, a = async (u) => {
|
|
664
|
-
const
|
|
665
|
-
await v.nav.triggerEventListener("onItemClick",
|
|
666
|
-
},
|
|
667
|
-
const
|
|
668
|
-
await v.nav.triggerEventListener("onItemRemove",
|
|
669
|
-
},
|
|
670
|
-
const [
|
|
671
|
-
!
|
|
672
|
-
},
|
|
664
|
+
const h = u.detail[0], y = m.value.find((E) => h === E.value);
|
|
665
|
+
await v.nav.triggerEventListener("onItemClick", y) && v.nav.setActiveItem(y.value);
|
|
666
|
+
}, i = async (u) => {
|
|
667
|
+
const h = u.detail[0], y = m.value.find((E) => h === E.value);
|
|
668
|
+
await v.nav.triggerEventListener("onItemRemove", y) && v.nav.removeItem(y.value);
|
|
669
|
+
}, f = async (u) => {
|
|
670
|
+
const [h, y] = u.detail;
|
|
671
|
+
!h || !await v.nav.triggerEventListener("onProjectChange", y) || v.nav.setActiveProject(y);
|
|
672
|
+
}, C = (u) => {
|
|
673
673
|
v.nav.triggerEventListener("onUserCommandChange", u.detail[0]);
|
|
674
674
|
}, q = (u) => {
|
|
675
675
|
v.nav.triggerEventListener("searchToPage", { item: u.detail[0], keyword: u.detail[1], cb: u.detail[2] });
|
|
676
|
-
},
|
|
676
|
+
}, O = (u) => {
|
|
677
677
|
v.nav.triggerEventListener("clearSearchList", { cb: u.detail[0] });
|
|
678
|
-
},
|
|
678
|
+
}, U = (u) => {
|
|
679
679
|
v.nav.triggerEventListener("deleteSearchItem", { value: u.detail[0], cb: u.detail[1] });
|
|
680
|
-
},
|
|
680
|
+
}, G = () => {
|
|
681
681
|
v.nav.triggerEventListener("changeEnterpriseHandle");
|
|
682
|
-
},
|
|
682
|
+
}, L = () => {
|
|
683
683
|
v.nav.triggerEventListener("fullScreenHandle");
|
|
684
|
-
},
|
|
684
|
+
}, S = () => {
|
|
685
685
|
v.nav.triggerEventListener("openAI");
|
|
686
686
|
};
|
|
687
|
-
return
|
|
687
|
+
return Ie(() => {
|
|
688
688
|
v.nav.triggerEventListener("onBeforeMount", null, { autoRemove: !0 });
|
|
689
|
-
}),
|
|
689
|
+
}), Ce(() => {
|
|
690
690
|
v.nav.triggerEventListener("onMounted", null, { autoRemove: !0 });
|
|
691
|
-
}),
|
|
691
|
+
}), ke(() => {
|
|
692
692
|
v.nav.triggerEventListener("onUnmounted", null, { autoRemove: !0 });
|
|
693
|
-
}), (u,
|
|
694
|
-
theme:
|
|
693
|
+
}), (u, h) => (g(), I("das-ce-nav", {
|
|
694
|
+
theme: s.value,
|
|
695
695
|
modelValue: d.value,
|
|
696
696
|
logoUrl: l.value,
|
|
697
|
-
config:
|
|
698
|
-
innerPagesConfig:
|
|
699
|
-
searchConfig:
|
|
697
|
+
config: b.value,
|
|
698
|
+
innerPagesConfig: o.value,
|
|
699
|
+
searchConfig: A.value,
|
|
700
700
|
projectTreeConfig: P.value,
|
|
701
701
|
userInfoConfig: T.value,
|
|
702
|
-
"on:userCommandHandle":
|
|
703
|
-
"on:changeInnerPage":
|
|
702
|
+
"on:userCommandHandle": C,
|
|
703
|
+
"on:changeInnerPage": n,
|
|
704
704
|
"on:handleTabClick": a,
|
|
705
|
-
"on:handleTabDelete":
|
|
706
|
-
"on:changeTreeHandle":
|
|
705
|
+
"on:handleTabDelete": i,
|
|
706
|
+
"on:changeTreeHandle": f,
|
|
707
707
|
"on:searchToPage": q,
|
|
708
|
-
"on:clearSearchList":
|
|
709
|
-
"on:deleteSearchItem":
|
|
710
|
-
"on:changeEnterpriseHandle":
|
|
711
|
-
"on:fullScreen":
|
|
712
|
-
"on:openAI":
|
|
713
|
-
}, null, 40,
|
|
708
|
+
"on:clearSearchList": O,
|
|
709
|
+
"on:deleteSearchItem": U,
|
|
710
|
+
"on:changeEnterpriseHandle": G,
|
|
711
|
+
"on:fullScreen": L,
|
|
712
|
+
"on:openAI": S
|
|
713
|
+
}, null, 40, Ye));
|
|
714
714
|
}
|
|
715
|
-
}),
|
|
715
|
+
}), Ze = ["theme", "modelValue", "data", "collapse", "fixedTopMenu", "subMenuAttrs"], lt = /* @__PURE__ */ z({
|
|
716
716
|
__name: "das-web-menu",
|
|
717
717
|
props: {
|
|
718
718
|
menuAttr: {}
|
|
719
719
|
},
|
|
720
720
|
setup(e) {
|
|
721
|
-
const { menu: t } =
|
|
722
|
-
const a =
|
|
723
|
-
await v.menu.triggerEventListener("onItemClick",
|
|
724
|
-
},
|
|
725
|
-
v.menu.setCollapse(
|
|
721
|
+
const { menu: t } = B, s = e, l = c(() => t.theme), d = c(() => s.menuAttr || {}), r = c(() => t.items), m = c(() => t.items.find((n) => n.fixed)), b = c(() => t.activeItem || ""), o = c(() => t.collapse || !1), P = c(() => ({ popupClassName: t.popupClassName ?? "" })), T = async (n) => {
|
|
722
|
+
const a = n.detail[0], i = Pe(r.value).find((C) => a === C.id);
|
|
723
|
+
await v.menu.triggerEventListener("onItemClick", i) && v.menu.setActiveItem(i.id);
|
|
724
|
+
}, A = (n) => {
|
|
725
|
+
v.menu.setCollapse(n.detail[0]), v.menu.triggerEventListener("toggleCollapse", n.detail[0]);
|
|
726
726
|
};
|
|
727
|
-
return (
|
|
727
|
+
return (n, a) => r.value.length > 0 ? (g(), I("das-ce-menu", ae({
|
|
728
728
|
key: 0,
|
|
729
729
|
theme: l.value,
|
|
730
|
-
modelValue:
|
|
730
|
+
modelValue: b.value,
|
|
731
731
|
data: r.value,
|
|
732
|
-
collapse:
|
|
733
|
-
fixedTopMenu:
|
|
732
|
+
collapse: o.value,
|
|
733
|
+
fixedTopMenu: m.value,
|
|
734
734
|
subMenuAttrs: P.value
|
|
735
735
|
}, d.value, {
|
|
736
736
|
onChange: T,
|
|
737
|
-
"on:toggleCollapse":
|
|
738
|
-
}), null, 16,
|
|
737
|
+
"on:toggleCollapse": A
|
|
738
|
+
}), null, 16, Ze)) : w("v-if", !0);
|
|
739
739
|
}
|
|
740
|
-
}),
|
|
740
|
+
}), et = ["theme", "modelValue", "options"], ut = /* @__PURE__ */ z({
|
|
741
741
|
__name: "das-web-tabs",
|
|
742
742
|
props: {
|
|
743
743
|
tabsAttr: {}
|
|
744
744
|
},
|
|
745
745
|
setup(e) {
|
|
746
|
-
const { tab: t } =
|
|
747
|
-
...
|
|
748
|
-
key:
|
|
749
|
-
tab:
|
|
750
|
-
}))),
|
|
751
|
-
const a =
|
|
752
|
-
await v.tab.triggerEventListener("onItemClick",
|
|
753
|
-
},
|
|
754
|
-
const a =
|
|
755
|
-
await v.tab.triggerEventListener("onItemRemove",
|
|
756
|
-
}, P = async (
|
|
757
|
-
await v.tab.triggerEventListener("onMenuClick", { type:
|
|
758
|
-
}, T = async (
|
|
759
|
-
await v.tab.triggerEventListener("onPageRefresh",
|
|
760
|
-
},
|
|
746
|
+
const { tab: t } = B, s = e, l = c(() => s.tabsAttr || {}), d = c(() => t.theme), r = c(() => t.items.map((n) => ({
|
|
747
|
+
...n,
|
|
748
|
+
key: n.value,
|
|
749
|
+
tab: n.label
|
|
750
|
+
}))), m = c(() => t.activeItem || ""), b = async (n) => {
|
|
751
|
+
const a = n.detail[0], i = r.value.find((C) => a === C.value);
|
|
752
|
+
await v.tab.triggerEventListener("onItemClick", i) && v.tab.setActiveItem(i.value);
|
|
753
|
+
}, o = async (n) => {
|
|
754
|
+
const a = n.detail[0], i = r.value.find((C) => a === C.value);
|
|
755
|
+
await v.tab.triggerEventListener("onItemRemove", i) && v.tab.removeItem(i.value);
|
|
756
|
+
}, P = async (n) => {
|
|
757
|
+
await v.tab.triggerEventListener("onMenuClick", { type: n.detail[0], data: n.detail[1] });
|
|
758
|
+
}, T = async (n) => {
|
|
759
|
+
await v.tab.triggerEventListener("onPageRefresh", n.detail[0]);
|
|
760
|
+
}, A = () => {
|
|
761
761
|
v.tab.triggerEventListener("onToggleFullScreen");
|
|
762
762
|
};
|
|
763
|
-
return (
|
|
763
|
+
return (n, a) => r.value.length > 0 ? (g(), I("das-ce-tabs", ae({
|
|
764
764
|
key: 0,
|
|
765
765
|
theme: d.value,
|
|
766
|
-
modelValue:
|
|
766
|
+
modelValue: m.value,
|
|
767
767
|
options: r.value
|
|
768
768
|
}, l.value, {
|
|
769
|
-
"on:tabClick":
|
|
770
|
-
"on:tabDelete":
|
|
769
|
+
"on:tabClick": b,
|
|
770
|
+
"on:tabDelete": o,
|
|
771
771
|
"on:menuClick": P,
|
|
772
772
|
"on:pageRefresh": T,
|
|
773
|
-
"on:toggleFullScreen":
|
|
774
|
-
}), null, 16,
|
|
773
|
+
"on:toggleFullScreen": A
|
|
774
|
+
}), null, 16, et)) : w("v-if", !0);
|
|
775
775
|
}
|
|
776
776
|
});
|
|
777
|
-
|
|
777
|
+
$("@das-fed/web");
|
|
778
778
|
export {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
779
|
+
ot as DasWebLayout,
|
|
780
|
+
lt as DasWebMenu,
|
|
781
|
+
it as DasWebNav,
|
|
782
|
+
ut as DasWebTabs,
|
|
783
783
|
v as layout,
|
|
784
|
-
|
|
784
|
+
B as layoutData
|
|
785
785
|
};
|