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