@gx-design-vue/pro-layout 0.1.0-beta.46 → 0.1.0-beta.47
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.js +154 -153
- package/dist/pro-layout.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/pro-layout.js
CHANGED
|
@@ -253,9 +253,9 @@ function mn(e) {
|
|
|
253
253
|
return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
|
|
254
254
|
}
|
|
255
255
|
function ft(e, t, a, i) {
|
|
256
|
-
var d,
|
|
256
|
+
var d, g, m, w, p, R, h, F, l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B, T;
|
|
257
257
|
const o = { ...e };
|
|
258
|
-
return a === "light" ? (o.colorItemBg = (
|
|
258
|
+
return a === "light" ? (o.colorItemBg = (g = (d = t.layout) == null ? void 0 : d[i]) == null ? void 0 : g.colorBgMenu, o.colorSubItemBg = (w = (m = t.layout) == null ? void 0 : m[i]) == null ? void 0 : w.colorSubItemBg, o.colorItemBgSelected = (R = (p = t.layout) == null ? void 0 : p[i]) == null ? void 0 : R.colorBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (F = (h = t.layout) == null ? void 0 : h[i]) == null ? void 0 : F.colorBgMenuItemSelected, o.colorItemText = (r = (l = t.layout) == null ? void 0 : l[i]) == null ? void 0 : r.colorTextMenu, o.colorItemTextHover = (k = (I = t.layout) == null ? void 0 : I[i]) == null ? void 0 : k.colorTextMenuHover, o.colorItemTextSelected = (y = (x = t.layout) == null ? void 0 : x[i]) == null ? void 0 : y.colorTextMenuSelected, o.colorItemTextSelectedHorizontal = (C = (f = t.layout) == null ? void 0 : f[i]) == null ? void 0 : C.colorTextMenuSelected, i === "sider" && (o.colorItemBgHover = (u = ($ = t.layout) == null ? void 0 : $[i]) == null ? void 0 : u.colorBgMenuItemHover)) : a === "dark" && (o.colorItemBg = (M = (S = t.layout) == null ? void 0 : S[i]) == null ? void 0 : M.colorDarkBgMenu, o.colorSubItemBg = (P = (O = t.layout) == null ? void 0 : O[i]) == null ? void 0 : P.colorDarkSubItemBg, o.colorItemBgSelected = (N = (H = t.layout) == null ? void 0 : H[i]) == null ? void 0 : N.colorDarkBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (V = (D = t.layout) == null ? void 0 : D[i]) == null ? void 0 : V.colorDarkBgMenuItemSelected, o.colorItemText = (_ = (Y = t.layout) == null ? void 0 : Y[i]) == null ? void 0 : _.colorDarkTextMenu, o.colorItemTextHover = (J = (E = t.layout) == null ? void 0 : E[i]) == null ? void 0 : J.colorDarkTextMenuHover, o.colorItemTextSelected = (v = (c = t.layout) == null ? void 0 : c[i]) == null ? void 0 : v.colorDarkTextMenuSelected, o.colorItemTextSelectedHorizontal = (T = (B = t.layout) == null ? void 0 : B[i]) == null ? void 0 : T.colorDarkTextMenuSelected, i === "header" && (o.colorActiveBarHeight = 0)), o;
|
|
259
259
|
}
|
|
260
260
|
const fn = ["left", "right"], ce = ["left", "right", "down", "up"], gn = ["downBig", "upBig", "leftBig", "rightBig"], hn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], yn = ["downLeft", "upRight", "downRight", "upLeft"], We = {
|
|
261
261
|
preset: [
|
|
@@ -324,9 +324,9 @@ function Ii(e, t) {
|
|
|
324
324
|
var i, o;
|
|
325
325
|
const a = ((o = (i = e.find((d) => d.path === t)) == null ? void 0 : i.meta) == null ? void 0 : o.key) || "";
|
|
326
326
|
if (a) {
|
|
327
|
-
const d = [],
|
|
328
|
-
for (let m = 0; m <
|
|
329
|
-
d.push(Ve(
|
|
327
|
+
const d = [], g = a.split("-");
|
|
328
|
+
for (let m = 0; m < g.length; m += 1)
|
|
329
|
+
d.push(Ve(g).splice(0, m + 1).join("-"));
|
|
330
330
|
return e.filter((m) => d.some((w) => {
|
|
331
331
|
var p;
|
|
332
332
|
return w === ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.key) || "";
|
|
@@ -422,7 +422,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
422
422
|
}, d = (l) => {
|
|
423
423
|
var r;
|
|
424
424
|
(r = e.onSelect) == null || r.call(e, l.selectedKeys);
|
|
425
|
-
},
|
|
425
|
+
}, g = (l) => {
|
|
426
426
|
var r;
|
|
427
427
|
(r = e.onClick) == null || r.call(e, ...l);
|
|
428
428
|
}, m = (l, r) => {
|
|
@@ -430,7 +430,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
430
430
|
const I = l.target || "", k = mt(I);
|
|
431
431
|
((x = t.currentRoute.value) == null ? void 0 : x.fullPath) !== r.to && k && I && l.targetStatus === 1 && window.open(I);
|
|
432
432
|
}, w = lt("router-link"), p = (l = []) => l.map((r) => R(r)).filter((r) => r), R = (l) => {
|
|
433
|
-
var k, x, y,
|
|
433
|
+
var k, x, y, f, C, $, u, S, M;
|
|
434
434
|
if (Array.isArray(l.children) && l.children.length > 0 && !((k = l == null ? void 0 : l.meta) != null && k.hideInMenu) && !((x = l == null ? void 0 : l.meta) != null && x.hideChildrenInMenu)) {
|
|
435
435
|
let O;
|
|
436
436
|
if (e.subMenuItemRender)
|
|
@@ -438,7 +438,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
438
438
|
item: l,
|
|
439
439
|
children: p(l.children)
|
|
440
440
|
});
|
|
441
|
-
const P = (y = l.meta) == null ? void 0 : y.title, H = (
|
|
441
|
+
const P = (y = l.meta) == null ? void 0 : y.title, H = (f = l.meta) != null && f.icon ? n("span", {
|
|
442
442
|
class: "gx-pro-sider-menu-item"
|
|
443
443
|
}, [n("span", {
|
|
444
444
|
class: "gx-pro-sider-menu-item-title"
|
|
@@ -489,14 +489,14 @@ const gt = /* @__PURE__ */ W({
|
|
|
489
489
|
onClick: () => m(r, k)
|
|
490
490
|
}), {
|
|
491
491
|
default: () => [n("span", null, [x])]
|
|
492
|
-
}),
|
|
492
|
+
}), f = ((u = l.meta) == null ? void 0 : u.icon) && n(we, {
|
|
493
493
|
className: i,
|
|
494
494
|
icon: (S = l.meta) == null ? void 0 : S.icon,
|
|
495
495
|
iconfontUrl: e.iconfontUrl,
|
|
496
496
|
iconType: (M = l.meta) == null ? void 0 : M.iconType
|
|
497
497
|
}, null) || void 0;
|
|
498
|
-
return [y,
|
|
499
|
-
},
|
|
498
|
+
return [y, f];
|
|
499
|
+
}, F = b(() => p(e.menuData));
|
|
500
500
|
return () => n(ie, G({
|
|
501
501
|
key: "Menu",
|
|
502
502
|
inlineIndent: 16,
|
|
@@ -506,9 +506,9 @@ const gt = /* @__PURE__ */ W({
|
|
|
506
506
|
selectedKeys: e.selectedKeys || [],
|
|
507
507
|
onOpenChange: o,
|
|
508
508
|
onSelect: d,
|
|
509
|
-
onClick:
|
|
509
|
+
onClick: g
|
|
510
510
|
}, e.menuProps), {
|
|
511
|
-
default: () => [
|
|
511
|
+
default: () => [F.value]
|
|
512
512
|
});
|
|
513
513
|
}
|
|
514
514
|
}), ht = new s("pro-layout-title-hide", {
|
|
@@ -533,7 +533,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
535
|
}, Bn = (e) => {
|
|
536
|
-
var t, a, i, o, d,
|
|
536
|
+
var t, a, i, o, d, g, m, w, p, R, h, F;
|
|
537
537
|
return {
|
|
538
538
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
539
539
|
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
@@ -566,7 +566,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
566
566
|
background: (o = (i = e.layout) == null ? void 0 : i.sider) == null ? void 0 : o.colorBgMenu,
|
|
567
567
|
boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
|
|
568
568
|
[`${e.componentCls}-footer`]: {
|
|
569
|
-
color: (
|
|
569
|
+
color: (g = (d = e.layout) == null ? void 0 : d.sider) == null ? void 0 : g.colorTextMenu
|
|
570
570
|
}
|
|
571
571
|
},
|
|
572
572
|
"&-links": {
|
|
@@ -598,7 +598,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
598
598
|
height: "100%",
|
|
599
599
|
"&-mix": {
|
|
600
600
|
height: `calc(100% - ${((R = (p = e.layout) == null ? void 0 : p.header) == null ? void 0 : R.heightLayoutHeader) || j.headerHeight}px)`,
|
|
601
|
-
insetBlockStart: `${((
|
|
601
|
+
insetBlockStart: `${((F = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : F.heightLayoutHeader) || j.headerHeight}px`
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
@@ -681,11 +681,11 @@ const gt = /* @__PURE__ */ W({
|
|
|
681
681
|
logoStyle: i,
|
|
682
682
|
title: o,
|
|
683
683
|
layout: d
|
|
684
|
-
} = e,
|
|
685
|
-
if (
|
|
684
|
+
} = e, g = e[t || ""];
|
|
685
|
+
if (g === !1)
|
|
686
686
|
return null;
|
|
687
687
|
const m = yt(a, i), w = o && n("h1", null, [o]);
|
|
688
|
-
return typeof
|
|
688
|
+
return typeof g == "function" ? g(m, e.collapsed ? null : w, e) : n(Q, null, [m || null, e.collapsed && d === "side" ? null : w]);
|
|
689
689
|
}, Ae = /* @__PURE__ */ W({
|
|
690
690
|
name: "LogoContent",
|
|
691
691
|
props: de,
|
|
@@ -698,7 +698,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
698
698
|
})), {
|
|
699
699
|
wrapSSR: o,
|
|
700
700
|
hashId: d
|
|
701
|
-
} = ae("ProLayoutLogo", [Fn]),
|
|
701
|
+
} = ae("ProLayoutLogo", [Fn]), g = b(() => Tn(e, e.renderKey));
|
|
702
702
|
return () => o(n("div", {
|
|
703
703
|
id: "logo",
|
|
704
704
|
class: {
|
|
@@ -710,7 +710,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
710
710
|
var m;
|
|
711
711
|
return (m = e.onMenuHeaderClick) == null ? void 0 : m.call(e);
|
|
712
712
|
}
|
|
713
|
-
}, [n("a", null, [
|
|
713
|
+
}, [n("a", null, [g.value || null])]));
|
|
714
714
|
}
|
|
715
715
|
});
|
|
716
716
|
Ae.inheritAttrs = !1;
|
|
@@ -732,7 +732,7 @@ const {
|
|
|
732
732
|
menuData: o,
|
|
733
733
|
openKeys: d
|
|
734
734
|
} = te(), {
|
|
735
|
-
indicator:
|
|
735
|
+
indicator: g
|
|
736
736
|
} = De(), {
|
|
737
737
|
token: m
|
|
738
738
|
} = he(), {
|
|
@@ -740,14 +740,14 @@ const {
|
|
|
740
740
|
layout: p,
|
|
741
741
|
isMobile: R,
|
|
742
742
|
menuLoading: h,
|
|
743
|
-
breakpoint:
|
|
743
|
+
breakpoint: F,
|
|
744
744
|
fixSiderbar: l,
|
|
745
745
|
collapsed: r,
|
|
746
746
|
siderWidth: I,
|
|
747
747
|
collapsedWidth: k,
|
|
748
748
|
menuExtraRender: x,
|
|
749
749
|
menuContentRender: y,
|
|
750
|
-
menuFooterRender:
|
|
750
|
+
menuFooterRender: f,
|
|
751
751
|
collapsedButtonRender: C,
|
|
752
752
|
links: $
|
|
753
753
|
} = Ie(e), u = t({
|
|
@@ -770,10 +770,10 @@ const {
|
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
772
|
return () => {
|
|
773
|
-
var
|
|
773
|
+
var T;
|
|
774
774
|
const c = H.value ? n(Ae, G({
|
|
775
775
|
drawer: R.value
|
|
776
|
-
}, e), null) : null, v = x.value && ((
|
|
776
|
+
}, e), null) : null, v = x.value && ((T = x.value) == null ? void 0 : T.call(x, e)), B = n(gt, {
|
|
777
777
|
class: `${u}-menu ${M.value}`,
|
|
778
778
|
theme: N.value,
|
|
779
779
|
mode: "inline",
|
|
@@ -827,7 +827,7 @@ const {
|
|
|
827
827
|
height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
|
|
828
828
|
},
|
|
829
829
|
theme: N.value,
|
|
830
|
-
breakpoint:
|
|
830
|
+
breakpoint: F.value || void 0,
|
|
831
831
|
collapsed: r.value,
|
|
832
832
|
width: I.value,
|
|
833
833
|
collapsedWidth: k.value
|
|
@@ -838,7 +838,7 @@ const {
|
|
|
838
838
|
class: ["gx-pro-sider-loading", M.value]
|
|
839
839
|
}, [n(Ce, {
|
|
840
840
|
spinning: h.value,
|
|
841
|
-
indicator:
|
|
841
|
+
indicator: g == null ? void 0 : g.value
|
|
842
842
|
}, null)]), c || null, v && !e.collapsed && n("div", {
|
|
843
843
|
class: {
|
|
844
844
|
[`${M.value}`]: !0,
|
|
@@ -879,9 +879,9 @@ const {
|
|
|
879
879
|
return [(X = E.value) == null ? void 0 : X.call(E, r.value)];
|
|
880
880
|
}
|
|
881
881
|
})]
|
|
882
|
-
})]),
|
|
882
|
+
})]), f.value && n("div", {
|
|
883
883
|
class: `${u}-footer ${M.value}`
|
|
884
|
-
}, [(q =
|
|
884
|
+
}, [(q = f.value) == null ? void 0 : q.call(f, e)])];
|
|
885
885
|
}
|
|
886
886
|
})]
|
|
887
887
|
}));
|
|
@@ -986,7 +986,7 @@ const {
|
|
|
986
986
|
}), {
|
|
987
987
|
wrapSSR: o,
|
|
988
988
|
hashId: d
|
|
989
|
-
} = ae("ProPageHeader", [Dn], i),
|
|
989
|
+
} = ae("ProPageHeader", [Dn], i), g = b(() => {
|
|
990
990
|
var m;
|
|
991
991
|
return {
|
|
992
992
|
...t.value,
|
|
@@ -1003,13 +1003,13 @@ const {
|
|
|
1003
1003
|
var m, w;
|
|
1004
1004
|
return o(n("div", {
|
|
1005
1005
|
class: [`${i}`, d.value, `${i}-has-breadcrumb`]
|
|
1006
|
-
}, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e,
|
|
1006
|
+
}, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, g.value) : n(Pt, g.value, null), e.content && n("div", {
|
|
1007
1007
|
class: [`${i}-content`, d.value]
|
|
1008
1008
|
}, [(w = e.content) == null ? void 0 : w.call(e)])]));
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
1011
|
}), zn = (e) => {
|
|
1012
|
-
var t, a, i, o, d,
|
|
1012
|
+
var t, a, i, o, d, g, m, w;
|
|
1013
1013
|
return {
|
|
1014
1014
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1015
1015
|
[e.componentCls]: {
|
|
@@ -1022,7 +1022,7 @@ const {
|
|
|
1022
1022
|
},
|
|
1023
1023
|
[e.componentCls]: {
|
|
1024
1024
|
"&-children-content": {
|
|
1025
|
-
marginInline: ((
|
|
1025
|
+
marginInline: ((g = (d = e.layout) == null ? void 0 : d.pageContainer) == null ? void 0 : g.marginInlinePageContainerContent) ?? 24,
|
|
1026
1026
|
marginBlockStart: ((w = (m = e.layout) == null ? void 0 : m.pageContainer) == null ? void 0 : w.marginBlockPageContainerContent) ?? 24,
|
|
1027
1027
|
padding: "inherit"
|
|
1028
1028
|
}
|
|
@@ -1052,21 +1052,21 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1052
1052
|
getPrefixCls: i,
|
|
1053
1053
|
hasContentWide: o,
|
|
1054
1054
|
waterMark: d,
|
|
1055
|
-
pageHeaderRender:
|
|
1055
|
+
pageHeaderRender: g,
|
|
1056
1056
|
pageContentStyle: m,
|
|
1057
1057
|
pageChildrenContentStyle: w,
|
|
1058
1058
|
pageCardProps: p,
|
|
1059
1059
|
usePageCard: R,
|
|
1060
1060
|
waterMarkProps: h
|
|
1061
1061
|
} = te(), {
|
|
1062
|
-
indicator:
|
|
1062
|
+
indicator: F
|
|
1063
1063
|
} = De(), l = he(), r = i({
|
|
1064
1064
|
suffixCls: "page-container",
|
|
1065
1065
|
isPor: !0
|
|
1066
1066
|
}), I = i({
|
|
1067
1067
|
suffixCls: "grid-content",
|
|
1068
1068
|
isPor: !0
|
|
1069
|
-
}), k = b(() => e.pageCardProps || p.value), x = b(() => e.waterMarkProps || h.value || {}), y = b(() => e.pageContentStyle || m.value),
|
|
1069
|
+
}), k = b(() => e.pageCardProps || p.value), x = b(() => e.waterMarkProps || h.value || {}), y = b(() => e.pageContentStyle || m.value), f = b(() => e.pageChildrenContentStyle || w.value || {}), C = b(() => _e(e.usePageCard) ? e.usePageCard : _e(R.value) ? R.value : !0), {
|
|
1070
1070
|
wrapSSR: $,
|
|
1071
1071
|
hashId: u
|
|
1072
1072
|
} = Hn(r), S = () => {
|
|
@@ -1074,7 +1074,7 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1074
1074
|
const O = K(t, e, "pageChildrenExtraRender");
|
|
1075
1075
|
return n("div", {
|
|
1076
1076
|
class: `${r}-children-content ${u.value}`,
|
|
1077
|
-
style:
|
|
1077
|
+
style: f.value
|
|
1078
1078
|
}, [O && (O == null ? void 0 : O()), C.value ? n(Lt, G(k.value ? se(k.value, ["loading", "bodyStyle"]) : {}, {
|
|
1079
1079
|
style: o.value ? {
|
|
1080
1080
|
minHeight: "853px"
|
|
@@ -1097,10 +1097,10 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1097
1097
|
}) : S()]);
|
|
1098
1098
|
};
|
|
1099
1099
|
return () => {
|
|
1100
|
-
const O = K(t, e, "pageHeaderRender") ||
|
|
1100
|
+
const O = K(t, e, "pageHeaderRender") || g.value, P = K(t, e, "breadcrumbRender"), H = K(t, e, "contentRender");
|
|
1101
1101
|
return $(n(Ce, {
|
|
1102
1102
|
spinning: e.loading,
|
|
1103
|
-
indicator:
|
|
1103
|
+
indicator: F == null ? void 0 : F.value
|
|
1104
1104
|
}, {
|
|
1105
1105
|
default: () => [n("div", {
|
|
1106
1106
|
style: a.style,
|
|
@@ -1476,7 +1476,7 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1476
1476
|
activeKey: "",
|
|
1477
1477
|
contextMenuActiveKey: ""
|
|
1478
1478
|
}), d = Ne(), {
|
|
1479
|
-
menuData:
|
|
1479
|
+
menuData: g,
|
|
1480
1480
|
flatMenuData: m,
|
|
1481
1481
|
layout: w,
|
|
1482
1482
|
splitMenus: p,
|
|
@@ -1485,7 +1485,7 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1485
1485
|
isPor: !0,
|
|
1486
1486
|
suffixCls: "multi-tab"
|
|
1487
1487
|
}), {
|
|
1488
|
-
wrapSSR:
|
|
1488
|
+
wrapSSR: F,
|
|
1489
1489
|
hashId: l
|
|
1490
1490
|
} = Un(h), r = ke([]);
|
|
1491
1491
|
me(r, () => {
|
|
@@ -1495,9 +1495,9 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1495
1495
|
deep: !0
|
|
1496
1496
|
});
|
|
1497
1497
|
const I = b(() => w.value === "mix" && !e.isMobile && p.value), k = b(() => A(d.currentRoute.value)), x = b(() => a.value && !t.value), y = b(() => {
|
|
1498
|
-
const c = !(I.value && U(m.value).length === 0 ||
|
|
1498
|
+
const c = !(I.value && U(m.value).length === 0 || g.value.length === 0 || w.value === "top");
|
|
1499
1499
|
return x.value && c ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
|
|
1500
|
-
}),
|
|
1500
|
+
}), f = b(() => ct(`${h}-wrap`, {
|
|
1501
1501
|
[`${l.value}`]: !0,
|
|
1502
1502
|
[`${h}-wrap-fixed`]: e.isFixedMultiTab,
|
|
1503
1503
|
[`${h}-wrap-loading`]: e.loading
|
|
@@ -1514,7 +1514,7 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1514
1514
|
} : c;
|
|
1515
1515
|
}), $ = (c) => A(c) === k.value, u = (c) => {
|
|
1516
1516
|
if (c.name && c.meta && c.meta.tagHidden !== !0) {
|
|
1517
|
-
const v = A(c), B = r.value.find((z) => A(z) === v),
|
|
1517
|
+
const v = A(c), B = r.value.find((z) => A(z) === v), T = {
|
|
1518
1518
|
path: c.path,
|
|
1519
1519
|
fullPath: v,
|
|
1520
1520
|
query: c.query,
|
|
@@ -1525,14 +1525,14 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1525
1525
|
originTagPath: c.fullPath
|
|
1526
1526
|
}
|
|
1527
1527
|
};
|
|
1528
|
-
B ? Object.assign(B,
|
|
1528
|
+
B ? Object.assign(B, T) : c.meta.tagFixed ? r.value.unshift(T) : r.value.push(T), $(c) && (o.activeKey = v);
|
|
1529
1529
|
}
|
|
1530
1530
|
}, S = (c) => {
|
|
1531
1531
|
c.forEach((v) => {
|
|
1532
1532
|
v.meta && v.meta.tagFixed && u(v), v.children && S(v.children);
|
|
1533
1533
|
});
|
|
1534
1534
|
};
|
|
1535
|
-
me(() =>
|
|
1535
|
+
me(() => g.value, (c) => {
|
|
1536
1536
|
S(c);
|
|
1537
1537
|
}, {
|
|
1538
1538
|
deep: !0,
|
|
@@ -1545,7 +1545,7 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1545
1545
|
});
|
|
1546
1546
|
const M = (c) => {
|
|
1547
1547
|
var v, B;
|
|
1548
|
-
return ((B = (v = r.value.find((
|
|
1548
|
+
return ((B = (v = r.value.find((T) => (c || o.activeKey) === A(T))) == null ? void 0 : v.meta) == null ? void 0 : B.originTagPath) || c || o.activeKey;
|
|
1549
1549
|
}, O = () => {
|
|
1550
1550
|
const c = r.value.slice(-1)[0];
|
|
1551
1551
|
c ? d.push({
|
|
@@ -1565,24 +1565,24 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1565
1565
|
i.value = !1;
|
|
1566
1566
|
}, 500);
|
|
1567
1567
|
}, D = (c) => c.meta && c.meta.tagFixed, V = (c) => o[c], Y = (c, v) => {
|
|
1568
|
-
const B = r.value.findIndex((
|
|
1568
|
+
const B = r.value.findIndex((T) => A(T) === V(v));
|
|
1569
1569
|
switch (c) {
|
|
1570
1570
|
case "closeOthersTabs":
|
|
1571
|
-
r.value = r.value.filter((
|
|
1571
|
+
r.value = r.value.filter((T) => {
|
|
1572
1572
|
var z;
|
|
1573
|
-
return A(
|
|
1573
|
+
return A(T) === V(v) || ((z = T.meta) == null ? void 0 : z.tagFixed);
|
|
1574
1574
|
});
|
|
1575
1575
|
break;
|
|
1576
1576
|
case "closeLeftTabs":
|
|
1577
|
-
B && (r.value = r.value.filter((
|
|
1577
|
+
B && (r.value = r.value.filter((T, z) => {
|
|
1578
1578
|
var q;
|
|
1579
|
-
return z >= B || ((q =
|
|
1579
|
+
return z >= B || ((q = T.meta) == null ? void 0 : q.tagFixed);
|
|
1580
1580
|
}));
|
|
1581
1581
|
break;
|
|
1582
1582
|
case "closeRightTabs":
|
|
1583
|
-
B && (r.value = r.value.filter((
|
|
1583
|
+
B && (r.value = r.value.filter((T, z) => {
|
|
1584
1584
|
var q;
|
|
1585
|
-
return z <= B || ((q =
|
|
1585
|
+
return z <= B || ((q = T.meta) == null ? void 0 : q.tagFixed);
|
|
1586
1586
|
}));
|
|
1587
1587
|
break;
|
|
1588
1588
|
case "reloadPage":
|
|
@@ -1591,7 +1591,7 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1591
1591
|
}
|
|
1592
1592
|
o.activeKey !== V(v) && d.push(M(V(v)));
|
|
1593
1593
|
}, _ = (c, v) => {
|
|
1594
|
-
const B = r.value.findIndex((
|
|
1594
|
+
const B = r.value.findIndex((T) => A(T) === v);
|
|
1595
1595
|
switch (c) {
|
|
1596
1596
|
case "closeOthersTabs":
|
|
1597
1597
|
return r.value.filter((X, ne) => {
|
|
@@ -1613,13 +1613,13 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1613
1613
|
let v;
|
|
1614
1614
|
const {
|
|
1615
1615
|
path: B,
|
|
1616
|
-
stateType:
|
|
1616
|
+
stateType: T
|
|
1617
1617
|
} = c;
|
|
1618
1618
|
return n(ie, {
|
|
1619
1619
|
selectedKeys: [],
|
|
1620
1620
|
onClick: ({
|
|
1621
1621
|
key: z
|
|
1622
|
-
}) => Y(z,
|
|
1622
|
+
}) => Y(z, T)
|
|
1623
1623
|
}, Xn(v = En.map((z) => n(_n, {
|
|
1624
1624
|
key: z.key,
|
|
1625
1625
|
disabled: _(z.key, B)
|
|
@@ -1649,25 +1649,25 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1649
1649
|
}, [(B = v.meta) == null ? void 0 : B.title, o.activeKey === A(v) && n(Xt, {
|
|
1650
1650
|
class: [`${h}-reload-btn`, l.value],
|
|
1651
1651
|
spin: i.value,
|
|
1652
|
-
onClick: (
|
|
1653
|
-
|
|
1652
|
+
onClick: (T) => {
|
|
1653
|
+
T.stopPropagation(), !i.value && N();
|
|
1654
1654
|
}
|
|
1655
1655
|
}, null), r.value.length > 1 && !D(v) && n(dt, {
|
|
1656
1656
|
class: [`${h}-close-btn`, l.value],
|
|
1657
|
-
onClick: (
|
|
1658
|
-
|
|
1657
|
+
onClick: (T) => {
|
|
1658
|
+
T.stopPropagation(), !i.value && P(A(v) || "");
|
|
1659
1659
|
}
|
|
1660
1660
|
}, null)])];
|
|
1661
1661
|
}
|
|
1662
1662
|
});
|
|
1663
1663
|
};
|
|
1664
|
-
return () =>
|
|
1664
|
+
return () => F(n(Q, null, [!!e.isFixedMultiTab && Bt(n("div", {
|
|
1665
1665
|
class: [`${h}-fixed`, l.value]
|
|
1666
1666
|
}, null), [[$t, e.visible]]), n(Le, {
|
|
1667
1667
|
hideAdd: !0,
|
|
1668
1668
|
type: "editable-card",
|
|
1669
1669
|
style: C.value,
|
|
1670
|
-
class:
|
|
1670
|
+
class: f.value,
|
|
1671
1671
|
activeKey: o.activeKey,
|
|
1672
1672
|
onTabClick: H
|
|
1673
1673
|
}, {
|
|
@@ -1702,13 +1702,13 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1702
1702
|
hashId: i,
|
|
1703
1703
|
prefixCls: o,
|
|
1704
1704
|
isMobile: d,
|
|
1705
|
-
loading:
|
|
1705
|
+
loading: g,
|
|
1706
1706
|
collapsed: m,
|
|
1707
1707
|
siderWidth: w,
|
|
1708
1708
|
isShowTabsBar: p,
|
|
1709
1709
|
isFixedMultiTab: R,
|
|
1710
1710
|
onReloadPage: h,
|
|
1711
|
-
onChangeTabs:
|
|
1711
|
+
onChangeTabs: F
|
|
1712
1712
|
} = e;
|
|
1713
1713
|
if (e.isChildrenLayout)
|
|
1714
1714
|
return (I = t.default) == null ? void 0 : I.call(t);
|
|
@@ -1719,22 +1719,22 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1719
1719
|
return n(Q, null, [n(Gn, {
|
|
1720
1720
|
visible: (U(r) === "mix" ? U(l).length > 0 : !0) && p,
|
|
1721
1721
|
isMobile: d,
|
|
1722
|
-
loading:
|
|
1722
|
+
loading: g,
|
|
1723
1723
|
isFixedMultiTab: R,
|
|
1724
1724
|
siderWidth: w,
|
|
1725
1725
|
collapsed: m,
|
|
1726
1726
|
onReloadPage: h,
|
|
1727
|
-
onChangeTabs:
|
|
1727
|
+
onChangeTabs: F
|
|
1728
1728
|
}, null), n(qn, {
|
|
1729
1729
|
style: a.style,
|
|
1730
1730
|
class: [`${o}-content`]
|
|
1731
1731
|
}, {
|
|
1732
1732
|
default: () => {
|
|
1733
1733
|
var k;
|
|
1734
|
-
return [
|
|
1734
|
+
return [g && n(un, null, null), n("div", {
|
|
1735
1735
|
class: [`${o}-content-spin-container`, i],
|
|
1736
1736
|
style: {
|
|
1737
|
-
opacity:
|
|
1737
|
+
opacity: g ? "0" : void 0
|
|
1738
1738
|
}
|
|
1739
1739
|
}, [(k = t.default) == null ? void 0 : k.call(t)])];
|
|
1740
1740
|
}
|
|
@@ -1898,7 +1898,7 @@ const Zn = (e) => {
|
|
|
1898
1898
|
token: o
|
|
1899
1899
|
} = he(), {
|
|
1900
1900
|
getPrefixCls: d,
|
|
1901
|
-
openKeys:
|
|
1901
|
+
openKeys: g,
|
|
1902
1902
|
selectedKeys: m
|
|
1903
1903
|
} = te(), {
|
|
1904
1904
|
width: w
|
|
@@ -1908,26 +1908,26 @@ const Zn = (e) => {
|
|
|
1908
1908
|
}), {
|
|
1909
1909
|
wrapSSR: R,
|
|
1910
1910
|
hashId: h
|
|
1911
|
-
} = ae("ProGlobalHeader", [Jn], p),
|
|
1911
|
+
} = ae("ProGlobalHeader", [Jn], p), F = b(() => e.isMobile ? !1 : e.layout === "top" || e.layout === "mix" && e.splitMenus), l = b(() => ({
|
|
1912
1912
|
[`${h.value}`]: !0,
|
|
1913
1913
|
[`${p}`]: !0,
|
|
1914
1914
|
[`${p}-${e.layout}`]: !0
|
|
1915
1915
|
})), r = (y) => {
|
|
1916
|
-
var
|
|
1916
|
+
var f;
|
|
1917
1917
|
if (i.currentRoute) {
|
|
1918
1918
|
const C = i.currentRoute.value.matched.concat();
|
|
1919
|
-
e.onSelect && y === "select" && e.onSelect(C.filter(($) => $.name !== "index").map(($) => $.path)), e.onOpenKeys && y === "openKeys" && ((
|
|
1919
|
+
e.onSelect && y === "select" && e.onSelect(C.filter(($) => $.name !== "index").map(($) => $.path)), e.onOpenKeys && y === "openKeys" && ((f = e.onOpenKeys) == null || f.call(e, C.filter(($) => $.path !== i.currentRoute.value.path).map(($) => $.path)));
|
|
1920
1920
|
}
|
|
1921
1921
|
}, I = () => {
|
|
1922
1922
|
a("collapse", !e.collapsed);
|
|
1923
1923
|
}, k = b(() => e.collapsedButtonRender || bt), x = () => {
|
|
1924
|
-
var y;
|
|
1925
|
-
return n(Q, null, [
|
|
1924
|
+
var y, f;
|
|
1925
|
+
return n(Q, null, [F.value ? n("div", {
|
|
1926
1926
|
style: {
|
|
1927
1927
|
flex: 1
|
|
1928
1928
|
},
|
|
1929
1929
|
class: [`${p}-menu`, h.value]
|
|
1930
|
-
}, [n(Pe, {
|
|
1930
|
+
}, [((y = e.menuData) == null ? void 0 : y.length) > 0 && n(Pe, {
|
|
1931
1931
|
theme: {
|
|
1932
1932
|
components: {
|
|
1933
1933
|
Layout: {
|
|
@@ -1949,7 +1949,7 @@ const Zn = (e) => {
|
|
|
1949
1949
|
mode: e.mode,
|
|
1950
1950
|
collapsed: e.collapsed,
|
|
1951
1951
|
menuData: e.menuData,
|
|
1952
|
-
openKeys:
|
|
1952
|
+
openKeys: g.value,
|
|
1953
1953
|
selectedKeys: m.value,
|
|
1954
1954
|
iconfontUrl: e.iconfontUrl,
|
|
1955
1955
|
menuItemRender: e.menuItemRender,
|
|
@@ -1966,17 +1966,18 @@ const Zn = (e) => {
|
|
|
1966
1966
|
style: {
|
|
1967
1967
|
flex: 1
|
|
1968
1968
|
}
|
|
1969
|
-
}, [(
|
|
1969
|
+
}, [(f = t.default) == null ? void 0 : f.call(t)]), e.layout !== "simple" && n(ea, G(e, {
|
|
1970
1970
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
1971
1971
|
rightContentRender: e.rightContentRender
|
|
1972
1972
|
}), null)]);
|
|
1973
1973
|
};
|
|
1974
1974
|
return () => {
|
|
1975
|
+
console.log(F.value);
|
|
1975
1976
|
const y = n("span", {
|
|
1976
1977
|
key: "logo",
|
|
1977
1978
|
onClick: () => {
|
|
1978
|
-
var
|
|
1979
|
-
return (
|
|
1979
|
+
var f;
|
|
1980
|
+
return (f = e.onMenuHeaderClick) == null ? void 0 : f.call(e);
|
|
1980
1981
|
},
|
|
1981
1982
|
class: [`${p}-logo`, e.isMobile ? "mobile" : "", h.value]
|
|
1982
1983
|
}, [n("a", null, [yt(e.logo)])]);
|
|
@@ -2014,7 +2015,7 @@ const {
|
|
|
2014
2015
|
fixedHeader: i,
|
|
2015
2016
|
headerHeight: o,
|
|
2016
2017
|
layout: d,
|
|
2017
|
-
onCollapse:
|
|
2018
|
+
onCollapse: g,
|
|
2018
2019
|
splitMenus: m
|
|
2019
2020
|
} = Ie(e), {
|
|
2020
2021
|
getPrefixCls: w,
|
|
@@ -2026,9 +2027,9 @@ const {
|
|
|
2026
2027
|
suffixCls: "fixed-header",
|
|
2027
2028
|
isPor: !0
|
|
2028
2029
|
}), {
|
|
2029
|
-
wrapSSR:
|
|
2030
|
+
wrapSSR: F,
|
|
2030
2031
|
hashId: l
|
|
2031
|
-
} = ae("ProLayoutHeader", [Zn], R), r = b(() => d.value === "wide"), I = b(() => i.value), k = b(() => d.value === "mix" || r.value), x = b(() => d.value === "side" || d.value === "simple"), y = b(() => x.value && "light" || t.value),
|
|
2032
|
+
} = ae("ProLayoutHeader", [Zn], R), r = b(() => d.value === "wide"), I = b(() => i.value), k = b(() => d.value === "mix" || r.value), x = b(() => d.value === "side" || d.value === "simple"), y = b(() => x.value && "light" || t.value), f = b(() => ({
|
|
2032
2033
|
[`${l.value}`]: !0,
|
|
2033
2034
|
[`${R}-${y.value}`]: !0,
|
|
2034
2035
|
[`${R}`]: !0,
|
|
@@ -2037,7 +2038,7 @@ const {
|
|
|
2037
2038
|
const O = n(ta, G(e, {
|
|
2038
2039
|
theme: y.value,
|
|
2039
2040
|
mode: "horizontal",
|
|
2040
|
-
onCollapse:
|
|
2041
|
+
onCollapse: g.value,
|
|
2041
2042
|
menuData: $.value
|
|
2042
2043
|
}), {
|
|
2043
2044
|
default: () => [k.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
|
|
@@ -2046,7 +2047,7 @@ const {
|
|
|
2046
2047
|
};
|
|
2047
2048
|
return () => {
|
|
2048
2049
|
let O;
|
|
2049
|
-
return
|
|
2050
|
+
return F(n(Q, null, [I.value && !r.value && n(Qe, {
|
|
2050
2051
|
theme: y.value,
|
|
2051
2052
|
style: {
|
|
2052
2053
|
height: `${o.value}px`,
|
|
@@ -2055,7 +2056,7 @@ const {
|
|
|
2055
2056
|
}
|
|
2056
2057
|
}, null), n(Qe, {
|
|
2057
2058
|
theme: y.value,
|
|
2058
|
-
class:
|
|
2059
|
+
class: f.value,
|
|
2059
2060
|
style: {
|
|
2060
2061
|
height: `${o.value}px`,
|
|
2061
2062
|
lineHeight: `${o.value}px`,
|
|
@@ -2088,20 +2089,20 @@ const {
|
|
|
2088
2089
|
wrapSSR: i,
|
|
2089
2090
|
hashId: o
|
|
2090
2091
|
} = ae("ProLayout", [Wn, Kn], a), d = on(), {
|
|
2091
|
-
token:
|
|
2092
|
+
token: g
|
|
2092
2093
|
} = he(), m = b(() => {
|
|
2093
2094
|
var y;
|
|
2094
|
-
return (y =
|
|
2095
|
+
return (y = g == null ? void 0 : g.value) == null ? void 0 : y.colorPrimary;
|
|
2095
2096
|
});
|
|
2096
2097
|
Ft(() => {
|
|
2097
2098
|
m.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", m.value);
|
|
2098
2099
|
});
|
|
2099
|
-
const w = b(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = b(() => e.layout === "wide"), R = b(() => w.value), h = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth),
|
|
2100
|
+
const w = b(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = b(() => e.layout === "wide"), R = b(() => w.value), h = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), F = b(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = b(() => (d.value === "sm" || d.value === "xs") && !e.disableMobile && !p.value), r = rt({
|
|
2100
2101
|
position: "relative"
|
|
2101
2102
|
});
|
|
2102
2103
|
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (r.minHeight = 0);
|
|
2103
|
-
const I = (y,
|
|
2104
|
-
matchMenuKeys:
|
|
2104
|
+
const I = (y, f) => y.headerRender === !1 || y.pure ? null : n(Fe, G(y, {
|
|
2105
|
+
matchMenuKeys: f || []
|
|
2105
2106
|
}), null), k = b(() => ({
|
|
2106
2107
|
...e.breadcrumb,
|
|
2107
2108
|
itemRender: K(t, e, "breadcrumbRender")
|
|
@@ -2109,7 +2110,7 @@ const {
|
|
|
2109
2110
|
return Rn({
|
|
2110
2111
|
getPrefixCls: ge,
|
|
2111
2112
|
...se(Ie(e), ["layout", "waterMark", "menuData", "openKeys", "splitMenus", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps"].concat(Object.keys(pt))),
|
|
2112
|
-
theme:
|
|
2113
|
+
theme: F.value,
|
|
2113
2114
|
hasContentWide: p,
|
|
2114
2115
|
isMobile: l,
|
|
2115
2116
|
siderWidth: h,
|
|
@@ -2119,8 +2120,8 @@ const {
|
|
|
2119
2120
|
flatMenu: R,
|
|
2120
2121
|
pageHeaderRender: b(() => K(t, e, "pageHeaderRender"))
|
|
2121
2122
|
}), () => {
|
|
2122
|
-
var
|
|
2123
|
-
const y = K(t, e, "collapsedButtonRender"),
|
|
2123
|
+
var T;
|
|
2124
|
+
const y = K(t, e, "collapsedButtonRender"), f = K(t, e, "headerContentRender"), C = K(t, e, "rightContentRender"), $ = K(t, e, "headerRender"), u = K(t, e, "footerRender"), S = K(t, e, "links"), M = K(t, e, "copyrightRender"), O = K(t, e, "extraRightDropdownRender"), P = K(t, e, "menuHeaderRender"), H = K(t, e, "menuExtraRender"), N = K(t, e, "menuContentRender"), D = K(t, e, "menuFooterRender"), V = K(t, e, "menuItemRender"), Y = K(t, e, "subMenuItemRender"), _ = {
|
|
2124
2125
|
menuItemRender: V,
|
|
2125
2126
|
subMenuItemRender: Y
|
|
2126
2127
|
}, E = b(() => I({
|
|
@@ -2132,9 +2133,9 @@ const {
|
|
|
2132
2133
|
rightContentRender: C,
|
|
2133
2134
|
extraRightDropdownRender: O,
|
|
2134
2135
|
headerTitleRender: P,
|
|
2135
|
-
headerContentRender:
|
|
2136
|
+
headerContentRender: f,
|
|
2136
2137
|
headerRender: $,
|
|
2137
|
-
theme:
|
|
2138
|
+
theme: F.value
|
|
2138
2139
|
}, e.matchMenuKeys)), J = b(() => ({
|
|
2139
2140
|
[`${o.value}`]: !0,
|
|
2140
2141
|
[`${a}`]: !0,
|
|
@@ -2148,7 +2149,7 @@ const {
|
|
|
2148
2149
|
} : void 0), B = b(() => p.value ? {
|
|
2149
2150
|
minHeight: "835px"
|
|
2150
2151
|
} : {});
|
|
2151
|
-
return i(n(Q, null, [e.pure ? (
|
|
2152
|
+
return i(n(Q, null, [e.pure ? (T = t.default) == null ? void 0 : T.call(t) : n("div", {
|
|
2152
2153
|
class: J.value,
|
|
2153
2154
|
style: c.value
|
|
2154
2155
|
}, [n(fe, {
|
|
@@ -2156,7 +2157,7 @@ const {
|
|
|
2156
2157
|
}, {
|
|
2157
2158
|
default: () => [n(Be, G(je(e, ["pure", "theme"]), {
|
|
2158
2159
|
links: S,
|
|
2159
|
-
theme:
|
|
2160
|
+
theme: F.value,
|
|
2160
2161
|
isMobile: l.value,
|
|
2161
2162
|
menuHeaderRender: P,
|
|
2162
2163
|
menuContentRender: N,
|
|
@@ -2211,7 +2212,7 @@ const {
|
|
|
2211
2212
|
a("update:collapsed", m), a("collapse", m);
|
|
2212
2213
|
}, d = (m) => {
|
|
2213
2214
|
a("update:open-keys", m), a("openKeys", m);
|
|
2214
|
-
},
|
|
2215
|
+
}, g = (m) => {
|
|
2215
2216
|
a("update:selected-keys", m), a("select", m);
|
|
2216
2217
|
};
|
|
2217
2218
|
return () => n(Pe, {
|
|
@@ -2225,7 +2226,7 @@ const {
|
|
|
2225
2226
|
token: e.token
|
|
2226
2227
|
}, i.value), {
|
|
2227
2228
|
default: () => [n(aa, G(je(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
|
|
2228
|
-
onSelect:
|
|
2229
|
+
onSelect: g,
|
|
2229
2230
|
onOpenKeys: d,
|
|
2230
2231
|
onCollapse: o
|
|
2231
2232
|
}), t)]
|
|
@@ -2515,9 +2516,9 @@ const {
|
|
|
2515
2516
|
title: d
|
|
2516
2517
|
}, {
|
|
2517
2518
|
default: () => {
|
|
2518
|
-
var
|
|
2519
|
+
var g, m;
|
|
2519
2520
|
return [n("div", {
|
|
2520
|
-
class: [`${t}-block ${e.hashId}`.trim(), ((
|
|
2521
|
+
class: [`${t}-block ${e.hashId}`.trim(), ((g = e.settingValue) == null ? void 0 : g.primaryColor) === o ? `${t}-block-checked` : ""],
|
|
2521
2522
|
style: {
|
|
2522
2523
|
backgroundColor: o
|
|
2523
2524
|
},
|
|
@@ -2620,14 +2621,14 @@ const da = /* @__PURE__ */ W({
|
|
|
2620
2621
|
isPor: !0
|
|
2621
2622
|
}), {
|
|
2622
2623
|
wrapSSR: d,
|
|
2623
|
-
hashId:
|
|
2624
|
+
hashId: g
|
|
2624
2625
|
} = ae("ProThemeEditor", [ra], o), {
|
|
2625
2626
|
token: m
|
|
2626
2627
|
} = he(), w = b(() => {
|
|
2627
2628
|
var l;
|
|
2628
2629
|
return (l = m.value) == null ? void 0 : l.layout;
|
|
2629
2630
|
}), p = b(() => {
|
|
2630
|
-
var l, r, I, k, x, y,
|
|
2631
|
+
var l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B;
|
|
2631
2632
|
return [{
|
|
2632
2633
|
key: "colorBgMenu",
|
|
2633
2634
|
title: "全部背景",
|
|
@@ -2647,7 +2648,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2647
2648
|
}, {
|
|
2648
2649
|
key: "colorBgMenuItemSelected",
|
|
2649
2650
|
title: "菜单选中背景",
|
|
2650
|
-
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["mix", "wide"].includes((
|
|
2651
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["mix", "wide"].includes((f = e.settingValue) == null ? void 0 : f.layout)
|
|
2651
2652
|
}, {
|
|
2652
2653
|
key: "colorDarkBgMenuItemSelected",
|
|
2653
2654
|
title: "菜单选中背景",
|
|
@@ -2678,7 +2679,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2678
2679
|
disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "light" || ((v = e.settingValue) == null ? void 0 : v.theme) === "dark" && ["side", "simple"].includes((B = e.settingValue) == null ? void 0 : B.layout)
|
|
2679
2680
|
}];
|
|
2680
2681
|
}), R = b(() => {
|
|
2681
|
-
var l, r, I, k, x, y,
|
|
2682
|
+
var l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B, T, z, q, X, ne, ee, Xe;
|
|
2682
2683
|
return [{
|
|
2683
2684
|
key: "colorBgMenu",
|
|
2684
2685
|
title: "全部背景",
|
|
@@ -2690,7 +2691,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2690
2691
|
}, {
|
|
2691
2692
|
key: "colorSubItemBg",
|
|
2692
2693
|
title: "子菜单背景",
|
|
2693
|
-
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["side", "simple"].includes((
|
|
2694
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["side", "simple"].includes((f = e.settingValue) == null ? void 0 : f.layout)
|
|
2694
2695
|
}, {
|
|
2695
2696
|
key: "colorDarkSubItemBg",
|
|
2696
2697
|
title: "子菜单背景",
|
|
@@ -2722,7 +2723,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2722
2723
|
}, {
|
|
2723
2724
|
key: "colorDarkTextMenuHover",
|
|
2724
2725
|
title: "菜单文字移入颜色",
|
|
2725
|
-
disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "light" || ((
|
|
2726
|
+
disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "light" || ((T = e.settingValue) == null ? void 0 : T.theme) === "dark" && ["mix", "wide"].includes((z = e.settingValue) == null ? void 0 : z.layout)
|
|
2726
2727
|
}, {
|
|
2727
2728
|
key: "colorTextMenuSelected",
|
|
2728
2729
|
title: "菜单文字选中颜色",
|
|
@@ -2732,7 +2733,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2732
2733
|
title: "菜单文字选中颜色",
|
|
2733
2734
|
disabled: ((ne = e.settingValue) == null ? void 0 : ne.theme) === "light" || ((ee = e.settingValue) == null ? void 0 : ee.theme) === "dark" && ["mix", "wide"].includes((Xe = e.settingValue) == null ? void 0 : Xe.layout)
|
|
2734
2735
|
}];
|
|
2735
|
-
}), h = b(() => a.value === "header" ? p.value : a.value === "sider" ? R.value : []),
|
|
2736
|
+
}), h = b(() => a.value === "header" ? p.value : a.value === "sider" ? R.value : []), F = (l) => {
|
|
2736
2737
|
var r, I;
|
|
2737
2738
|
return (I = (r = w.value) == null ? void 0 : r[a.value]) == null ? void 0 : I[l];
|
|
2738
2739
|
};
|
|
@@ -2740,11 +2741,11 @@ const da = /* @__PURE__ */ W({
|
|
|
2740
2741
|
var r, I, k;
|
|
2741
2742
|
let l;
|
|
2742
2743
|
return d(n("div", {
|
|
2743
|
-
class: [o,
|
|
2744
|
+
class: [o, g.value]
|
|
2744
2745
|
}, [n("h3", {
|
|
2745
|
-
class: [`${o}-title`,
|
|
2746
|
+
class: [`${o}-title`, g.value]
|
|
2746
2747
|
}, [oe("主题编辑器"), n("div", {
|
|
2747
|
-
class: [`${o}-sub-title`,
|
|
2748
|
+
class: [`${o}-sub-title`, g.value]
|
|
2748
2749
|
}, [n("span", null, [(r = Mt.find((x) => {
|
|
2749
2750
|
var y;
|
|
2750
2751
|
return x.key === ((y = e.settingValue) == null ? void 0 : y.theme);
|
|
@@ -2756,9 +2757,9 @@ const da = /* @__PURE__ */ W({
|
|
|
2756
2757
|
var y;
|
|
2757
2758
|
return x.key === ((y = e.settingValue) == null ? void 0 : y.layout);
|
|
2758
2759
|
})) == null ? void 0 : I.title])])]), n("div", {
|
|
2759
|
-
class: [`${o}-content`,
|
|
2760
|
+
class: [`${o}-content`, g.value]
|
|
2760
2761
|
}, [n(le, {
|
|
2761
|
-
class: `${o}-list ${
|
|
2762
|
+
class: `${o}-list ${g.value}`.trim(),
|
|
2762
2763
|
split: !1,
|
|
2763
2764
|
size: "small",
|
|
2764
2765
|
renderItem: ({
|
|
@@ -2790,7 +2791,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2790
2791
|
tab: x.title
|
|
2791
2792
|
}, {
|
|
2792
2793
|
default: () => [n(le, {
|
|
2793
|
-
class: `${o}-list ${
|
|
2794
|
+
class: `${o}-list ${g.value}`.trim(),
|
|
2794
2795
|
split: !1,
|
|
2795
2796
|
size: "small",
|
|
2796
2797
|
renderItem: ({
|
|
@@ -2807,11 +2808,11 @@ const da = /* @__PURE__ */ W({
|
|
|
2807
2808
|
dataSource: h.value.filter((y) => !y.disabled).map((y) => ({
|
|
2808
2809
|
...y,
|
|
2809
2810
|
action: n(Ge, {
|
|
2810
|
-
value:
|
|
2811
|
+
value: F(y.key),
|
|
2811
2812
|
actions: ["confirm"],
|
|
2812
2813
|
modes: ["rgb"],
|
|
2813
2814
|
size: "small",
|
|
2814
|
-
onConfirm: (
|
|
2815
|
+
onConfirm: (f) => e.onChange && e.onChange(f, a.value, y.key)
|
|
2815
2816
|
}, null)
|
|
2816
2817
|
}))
|
|
2817
2818
|
}, null)]
|
|
@@ -2872,7 +2873,7 @@ const {
|
|
|
2872
2873
|
hashId: i
|
|
2873
2874
|
} = ae("SettingsDrawOthers", [ua], t);
|
|
2874
2875
|
return () => {
|
|
2875
|
-
var d,
|
|
2876
|
+
var d, g, m, w, p, R, h, F, l, r, I, k, x, y;
|
|
2876
2877
|
let o;
|
|
2877
2878
|
return a(n("div", {
|
|
2878
2879
|
class: [t, i.value]
|
|
@@ -2883,29 +2884,29 @@ const {
|
|
|
2883
2884
|
split: !1,
|
|
2884
2885
|
size: "small",
|
|
2885
2886
|
renderItem: ({
|
|
2886
|
-
item:
|
|
2887
|
+
item: f
|
|
2887
2888
|
}) => n(Me, {
|
|
2888
|
-
title:
|
|
2889
|
+
title: f.disabled ? f.disabledReason : "",
|
|
2889
2890
|
placement: "left"
|
|
2890
2891
|
}, {
|
|
2891
2892
|
default: () => [n(le.Item, {
|
|
2892
|
-
actions: [
|
|
2893
|
+
actions: [f.action]
|
|
2893
2894
|
}, {
|
|
2894
2895
|
default: () => [n("span", {
|
|
2895
2896
|
style: {
|
|
2896
|
-
opacity:
|
|
2897
|
+
opacity: f.disabled ? 0.5 : 1
|
|
2897
2898
|
}
|
|
2898
|
-
}, [
|
|
2899
|
+
}, [f.title])]
|
|
2899
2900
|
})]
|
|
2900
2901
|
}),
|
|
2901
2902
|
dataSource: [{
|
|
2902
2903
|
title: "禁用动画",
|
|
2903
2904
|
action: n(st, {
|
|
2904
|
-
checked: !((
|
|
2905
|
+
checked: !((g = (d = e.settingValue) == null ? void 0 : d.animate) != null && g.disabled),
|
|
2905
2906
|
size: "small",
|
|
2906
|
-
onChange: (
|
|
2907
|
+
onChange: (f) => {
|
|
2907
2908
|
var C;
|
|
2908
|
-
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "disabled", !
|
|
2909
|
+
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "disabled", !f);
|
|
2909
2910
|
}
|
|
2910
2911
|
}, null)
|
|
2911
2912
|
}, {
|
|
@@ -2917,16 +2918,16 @@ const {
|
|
|
2917
2918
|
width: "100px"
|
|
2918
2919
|
},
|
|
2919
2920
|
size: "small",
|
|
2920
|
-
disabled: (
|
|
2921
|
-
getPopupContainer: (
|
|
2922
|
-
onChange: (
|
|
2921
|
+
disabled: (F = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : F.disabled,
|
|
2922
|
+
getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
|
|
2923
|
+
onChange: (f) => {
|
|
2923
2924
|
var C;
|
|
2924
|
-
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "name",
|
|
2925
|
+
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "name", f);
|
|
2925
2926
|
}
|
|
2926
|
-
}, tt(o = nt.map((
|
|
2927
|
-
value:
|
|
2927
|
+
}, tt(o = nt.map((f) => n(ye.Option, {
|
|
2928
|
+
value: f.name
|
|
2928
2929
|
}, {
|
|
2929
|
-
default: () => [
|
|
2930
|
+
default: () => [f.alias]
|
|
2930
2931
|
}))) ? o : {
|
|
2931
2932
|
default: () => [o]
|
|
2932
2933
|
})
|
|
@@ -2943,18 +2944,18 @@ const {
|
|
|
2943
2944
|
minWidth: "120px"
|
|
2944
2945
|
},
|
|
2945
2946
|
disabled: (y = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : y.disabled,
|
|
2946
|
-
getPopupContainer: (
|
|
2947
|
-
onChange: (
|
|
2947
|
+
getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
|
|
2948
|
+
onChange: (f) => {
|
|
2948
2949
|
var C;
|
|
2949
|
-
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "direction",
|
|
2950
|
+
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "direction", f);
|
|
2950
2951
|
}
|
|
2951
2952
|
}, {
|
|
2952
2953
|
default: () => {
|
|
2953
|
-
var
|
|
2954
|
-
return [(
|
|
2954
|
+
var f;
|
|
2955
|
+
return [(f = nt.find((C) => {
|
|
2955
2956
|
var $, u;
|
|
2956
2957
|
return C.name === ((u = ($ = e.settingValue) == null ? void 0 : $.animate) == null ? void 0 : u.name);
|
|
2957
|
-
})) == null ? void 0 :
|
|
2958
|
+
})) == null ? void 0 : f.directions.map((C) => n(ye.Option, {
|
|
2958
2959
|
value: C
|
|
2959
2960
|
}, tt(C) ? C : {
|
|
2960
2961
|
default: () => [C]
|
|
@@ -3027,15 +3028,15 @@ const {
|
|
|
3027
3028
|
}), {
|
|
3028
3029
|
wrapSSR: i,
|
|
3029
3030
|
hashId: o
|
|
3030
|
-
} = ae("ProSettingDraw", [ia], a), d = ke(!1), [
|
|
3031
|
-
value:
|
|
3031
|
+
} = ae("ProSettingDraw", [ia], a), d = ke(!1), [g, m] = xe(!1), [w, p] = xe(!1), [R, h] = xe(!1), F = b(() => ot(se(e.settings, Te))), [l, r] = ln(() => ot(se(e.settings, Te)), {
|
|
3032
|
+
value: F,
|
|
3032
3033
|
onChange: e.onChange
|
|
3033
3034
|
}), I = b(() => e.colorList && tn(e.colorList) ? e.colorList : []), k = b(() => wn(U(l))), {
|
|
3034
3035
|
copy: x,
|
|
3035
3036
|
copied: y,
|
|
3036
|
-
isSupported:
|
|
3037
|
+
isSupported: f
|
|
3037
3038
|
} = sn();
|
|
3038
|
-
me(
|
|
3039
|
+
me(g, () => {
|
|
3039
3040
|
d.value || (d.value = !0);
|
|
3040
3041
|
});
|
|
3041
3042
|
const C = (u, S, M) => {
|
|
@@ -3054,15 +3055,15 @@ const {
|
|
|
3054
3055
|
...Cn(je(P, O))
|
|
3055
3056
|
}));
|
|
3056
3057
|
}, $ = () => {
|
|
3057
|
-
|
|
3058
|
+
f.value && x(JSON.stringify(U(l)));
|
|
3058
3059
|
};
|
|
3059
3060
|
return me(y, (u) => {
|
|
3060
3061
|
u && zt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
3061
3062
|
}), () => i(n(ve, {
|
|
3062
3063
|
width: 300,
|
|
3063
3064
|
closable: !1,
|
|
3064
|
-
open:
|
|
3065
|
-
rootClassName: `${a} ${o.value} ${
|
|
3065
|
+
open: g.value,
|
|
3066
|
+
rootClassName: `${a} ${o.value} ${g.value && `${a}-show`} ${!d.value && `${a}-trantion-none`}`,
|
|
3066
3067
|
placement: "right",
|
|
3067
3068
|
rootStyle: {
|
|
3068
3069
|
zIndex: 999
|
|
@@ -3073,8 +3074,8 @@ const {
|
|
|
3073
3074
|
onClose: () => m(!1),
|
|
3074
3075
|
handle: n("div", {
|
|
3075
3076
|
class: [`${a}-handle`, o.value],
|
|
3076
|
-
onClick: () => m(!
|
|
3077
|
-
}, [
|
|
3077
|
+
onClick: () => m(!g.value)
|
|
3078
|
+
}, [g.value ? n(dt, {
|
|
3078
3079
|
style: at
|
|
3079
3080
|
}, null) : n(Yt, {
|
|
3080
3081
|
style: at
|
|
@@ -4526,14 +4527,14 @@ const Bi = /* @__PURE__ */ W({
|
|
|
4526
4527
|
}), {
|
|
4527
4528
|
wrapSSR: i,
|
|
4528
4529
|
hashId: o
|
|
4529
|
-
} = di(a), d = b(() => [m(!1), `${a}-enter`, o.value].join(" ")),
|
|
4530
|
+
} = di(a), d = b(() => [m(!1), `${a}-enter`, o.value].join(" ")), g = b(() => [m(!0), `${a}-leave`, o.value].join(" ")), m = (p) => {
|
|
4530
4531
|
const R = We.preset.find((l) => e.name == l.name);
|
|
4531
4532
|
if (R == null)
|
|
4532
4533
|
return "";
|
|
4533
4534
|
let h = "";
|
|
4534
4535
|
e.direction == null ? h = R.directions[0] : h = R.directions.find((l) => l == e.direction) || "", h = h == null || h === "default" ? "" : h, h != "" && (h = p && e.reverse ? w(h, R.directions) : h, h = h[0].toUpperCase() + h.substring(1));
|
|
4535
|
-
const
|
|
4536
|
-
return R.name +
|
|
4536
|
+
const F = p ? "Out" : "In";
|
|
4537
|
+
return R.name + F + h;
|
|
4537
4538
|
}, w = (p, R) => {
|
|
4538
4539
|
if (p.length == 0 || p == "x" || p == "y")
|
|
4539
4540
|
return p;
|
|
@@ -4544,7 +4545,7 @@ const Bi = /* @__PURE__ */ W({
|
|
|
4544
4545
|
var p;
|
|
4545
4546
|
return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) : i(n(Tt, {
|
|
4546
4547
|
enterActiveClass: d.value,
|
|
4547
|
-
leaveActiveClass:
|
|
4548
|
+
leaveActiveClass: g.value
|
|
4548
4549
|
}, {
|
|
4549
4550
|
default: () => {
|
|
4550
4551
|
var R;
|