@das-fed/ui 7.1.0-qatar.6 → 7.1.0-qatar.8
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/package.json +5 -5
- package/packages/business-components/app-container/index.d.ts +1 -1
- package/packages/business-components/app-container/index.js +18 -16
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/src/index.vue.d.ts +1 -1
- package/packages/business-components/app-container/src/style-theme.d.ts +2 -0
- package/packages/business-components/app-container/src/type.d.ts +1 -1
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/components/menu-aside/index.d.ts +3 -3
- package/packages/components/menu-aside/index.js +746 -702
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/src/Index.vue.d.ts +1 -1
- package/packages/components/menu-aside/src/style-theme.d.ts +20 -0
- package/packages/components/menu-aside/src/type.d.ts +1 -1
- package/packages/components/menu-aside/theme/base.d.ts +24 -0
- package/packages/components/menu-header/index.d.ts +3 -3
- package/packages/components/menu-header/index.js +71 -51
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/menu-header/src/Index.vue.d.ts +1 -1
- package/packages/components/menu-header/src/style-theme.d.ts +9 -0
- package/packages/components/menu-header/src/type.d.ts +1 -1
- package/packages/components/menu-header/theme/base.d.ts +11 -0
- package/packages/components/radio/index.js +102 -99
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/radio/style.css +1 -1
- package/packages/components/radio/style.css.gz +0 -0
- package/packages/components/radio/theme/index.d.ts +3 -0
- package/packages/components/table/src/hooks/use-operation.d.ts +1 -1
- package/packages/components/tabs/index.d.ts +3 -3
- package/packages/components/tabs/index.js +1 -0
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tabs/src/Tabs.vue.d.ts +1 -1
- package/packages/components/tabs/src/style-theme.d.ts +3 -3
- package/packages/components/tabs/src/type.d.ts +1 -1
- package/packages/components/tabs/style.css +1 -1
- package/packages/components/tabs/style.css.gz +0 -0
- package/packages/components/tabs/theme/base.d.ts +1 -0
|
@@ -1,98 +1,98 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/menu-aside/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { nextTick as
|
|
4
|
-
import { t as R, setI18nRule as
|
|
5
|
-
import { DasScrollbar as
|
|
6
|
-
import { DasTooltip as
|
|
7
|
-
import { vDasTooltip as
|
|
8
|
-
import { pureImageSrc as
|
|
9
|
-
import { SubMenu as
|
|
2
|
+
import { withInstall as Ze } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { nextTick as Qe, h as we, createVNode as O, defineComponent as Fe, computed as E, createElementBlock as p, openBlock as c, normalizeStyle as te, ref as Z, createBlock as _, unref as i, mergeProps as ve, withCtx as M, createCommentVNode as v, Fragment as j, createElementVNode as C, withDirectives as $, createTextVNode as K, toDisplayString as w, withModifiers as z, renderList as J, normalizeClass as P, renderSlot as H, watch as Oe, onMounted as Xe, useSlots as er, isRef as rr } from "vue";
|
|
4
|
+
import { t as R, setI18nRule as nr } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasScrollbar as ar } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
6
|
+
import { DasTooltip as tr } from "@das-fed/ui/packages/components/tooltip/index";
|
|
7
|
+
import { vDasTooltip as N } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
8
|
+
import { pureImageSrc as ue } from "@das-fed/utils/pure-image-src";
|
|
9
|
+
import { SubMenu as or, MenuItem as oe, Menu as lr } from "ant-design-vue";
|
|
10
10
|
import "ant-design-vue/es/menu/style/css";
|
|
11
|
-
import { vOverlay as
|
|
12
|
-
import { DasAutoRegisterIcon as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
return e =
|
|
19
|
-
}
|
|
20
|
-
function
|
|
11
|
+
import { vOverlay as je } from "@das-fed/ui/packages/components/overlay/index";
|
|
12
|
+
import { DasAutoRegisterIcon as ir, DasIcon as ee } from "@das-fed/ui/packages/components/icon/index";
|
|
13
|
+
import { getVar as b, setThemeRule as sr } from "@das-fed/web/packages/theme/index";
|
|
14
|
+
import { updateStyle as ur, createStyle as cr } from "@das-fed/utils/style";
|
|
15
|
+
function A(e, n) {
|
|
16
|
+
dr(e) && (e = "100%");
|
|
17
|
+
var r = fr(e);
|
|
18
|
+
return e = n === 360 ? e : Math.min(n, Math.max(0, parseFloat(e))), r && (e = parseInt(String(e * n), 10) / 100), Math.abs(e - n) < 1e-6 ? 1 : (n === 360 ? e = (e < 0 ? e % n + n : e % n) / parseFloat(String(n)) : e = e % n / parseFloat(String(n)), e);
|
|
19
|
+
}
|
|
20
|
+
function dr(e) {
|
|
21
21
|
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function fr(e) {
|
|
24
24
|
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function gr(e) {
|
|
27
27
|
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function re(e) {
|
|
30
30
|
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ce(e) {
|
|
33
33
|
return e.length === 1 ? "0" + e : String(e);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function br(e, n, r) {
|
|
36
36
|
return {
|
|
37
|
-
r:
|
|
38
|
-
g:
|
|
39
|
-
b:
|
|
37
|
+
r: A(e, 255) * 255,
|
|
38
|
+
g: A(n, 255) * 255,
|
|
39
|
+
b: A(r, 255) * 255
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return
|
|
42
|
+
function de(e, n, r) {
|
|
43
|
+
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (n - e) * (6 * r) : r < 1 / 2 ? n : r < 2 / 3 ? e + (n - e) * (2 / 3 - r) * 6 : e;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
var
|
|
47
|
-
if (e =
|
|
48
|
-
|
|
45
|
+
function pr(e, n, r) {
|
|
46
|
+
var a, t, o;
|
|
47
|
+
if (e = A(e, 360), n = A(n, 100), r = A(r, 100), n === 0)
|
|
48
|
+
t = r, o = r, a = r;
|
|
49
49
|
else {
|
|
50
|
-
var f =
|
|
51
|
-
|
|
50
|
+
var f = r < 0.5 ? r * (1 + n) : r + n - r * n, d = 2 * r - f;
|
|
51
|
+
a = de(d, f, e + 1 / 3), t = de(d, f, e), o = de(d, f, e - 1 / 3);
|
|
52
52
|
}
|
|
53
|
-
return { r:
|
|
53
|
+
return { r: a * 255, g: t * 255, b: o * 255 };
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
e =
|
|
57
|
-
var
|
|
58
|
-
if (
|
|
55
|
+
function mr(e, n, r) {
|
|
56
|
+
e = A(e, 255), n = A(n, 255), r = A(r, 255);
|
|
57
|
+
var a = Math.max(e, n, r), t = Math.min(e, n, r), o = 0, f = a, d = a - t, m = a === 0 ? 0 : d / a;
|
|
58
|
+
if (a === t)
|
|
59
59
|
o = 0;
|
|
60
60
|
else {
|
|
61
|
-
switch (
|
|
61
|
+
switch (a) {
|
|
62
62
|
case e:
|
|
63
|
-
o = (
|
|
64
|
-
break;
|
|
65
|
-
case r:
|
|
66
|
-
o = (n - e) / d + 2;
|
|
63
|
+
o = (n - r) / d + (n < r ? 6 : 0);
|
|
67
64
|
break;
|
|
68
65
|
case n:
|
|
69
|
-
o = (
|
|
66
|
+
o = (r - e) / d + 2;
|
|
67
|
+
break;
|
|
68
|
+
case r:
|
|
69
|
+
o = (e - n) / d + 4;
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
72
72
|
o /= 6;
|
|
73
73
|
}
|
|
74
|
-
return { h: o, s:
|
|
75
|
-
}
|
|
76
|
-
function
|
|
77
|
-
e =
|
|
78
|
-
var
|
|
79
|
-
return { r:
|
|
80
|
-
}
|
|
81
|
-
function
|
|
82
|
-
var
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
return { h: o, s: m, v: f };
|
|
75
|
+
}
|
|
76
|
+
function vr(e, n, r) {
|
|
77
|
+
e = A(e, 360) * 6, n = A(n, 100), r = A(r, 100);
|
|
78
|
+
var a = Math.floor(e), t = e - a, o = r * (1 - n), f = r * (1 - t * n), d = r * (1 - (1 - t) * n), m = a % 6, l = [r, f, o, o, d, r][m], y = [d, r, r, f, o, o][m], s = [o, o, d, r, r, f][m];
|
|
79
|
+
return { r: l * 255, g: y * 255, b: s * 255 };
|
|
80
|
+
}
|
|
81
|
+
function yr(e, n, r, a) {
|
|
82
|
+
var t = [
|
|
83
|
+
ce(Math.round(e).toString(16)),
|
|
84
|
+
ce(Math.round(n).toString(16)),
|
|
85
|
+
ce(Math.round(r).toString(16))
|
|
86
86
|
];
|
|
87
|
-
return
|
|
87
|
+
return t.join("");
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
89
|
+
function Ae(e) {
|
|
90
|
+
return S(e) / 255;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function S(e) {
|
|
93
93
|
return parseInt(e, 16);
|
|
94
94
|
}
|
|
95
|
-
var
|
|
95
|
+
var Te = {
|
|
96
96
|
aliceblue: "#f0f8ff",
|
|
97
97
|
antiquewhite: "#faebd7",
|
|
98
98
|
aqua: "#00ffff",
|
|
@@ -243,66 +243,66 @@ var Ae = {
|
|
|
243
243
|
yellowgreen: "#9acd32"
|
|
244
244
|
};
|
|
245
245
|
function W(e) {
|
|
246
|
-
var
|
|
247
|
-
return typeof e == "string" && (e =
|
|
246
|
+
var n = { r: 0, g: 0, b: 0 }, r = 1, a = null, t = null, o = null, f = !1, d = !1;
|
|
247
|
+
return typeof e == "string" && (e = Fr(e)), typeof e == "object" && (x(e.r) && x(e.g) && x(e.b) ? (n = br(e.r, e.g, e.b), f = !0, d = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : x(e.h) && x(e.s) && x(e.v) ? (a = re(e.s), t = re(e.v), n = vr(e.h, a, t), f = !0, d = "hsv") : x(e.h) && x(e.s) && x(e.l) && (a = re(e.s), o = re(e.l), n = pr(e.h, a, o), f = !0, d = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = gr(r), {
|
|
248
248
|
ok: f,
|
|
249
249
|
format: e.format || d,
|
|
250
|
-
r: Math.min(255, Math.max(
|
|
251
|
-
g: Math.min(255, Math.max(
|
|
252
|
-
b: Math.min(255, Math.max(
|
|
253
|
-
a:
|
|
250
|
+
r: Math.min(255, Math.max(n.r, 0)),
|
|
251
|
+
g: Math.min(255, Math.max(n.g, 0)),
|
|
252
|
+
b: Math.min(255, Math.max(n.b, 0)),
|
|
253
|
+
a: r
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
var
|
|
257
|
-
CSS_UNIT: new RegExp(
|
|
258
|
-
rgb: new RegExp("rgb" +
|
|
259
|
-
rgba: new RegExp("rgba" +
|
|
260
|
-
hsl: new RegExp("hsl" +
|
|
261
|
-
hsla: new RegExp("hsla" +
|
|
262
|
-
hsv: new RegExp("hsv" +
|
|
263
|
-
hsva: new RegExp("hsva" +
|
|
256
|
+
var hr = "[-\\+]?\\d+%?", kr = "[-\\+]?\\d*\\.\\d+%?", D = "(?:".concat(kr, ")|(?:").concat(hr, ")"), fe = "[\\s|\\(]+(".concat(D, ")[,|\\s]+(").concat(D, ")[,|\\s]+(").concat(D, ")\\s*\\)?"), ge = "[\\s|\\(]+(".concat(D, ")[,|\\s]+(").concat(D, ")[,|\\s]+(").concat(D, ")[,|\\s]+(").concat(D, ")\\s*\\)?"), T = {
|
|
257
|
+
CSS_UNIT: new RegExp(D),
|
|
258
|
+
rgb: new RegExp("rgb" + fe),
|
|
259
|
+
rgba: new RegExp("rgba" + ge),
|
|
260
|
+
hsl: new RegExp("hsl" + fe),
|
|
261
|
+
hsla: new RegExp("hsla" + ge),
|
|
262
|
+
hsv: new RegExp("hsv" + fe),
|
|
263
|
+
hsva: new RegExp("hsva" + ge),
|
|
264
264
|
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
265
265
|
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
266
266
|
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
267
267
|
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
268
268
|
};
|
|
269
|
-
function
|
|
269
|
+
function Fr(e) {
|
|
270
270
|
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
271
271
|
return !1;
|
|
272
|
-
var
|
|
273
|
-
if (
|
|
274
|
-
e =
|
|
272
|
+
var n = !1;
|
|
273
|
+
if (Te[e])
|
|
274
|
+
e = Te[e], n = !0;
|
|
275
275
|
else if (e === "transparent")
|
|
276
276
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
277
|
-
var
|
|
278
|
-
return
|
|
279
|
-
r:
|
|
280
|
-
g:
|
|
281
|
-
b:
|
|
282
|
-
a:
|
|
283
|
-
format:
|
|
284
|
-
} : (
|
|
285
|
-
r:
|
|
286
|
-
g:
|
|
287
|
-
b:
|
|
288
|
-
format:
|
|
289
|
-
} : (
|
|
290
|
-
r:
|
|
291
|
-
g:
|
|
292
|
-
b:
|
|
293
|
-
a:
|
|
294
|
-
format:
|
|
295
|
-
} : (
|
|
296
|
-
r:
|
|
297
|
-
g:
|
|
298
|
-
b:
|
|
299
|
-
format:
|
|
277
|
+
var r = T.rgb.exec(e);
|
|
278
|
+
return r ? { r: r[1], g: r[2], b: r[3] } : (r = T.rgba.exec(e), r ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = T.hsl.exec(e), r ? { h: r[1], s: r[2], l: r[3] } : (r = T.hsla.exec(e), r ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = T.hsv.exec(e), r ? { h: r[1], s: r[2], v: r[3] } : (r = T.hsva.exec(e), r ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = T.hex8.exec(e), r ? {
|
|
279
|
+
r: S(r[1]),
|
|
280
|
+
g: S(r[2]),
|
|
281
|
+
b: S(r[3]),
|
|
282
|
+
a: Ae(r[4]),
|
|
283
|
+
format: n ? "name" : "hex8"
|
|
284
|
+
} : (r = T.hex6.exec(e), r ? {
|
|
285
|
+
r: S(r[1]),
|
|
286
|
+
g: S(r[2]),
|
|
287
|
+
b: S(r[3]),
|
|
288
|
+
format: n ? "name" : "hex"
|
|
289
|
+
} : (r = T.hex4.exec(e), r ? {
|
|
290
|
+
r: S(r[1] + r[1]),
|
|
291
|
+
g: S(r[2] + r[2]),
|
|
292
|
+
b: S(r[3] + r[3]),
|
|
293
|
+
a: Ae(r[4] + r[4]),
|
|
294
|
+
format: n ? "name" : "hex8"
|
|
295
|
+
} : (r = T.hex3.exec(e), r ? {
|
|
296
|
+
r: S(r[1] + r[1]),
|
|
297
|
+
g: S(r[2] + r[2]),
|
|
298
|
+
b: S(r[3] + r[3]),
|
|
299
|
+
format: n ? "name" : "hex"
|
|
300
300
|
} : !1)))))))));
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
return !!
|
|
302
|
+
function x(e) {
|
|
303
|
+
return !!T.CSS_UNIT.exec(String(e));
|
|
304
304
|
}
|
|
305
|
-
var ne = 2,
|
|
305
|
+
var ne = 2, xe = 0.16, Cr = 0.05, Sr = 0.05, wr = 0.15, Ue = 5, Le = 4, Or = [{
|
|
306
306
|
index: 7,
|
|
307
307
|
opacity: 0.15
|
|
308
308
|
}, {
|
|
@@ -333,64 +333,64 @@ var ne = 2, Te = 0.16, Cn = 0.05, Sn = 0.05, wn = 0.15, Ue = 5, Le = 4, On = [{
|
|
|
333
333
|
index: 1,
|
|
334
334
|
opacity: 0.98
|
|
335
335
|
}];
|
|
336
|
-
function
|
|
337
|
-
var
|
|
336
|
+
function $e(e) {
|
|
337
|
+
var n = e.r, r = e.g, a = e.b, t = mr(n, r, a);
|
|
338
338
|
return {
|
|
339
|
-
h:
|
|
340
|
-
s:
|
|
341
|
-
v:
|
|
339
|
+
h: t.h * 360,
|
|
340
|
+
s: t.s,
|
|
341
|
+
v: t.v
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
function
|
|
345
|
-
var
|
|
346
|
-
return "#".concat(
|
|
347
|
-
}
|
|
348
|
-
function
|
|
349
|
-
var
|
|
350
|
-
r: (
|
|
351
|
-
g: (
|
|
352
|
-
b: (
|
|
344
|
+
function ae(e) {
|
|
345
|
+
var n = e.r, r = e.g, a = e.b;
|
|
346
|
+
return "#".concat(yr(n, r, a));
|
|
347
|
+
}
|
|
348
|
+
function jr(e, n, r) {
|
|
349
|
+
var a = r / 100, t = {
|
|
350
|
+
r: (n.r - e.r) * a + e.r,
|
|
351
|
+
g: (n.g - e.g) * a + e.g,
|
|
352
|
+
b: (n.b - e.b) * a + e.b
|
|
353
353
|
};
|
|
354
|
-
return
|
|
354
|
+
return t;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
var
|
|
358
|
-
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ?
|
|
356
|
+
function Me(e, n, r) {
|
|
357
|
+
var a;
|
|
358
|
+
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? a = r ? Math.round(e.h) - ne * n : Math.round(e.h) + ne * n : a = r ? Math.round(e.h) + ne * n : Math.round(e.h) - ne * n, a < 0 ? a += 360 : a >= 360 && (a -= 360), a;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Ee(e, n, r) {
|
|
361
361
|
if (e.h === 0 && e.s === 0)
|
|
362
362
|
return e.s;
|
|
363
|
-
var
|
|
364
|
-
return
|
|
365
|
-
}
|
|
366
|
-
function
|
|
367
|
-
var
|
|
368
|
-
return
|
|
369
|
-
}
|
|
370
|
-
function
|
|
371
|
-
for (var
|
|
372
|
-
var o =
|
|
373
|
-
h:
|
|
374
|
-
s:
|
|
375
|
-
v:
|
|
363
|
+
var a;
|
|
364
|
+
return r ? a = e.s - xe * n : n === Le ? a = e.s + xe : a = e.s + Cr * n, a > 1 && (a = 1), r && n === Ue && a > 0.1 && (a = 0.1), a < 0.06 && (a = 0.06), Number(a.toFixed(2));
|
|
365
|
+
}
|
|
366
|
+
function _e(e, n, r) {
|
|
367
|
+
var a;
|
|
368
|
+
return r ? a = e.v + Sr * n : a = e.v - wr * n, a > 1 && (a = 1), Number(a.toFixed(2));
|
|
369
|
+
}
|
|
370
|
+
function ye(e) {
|
|
371
|
+
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], a = W(e), t = Ue; t > 0; t -= 1) {
|
|
372
|
+
var o = $e(a), f = ae(W({
|
|
373
|
+
h: Me(o, t, !0),
|
|
374
|
+
s: Ee(o, t, !0),
|
|
375
|
+
v: _e(o, t, !0)
|
|
376
376
|
}));
|
|
377
|
-
|
|
377
|
+
r.push(f);
|
|
378
378
|
}
|
|
379
|
-
|
|
379
|
+
r.push(ae(a));
|
|
380
380
|
for (var d = 1; d <= Le; d += 1) {
|
|
381
|
-
var
|
|
382
|
-
h:
|
|
383
|
-
s:
|
|
384
|
-
v:
|
|
381
|
+
var m = $e(a), l = ae(W({
|
|
382
|
+
h: Me(m, d),
|
|
383
|
+
s: Ee(m, d),
|
|
384
|
+
v: _e(m, d)
|
|
385
385
|
}));
|
|
386
|
-
|
|
386
|
+
r.push(l);
|
|
387
387
|
}
|
|
388
|
-
return
|
|
389
|
-
var s =
|
|
390
|
-
return
|
|
391
|
-
}) :
|
|
388
|
+
return n.theme === "dark" ? Or.map(function(y) {
|
|
389
|
+
var s = y.index, h = y.opacity, F = ae(jr(W(n.backgroundColor || "#141414"), W(r[s]), h * 100));
|
|
390
|
+
return F;
|
|
391
|
+
}) : r;
|
|
392
392
|
}
|
|
393
|
-
var
|
|
393
|
+
var be = {
|
|
394
394
|
red: "#F5222D",
|
|
395
395
|
volcano: "#FA541C",
|
|
396
396
|
orange: "#FA8C16",
|
|
@@ -404,67 +404,67 @@ var pe = {
|
|
|
404
404
|
purple: "#722ED1",
|
|
405
405
|
magenta: "#EB2F96",
|
|
406
406
|
grey: "#666666"
|
|
407
|
-
},
|
|
408
|
-
Object.keys(
|
|
409
|
-
|
|
407
|
+
}, pe = {}, me = {};
|
|
408
|
+
Object.keys(be).forEach(function(e) {
|
|
409
|
+
pe[e] = ye(be[e]), pe[e].primary = pe[e][5], me[e] = ye(be[e], {
|
|
410
410
|
theme: "dark",
|
|
411
411
|
backgroundColor: "#141414"
|
|
412
|
-
}),
|
|
412
|
+
}), me[e].primary = me[e][5];
|
|
413
413
|
});
|
|
414
|
-
var
|
|
415
|
-
function
|
|
414
|
+
var Pe = [], G = [], Ar = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
|
|
415
|
+
function Tr() {
|
|
416
416
|
var e = document.createElement("style");
|
|
417
417
|
return e.setAttribute("type", "text/css"), e;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
if (
|
|
421
|
-
throw new Error(
|
|
422
|
-
var
|
|
423
|
-
|
|
419
|
+
function xr(e, n) {
|
|
420
|
+
if (n = n || {}, e === void 0)
|
|
421
|
+
throw new Error(Ar);
|
|
422
|
+
var r = n.prepend === !0 ? "prepend" : "append", a = n.container !== void 0 ? n.container : document.querySelector("head"), t = Pe.indexOf(a);
|
|
423
|
+
t === -1 && (t = Pe.push(a) - 1, G[t] = {});
|
|
424
424
|
var o;
|
|
425
|
-
return
|
|
426
|
-
}
|
|
427
|
-
function
|
|
428
|
-
for (var
|
|
429
|
-
var
|
|
430
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
431
|
-
return Object.getOwnPropertyDescriptor(
|
|
432
|
-
}))),
|
|
433
|
-
$
|
|
425
|
+
return G[t] !== void 0 && G[t][r] !== void 0 ? o = G[t][r] : (o = G[t][r] = Tr(), r === "prepend" ? a.insertBefore(o, a.childNodes[0]) : a.appendChild(o)), e.charCodeAt(0) === 65279 && (e = e.substr(1, e.length)), o.styleSheet ? o.styleSheet.cssText += e : o.textContent += e, o;
|
|
426
|
+
}
|
|
427
|
+
function De(e) {
|
|
428
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
429
|
+
var r = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(r);
|
|
430
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(r).filter(function(t) {
|
|
431
|
+
return Object.getOwnPropertyDescriptor(r, t).enumerable;
|
|
432
|
+
}))), a.forEach(function(t) {
|
|
433
|
+
$r(e, t, r[t]);
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
436
|
return e;
|
|
437
437
|
}
|
|
438
|
-
function $
|
|
439
|
-
return
|
|
438
|
+
function $r(e, n, r) {
|
|
439
|
+
return n in e ? Object.defineProperty(e, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = r, e;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Mr(e, n) {
|
|
442
442
|
process.env.NODE_ENV;
|
|
443
443
|
}
|
|
444
|
-
function
|
|
445
|
-
|
|
444
|
+
function Er(e, n) {
|
|
445
|
+
Mr(e, "[@ant-design/icons-vue] ".concat(n));
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function Ie(e) {
|
|
448
448
|
return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
return
|
|
452
|
-
key:
|
|
453
|
-
},
|
|
454
|
-
return
|
|
455
|
-
})) :
|
|
456
|
-
key:
|
|
457
|
-
}, e.attrs), (e.children || []).map(function(
|
|
458
|
-
return
|
|
450
|
+
function he(e, n, r) {
|
|
451
|
+
return r ? we(e.tag, De({
|
|
452
|
+
key: n
|
|
453
|
+
}, r, e.attrs), (e.children || []).map(function(a, t) {
|
|
454
|
+
return he(a, "".concat(n, "-").concat(e.tag, "-").concat(t));
|
|
455
|
+
})) : we(e.tag, De({
|
|
456
|
+
key: n
|
|
457
|
+
}, e.attrs), (e.children || []).map(function(a, t) {
|
|
458
|
+
return he(a, "".concat(n, "-").concat(e.tag, "-").concat(t));
|
|
459
459
|
}));
|
|
460
460
|
}
|
|
461
461
|
function Ve(e) {
|
|
462
|
-
return
|
|
462
|
+
return ye(e)[0];
|
|
463
463
|
}
|
|
464
464
|
function We(e) {
|
|
465
465
|
return e ? Array.isArray(e) ? e : [e] : [];
|
|
466
466
|
}
|
|
467
|
-
var
|
|
467
|
+
var _r = `
|
|
468
468
|
.anticon {
|
|
469
469
|
display: inline-block;
|
|
470
470
|
color: inherit;
|
|
@@ -518,355 +518,355 @@ var _n = `
|
|
|
518
518
|
transform: rotate(360deg);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
`,
|
|
522
|
-
var
|
|
523
|
-
|
|
524
|
-
|
|
521
|
+
`, Be = !1, Pr = function() {
|
|
522
|
+
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _r;
|
|
523
|
+
Qe(function() {
|
|
524
|
+
Be || (typeof window < "u" && window.document && window.document.documentElement && xr(n, {
|
|
525
525
|
prepend: !0
|
|
526
|
-
}),
|
|
526
|
+
}), Be = !0);
|
|
527
527
|
});
|
|
528
|
-
},
|
|
529
|
-
function
|
|
528
|
+
}, Dr = ["icon", "primaryColor", "secondaryColor"];
|
|
529
|
+
function Ir(e, n) {
|
|
530
530
|
if (e == null) return {};
|
|
531
|
-
var
|
|
531
|
+
var r = Br(e, n), a, t;
|
|
532
532
|
if (Object.getOwnPropertySymbols) {
|
|
533
533
|
var o = Object.getOwnPropertySymbols(e);
|
|
534
|
-
for (
|
|
535
|
-
|
|
534
|
+
for (t = 0; t < o.length; t++)
|
|
535
|
+
a = o[t], !(n.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (r[a] = e[a]);
|
|
536
536
|
}
|
|
537
|
-
return
|
|
537
|
+
return r;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Br(e, n) {
|
|
540
540
|
if (e == null) return {};
|
|
541
|
-
var
|
|
542
|
-
for (o = 0; o <
|
|
543
|
-
|
|
544
|
-
return
|
|
545
|
-
}
|
|
546
|
-
function
|
|
547
|
-
for (var
|
|
548
|
-
var
|
|
549
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
550
|
-
return Object.getOwnPropertyDescriptor(
|
|
551
|
-
}))),
|
|
552
|
-
|
|
541
|
+
var r = {}, a = Object.keys(e), t, o;
|
|
542
|
+
for (o = 0; o < a.length; o++)
|
|
543
|
+
t = a[o], !(n.indexOf(t) >= 0) && (r[t] = e[t]);
|
|
544
|
+
return r;
|
|
545
|
+
}
|
|
546
|
+
function le(e) {
|
|
547
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
548
|
+
var r = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(r);
|
|
549
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(r).filter(function(t) {
|
|
550
|
+
return Object.getOwnPropertyDescriptor(r, t).enumerable;
|
|
551
|
+
}))), a.forEach(function(t) {
|
|
552
|
+
Kr(e, t, r[t]);
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
return e;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
558
|
-
return
|
|
557
|
+
function Kr(e, n, r) {
|
|
558
|
+
return n in e ? Object.defineProperty(e, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = r, e;
|
|
559
559
|
}
|
|
560
|
-
var
|
|
560
|
+
var Y = {
|
|
561
561
|
primaryColor: "#333",
|
|
562
562
|
secondaryColor: "#E6E6E6",
|
|
563
563
|
calculated: !1
|
|
564
564
|
};
|
|
565
|
-
function
|
|
566
|
-
var
|
|
567
|
-
|
|
565
|
+
function Nr(e) {
|
|
566
|
+
var n = e.primaryColor, r = e.secondaryColor;
|
|
567
|
+
Y.primaryColor = n, Y.secondaryColor = r || Ve(n), Y.calculated = !!r;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
return
|
|
569
|
+
function qr() {
|
|
570
|
+
return le({}, Y);
|
|
571
571
|
}
|
|
572
|
-
var
|
|
573
|
-
var
|
|
574
|
-
if (o && (
|
|
572
|
+
var I = function(n, r) {
|
|
573
|
+
var a = le({}, n, r.attrs), t = a.icon, o = a.primaryColor, f = a.secondaryColor, d = Ir(a, Dr), m = Y;
|
|
574
|
+
if (o && (m = {
|
|
575
575
|
primaryColor: o,
|
|
576
576
|
secondaryColor: f || Ve(o)
|
|
577
|
-
}),
|
|
577
|
+
}), Pr(), Er(Ie(t), "icon should be icon definiton, but got ".concat(t)), !Ie(t))
|
|
578
578
|
return null;
|
|
579
|
-
var
|
|
580
|
-
return
|
|
581
|
-
icon:
|
|
582
|
-
})),
|
|
583
|
-
"data-icon":
|
|
579
|
+
var l = t;
|
|
580
|
+
return l && typeof l.icon == "function" && (l = le({}, l, {
|
|
581
|
+
icon: l.icon(m.primaryColor, m.secondaryColor)
|
|
582
|
+
})), he(l.icon, "svg-".concat(l.name), le({}, d, {
|
|
583
|
+
"data-icon": l.name,
|
|
584
584
|
width: "1em",
|
|
585
585
|
height: "1em",
|
|
586
586
|
fill: "currentColor",
|
|
587
587
|
"aria-hidden": "true"
|
|
588
588
|
}));
|
|
589
589
|
};
|
|
590
|
-
|
|
590
|
+
I.props = {
|
|
591
591
|
icon: Object,
|
|
592
592
|
primaryColor: String,
|
|
593
593
|
secondaryColor: String,
|
|
594
594
|
focusable: String
|
|
595
595
|
};
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
function
|
|
601
|
-
return
|
|
602
|
-
}
|
|
603
|
-
function
|
|
596
|
+
I.inheritAttrs = !1;
|
|
597
|
+
I.displayName = "IconBase";
|
|
598
|
+
I.getTwoToneColors = qr;
|
|
599
|
+
I.setTwoToneColors = Nr;
|
|
600
|
+
function zr(e, n) {
|
|
601
|
+
return Lr(e) || Ur(e, n) || Hr(e, n) || Rr();
|
|
602
|
+
}
|
|
603
|
+
function Rr() {
|
|
604
604
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
605
605
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Hr(e, n) {
|
|
608
608
|
if (e) {
|
|
609
|
-
if (typeof e == "string") return
|
|
610
|
-
var
|
|
611
|
-
if (
|
|
612
|
-
if (
|
|
609
|
+
if (typeof e == "string") return Ke(e, n);
|
|
610
|
+
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
611
|
+
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
|
|
612
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return Ke(e, n);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
function
|
|
616
|
-
(
|
|
617
|
-
for (var
|
|
618
|
-
|
|
619
|
-
return
|
|
615
|
+
function Ke(e, n) {
|
|
616
|
+
(n == null || n > e.length) && (n = e.length);
|
|
617
|
+
for (var r = 0, a = new Array(n); r < n; r++)
|
|
618
|
+
a[r] = e[r];
|
|
619
|
+
return a;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var
|
|
623
|
-
if (
|
|
624
|
-
var
|
|
621
|
+
function Ur(e, n) {
|
|
622
|
+
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
623
|
+
if (r != null) {
|
|
624
|
+
var a = [], t = !0, o = !1, f, d;
|
|
625
625
|
try {
|
|
626
|
-
for (
|
|
626
|
+
for (r = r.call(e); !(t = (f = r.next()).done) && (a.push(f.value), !(n && a.length === n)); t = !0)
|
|
627
627
|
;
|
|
628
|
-
} catch (
|
|
629
|
-
o = !0, d =
|
|
628
|
+
} catch (m) {
|
|
629
|
+
o = !0, d = m;
|
|
630
630
|
} finally {
|
|
631
631
|
try {
|
|
632
|
-
!
|
|
632
|
+
!t && r.return != null && r.return();
|
|
633
633
|
} finally {
|
|
634
634
|
if (o) throw d;
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
return
|
|
637
|
+
return a;
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function Lr(e) {
|
|
641
641
|
if (Array.isArray(e)) return e;
|
|
642
642
|
}
|
|
643
|
-
function
|
|
644
|
-
var
|
|
645
|
-
return
|
|
646
|
-
primaryColor:
|
|
647
|
-
secondaryColor:
|
|
643
|
+
function Ge(e) {
|
|
644
|
+
var n = We(e), r = zr(n, 2), a = r[0], t = r[1];
|
|
645
|
+
return I.setTwoToneColors({
|
|
646
|
+
primaryColor: a,
|
|
647
|
+
secondaryColor: t
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
var e =
|
|
650
|
+
function Vr() {
|
|
651
|
+
var e = I.getTwoToneColors();
|
|
652
652
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
653
653
|
}
|
|
654
|
-
var
|
|
655
|
-
function
|
|
656
|
-
return
|
|
654
|
+
var Wr = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
|
|
655
|
+
function Gr(e, n) {
|
|
656
|
+
return Qr(e) || Zr(e, n) || Yr(e, n) || Jr();
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Jr() {
|
|
659
659
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
660
660
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Yr(e, n) {
|
|
663
663
|
if (e) {
|
|
664
|
-
if (typeof e == "string") return
|
|
665
|
-
var
|
|
666
|
-
if (
|
|
667
|
-
if (
|
|
664
|
+
if (typeof e == "string") return Ne(e, n);
|
|
665
|
+
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
666
|
+
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
|
|
667
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return Ne(e, n);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
(
|
|
672
|
-
for (var
|
|
673
|
-
|
|
674
|
-
return
|
|
670
|
+
function Ne(e, n) {
|
|
671
|
+
(n == null || n > e.length) && (n = e.length);
|
|
672
|
+
for (var r = 0, a = new Array(n); r < n; r++)
|
|
673
|
+
a[r] = e[r];
|
|
674
|
+
return a;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
var
|
|
678
|
-
if (
|
|
679
|
-
var
|
|
676
|
+
function Zr(e, n) {
|
|
677
|
+
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
678
|
+
if (r != null) {
|
|
679
|
+
var a = [], t = !0, o = !1, f, d;
|
|
680
680
|
try {
|
|
681
|
-
for (
|
|
681
|
+
for (r = r.call(e); !(t = (f = r.next()).done) && (a.push(f.value), !(n && a.length === n)); t = !0)
|
|
682
682
|
;
|
|
683
|
-
} catch (
|
|
684
|
-
o = !0, d =
|
|
683
|
+
} catch (m) {
|
|
684
|
+
o = !0, d = m;
|
|
685
685
|
} finally {
|
|
686
686
|
try {
|
|
687
|
-
!
|
|
687
|
+
!t && r.return != null && r.return();
|
|
688
688
|
} finally {
|
|
689
689
|
if (o) throw d;
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
|
-
return
|
|
692
|
+
return a;
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function Qr(e) {
|
|
696
696
|
if (Array.isArray(e)) return e;
|
|
697
697
|
}
|
|
698
|
-
function
|
|
699
|
-
for (var
|
|
700
|
-
var
|
|
701
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
702
|
-
return Object.getOwnPropertyDescriptor(
|
|
703
|
-
}))),
|
|
704
|
-
|
|
698
|
+
function qe(e) {
|
|
699
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
700
|
+
var r = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(r);
|
|
701
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(r).filter(function(t) {
|
|
702
|
+
return Object.getOwnPropertyDescriptor(r, t).enumerable;
|
|
703
|
+
}))), a.forEach(function(t) {
|
|
704
|
+
ke(e, t, r[t]);
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
707
|
return e;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
710
|
-
return
|
|
709
|
+
function ke(e, n, r) {
|
|
710
|
+
return n in e ? Object.defineProperty(e, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = r, e;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function Xr(e, n) {
|
|
713
713
|
if (e == null) return {};
|
|
714
|
-
var
|
|
714
|
+
var r = en(e, n), a, t;
|
|
715
715
|
if (Object.getOwnPropertySymbols) {
|
|
716
716
|
var o = Object.getOwnPropertySymbols(e);
|
|
717
|
-
for (
|
|
718
|
-
|
|
717
|
+
for (t = 0; t < o.length; t++)
|
|
718
|
+
a = o[t], !(n.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (r[a] = e[a]);
|
|
719
719
|
}
|
|
720
|
-
return
|
|
720
|
+
return r;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function en(e, n) {
|
|
723
723
|
if (e == null) return {};
|
|
724
|
-
var
|
|
725
|
-
for (o = 0; o <
|
|
726
|
-
|
|
727
|
-
return
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
var
|
|
731
|
-
var
|
|
724
|
+
var r = {}, a = Object.keys(e), t, o;
|
|
725
|
+
for (o = 0; o < a.length; o++)
|
|
726
|
+
t = a[o], !(n.indexOf(t) >= 0) && (r[t] = e[t]);
|
|
727
|
+
return r;
|
|
728
|
+
}
|
|
729
|
+
Ge("#1890ff");
|
|
730
|
+
var q = function(n, r) {
|
|
731
|
+
var a, t = qe({}, n, r.attrs), o = t.class, f = t.icon, d = t.spin, m = t.rotate, l = t.tabindex, y = t.twoToneColor, s = t.onClick, h = Xr(t, Wr), F = (a = {
|
|
732
732
|
anticon: !0
|
|
733
|
-
},
|
|
734
|
-
L === void 0 && s && (L = -1,
|
|
735
|
-
var ie =
|
|
736
|
-
msTransform: "rotate(".concat(
|
|
737
|
-
transform: "rotate(".concat(
|
|
738
|
-
} : void 0,
|
|
739
|
-
return
|
|
733
|
+
}, ke(a, "anticon-".concat(f.name), !!f.name), ke(a, o, o), a), U = d === "" || d || f.name === "loading" ? "anticon-spin" : "", L = l;
|
|
734
|
+
L === void 0 && s && (L = -1, h.tabindex = L);
|
|
735
|
+
var ie = m ? {
|
|
736
|
+
msTransform: "rotate(".concat(m, "deg)"),
|
|
737
|
+
transform: "rotate(".concat(m, "deg)")
|
|
738
|
+
} : void 0, Q = We(y), X = Gr(Q, 2), se = X[0], g = X[1];
|
|
739
|
+
return O("span", qe({
|
|
740
740
|
role: "img",
|
|
741
741
|
"aria-label": f.name
|
|
742
|
-
},
|
|
742
|
+
}, h, {
|
|
743
743
|
onClick: s,
|
|
744
|
-
class:
|
|
745
|
-
}), [
|
|
744
|
+
class: F
|
|
745
|
+
}), [O(I, {
|
|
746
746
|
class: U,
|
|
747
747
|
icon: f,
|
|
748
|
-
primaryColor:
|
|
749
|
-
secondaryColor:
|
|
748
|
+
primaryColor: se,
|
|
749
|
+
secondaryColor: g,
|
|
750
750
|
style: ie
|
|
751
751
|
}, null)]);
|
|
752
752
|
};
|
|
753
|
-
|
|
753
|
+
q.props = {
|
|
754
754
|
spin: Boolean,
|
|
755
755
|
rotate: Number,
|
|
756
756
|
icon: Object,
|
|
757
757
|
twoToneColor: String
|
|
758
758
|
};
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
var
|
|
759
|
+
q.displayName = "AntdIcon";
|
|
760
|
+
q.inheritAttrs = !1;
|
|
761
|
+
q.getTwoToneColor = Vr;
|
|
762
|
+
q.setTwoToneColor = Ge;
|
|
763
|
+
var rn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z" } }] }, name: "menu-fold", theme: "outlined" };
|
|
764
764
|
function ze(e) {
|
|
765
|
-
for (var
|
|
766
|
-
var
|
|
767
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
768
|
-
return Object.getOwnPropertyDescriptor(
|
|
769
|
-
}))),
|
|
770
|
-
|
|
765
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
766
|
+
var r = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(r);
|
|
767
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(r).filter(function(t) {
|
|
768
|
+
return Object.getOwnPropertyDescriptor(r, t).enumerable;
|
|
769
|
+
}))), a.forEach(function(t) {
|
|
770
|
+
nn(e, t, r[t]);
|
|
771
771
|
});
|
|
772
772
|
}
|
|
773
773
|
return e;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
776
|
-
return
|
|
775
|
+
function nn(e, n, r) {
|
|
776
|
+
return n in e ? Object.defineProperty(e, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = r, e;
|
|
777
777
|
}
|
|
778
|
-
var
|
|
779
|
-
var
|
|
780
|
-
return
|
|
781
|
-
icon:
|
|
778
|
+
var Ce = function(n, r) {
|
|
779
|
+
var a = ze({}, n, r.attrs);
|
|
780
|
+
return O(q, ze({}, a, {
|
|
781
|
+
icon: rn
|
|
782
782
|
}), null);
|
|
783
783
|
};
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
var
|
|
784
|
+
Ce.displayName = "MenuFoldOutlined";
|
|
785
|
+
Ce.inheritAttrs = !1;
|
|
786
|
+
var an = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z" } }] }, name: "menu-unfold", theme: "outlined" };
|
|
787
787
|
function Re(e) {
|
|
788
|
-
for (var
|
|
789
|
-
var
|
|
790
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
791
|
-
return Object.getOwnPropertyDescriptor(
|
|
792
|
-
}))),
|
|
793
|
-
|
|
788
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
789
|
+
var r = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(r);
|
|
790
|
+
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(r).filter(function(t) {
|
|
791
|
+
return Object.getOwnPropertyDescriptor(r, t).enumerable;
|
|
792
|
+
}))), a.forEach(function(t) {
|
|
793
|
+
tn(e, t, r[t]);
|
|
794
794
|
});
|
|
795
795
|
}
|
|
796
796
|
return e;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
799
|
-
return
|
|
798
|
+
function tn(e, n, r) {
|
|
799
|
+
return n in e ? Object.defineProperty(e, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = r, e;
|
|
800
800
|
}
|
|
801
|
-
var
|
|
802
|
-
var
|
|
803
|
-
return
|
|
804
|
-
icon:
|
|
801
|
+
var Se = function(n, r) {
|
|
802
|
+
var a = Re({}, n, r.attrs);
|
|
803
|
+
return O(q, Re({}, a, {
|
|
804
|
+
icon: an
|
|
805
805
|
}), null);
|
|
806
806
|
};
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
const
|
|
807
|
+
Se.displayName = "MenuUnfoldOutlined";
|
|
808
|
+
Se.inheritAttrs = !1;
|
|
809
|
+
const on = ["src"], Je = /* @__PURE__ */ Fe({
|
|
810
810
|
__name: "menu-icon",
|
|
811
811
|
props: {
|
|
812
812
|
data: { default: () => ({}) },
|
|
813
813
|
status: { default: "default" }
|
|
814
814
|
},
|
|
815
815
|
setup(e) {
|
|
816
|
-
const
|
|
817
|
-
var o, f, d,
|
|
818
|
-
return
|
|
819
|
-
}),
|
|
816
|
+
const n = e, r = E(() => {
|
|
817
|
+
var o, f, d, m;
|
|
818
|
+
return n.status === "default" ? (((o = n.data) == null ? void 0 : o.host) || "") + ue(n.data.iconUrl) : (f = n.data) != null && f.hoverIcon ? (((d = n.data) == null ? void 0 : d.host) || "") + ue(n.data.hoverIcon) : (((m = n.data) == null ? void 0 : m.host) || "") + ue(n.data.iconUrl);
|
|
819
|
+
}), a = E(() => ({
|
|
820
820
|
display: "block",
|
|
821
821
|
"background-color": "currentColor",
|
|
822
|
-
"mask-image": `url(${
|
|
822
|
+
"mask-image": `url(${r.value})`
|
|
823
823
|
}));
|
|
824
|
-
return (
|
|
824
|
+
return (t, o) => r.value.endsWith(".svg") ? (c(), p(
|
|
825
825
|
"i",
|
|
826
826
|
{
|
|
827
827
|
key: 0,
|
|
828
|
-
style: te(
|
|
828
|
+
style: te(a.value)
|
|
829
829
|
},
|
|
830
830
|
null,
|
|
831
831
|
4
|
|
832
832
|
/* STYLE */
|
|
833
|
-
)) : (c(),
|
|
833
|
+
)) : (c(), p("img", {
|
|
834
834
|
key: 1,
|
|
835
|
-
src:
|
|
835
|
+
src: r.value,
|
|
836
836
|
alt: ""
|
|
837
|
-
}, null, 8,
|
|
837
|
+
}, null, 8, on));
|
|
838
838
|
}
|
|
839
|
-
}),
|
|
840
|
-
menuClick: (
|
|
839
|
+
}), ln = (e, n) => ({
|
|
840
|
+
menuClick: (t, o) => {
|
|
841
841
|
var f;
|
|
842
|
-
(f = e.selectedKeys) != null && f.includes(o.id) ||
|
|
842
|
+
(f = e.selectedKeys) != null && f.includes(o.id) || n("menuClick", { domEvent: t, item: o, key: o.id, keyPath: [o.parentId, o.id] });
|
|
843
843
|
},
|
|
844
|
-
toggleAffix: (
|
|
845
|
-
|
|
844
|
+
toggleAffix: (t, o) => {
|
|
845
|
+
n("toggleAffix", t, o);
|
|
846
846
|
}
|
|
847
|
-
}),
|
|
848
|
-
for (var
|
|
849
|
-
|
|
850
|
-
return
|
|
851
|
-
},
|
|
847
|
+
}), Ye = (e, n = "children") => e.map((a) => (a[n] && a[n].length && (a[n] = Ye(a[n], n)), (!a[n] || !a[n].length) && (a[n] = null), a)), sn = (e, n) => {
|
|
848
|
+
for (var r = [], a = 0; a < e.length; a += n)
|
|
849
|
+
r.push(e.slice(a, a + n));
|
|
850
|
+
return r;
|
|
851
|
+
}, un = { class: "aside-menu-title has-children" }, cn = {
|
|
852
852
|
key: 0,
|
|
853
853
|
class: "icon-box"
|
|
854
|
-
},
|
|
854
|
+
}, dn = {
|
|
855
855
|
key: 1,
|
|
856
856
|
class: "menu-title"
|
|
857
|
-
},
|
|
857
|
+
}, fn = { class: "submenu-container" }, gn = { class: "title-bar" }, bn = { class: "title-left" }, pn = { class: "title" }, mn = { class: "item-container" }, vn = ["onClick"], yn = { class: "name" }, hn = {
|
|
858
858
|
key: 0,
|
|
859
859
|
class: "expired"
|
|
860
|
-
},
|
|
860
|
+
}, kn = { class: "name" }, Fn = {
|
|
861
861
|
key: 0,
|
|
862
862
|
class: "expired"
|
|
863
|
-
},
|
|
863
|
+
}, Cn = { class: "submenu-container is-collapse" }, Sn = { class: "title-bar is-collapse" }, wn = { class: "title-left" }, On = { class: "title" }, jn = { class: "icon-title" }, An = { class: "icon-title" }, Tn = { class: "item-collapse-container" }, xn = ["onClick"], $n = { class: "name" }, Mn = {
|
|
864
864
|
key: 0,
|
|
865
865
|
class: "expired"
|
|
866
|
-
},
|
|
866
|
+
}, En = {
|
|
867
867
|
name: "SubMenu"
|
|
868
|
-
},
|
|
869
|
-
...
|
|
868
|
+
}, _n = /* @__PURE__ */ Fe({
|
|
869
|
+
...En,
|
|
870
870
|
props: {
|
|
871
871
|
mode: { default: "vertical" },
|
|
872
872
|
collapse: { type: Boolean },
|
|
@@ -880,110 +880,110 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
880
880
|
rtl: { type: Boolean, default: !1 }
|
|
881
881
|
},
|
|
882
882
|
emits: ["menuClick", "toggleAffix"],
|
|
883
|
-
setup(e, { emit:
|
|
884
|
-
const
|
|
885
|
-
|
|
883
|
+
setup(e, { emit: n }) {
|
|
884
|
+
const a = Z(!0), t = Z(""), o = e, f = n;
|
|
885
|
+
ir({
|
|
886
886
|
unlock: import("@das-fed/ui/packages/icons/unlock"),
|
|
887
887
|
lock: import("@das-fed/ui/packages/icons/lock")
|
|
888
888
|
});
|
|
889
|
-
const { toggleAffix: d, menuClick:
|
|
890
|
-
return (
|
|
891
|
-
class: ["das-ui-sub-menu",
|
|
892
|
-
key:
|
|
889
|
+
const { toggleAffix: d, menuClick: m } = ln(o, f);
|
|
890
|
+
return (l, y) => (c(), _(i(or), ve({
|
|
891
|
+
class: ["das-ui-sub-menu", l.parentSelectKeys.includes(l.menuInfo.id) ? "is-active" : "", o.rtl ? "is-rtl" : ""],
|
|
892
|
+
key: l.menuInfo.id,
|
|
893
893
|
"popup-offset": [0, 0],
|
|
894
894
|
direction: o.rtl ? "rtl" : "ltr"
|
|
895
|
-
},
|
|
896
|
-
onMouseover:
|
|
897
|
-
onMouseleave:
|
|
895
|
+
}, l.$attrs, {
|
|
896
|
+
onMouseover: y[4] || (y[4] = (s) => t.value = l.menuInfo.id),
|
|
897
|
+
onMouseleave: y[5] || (y[5] = (s) => t.value = -1)
|
|
898
898
|
}), {
|
|
899
|
-
icon:
|
|
899
|
+
icon: M(() => {
|
|
900
900
|
var s;
|
|
901
901
|
return [
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
H(
|
|
905
|
-
|
|
906
|
-
data:
|
|
907
|
-
status:
|
|
902
|
+
C("div", un, [
|
|
903
|
+
l.menuInfo.hideIcon ? v("v-if", !0) : (c(), p("div", cn, [
|
|
904
|
+
H(l.$slots, "icon", { menuInfo: l.menuInfo }, () => [
|
|
905
|
+
O(Je, {
|
|
906
|
+
data: l.menuInfo,
|
|
907
|
+
status: l.parentSelectKeys.includes(l.menuInfo.id) || t.value === l.menuInfo.id ? "hover" : "default"
|
|
908
908
|
}, null, 8, ["data", "status"])
|
|
909
909
|
])
|
|
910
910
|
])),
|
|
911
|
-
|
|
912
|
-
H(
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
911
|
+
l.collapse ? v("v-if", !0) : (c(), p("div", dn, [
|
|
912
|
+
H(l.$slots, ((s = l.menuInfo) == null ? void 0 : s.code) + "-name", {}, () => [
|
|
913
|
+
$((c(), p("div", null, [
|
|
914
|
+
K(
|
|
915
|
+
w(l.menuInfo.name),
|
|
916
916
|
1
|
|
917
917
|
/* TEXT */
|
|
918
918
|
)
|
|
919
919
|
])), [
|
|
920
|
-
[
|
|
920
|
+
[i(N)]
|
|
921
921
|
])
|
|
922
922
|
])
|
|
923
923
|
]))
|
|
924
924
|
])
|
|
925
925
|
];
|
|
926
926
|
}),
|
|
927
|
-
default:
|
|
928
|
-
|
|
929
|
-
|
|
927
|
+
default: M(() => [
|
|
928
|
+
l.menuInfo.children.length ? (c(), p(
|
|
929
|
+
j,
|
|
930
930
|
{ key: 0 },
|
|
931
931
|
[
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
932
|
+
v(" 展开 "),
|
|
933
|
+
l.collapse ? (c(), p(
|
|
934
|
+
j,
|
|
935
935
|
{ key: 1 },
|
|
936
936
|
[
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
default:
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
937
|
+
v(" 收起 "),
|
|
938
|
+
O(i(oe), null, {
|
|
939
|
+
default: M(() => [
|
|
940
|
+
C("div", Cn, [
|
|
941
|
+
C("div", Sn, [
|
|
942
|
+
C("div", wn, [
|
|
943
|
+
$((c(), p("div", On, [
|
|
944
|
+
K(
|
|
945
|
+
w(l.menuInfo.name),
|
|
946
946
|
1
|
|
947
947
|
/* TEXT */
|
|
948
948
|
)
|
|
949
949
|
])), [
|
|
950
|
-
[
|
|
950
|
+
[i(N)]
|
|
951
951
|
])
|
|
952
952
|
]),
|
|
953
|
-
|
|
954
|
-
|
|
953
|
+
i(!1) && a.value ? (c(), p(
|
|
954
|
+
j,
|
|
955
955
|
{ key: 0 },
|
|
956
956
|
[
|
|
957
|
-
|
|
957
|
+
l.affixKeys.includes(l.menuInfo.id) ? (c(), p("div", {
|
|
958
958
|
key: 0,
|
|
959
959
|
class: "title-right",
|
|
960
|
-
onClick:
|
|
960
|
+
onClick: y[2] || (y[2] = z((s) => i(d)(l.menuInfo.id, !1), ["stop"]))
|
|
961
961
|
}, [
|
|
962
|
-
|
|
962
|
+
O(i(ee), {
|
|
963
963
|
icon: "unlock",
|
|
964
964
|
size: "small"
|
|
965
965
|
}),
|
|
966
|
-
|
|
966
|
+
C(
|
|
967
967
|
"div",
|
|
968
|
-
|
|
969
|
-
|
|
968
|
+
jn,
|
|
969
|
+
w(i(R)("解锁")),
|
|
970
970
|
1
|
|
971
971
|
/* TEXT */
|
|
972
972
|
)
|
|
973
|
-
])) :
|
|
974
|
-
|
|
973
|
+
])) : v("v-if", !0),
|
|
974
|
+
l.affixKeys.includes(l.menuInfo.id) ? v("v-if", !0) : (c(), p("div", {
|
|
975
975
|
key: 1,
|
|
976
976
|
class: "title-right affix",
|
|
977
|
-
onClick:
|
|
977
|
+
onClick: y[3] || (y[3] = z((s) => i(d)(l.menuInfo.id, !0), ["stop"]))
|
|
978
978
|
}, [
|
|
979
|
-
|
|
979
|
+
O(i(ee), {
|
|
980
980
|
icon: "lock",
|
|
981
981
|
size: "small"
|
|
982
982
|
}),
|
|
983
|
-
|
|
983
|
+
C(
|
|
984
984
|
"div",
|
|
985
|
-
|
|
986
|
-
|
|
985
|
+
An,
|
|
986
|
+
w(i(R)("锁住")),
|
|
987
987
|
1
|
|
988
988
|
/* TEXT */
|
|
989
989
|
)
|
|
@@ -991,43 +991,43 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
991
991
|
],
|
|
992
992
|
64
|
|
993
993
|
/* STABLE_FRAGMENT */
|
|
994
|
-
)) :
|
|
994
|
+
)) : v("v-if", !0)
|
|
995
995
|
]),
|
|
996
|
-
|
|
997
|
-
(c(!0),
|
|
998
|
-
|
|
996
|
+
$((c(), p("div", Tn, [
|
|
997
|
+
(c(!0), p(
|
|
998
|
+
j,
|
|
999
999
|
null,
|
|
1000
|
-
|
|
1000
|
+
J(l.menuInfo.children, (s) => (c(), p("div", {
|
|
1001
1001
|
key: s.id,
|
|
1002
|
-
class:
|
|
1002
|
+
class: P([
|
|
1003
1003
|
"sub-menu-item",
|
|
1004
|
-
|
|
1004
|
+
l.selectedKeys.includes(s.id) ? "is-active" : "",
|
|
1005
1005
|
s != null && s.disable ? "is-disable" : ""
|
|
1006
1006
|
]),
|
|
1007
|
-
onClick: z((
|
|
1007
|
+
onClick: z((h) => i(m)(h, s), ["stop"])
|
|
1008
1008
|
}, [
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1009
|
+
$((c(), p("div", $n, [
|
|
1010
|
+
K(
|
|
1011
|
+
w(s.name),
|
|
1012
1012
|
1
|
|
1013
1013
|
/* TEXT */
|
|
1014
1014
|
)
|
|
1015
1015
|
])), [
|
|
1016
|
-
[
|
|
1016
|
+
[i(N)]
|
|
1017
1017
|
]),
|
|
1018
|
-
s != null && s.expired ? (c(),
|
|
1018
|
+
s != null && s.expired ? (c(), p(
|
|
1019
1019
|
"div",
|
|
1020
|
-
|
|
1021
|
-
|
|
1020
|
+
Mn,
|
|
1021
|
+
w(i(R)("已到期")),
|
|
1022
1022
|
1
|
|
1023
1023
|
/* TEXT */
|
|
1024
|
-
)) :
|
|
1025
|
-
], 10,
|
|
1024
|
+
)) : v("v-if", !0)
|
|
1025
|
+
], 10, xn))),
|
|
1026
1026
|
128
|
|
1027
1027
|
/* KEYED_FRAGMENT */
|
|
1028
1028
|
))
|
|
1029
1029
|
])), [
|
|
1030
|
-
[
|
|
1030
|
+
[i(je), { x: !1 }]
|
|
1031
1031
|
])
|
|
1032
1032
|
])
|
|
1033
1033
|
]),
|
|
@@ -1037,56 +1037,56 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
1037
1037
|
],
|
|
1038
1038
|
2112
|
|
1039
1039
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1040
|
-
)) : (c(),
|
|
1041
|
-
|
|
1040
|
+
)) : (c(), p(
|
|
1041
|
+
j,
|
|
1042
1042
|
{ key: 0 },
|
|
1043
1043
|
[
|
|
1044
|
-
|
|
1045
|
-
default:
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1044
|
+
l.mode === "vertical" ? (c(), _(i(oe), { key: 0 }, {
|
|
1045
|
+
default: M(() => [
|
|
1046
|
+
C("div", fn, [
|
|
1047
|
+
C("div", gn, [
|
|
1048
|
+
C("div", bn, [
|
|
1049
|
+
$((c(), p("div", pn, [
|
|
1050
|
+
K(
|
|
1051
|
+
w(l.menuInfo.name),
|
|
1052
1052
|
1
|
|
1053
1053
|
/* TEXT */
|
|
1054
1054
|
)
|
|
1055
1055
|
])), [
|
|
1056
|
-
[
|
|
1056
|
+
[i(N)]
|
|
1057
1057
|
])
|
|
1058
1058
|
]),
|
|
1059
|
-
|
|
1060
|
-
|
|
1059
|
+
i(!1) && a.value ? (c(), p(
|
|
1060
|
+
j,
|
|
1061
1061
|
{ key: 0 },
|
|
1062
1062
|
[
|
|
1063
|
-
|
|
1063
|
+
l.affixKeys.includes(l.menuInfo.id) ? (c(), p("div", {
|
|
1064
1064
|
key: 0,
|
|
1065
1065
|
class: "title-right",
|
|
1066
|
-
onClick:
|
|
1066
|
+
onClick: y[0] || (y[0] = z((s) => i(d)(l.menuInfo.id, !1), ["stop"]))
|
|
1067
1067
|
}, [
|
|
1068
|
-
|
|
1068
|
+
O(i(ee), {
|
|
1069
1069
|
icon: "unlock",
|
|
1070
1070
|
size: "small"
|
|
1071
1071
|
}),
|
|
1072
|
-
|
|
1072
|
+
y[6] || (y[6] = C(
|
|
1073
1073
|
"div",
|
|
1074
1074
|
{ class: "icon-title" },
|
|
1075
1075
|
"解锁",
|
|
1076
1076
|
-1
|
|
1077
1077
|
/* CACHED */
|
|
1078
1078
|
))
|
|
1079
|
-
])) :
|
|
1080
|
-
|
|
1079
|
+
])) : v("v-if", !0),
|
|
1080
|
+
l.affixKeys.includes(l.menuInfo.id) ? v("v-if", !0) : (c(), p("div", {
|
|
1081
1081
|
key: 1,
|
|
1082
1082
|
class: "title-right affix",
|
|
1083
|
-
onClick:
|
|
1083
|
+
onClick: y[1] || (y[1] = z((s) => i(d)(l.menuInfo.id, !0), ["stop"]))
|
|
1084
1084
|
}, [
|
|
1085
|
-
|
|
1085
|
+
O(i(ee), {
|
|
1086
1086
|
icon: "lock",
|
|
1087
1087
|
size: "small"
|
|
1088
1088
|
}),
|
|
1089
|
-
|
|
1089
|
+
y[7] || (y[7] = C(
|
|
1090
1090
|
"div",
|
|
1091
1091
|
{ class: "icon-title" },
|
|
1092
1092
|
"锁住",
|
|
@@ -1097,45 +1097,45 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
1097
1097
|
],
|
|
1098
1098
|
64
|
|
1099
1099
|
/* STABLE_FRAGMENT */
|
|
1100
|
-
)) :
|
|
1100
|
+
)) : v("v-if", !0)
|
|
1101
1101
|
]),
|
|
1102
|
-
|
|
1103
|
-
(c(!0),
|
|
1104
|
-
|
|
1102
|
+
$((c(), p("div", mn, [
|
|
1103
|
+
(c(!0), p(
|
|
1104
|
+
j,
|
|
1105
1105
|
null,
|
|
1106
|
-
|
|
1107
|
-
key:
|
|
1106
|
+
J(i(sn)(l.menuInfo.children, 4), (s, h) => (c(), p("div", {
|
|
1107
|
+
key: h,
|
|
1108
1108
|
class: "sub-menu-row"
|
|
1109
1109
|
}, [
|
|
1110
|
-
(c(!0),
|
|
1111
|
-
|
|
1110
|
+
(c(!0), p(
|
|
1111
|
+
j,
|
|
1112
1112
|
null,
|
|
1113
|
-
|
|
1114
|
-
key:
|
|
1115
|
-
class:
|
|
1113
|
+
J(s, (F) => (c(), p("div", {
|
|
1114
|
+
key: F.id,
|
|
1115
|
+
class: P([
|
|
1116
1116
|
"sub-menu-item",
|
|
1117
|
-
|
|
1118
|
-
|
|
1117
|
+
l.selectedKeys.includes(F.id) ? "is-active" : "",
|
|
1118
|
+
F != null && F.disable ? "is-disable" : ""
|
|
1119
1119
|
]),
|
|
1120
|
-
onClick: z((U) =>
|
|
1120
|
+
onClick: z((U) => i(m)(U, F), ["stop"])
|
|
1121
1121
|
}, [
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1122
|
+
$((c(), p("div", yn, [
|
|
1123
|
+
K(
|
|
1124
|
+
w(F.name),
|
|
1125
1125
|
1
|
|
1126
1126
|
/* TEXT */
|
|
1127
1127
|
)
|
|
1128
1128
|
])), [
|
|
1129
|
-
[
|
|
1129
|
+
[i(N)]
|
|
1130
1130
|
]),
|
|
1131
|
-
|
|
1131
|
+
F != null && F.expired ? (c(), p(
|
|
1132
1132
|
"div",
|
|
1133
|
-
|
|
1134
|
-
|
|
1133
|
+
hn,
|
|
1134
|
+
w(i(R)("已到期")),
|
|
1135
1135
|
1
|
|
1136
1136
|
/* TEXT */
|
|
1137
|
-
)) :
|
|
1138
|
-
], 10,
|
|
1137
|
+
)) : v("v-if", !0)
|
|
1138
|
+
], 10, vn))),
|
|
1139
1139
|
128
|
|
1140
1140
|
/* KEYED_FRAGMENT */
|
|
1141
1141
|
))
|
|
@@ -1144,50 +1144,50 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
1144
1144
|
/* KEYED_FRAGMENT */
|
|
1145
1145
|
))
|
|
1146
1146
|
])), [
|
|
1147
|
-
[
|
|
1147
|
+
[i(je), { x: !1 }]
|
|
1148
1148
|
])
|
|
1149
1149
|
])
|
|
1150
1150
|
]),
|
|
1151
1151
|
_: 1
|
|
1152
1152
|
/* STABLE */
|
|
1153
|
-
})) :
|
|
1154
|
-
|
|
1155
|
-
|
|
1153
|
+
})) : v("v-if", !0),
|
|
1154
|
+
l.mode === "inline" ? (c(!0), p(
|
|
1155
|
+
j,
|
|
1156
1156
|
{ key: 1 },
|
|
1157
|
-
|
|
1158
|
-
|
|
1157
|
+
J(l.menuInfo.children, (s) => (c(), _(
|
|
1158
|
+
i(oe),
|
|
1159
1159
|
{
|
|
1160
1160
|
key: s.id
|
|
1161
1161
|
},
|
|
1162
1162
|
{
|
|
1163
|
-
default:
|
|
1164
|
-
|
|
1163
|
+
default: M(() => [
|
|
1164
|
+
C(
|
|
1165
1165
|
"div",
|
|
1166
1166
|
{
|
|
1167
|
-
class:
|
|
1167
|
+
class: P([
|
|
1168
1168
|
"sub-menu-item_inline",
|
|
1169
|
-
|
|
1169
|
+
l.selectedKeys.includes(s.id) ? "is-active" : "",
|
|
1170
1170
|
s != null && s.expired ? "is-expired" : "",
|
|
1171
1171
|
s != null && s.disable ? "is-disable" : ""
|
|
1172
1172
|
])
|
|
1173
1173
|
},
|
|
1174
1174
|
[
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1175
|
+
$((c(), p("div", kn, [
|
|
1176
|
+
K(
|
|
1177
|
+
w(s.name),
|
|
1178
1178
|
1
|
|
1179
1179
|
/* TEXT */
|
|
1180
1180
|
)
|
|
1181
1181
|
])), [
|
|
1182
|
-
[
|
|
1182
|
+
[i(N)]
|
|
1183
1183
|
]),
|
|
1184
|
-
s != null && s.expired ? (c(),
|
|
1184
|
+
s != null && s.expired ? (c(), p(
|
|
1185
1185
|
"div",
|
|
1186
|
-
|
|
1187
|
-
|
|
1186
|
+
Fn,
|
|
1187
|
+
w(i(R)("已到期")),
|
|
1188
1188
|
1
|
|
1189
1189
|
/* TEXT */
|
|
1190
|
-
)) :
|
|
1190
|
+
)) : v("v-if", !0)
|
|
1191
1191
|
],
|
|
1192
1192
|
2
|
|
1193
1193
|
/* CLASS */
|
|
@@ -1201,7 +1201,7 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
1201
1201
|
))),
|
|
1202
1202
|
128
|
|
1203
1203
|
/* KEYED_FRAGMENT */
|
|
1204
|
-
)) :
|
|
1204
|
+
)) : v("v-if", !0)
|
|
1205
1205
|
],
|
|
1206
1206
|
64
|
|
1207
1207
|
/* STABLE_FRAGMENT */
|
|
@@ -1209,60 +1209,60 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
1209
1209
|
],
|
|
1210
1210
|
64
|
|
1211
1211
|
/* STABLE_FRAGMENT */
|
|
1212
|
-
)) :
|
|
1212
|
+
)) : v("v-if", !0)
|
|
1213
1213
|
]),
|
|
1214
1214
|
_: 3
|
|
1215
1215
|
/* FORWARDED */
|
|
1216
1216
|
}, 16, ["class", "direction"]));
|
|
1217
1217
|
}
|
|
1218
|
-
}),
|
|
1219
|
-
const
|
|
1220
|
-
|
|
1221
|
-
() =>
|
|
1222
|
-
(
|
|
1223
|
-
|
|
1218
|
+
}), Pn = (e, n) => {
|
|
1219
|
+
const r = Z([]), a = Z([]);
|
|
1220
|
+
Oe(
|
|
1221
|
+
() => r.value,
|
|
1222
|
+
(l) => {
|
|
1223
|
+
n("update:currentOpenKeys", l);
|
|
1224
1224
|
}
|
|
1225
|
-
),
|
|
1225
|
+
), Oe(
|
|
1226
1226
|
() => e.currentOpenKeys,
|
|
1227
|
-
(
|
|
1228
|
-
|
|
1227
|
+
(l) => {
|
|
1228
|
+
l && r.value !== l && (r.value = e.currentOpenKeys || []);
|
|
1229
1229
|
},
|
|
1230
1230
|
{ immediate: !0 }
|
|
1231
1231
|
);
|
|
1232
|
-
const
|
|
1233
|
-
|
|
1234
|
-
s ===
|
|
1232
|
+
const t = (l, y) => {
|
|
1233
|
+
y ? (a.value.push(l), a.value = Array.from(new Set(a.value))) : a.value.map((s, h) => {
|
|
1234
|
+
s === l && a.value.splice(h, 1);
|
|
1235
1235
|
});
|
|
1236
1236
|
};
|
|
1237
|
-
|
|
1237
|
+
Xe(() => {
|
|
1238
1238
|
document.documentElement.style.setProperty("--das-menu-submenu-popup-z-index", "999998");
|
|
1239
1239
|
});
|
|
1240
|
-
const o = (
|
|
1240
|
+
const o = (l) => {
|
|
1241
1241
|
if (e.mode === "inline") {
|
|
1242
1242
|
if (!d.value) {
|
|
1243
|
-
const
|
|
1244
|
-
|
|
1243
|
+
const y = a.value.filter((s) => !l.includes(s));
|
|
1244
|
+
a.value = a.value.filter((s) => !y.includes(s));
|
|
1245
1245
|
}
|
|
1246
|
-
|
|
1246
|
+
r.value = [l[l.length - 1]];
|
|
1247
1247
|
}
|
|
1248
|
-
e.mode === "vertical" && (
|
|
1249
|
-
}, f = (
|
|
1250
|
-
!
|
|
1251
|
-
}, d =
|
|
1248
|
+
e.mode === "vertical" && (r.value = Array.from(new Set(l.concat(a.value))));
|
|
1249
|
+
}, f = (l) => {
|
|
1250
|
+
!l || !l.key || n("menuClick", l);
|
|
1251
|
+
}, d = E({
|
|
1252
1252
|
get: () => !!e.collapse,
|
|
1253
|
-
set: (
|
|
1254
|
-
|
|
1253
|
+
set: (l) => {
|
|
1254
|
+
n("update:collapse", l);
|
|
1255
1255
|
}
|
|
1256
1256
|
});
|
|
1257
1257
|
return {
|
|
1258
1258
|
isCollapse: d,
|
|
1259
|
-
openKeys:
|
|
1260
|
-
affixKeys:
|
|
1261
|
-
toggleAffix:
|
|
1259
|
+
openKeys: r,
|
|
1260
|
+
affixKeys: a,
|
|
1261
|
+
toggleAffix: t,
|
|
1262
1262
|
openChange: o,
|
|
1263
1263
|
menuClick: f,
|
|
1264
|
-
toggleCollapse: (
|
|
1265
|
-
d.value =
|
|
1264
|
+
toggleCollapse: (l) => {
|
|
1265
|
+
d.value = l, n("toggleCollapse", l);
|
|
1266
1266
|
}
|
|
1267
1267
|
};
|
|
1268
1268
|
}, He = {
|
|
@@ -1270,139 +1270,159 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
1270
1270
|
kjl: "#D9D9D9",
|
|
1271
1271
|
ssl: "#1B1F40",
|
|
1272
1272
|
cjb: "#D9D9D9",
|
|
1273
|
-
dkh: "#D9D9D9"
|
|
1273
|
+
dkh: "#D9D9D9",
|
|
1274
|
+
qatar: b("--das-menu-color-fog-blue-9")
|
|
1274
1275
|
},
|
|
1275
1276
|
"--das-ui-layout-aside-background-color": {
|
|
1276
1277
|
kjl: "#2673DC",
|
|
1277
1278
|
ssl: "#1B1F40",
|
|
1278
1279
|
cjb: "#FFFFFF",
|
|
1279
|
-
dkh: "linear-gradient(180deg, #EB0E1B 0%, #FFFFFF 189%)"
|
|
1280
|
+
dkh: "linear-gradient(180deg, #EB0E1B 0%, #FFFFFF 189%)",
|
|
1281
|
+
qatar: b("--das-menu-color-fog-blue-10")
|
|
1280
1282
|
},
|
|
1281
1283
|
"--das-ui-layout-aside-icon-container-background-color": {
|
|
1282
1284
|
kjl: "#2673DC",
|
|
1283
1285
|
ssl: "#1B1F40",
|
|
1284
1286
|
cjb: "#FFFFFF",
|
|
1285
|
-
dkh: "linear-gradient(180deg, #F6888E 0%, #F68E94 100%)"
|
|
1287
|
+
dkh: "linear-gradient(180deg, #F6888E 0%, #F68E94 100%)",
|
|
1288
|
+
qatar: b("--das-menu-color-fog-blue-10")
|
|
1286
1289
|
},
|
|
1287
1290
|
"--das-ui-layout-aside--item-color": {
|
|
1288
1291
|
kjl: "rgba(255, 255, 255, 0.8)",
|
|
1289
1292
|
ssl: "#D6D7DA",
|
|
1290
1293
|
cjb: "#666666",
|
|
1291
|
-
dkh: "rgba(255, 255, 255, 0.8)"
|
|
1294
|
+
dkh: "rgba(255, 255, 255, 0.8)",
|
|
1295
|
+
qatar: b("--das-menu-color-fog-blue-2")
|
|
1292
1296
|
},
|
|
1293
1297
|
"--das-ui-layout-aside--item-arrow-color": {
|
|
1294
1298
|
kjl: "#FFFFFF",
|
|
1295
1299
|
ssl: "#999999",
|
|
1296
1300
|
cjb: "#999999",
|
|
1297
|
-
dkh: "#ffffff"
|
|
1301
|
+
dkh: "#ffffff",
|
|
1302
|
+
qatar: b("--das-menu-color-fog-blue-2")
|
|
1298
1303
|
},
|
|
1299
1304
|
"--das-ui-layout-aside--item-active-color": {
|
|
1300
1305
|
kjl: "#FFFFFF",
|
|
1301
1306
|
ssl: "#FFFFFF",
|
|
1302
1307
|
cjb: "#5582F3",
|
|
1303
|
-
dkh: "#FFFFFF"
|
|
1308
|
+
dkh: "#FFFFFF",
|
|
1309
|
+
qatar: b("--das-menu-color-fog-blue-1")
|
|
1304
1310
|
},
|
|
1305
1311
|
"--das-ui-layout-aside--item-active-background-color": {
|
|
1306
1312
|
kjl: "#1352A7",
|
|
1307
1313
|
ssl: "#0D122C",
|
|
1308
1314
|
cjb: "#F2F6FF",
|
|
1309
|
-
dkh: "#FF737E"
|
|
1315
|
+
dkh: "#FF737E",
|
|
1316
|
+
qatar: b("--das-menu-color-fog-blue-8")
|
|
1310
1317
|
},
|
|
1311
1318
|
"--das-ui-layout-aside-item-hover-color": {
|
|
1312
1319
|
kjl: "rgba(255, 255, 255)",
|
|
1313
1320
|
ssl: "#FFFFFF",
|
|
1314
1321
|
cjb: "#5582F3",
|
|
1315
|
-
dkh: "#FFFFFF"
|
|
1322
|
+
dkh: "#FFFFFF",
|
|
1323
|
+
qatar: b("--das-menu-color-fog-blue-1")
|
|
1316
1324
|
},
|
|
1317
1325
|
"--das-ui-layout-aside-item-hover-background-color": {
|
|
1318
1326
|
kjl: "#1352A7",
|
|
1319
1327
|
ssl: "#0D122C",
|
|
1320
1328
|
cjb: "transparent",
|
|
1321
|
-
dkh: "transparent"
|
|
1329
|
+
dkh: "transparent",
|
|
1330
|
+
qatar: b("--das-menu-color-fog-blue-9")
|
|
1322
1331
|
},
|
|
1323
1332
|
"--das-ui-layout-aside-submenu-vertical-background-color": {
|
|
1324
1333
|
kjl: "#FFFFFF",
|
|
1325
1334
|
ssl: "#0D122C",
|
|
1326
1335
|
cjb: "#FFFFFF",
|
|
1327
|
-
dkh: "#FF737E"
|
|
1336
|
+
dkh: "#FF737E",
|
|
1337
|
+
qatar: b("--das-menu-color-fog-blue-10")
|
|
1328
1338
|
},
|
|
1329
1339
|
"--das-ui-layout-aside-submenu-vertical-item-hover-background-color": {
|
|
1330
1340
|
kjl: "#1352A7",
|
|
1331
1341
|
ssl: "#000000",
|
|
1332
1342
|
cjb: "#F2F6FF",
|
|
1333
|
-
dkh: "rgba(235, 14, 27, 0.5)"
|
|
1343
|
+
dkh: "rgba(235, 14, 27, 0.5)",
|
|
1344
|
+
qatar: b("--das-menu-color-fog-blue-8")
|
|
1334
1345
|
},
|
|
1335
1346
|
"--das-ui-layout-aside-submenu-item-color": {
|
|
1336
1347
|
kjl: "rgba(255,255,255,0.8)",
|
|
1337
1348
|
ssl: "rgba(255,255,255,0.8)",
|
|
1338
1349
|
cjb: "#666666",
|
|
1339
|
-
dkh: "rgba(255,255,255,0.8)"
|
|
1350
|
+
dkh: "rgba(255,255,255,0.8)",
|
|
1351
|
+
qatar: b("--das-menu-color-fog-blue-2")
|
|
1340
1352
|
},
|
|
1341
1353
|
"--das-ui-layout-aside-submenu-background-color": {
|
|
1342
1354
|
kjl: "#185EBE",
|
|
1343
1355
|
ssl: "#0D122C",
|
|
1344
1356
|
cjb: "#FFFFFF",
|
|
1345
|
-
dkh: "rgba(255, 115, 126, 0.502)"
|
|
1357
|
+
dkh: "rgba(255, 115, 126, 0.502)",
|
|
1358
|
+
qatar: b("--das-menu-color-fog-blue-10")
|
|
1346
1359
|
},
|
|
1347
1360
|
"--das-ui-layout-aside-submenu-item-hover-color": {
|
|
1348
1361
|
kjl: "#FFFFFF",
|
|
1349
1362
|
ssl: "#FFFFFF",
|
|
1350
1363
|
cjb: "#5582F3",
|
|
1351
|
-
dkh: "#FFFFFF"
|
|
1364
|
+
dkh: "#FFFFFF",
|
|
1365
|
+
qatar: b("--das-menu-color-fog-blue-1")
|
|
1352
1366
|
},
|
|
1353
1367
|
"--das-ui-layout-aside-submenu-item-hover-background-color": {
|
|
1354
1368
|
kjl: "#1352A7",
|
|
1355
1369
|
ssl: "#000000",
|
|
1356
1370
|
cjb: "transparent",
|
|
1357
|
-
dkh: "#FF737E"
|
|
1371
|
+
dkh: "#FF737E",
|
|
1372
|
+
qatar: b("--das-menu-color-fog-blue-8")
|
|
1358
1373
|
},
|
|
1359
1374
|
"--das-ui-layout-aside-submenu-item-active-background-color": {
|
|
1360
1375
|
kjl: "#1352A7",
|
|
1361
1376
|
ssl: "#000000",
|
|
1362
1377
|
cjb: "#F2F6FF",
|
|
1363
|
-
dkh: "#FF737E"
|
|
1378
|
+
dkh: "#FF737E",
|
|
1379
|
+
qatar: b("--das-menu-color-fog-blue-8")
|
|
1364
1380
|
},
|
|
1365
1381
|
"--das-ui-layout-aside-submenu-title-border-color": {
|
|
1366
1382
|
kjl: "rgba(217,217,217,0.3)",
|
|
1367
1383
|
ssl: "rgba(217,217,217,0.3)",
|
|
1368
1384
|
cjb: "#D9D9D9",
|
|
1369
|
-
dkh: "rgba(217,217,217,0.3)"
|
|
1385
|
+
dkh: "rgba(217,217,217,0.3)",
|
|
1386
|
+
qatar: b("--das-menu-color-fog-blue-9")
|
|
1370
1387
|
},
|
|
1371
1388
|
"--das-ui-layout-aside-collapse-icon-bg-color": {
|
|
1372
1389
|
kjl: "rgba(255,255,255,0.65)",
|
|
1373
1390
|
ssl: "#D6D7DA",
|
|
1374
1391
|
cjb: "#666666",
|
|
1375
|
-
dkh: "#ffffff "
|
|
1392
|
+
dkh: "#ffffff ",
|
|
1393
|
+
qatar: b("--das-menu-color-fog-blue-2")
|
|
1376
1394
|
},
|
|
1377
1395
|
"--das-ui-layout-aside-collapse-icon-hover-bg-color": {
|
|
1378
1396
|
kjl: "rgba(255,255,255)",
|
|
1379
1397
|
ssl: "#FFFFFF",
|
|
1380
1398
|
cjb: "#5582F3",
|
|
1381
|
-
dkh: "#FFFFFF "
|
|
1399
|
+
dkh: "#FFFFFF ",
|
|
1400
|
+
qatar: b("--das-menu-color-fog-blue-1")
|
|
1382
1401
|
},
|
|
1383
1402
|
"--das-ui-layout-aside-divise-border-color": {
|
|
1384
1403
|
kjl: "rgba(255, 255, 255, 0.3)",
|
|
1385
1404
|
ssl: "rgba(255, 255, 255, 0.3)",
|
|
1386
1405
|
cjb: "rgba(102, 102, 102, 0.3)",
|
|
1387
|
-
dkh: "rgba(255, 255, 255, 0.3)"
|
|
1406
|
+
dkh: "rgba(255, 255, 255, 0.3)",
|
|
1407
|
+
qatar: b("--das-menu-color-fog-blue-9")
|
|
1388
1408
|
}
|
|
1389
|
-
},
|
|
1409
|
+
}, Dn = ["dir"], In = {
|
|
1390
1410
|
key: 0,
|
|
1391
1411
|
class: "icon-box"
|
|
1392
|
-
},
|
|
1412
|
+
}, Bn = {
|
|
1393
1413
|
key: 1,
|
|
1394
1414
|
class: "custom-left-icon"
|
|
1395
|
-
},
|
|
1415
|
+
}, Kn = { class: "menu-item-content" }, Nn = {
|
|
1396
1416
|
key: 1,
|
|
1397
1417
|
class: "expired"
|
|
1398
|
-
},
|
|
1418
|
+
}, qn = {
|
|
1399
1419
|
key: 2,
|
|
1400
1420
|
class: "ant-menu-submenu-arrow",
|
|
1401
1421
|
custom: "true"
|
|
1402
|
-
},
|
|
1422
|
+
}, zn = { class: "das-aside-menu-bottom-container" }, Rn = {
|
|
1403
1423
|
name: "DasMenuAside"
|
|
1404
|
-
},
|
|
1405
|
-
...
|
|
1424
|
+
}, Hn = /* @__PURE__ */ Fe({
|
|
1425
|
+
...Rn,
|
|
1406
1426
|
props: {
|
|
1407
1427
|
globalTheme: { default: "default" },
|
|
1408
1428
|
mode: { default: "vertical" },
|
|
@@ -1415,157 +1435,157 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
1415
1435
|
rtl: { type: Boolean, default: !1 }
|
|
1416
1436
|
},
|
|
1417
1437
|
emits: ["update:collapse", "update:currentOpenKeys", "menuClick", "toggleCollapse"],
|
|
1418
|
-
setup(e, { emit:
|
|
1419
|
-
const
|
|
1420
|
-
var
|
|
1421
|
-
let
|
|
1422
|
-
return (
|
|
1423
|
-
popupClassName:
|
|
1438
|
+
setup(e, { emit: n }) {
|
|
1439
|
+
const r = Z(""), a = er(), t = e, o = n, f = "das-aside-menu-submenu", d = E(() => {
|
|
1440
|
+
var k;
|
|
1441
|
+
let g = f;
|
|
1442
|
+
return (k = t == null ? void 0 : t.subMenuAttrs) != null && k.popupClassName && (g = `${g} ${t.subMenuAttrs.popupClassName}`), t.rtl && (g = `${g} is-rtl`), {
|
|
1443
|
+
popupClassName: g
|
|
1424
1444
|
};
|
|
1425
|
-
}),
|
|
1445
|
+
}), m = E(() => t.rtl ? "left" : "right"), l = (g) => {
|
|
1426
1446
|
var u;
|
|
1427
|
-
const
|
|
1428
|
-
return
|
|
1429
|
-
},
|
|
1430
|
-
const
|
|
1431
|
-
if (
|
|
1432
|
-
return
|
|
1433
|
-
Object.keys(He).forEach((
|
|
1447
|
+
const k = a[(g == null ? void 0 : g.code) + "-rightIcon"] || g != null && g.expired ? "0" : g != null && g.disable && ((u = g == null ? void 0 : g.originalChildren) != null && u.length) ? "30px" : "15px";
|
|
1448
|
+
return t.rtl ? { "padding-left": k } : { "padding-right": k };
|
|
1449
|
+
}, y = E(() => {
|
|
1450
|
+
const g = {}, k = document.getElementById(f);
|
|
1451
|
+
if (t.globalTheme === "default")
|
|
1452
|
+
return k && k.remove(), g;
|
|
1453
|
+
Object.keys(He).forEach((B) => {
|
|
1434
1454
|
var V;
|
|
1435
|
-
|
|
1455
|
+
g[B] = ((V = He[B]) == null ? void 0 : V[t.globalTheme]) ?? void 0;
|
|
1436
1456
|
});
|
|
1437
1457
|
const u = [
|
|
1438
1458
|
{
|
|
1439
1459
|
className: `.${f}`,
|
|
1440
|
-
style:
|
|
1460
|
+
style: g
|
|
1441
1461
|
}
|
|
1442
1462
|
];
|
|
1443
|
-
return
|
|
1444
|
-
}), s =
|
|
1445
|
-
const
|
|
1446
|
-
return !
|
|
1447
|
-
}), { isCollapse:
|
|
1448
|
-
|
|
1463
|
+
return k ? ur(f, u) : cr(f, u), g;
|
|
1464
|
+
}), s = E(() => {
|
|
1465
|
+
const g = t.menus || [], k = JSON.parse(JSON.stringify(g));
|
|
1466
|
+
return !k || !k.length ? [] : Ye(k);
|
|
1467
|
+
}), { isCollapse: h, openKeys: F, affixKeys: U, toggleAffix: L, openChange: ie, menuClick: Q, toggleCollapse: X } = Pn(
|
|
1468
|
+
t,
|
|
1449
1469
|
o
|
|
1450
|
-
),
|
|
1451
|
-
return (
|
|
1452
|
-
class:
|
|
1470
|
+
), se = E(() => t.rtl ? { "padding-right": h.value ? "0" : "16px" } : { "padding-left": h.value ? "0" : "16px" });
|
|
1471
|
+
return (g, k) => (c(), p("div", {
|
|
1472
|
+
class: P([
|
|
1453
1473
|
"das-ui-menu-aside",
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
`theme-${
|
|
1457
|
-
|
|
1474
|
+
g.collapse ? "is-collapse" : "",
|
|
1475
|
+
t.rtl ? "is-rtl" : "",
|
|
1476
|
+
`theme-${g.globalTheme}`,
|
|
1477
|
+
g.globalTheme === "dkh" ? "das-ui-menu-aside-dkh" : ""
|
|
1458
1478
|
]),
|
|
1459
|
-
style: te(
|
|
1460
|
-
dir:
|
|
1479
|
+
style: te(y.value),
|
|
1480
|
+
dir: t.rtl ? "rtl" : "ltr"
|
|
1461
1481
|
}, [
|
|
1462
|
-
(c(),
|
|
1482
|
+
(c(), p(
|
|
1463
1483
|
"div",
|
|
1464
1484
|
{
|
|
1465
|
-
key:
|
|
1466
|
-
class:
|
|
1485
|
+
key: g.collapse + "",
|
|
1486
|
+
class: P(["das-ui-aside-menu", g.collapse ? "is-collapse" : ""])
|
|
1467
1487
|
},
|
|
1468
1488
|
[
|
|
1469
|
-
|
|
1470
|
-
default:
|
|
1471
|
-
s.value && s.value.length ? (c(),
|
|
1489
|
+
O(i(ar), { style: { height: "100%" } }, {
|
|
1490
|
+
default: M(() => [
|
|
1491
|
+
s.value && s.value.length ? (c(), _(i(lr), ve({
|
|
1472
1492
|
key: 0,
|
|
1473
|
-
class: ["das-menu",
|
|
1474
|
-
mode:
|
|
1475
|
-
openKeys:
|
|
1476
|
-
"onUpdate:openKeys":
|
|
1477
|
-
selectedKeys:
|
|
1493
|
+
class: ["das-menu", g.collapse ? "is-collapse" : ""],
|
|
1494
|
+
mode: g.mode,
|
|
1495
|
+
openKeys: i(F),
|
|
1496
|
+
"onUpdate:openKeys": k[1] || (k[1] = (u) => rr(F) ? F.value = u : null),
|
|
1497
|
+
selectedKeys: g.currentSelectKeys,
|
|
1478
1498
|
theme: "dark",
|
|
1479
|
-
"inline-collapsed":
|
|
1480
|
-
direction:
|
|
1481
|
-
},
|
|
1482
|
-
onOpenChange:
|
|
1483
|
-
onClick:
|
|
1499
|
+
"inline-collapsed": i(h),
|
|
1500
|
+
direction: t.rtl ? "rtl" : "ltr"
|
|
1501
|
+
}, g.$attrs, {
|
|
1502
|
+
onOpenChange: i(ie),
|
|
1503
|
+
onClick: i(Q)
|
|
1484
1504
|
}), {
|
|
1485
|
-
default:
|
|
1486
|
-
(c(!0),
|
|
1487
|
-
|
|
1505
|
+
default: M(() => [
|
|
1506
|
+
(c(!0), p(
|
|
1507
|
+
j,
|
|
1488
1508
|
null,
|
|
1489
|
-
|
|
1490
|
-
|
|
1509
|
+
J(s.value, (u) => (c(), p(
|
|
1510
|
+
j,
|
|
1491
1511
|
null,
|
|
1492
1512
|
[
|
|
1493
|
-
|
|
1494
|
-
u.children ? (c(),
|
|
1495
|
-
|
|
1513
|
+
v(" 只有一级菜单 "),
|
|
1514
|
+
u.children ? (c(), p(
|
|
1515
|
+
j,
|
|
1496
1516
|
{ key: 1 },
|
|
1497
1517
|
[
|
|
1498
|
-
|
|
1499
|
-
(c(),
|
|
1518
|
+
v(" 有二级菜单 "),
|
|
1519
|
+
(c(), _(_n, ve({
|
|
1500
1520
|
key: u.id,
|
|
1501
|
-
mode:
|
|
1521
|
+
mode: g.mode,
|
|
1502
1522
|
menuInfo: u,
|
|
1503
|
-
collapse:
|
|
1504
|
-
affixKeys:
|
|
1505
|
-
parentSelectKeys:
|
|
1506
|
-
selectedKeys:
|
|
1507
|
-
rtl:
|
|
1523
|
+
collapse: i(h),
|
|
1524
|
+
affixKeys: i(U),
|
|
1525
|
+
parentSelectKeys: g.parentSelectKeys,
|
|
1526
|
+
selectedKeys: g.currentSelectKeys,
|
|
1527
|
+
rtl: t.rtl
|
|
1508
1528
|
}, { ref_for: !0 }, d.value, {
|
|
1509
|
-
onMenuClick:
|
|
1510
|
-
onToggleAffix:
|
|
1529
|
+
onMenuClick: i(Q),
|
|
1530
|
+
onToggleAffix: i(L)
|
|
1511
1531
|
}), null, 16, ["mode", "menuInfo", "collapse", "affixKeys", "parentSelectKeys", "selectedKeys", "rtl", "onMenuClick", "onToggleAffix"]))
|
|
1512
1532
|
],
|
|
1513
1533
|
64
|
|
1514
1534
|
/* STABLE_FRAGMENT */
|
|
1515
|
-
)) : (c(),
|
|
1516
|
-
class:
|
|
1535
|
+
)) : (c(), _(i(oe), {
|
|
1536
|
+
class: P({ "divise-menu-item": u.divise }),
|
|
1517
1537
|
key: u.id,
|
|
1518
|
-
onMouseover: (
|
|
1519
|
-
onMouseleave:
|
|
1538
|
+
onMouseover: (B) => r.value = u.id,
|
|
1539
|
+
onMouseleave: k[0] || (k[0] = (B) => r.value = "")
|
|
1520
1540
|
}, {
|
|
1521
|
-
icon:
|
|
1522
|
-
|
|
1541
|
+
icon: M(() => [
|
|
1542
|
+
O(i(tr), {
|
|
1523
1543
|
content: u.name,
|
|
1524
|
-
placement:
|
|
1525
|
-
disabled: !
|
|
1544
|
+
placement: m.value,
|
|
1545
|
+
disabled: !i(h)
|
|
1526
1546
|
}, {
|
|
1527
|
-
default:
|
|
1528
|
-
var
|
|
1547
|
+
default: M(() => {
|
|
1548
|
+
var B, V;
|
|
1529
1549
|
return [
|
|
1530
|
-
|
|
1550
|
+
C(
|
|
1531
1551
|
"div",
|
|
1532
1552
|
{
|
|
1533
|
-
class:
|
|
1553
|
+
class: P([
|
|
1534
1554
|
"aside-menu-title",
|
|
1535
|
-
(
|
|
1555
|
+
(B = u == null ? void 0 : u.originalChildren) != null && B.length ? "has-children" : "",
|
|
1536
1556
|
u != null && u.expired ? "is-expired" : "",
|
|
1537
1557
|
u != null && u.disable ? "is-disable" : "",
|
|
1538
|
-
|
|
1558
|
+
g.currentSelectKeys.includes(u.id) ? "is-active" : ""
|
|
1539
1559
|
])
|
|
1540
1560
|
},
|
|
1541
1561
|
[
|
|
1542
|
-
|
|
1543
|
-
u.hideIcon ?
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
H(
|
|
1548
|
-
])) : H(
|
|
1562
|
+
v(" 自定义leftIcon "),
|
|
1563
|
+
u.hideIcon ? v("v-if", !0) : (c(), p("div", In, [
|
|
1564
|
+
v(" 第一种icon插槽 "),
|
|
1565
|
+
g.$slots[`${u == null ? void 0 : u.code}-leftIcon`] ? (c(), p("div", Bn, [
|
|
1566
|
+
v(" 第二种icon插槽 "),
|
|
1567
|
+
H(g.$slots, `${u == null ? void 0 : u.code}-leftIcon`)
|
|
1568
|
+
])) : H(g.$slots, "icon", {
|
|
1549
1569
|
key: 0,
|
|
1550
1570
|
menuInfo: u
|
|
1551
1571
|
}, () => [
|
|
1552
|
-
|
|
1572
|
+
O(Je, {
|
|
1553
1573
|
data: u,
|
|
1554
|
-
status:
|
|
1574
|
+
status: g.currentSelectKeys.includes(u.id) || r.value === u.id ? "hover" : "default"
|
|
1555
1575
|
}, null, 8, ["data", "status"])
|
|
1556
1576
|
])
|
|
1557
1577
|
])),
|
|
1558
|
-
|
|
1559
|
-
|
|
1578
|
+
C("div", Kn, [
|
|
1579
|
+
i(h) ? v("v-if", !0) : $((c(), p(
|
|
1560
1580
|
"div",
|
|
1561
1581
|
{
|
|
1562
1582
|
key: 0,
|
|
1563
1583
|
class: "menu-title",
|
|
1564
|
-
style: te(
|
|
1584
|
+
style: te(l(u))
|
|
1565
1585
|
},
|
|
1566
1586
|
[
|
|
1567
|
-
|
|
1568
|
-
|
|
1587
|
+
K(
|
|
1588
|
+
w(u.name),
|
|
1569
1589
|
1
|
|
1570
1590
|
/* TEXT */
|
|
1571
1591
|
)
|
|
@@ -1573,20 +1593,20 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
1573
1593
|
4
|
|
1574
1594
|
/* STYLE */
|
|
1575
1595
|
)), [
|
|
1576
|
-
[
|
|
1596
|
+
[i(N)]
|
|
1577
1597
|
]),
|
|
1578
|
-
|
|
1579
|
-
u != null && u.expired ? (c(),
|
|
1598
|
+
v(" 已到期标识 "),
|
|
1599
|
+
u != null && u.expired ? (c(), p(
|
|
1580
1600
|
"div",
|
|
1581
|
-
|
|
1582
|
-
|
|
1601
|
+
Nn,
|
|
1602
|
+
w(i(R)("已到期")),
|
|
1583
1603
|
1
|
|
1584
1604
|
/* TEXT */
|
|
1585
|
-
)) :
|
|
1586
|
-
|
|
1587
|
-
u != null && u.disable && ((V = u == null ? void 0 : u.originalChildren) != null && V.length) ? (c(),
|
|
1588
|
-
|
|
1589
|
-
H(
|
|
1605
|
+
)) : v("v-if", !0),
|
|
1606
|
+
v(" 箭头 "),
|
|
1607
|
+
u != null && u.disable && ((V = u == null ? void 0 : u.originalChildren) != null && V.length) ? (c(), p("i", qn)) : v("v-if", !0),
|
|
1608
|
+
v("@slots 右侧icon "),
|
|
1609
|
+
H(g.$slots, (u == null ? void 0 : u.code) + "-rightIcon")
|
|
1590
1610
|
])
|
|
1591
1611
|
],
|
|
1592
1612
|
2
|
|
@@ -1611,10 +1631,10 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
1611
1631
|
]),
|
|
1612
1632
|
_: 3
|
|
1613
1633
|
/* FORWARDED */
|
|
1614
|
-
}, 16, ["class", "mode", "openKeys", "selectedKeys", "inline-collapsed", "direction", "onOpenChange", "onClick"])) :
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
H(
|
|
1634
|
+
}, 16, ["class", "mode", "openKeys", "selectedKeys", "inline-collapsed", "direction", "onOpenChange", "onClick"])) : v("v-if", !0),
|
|
1635
|
+
v(" 底部插槽 "),
|
|
1636
|
+
C("div", zn, [
|
|
1637
|
+
H(g.$slots, "bottom")
|
|
1618
1638
|
])
|
|
1619
1639
|
]),
|
|
1620
1640
|
_: 3
|
|
@@ -1624,24 +1644,24 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
1624
1644
|
2
|
|
1625
1645
|
/* CLASS */
|
|
1626
1646
|
)),
|
|
1627
|
-
|
|
1647
|
+
C(
|
|
1628
1648
|
"div",
|
|
1629
1649
|
{
|
|
1630
|
-
class:
|
|
1650
|
+
class: P(["icon-container", i(h) ? "is-collapse" : ""])
|
|
1631
1651
|
},
|
|
1632
1652
|
[
|
|
1633
|
-
|
|
1653
|
+
C(
|
|
1634
1654
|
"div",
|
|
1635
1655
|
{
|
|
1636
|
-
style: te(
|
|
1637
|
-
onClick:
|
|
1656
|
+
style: te(se.value),
|
|
1657
|
+
onClick: k[2] || (k[2] = (u) => i(X)(!i(h)))
|
|
1638
1658
|
},
|
|
1639
1659
|
[
|
|
1640
|
-
|
|
1641
|
-
|
|
1660
|
+
C("div", null, [
|
|
1661
|
+
i(h) ? (c(), _(i(Se), {
|
|
1642
1662
|
key: 0,
|
|
1643
1663
|
class: "collapse-icon"
|
|
1644
|
-
})) : (c(),
|
|
1664
|
+
})) : (c(), _(i(Ce), {
|
|
1645
1665
|
key: 1,
|
|
1646
1666
|
class: "collapse-icon"
|
|
1647
1667
|
}))
|
|
@@ -1654,9 +1674,9 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
1654
1674
|
2
|
|
1655
1675
|
/* CLASS */
|
|
1656
1676
|
)
|
|
1657
|
-
], 14,
|
|
1677
|
+
], 14, Dn));
|
|
1658
1678
|
}
|
|
1659
|
-
}),
|
|
1679
|
+
}), Un = {
|
|
1660
1680
|
"--das-ui-layout-aside-menu-width": "214px",
|
|
1661
1681
|
"--das-ui-layout-aside-collapse-menu-width": "50px",
|
|
1662
1682
|
"--das-ui-layout-aside-menu-item-height": "50px",
|
|
@@ -1680,12 +1700,36 @@ const or = ["src"], Ge = /* @__PURE__ */ ke({
|
|
|
1680
1700
|
"--das-ui-layout-aside-collapse-icon-bg-color": "rgba(255,255,255,0.65)",
|
|
1681
1701
|
"--das-ui-layout-aside-collapse-icon-hover-bg-color": "#FFFFFF",
|
|
1682
1702
|
"--das-ui-layout-aside-divise-border-color": "rgba(255, 255, 255, 0.3)",
|
|
1683
|
-
"--das-ui-layout-aside-menu-expired-color": "#BBBBBB"
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1703
|
+
"--das-ui-layout-aside-menu-expired-color": "#BBBBBB",
|
|
1704
|
+
qatar: {
|
|
1705
|
+
"--das-ui-layout-aside-border-color": b("--das-menu-color-fog-blue-9"),
|
|
1706
|
+
"--das-ui-layout-aside-background-color": b("--das-menu-color-fog-blue-10"),
|
|
1707
|
+
"--das-ui-layout-aside-icon-container-background-color": b("--das-menu-color-fog-blue-10"),
|
|
1708
|
+
"--das-ui-layout-aside--item-color": b("--das-menu-color-fog-blue-2"),
|
|
1709
|
+
"--das-ui-layout-aside--item-arrow-color": b("--das-menu-color-fog-blue-2"),
|
|
1710
|
+
"--das-ui-layout-aside--item-active-color": b("--das-menu-color-fog-blue-1"),
|
|
1711
|
+
"--das-ui-layout-aside--item-active-background-color": b("--das-menu-color-fog-blue-8"),
|
|
1712
|
+
"--das-ui-layout-aside-item-hover-color": b("--das-menu-color-fog-blue-1"),
|
|
1713
|
+
"--das-ui-layout-aside-item-hover-background-color": b("--das-menu-color-fog-blue-9"),
|
|
1714
|
+
"--das-ui-layout-aside-submenu-title-border-color": b("--das-menu-color-fog-blue-9"),
|
|
1715
|
+
"--das-ui-layout-aside-submenu-vertical-background-color": b("--das-menu-color-fog-blue-10"),
|
|
1716
|
+
"--das-ui-layout-aside-submenu-vertical-item-hover-background-color": b("--das-menu-color-fog-blue-8"),
|
|
1717
|
+
"--das-ui-layout-aside-submenu-background-color": b("--das-menu-color-fog-blue-10"),
|
|
1718
|
+
"--das-ui-layout-aside-submenu-item-affix-color": b("--das-menu-color-fog-blue-4"),
|
|
1719
|
+
"--das-ui-layout-aside-submenu-item-color": b("--das-menu-color-fog-blue-2"),
|
|
1720
|
+
"--das-ui-layout-aside-submenu-item-hover-color": b("--das-menu-color-fog-blue-1"),
|
|
1721
|
+
"--das-ui-layout-aside-submenu-item-hover-background-color": b("--das-menu-color-fog-blue-8"),
|
|
1722
|
+
"--das-ui-layout-aside-submenu-item-active-background-color": b("--das-menu-color-fog-blue-8"),
|
|
1723
|
+
"--das-ui-layout-aside-collapse-icon-bg-color": b("--das-menu-color-fog-blue-2"),
|
|
1724
|
+
"--das-ui-layout-aside-collapse-icon-hover-bg-color": b("--das-menu-color-fog-blue-1"),
|
|
1725
|
+
"--das-ui-layout-aside-divise-border-color": b("--das-menu-color-fog-blue-9"),
|
|
1726
|
+
"--das-ui-layout-aside-menu-expired-color": b("--das-menu-color-fog-blue-4")
|
|
1727
|
+
}
|
|
1728
|
+
}, Ln = { 已到期: { "zh-CN": "已到期", en: "Expired", ar: "منتهي الصلاحية", _appCode: "framework" } };
|
|
1729
|
+
nr(Ln);
|
|
1730
|
+
sr(Un);
|
|
1731
|
+
const oa = Ze(Hn), la = { title: "Menu-Aside 垂直导航栏" };
|
|
1688
1732
|
export {
|
|
1689
|
-
|
|
1690
|
-
|
|
1733
|
+
oa as DasMenuAside,
|
|
1734
|
+
la as default
|
|
1691
1735
|
};
|