@das-fed/web 6.4.0-dev.4 → 6.4.0-dev.6
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-BSYJheVx.js → index-BBbzRiUk.js} +1 -1
- package/index-BBbzRiUk.js.gz +0 -0
- package/{index--5iw3PcC.js → index-C8iO4QVt.js} +2081 -2167
- package/index-C8iO4QVt.js.gz +0 -0
- package/{index-D8XgnluX.js → index-CeDdJysJ.js} +1 -1
- package/{index-C5zNxpQk.js → index-GDnK0PX4.js} +1 -1
- package/index-GDnK0PX4.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/config.js +1 -0
- package/packages/create-das-web-app/index.js +14 -11
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/config.js +1 -0
- package/packages/layout/config.js +1 -0
- package/packages/layout/index.js +153 -151
- package/packages/layout/index.js.gz +0 -0
- package/packages/main-app-framework/config.js +1 -0
- package/packages/main-app-framework/{index-MhsbUVtD.js → index-CB6yJ78W.js} +17 -17
- package/packages/main-app-framework/index-CB6yJ78W.js.gz +0 -0
- package/packages/main-app-framework/{index-D7pfTqeW.js → index-CIYEqxNR.js} +2393 -2459
- package/packages/main-app-framework/index-CIYEqxNR.js.gz +0 -0
- package/packages/main-app-framework/{index-BkJc1lDT.js → index-CxDxCkSy.js} +1 -1
- package/packages/main-app-framework/{index-C_X3k7z0.js → index-DHvYQRkj.js} +1 -1
- package/packages/main-app-framework/index-DHvYQRkj.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/config.js +1 -0
- package/packages/micro-frontend/index.js +1 -1
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/config.js +1 -0
- package/packages/theme/config.js +1 -0
- package/index--5iw3PcC.js.gz +0 -0
- package/index-BSYJheVx.js.gz +0 -0
- package/index-C5zNxpQk.js.gz +0 -0
- package/packages/main-app-framework/index-C_X3k7z0.js.gz +0 -0
- package/packages/main-app-framework/index-D7pfTqeW.js.gz +0 -0
- package/packages/main-app-framework/index-MhsbUVtD.js.gz +0 -0
package/packages/layout/index.js
CHANGED
|
@@ -22,63 +22,63 @@ const g = U({
|
|
|
22
22
|
hide: () => {
|
|
23
23
|
g.visible = !1;
|
|
24
24
|
},
|
|
25
|
-
setLogo: (
|
|
26
|
-
g.logo =
|
|
25
|
+
setLogo: (t) => {
|
|
26
|
+
g.logo = t;
|
|
27
27
|
},
|
|
28
|
-
setItems: (
|
|
29
|
-
g.visible || (g.visible = !0), g.items =
|
|
28
|
+
setItems: (t) => {
|
|
29
|
+
g.visible || (g.visible = !0), g.items = t;
|
|
30
30
|
},
|
|
31
31
|
getItems: () => g.items,
|
|
32
|
-
removeItem: (
|
|
33
|
-
const
|
|
34
|
-
g.items =
|
|
32
|
+
removeItem: (t) => {
|
|
33
|
+
const e = g.items.filter((n) => n.value !== t);
|
|
34
|
+
g.items = e;
|
|
35
35
|
},
|
|
36
|
-
appendItem: (
|
|
37
|
-
g.visible || (g.visible = !0), !g.items.find((n) => n.value ==
|
|
36
|
+
appendItem: (t) => {
|
|
37
|
+
g.visible || (g.visible = !0), !g.items.find((n) => n.value == t.value) && g.items.push(t);
|
|
38
38
|
},
|
|
39
|
-
setActiveItem: (
|
|
40
|
-
g.activeItem =
|
|
39
|
+
setActiveItem: (t) => {
|
|
40
|
+
g.activeItem = t;
|
|
41
41
|
},
|
|
42
|
-
setConfig: (
|
|
43
|
-
g.config =
|
|
42
|
+
setConfig: (t) => {
|
|
43
|
+
g.config = t;
|
|
44
44
|
},
|
|
45
|
-
setProjects: (
|
|
46
|
-
g.projects =
|
|
45
|
+
setProjects: (t) => {
|
|
46
|
+
g.projects = t;
|
|
47
47
|
},
|
|
48
|
-
setProjectConfig: (
|
|
49
|
-
g.projectConfig =
|
|
48
|
+
setProjectConfig: (t) => {
|
|
49
|
+
g.projectConfig = t;
|
|
50
50
|
},
|
|
51
|
-
setActiveProject: (
|
|
52
|
-
g.activeProject =
|
|
51
|
+
setActiveProject: (t) => {
|
|
52
|
+
g.activeProject = t;
|
|
53
53
|
},
|
|
54
|
-
setUserInfo: (
|
|
55
|
-
g.userInfo =
|
|
54
|
+
setUserInfo: (t) => {
|
|
55
|
+
g.userInfo = t;
|
|
56
56
|
},
|
|
57
|
-
setSearchConfig: (
|
|
58
|
-
g.searchConfig =
|
|
57
|
+
setSearchConfig: (t) => {
|
|
58
|
+
g.searchConfig = t;
|
|
59
59
|
},
|
|
60
|
-
triggerEventListener: (
|
|
60
|
+
triggerEventListener: (t, e, n) => {
|
|
61
61
|
var p;
|
|
62
|
-
const c = g.eventListeners, { autoRemove:
|
|
62
|
+
const c = g.eventListeners, { autoRemove: o = !1 } = n || {}, u = [];
|
|
63
63
|
for (const y in c) {
|
|
64
64
|
const r = c[y];
|
|
65
|
-
r.type ===
|
|
66
|
-
(p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r,
|
|
67
|
-
|
|
65
|
+
r.type === t && u.push(
|
|
66
|
+
(p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r, e).then(() => {
|
|
67
|
+
o && r.remove();
|
|
68
68
|
})
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
71
|
return Promise.all(u).then(() => !0).catch(() => !1);
|
|
72
72
|
},
|
|
73
|
-
addEventListener: (
|
|
73
|
+
addEventListener: (t, e) => {
|
|
74
74
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), c = () => {
|
|
75
75
|
g.eventListeners[n] && delete g.eventListeners[n];
|
|
76
76
|
};
|
|
77
77
|
return g.eventListeners[n] = {
|
|
78
|
-
type:
|
|
79
|
-
handler: async (
|
|
78
|
+
type: t,
|
|
79
|
+
handler: async (o) => {
|
|
80
80
|
try {
|
|
81
|
-
await
|
|
81
|
+
await e(o);
|
|
82
82
|
} catch (u) {
|
|
83
83
|
throw u;
|
|
84
84
|
}
|
|
@@ -88,42 +88,42 @@ const g = U({
|
|
|
88
88
|
remove: c
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
},
|
|
91
|
+
}, x = U({
|
|
92
92
|
items: [],
|
|
93
93
|
eventListeners: {}
|
|
94
94
|
}), Ae = {
|
|
95
|
-
setItems: (
|
|
96
|
-
|
|
95
|
+
setItems: (t) => {
|
|
96
|
+
x.items = t;
|
|
97
97
|
},
|
|
98
|
-
getItems: () =>
|
|
99
|
-
setActiveItem: (
|
|
100
|
-
|
|
98
|
+
getItems: () => x.items,
|
|
99
|
+
setActiveItem: (t) => {
|
|
100
|
+
x.activeItem = t;
|
|
101
101
|
},
|
|
102
|
-
setPopupClassName: (
|
|
103
|
-
|
|
102
|
+
setPopupClassName: (t) => {
|
|
103
|
+
x.popupClassName = t;
|
|
104
104
|
},
|
|
105
|
-
triggerEventListener: (
|
|
105
|
+
triggerEventListener: (t, e, n) => {
|
|
106
106
|
var p;
|
|
107
|
-
const c =
|
|
107
|
+
const c = x.eventListeners, { autoRemove: o = !1 } = n || {}, u = [];
|
|
108
108
|
for (const y in c) {
|
|
109
109
|
const r = c[y];
|
|
110
|
-
r.type ===
|
|
111
|
-
(p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r,
|
|
112
|
-
|
|
110
|
+
r.type === t && u.push(
|
|
111
|
+
(p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r, e).then(() => {
|
|
112
|
+
o && r.remove();
|
|
113
113
|
})
|
|
114
114
|
);
|
|
115
115
|
}
|
|
116
116
|
return Promise.all(u).then(() => !0).catch(() => !1);
|
|
117
117
|
},
|
|
118
|
-
addEventListener: (
|
|
118
|
+
addEventListener: (t, e) => {
|
|
119
119
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), c = () => {
|
|
120
|
-
|
|
120
|
+
x.eventListeners[n] && delete x.eventListeners[n];
|
|
121
121
|
};
|
|
122
|
-
return
|
|
123
|
-
type:
|
|
124
|
-
handler: async (
|
|
122
|
+
return x.eventListeners[n] = {
|
|
123
|
+
type: t,
|
|
124
|
+
handler: async (o) => {
|
|
125
125
|
try {
|
|
126
|
-
await
|
|
126
|
+
await e(o);
|
|
127
127
|
} catch (u) {
|
|
128
128
|
throw u;
|
|
129
129
|
}
|
|
@@ -137,43 +137,43 @@ const g = U({
|
|
|
137
137
|
items: [],
|
|
138
138
|
eventListeners: {}
|
|
139
139
|
}), Re = {
|
|
140
|
-
setItems: (
|
|
141
|
-
T.items =
|
|
140
|
+
setItems: (t) => {
|
|
141
|
+
T.items = t;
|
|
142
142
|
},
|
|
143
143
|
getItems: () => T.items,
|
|
144
|
-
removeItem: (
|
|
145
|
-
const
|
|
146
|
-
T.items =
|
|
144
|
+
removeItem: (t) => {
|
|
145
|
+
const e = T.items.filter((n) => n.value !== t);
|
|
146
|
+
console.log(e), T.items = e;
|
|
147
147
|
},
|
|
148
|
-
appendItem: (
|
|
149
|
-
const
|
|
150
|
-
|
|
148
|
+
appendItem: (t) => {
|
|
149
|
+
const e = T.items.findIndex((n) => n.value == t.value);
|
|
150
|
+
e !== -1 ? T.items.splice(e, 1, t) : T.items.push(t);
|
|
151
151
|
},
|
|
152
|
-
setActiveItem: (
|
|
153
|
-
T.activeItem =
|
|
152
|
+
setActiveItem: (t) => {
|
|
153
|
+
T.activeItem = t;
|
|
154
154
|
},
|
|
155
|
-
triggerEventListener: (
|
|
155
|
+
triggerEventListener: (t, e, n) => {
|
|
156
156
|
var p;
|
|
157
|
-
const c = T.eventListeners, { autoRemove:
|
|
157
|
+
const c = T.eventListeners, { autoRemove: o = !1 } = n || {}, u = [];
|
|
158
158
|
for (const y in c) {
|
|
159
159
|
const r = c[y];
|
|
160
|
-
r.type ===
|
|
161
|
-
(p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r,
|
|
162
|
-
|
|
160
|
+
r.type === t && u.push(
|
|
161
|
+
(p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r, e).then(() => {
|
|
162
|
+
o && r.remove();
|
|
163
163
|
})
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
166
|
return Promise.all(u).then(() => !0).catch(() => !1);
|
|
167
167
|
},
|
|
168
|
-
addEventListener: (
|
|
168
|
+
addEventListener: (t, e) => {
|
|
169
169
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), c = () => {
|
|
170
170
|
T.eventListeners[n] && delete T.eventListeners[n];
|
|
171
171
|
};
|
|
172
172
|
return T.eventListeners[n] = {
|
|
173
|
-
type:
|
|
174
|
-
handler: async (
|
|
173
|
+
type: t,
|
|
174
|
+
handler: async (o) => {
|
|
175
175
|
try {
|
|
176
|
-
await
|
|
176
|
+
await e(o);
|
|
177
177
|
} catch (u) {
|
|
178
178
|
throw u;
|
|
179
179
|
}
|
|
@@ -186,28 +186,28 @@ const g = U({
|
|
|
186
186
|
}, W = U({
|
|
187
187
|
eventListeners: {}
|
|
188
188
|
}), Ee = {
|
|
189
|
-
triggerEventListener: (
|
|
189
|
+
triggerEventListener: (t, e, n) => {
|
|
190
190
|
var p;
|
|
191
|
-
const c = W.eventListeners, { autoRemove:
|
|
191
|
+
const c = W.eventListeners, { autoRemove: o = !1 } = n || {}, u = [];
|
|
192
192
|
for (const y in c) {
|
|
193
193
|
const r = c[y];
|
|
194
|
-
r.type ===
|
|
195
|
-
(p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r,
|
|
196
|
-
|
|
194
|
+
r.type === t && u.push(
|
|
195
|
+
(p = r == null ? void 0 : r.handler) == null ? void 0 : p.call(r, e).then(() => {
|
|
196
|
+
o && r.remove();
|
|
197
197
|
})
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
200
|
return Promise.all(u).then(() => !0).catch(() => !1);
|
|
201
201
|
},
|
|
202
|
-
addEventListener: (
|
|
202
|
+
addEventListener: (t, e) => {
|
|
203
203
|
const n = (/* @__PURE__ */ new Date()).getTime() + Math.random().toString(36).slice(-8), c = () => {
|
|
204
204
|
W.eventListeners[n] && delete W.eventListeners[n];
|
|
205
205
|
};
|
|
206
206
|
return W.eventListeners[n] = {
|
|
207
|
-
type:
|
|
208
|
-
handler: async (
|
|
207
|
+
type: t,
|
|
208
|
+
handler: async (o) => {
|
|
209
209
|
try {
|
|
210
|
-
await
|
|
210
|
+
await e(o);
|
|
211
211
|
} catch (u) {
|
|
212
212
|
throw u;
|
|
213
213
|
}
|
|
@@ -221,12 +221,12 @@ const g = U({
|
|
|
221
221
|
visible: !1,
|
|
222
222
|
style: {}
|
|
223
223
|
}), Pe = {
|
|
224
|
-
set: (
|
|
225
|
-
te.visible =
|
|
224
|
+
set: (t, e) => {
|
|
225
|
+
te.visible = t, e || (e = {}), e.transition || (e.transition = "all 0.3s"), e && (te.style = e);
|
|
226
226
|
}
|
|
227
227
|
}, $ = {
|
|
228
228
|
nav: g,
|
|
229
|
-
menu:
|
|
229
|
+
menu: x,
|
|
230
230
|
tab: T,
|
|
231
231
|
overlay: te,
|
|
232
232
|
iframeView: W,
|
|
@@ -237,7 +237,7 @@ const g = U({
|
|
|
237
237
|
tab: Re,
|
|
238
238
|
overlay: Pe,
|
|
239
239
|
iframeView: Ee,
|
|
240
|
-
setVisible: (
|
|
240
|
+
setVisible: (t) => $.visible.value = t
|
|
241
241
|
}, Ve = ["name"], Se = ["name"], De = /* @__PURE__ */ z({
|
|
242
242
|
__name: "das-iframe-router-view",
|
|
243
243
|
props: {
|
|
@@ -245,42 +245,42 @@ const g = U({
|
|
|
245
245
|
transitionConfig: {},
|
|
246
246
|
exclude: { default: () => [] }
|
|
247
247
|
},
|
|
248
|
-
setup(
|
|
249
|
-
const
|
|
250
|
-
const { mode: s = "", ...
|
|
248
|
+
setup(t) {
|
|
249
|
+
const e = t, n = v(() => {
|
|
250
|
+
const { mode: s = "", ...i } = {
|
|
251
251
|
mode: "out-in",
|
|
252
252
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
253
|
-
...
|
|
253
|
+
...e.transitionConfig || {}
|
|
254
254
|
};
|
|
255
|
-
return
|
|
256
|
-
}), c = _e(),
|
|
257
|
-
var
|
|
258
|
-
return (
|
|
255
|
+
return i;
|
|
256
|
+
}), c = _e(), o = ve(), u = N([]), p = v(() => u.value.filter((s) => {
|
|
257
|
+
var i;
|
|
258
|
+
return (i = s.meta) == null ? void 0 : i.isOpen;
|
|
259
259
|
})), y = (s) => {
|
|
260
|
-
const
|
|
261
|
-
let a =
|
|
260
|
+
const i = s.lastIndexOf("-");
|
|
261
|
+
let a = i !== -1 ? s.substring(i + 1) : "";
|
|
262
262
|
a === "0" ? a = "1" : a = "0", p.value.forEach((f) => {
|
|
263
263
|
f.meta.key === s && (f.meta.key = `${f.path}-${a}`);
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
266
|
Z(
|
|
267
|
-
() =>
|
|
267
|
+
() => e.exclude,
|
|
268
268
|
(s) => {
|
|
269
269
|
if (!s || !s.length) return;
|
|
270
|
-
const
|
|
271
|
-
|
|
270
|
+
const i = p.value.find((a) => s.includes(a.path));
|
|
271
|
+
i && y(i.meta.key);
|
|
272
272
|
},
|
|
273
273
|
{ deep: !0 }
|
|
274
274
|
);
|
|
275
275
|
const r = async (s) => {
|
|
276
|
-
const
|
|
276
|
+
const i = s.component;
|
|
277
277
|
let a = null;
|
|
278
|
-
return typeof
|
|
278
|
+
return typeof i == "function" ? a = (await i()).default : a = i, a;
|
|
279
279
|
}, E = async () => {
|
|
280
|
-
var
|
|
280
|
+
var i;
|
|
281
281
|
const s = c.options.routes;
|
|
282
282
|
for (const a of s)
|
|
283
|
-
if ((
|
|
283
|
+
if ((i = a == null ? void 0 : a.meta) != null && i.isIframe) {
|
|
284
284
|
const f = await r(a);
|
|
285
285
|
u.value.push({
|
|
286
286
|
...a,
|
|
@@ -293,15 +293,15 @@ const g = U({
|
|
|
293
293
|
if (!u.value || !u.value.length) return;
|
|
294
294
|
const s = u.value.find((k) => k.meta.isShow);
|
|
295
295
|
s && (s.meta.isShow = !1, await ie(), m.iframeView.triggerEventListener("onDeactivated", { route: s }));
|
|
296
|
-
const
|
|
297
|
-
|
|
296
|
+
const i = u.value.find((k) => k.path === o.path);
|
|
297
|
+
i && ((a = i.meta) != null && a.isOpen || (i.meta.isOpen = !0), (f = i.meta) != null && f.isShow || (i.meta.isShow = !0), await ie(), m.iframeView.triggerEventListener("onActivated", { route: i }));
|
|
298
298
|
};
|
|
299
299
|
return E(), Z(
|
|
300
|
-
() =>
|
|
300
|
+
() => o.path,
|
|
301
301
|
() => {
|
|
302
302
|
I();
|
|
303
303
|
}
|
|
304
|
-
), (s,
|
|
304
|
+
), (s, i) => (h(), C(
|
|
305
305
|
G,
|
|
306
306
|
null,
|
|
307
307
|
[
|
|
@@ -322,7 +322,7 @@ const g = U({
|
|
|
322
322
|
key: f.key
|
|
323
323
|
}))
|
|
324
324
|
], 8, Ve)), [
|
|
325
|
-
[V, f.componentInstance && a === b(
|
|
325
|
+
[V, f.componentInstance && a === b(o).path]
|
|
326
326
|
])),
|
|
327
327
|
128
|
|
328
328
|
/* KEYED_FRAGMENT */
|
|
@@ -346,7 +346,7 @@ const g = U({
|
|
|
346
346
|
key: f.key
|
|
347
347
|
}))
|
|
348
348
|
], 8, Se)), [
|
|
349
|
-
[V, f.componentInstance && a === b(
|
|
349
|
+
[V, f.componentInstance && a === b(o).path]
|
|
350
350
|
])),
|
|
351
351
|
128
|
|
352
352
|
/* KEYED_FRAGMENT */
|
|
@@ -356,12 +356,12 @@ const g = U({
|
|
|
356
356
|
/* STABLE_FRAGMENT */
|
|
357
357
|
));
|
|
358
358
|
}
|
|
359
|
-
}), de = (
|
|
360
|
-
const n =
|
|
361
|
-
for (const [c,
|
|
362
|
-
n[c] =
|
|
359
|
+
}), de = (t, e) => {
|
|
360
|
+
const n = t.__vccOpts || t;
|
|
361
|
+
for (const [c, o] of e)
|
|
362
|
+
n[c] = o;
|
|
363
363
|
return n;
|
|
364
|
-
},
|
|
364
|
+
}, xe = /* @__PURE__ */ de(De, [["__scopeId", "data-v-71479406"]]), Me = { class: "das-web-app-container" }, je = {
|
|
365
365
|
key: 0,
|
|
366
366
|
class: "das-web-app-header"
|
|
367
367
|
}, $e = { class: "das-web-app-main" }, He = {
|
|
@@ -391,32 +391,32 @@ const g = U({
|
|
|
391
391
|
excludeRoutes: {},
|
|
392
392
|
routeKeepAliveVisible: { type: Boolean, default: !0 }
|
|
393
393
|
},
|
|
394
|
-
setup(
|
|
395
|
-
const
|
|
394
|
+
setup(t) {
|
|
395
|
+
const e = t;
|
|
396
396
|
Ie(), Le(), Ce();
|
|
397
|
-
const n = ve(), c = N(!1),
|
|
397
|
+
const n = ve(), c = N(!1), o = N(!1), u = N(!1), p = v(() => c.value && e.showLayout), y = v(() => o.value && e.showLayout && e.showAside), r = v(() => c.value && e.showLayout && e.showTabs), E = v(() => (console.log("xx", e.routerViewVisible), e.routerViewVisible ?? !0)), I = v(() => $.overlay.visible ?? !1), s = v(() => ({
|
|
398
398
|
"das-web-app-overlay-show": I.value === !0,
|
|
399
399
|
"das-web-app-overlay-hide": I.value === !1,
|
|
400
400
|
"das-web-app-overlay-destroy": I.value === "destroy"
|
|
401
|
-
})),
|
|
401
|
+
})), i = v(() => $.overlay.style ?? { backgroundColor: "rgba(0,0,0,0.5)" }), a = v(() => e.excludeRoutes), f = v(() => e.routeKeepAliveVisible);
|
|
402
402
|
Z(
|
|
403
403
|
() => [n.meta, n.query],
|
|
404
404
|
([L, S]) => {
|
|
405
|
-
const { showLayout: l = !0, showAside: d = !0, showTabs: w = !0, layout:
|
|
405
|
+
const { showLayout: l = !0, showAside: d = !0, showTabs: w = !0, layout: M = {} } = L, {
|
|
406
406
|
showLayout: A = !0,
|
|
407
407
|
showAside: se = !0,
|
|
408
408
|
showTabs: ae = !0,
|
|
409
409
|
app: me
|
|
410
410
|
} = S;
|
|
411
|
-
window.__IN_DAS_MAIN_APP && (me ? Y({ minHeight: "auto", minWidth: "auto" }) : Y({ minHeight: "600px", minWidth: "1200px" })), window.__IN_DAS_MICRO_APP && Y(
|
|
411
|
+
window.__IN_DAS_MAIN_APP && (me ? Y({ minHeight: "auto", minWidth: "auto" }) : Y({ minHeight: "600px", minWidth: "1200px" })), window.__IN_DAS_MICRO_APP && Y(M);
|
|
412
412
|
let re = !0, K = !0, q = !0;
|
|
413
|
-
(l === !1 || A === !1 || A === "false") && (re = !1, K = !1, q = !1), (d === !1 || se === !1 || se === "false") && (K = !1), (w === !1 || ae === !1 || ae === "false") && (q = !1), c.value = re,
|
|
413
|
+
(l === !1 || A === !1 || A === "false") && (re = !1, K = !1, q = !1), (d === !1 || se === !1 || se === "false") && (K = !1), (w === !1 || ae === !1 || ae === "false") && (q = !1), c.value = re, o.value = K, u.value = q;
|
|
414
414
|
}
|
|
415
415
|
);
|
|
416
416
|
const k = v(() => ({
|
|
417
417
|
mode: "out-in",
|
|
418
418
|
"enter-active-class": "animate__animated animate__fadeInLeft",
|
|
419
|
-
...
|
|
419
|
+
...e.transitionConfig || {}
|
|
420
420
|
}));
|
|
421
421
|
let F = /* @__PURE__ */ new Map();
|
|
422
422
|
const Q = (L, S) => {
|
|
@@ -430,12 +430,12 @@ const g = U({
|
|
|
430
430
|
}, j = v(() => $.visible.value);
|
|
431
431
|
return (L, S) => {
|
|
432
432
|
const l = ge("router-view");
|
|
433
|
-
return h(), C("div",
|
|
433
|
+
return h(), C("div", Me, [
|
|
434
434
|
P(D(
|
|
435
435
|
"div",
|
|
436
436
|
{
|
|
437
437
|
class: he(["das-web-app-overlay", s.value]),
|
|
438
|
-
style: pe(
|
|
438
|
+
style: pe(i.value)
|
|
439
439
|
},
|
|
440
440
|
null,
|
|
441
441
|
6
|
|
@@ -567,7 +567,7 @@ const g = U({
|
|
|
567
567
|
"div",
|
|
568
568
|
Ke,
|
|
569
569
|
[
|
|
570
|
-
J(
|
|
570
|
+
J(xe, {
|
|
571
571
|
exclude: a.value,
|
|
572
572
|
transitionConfig: k.value,
|
|
573
573
|
needTransition: L.needTransition
|
|
@@ -605,32 +605,32 @@ const g = U({
|
|
|
605
605
|
}
|
|
606
606
|
}), at = /* @__PURE__ */ de(Ge, [["__scopeId", "data-v-1c818b3a"]]), Je = ["modelValue", "logoUrl", "config", "innerPagesConfig", "searchConfig", "projectTreeConfig", "userInfoConfig"], rt = /* @__PURE__ */ z({
|
|
607
607
|
__name: "das-web-nav",
|
|
608
|
-
setup(
|
|
609
|
-
const { nav:
|
|
610
|
-
var l, d, w,
|
|
608
|
+
setup(t) {
|
|
609
|
+
const { nav: e } = $, n = v(() => e.logo || ""), c = v(() => e.activeItem || ""), o = v(() => (e.items || []).filter((d) => d.fixed)), u = v(() => (e.items || []).filter((d) => !d.fixed)), p = v(() => {
|
|
610
|
+
var l, d, w, M;
|
|
611
611
|
return {
|
|
612
|
-
showFullScreen: ((l =
|
|
613
|
-
showChangeEnterprise: ((d =
|
|
614
|
-
showSearch: ((w =
|
|
615
|
-
showProjectTree: ((
|
|
612
|
+
showFullScreen: ((l = e.config) == null ? void 0 : l.showFullScreen) ?? !1,
|
|
613
|
+
showChangeEnterprise: ((d = e.config) == null ? void 0 : d.showChangeEnterprise) ?? !1,
|
|
614
|
+
showSearch: ((w = e.config) == null ? void 0 : w.showSearch) ?? !0,
|
|
615
|
+
showProjectTree: ((M = e.config) == null ? void 0 : M.showProjectTree) ?? !0,
|
|
616
616
|
subAppList: u.value.map((A) => ({ code: A.value, name: A.label, ...A }))
|
|
617
617
|
};
|
|
618
618
|
}), y = v(() => {
|
|
619
|
-
const l =
|
|
619
|
+
const l = o.value.find((d) => d.value === e.activeItem);
|
|
620
620
|
return {
|
|
621
621
|
activeInnerPagePath: (l == null ? void 0 : l.path) || "",
|
|
622
|
-
innerPages:
|
|
622
|
+
innerPages: o.value.map((d) => ({ title: d.label, ...d }))
|
|
623
623
|
};
|
|
624
624
|
}), r = v(() => ({
|
|
625
625
|
projectStore: {
|
|
626
|
-
projectTree:
|
|
627
|
-
currentProject:
|
|
626
|
+
projectTree: e.projects,
|
|
627
|
+
currentProject: e.activeProject
|
|
628
628
|
},
|
|
629
|
-
...
|
|
630
|
-
})), E = v(() =>
|
|
631
|
-
const d = l.detail[0], w =
|
|
629
|
+
...e.projectConfig
|
|
630
|
+
})), E = v(() => e.userInfo), I = v(() => e.searchConfig), s = async (l) => {
|
|
631
|
+
const d = l.detail[0], w = o.value.find((A) => d.value === A.value);
|
|
632
632
|
await m.nav.triggerEventListener("onItemClick", w) && m.nav.setActiveItem(w.value);
|
|
633
|
-
},
|
|
633
|
+
}, i = async (l) => {
|
|
634
634
|
const d = l.detail[0], w = u.value.find((A) => d === A.value);
|
|
635
635
|
await m.nav.triggerEventListener("onItemClick", w) && m.nav.setActiveItem(w.value);
|
|
636
636
|
}, a = async (l) => {
|
|
@@ -668,7 +668,7 @@ const g = U({
|
|
|
668
668
|
userInfoConfig: E.value,
|
|
669
669
|
"on:userCommandHandle": k,
|
|
670
670
|
"on:changeInnerPage": s,
|
|
671
|
-
"on:handleTabClick":
|
|
671
|
+
"on:handleTabClick": i,
|
|
672
672
|
"on:handleTabDelete": a,
|
|
673
673
|
"on:changeTreeHandle": f,
|
|
674
674
|
"on:searchToPage": F,
|
|
@@ -683,15 +683,17 @@ const g = U({
|
|
|
683
683
|
props: {
|
|
684
684
|
menuAttr: {}
|
|
685
685
|
},
|
|
686
|
-
setup(
|
|
687
|
-
const { menu:
|
|
688
|
-
|
|
689
|
-
|
|
686
|
+
setup(t) {
|
|
687
|
+
const { menu: e } = $, n = t, c = v(() => n.menuAttr || {}), o = v(() => e.items);
|
|
688
|
+
console.log("menus====", o);
|
|
689
|
+
const u = v(() => e.items.find((I) => I.fixed)), p = v(() => e.activeItem || ""), y = v(() => e.collapse ?? !1), r = v(() => ({ popupClassName: e.popupClassName ?? "" })), E = async (I) => {
|
|
690
|
+
const s = I.detail[0], i = ke(o.value).find((f) => s === f.id);
|
|
691
|
+
await m.menu.triggerEventListener("onItemClick", i) && m.menu.setActiveItem(i.id);
|
|
690
692
|
};
|
|
691
|
-
return (I, s) =>
|
|
693
|
+
return (I, s) => o.value.length > 0 ? (h(), C("das-ce-menu", ne({
|
|
692
694
|
key: 0,
|
|
693
695
|
modelValue: p.value,
|
|
694
|
-
data:
|
|
696
|
+
data: o.value,
|
|
695
697
|
collapse: y.value,
|
|
696
698
|
fixedTopMenu: u.value,
|
|
697
699
|
subMenuAttrs: r.value
|
|
@@ -702,16 +704,16 @@ const g = U({
|
|
|
702
704
|
props: {
|
|
703
705
|
tabsAttr: {}
|
|
704
706
|
},
|
|
705
|
-
setup(
|
|
706
|
-
const { tab:
|
|
707
|
+
setup(t) {
|
|
708
|
+
const { tab: e } = $, n = t, c = v(() => n.tabsAttr || {}), o = v(() => e.items.map((s) => ({
|
|
707
709
|
...s,
|
|
708
710
|
key: s.value,
|
|
709
711
|
tab: s.label
|
|
710
|
-
}))), u = v(() =>
|
|
711
|
-
const
|
|
712
|
+
}))), u = v(() => e.activeItem || ""), p = async (s) => {
|
|
713
|
+
const i = s.detail[0], a = o.value.find((k) => i === k.value);
|
|
712
714
|
await m.tab.triggerEventListener("onItemClick", a) && m.tab.setActiveItem(a.value);
|
|
713
715
|
}, y = async (s) => {
|
|
714
|
-
const
|
|
716
|
+
const i = s.detail[0], a = o.value.find((k) => i === k.value);
|
|
715
717
|
await m.tab.triggerEventListener("onItemRemove", a) && m.tab.removeItem(a.value);
|
|
716
718
|
}, r = async (s) => {
|
|
717
719
|
await m.tab.triggerEventListener("onMenuClick", { type: s.detail[0], data: s.detail[1] });
|
|
@@ -720,10 +722,10 @@ const g = U({
|
|
|
720
722
|
}, I = () => {
|
|
721
723
|
m.tab.triggerEventListener("onToggleFullScreen");
|
|
722
724
|
};
|
|
723
|
-
return (s,
|
|
725
|
+
return (s, i) => o.value.length > 0 ? (h(), C("das-ce-tabs", ne({
|
|
724
726
|
key: 0,
|
|
725
727
|
modelValue: u.value,
|
|
726
|
-
options:
|
|
728
|
+
options: o.value
|
|
727
729
|
}, c.value, {
|
|
728
730
|
"on:tabClick": p,
|
|
729
731
|
"on:tabDelete": y,
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.config = {}
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
|
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
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-CIYEqxNR.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 = {
|
|
@@ -11,37 +11,37 @@ const N = {
|
|
|
11
11
|
}, T = ["src"], U = /* @__PURE__ */ v({
|
|
12
12
|
__name: "index",
|
|
13
13
|
setup(V) {
|
|
14
|
-
const
|
|
14
|
+
const o = r(""), n = r(!0);
|
|
15
15
|
C.tab.addEventListener("onPageRefresh", async (e) => {
|
|
16
|
-
e && e.path === R && (L(e.applicationCode, [e.code]), n.value = !1, await u(), n.value = !0);
|
|
16
|
+
e && e.path === R && (console.log("onPageRefresh===iframe", e), L(e.applicationCode, [e.code]), n.value = !1, await u(), n.value = !0);
|
|
17
17
|
});
|
|
18
|
-
const
|
|
18
|
+
const t = r(!1), i = r(null), a = r(!1), f = () => {
|
|
19
19
|
var e, s;
|
|
20
|
-
|
|
20
|
+
a.value && (e = i.value) != null && e.contentWindow && ((s = i.value.contentWindow) == null || s.postMessage(
|
|
21
21
|
{
|
|
22
22
|
token: j(),
|
|
23
23
|
userInfo: B(),
|
|
24
24
|
projectInfo: D()
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
o.value
|
|
27
27
|
));
|
|
28
28
|
}, m = P();
|
|
29
29
|
p(
|
|
30
30
|
() => m.query.iframeSrc,
|
|
31
31
|
async (e) => {
|
|
32
|
-
e && (
|
|
32
|
+
e && (o.value = e, t.value = !1, await u(), t.value = !0, f());
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
const d = () => {
|
|
36
|
-
|
|
36
|
+
a.value = !0, f();
|
|
37
37
|
};
|
|
38
38
|
return _(() => {
|
|
39
|
-
|
|
39
|
+
t.value = !0, o.value = E(location.href, "iframeSrc");
|
|
40
40
|
}), h(() => {
|
|
41
|
-
|
|
42
|
-
}), (e, s) =>
|
|
43
|
-
w(
|
|
44
|
-
spinning: !
|
|
41
|
+
a.value = !1, t.value = !1;
|
|
42
|
+
}), (e, s) => t.value && n.value ? (c(), l("div", N, [
|
|
43
|
+
g(w(S), {
|
|
44
|
+
spinning: !a.value
|
|
45
45
|
}, {
|
|
46
46
|
default: k(() => [
|
|
47
47
|
x((c(), l("iframe", {
|
|
@@ -50,11 +50,11 @@ const N = {
|
|
|
50
50
|
ref: i,
|
|
51
51
|
width: "100%",
|
|
52
52
|
height: "100%",
|
|
53
|
-
src:
|
|
54
|
-
key:
|
|
53
|
+
src: o.value,
|
|
54
|
+
key: o.value,
|
|
55
55
|
onLoad: d
|
|
56
56
|
}, null, 40, T)), [
|
|
57
|
-
[y,
|
|
57
|
+
[y, a.value]
|
|
58
58
|
])
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
Binary file
|