@gx-design-vue/pro-layout 0.1.0-beta.29 → 0.1.0-beta.30
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/dist/pro-layout.mjs
CHANGED
|
@@ -252,9 +252,9 @@ function Bn(e) {
|
|
|
252
252
|
return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
|
|
253
253
|
}
|
|
254
254
|
function xt(e, t, n, a) {
|
|
255
|
-
var l, u, d,
|
|
255
|
+
var l, u, d, f, h, v, s, B, r, x, M, I, p, g, m, b, k, C, O, F, $, D, _, N, z, y, w, T, R, P, j, W, E, V;
|
|
256
256
|
const i = { ...e };
|
|
257
|
-
return n === "light" ? (i.colorItemBg = (u = (l = t.layout) == null ? void 0 : l[a]) == null ? void 0 : u.colorBgMenu, i.colorSubItemBg = (
|
|
257
|
+
return n === "light" ? (i.colorItemBg = (u = (l = t.layout) == null ? void 0 : l[a]) == null ? void 0 : u.colorBgMenu, i.colorSubItemBg = (f = (d = t.layout) == null ? void 0 : d[a]) == null ? void 0 : f.colorSubItemBg, i.colorItemBgSelected = (v = (h = t.layout) == null ? void 0 : h[a]) == null ? void 0 : v.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (B = (s = t.layout) == null ? void 0 : s[a]) == null ? void 0 : B.colorBgMenuItemSelected, i.colorItemText = (x = (r = t.layout) == null ? void 0 : r[a]) == null ? void 0 : x.colorTextMenu, i.colorItemTextHover = (I = (M = t.layout) == null ? void 0 : M[a]) == null ? void 0 : I.colorTextMenuHover, i.colorItemTextSelected = (g = (p = t.layout) == null ? void 0 : p[a]) == null ? void 0 : g.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (b = (m = t.layout) == null ? void 0 : m[a]) == null ? void 0 : b.colorTextMenuSelected, a === "sider" && (i.colorItemBgHover = (C = (k = t.layout) == null ? void 0 : k[a]) == null ? void 0 : C.colorBgMenuItemHover)) : n === "dark" && (i.colorItemBg = (F = (O = t.layout) == null ? void 0 : O[a]) == null ? void 0 : F.colorDarkBgMenu, i.colorSubItemBg = (D = ($ = t.layout) == null ? void 0 : $[a]) == null ? void 0 : D.colorDarkSubItemBg, i.colorItemBgSelected = (N = (_ = t.layout) == null ? void 0 : _[a]) == null ? void 0 : N.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (y = (z = t.layout) == null ? void 0 : z[a]) == null ? void 0 : y.colorDarkBgMenuItemSelected, i.colorItemText = (T = (w = t.layout) == null ? void 0 : w[a]) == null ? void 0 : T.colorDarkTextMenu, i.colorItemTextHover = (P = (R = t.layout) == null ? void 0 : R[a]) == null ? void 0 : P.colorDarkTextMenuHover, i.colorItemTextSelected = (W = (j = t.layout) == null ? void 0 : j[a]) == null ? void 0 : W.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (V = (E = t.layout) == null ? void 0 : E[a]) == null ? void 0 : V.colorDarkTextMenuSelected, a === "header" && (i.colorActiveBarHeight = 0)), i;
|
|
258
258
|
}
|
|
259
259
|
const kn = ["left", "right"], se = ["left", "right", "down", "up"], $n = ["downBig", "upBig", "leftBig", "rightBig"], Tn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Fn = ["downLeft", "upRight", "downRight", "upLeft"], Ke = {
|
|
260
260
|
preset: [
|
|
@@ -326,9 +326,9 @@ function yl(e, t) {
|
|
|
326
326
|
const l = [], u = n.split("-");
|
|
327
327
|
for (let d = 0; d < u.length; d += 1)
|
|
328
328
|
l.push(Ee(u).splice(0, d + 1).join("-"));
|
|
329
|
-
return e.filter((d) => l.some((
|
|
330
|
-
var
|
|
331
|
-
return
|
|
329
|
+
return e.filter((d) => l.some((f) => {
|
|
330
|
+
var h;
|
|
331
|
+
return f === ((h = d == null ? void 0 : d.meta) == null ? void 0 : h.key) || "";
|
|
332
332
|
}));
|
|
333
333
|
}
|
|
334
334
|
return [];
|
|
@@ -416,88 +416,88 @@ const Ct = /* @__PURE__ */ H({
|
|
|
416
416
|
suffixCls: "menu-item",
|
|
417
417
|
isPor: !0
|
|
418
418
|
}), i = (r) => {
|
|
419
|
-
var
|
|
420
|
-
(
|
|
419
|
+
var x;
|
|
420
|
+
(x = e.onOpenKeys) == null || x.call(e, r);
|
|
421
421
|
}, l = (r) => {
|
|
422
|
-
var
|
|
423
|
-
(
|
|
422
|
+
var x;
|
|
423
|
+
(x = e.onSelect) == null || x.call(e, r.selectedKeys);
|
|
424
424
|
}, u = (r) => {
|
|
425
|
+
var x;
|
|
426
|
+
(x = e.onClick) == null || x.call(e, ...r);
|
|
427
|
+
}, d = (r, x) => {
|
|
425
428
|
var p;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
((
|
|
431
|
-
|
|
432
|
-
var O, v, m, g, x, T, C, M, F;
|
|
433
|
-
if (Array.isArray(r.children) && r.children.length > 0 && !((O = r == null ? void 0 : r.meta) != null && O.hideInMenu) && !((v = r == null ? void 0 : r.meta) != null && v.hideChildrenInMenu)) {
|
|
434
|
-
let k;
|
|
429
|
+
const M = r.target || "", I = vt(M);
|
|
430
|
+
((p = t.currentRoute.value) == null ? void 0 : p.fullPath) !== x.to && I && M && r.targetStatus === 1 && window.open(M);
|
|
431
|
+
}, f = ft("router-link"), h = (r = []) => r.map((x) => v(x)).filter((x) => x), v = (r) => {
|
|
432
|
+
var I, p, g, m, b, k, C, O, F;
|
|
433
|
+
if (Array.isArray(r.children) && r.children.length > 0 && !((I = r == null ? void 0 : r.meta) != null && I.hideInMenu) && !((p = r == null ? void 0 : r.meta) != null && p.hideChildrenInMenu)) {
|
|
434
|
+
let $;
|
|
435
435
|
if (e.subMenuItemRender)
|
|
436
436
|
return e.subMenuItemRender({
|
|
437
437
|
item: r,
|
|
438
|
-
children:
|
|
438
|
+
children: h(r.children)
|
|
439
439
|
});
|
|
440
|
-
const D = (
|
|
440
|
+
const D = (g = r.meta) == null ? void 0 : g.title, _ = (m = r.meta) != null && m.icon ? o("span", {
|
|
441
441
|
class: "gx-pro-sider-menu-item"
|
|
442
442
|
}, [o("span", {
|
|
443
443
|
class: "gx-pro-sider-menu-item-title"
|
|
444
444
|
}, [D])]) : o("span", {
|
|
445
445
|
class: "gx-pro-sider-menu-item"
|
|
446
|
-
}, [D]), N = ((
|
|
446
|
+
}, [D]), N = ((b = r.meta) == null ? void 0 : b.type) === "group", z = N ? ee.ItemGroup : ee.SubMenu;
|
|
447
447
|
return o(z, {
|
|
448
448
|
title: _,
|
|
449
449
|
key: r.path,
|
|
450
450
|
icon: N ? null : o(Ce, {
|
|
451
451
|
className: a,
|
|
452
|
-
icon: (
|
|
452
|
+
icon: (k = r.meta) == null ? void 0 : k.icon,
|
|
453
453
|
iconfontUrl: e.iconfontUrl,
|
|
454
454
|
iconType: (C = r.meta) == null ? void 0 : C.iconType
|
|
455
455
|
}, null)
|
|
456
|
-
}, nt(
|
|
457
|
-
default: () => [
|
|
456
|
+
}, nt($ = h(r.children)) ? $ : {
|
|
457
|
+
default: () => [$]
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
|
-
const [
|
|
460
|
+
const [x, M] = s(r);
|
|
461
461
|
return e.menuItemRender && e.menuItemRender({
|
|
462
462
|
item: r,
|
|
463
|
-
title:
|
|
464
|
-
icon:
|
|
463
|
+
title: x,
|
|
464
|
+
icon: M
|
|
465
465
|
}) || o(ee.Item, {
|
|
466
|
-
disabled: (
|
|
466
|
+
disabled: (O = r.meta) == null ? void 0 : O.disabled,
|
|
467
467
|
danger: (F = r.meta) == null ? void 0 : F.danger,
|
|
468
468
|
key: r.path,
|
|
469
|
-
icon:
|
|
470
|
-
}, nt(
|
|
471
|
-
default: () => [
|
|
469
|
+
icon: M
|
|
470
|
+
}, nt(x) ? x : {
|
|
471
|
+
default: () => [x]
|
|
472
472
|
});
|
|
473
473
|
}, s = (r) => {
|
|
474
|
-
var
|
|
475
|
-
const
|
|
474
|
+
var b, k, C, O, F;
|
|
475
|
+
const x = {
|
|
476
476
|
...r.meta
|
|
477
|
-
},
|
|
477
|
+
}, M = x.targetStatus === 1 && x.target ? "a" : f, I = {
|
|
478
478
|
to: r.linkPath || r.path || ""
|
|
479
479
|
};
|
|
480
|
-
|
|
481
|
-
const
|
|
480
|
+
I.to === "/live/list/operation/:id" && (I.to = "/live/list/operation/add");
|
|
481
|
+
const p = (b = r.meta) == null ? void 0 : b.title, g = (k = r.meta) != null && k.icon ? o(M, X(I, {
|
|
482
482
|
class: "gx-pro-sider-menu-item",
|
|
483
|
-
onClick: () => d(
|
|
483
|
+
onClick: () => d(x, I)
|
|
484
484
|
}), {
|
|
485
485
|
default: () => [o("span", {
|
|
486
486
|
class: "gx-pro-sider-menu-item-title"
|
|
487
|
-
}, [
|
|
488
|
-
}) : o(
|
|
487
|
+
}, [p])]
|
|
488
|
+
}) : o(M, X(I, {
|
|
489
489
|
class: "gx-pro-sider-menu-item",
|
|
490
|
-
onClick: () => d(
|
|
490
|
+
onClick: () => d(x, I)
|
|
491
491
|
}), {
|
|
492
|
-
default: () => [o("span", null, [
|
|
493
|
-
}),
|
|
492
|
+
default: () => [o("span", null, [p])]
|
|
493
|
+
}), m = ((C = r.meta) == null ? void 0 : C.icon) && o(Ce, {
|
|
494
494
|
className: a,
|
|
495
|
-
icon: (
|
|
495
|
+
icon: (O = r.meta) == null ? void 0 : O.icon,
|
|
496
496
|
iconfontUrl: e.iconfontUrl,
|
|
497
497
|
iconType: (F = r.meta) == null ? void 0 : F.iconType
|
|
498
498
|
}, null) || void 0;
|
|
499
|
-
return [
|
|
500
|
-
}, B = S(() =>
|
|
499
|
+
return [g, m];
|
|
500
|
+
}, B = S(() => h(e.menuData));
|
|
501
501
|
return () => o(ee, X({
|
|
502
502
|
key: "Menu",
|
|
503
503
|
inlineIndent: 16,
|
|
@@ -534,7 +534,7 @@ const Ct = /* @__PURE__ */ H({
|
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
536
|
}, Kn = (e) => {
|
|
537
|
-
var t, n, a, i, l, u, d,
|
|
537
|
+
var t, n, a, i, l, u, d, f, h, v, s, B;
|
|
538
538
|
return {
|
|
539
539
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
540
540
|
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
@@ -583,7 +583,7 @@ const Ct = /* @__PURE__ */ H({
|
|
|
583
583
|
background: "transparent"
|
|
584
584
|
},
|
|
585
585
|
"&-footer": {
|
|
586
|
-
color: (
|
|
586
|
+
color: (f = (d = e.layout) == null ? void 0 : d.sider) == null ? void 0 : f.colorDarkTextMenu,
|
|
587
587
|
paddingBlockEnd: 16,
|
|
588
588
|
fontSize: e.fontSize,
|
|
589
589
|
animationName: wt,
|
|
@@ -598,7 +598,7 @@ const Ct = /* @__PURE__ */ H({
|
|
|
598
598
|
zIndex: "100",
|
|
599
599
|
height: "100%",
|
|
600
600
|
"&-mix": {
|
|
601
|
-
height: `calc(100% - ${((
|
|
601
|
+
height: `calc(100% - ${((v = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : v.heightLayoutHeader) || A.headerHeight}px)`,
|
|
602
602
|
insetBlockStart: `${((B = (s = e.layout) == null ? void 0 : s.header) == null ? void 0 : B.heightLayoutHeader) || A.headerHeight}px`
|
|
603
603
|
}
|
|
604
604
|
}
|
|
@@ -685,8 +685,8 @@ const Ct = /* @__PURE__ */ H({
|
|
|
685
685
|
} = e, u = e[t || ""];
|
|
686
686
|
if (u === !1)
|
|
687
687
|
return null;
|
|
688
|
-
const d = St(n, a),
|
|
689
|
-
return typeof u == "function" ? u(d, e.collapsed ? null :
|
|
688
|
+
const d = St(n, a), f = i && o("h1", null, [i]);
|
|
689
|
+
return typeof u == "function" ? u(d, e.collapsed ? null : f, e) : o(q, null, [d || null, e.collapsed && l === "side" ? null : f]);
|
|
690
690
|
}, Xe = /* @__PURE__ */ H({
|
|
691
691
|
name: "LogoContent",
|
|
692
692
|
props: oe,
|
|
@@ -736,32 +736,32 @@ const {
|
|
|
736
736
|
token: u
|
|
737
737
|
} = Me(), {
|
|
738
738
|
theme: d,
|
|
739
|
-
layout:
|
|
740
|
-
isMobile:
|
|
741
|
-
menuLoading:
|
|
739
|
+
layout: f,
|
|
740
|
+
isMobile: h,
|
|
741
|
+
menuLoading: v,
|
|
742
742
|
breakpoint: s,
|
|
743
743
|
fixSiderbar: B,
|
|
744
744
|
collapsed: r,
|
|
745
|
-
siderWidth:
|
|
746
|
-
collapsedWidth:
|
|
747
|
-
menuExtraRender:
|
|
748
|
-
menuContentRender:
|
|
749
|
-
menuFooterRender:
|
|
750
|
-
collapsedButtonRender:
|
|
751
|
-
links:
|
|
752
|
-
} = Ie(e),
|
|
745
|
+
siderWidth: x,
|
|
746
|
+
collapsedWidth: M,
|
|
747
|
+
menuExtraRender: I,
|
|
748
|
+
menuContentRender: p,
|
|
749
|
+
menuFooterRender: g,
|
|
750
|
+
collapsedButtonRender: m,
|
|
751
|
+
links: b
|
|
752
|
+
} = Ie(e), k = t({
|
|
753
753
|
suffixCls: "sider",
|
|
754
754
|
isPor: !0
|
|
755
755
|
}), {
|
|
756
756
|
wrapSSR: C,
|
|
757
|
-
hashId:
|
|
758
|
-
} = Z("ProLayoutSiderMenu", [Wn, Kn, Un],
|
|
757
|
+
hashId: O
|
|
758
|
+
} = Z("ProLayoutSiderMenu", [Wn, Kn, Un], k), F = S(() => e.layout === "wide"), $ = S(() => e.layout === "mix" && !e.isMobile && e.splitMenus), D = S(() => f.value === "side" || f.value === "simple"), _ = S(() => (e.layout === "mix" || F.value) && "light" || d.value), N = S(() => e.collapsed ? e.collapsedWidth : e.siderWidth), z = S(() => [O.value, k, h.value ? "shadow" : null, `${k}-${_.value}`, B.value && e.layout !== "wide" ? `${k}-fixed` : null]), y = S(() => {
|
|
759
759
|
var R;
|
|
760
|
-
return typeof
|
|
761
|
-
}), w = S(() =>
|
|
760
|
+
return typeof b.value == "function" ? (R = b.value) == null ? void 0 : R.call(b) : b.value;
|
|
761
|
+
}), w = S(() => m.value !== !1 ? m.value || It : !1), T = (R) => {
|
|
762
762
|
var P;
|
|
763
763
|
if (e.onSelect) {
|
|
764
|
-
if (U(
|
|
764
|
+
if (U($)) {
|
|
765
765
|
e.onSelect([(P = n == null ? void 0 : n.value) == null ? void 0 : P[0], ...R]);
|
|
766
766
|
return;
|
|
767
767
|
}
|
|
@@ -771,12 +771,12 @@ const {
|
|
|
771
771
|
return () => {
|
|
772
772
|
var W;
|
|
773
773
|
const R = D.value ? o(Xe, X({
|
|
774
|
-
drawer:
|
|
775
|
-
}, e), null) : null, P =
|
|
776
|
-
class: `${
|
|
774
|
+
drawer: h.value
|
|
775
|
+
}, e), null) : null, P = I.value && ((W = I.value) == null ? void 0 : W.call(I, e)), j = o(Ct, {
|
|
776
|
+
class: `${k}-menu ${O.value}`,
|
|
777
777
|
theme: _.value,
|
|
778
778
|
mode: "inline",
|
|
779
|
-
menuData:
|
|
779
|
+
menuData: $.value ? a.value : i.value,
|
|
780
780
|
iconfontUrl: e.iconfontUrl,
|
|
781
781
|
openKeys: l.value,
|
|
782
782
|
selectedKeys: n.value,
|
|
@@ -790,9 +790,9 @@ const {
|
|
|
790
790
|
var V;
|
|
791
791
|
return e.onOpenKeys && ((V = e.onOpenKeys) == null ? void 0 : V.call(e, E));
|
|
792
792
|
},
|
|
793
|
-
onSelect:
|
|
793
|
+
onSelect: T
|
|
794
794
|
}, null);
|
|
795
|
-
return
|
|
795
|
+
return $.value && U(a.value).length === 0 || i.value.length === 0 ? null : C(o(Ne, {
|
|
796
796
|
theme: {
|
|
797
797
|
components: {
|
|
798
798
|
Menu: xt({
|
|
@@ -828,43 +828,43 @@ const {
|
|
|
828
828
|
theme: _.value,
|
|
829
829
|
breakpoint: s.value || void 0,
|
|
830
830
|
collapsed: r.value,
|
|
831
|
-
width:
|
|
832
|
-
collapsedWidth:
|
|
831
|
+
width: x.value,
|
|
832
|
+
collapsedWidth: M.value
|
|
833
833
|
}, {
|
|
834
834
|
default: () => {
|
|
835
835
|
var E, V;
|
|
836
|
-
return [
|
|
837
|
-
class: ["gx-pro-sider-loading",
|
|
836
|
+
return [v.value && o("div", {
|
|
837
|
+
class: ["gx-pro-sider-loading", O.value]
|
|
838
838
|
}, [o(xe, {
|
|
839
|
-
spinning:
|
|
839
|
+
spinning: v.value
|
|
840
840
|
}, null)]), R || null, P && !e.collapsed && o("div", {
|
|
841
841
|
class: {
|
|
842
|
-
[`${
|
|
843
|
-
[`${
|
|
844
|
-
[`${
|
|
842
|
+
[`${O.value}`]: !0,
|
|
843
|
+
[`${k}-extra`]: !0,
|
|
844
|
+
[`${k}-extra-no-logo`]: !R
|
|
845
845
|
}
|
|
846
846
|
}, [P]), o("div", {
|
|
847
847
|
style: {
|
|
848
848
|
flex: "1 1 0%",
|
|
849
849
|
overflow: "hidden auto"
|
|
850
850
|
}
|
|
851
|
-
}, [
|
|
852
|
-
class: `${
|
|
851
|
+
}, [p.value && ((E = p.value) == null ? void 0 : E.call(p, e, j)) || j]), e.layout !== "wide" && o("div", {
|
|
852
|
+
class: `${k}-links ${O.value}`
|
|
853
853
|
}, [o(ee, {
|
|
854
854
|
theme: _.value,
|
|
855
855
|
inlineIndent: 16,
|
|
856
|
-
class: `${
|
|
856
|
+
class: `${k}-link-menu ${O.value}`,
|
|
857
857
|
selectedKeys: [],
|
|
858
858
|
openKeys: [],
|
|
859
859
|
mode: "inline"
|
|
860
860
|
}, {
|
|
861
861
|
default: () => [(y.value || []).map((G, fe) => o(at, {
|
|
862
|
-
class: `${
|
|
862
|
+
class: `${k}-link ${O.value}`,
|
|
863
863
|
key: fe
|
|
864
864
|
}, Yn(G) ? G : {
|
|
865
865
|
default: () => [G]
|
|
866
|
-
})), w.value && !
|
|
867
|
-
class: `${
|
|
866
|
+
})), w.value && !h.value && o(at, {
|
|
867
|
+
class: `${k}-collapsed-button ${O.value}`,
|
|
868
868
|
title: !1,
|
|
869
869
|
key: "collapsed",
|
|
870
870
|
onClick: () => {
|
|
@@ -877,9 +877,9 @@ const {
|
|
|
877
877
|
return [(G = w.value) == null ? void 0 : G.call(w, r.value)];
|
|
878
878
|
}
|
|
879
879
|
})]
|
|
880
|
-
})]),
|
|
881
|
-
class: `${
|
|
882
|
-
}, [(V =
|
|
880
|
+
})]), g.value && o("div", {
|
|
881
|
+
class: `${k}-footer ${O.value}`
|
|
882
|
+
}, [(V = g.value) == null ? void 0 : V.call(g, e)])];
|
|
883
883
|
}
|
|
884
884
|
})]
|
|
885
885
|
}));
|
|
@@ -1001,6 +1001,7 @@ const me = {
|
|
|
1001
1001
|
default: () => {
|
|
1002
1002
|
}
|
|
1003
1003
|
},
|
|
1004
|
+
pageHeaderStyle: L.style,
|
|
1004
1005
|
pageContentStyle: L.style,
|
|
1005
1006
|
loading: L.bool.def(!1),
|
|
1006
1007
|
usePageCard: L.bool.def(!0),
|
|
@@ -1038,25 +1039,25 @@ const me = {
|
|
|
1038
1039
|
return {
|
|
1039
1040
|
...t.value,
|
|
1040
1041
|
itemRender: ((d = t.value) == null ? void 0 : d.itemRender) || (({
|
|
1041
|
-
route:
|
|
1042
|
-
}) =>
|
|
1043
|
-
to:
|
|
1042
|
+
route: f
|
|
1043
|
+
}) => f.path ? o(tn, {
|
|
1044
|
+
to: f.path
|
|
1044
1045
|
}, {
|
|
1045
|
-
default: () => [
|
|
1046
|
-
}) :
|
|
1046
|
+
default: () => [f.breadcrumbName]
|
|
1047
|
+
}) : f.breadcrumbName)
|
|
1047
1048
|
};
|
|
1048
1049
|
});
|
|
1049
1050
|
return () => {
|
|
1050
|
-
var d,
|
|
1051
|
+
var d, f;
|
|
1051
1052
|
return i(o("div", {
|
|
1052
1053
|
class: [`${a}`, l.value, `${a}-has-breadcrumb`]
|
|
1053
1054
|
}, [e.breadcrumb ? (d = e.breadcrumb) == null ? void 0 : d.call(e, u.value) : o(Gt, u.value, null), e.content && o("div", {
|
|
1054
1055
|
class: [`${a}-content`, l.value]
|
|
1055
|
-
}, [(
|
|
1056
|
+
}, [(f = e.content) == null ? void 0 : f.call(e)])]));
|
|
1056
1057
|
};
|
|
1057
1058
|
}
|
|
1058
1059
|
}), da = (e) => {
|
|
1059
|
-
var t, n, a, i, l, u, d,
|
|
1060
|
+
var t, n, a, i, l, u, d, f;
|
|
1060
1061
|
return {
|
|
1061
1062
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1062
1063
|
[e.componentCls]: {
|
|
@@ -1070,7 +1071,7 @@ const me = {
|
|
|
1070
1071
|
[e.componentCls]: {
|
|
1071
1072
|
["&-children-content"]: {
|
|
1072
1073
|
marginInline: ((u = (l = e.layout) == null ? void 0 : l.pageContainer) == null ? void 0 : u.paddingBlockPageContainerContent) ?? 24,
|
|
1073
|
-
marginBlockStart: ((
|
|
1074
|
+
marginBlockStart: ((f = (d = e.layout) == null ? void 0 : d.pageContainer) == null ? void 0 : f.paddingBlockPageContainerContent) ?? 24,
|
|
1074
1075
|
padding: "inherit"
|
|
1075
1076
|
}
|
|
1076
1077
|
}
|
|
@@ -1092,68 +1093,71 @@ const bl = /* @__PURE__ */ H({
|
|
|
1092
1093
|
name: "GProPageContainer",
|
|
1093
1094
|
props: me,
|
|
1094
1095
|
setup(e, {
|
|
1095
|
-
slots: t
|
|
1096
|
+
slots: t,
|
|
1097
|
+
attrs: n
|
|
1096
1098
|
}) {
|
|
1097
1099
|
const {
|
|
1098
|
-
getPrefixCls:
|
|
1099
|
-
hasContentWide:
|
|
1100
|
-
waterMark:
|
|
1101
|
-
pageHeaderRender:
|
|
1102
|
-
pageContentStyle:
|
|
1103
|
-
pageCardProps:
|
|
1100
|
+
getPrefixCls: a,
|
|
1101
|
+
hasContentWide: i,
|
|
1102
|
+
waterMark: l,
|
|
1103
|
+
pageHeaderRender: u,
|
|
1104
|
+
pageContentStyle: d,
|
|
1105
|
+
pageCardProps: f,
|
|
1104
1106
|
usePageCard: h
|
|
1105
1107
|
} = J(), {
|
|
1106
|
-
indicator:
|
|
1107
|
-
} = Qn(),
|
|
1108
|
+
indicator: v
|
|
1109
|
+
} = Qn(), s = a({
|
|
1108
1110
|
suffixCls: "page-container",
|
|
1109
1111
|
isPor: !0
|
|
1110
|
-
}),
|
|
1112
|
+
}), B = a({
|
|
1111
1113
|
suffixCls: "grid-content",
|
|
1112
1114
|
isPor: !0
|
|
1113
|
-
}),
|
|
1114
|
-
wrapSSR:
|
|
1115
|
+
}), r = S(() => e.pageCardProps || f.value), x = S(() => e.pageContentStyle || d.value), {
|
|
1116
|
+
wrapSSR: M,
|
|
1115
1117
|
hashId: I
|
|
1116
|
-
} = ca(
|
|
1118
|
+
} = ca(s), p = () => {
|
|
1117
1119
|
var m;
|
|
1118
1120
|
return o("div", {
|
|
1119
|
-
class: `${
|
|
1120
|
-
}, [(yn(e.usePageCard) ? e.usePageCard : h.value) ? o(Yt, X(
|
|
1121
|
-
style:
|
|
1121
|
+
class: `${s}-children-content ${I.value}`
|
|
1122
|
+
}, [(yn(e.usePageCard) ? e.usePageCard : h.value) ? o(Yt, X(r.value ? ae(r.value, ["loading", "bodyStyle"]) : {}, {
|
|
1123
|
+
style: i.value ? {
|
|
1122
1124
|
minHeight: "853px"
|
|
1123
1125
|
} : void 0,
|
|
1124
1126
|
bordered: !1
|
|
1125
1127
|
}), {
|
|
1126
1128
|
default: () => {
|
|
1127
|
-
var
|
|
1128
|
-
return [(
|
|
1129
|
+
var b;
|
|
1130
|
+
return [(b = t.default) == null ? void 0 : b.call(t)];
|
|
1129
1131
|
}
|
|
1130
1132
|
}) : (m = t.default) == null ? void 0 : m.call(t)]);
|
|
1131
|
-
},
|
|
1133
|
+
}, g = () => {
|
|
1132
1134
|
let m;
|
|
1133
|
-
return o(q, null, [e.waterMark &&
|
|
1135
|
+
return o(q, null, [e.waterMark && l.value ? o(gn, null, ma(m = p()) ? m : {
|
|
1134
1136
|
default: () => [m]
|
|
1135
|
-
}) :
|
|
1137
|
+
}) : p()]);
|
|
1136
1138
|
};
|
|
1137
1139
|
return () => {
|
|
1138
|
-
const m = K(t, e, "pageHeaderRender") ||
|
|
1139
|
-
return
|
|
1140
|
+
const m = K(t, e, "pageHeaderRender") || u.value, b = K(t, e, "breadcrumbRender"), k = K(t, e, "contentRender");
|
|
1141
|
+
return M(o(xe, {
|
|
1140
1142
|
spinning: e.loading,
|
|
1141
|
-
indicator:
|
|
1143
|
+
indicator: v == null ? void 0 : v.value
|
|
1142
1144
|
}, {
|
|
1143
1145
|
default: () => [o("div", {
|
|
1146
|
+
style: n.style,
|
|
1144
1147
|
class: {
|
|
1145
1148
|
[`${I.value}`]: !0,
|
|
1146
|
-
[`${
|
|
1149
|
+
[`${s}`]: !0
|
|
1147
1150
|
}
|
|
1148
|
-
}, [!
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
+
}, [!i.value && m !== !1 && (m || o(ua, {
|
|
1152
|
+
style: e.pageHeaderStyle,
|
|
1153
|
+
breadcrumb: b,
|
|
1154
|
+
content: k
|
|
1151
1155
|
}, null)), o("div", {
|
|
1152
|
-
class: [
|
|
1156
|
+
class: [B, I.value]
|
|
1153
1157
|
}, [o("div", {
|
|
1154
|
-
class: `${
|
|
1155
|
-
style:
|
|
1156
|
-
}, [
|
|
1158
|
+
class: `${B}-children ${I.value}`,
|
|
1159
|
+
style: x.value
|
|
1160
|
+
}, [g()])])])]
|
|
1157
1161
|
}));
|
|
1158
1162
|
};
|
|
1159
1163
|
}
|
|
@@ -1509,37 +1513,37 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1509
1513
|
}), l = _e(), {
|
|
1510
1514
|
menuData: u,
|
|
1511
1515
|
getPrefixCls: d
|
|
1512
|
-
} = J(),
|
|
1516
|
+
} = J(), f = d({
|
|
1513
1517
|
isPor: !0,
|
|
1514
1518
|
suffixCls: "multi-tab"
|
|
1515
1519
|
}), {
|
|
1516
|
-
wrapSSR:
|
|
1517
|
-
hashId:
|
|
1518
|
-
} = ba(
|
|
1520
|
+
wrapSSR: h,
|
|
1521
|
+
hashId: v
|
|
1522
|
+
} = ba(f), s = ve([]);
|
|
1519
1523
|
le(s, () => {
|
|
1520
1524
|
var y;
|
|
1521
1525
|
(y = e.onChangeTabs) == null || y.call(e, Ee(U(s)));
|
|
1522
1526
|
}, {
|
|
1523
1527
|
deep: !0
|
|
1524
1528
|
});
|
|
1525
|
-
const B = S(() => l.currentRoute.value.fullPath || l.currentRoute.value.path), r = S(() => n.value && !t.value),
|
|
1526
|
-
[`${
|
|
1527
|
-
[`${
|
|
1528
|
-
[`${
|
|
1529
|
-
})),
|
|
1529
|
+
const B = S(() => l.currentRoute.value.fullPath || l.currentRoute.value.path), r = S(() => n.value && !t.value), x = S(() => r.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), M = S(() => bt(`${f}-wrap`, {
|
|
1530
|
+
[`${v.value}`]: !0,
|
|
1531
|
+
[`${f}-wrap-fixed`]: e.isFixedMultiTab,
|
|
1532
|
+
[`${f}-wrap-loading`]: e.loading
|
|
1533
|
+
})), I = S(() => {
|
|
1530
1534
|
const y = {
|
|
1531
1535
|
display: e.visible ? void 0 : "none"
|
|
1532
1536
|
};
|
|
1533
1537
|
return e.isFixedMultiTab ? {
|
|
1534
1538
|
margin: 0,
|
|
1535
|
-
width:
|
|
1539
|
+
width: x.value,
|
|
1536
1540
|
paddingTop: "6px",
|
|
1537
1541
|
zIndex: 99,
|
|
1538
1542
|
...y
|
|
1539
1543
|
} : y;
|
|
1540
|
-
}),
|
|
1544
|
+
}), p = (y) => (y.fullPath || y.path) === B.value, g = (y) => {
|
|
1541
1545
|
if (y.name && y.meta && y.meta.tagHidden !== !0) {
|
|
1542
|
-
const w = y.fullPath || y.path,
|
|
1546
|
+
const w = y.fullPath || y.path, T = s.value.find((P) => P.fullPath === w), R = {
|
|
1543
1547
|
path: y.path,
|
|
1544
1548
|
fullPath: w,
|
|
1545
1549
|
query: y.query,
|
|
@@ -1549,87 +1553,87 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1549
1553
|
...y.meta
|
|
1550
1554
|
}
|
|
1551
1555
|
};
|
|
1552
|
-
|
|
1556
|
+
T ? Object.assign(T, R) : y.meta.tagFixed ? s.value.unshift(R) : s.value.push(R), p(y) && (i.activeKey = w);
|
|
1553
1557
|
}
|
|
1554
|
-
},
|
|
1558
|
+
}, m = (y) => {
|
|
1555
1559
|
y.forEach((w) => {
|
|
1556
|
-
w.meta && w.meta.tagFixed &&
|
|
1560
|
+
w.meta && w.meta.tagFixed && g(w), w.children && m(w.children);
|
|
1557
1561
|
});
|
|
1558
1562
|
};
|
|
1559
1563
|
le(() => u.value, (y) => {
|
|
1560
|
-
|
|
1564
|
+
m(y);
|
|
1561
1565
|
}, {
|
|
1562
1566
|
deep: !0,
|
|
1563
1567
|
immediate: !0
|
|
1564
1568
|
}), le(() => l.currentRoute.value, (y) => {
|
|
1565
|
-
|
|
1569
|
+
g(y);
|
|
1566
1570
|
}, {
|
|
1567
1571
|
deep: !0,
|
|
1568
1572
|
immediate: !0
|
|
1569
1573
|
});
|
|
1570
|
-
const
|
|
1574
|
+
const b = () => {
|
|
1571
1575
|
const y = s.value.slice(-1)[0];
|
|
1572
1576
|
y ? l.push(y) : l.push("/");
|
|
1573
|
-
},
|
|
1574
|
-
const w = s.value.find((
|
|
1575
|
-
s.value = s.value.filter((
|
|
1577
|
+
}, k = async (y) => {
|
|
1578
|
+
const w = s.value.find((T) => y === T.fullPath);
|
|
1579
|
+
s.value = s.value.filter((T) => T.fullPath !== y), w && p(w) && b();
|
|
1576
1580
|
}, C = (y) => {
|
|
1577
|
-
const w = s.value.find((
|
|
1581
|
+
const w = s.value.find((T) => T.fullPath === y);
|
|
1578
1582
|
i.activeKey !== (w == null ? void 0 : w.fullPath) && (w != null && w.fullPath) && l.push(w == null ? void 0 : w.fullPath);
|
|
1579
|
-
},
|
|
1583
|
+
}, O = () => {
|
|
1580
1584
|
var y;
|
|
1581
1585
|
a.value = !0, e.onReloadPage && ((y = e.onReloadPage) == null || y.call(e)), setTimeout(() => {
|
|
1582
1586
|
a.value = !1;
|
|
1583
1587
|
}, 500);
|
|
1584
|
-
}, F = (y) => y.meta && y.meta.tagFixed,
|
|
1585
|
-
const
|
|
1588
|
+
}, F = (y) => y.meta && y.meta.tagFixed, $ = (y) => i[y], D = (y, w) => {
|
|
1589
|
+
const T = s.value.findIndex((R) => R.fullPath === $(w));
|
|
1586
1590
|
switch (y) {
|
|
1587
1591
|
case "closeOthersTabs":
|
|
1588
1592
|
s.value = s.value.filter((R) => {
|
|
1589
1593
|
var P;
|
|
1590
|
-
return R.fullPath ===
|
|
1594
|
+
return R.fullPath === $(w) || ((P = R.meta) == null ? void 0 : P.tagFixed);
|
|
1591
1595
|
});
|
|
1592
1596
|
break;
|
|
1593
1597
|
case "closeLeftTabs":
|
|
1594
|
-
|
|
1598
|
+
T && (s.value = s.value.filter((R, P) => {
|
|
1595
1599
|
var j;
|
|
1596
|
-
return P >=
|
|
1600
|
+
return P >= T || ((j = R.meta) == null ? void 0 : j.tagFixed);
|
|
1597
1601
|
}));
|
|
1598
1602
|
break;
|
|
1599
1603
|
case "closeRightTabs":
|
|
1600
|
-
|
|
1604
|
+
T && (s.value = s.value.filter((R, P) => {
|
|
1601
1605
|
var j;
|
|
1602
|
-
return P <=
|
|
1606
|
+
return P <= T || ((j = R.meta) == null ? void 0 : j.tagFixed);
|
|
1603
1607
|
}));
|
|
1604
1608
|
break;
|
|
1605
1609
|
case "reloadPage":
|
|
1606
|
-
(
|
|
1610
|
+
(T === 0 || T) && i.activeKey === $(w) && O();
|
|
1607
1611
|
break;
|
|
1608
1612
|
}
|
|
1609
|
-
i.activeKey !==
|
|
1613
|
+
i.activeKey !== $(w) && l.push($(w));
|
|
1610
1614
|
}, _ = (y, w) => {
|
|
1611
|
-
const
|
|
1615
|
+
const T = s.value.findIndex((R) => R.fullPath === w);
|
|
1612
1616
|
switch (y) {
|
|
1613
1617
|
case "closeOthersTabs":
|
|
1614
1618
|
return s.value.filter((W, E) => {
|
|
1615
1619
|
var V;
|
|
1616
|
-
return E !==
|
|
1620
|
+
return E !== T && !((V = W.meta) != null && V.tagFixed);
|
|
1617
1621
|
}).length === 0;
|
|
1618
1622
|
case "closeLeftTabs":
|
|
1619
1623
|
return s.value.filter((W, E) => {
|
|
1620
1624
|
var V;
|
|
1621
|
-
return E <
|
|
1625
|
+
return E < T && !((V = W.meta) != null && V.tagFixed);
|
|
1622
1626
|
}).length === 0;
|
|
1623
1627
|
case "closeRightTabs":
|
|
1624
1628
|
return s.value.filter((W, E) => {
|
|
1625
1629
|
var V;
|
|
1626
|
-
return E >
|
|
1630
|
+
return E > T && !((V = W.meta) != null && V.tagFixed);
|
|
1627
1631
|
}).length === 0;
|
|
1628
1632
|
}
|
|
1629
1633
|
}, N = (y) => {
|
|
1630
1634
|
let w;
|
|
1631
1635
|
const {
|
|
1632
|
-
path:
|
|
1636
|
+
path: T,
|
|
1633
1637
|
stateType: R
|
|
1634
1638
|
} = y;
|
|
1635
1639
|
return o(ee, {
|
|
@@ -1639,7 +1643,7 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1639
1643
|
}) => D(P, R)
|
|
1640
1644
|
}, va(w = pa.map((P) => o(Ca, {
|
|
1641
1645
|
key: P.key,
|
|
1642
|
-
disabled: _(P.key,
|
|
1646
|
+
disabled: _(P.key, T)
|
|
1643
1647
|
}, {
|
|
1644
1648
|
default: () => [P.label]
|
|
1645
1649
|
}))) ? w : {
|
|
@@ -1655,36 +1659,36 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1655
1659
|
path: (w == null ? void 0 : w.fullPath) || "",
|
|
1656
1660
|
stateType: "contextMenuActiveKey"
|
|
1657
1661
|
}, null),
|
|
1658
|
-
onOpenChange: (
|
|
1659
|
-
i.contextMenuActiveKey =
|
|
1662
|
+
onOpenChange: (T) => {
|
|
1663
|
+
i.contextMenuActiveKey = T && w.fullPath || "";
|
|
1660
1664
|
}
|
|
1661
1665
|
}, {
|
|
1662
1666
|
default: () => {
|
|
1663
|
-
var
|
|
1667
|
+
var T;
|
|
1664
1668
|
return [o("div", {
|
|
1665
|
-
class: [`${
|
|
1666
|
-
}, [(
|
|
1667
|
-
class: [`${
|
|
1669
|
+
class: [`${f}-title`, v.value]
|
|
1670
|
+
}, [(T = w.meta) == null ? void 0 : T.title, i.activeKey === w.fullPath && o(sn, {
|
|
1671
|
+
class: [`${f}-reload-btn`, v.value],
|
|
1668
1672
|
spin: a.value,
|
|
1669
1673
|
onClick: (R) => {
|
|
1670
|
-
R.stopPropagation(), !a.value &&
|
|
1674
|
+
R.stopPropagation(), !a.value && O();
|
|
1671
1675
|
}
|
|
1672
1676
|
}, null), s.value.length > 1 && !F(w) && o(gt, {
|
|
1673
|
-
class: [`${
|
|
1677
|
+
class: [`${f}-close-btn`, v.value],
|
|
1674
1678
|
onClick: (R) => {
|
|
1675
|
-
R.stopPropagation(), !a.value &&
|
|
1679
|
+
R.stopPropagation(), !a.value && k((w == null ? void 0 : w.fullPath) || "");
|
|
1676
1680
|
}
|
|
1677
1681
|
}, null)])];
|
|
1678
1682
|
}
|
|
1679
1683
|
});
|
|
1680
1684
|
};
|
|
1681
|
-
return () =>
|
|
1682
|
-
class: [`${
|
|
1685
|
+
return () => h(o(q, null, [!!e.isFixedMultiTab && Vt(o("div", {
|
|
1686
|
+
class: [`${f}-fixed`, v.value]
|
|
1683
1687
|
}, null), [[At, e.visible]]), o(He, {
|
|
1684
1688
|
hideAdd: !0,
|
|
1685
1689
|
type: "editable-card",
|
|
1686
|
-
style:
|
|
1687
|
-
class:
|
|
1690
|
+
style: I.value,
|
|
1691
|
+
class: M.value,
|
|
1688
1692
|
activeKey: i.activeKey,
|
|
1689
1693
|
onTabClick: C
|
|
1690
1694
|
}, {
|
|
@@ -1702,7 +1706,7 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1702
1706
|
}, null)
|
|
1703
1707
|
}, {
|
|
1704
1708
|
default: () => [o(rn, {
|
|
1705
|
-
class: [`${
|
|
1709
|
+
class: [`${f}-dropdown-menu-btn`, v.value],
|
|
1706
1710
|
rotate: 90
|
|
1707
1711
|
}, null)]
|
|
1708
1712
|
})
|
|
@@ -1714,31 +1718,31 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1714
1718
|
slots: t,
|
|
1715
1719
|
attrs: n
|
|
1716
1720
|
}) => {
|
|
1717
|
-
var
|
|
1721
|
+
var M;
|
|
1718
1722
|
const {
|
|
1719
1723
|
hashId: a,
|
|
1720
1724
|
prefixCls: i,
|
|
1721
1725
|
isMobile: l,
|
|
1722
1726
|
loading: u,
|
|
1723
1727
|
collapsed: d,
|
|
1724
|
-
siderWidth:
|
|
1725
|
-
isShowTabsBar:
|
|
1726
|
-
isFixedMultiTab:
|
|
1728
|
+
siderWidth: f,
|
|
1729
|
+
isShowTabsBar: h,
|
|
1730
|
+
isFixedMultiTab: v,
|
|
1727
1731
|
onReloadPage: s,
|
|
1728
1732
|
onChangeTabs: B
|
|
1729
1733
|
} = e;
|
|
1730
1734
|
if (e.isChildrenLayout)
|
|
1731
|
-
return (
|
|
1735
|
+
return (M = t.default) == null ? void 0 : M.call(t);
|
|
1732
1736
|
const {
|
|
1733
1737
|
flatMenuData: r,
|
|
1734
|
-
layout:
|
|
1738
|
+
layout: x
|
|
1735
1739
|
} = J();
|
|
1736
1740
|
return o(q, null, [o(wa, {
|
|
1737
|
-
visible: (U(
|
|
1741
|
+
visible: (U(x) === "mix" ? U(r).length > 0 : !0) && h,
|
|
1738
1742
|
isMobile: l,
|
|
1739
1743
|
loading: u,
|
|
1740
|
-
isFixedMultiTab:
|
|
1741
|
-
siderWidth:
|
|
1744
|
+
isFixedMultiTab: v,
|
|
1745
|
+
siderWidth: f,
|
|
1742
1746
|
collapsed: d,
|
|
1743
1747
|
onReloadPage: s,
|
|
1744
1748
|
onChangeTabs: B
|
|
@@ -1747,13 +1751,13 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1747
1751
|
class: [`${i}-content`]
|
|
1748
1752
|
}, {
|
|
1749
1753
|
default: () => {
|
|
1750
|
-
var
|
|
1754
|
+
var I;
|
|
1751
1755
|
return [u && o(Mn, null, null), o("div", {
|
|
1752
1756
|
class: [`${i}-content-spin-container`, a],
|
|
1753
1757
|
style: {
|
|
1754
1758
|
opacity: u ? "0" : void 0
|
|
1755
1759
|
}
|
|
1756
|
-
}, [(
|
|
1760
|
+
}, [(I = t.default) == null ? void 0 : I.call(t)])];
|
|
1757
1761
|
}
|
|
1758
1762
|
})]);
|
|
1759
1763
|
};
|
|
@@ -1886,14 +1890,14 @@ function Ra(e, t) {
|
|
|
1886
1890
|
Oa(l);
|
|
1887
1891
|
}
|
|
1888
1892
|
function d() {
|
|
1889
|
-
var
|
|
1893
|
+
var f = Date.now();
|
|
1890
1894
|
if (n) {
|
|
1891
|
-
if (
|
|
1895
|
+
if (f - i < Ma)
|
|
1892
1896
|
return;
|
|
1893
1897
|
a = !0;
|
|
1894
1898
|
} else
|
|
1895
1899
|
n = !0, a = !1, setTimeout(u, t);
|
|
1896
|
-
i =
|
|
1900
|
+
i = f;
|
|
1897
1901
|
}
|
|
1898
1902
|
return d;
|
|
1899
1903
|
}
|
|
@@ -1977,12 +1981,12 @@ function La(e) {
|
|
|
1977
1981
|
var t = e.clientWidth, n = e.clientHeight;
|
|
1978
1982
|
if (!t && !n)
|
|
1979
1983
|
return Ft;
|
|
1980
|
-
var a = re(e).getComputedStyle(e), i = Fa(a), l = i.left + i.right, u = i.top + i.bottom, d = Se(a.width),
|
|
1981
|
-
if (a.boxSizing === "border-box" && (Math.round(d + l) !== t && (d -= it(a, "left", "right") + l), Math.round(
|
|
1982
|
-
var
|
|
1983
|
-
Math.abs(
|
|
1984
|
+
var a = re(e).getComputedStyle(e), i = Fa(a), l = i.left + i.right, u = i.top + i.bottom, d = Se(a.width), f = Se(a.height);
|
|
1985
|
+
if (a.boxSizing === "border-box" && (Math.round(d + l) !== t && (d -= it(a, "left", "right") + l), Math.round(f + u) !== n && (f -= it(a, "top", "bottom") + u)), !za(e)) {
|
|
1986
|
+
var h = Math.round(d + l) - t, v = Math.round(f + u) - n;
|
|
1987
|
+
Math.abs(h) !== 1 && (d -= h), Math.abs(v) !== 1 && (f -= v);
|
|
1984
1988
|
}
|
|
1985
|
-
return Re(i.left, i.top, d,
|
|
1989
|
+
return Re(i.left, i.top, d, f);
|
|
1986
1990
|
}
|
|
1987
1991
|
var Da = function() {
|
|
1988
1992
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
@@ -2138,54 +2142,54 @@ const ja = (e) => {
|
|
|
2138
2142
|
let i = null, l = null;
|
|
2139
2143
|
const u = () => {
|
|
2140
2144
|
l && (l.disconnect(), l = null);
|
|
2141
|
-
}, d = (
|
|
2145
|
+
}, d = (v) => {
|
|
2142
2146
|
const {
|
|
2143
2147
|
onResize: s
|
|
2144
|
-
} = e, B =
|
|
2148
|
+
} = e, B = v[0].target, {
|
|
2145
2149
|
width: r,
|
|
2146
|
-
height:
|
|
2150
|
+
height: x
|
|
2147
2151
|
} = B.getBoundingClientRect(), {
|
|
2148
|
-
offsetWidth:
|
|
2149
|
-
offsetHeight:
|
|
2150
|
-
} = B,
|
|
2151
|
-
if (a.width !==
|
|
2152
|
-
const
|
|
2153
|
-
width:
|
|
2154
|
-
height:
|
|
2155
|
-
offsetWidth:
|
|
2156
|
-
offsetHeight:
|
|
2152
|
+
offsetWidth: M,
|
|
2153
|
+
offsetHeight: I
|
|
2154
|
+
} = B, p = Math.floor(r), g = Math.floor(x);
|
|
2155
|
+
if (a.width !== p || a.height !== g || a.offsetWidth !== M || a.offsetHeight !== I) {
|
|
2156
|
+
const m = {
|
|
2157
|
+
width: p,
|
|
2158
|
+
height: g,
|
|
2159
|
+
offsetWidth: M,
|
|
2160
|
+
offsetHeight: I
|
|
2157
2161
|
};
|
|
2158
|
-
ue(a,
|
|
2159
|
-
s(ue(ue({},
|
|
2160
|
-
offsetWidth:
|
|
2161
|
-
offsetHeight:
|
|
2162
|
+
ue(a, m), s && Promise.resolve().then(() => {
|
|
2163
|
+
s(ue(ue({}, m), {
|
|
2164
|
+
offsetWidth: M,
|
|
2165
|
+
offsetHeight: I
|
|
2162
2166
|
}), B);
|
|
2163
2167
|
});
|
|
2164
2168
|
}
|
|
2165
|
-
},
|
|
2169
|
+
}, f = Et(), h = () => {
|
|
2166
2170
|
const {
|
|
2167
|
-
disabled:
|
|
2171
|
+
disabled: v
|
|
2168
2172
|
} = e;
|
|
2169
|
-
if (
|
|
2173
|
+
if (v) {
|
|
2170
2174
|
u();
|
|
2171
2175
|
return;
|
|
2172
2176
|
}
|
|
2173
|
-
const s = ja(
|
|
2177
|
+
const s = ja(f);
|
|
2174
2178
|
s !== i && (u(), i = s), !l && s && (l = new Ea(d), l.observe(s));
|
|
2175
2179
|
};
|
|
2176
2180
|
return jt(() => {
|
|
2177
|
-
|
|
2181
|
+
h();
|
|
2178
2182
|
}), Wt(() => {
|
|
2179
|
-
|
|
2183
|
+
h();
|
|
2180
2184
|
}), Kt(() => {
|
|
2181
2185
|
u();
|
|
2182
2186
|
}), le(() => e.disabled, () => {
|
|
2183
|
-
|
|
2187
|
+
h();
|
|
2184
2188
|
}, {
|
|
2185
2189
|
flush: "post"
|
|
2186
2190
|
}), () => {
|
|
2187
|
-
var
|
|
2188
|
-
return (
|
|
2191
|
+
var v;
|
|
2192
|
+
return (v = n.default) === null || v === void 0 ? void 0 : v.call(n)[0];
|
|
2189
2193
|
};
|
|
2190
2194
|
}
|
|
2191
2195
|
}), Ka = (e) => ({
|
|
@@ -2312,32 +2316,32 @@ const ja = (e) => {
|
|
|
2312
2316
|
openKeys: u,
|
|
2313
2317
|
selectedKeys: d
|
|
2314
2318
|
} = J(), {
|
|
2315
|
-
width:
|
|
2316
|
-
} = Sn(),
|
|
2319
|
+
width: f
|
|
2320
|
+
} = Sn(), h = l({
|
|
2317
2321
|
suffixCls: "global-header",
|
|
2318
2322
|
isPor: !0
|
|
2319
2323
|
}), {
|
|
2320
|
-
wrapSSR:
|
|
2324
|
+
wrapSSR: v,
|
|
2321
2325
|
hashId: s
|
|
2322
|
-
} = Z("ProGlobalHeader", [Ka],
|
|
2326
|
+
} = Z("ProGlobalHeader", [Ka], h), B = S(() => ({
|
|
2323
2327
|
[`${s.value}`]: !0,
|
|
2324
|
-
[`${
|
|
2325
|
-
[`${
|
|
2326
|
-
})), r = (
|
|
2327
|
-
var
|
|
2328
|
+
[`${h}`]: !0,
|
|
2329
|
+
[`${h}-${e.layout}`]: !0
|
|
2330
|
+
})), r = (p) => {
|
|
2331
|
+
var g;
|
|
2328
2332
|
if (a.currentRoute) {
|
|
2329
|
-
const
|
|
2330
|
-
e.onSelect &&
|
|
2333
|
+
const m = a.currentRoute.value.matched.concat();
|
|
2334
|
+
e.onSelect && p === "select" && e.onSelect(m.filter((b) => b.name !== "index").map((b) => b.path)), e.onOpenKeys && p === "openKeys" && ((g = e.onOpenKeys) == null || g.call(e, m.filter((b) => b.path !== a.currentRoute.value.path).map((b) => b.path)));
|
|
2331
2335
|
}
|
|
2332
|
-
},
|
|
2336
|
+
}, x = () => {
|
|
2333
2337
|
n("collapse", !e.collapsed);
|
|
2334
|
-
},
|
|
2335
|
-
var
|
|
2338
|
+
}, M = S(() => e.collapsedButtonRender || It), I = () => {
|
|
2339
|
+
var p;
|
|
2336
2340
|
return o(q, null, [e.layout === "mix" && !e.isMobile && e.splitMenus ? o("div", {
|
|
2337
2341
|
style: {
|
|
2338
2342
|
flex: 1
|
|
2339
2343
|
},
|
|
2340
|
-
class: [`${
|
|
2344
|
+
class: [`${h}-menu`, s.value]
|
|
2341
2345
|
}, [o(Ne, {
|
|
2342
2346
|
theme: {
|
|
2343
2347
|
components: {
|
|
@@ -2377,36 +2381,36 @@ const ja = (e) => {
|
|
|
2377
2381
|
style: {
|
|
2378
2382
|
flex: 1
|
|
2379
2383
|
}
|
|
2380
|
-
}, [(
|
|
2384
|
+
}, [(p = t.default) == null ? void 0 : p.call(t)]), e.layout !== "simple" && o(Xa, X(e, {
|
|
2381
2385
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
2382
2386
|
rightContentRender: e.rightContentRender
|
|
2383
2387
|
}), null)]);
|
|
2384
2388
|
};
|
|
2385
2389
|
return () => {
|
|
2386
|
-
const
|
|
2390
|
+
const p = o("span", {
|
|
2387
2391
|
key: "logo",
|
|
2388
2392
|
onClick: () => {
|
|
2389
|
-
var
|
|
2390
|
-
return (
|
|
2393
|
+
var g;
|
|
2394
|
+
return (g = e.onMenuHeaderClick) == null ? void 0 : g.call(e);
|
|
2391
2395
|
},
|
|
2392
|
-
class: [`${
|
|
2396
|
+
class: [`${h}-logo`, e.isMobile ? "mobile" : "", s.value]
|
|
2393
2397
|
}, [o("a", null, [St(e.logo)])]);
|
|
2394
|
-
return
|
|
2398
|
+
return v(o("div", {
|
|
2395
2399
|
class: B.value
|
|
2396
|
-
}, [e.isMobile ? o(q, null, [Ua(e.menuHeaderRender,
|
|
2397
|
-
class: `${
|
|
2398
|
-
onClick:
|
|
2399
|
-
}, [U(
|
|
2400
|
+
}, [e.isMobile ? o(q, null, [Ua(e.menuHeaderRender, p), e.isMobile && U(M) && o("span", {
|
|
2401
|
+
class: `${h}-collapsed-button ${s.value}`,
|
|
2402
|
+
onClick: x
|
|
2403
|
+
}, [U(M)(e.collapsed)]), I()]) : e.layout === "mix" || e.layout === "wide" ? o(q, null, [o("div", {
|
|
2400
2404
|
style: {
|
|
2401
2405
|
width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
|
|
2402
|
-
padding: e.layout === "wide" &&
|
|
2406
|
+
padding: e.layout === "wide" && f.value < e.wideWidth ? "0 50px" : void 0
|
|
2403
2407
|
},
|
|
2404
|
-
class: `${
|
|
2408
|
+
class: `${h}-main ${s.value}`
|
|
2405
2409
|
}, [o("div", {
|
|
2406
|
-
class: `${
|
|
2410
|
+
class: `${h}-main-left ${s.value}`
|
|
2407
2411
|
}, [o(Xe, X(e, {
|
|
2408
2412
|
renderKey: "headerTitleRender"
|
|
2409
|
-
}), null)]),
|
|
2413
|
+
}), null)]), I()])]) : I()]));
|
|
2410
2414
|
};
|
|
2411
2415
|
}
|
|
2412
2416
|
});
|
|
@@ -2428,54 +2432,54 @@ const {
|
|
|
2428
2432
|
onCollapse: u,
|
|
2429
2433
|
splitMenus: d
|
|
2430
2434
|
} = Ie(e), {
|
|
2431
|
-
getPrefixCls:
|
|
2432
|
-
menuData:
|
|
2433
|
-
} = J(),
|
|
2435
|
+
getPrefixCls: f,
|
|
2436
|
+
menuData: h
|
|
2437
|
+
} = J(), v = f({
|
|
2434
2438
|
suffixCls: "header",
|
|
2435
2439
|
isPor: !0
|
|
2436
|
-
}), s =
|
|
2440
|
+
}), s = f({
|
|
2437
2441
|
suffixCls: "fixed-header",
|
|
2438
2442
|
isPor: !0
|
|
2439
2443
|
}), {
|
|
2440
2444
|
wrapSSR: B,
|
|
2441
2445
|
hashId: r
|
|
2442
|
-
} = Z("ProLayoutHeader", [Ia],
|
|
2446
|
+
} = Z("ProLayoutHeader", [Ia], v), x = S(() => l.value === "wide"), M = S(() => a.value), I = S(() => l.value === "mix" || x.value), p = S(() => l.value === "side" || l.value === "simple"), g = S(() => p.value && "light" || t.value), m = S(() => ({
|
|
2443
2447
|
[`${r.value}`]: !0,
|
|
2444
|
-
[`${
|
|
2445
|
-
[`${
|
|
2446
|
-
[`${s}`]:
|
|
2447
|
-
})),
|
|
2448
|
-
const
|
|
2449
|
-
theme:
|
|
2448
|
+
[`${v}-${g.value}`]: !0,
|
|
2449
|
+
[`${v}`]: !0,
|
|
2450
|
+
[`${s}`]: M.value
|
|
2451
|
+
})), b = S(() => M.value && !n.value), k = S(() => d.value ? h.value && Ln(h.value) || [] : []), C = S(() => p.value && b.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), O = S(() => M.value ? 0 : void 0), F = () => {
|
|
2452
|
+
const $ = o(Ga, X(e, {
|
|
2453
|
+
theme: g.value,
|
|
2450
2454
|
mode: "horizontal",
|
|
2451
2455
|
onCollapse: u.value,
|
|
2452
|
-
menuData:
|
|
2456
|
+
menuData: k.value
|
|
2453
2457
|
}), {
|
|
2454
|
-
default: () => [
|
|
2458
|
+
default: () => [I.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
|
|
2455
2459
|
});
|
|
2456
|
-
return e.headerRender ? e.headerRender(e,
|
|
2460
|
+
return e.headerRender ? e.headerRender(e, $) : $;
|
|
2457
2461
|
};
|
|
2458
2462
|
return () => {
|
|
2459
|
-
let
|
|
2460
|
-
return B(o(q, null, [
|
|
2461
|
-
theme:
|
|
2463
|
+
let $;
|
|
2464
|
+
return B(o(q, null, [M.value && !x.value && o(lt, {
|
|
2465
|
+
theme: g.value,
|
|
2462
2466
|
style: {
|
|
2463
2467
|
height: `${i.value}px`,
|
|
2464
2468
|
lineHeight: `${i.value}px`,
|
|
2465
2469
|
background: "transparent"
|
|
2466
2470
|
}
|
|
2467
2471
|
}, null), o(lt, {
|
|
2468
|
-
theme:
|
|
2469
|
-
class:
|
|
2472
|
+
theme: g.value,
|
|
2473
|
+
class: m.value,
|
|
2470
2474
|
style: {
|
|
2471
2475
|
height: `${i.value}px`,
|
|
2472
2476
|
lineHeight: `${i.value}px`,
|
|
2473
2477
|
width: C.value,
|
|
2474
|
-
zIndex:
|
|
2475
|
-
right:
|
|
2478
|
+
zIndex: p.value ? 100 : 101,
|
|
2479
|
+
right: O.value
|
|
2476
2480
|
}
|
|
2477
|
-
}, Ya(
|
|
2478
|
-
default: () => [
|
|
2481
|
+
}, Ya($ = F()) ? $ : {
|
|
2482
|
+
default: () => [$]
|
|
2479
2483
|
})]));
|
|
2480
2484
|
};
|
|
2481
2485
|
}
|
|
@@ -2501,62 +2505,62 @@ const {
|
|
|
2501
2505
|
} = Z("ProLayout", [ha, ga], n), l = Cn(), {
|
|
2502
2506
|
token: u
|
|
2503
2507
|
} = Me(), d = S(() => {
|
|
2504
|
-
var
|
|
2505
|
-
return (
|
|
2508
|
+
var g;
|
|
2509
|
+
return (g = u == null ? void 0 : u.value) == null ? void 0 : g.colorPrimary;
|
|
2506
2510
|
});
|
|
2507
2511
|
Ut(() => {
|
|
2508
2512
|
d.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", d.value);
|
|
2509
2513
|
});
|
|
2510
|
-
const
|
|
2514
|
+
const f = S(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), h = S(() => e.layout === "wide"), v = S(() => f.value), s = S(() => e.collapsed ? e.collapsedWidth : e.siderWidth), B = S(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), r = S(() => (l.value === "sm" || l.value === "xs") && !e.disableMobile && !h.value), x = ze({
|
|
2511
2515
|
position: "relative"
|
|
2512
2516
|
});
|
|
2513
|
-
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (
|
|
2514
|
-
const
|
|
2515
|
-
matchMenuKeys:
|
|
2516
|
-
}), null),
|
|
2517
|
+
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (x.minHeight = 0);
|
|
2518
|
+
const M = (g, m) => g.headerRender === !1 || g.pure ? null : o(Pe, X(g, {
|
|
2519
|
+
matchMenuKeys: m || []
|
|
2520
|
+
}), null), I = S(() => ({
|
|
2517
2521
|
...e.breadcrumb,
|
|
2518
2522
|
itemRender: K(t, e, "breadcrumbRender")
|
|
2519
|
-
})),
|
|
2523
|
+
})), p = S(() => v.value && e.selectedKeys ? Dn(e.menuData, e.selectedKeys[0]) : []);
|
|
2520
2524
|
return jn({
|
|
2521
2525
|
getPrefixCls: ce,
|
|
2522
2526
|
...ae(Ie(e), ["layout", "waterMark", "menuData", "openKeys", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader"].concat(Object.keys(me))),
|
|
2523
2527
|
theme: B.value,
|
|
2524
|
-
hasContentWide:
|
|
2528
|
+
hasContentWide: h,
|
|
2525
2529
|
isMobile: r,
|
|
2526
2530
|
siderWidth: s,
|
|
2527
|
-
breadcrumb:
|
|
2528
|
-
flatMenuData:
|
|
2529
|
-
hasSide:
|
|
2530
|
-
flatMenu:
|
|
2531
|
+
breadcrumb: I,
|
|
2532
|
+
flatMenuData: p,
|
|
2533
|
+
hasSide: f,
|
|
2534
|
+
flatMenu: v,
|
|
2531
2535
|
pageHeaderRender: S(() => K(t, e, "pageHeaderRender"))
|
|
2532
2536
|
}), () => {
|
|
2533
2537
|
var V;
|
|
2534
|
-
const
|
|
2538
|
+
const g = K(t, e, "collapsedButtonRender"), m = K(t, e, "headerContentRender"), b = K(t, e, "rightContentRender"), k = K(t, e, "headerRender"), C = K(t, e, "footerRender"), O = K(t, e, "links"), F = K(t, e, "copyrightRender"), $ = K(t, e, "extraRightDropdownRender"), D = K(t, e, "menuHeaderRender"), _ = K(t, e, "menuExtraRender"), N = K(t, e, "menuContentRender"), z = K(t, e, "menuFooterRender"), y = K(t, e, "menuItemRender"), w = K(t, e, "subMenuItemRender"), T = {
|
|
2535
2539
|
menuItemRender: y,
|
|
2536
2540
|
subMenuItemRender: w
|
|
2537
|
-
}, R = S(() =>
|
|
2541
|
+
}, R = S(() => M({
|
|
2538
2542
|
...e,
|
|
2539
|
-
|
|
2540
|
-
hasSiderMenu:
|
|
2543
|
+
...T,
|
|
2544
|
+
hasSiderMenu: f.value,
|
|
2541
2545
|
menuData: e.menuData,
|
|
2542
2546
|
isMobile: U(r),
|
|
2543
|
-
rightContentRender:
|
|
2544
|
-
extraRightDropdownRender:
|
|
2547
|
+
rightContentRender: b,
|
|
2548
|
+
extraRightDropdownRender: $,
|
|
2545
2549
|
headerTitleRender: D,
|
|
2546
|
-
headerContentRender:
|
|
2547
|
-
headerRender:
|
|
2550
|
+
headerContentRender: m,
|
|
2551
|
+
headerRender: k,
|
|
2548
2552
|
theme: B.value
|
|
2549
2553
|
}, e.matchMenuKeys)), P = S(() => ({
|
|
2550
2554
|
[`${i.value}`]: !0,
|
|
2551
2555
|
[`${n}`]: !0,
|
|
2552
2556
|
[`${n}-${e.layout}`]: !0
|
|
2553
|
-
})), j = S(() =>
|
|
2557
|
+
})), j = S(() => h.value ? {
|
|
2554
2558
|
minWidth: `${e.wideWidth}px`
|
|
2555
|
-
} : void 0), W = S(() =>
|
|
2559
|
+
} : void 0), W = S(() => h.value ? {
|
|
2556
2560
|
width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
|
|
2557
2561
|
paddingTop: `${e.headerHeight + 20}px`,
|
|
2558
|
-
margin:
|
|
2559
|
-
} : void 0), E = S(() =>
|
|
2562
|
+
margin: h.value ? "0 auto" : void 0
|
|
2563
|
+
} : void 0), E = S(() => h.value ? {
|
|
2560
2564
|
minHeight: "835px"
|
|
2561
2565
|
} : {});
|
|
2562
2566
|
return a(o(q, null, [e.pure ? (V = t.default) == null ? void 0 : V.call(t) : o("div", {
|
|
@@ -2566,16 +2570,16 @@ const {
|
|
|
2566
2570
|
style: W.value
|
|
2567
2571
|
}, {
|
|
2568
2572
|
default: () => [o($e, X(je(e, ["pure", "theme"]), {
|
|
2569
|
-
links:
|
|
2573
|
+
links: O,
|
|
2570
2574
|
theme: B.value,
|
|
2571
2575
|
isMobile: r.value,
|
|
2572
2576
|
menuHeaderRender: D,
|
|
2573
2577
|
menuContentRender: N,
|
|
2574
2578
|
menuExtraRender: _,
|
|
2575
2579
|
menuFooterRender: z,
|
|
2576
|
-
collapsedButtonRender:
|
|
2580
|
+
collapsedButtonRender: g
|
|
2577
2581
|
}), null), o(de, {
|
|
2578
|
-
style:
|
|
2582
|
+
style: x
|
|
2579
2583
|
}, {
|
|
2580
2584
|
default: () => [R.value, o(Ye, X({
|
|
2581
2585
|
hashId: i.value,
|
|
@@ -3034,19 +3038,19 @@ const no = /* @__PURE__ */ H({
|
|
|
3034
3038
|
hashId: u
|
|
3035
3039
|
} = Z("ProThemeEditor", [eo], i), {
|
|
3036
3040
|
token: d
|
|
3037
|
-
} = Me(),
|
|
3041
|
+
} = Me(), f = S(() => {
|
|
3038
3042
|
var r;
|
|
3039
3043
|
return (r = d.value) == null ? void 0 : r.layout;
|
|
3040
|
-
}),
|
|
3041
|
-
var r,
|
|
3044
|
+
}), h = S(() => {
|
|
3045
|
+
var r, x, M, I, p, g, m, b, k, C, O, F, $, D, _, N, z, y, w, T, R, P, j, W, E;
|
|
3042
3046
|
return [{
|
|
3043
3047
|
key: "colorBgMenu",
|
|
3044
3048
|
title: "全部背景",
|
|
3045
|
-
disabled: ((r = e.settingValue) == null ? void 0 : r.theme) === "dark" && ["mix", "wide"].includes((
|
|
3049
|
+
disabled: ((r = e.settingValue) == null ? void 0 : r.theme) === "dark" && ["mix", "wide"].includes((x = e.settingValue) == null ? void 0 : x.layout)
|
|
3046
3050
|
}, {
|
|
3047
3051
|
key: "colorDarkBgMenu",
|
|
3048
3052
|
title: "全部背景",
|
|
3049
|
-
disabled: ((
|
|
3053
|
+
disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["side", "simple"].includes((p = e.settingValue) == null ? void 0 : p.layout)
|
|
3050
3054
|
}, {
|
|
3051
3055
|
key: "colorSubItemBg",
|
|
3052
3056
|
title: "子菜单背景",
|
|
@@ -3058,19 +3062,19 @@ const no = /* @__PURE__ */ H({
|
|
|
3058
3062
|
}, {
|
|
3059
3063
|
key: "colorBgMenuItemSelected",
|
|
3060
3064
|
title: "菜单选中背景",
|
|
3061
|
-
disabled: ((
|
|
3065
|
+
disabled: ((g = e.settingValue) == null ? void 0 : g.theme) === "dark" && ["mix", "wide"].includes((m = e.settingValue) == null ? void 0 : m.layout)
|
|
3062
3066
|
}, {
|
|
3063
3067
|
key: "colorDarkBgMenuItemSelected",
|
|
3064
3068
|
title: "菜单选中背景",
|
|
3065
|
-
disabled: ((
|
|
3069
|
+
disabled: ((b = e.settingValue) == null ? void 0 : b.theme) === "light" || ((k = e.settingValue) == null ? void 0 : k.theme) === "dark" && ["side", "simple"].includes((C = e.settingValue) == null ? void 0 : C.layout)
|
|
3066
3070
|
}, {
|
|
3067
3071
|
key: "colorTextMenu",
|
|
3068
3072
|
title: "菜单文字颜色",
|
|
3069
|
-
disabled: ((
|
|
3073
|
+
disabled: ((O = e.settingValue) == null ? void 0 : O.theme) === "dark" && ["mix", "wide"].includes((F = e.settingValue) == null ? void 0 : F.layout)
|
|
3070
3074
|
}, {
|
|
3071
3075
|
key: "colorDarkTextMenu",
|
|
3072
3076
|
title: "菜单文字颜色",
|
|
3073
|
-
disabled: ((
|
|
3077
|
+
disabled: (($ = e.settingValue) == null ? void 0 : $.theme) === "light" || ((D = e.settingValue) == null ? void 0 : D.theme) === "dark" && ["side", "simple"].includes((_ = e.settingValue) == null ? void 0 : _.layout)
|
|
3074
3078
|
}, {
|
|
3075
3079
|
key: "colorTextMenuHover",
|
|
3076
3080
|
title: "菜单文字移入颜色",
|
|
@@ -3078,7 +3082,7 @@ const no = /* @__PURE__ */ H({
|
|
|
3078
3082
|
}, {
|
|
3079
3083
|
key: "colorDarkTextMenuHover",
|
|
3080
3084
|
title: "菜单文字移入颜色",
|
|
3081
|
-
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "light" || ((w = e.settingValue) == null ? void 0 : w.theme) === "dark" && ["side", "simple"].includes((
|
|
3085
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "light" || ((w = e.settingValue) == null ? void 0 : w.theme) === "dark" && ["side", "simple"].includes((T = e.settingValue) == null ? void 0 : T.layout)
|
|
3082
3086
|
}, {
|
|
3083
3087
|
key: "colorTextMenuSelected",
|
|
3084
3088
|
title: "菜单文字选中颜色",
|
|
@@ -3088,32 +3092,32 @@ const no = /* @__PURE__ */ H({
|
|
|
3088
3092
|
title: "菜单文字选中颜色",
|
|
3089
3093
|
disabled: ((j = e.settingValue) == null ? void 0 : j.theme) === "light" || ((W = e.settingValue) == null ? void 0 : W.theme) === "dark" && ["side", "simple"].includes((E = e.settingValue) == null ? void 0 : E.layout)
|
|
3090
3094
|
}];
|
|
3091
|
-
}),
|
|
3092
|
-
var r,
|
|
3095
|
+
}), v = S(() => {
|
|
3096
|
+
var r, x, M, I, p, g, m, b, k, C, O, F, $, D, _, N, z, y, w, T, R, P, j, W, E, V, G, fe, qe, Ze, Je, Qe;
|
|
3093
3097
|
return [{
|
|
3094
3098
|
key: "colorBgMenu",
|
|
3095
3099
|
title: "全部背景",
|
|
3096
|
-
disabled: ((r = e.settingValue) == null ? void 0 : r.theme) === "dark" && ["side", "simple"].includes((
|
|
3100
|
+
disabled: ((r = e.settingValue) == null ? void 0 : r.theme) === "dark" && ["side", "simple"].includes((x = e.settingValue) == null ? void 0 : x.layout)
|
|
3097
3101
|
}, {
|
|
3098
3102
|
key: "colorDarkBgMenu",
|
|
3099
3103
|
title: "全部背景",
|
|
3100
|
-
disabled: ((
|
|
3104
|
+
disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["mix", "wide"].includes((p = e.settingValue) == null ? void 0 : p.layout)
|
|
3101
3105
|
}, {
|
|
3102
3106
|
key: "colorSubItemBg",
|
|
3103
3107
|
title: "子菜单背景",
|
|
3104
|
-
disabled: ((
|
|
3108
|
+
disabled: ((g = e.settingValue) == null ? void 0 : g.theme) === "dark" && ["side", "simple"].includes((m = e.settingValue) == null ? void 0 : m.layout)
|
|
3105
3109
|
}, {
|
|
3106
3110
|
key: "colorDarkSubItemBg",
|
|
3107
3111
|
title: "子菜单背景",
|
|
3108
|
-
disabled: ((
|
|
3112
|
+
disabled: ((b = e.settingValue) == null ? void 0 : b.theme) === "light" || ((k = e.settingValue) == null ? void 0 : k.theme) === "dark" && ["mix", "wide"].includes((C = e.settingValue) == null ? void 0 : C.layout)
|
|
3109
3113
|
}, {
|
|
3110
3114
|
key: "colorBgMenuItemHover",
|
|
3111
3115
|
title: "菜单移入背景",
|
|
3112
|
-
disabled: ((
|
|
3116
|
+
disabled: ((O = e.settingValue) == null ? void 0 : O.theme) === "dark" && ((F = e.settingValue) == null ? void 0 : F.layout) !== "mix"
|
|
3113
3117
|
}, {
|
|
3114
3118
|
key: "colorBgMenuItemSelected",
|
|
3115
3119
|
title: "菜单选中背景",
|
|
3116
|
-
disabled: ((
|
|
3120
|
+
disabled: (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ((D = e.settingValue) == null ? void 0 : D.layout) !== "mix"
|
|
3117
3121
|
}, {
|
|
3118
3122
|
key: "colorDarkBgMenuItemSelected",
|
|
3119
3123
|
title: "菜单选中背景",
|
|
@@ -3125,7 +3129,7 @@ const no = /* @__PURE__ */ H({
|
|
|
3125
3129
|
}, {
|
|
3126
3130
|
key: "colorDarkTextMenu",
|
|
3127
3131
|
title: "菜单文字颜色",
|
|
3128
|
-
disabled: ((
|
|
3132
|
+
disabled: ((T = e.settingValue) == null ? void 0 : T.theme) === "light" || ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["mix", "wide"].includes((P = e.settingValue) == null ? void 0 : P.layout)
|
|
3129
3133
|
}, {
|
|
3130
3134
|
key: "colorTextMenuHover",
|
|
3131
3135
|
title: "菜单文字移入颜色",
|
|
@@ -3143,12 +3147,12 @@ const no = /* @__PURE__ */ H({
|
|
|
3143
3147
|
title: "菜单文字选中颜色",
|
|
3144
3148
|
disabled: ((Ze = e.settingValue) == null ? void 0 : Ze.theme) === "light" || ((Je = e.settingValue) == null ? void 0 : Je.theme) === "dark" && ["mix", "wide"].includes((Qe = e.settingValue) == null ? void 0 : Qe.layout)
|
|
3145
3149
|
}];
|
|
3146
|
-
}), s = S(() => n.value === "header" ?
|
|
3147
|
-
var
|
|
3148
|
-
return (
|
|
3150
|
+
}), s = S(() => n.value === "header" ? h.value : n.value === "sider" ? v.value : []), B = (r) => {
|
|
3151
|
+
var x, M;
|
|
3152
|
+
return (M = (x = f.value) == null ? void 0 : x[n.value]) == null ? void 0 : M[r];
|
|
3149
3153
|
};
|
|
3150
3154
|
return () => {
|
|
3151
|
-
var
|
|
3155
|
+
var x, M, I;
|
|
3152
3156
|
let r;
|
|
3153
3157
|
return l(o("div", {
|
|
3154
3158
|
class: [i, u.value]
|
|
@@ -3156,73 +3160,73 @@ const no = /* @__PURE__ */ H({
|
|
|
3156
3160
|
class: [`${i}-title`, u.value]
|
|
3157
3161
|
}, [Q("主题编辑器"), o("div", {
|
|
3158
3162
|
class: [`${i}-sub-title`, u.value]
|
|
3159
|
-
}, [o("span", null, [(
|
|
3160
|
-
var
|
|
3161
|
-
return
|
|
3162
|
-
})) == null ? void 0 :
|
|
3163
|
+
}, [o("span", null, [(x = Nt.find((p) => {
|
|
3164
|
+
var g;
|
|
3165
|
+
return p.key === ((g = e.settingValue) == null ? void 0 : g.theme);
|
|
3166
|
+
})) == null ? void 0 : x.title]), o("span", {
|
|
3163
3167
|
style: {
|
|
3164
3168
|
marginInline: "8px"
|
|
3165
3169
|
}
|
|
3166
|
-
}, [Q("/")]), o("span", null, [(
|
|
3167
|
-
var
|
|
3168
|
-
return
|
|
3169
|
-
})) == null ? void 0 :
|
|
3170
|
+
}, [Q("/")]), o("span", null, [(M = Ht.find((p) => {
|
|
3171
|
+
var g;
|
|
3172
|
+
return p.key === ((g = e.settingValue) == null ? void 0 : g.layout);
|
|
3173
|
+
})) == null ? void 0 : M.title])])]), o("div", {
|
|
3170
3174
|
class: [`${i}-content`, u.value]
|
|
3171
3175
|
}, [o(te, {
|
|
3172
3176
|
class: `${i}-list ${u.value}`.trim(),
|
|
3173
3177
|
split: !1,
|
|
3174
3178
|
size: "small",
|
|
3175
3179
|
renderItem: ({
|
|
3176
|
-
item:
|
|
3180
|
+
item: p
|
|
3177
3181
|
}) => o(te.Item, {
|
|
3178
|
-
actions: [
|
|
3182
|
+
actions: [p.action]
|
|
3179
3183
|
}, {
|
|
3180
3184
|
default: () => [o("span", {
|
|
3181
3185
|
style: {
|
|
3182
|
-
opacity:
|
|
3186
|
+
opacity: p.disabled ? 0.5 : 1
|
|
3183
3187
|
}
|
|
3184
|
-
}, [
|
|
3188
|
+
}, [p.title])]
|
|
3185
3189
|
}),
|
|
3186
3190
|
dataSource: [{
|
|
3187
3191
|
title: "自定义主题色",
|
|
3188
3192
|
action: o(tt, {
|
|
3189
|
-
value: (
|
|
3193
|
+
value: (I = e.settingValue) == null ? void 0 : I.primaryColor,
|
|
3190
3194
|
actions: ["confirm"],
|
|
3191
3195
|
modes: ["rgb"],
|
|
3192
3196
|
size: "small",
|
|
3193
|
-
onConfirm: (
|
|
3197
|
+
onConfirm: (p) => e.onChange && e.onChange(p, "primaryColor")
|
|
3194
3198
|
}, null)
|
|
3195
3199
|
}]
|
|
3196
3200
|
}, null), o(He, {
|
|
3197
3201
|
activeKey: n.value,
|
|
3198
3202
|
onChange: a
|
|
3199
|
-
}, to(r = Za.map((
|
|
3200
|
-
key:
|
|
3201
|
-
tab:
|
|
3203
|
+
}, to(r = Za.map((p) => o(Zt, {
|
|
3204
|
+
key: p.key,
|
|
3205
|
+
tab: p.title
|
|
3202
3206
|
}, {
|
|
3203
3207
|
default: () => [o(te, {
|
|
3204
3208
|
class: `${i}-list ${u.value}`.trim(),
|
|
3205
3209
|
split: !1,
|
|
3206
3210
|
size: "small",
|
|
3207
3211
|
renderItem: ({
|
|
3208
|
-
item:
|
|
3212
|
+
item: g
|
|
3209
3213
|
}) => o(te.Item, {
|
|
3210
|
-
actions: [
|
|
3214
|
+
actions: [g.action]
|
|
3211
3215
|
}, {
|
|
3212
3216
|
default: () => [o("span", {
|
|
3213
3217
|
style: {
|
|
3214
|
-
opacity:
|
|
3218
|
+
opacity: g.disabled ? 0.5 : 1
|
|
3215
3219
|
}
|
|
3216
|
-
}, [
|
|
3220
|
+
}, [g.title])]
|
|
3217
3221
|
}),
|
|
3218
|
-
dataSource: s.value.filter((
|
|
3219
|
-
...
|
|
3222
|
+
dataSource: s.value.filter((g) => !g.disabled).map((g) => ({
|
|
3223
|
+
...g,
|
|
3220
3224
|
action: o(tt, {
|
|
3221
|
-
value: B(
|
|
3225
|
+
value: B(g.key),
|
|
3222
3226
|
actions: ["confirm"],
|
|
3223
3227
|
modes: ["rgb"],
|
|
3224
3228
|
size: "small",
|
|
3225
|
-
onConfirm: (
|
|
3229
|
+
onConfirm: (m) => e.onChange && e.onChange(m, n.value, g.key)
|
|
3226
3230
|
}, null)
|
|
3227
3231
|
}))
|
|
3228
3232
|
}, null)]
|
|
@@ -3283,7 +3287,7 @@ const {
|
|
|
3283
3287
|
hashId: a
|
|
3284
3288
|
} = Z("SettingsDrawOthers", [ao], t);
|
|
3285
3289
|
return () => {
|
|
3286
|
-
var l, u, d,
|
|
3290
|
+
var l, u, d, f, h, v, s, B, r, x, M, I, p, g;
|
|
3287
3291
|
let i;
|
|
3288
3292
|
return n(o("div", {
|
|
3289
3293
|
class: [t, a.value]
|
|
@@ -3294,19 +3298,19 @@ const {
|
|
|
3294
3298
|
split: !1,
|
|
3295
3299
|
size: "small",
|
|
3296
3300
|
renderItem: ({
|
|
3297
|
-
item:
|
|
3301
|
+
item: m
|
|
3298
3302
|
}) => o(Oe, {
|
|
3299
|
-
title:
|
|
3303
|
+
title: m.disabled ? m.disabledReason : "",
|
|
3300
3304
|
placement: "left"
|
|
3301
3305
|
}, {
|
|
3302
3306
|
default: () => [o(te.Item, {
|
|
3303
|
-
actions: [
|
|
3307
|
+
actions: [m.action]
|
|
3304
3308
|
}, {
|
|
3305
3309
|
default: () => [o("span", {
|
|
3306
3310
|
style: {
|
|
3307
|
-
opacity:
|
|
3311
|
+
opacity: m.disabled ? 0.5 : 1
|
|
3308
3312
|
}
|
|
3309
|
-
}, [
|
|
3313
|
+
}, [m.title])]
|
|
3310
3314
|
})]
|
|
3311
3315
|
}),
|
|
3312
3316
|
dataSource: [{
|
|
@@ -3314,38 +3318,38 @@ const {
|
|
|
3314
3318
|
action: o(ht, {
|
|
3315
3319
|
checked: !((u = (l = e.settingValue) == null ? void 0 : l.animate) != null && u.disabled),
|
|
3316
3320
|
size: "small",
|
|
3317
|
-
onChange: (
|
|
3318
|
-
var
|
|
3319
|
-
return (
|
|
3321
|
+
onChange: (m) => {
|
|
3322
|
+
var b;
|
|
3323
|
+
return (b = e.onChange) == null ? void 0 : b.call(e, "animate", "disabled", !m);
|
|
3320
3324
|
}
|
|
3321
3325
|
}, null)
|
|
3322
3326
|
}, {
|
|
3323
3327
|
title: "动画效果",
|
|
3324
|
-
disabled: (
|
|
3328
|
+
disabled: (f = (d = e.settingValue) == null ? void 0 : d.animate) == null ? void 0 : f.disabled,
|
|
3325
3329
|
action: o(he, {
|
|
3326
|
-
value: (
|
|
3330
|
+
value: (v = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : v.name,
|
|
3327
3331
|
style: {
|
|
3328
3332
|
width: "100px"
|
|
3329
3333
|
},
|
|
3330
3334
|
size: "small",
|
|
3331
3335
|
disabled: (B = (s = e.settingValue) == null ? void 0 : s.animate) == null ? void 0 : B.disabled,
|
|
3332
|
-
getPopupContainer: (
|
|
3333
|
-
onChange: (
|
|
3334
|
-
var
|
|
3335
|
-
return (
|
|
3336
|
+
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
3337
|
+
onChange: (m) => {
|
|
3338
|
+
var b;
|
|
3339
|
+
return (b = e.onChange) == null ? void 0 : b.call(e, "animate", "name", m);
|
|
3336
3340
|
}
|
|
3337
|
-
}, st(i = ut.map((
|
|
3338
|
-
value:
|
|
3341
|
+
}, st(i = ut.map((m) => o(he.Option, {
|
|
3342
|
+
value: m.name
|
|
3339
3343
|
}, {
|
|
3340
|
-
default: () => [
|
|
3344
|
+
default: () => [m.alias]
|
|
3341
3345
|
}))) ? i : {
|
|
3342
3346
|
default: () => [i]
|
|
3343
3347
|
})
|
|
3344
3348
|
}, {
|
|
3345
3349
|
title: "动画方向",
|
|
3346
|
-
disabled: (
|
|
3350
|
+
disabled: (x = (r = e.settingValue) == null ? void 0 : r.animate) == null ? void 0 : x.disabled,
|
|
3347
3351
|
action: o(he, {
|
|
3348
|
-
value: (
|
|
3352
|
+
value: (I = (M = e.settingValue) == null ? void 0 : M.animate) == null ? void 0 : I.direction,
|
|
3349
3353
|
style: {
|
|
3350
3354
|
width: "100px"
|
|
3351
3355
|
},
|
|
@@ -3353,22 +3357,22 @@ const {
|
|
|
3353
3357
|
dropdownStyle: {
|
|
3354
3358
|
minWidth: "120px"
|
|
3355
3359
|
},
|
|
3356
|
-
disabled: (
|
|
3357
|
-
getPopupContainer: (
|
|
3358
|
-
onChange: (
|
|
3359
|
-
var
|
|
3360
|
-
return (
|
|
3360
|
+
disabled: (g = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : g.disabled,
|
|
3361
|
+
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
3362
|
+
onChange: (m) => {
|
|
3363
|
+
var b;
|
|
3364
|
+
return (b = e.onChange) == null ? void 0 : b.call(e, "animate", "direction", m);
|
|
3361
3365
|
}
|
|
3362
3366
|
}, {
|
|
3363
3367
|
default: () => {
|
|
3364
|
-
var
|
|
3365
|
-
return [(
|
|
3366
|
-
var
|
|
3367
|
-
return
|
|
3368
|
-
})) == null ? void 0 :
|
|
3369
|
-
value:
|
|
3370
|
-
}, st(
|
|
3371
|
-
default: () => [
|
|
3368
|
+
var m;
|
|
3369
|
+
return [(m = ut.find((b) => {
|
|
3370
|
+
var k, C;
|
|
3371
|
+
return b.name === ((C = (k = e.settingValue) == null ? void 0 : k.animate) == null ? void 0 : C.name);
|
|
3372
|
+
})) == null ? void 0 : m.directions.map((b) => o(he.Option, {
|
|
3373
|
+
value: b
|
|
3374
|
+
}, st(b) ? b : {
|
|
3375
|
+
default: () => [b]
|
|
3372
3376
|
}))];
|
|
3373
3377
|
}
|
|
3374
3378
|
})
|
|
@@ -3438,36 +3442,36 @@ const {
|
|
|
3438
3442
|
}), {
|
|
3439
3443
|
wrapSSR: a,
|
|
3440
3444
|
hashId: i
|
|
3441
|
-
} = Z("ProSettingDraw", [Ja], n), l = ve(!1), [u, d] = pe(!1), [
|
|
3445
|
+
} = Z("ProSettingDraw", [Ja], n), l = ve(!1), [u, d] = pe(!1), [f, h] = pe(!1), [v, s] = pe(!1), B = S(() => ct(ae(e.settings, Le))), [r, x] = wn(() => ct(ae(e.settings, Le)), {
|
|
3442
3446
|
value: B,
|
|
3443
3447
|
onChange: e.onChange
|
|
3444
|
-
}),
|
|
3445
|
-
copy:
|
|
3446
|
-
copied:
|
|
3447
|
-
isSupported:
|
|
3448
|
+
}), M = S(() => e.colorList && pn(e.colorList) ? e.colorList : []), I = S(() => Hn(U(r))), {
|
|
3449
|
+
copy: p,
|
|
3450
|
+
copied: g,
|
|
3451
|
+
isSupported: m
|
|
3448
3452
|
} = In();
|
|
3449
3453
|
le(u, () => {
|
|
3450
3454
|
l.value || (l.value = !0);
|
|
3451
3455
|
});
|
|
3452
|
-
const
|
|
3456
|
+
const b = (C, O, F) => {
|
|
3453
3457
|
var _, N;
|
|
3454
|
-
const
|
|
3455
|
-
if (F &&
|
|
3456
|
-
D[C] = {}, D[C][F] =
|
|
3458
|
+
const $ = ["header", "sider"], D = {};
|
|
3459
|
+
if (F && $.includes(C)) {
|
|
3460
|
+
D[C] = {}, D[C][F] = O, e.onChangeLayout && e.onChangeLayout(ae(D, $));
|
|
3457
3461
|
return;
|
|
3458
3462
|
} else
|
|
3459
|
-
C === "animate" ? (D[C] = {}, D[C][F] =
|
|
3463
|
+
C === "animate" ? (D[C] = {}, D[C][F] = O, F === "name" && (D[C].direction = (N = (_ = io.find((z) => z.name === O)) == null ? void 0 : _.directions) == null ? void 0 : N[0])) : D[C] = O;
|
|
3460
3464
|
if (C === "colorWeak") {
|
|
3461
3465
|
const z = document.querySelector("body");
|
|
3462
|
-
z && (z.dataset.prosettingdrawer =
|
|
3466
|
+
z && (z.dataset.prosettingdrawer = O === !0 ? z.style.filter : z.dataset.prosettingdrawer || "none", O === !0 && (z.dataset.prosettingdrawer = z.style.filter), z.style.filter = O === !0 ? "invert(80%)" : z.dataset.prosettingdrawer || "none", O || delete z.dataset.prosettingdrawer);
|
|
3463
3467
|
}
|
|
3464
|
-
|
|
3465
|
-
...Nn(je(D,
|
|
3468
|
+
x(xn(U(r), {
|
|
3469
|
+
...Nn(je(D, $))
|
|
3466
3470
|
}));
|
|
3467
|
-
},
|
|
3468
|
-
|
|
3471
|
+
}, k = () => {
|
|
3472
|
+
m.value && p(JSON.stringify(U(r)));
|
|
3469
3473
|
};
|
|
3470
|
-
return le(
|
|
3474
|
+
return le(g, (C) => {
|
|
3471
3475
|
C && Jt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
3472
3476
|
}), () => a(o(be, {
|
|
3473
3477
|
width: 300,
|
|
@@ -3508,7 +3512,7 @@ const {
|
|
|
3508
3512
|
value: r.value.theme,
|
|
3509
3513
|
configType: "theme",
|
|
3510
3514
|
key: "navTheme",
|
|
3511
|
-
onChange: (C) =>
|
|
3515
|
+
onChange: (C) => b("theme", C)
|
|
3512
3516
|
}, null)]
|
|
3513
3517
|
}), o(ye, {
|
|
3514
3518
|
hashId: i.value,
|
|
@@ -3516,16 +3520,16 @@ const {
|
|
|
3516
3520
|
style: {
|
|
3517
3521
|
fontSize: "12px"
|
|
3518
3522
|
},
|
|
3519
|
-
onClick: () =>
|
|
3523
|
+
onClick: () => h(!0)
|
|
3520
3524
|
}, [Q("更多配置")])]),
|
|
3521
3525
|
prefixCls: n
|
|
3522
3526
|
}, {
|
|
3523
3527
|
default: () => [o(Qa, {
|
|
3524
3528
|
hashId: i.value,
|
|
3525
3529
|
prefixCls: n,
|
|
3526
|
-
colorList:
|
|
3530
|
+
colorList: M.value,
|
|
3527
3531
|
settingValue: r.value,
|
|
3528
|
-
onChange: (C,
|
|
3532
|
+
onChange: (C, O) => b(O || "primaryColor", C)
|
|
3529
3533
|
}, null)]
|
|
3530
3534
|
}), !e.themeOnly && o(q, null, [o(Be, null, null), o(ye, {
|
|
3531
3535
|
hashId: i.value,
|
|
@@ -3539,19 +3543,19 @@ const {
|
|
|
3539
3543
|
hashId: i.value,
|
|
3540
3544
|
configType: "layout",
|
|
3541
3545
|
list: Ht,
|
|
3542
|
-
onChange: (C) =>
|
|
3546
|
+
onChange: (C) => b("layout", C)
|
|
3543
3547
|
}, null)]
|
|
3544
3548
|
}), lo.map(({
|
|
3545
3549
|
label: C,
|
|
3546
|
-
title:
|
|
3550
|
+
title: O
|
|
3547
3551
|
}) => o(ge, {
|
|
3548
|
-
label:
|
|
3549
|
-
disabled: U(
|
|
3552
|
+
label: O,
|
|
3553
|
+
disabled: U(I)[C],
|
|
3550
3554
|
value: U(r)[C],
|
|
3551
3555
|
prefixCls: n,
|
|
3552
3556
|
hashId: i.value,
|
|
3553
3557
|
valueKey: C,
|
|
3554
|
-
onChange: (F,
|
|
3558
|
+
onChange: (F, $) => b(F, $)
|
|
3555
3559
|
}, null)), o(Be, null, null), o(ye, {
|
|
3556
3560
|
hashId: i.value,
|
|
3557
3561
|
prefixCls: n,
|
|
@@ -3564,29 +3568,29 @@ const {
|
|
|
3564
3568
|
}, {
|
|
3565
3569
|
default: () => [ro.map(({
|
|
3566
3570
|
label: C,
|
|
3567
|
-
title:
|
|
3571
|
+
title: O
|
|
3568
3572
|
}) => o(ge, {
|
|
3569
|
-
label:
|
|
3570
|
-
disabled: U(
|
|
3573
|
+
label: O,
|
|
3574
|
+
disabled: U(I)[C],
|
|
3571
3575
|
value: U(r)[C],
|
|
3572
3576
|
prefixCls: n,
|
|
3573
3577
|
hashId: i.value,
|
|
3574
3578
|
valueKey: C,
|
|
3575
|
-
onChange: (F,
|
|
3579
|
+
onChange: (F, $) => b(F, $)
|
|
3576
3580
|
}, null)), e.weakmode && o(ge, {
|
|
3577
3581
|
label: "色弱模式",
|
|
3578
3582
|
value: U(r).colorWeak,
|
|
3579
3583
|
prefixCls: n,
|
|
3580
3584
|
hashId: i.value,
|
|
3581
3585
|
valueKey: "colorWeak",
|
|
3582
|
-
onChange: (C,
|
|
3586
|
+
onChange: (C, O) => b(C, O)
|
|
3583
3587
|
}, null), e.showProgress && o(ge, {
|
|
3584
3588
|
label: "顶部进度条",
|
|
3585
3589
|
value: U(r).showProgressBar,
|
|
3586
3590
|
prefixCls: n,
|
|
3587
3591
|
hashId: i.value,
|
|
3588
3592
|
valueKey: "showProgressBar",
|
|
3589
|
-
onChange: (C,
|
|
3593
|
+
onChange: (C, O) => b(C, O)
|
|
3590
3594
|
}, null)]
|
|
3591
3595
|
})]), e.hideHintAlert && e.hideCopyButton ? null : o(Be, null, null), e.hideHintAlert ? null : o(Qt, {
|
|
3592
3596
|
type: "warning",
|
|
@@ -3597,7 +3601,7 @@ const {
|
|
|
3597
3601
|
marginBottom: "16px"
|
|
3598
3602
|
}
|
|
3599
3603
|
}, null), e.hideCopyButton ? null : o(en, {
|
|
3600
|
-
onClick: () =>
|
|
3604
|
+
onClick: () => k(),
|
|
3601
3605
|
block: !0
|
|
3602
3606
|
}, {
|
|
3603
3607
|
default: () => [o(cn, null, null), Q("拷贝设置")]
|
|
@@ -3606,21 +3610,21 @@ const {
|
|
|
3606
3610
|
width: 320,
|
|
3607
3611
|
closable: !1,
|
|
3608
3612
|
placement: "right",
|
|
3609
|
-
open:
|
|
3613
|
+
open: f.value,
|
|
3610
3614
|
bodyStyle: {
|
|
3611
3615
|
padding: 0
|
|
3612
3616
|
},
|
|
3613
|
-
onClose: () =>
|
|
3617
|
+
onClose: () => h(!1)
|
|
3614
3618
|
}, {
|
|
3615
3619
|
default: () => [o(no, {
|
|
3616
3620
|
settingValue: r.value,
|
|
3617
|
-
onChange: (C,
|
|
3621
|
+
onChange: (C, O, F) => b(O || "primaryColor", C, F)
|
|
3618
3622
|
}, null)]
|
|
3619
3623
|
}), o(be, {
|
|
3620
3624
|
width: 320,
|
|
3621
3625
|
closable: !1,
|
|
3622
3626
|
placement: "right",
|
|
3623
|
-
open:
|
|
3627
|
+
open: v.value,
|
|
3624
3628
|
bodyStyle: {
|
|
3625
3629
|
padding: 0
|
|
3626
3630
|
},
|
|
@@ -3628,7 +3632,7 @@ const {
|
|
|
3628
3632
|
}, {
|
|
3629
3633
|
default: () => [o(oo, {
|
|
3630
3634
|
settingValue: r.value,
|
|
3631
|
-
onChange: (C,
|
|
3635
|
+
onChange: (C, O, F) => b(C, F, O)
|
|
3632
3636
|
}, null)]
|
|
3633
3637
|
})]
|
|
3634
3638
|
}));
|
|
@@ -4937,29 +4941,29 @@ const Cl = /* @__PURE__ */ H({
|
|
|
4937
4941
|
}), {
|
|
4938
4942
|
wrapSSR: a,
|
|
4939
4943
|
hashId: i
|
|
4940
|
-
} = nl(n), l = S(() => [d(!1), `${n}-enter`, i.value].join(" ")), u = S(() => [d(!0), `${n}-leave`, i.value].join(" ")), d = (
|
|
4941
|
-
const
|
|
4942
|
-
if (
|
|
4944
|
+
} = nl(n), l = S(() => [d(!1), `${n}-enter`, i.value].join(" ")), u = S(() => [d(!0), `${n}-leave`, i.value].join(" ")), d = (h) => {
|
|
4945
|
+
const v = Ke.preset.find((r) => e.name == r.name);
|
|
4946
|
+
if (v == null)
|
|
4943
4947
|
return "";
|
|
4944
4948
|
let s = "";
|
|
4945
|
-
e.direction == null ? s =
|
|
4946
|
-
const B =
|
|
4947
|
-
return
|
|
4948
|
-
},
|
|
4949
|
-
if (
|
|
4950
|
-
return
|
|
4951
|
-
let s =
|
|
4952
|
-
return s = s % 2 == 1 ? s - 1 : s + 1,
|
|
4949
|
+
e.direction == null ? s = v.directions[0] : s = v.directions.find((r) => r == e.direction) || "", s = s == null || s === "default" ? "" : s, s != "" && (s = h && e.reverse ? f(s, v.directions) : s, s = s[0].toUpperCase() + s.substring(1));
|
|
4950
|
+
const B = h ? "Out" : "In";
|
|
4951
|
+
return v.name + B + s;
|
|
4952
|
+
}, f = (h, v) => {
|
|
4953
|
+
if (h.length == 0 || h == "x" || h == "y")
|
|
4954
|
+
return h;
|
|
4955
|
+
let s = v.indexOf(h);
|
|
4956
|
+
return s = s % 2 == 1 ? s - 1 : s + 1, v[s];
|
|
4953
4957
|
};
|
|
4954
4958
|
return () => {
|
|
4955
|
-
var
|
|
4956
|
-
return e.disabled ? (
|
|
4959
|
+
var h;
|
|
4960
|
+
return e.disabled ? (h = t.default) == null ? void 0 : h.call(t) : a(o(Xt, {
|
|
4957
4961
|
enterActiveClass: l.value,
|
|
4958
4962
|
leaveActiveClass: u.value
|
|
4959
4963
|
}, {
|
|
4960
4964
|
default: () => {
|
|
4961
|
-
var
|
|
4962
|
-
return [(
|
|
4965
|
+
var v;
|
|
4966
|
+
return [(v = t.default) == null ? void 0 : v.call(t)];
|
|
4963
4967
|
}
|
|
4964
4968
|
}));
|
|
4965
4969
|
};
|