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