workflow-editor 0.0.78-up → 0.0.80-up
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/lib/{401-46aa8f87.js → 401-d594cba0.js} +1 -1
- package/lib/{404-d21908be.js → 404-c88c55f1.js} +1 -1
- package/lib/{iframe-page-3413e730.js → iframe-page-f8737ba6.js} +1 -1
- package/lib/{index-6277284d.js → index-9b4d762a.js} +21930 -22463
- package/lib/{tab-content-iframe-index-451a0695.js → tab-content-iframe-index-5455fdb0.js} +1 -1
- package/lib/tab-content-index-5d75237c.js +1241 -0
- package/lib/{tache-subprocess-history-3c4f52c1.js → tache-subprocess-history-26084654.js} +1 -1
- package/lib/workflow-editor.css +1 -1
- package/lib/workflow-editor.js +1 -1
- package/lib/workflow-editor.umd.cjs +41 -41
- package/package.json +2 -2
- package/packages/workflow-editor/src/properties-editors/common/task-title.vue +15 -2
- package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +31 -44
- package/src/i18n/langs/cn.js +2 -1
- package/src/i18n/langs/en.js +2 -1
- package/lib/tab-content-index-d0b24ac6.js +0 -484
|
@@ -1,484 +0,0 @@
|
|
|
1
|
-
import { _ as O, g as Q, b as V, s as x, m as z, M as W, i as q } from "./index-6277284d.js";
|
|
2
|
-
import { resolveComponent as b, openBlock as m, createBlock as T, withCtx as E, createVNode as P, TransitionGroup as U, createElementBlock as C, Fragment as N, renderList as R, createElementVNode as v, toDisplayString as $, normalizeClass as G, createCommentVNode as L } from "vue";
|
|
3
|
-
function j(e) {
|
|
4
|
-
for (var t = [], n = 0; n < e.length; ) {
|
|
5
|
-
var r = e[n];
|
|
6
|
-
if (r === "*" || r === "+" || r === "?") {
|
|
7
|
-
t.push({ type: "MODIFIER", index: n, value: e[n++] });
|
|
8
|
-
continue;
|
|
9
|
-
}
|
|
10
|
-
if (r === "\\") {
|
|
11
|
-
t.push({ type: "ESCAPED_CHAR", index: n++, value: e[n++] });
|
|
12
|
-
continue;
|
|
13
|
-
}
|
|
14
|
-
if (r === "{") {
|
|
15
|
-
t.push({ type: "OPEN", index: n, value: e[n++] });
|
|
16
|
-
continue;
|
|
17
|
-
}
|
|
18
|
-
if (r === "}") {
|
|
19
|
-
t.push({ type: "CLOSE", index: n, value: e[n++] });
|
|
20
|
-
continue;
|
|
21
|
-
}
|
|
22
|
-
if (r === ":") {
|
|
23
|
-
for (var c = "", a = n + 1; a < e.length; ) {
|
|
24
|
-
var s = e.charCodeAt(a);
|
|
25
|
-
if (
|
|
26
|
-
// `0-9`
|
|
27
|
-
s >= 48 && s <= 57 || // `A-Z`
|
|
28
|
-
s >= 65 && s <= 90 || // `a-z`
|
|
29
|
-
s >= 97 && s <= 122 || // `_`
|
|
30
|
-
s === 95
|
|
31
|
-
) {
|
|
32
|
-
c += e[a++];
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
if (!c)
|
|
38
|
-
throw new TypeError("Missing parameter name at ".concat(n));
|
|
39
|
-
t.push({ type: "NAME", index: n, value: c }), n = a;
|
|
40
|
-
continue;
|
|
41
|
-
}
|
|
42
|
-
if (r === "(") {
|
|
43
|
-
var o = 1, i = "", a = n + 1;
|
|
44
|
-
if (e[a] === "?")
|
|
45
|
-
throw new TypeError('Pattern cannot start with "?" at '.concat(a));
|
|
46
|
-
for (; a < e.length; ) {
|
|
47
|
-
if (e[a] === "\\") {
|
|
48
|
-
i += e[a++] + e[a++];
|
|
49
|
-
continue;
|
|
50
|
-
}
|
|
51
|
-
if (e[a] === ")") {
|
|
52
|
-
if (o--, o === 0) {
|
|
53
|
-
a++;
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
} else if (e[a] === "(" && (o++, e[a + 1] !== "?"))
|
|
57
|
-
throw new TypeError("Capturing groups are not allowed at ".concat(a));
|
|
58
|
-
i += e[a++];
|
|
59
|
-
}
|
|
60
|
-
if (o)
|
|
61
|
-
throw new TypeError("Unbalanced pattern at ".concat(n));
|
|
62
|
-
if (!i)
|
|
63
|
-
throw new TypeError("Missing pattern at ".concat(n));
|
|
64
|
-
t.push({ type: "PATTERN", index: n, value: i }), n = a;
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
t.push({ type: "CHAR", index: n, value: e[n++] });
|
|
68
|
-
}
|
|
69
|
-
return t.push({ type: "END", index: n, value: "" }), t;
|
|
70
|
-
}
|
|
71
|
-
function k(e, t) {
|
|
72
|
-
t === void 0 && (t = {});
|
|
73
|
-
for (var n = j(e), r = t.prefixes, c = r === void 0 ? "./" : r, a = "[^".concat(X(t.delimiter || "/#?"), "]+?"), s = [], o = 0, i = 0, l = "", d = function(h) {
|
|
74
|
-
if (i < n.length && n[i].type === h)
|
|
75
|
-
return n[i++].value;
|
|
76
|
-
}, u = function(h) {
|
|
77
|
-
var w = d(h);
|
|
78
|
-
if (w !== void 0)
|
|
79
|
-
return w;
|
|
80
|
-
var S = n[i], F = S.type, H = S.index;
|
|
81
|
-
throw new TypeError("Unexpected ".concat(F, " at ").concat(H, ", expected ").concat(h));
|
|
82
|
-
}, p = function() {
|
|
83
|
-
for (var h = "", w; w = d("CHAR") || d("ESCAPED_CHAR"); )
|
|
84
|
-
h += w;
|
|
85
|
-
return h;
|
|
86
|
-
}; i < n.length; ) {
|
|
87
|
-
var g = d("CHAR"), y = d("NAME"), _ = d("PATTERN");
|
|
88
|
-
if (y || _) {
|
|
89
|
-
var f = g || "";
|
|
90
|
-
c.indexOf(f) === -1 && (l += f, f = ""), l && (s.push(l), l = ""), s.push({
|
|
91
|
-
name: y || o++,
|
|
92
|
-
prefix: f,
|
|
93
|
-
suffix: "",
|
|
94
|
-
pattern: _ || a,
|
|
95
|
-
modifier: d("MODIFIER") || ""
|
|
96
|
-
});
|
|
97
|
-
continue;
|
|
98
|
-
}
|
|
99
|
-
var A = g || d("ESCAPED_CHAR");
|
|
100
|
-
if (A) {
|
|
101
|
-
l += A;
|
|
102
|
-
continue;
|
|
103
|
-
}
|
|
104
|
-
l && (s.push(l), l = "");
|
|
105
|
-
var D = d("OPEN");
|
|
106
|
-
if (D) {
|
|
107
|
-
var f = p(), I = d("NAME") || "", M = d("PATTERN") || "", B = p();
|
|
108
|
-
u("CLOSE"), s.push({
|
|
109
|
-
name: I || (M ? o++ : ""),
|
|
110
|
-
pattern: I && !M ? a : M,
|
|
111
|
-
prefix: f,
|
|
112
|
-
suffix: B,
|
|
113
|
-
modifier: d("MODIFIER") || ""
|
|
114
|
-
});
|
|
115
|
-
continue;
|
|
116
|
-
}
|
|
117
|
-
u("END");
|
|
118
|
-
}
|
|
119
|
-
return s;
|
|
120
|
-
}
|
|
121
|
-
function J(e, t) {
|
|
122
|
-
return K(k(e, t), t);
|
|
123
|
-
}
|
|
124
|
-
function K(e, t) {
|
|
125
|
-
t === void 0 && (t = {});
|
|
126
|
-
var n = Y(t), r = t.encode, c = r === void 0 ? function(i) {
|
|
127
|
-
return i;
|
|
128
|
-
} : r, a = t.validate, s = a === void 0 ? !0 : a, o = e.map(function(i) {
|
|
129
|
-
if (typeof i == "object")
|
|
130
|
-
return new RegExp("^(?:".concat(i.pattern, ")$"), n);
|
|
131
|
-
});
|
|
132
|
-
return function(i) {
|
|
133
|
-
for (var l = "", d = 0; d < e.length; d++) {
|
|
134
|
-
var u = e[d];
|
|
135
|
-
if (typeof u == "string") {
|
|
136
|
-
l += u;
|
|
137
|
-
continue;
|
|
138
|
-
}
|
|
139
|
-
var p = i ? i[u.name] : void 0, g = u.modifier === "?" || u.modifier === "*", y = u.modifier === "*" || u.modifier === "+";
|
|
140
|
-
if (Array.isArray(p)) {
|
|
141
|
-
if (!y)
|
|
142
|
-
throw new TypeError('Expected "'.concat(u.name, '" to not repeat, but got an array'));
|
|
143
|
-
if (p.length === 0) {
|
|
144
|
-
if (g)
|
|
145
|
-
continue;
|
|
146
|
-
throw new TypeError('Expected "'.concat(u.name, '" to not be empty'));
|
|
147
|
-
}
|
|
148
|
-
for (var _ = 0; _ < p.length; _++) {
|
|
149
|
-
var f = c(p[_], u);
|
|
150
|
-
if (s && !o[d].test(f))
|
|
151
|
-
throw new TypeError('Expected all "'.concat(u.name, '" to match "').concat(u.pattern, '", but got "').concat(f, '"'));
|
|
152
|
-
l += u.prefix + f + u.suffix;
|
|
153
|
-
}
|
|
154
|
-
continue;
|
|
155
|
-
}
|
|
156
|
-
if (typeof p == "string" || typeof p == "number") {
|
|
157
|
-
var f = c(String(p), u);
|
|
158
|
-
if (s && !o[d].test(f))
|
|
159
|
-
throw new TypeError('Expected "'.concat(u.name, '" to match "').concat(u.pattern, '", but got "').concat(f, '"'));
|
|
160
|
-
l += u.prefix + f + u.suffix;
|
|
161
|
-
continue;
|
|
162
|
-
}
|
|
163
|
-
if (!g) {
|
|
164
|
-
var A = y ? "an array" : "a string";
|
|
165
|
-
throw new TypeError('Expected "'.concat(u.name, '" to be ').concat(A));
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
return l;
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
function X(e) {
|
|
172
|
-
return e.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
|
173
|
-
}
|
|
174
|
-
function Y(e) {
|
|
175
|
-
return e && e.sensitive ? "" : "i";
|
|
176
|
-
}
|
|
177
|
-
const Z = {
|
|
178
|
-
name: "Breadcrumb",
|
|
179
|
-
data() {
|
|
180
|
-
return {
|
|
181
|
-
levelList: null
|
|
182
|
-
};
|
|
183
|
-
},
|
|
184
|
-
computed: {
|
|
185
|
-
levelListWithTitle() {
|
|
186
|
-
return this.levelList.filter(
|
|
187
|
-
(e) => e.meta.title !== void 0 && e.meta.title !== null
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
watch: {
|
|
192
|
-
$route() {
|
|
193
|
-
this.getBreadcrumb();
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
created() {
|
|
197
|
-
this.getBreadcrumb();
|
|
198
|
-
},
|
|
199
|
-
methods: {
|
|
200
|
-
getBreadcrumb() {
|
|
201
|
-
const { params: e } = this.$route;
|
|
202
|
-
console.log("this.$route.matched==", this.$route.matched);
|
|
203
|
-
let t = this.$route.matched.filter((n) => {
|
|
204
|
-
if (n.name) {
|
|
205
|
-
var r = J(n.path);
|
|
206
|
-
return n.path = r(e), !0;
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
if (t) {
|
|
210
|
-
let n;
|
|
211
|
-
const r = Q(), c = window.$vueApp.config.globalProperties.systemNameObj;
|
|
212
|
-
c && (n = c[r]), t = [
|
|
213
|
-
{ path: "/", redirect: "noredirect", meta: { title: n } }
|
|
214
|
-
].concat(t);
|
|
215
|
-
const a = V.get("selectMenu"), s = window.$vueApp.config.globalProperties._selectMenu;
|
|
216
|
-
let o;
|
|
217
|
-
if (s ? o = s : a && (o = a), o) {
|
|
218
|
-
const i = o.substring(0, o.indexOf("~~")), l = o.substring(o.indexOf("~~") + 2);
|
|
219
|
-
if (t && t.length > 0) {
|
|
220
|
-
const d = t[t.length - 1];
|
|
221
|
-
this.isShouldConcatLastMenu(l, i, d) && t.push({ path: i, meta: { title: l } });
|
|
222
|
-
} else
|
|
223
|
-
t.push({ path: i, meta: { title: l } });
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
this.levelList = t;
|
|
227
|
-
},
|
|
228
|
-
// 新建页面时会把列表页面路由刷没,导致菜单路径缺少最后一层菜单问题
|
|
229
|
-
isShouldConcatLastMenu(e, t, n) {
|
|
230
|
-
return !!(this.isTitleNotEqual(e, n) && this.isPathNotEqual(t, n));
|
|
231
|
-
},
|
|
232
|
-
/**
|
|
233
|
-
* window.$vueApp.config.globalProperties._selectMenu的菜单标题是否与最后的路由页面标题一致
|
|
234
|
-
* 返回true表示不一样,返回false表示一样
|
|
235
|
-
*/
|
|
236
|
-
isTitleNotEqual(e, t) {
|
|
237
|
-
return !!(e && t.meta && e !== t.meta.title && e !== this.$t(t.meta.title));
|
|
238
|
-
},
|
|
239
|
-
/**
|
|
240
|
-
* window.$vueApp.config.globalProperties._selectMenu的菜单的访问路径是否与最后的路由页面的路径一致
|
|
241
|
-
* 返回true表示不一样,返回false表示一样
|
|
242
|
-
*/
|
|
243
|
-
isPathNotEqual(e, t) {
|
|
244
|
-
return !!(e && t.path && e !== t.path);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}, ee = { class: "no-redirect" };
|
|
248
|
-
function te(e, t, n, r, c, a) {
|
|
249
|
-
const s = b("el-breadcrumb-item"), o = b("el-breadcrumb");
|
|
250
|
-
return m(), T(o, {
|
|
251
|
-
class: "app-breadcrumb",
|
|
252
|
-
separator: ">"
|
|
253
|
-
}, {
|
|
254
|
-
default: E(() => [
|
|
255
|
-
P(U, {
|
|
256
|
-
name: "breadcrumb",
|
|
257
|
-
tag: "span"
|
|
258
|
-
}, {
|
|
259
|
-
default: E(() => [
|
|
260
|
-
(m(!0), C(N, null, R(a.levelListWithTitle, (i, l) => (m(), T(s, {
|
|
261
|
-
key: i.path + "-" + l
|
|
262
|
-
}, {
|
|
263
|
-
default: E(() => [
|
|
264
|
-
v("span", ee, $(e.$t(i.meta.title)), 1)
|
|
265
|
-
]),
|
|
266
|
-
_: 2
|
|
267
|
-
}, 1024))), 128))
|
|
268
|
-
]),
|
|
269
|
-
_: 1
|
|
270
|
-
})
|
|
271
|
-
]),
|
|
272
|
-
_: 1
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
const ne = /* @__PURE__ */ O(Z, [["render", te], ["__scopeId", "data-v-7ae796e7"]]), { body: ae } = document, ie = 1024, re = 3, se = {
|
|
276
|
-
watch: {
|
|
277
|
-
$route(e) {
|
|
278
|
-
this.device === "mobile" && this.sidebar.opened && x.dispatch("closeSidebar", { withoutAnimation: !1 });
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
beforeMount() {
|
|
282
|
-
window.addEventListener("resize", this.resizeHandler);
|
|
283
|
-
},
|
|
284
|
-
mounted() {
|
|
285
|
-
this.isMobile() && (x.dispatch("toggelDevice", "mobile"), x.dispatch("closeSidebar", { withoutAnimation: !0 }));
|
|
286
|
-
},
|
|
287
|
-
methods: {
|
|
288
|
-
isMobile() {
|
|
289
|
-
return ae.getBoundingClientRect().width - re < ie;
|
|
290
|
-
},
|
|
291
|
-
resizeHandler() {
|
|
292
|
-
if (!document.hidden) {
|
|
293
|
-
const e = this.isMobile();
|
|
294
|
-
x.dispatch("toggelDevice", e ? "mobile" : "desktop"), e && x.dispatch("closeSidebar", { withoutAnimation: !0 });
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
const oe = {
|
|
300
|
-
name: "TabContent",
|
|
301
|
-
data() {
|
|
302
|
-
let e = window.$vueApp.config.globalProperties.defaultPageTip;
|
|
303
|
-
e || (e = "欢迎访问Agile Builder/Welcome to Agile Builder");
|
|
304
|
-
let t = e, n;
|
|
305
|
-
return e && e.indexOf("/") > 0 && (t = e.substring(
|
|
306
|
-
0,
|
|
307
|
-
e.lastIndexOf("/")
|
|
308
|
-
), n = e.substring(
|
|
309
|
-
e.lastIndexOf("/") + 1
|
|
310
|
-
)), {
|
|
311
|
-
defaultPageTipCn: t,
|
|
312
|
-
defaultPageTipEn: n
|
|
313
|
-
};
|
|
314
|
-
},
|
|
315
|
-
computed: {
|
|
316
|
-
...z(["openTab"]),
|
|
317
|
-
activeIndex: {
|
|
318
|
-
get() {
|
|
319
|
-
return this.$store.state.tabContent.activeIndex;
|
|
320
|
-
},
|
|
321
|
-
set(e) {
|
|
322
|
-
this.$store.commit("set_active_index", e);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
created() {
|
|
327
|
-
window.addEventListener("message", this.recieveMessage);
|
|
328
|
-
},
|
|
329
|
-
mounted() {
|
|
330
|
-
},
|
|
331
|
-
unmounted() {
|
|
332
|
-
window.removeEventListener("message", this.recieveMessage);
|
|
333
|
-
},
|
|
334
|
-
methods: {
|
|
335
|
-
closeSelectedTag(e) {
|
|
336
|
-
const t = this.$store.state.tabContent.openTab.findIndex(
|
|
337
|
-
(r) => r.code === e
|
|
338
|
-
), n = this.$store.state.tabContent.openTab[t];
|
|
339
|
-
this.$store.commit("delete_tabs", n), e === this.activeIndex && this.toLastView(
|
|
340
|
-
this.$store.state.tabContent.openTab,
|
|
341
|
-
t > 0 ? t - 1 : 0
|
|
342
|
-
);
|
|
343
|
-
},
|
|
344
|
-
toLastView(e, t) {
|
|
345
|
-
if (e && e.length > 0 && e.length > t) {
|
|
346
|
-
const n = e[t];
|
|
347
|
-
n && this.$store.commit("set_active_index", n.code);
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
getFullPath(e) {
|
|
351
|
-
let t = "";
|
|
352
|
-
if (e.routePath === "/iframe-page/page") {
|
|
353
|
-
let n, r = "";
|
|
354
|
-
if (e.routeQuery)
|
|
355
|
-
for (const c in e.routeQuery)
|
|
356
|
-
c === "src" ? n = e.routeQuery[c] : r += c + "=" + e.routeQuery[c] + "&";
|
|
357
|
-
n && (t = n), r && (t += "?" + r);
|
|
358
|
-
} else if (e.routePath.indexOf("http:") < 0 && e.routePath.indexOf("https:") < 0 && (t = "#"), e.routePath.indexOf("?") >= 0 ? t = t + e.routePath + "&" : t = t + e.routePath + "?", e.routeQuery)
|
|
359
|
-
for (const n in e.routeQuery)
|
|
360
|
-
t += n + "=" + e.routeQuery[n] + "&";
|
|
361
|
-
return t && t.length > 0 && t.lastIndexOf("&") === t.length - 1 && (t = t.substring(0, t.lastIndexOf("&"))), t;
|
|
362
|
-
},
|
|
363
|
-
recieveMessage(e) {
|
|
364
|
-
if (e && typeof e.data == "string" && e.data === "refreshTabContent")
|
|
365
|
-
window.location.reload();
|
|
366
|
-
else if (e && typeof e.data == "string" && e.data.indexOf("loginTimeout") >= 0)
|
|
367
|
-
console.log(
|
|
368
|
-
"tab-content-接收到登录超时的信息---event.data=",
|
|
369
|
-
e.data
|
|
370
|
-
), window.parent.postMessage(e.data, "*");
|
|
371
|
-
else if (e && typeof e.data == "string" && e.data === "return-to-system-list") {
|
|
372
|
-
this.$store.commit("clear_tabs");
|
|
373
|
-
let t = "_IS_APP_LIST";
|
|
374
|
-
const n = window.sessionStorage.getItem(t);
|
|
375
|
-
n !== void 0 && n === "true" ? this.$router.push({ path: "/mms/apps/list" }) : this.$router.push({ path: "/mms/systems/list" });
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}, ce = ["src"], ue = {
|
|
380
|
-
key: 1,
|
|
381
|
-
class: "default-page-tip"
|
|
382
|
-
}, le = { class: "default-page-tip-msg" }, de = { class: "default-page-tip-item" }, fe = { class: "default-page-tip-item" };
|
|
383
|
-
function pe(e, t, n, r, c, a) {
|
|
384
|
-
const s = b("el-tab-pane"), o = b("el-tabs");
|
|
385
|
-
return e.openTab && e.openTab.length > 0 ? (m(), T(o, {
|
|
386
|
-
key: 0,
|
|
387
|
-
modelValue: a.activeIndex,
|
|
388
|
-
"onUpdate:modelValue": t[0] || (t[0] = (i) => a.activeIndex = i),
|
|
389
|
-
class: "nav-tab menu-tab-container",
|
|
390
|
-
closable: "",
|
|
391
|
-
onTabRemove: a.closeSelectedTag
|
|
392
|
-
}, {
|
|
393
|
-
default: E(() => [
|
|
394
|
-
(m(!0), C(N, null, R(e.openTab, (i) => (m(), T(s, {
|
|
395
|
-
key: i.code,
|
|
396
|
-
label: i.name,
|
|
397
|
-
name: i.code
|
|
398
|
-
}, {
|
|
399
|
-
default: E(() => [
|
|
400
|
-
v("iframe", {
|
|
401
|
-
ref_for: !0,
|
|
402
|
-
ref: "tabMainContent",
|
|
403
|
-
src: a.getFullPath(i),
|
|
404
|
-
class: "tab-main-content",
|
|
405
|
-
name: "tab-main-content",
|
|
406
|
-
frameborder: "0"
|
|
407
|
-
}, null, 8, ce)
|
|
408
|
-
]),
|
|
409
|
-
_: 2
|
|
410
|
-
}, 1032, ["label", "name"]))), 128))
|
|
411
|
-
]),
|
|
412
|
-
_: 1
|
|
413
|
-
}, 8, ["modelValue", "onTabRemove"])) : (m(), C("div", ue, [
|
|
414
|
-
v("div", le, [
|
|
415
|
-
v("div", de, $(c.defaultPageTipCn), 1),
|
|
416
|
-
v("div", fe, $(c.defaultPageTipEn), 1)
|
|
417
|
-
])
|
|
418
|
-
]));
|
|
419
|
-
}
|
|
420
|
-
const me = /* @__PURE__ */ O(oe, [["render", pe], ["__scopeId", "data-v-3e7d5678"]]);
|
|
421
|
-
const he = {
|
|
422
|
-
name: "Layout",
|
|
423
|
-
components: {
|
|
424
|
-
Menubar: W,
|
|
425
|
-
Breadcrumb: ne,
|
|
426
|
-
TabContent: me
|
|
427
|
-
},
|
|
428
|
-
mixins: [se],
|
|
429
|
-
data() {
|
|
430
|
-
return {
|
|
431
|
-
showMenuRoute: q(),
|
|
432
|
-
systemCode: null
|
|
433
|
-
};
|
|
434
|
-
},
|
|
435
|
-
computed: {
|
|
436
|
-
sidebar() {
|
|
437
|
-
return this.$store.state.app.sidebar;
|
|
438
|
-
},
|
|
439
|
-
device() {
|
|
440
|
-
return this.$store.state.app.device;
|
|
441
|
-
},
|
|
442
|
-
classObj() {
|
|
443
|
-
return {
|
|
444
|
-
hideSidebar: !this.sidebar.opened,
|
|
445
|
-
openSidebar: this.sidebar.opened,
|
|
446
|
-
withoutAnimation: this.sidebar.withoutAnimation,
|
|
447
|
-
mobile: this.device === "mobile"
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
},
|
|
451
|
-
created() {
|
|
452
|
-
this.systemCode = window.$vueApp.config.globalProperties.customSystem, console.log("新菜单组件-----systemCode====", this.systemCode);
|
|
453
|
-
},
|
|
454
|
-
methods: {
|
|
455
|
-
handleClickOutside() {
|
|
456
|
-
this.$store.dispatch("closeSidebar", { withoutAnimation: !1 });
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}, be = { class: "main-container" };
|
|
460
|
-
function _e(e, t, n, r, c, a) {
|
|
461
|
-
const s = b("menubar"), o = b("breadcrumb"), i = b("tab-content");
|
|
462
|
-
return m(), C("div", {
|
|
463
|
-
class: G([a.classObj, "app-wrapper"])
|
|
464
|
-
}, [
|
|
465
|
-
a.device === "mobile" && a.sidebar.opened ? (m(), C("div", {
|
|
466
|
-
key: 0,
|
|
467
|
-
class: "drawer-bg",
|
|
468
|
-
onClick: t[0] || (t[0] = (...l) => a.handleClickOutside && a.handleClickOutside(...l))
|
|
469
|
-
})) : L("", !0),
|
|
470
|
-
P(s, {
|
|
471
|
-
"system-code": c.systemCode,
|
|
472
|
-
collapse: !0,
|
|
473
|
-
class: "sidebar-container"
|
|
474
|
-
}, null, 8, ["system-code"]),
|
|
475
|
-
v("div", be, [
|
|
476
|
-
c.showMenuRoute ? (m(), T(o, { key: 0 })) : L("", !0),
|
|
477
|
-
P(i)
|
|
478
|
-
])
|
|
479
|
-
], 2);
|
|
480
|
-
}
|
|
481
|
-
const ye = /* @__PURE__ */ O(he, [["render", _e], ["__scopeId", "data-v-11180c5c"]]);
|
|
482
|
-
export {
|
|
483
|
-
ye as default
|
|
484
|
-
};
|