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