@gx-design-vue/pro-layout 0.1.0-beta.70 → 0.1.0-beta.72
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/ProLayout.d.ts +144 -144
- package/dist/pro-layout.js +479 -474
- package/dist/pro-layout.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/pro-layout.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createVNode as t, defineComponent as E, createTextVNode as U, mergeProps as
|
|
1
|
+
import { createVNode as t, defineComponent as E, createTextVNode as U, mergeProps as te, toRefs as Je, ref as me, reactive as Be, watch as ce, computed as $, unref as re, Fragment as J, withDirectives as zn, vShow as Nn, isVNode as Le, resolveComponent as Gt, nextTick as pt, watchEffect as An, onMounted as Yt, Transition as Hn } from "vue";
|
|
2
2
|
import { pick as ae, cloneDeep as Re, omit as Me } from "lodash-es";
|
|
3
3
|
import { LayoutFooter as jn, Spin as Ct, Tabs as xt, Menu as ye, Dropdown as dt, Layout as We, Popover as En, Badge as Wn, ConfigProvider as St, Drawer as Ye, Avatar as qt, Form as Ft, Input as Qt, Button as qe, Empty as Pt, MenuItem as Tt, Breadcrumb as Kn, Card as Un, Tooltip as et, List as Ie, Switch as Zt, TabPane as _n, Select as Xe, message as Xn, Segmented as Vn, Divider as st, Alert as Gn } from "ant-design-vue";
|
|
4
4
|
import { useLocalStorage as tt, useWindowSize as Yn, useColorMode as qn, useStyleTag as Qn, useMagicKeys as Jt, whenever as mt, useThrottleFn as Zn, onKeyStroke as ct, useFullscreen as Jn, useDebounceFn as ea, useClipboard as ta } from "@vueuse/core";
|
|
@@ -490,12 +490,9 @@ const Fe = {
|
|
|
490
490
|
right: 40
|
|
491
491
|
}
|
|
492
492
|
},
|
|
493
|
-
[`&${e.componentCls}-wide`]: {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
margin: 0,
|
|
497
|
-
marginInlineStart: 20
|
|
498
|
-
}
|
|
493
|
+
[`&${e.componentCls}-wide ${e.componentCls}-content`]: {
|
|
494
|
+
margin: 0,
|
|
495
|
+
marginInlineStart: 20
|
|
499
496
|
},
|
|
500
497
|
[`${e.componentCls}-content`]: {
|
|
501
498
|
position: "relative",
|
|
@@ -550,7 +547,7 @@ const to = ["tabsVisible", "storageTabsBar", "collapsedWidth", "isChildrenLayout
|
|
|
550
547
|
textAlign: "center",
|
|
551
548
|
...i
|
|
552
549
|
}
|
|
553
|
-
}, [t(Ct,
|
|
550
|
+
}, [t(Ct, te(e, {
|
|
554
551
|
indicator: l || ((r = o == null ? void 0 : o.indicator) == null ? void 0 : r.value)
|
|
555
552
|
}), null)]) : null;
|
|
556
553
|
};
|
|
@@ -777,35 +774,35 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
|
|
|
777
774
|
levelMenuData: x,
|
|
778
775
|
flatMenuData: h,
|
|
779
776
|
layout: f,
|
|
780
|
-
splitMenus:
|
|
781
|
-
getPrefixCls:
|
|
782
|
-
} = ie(), p =
|
|
777
|
+
splitMenus: d,
|
|
778
|
+
getPrefixCls: S
|
|
779
|
+
} = ie(), p = S({
|
|
783
780
|
isPor: !0,
|
|
784
781
|
suffixCls: "tabs-route"
|
|
785
782
|
}), {
|
|
786
|
-
wrapSSR:
|
|
783
|
+
wrapSSR: u,
|
|
787
784
|
hashId: v
|
|
788
|
-
} = oo(p),
|
|
785
|
+
} = oo(p), w = tt(p, {
|
|
789
786
|
fixed: [],
|
|
790
787
|
normal: []
|
|
791
788
|
}), s = Be({
|
|
792
|
-
fixed: o.value && ((pe =
|
|
793
|
-
normal: o.value && ((xe =
|
|
789
|
+
fixed: o.value && ((pe = w.value) != null && pe.fixed) ? (Te = w.value) == null ? void 0 : Te.fixed : [],
|
|
790
|
+
normal: o.value && ((xe = w.value) != null && xe.normal) ? (Se = w.value) == null ? void 0 : Se.normal : []
|
|
794
791
|
});
|
|
795
792
|
ce(o, (y) => {
|
|
796
|
-
|
|
793
|
+
w.value = y ? Re(s) : {
|
|
797
794
|
fixed: [],
|
|
798
795
|
normal: []
|
|
799
796
|
};
|
|
800
797
|
});
|
|
801
|
-
const g =
|
|
798
|
+
const g = $(() => s.fixed.concat(s.normal)), m = $(() => f.value === "mix" && !e.isMobile && d.value), I = $(() => K(r.currentRoute.value)), C = $(() => a.value && !n.value), F = $(() => {
|
|
802
799
|
const y = !(m.value && re(h.value).length === 0 || x.value.length === 0 || f.value === "top");
|
|
803
800
|
return C.value && y ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
|
|
804
|
-
}), R =
|
|
801
|
+
}), R = $(() => q(`${p}-wrap`, {
|
|
805
802
|
[`${v.value}`]: !0,
|
|
806
803
|
[`${p}-wrap-fixed`]: a.value,
|
|
807
804
|
[`${p}-wrap-loading`]: e.loading
|
|
808
|
-
})),
|
|
805
|
+
})), B = $(() => {
|
|
809
806
|
const y = {
|
|
810
807
|
display: e.visible ? void 0 : "none"
|
|
811
808
|
};
|
|
@@ -820,14 +817,14 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
|
|
|
820
817
|
});
|
|
821
818
|
ce(() => s, (y) => {
|
|
822
819
|
var O;
|
|
823
|
-
o.value && (
|
|
820
|
+
o.value && (w.value = Re(y)), (O = e.onTabsChange) == null || O.call(e, [...s.fixed, ...s.normal]);
|
|
824
821
|
}, {
|
|
825
822
|
deep: !0
|
|
826
823
|
});
|
|
827
824
|
const P = (y, O) => {
|
|
828
825
|
let T = s.fixed.find((j) => K(j) === y || j.name === O);
|
|
829
826
|
return T || (T = s.normal.find((j) => K(j) === y || j.name === O)), T;
|
|
830
|
-
}, M = (y) => K(y) ===
|
|
827
|
+
}, M = (y) => K(y) === I.value, N = (y) => {
|
|
831
828
|
var T;
|
|
832
829
|
const {
|
|
833
830
|
fixed: O
|
|
@@ -885,7 +882,7 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
|
|
|
885
882
|
y ? r.push({
|
|
886
883
|
path: X(K(y))
|
|
887
884
|
}) : r.push("/");
|
|
888
|
-
},
|
|
885
|
+
}, L = async (y) => {
|
|
889
886
|
const O = g.value.find((T) => y === K(T));
|
|
890
887
|
O && (he(O, {
|
|
891
888
|
type: "remove",
|
|
@@ -901,7 +898,7 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
|
|
|
901
898
|
i.value = !0, e.onReloadPage && ((y = e.onReloadPage) == null || y.call(e)), setTimeout(() => {
|
|
902
899
|
i.value = !1;
|
|
903
900
|
}, 500);
|
|
904
|
-
}, W = (y) => l[y],
|
|
901
|
+
}, W = (y) => l[y], ee = (y) => {
|
|
905
902
|
const O = g.value.find((T) => K(T) === W(y));
|
|
906
903
|
l.activeKey !== W(y) && (s.normal.length > 0 ? P(K(O)) || r.push(X(W(y))) : de());
|
|
907
904
|
}, ge = (y, O) => {
|
|
@@ -924,16 +921,16 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
|
|
|
924
921
|
})), s.normal = s.normal.filter((A, ue) => ue !== T));
|
|
925
922
|
break;
|
|
926
923
|
case "close":
|
|
927
|
-
!i.value &&
|
|
924
|
+
!i.value && L(K(j) || "");
|
|
928
925
|
break;
|
|
929
926
|
case "closeOthersTabs":
|
|
930
|
-
s.normal = s.normal.filter((A) => K(A) === W(O) || N(A)),
|
|
927
|
+
s.normal = s.normal.filter((A) => K(A) === W(O) || N(A)), ee(O);
|
|
931
928
|
break;
|
|
932
929
|
case "closeLeftTabs":
|
|
933
|
-
Qe(T) && (s.normal = s.normal.filter((A, ue) => ue >= T || N(A))),
|
|
930
|
+
Qe(T) && (s.normal = s.normal.filter((A, ue) => ue >= T || N(A))), ee(O);
|
|
934
931
|
break;
|
|
935
932
|
case "closeRightTabs":
|
|
936
|
-
Qe(T) && (s.normal = s.normal.filter((A, ue) => ue <= T || N(A))),
|
|
933
|
+
Qe(T) && (s.normal = s.normal.filter((A, ue) => ue <= T || N(A))), ee(O);
|
|
937
934
|
break;
|
|
938
935
|
case "closeAllTabs":
|
|
939
936
|
s.normal = s.normal.filter((A) => N(A)), de();
|
|
@@ -989,7 +986,7 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
|
|
|
989
986
|
})) ? O : {
|
|
990
987
|
default: () => [O]
|
|
991
988
|
});
|
|
992
|
-
},
|
|
989
|
+
}, Z = ({
|
|
993
990
|
router: y
|
|
994
991
|
}) => {
|
|
995
992
|
const O = e.itemRender ? e.itemRender(y) : null, T = N(y);
|
|
@@ -1019,7 +1016,7 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
|
|
|
1019
1016
|
}, null), g.value.length > 1 && !N(y) && t(ot, {
|
|
1020
1017
|
class: [`${p}-close-btn`, v.value],
|
|
1021
1018
|
onClick: (z) => {
|
|
1022
|
-
z.stopPropagation(), !i.value &&
|
|
1019
|
+
z.stopPropagation(), !i.value && L(K(y) || "");
|
|
1023
1020
|
}
|
|
1024
1021
|
}, null)])];
|
|
1025
1022
|
}
|
|
@@ -1027,12 +1024,12 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
|
|
|
1027
1024
|
};
|
|
1028
1025
|
return () => {
|
|
1029
1026
|
const y = c.value ? on : ln;
|
|
1030
|
-
return
|
|
1027
|
+
return u(t(J, null, [a.value && zn(t("div", {
|
|
1031
1028
|
class: [`${p}-fixed`, v.value]
|
|
1032
1029
|
}, null), [[Nn, e.visible]]), t(xt, {
|
|
1033
1030
|
hideAdd: !0,
|
|
1034
1031
|
type: "editable-card",
|
|
1035
|
-
style:
|
|
1032
|
+
style: B.value,
|
|
1036
1033
|
class: R.value,
|
|
1037
1034
|
activeKey: l.activeKey,
|
|
1038
1035
|
onTabClick: k
|
|
@@ -1040,7 +1037,7 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
|
|
|
1040
1037
|
default: () => [g.value.map((O) => t(uo, {
|
|
1041
1038
|
key: K(O),
|
|
1042
1039
|
closable: !1,
|
|
1043
|
-
tab: t(
|
|
1040
|
+
tab: t(Z, {
|
|
1044
1041
|
router: O
|
|
1045
1042
|
}, null)
|
|
1046
1043
|
}, null))],
|
|
@@ -1089,20 +1086,20 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
|
|
|
1089
1086
|
flatMenuData: x,
|
|
1090
1087
|
layout: h
|
|
1091
1088
|
} = ie();
|
|
1092
|
-
return t(
|
|
1089
|
+
return t(J, null, [t(fo, te({
|
|
1093
1090
|
visible: l ? r ? !0 : h.value === "mix" ? x.value.length > 0 : !0 : !1
|
|
1094
1091
|
}, c), null), t(ho, {
|
|
1095
1092
|
style: a.style,
|
|
1096
1093
|
class: [`${i}-content`]
|
|
1097
1094
|
}, {
|
|
1098
1095
|
default: () => {
|
|
1099
|
-
var
|
|
1096
|
+
var d;
|
|
1100
1097
|
return [e.loading && t(no, null, null), t("div", {
|
|
1101
1098
|
class: [`${i}-content-spin-container`, o],
|
|
1102
1099
|
style: {
|
|
1103
1100
|
opacity: e.loading ? "0" : void 0
|
|
1104
1101
|
}
|
|
1105
|
-
}, [(
|
|
1102
|
+
}, [(d = n.default) == null ? void 0 : d.call(n)])];
|
|
1106
1103
|
}
|
|
1107
1104
|
})]);
|
|
1108
1105
|
};
|
|
@@ -1431,7 +1428,7 @@ const go = (e) => {
|
|
|
1431
1428
|
} = fe("AppsLogoIcon", [Co], a), [l, r] = be(!1), c = me(), x = me();
|
|
1432
1429
|
return () => {
|
|
1433
1430
|
var h;
|
|
1434
|
-
return o(t(
|
|
1431
|
+
return o(t(J, null, [t("div", {
|
|
1435
1432
|
ref: c,
|
|
1436
1433
|
onClick: (f) => {
|
|
1437
1434
|
f.stopPropagation(), f.preventDefault();
|
|
@@ -1502,103 +1499,103 @@ const Ze = (e) => {
|
|
|
1502
1499
|
} = ie(), o = a({
|
|
1503
1500
|
suffixCls: "menu-item",
|
|
1504
1501
|
isPor: !0
|
|
1505
|
-
}), i =
|
|
1502
|
+
}), i = $(() => p(e.menuData)), l = (u) => {
|
|
1506
1503
|
var v;
|
|
1507
|
-
(v = e.onOpenKeys) == null || v.call(e,
|
|
1508
|
-
}, r = (
|
|
1504
|
+
(v = e.onOpenKeys) == null || v.call(e, u);
|
|
1505
|
+
}, r = (u) => {
|
|
1509
1506
|
var v;
|
|
1510
|
-
(v = e.onSelect) == null || v.call(e,
|
|
1511
|
-
}, c = (
|
|
1507
|
+
(v = e.onSelect) == null || v.call(e, u.selectedKeys);
|
|
1508
|
+
}, c = (u) => {
|
|
1512
1509
|
var v;
|
|
1513
|
-
(v = e.onClick) == null || v.call(e,
|
|
1514
|
-
}, x = (
|
|
1510
|
+
(v = e.onClick) == null || v.call(e, u);
|
|
1511
|
+
}, x = (u, v) => {
|
|
1515
1512
|
var g;
|
|
1516
|
-
const
|
|
1517
|
-
((g = n.currentRoute.value) == null ? void 0 : g.fullPath) !== v.to && s &&
|
|
1518
|
-
}, h = Gt("router-link"), f = (
|
|
1513
|
+
const w = u.link || "", s = wt(w);
|
|
1514
|
+
((g = n.currentRoute.value) == null ? void 0 : g.fullPath) !== v.to && s && w && u.linkStatus === 1 && window.open(w);
|
|
1515
|
+
}, h = Gt("router-link"), f = (u, v) => {
|
|
1519
1516
|
var m;
|
|
1520
|
-
const
|
|
1517
|
+
const w = Ne(u == null ? void 0 : u.icon), s = typeof u.badge == "function" ? t("div", {
|
|
1521
1518
|
class: `${o}-item-bradde`
|
|
1522
|
-
}, [(m =
|
|
1523
|
-
class: [`${o}-title`, !
|
|
1524
|
-
}, [
|
|
1525
|
-
return v ? g : t(
|
|
1519
|
+
}, [(m = u.badge) == null ? void 0 : m.call(u, Me(u, "badge"))]) : null, g = t("span", {
|
|
1520
|
+
class: [`${o}-title`, !w && `${o}-title-no-icon`]
|
|
1521
|
+
}, [u.title]);
|
|
1522
|
+
return v ? g : t(J, null, [g, s ?? (oa(u.badge) && t(Wn, te({
|
|
1526
1523
|
class: `${o}-item-bradde`,
|
|
1527
1524
|
overflowCount: 999
|
|
1528
|
-
},
|
|
1529
|
-
},
|
|
1530
|
-
var F, R,
|
|
1531
|
-
let v,
|
|
1525
|
+
}, u.badge), null))]);
|
|
1526
|
+
}, d = (u) => {
|
|
1527
|
+
var F, R, B, P;
|
|
1528
|
+
let v, w;
|
|
1532
1529
|
const s = {
|
|
1533
|
-
...
|
|
1530
|
+
...u.meta
|
|
1534
1531
|
}, g = s.linkStatus === 1 && s.link ? "a" : h, m = {
|
|
1535
|
-
to:
|
|
1536
|
-
},
|
|
1532
|
+
to: u.linkPath && e.layout === "mix" ? e.toFirstPath ? u.linkPath : "" : u.linkPath || u.path || ""
|
|
1533
|
+
}, I = (F = u.meta) != null && F.icon ? t(g, te(m, {
|
|
1537
1534
|
class: "gx-pro-menu-item",
|
|
1538
1535
|
onClick: () => x(s, m)
|
|
1539
1536
|
}), Ve(v = f(s)) ? v : {
|
|
1540
1537
|
default: () => [v]
|
|
1541
|
-
}) : t(g,
|
|
1538
|
+
}) : t(g, te(m, {
|
|
1542
1539
|
class: "gx-pro-menu-item",
|
|
1543
1540
|
onClick: () => x(s, m)
|
|
1544
|
-
}), Ve(
|
|
1545
|
-
default: () => [
|
|
1546
|
-
}), C = ((R =
|
|
1541
|
+
}), Ve(w = f(s, !0)) ? w : {
|
|
1542
|
+
default: () => [w]
|
|
1543
|
+
}), C = ((R = u.meta) == null ? void 0 : R.icon) && t(Ze, {
|
|
1547
1544
|
className: o,
|
|
1548
|
-
icon: (
|
|
1545
|
+
icon: (B = u.meta) == null ? void 0 : B.icon,
|
|
1549
1546
|
iconfontUrl: e.iconfontUrl,
|
|
1550
|
-
iconType: (P =
|
|
1547
|
+
iconType: (P = u.meta) == null ? void 0 : P.iconType
|
|
1551
1548
|
}, null) || void 0;
|
|
1552
|
-
return [
|
|
1553
|
-
},
|
|
1554
|
-
var s, g, m,
|
|
1555
|
-
if (Array.isArray(
|
|
1556
|
-
let
|
|
1549
|
+
return [I, C];
|
|
1550
|
+
}, S = (u) => {
|
|
1551
|
+
var s, g, m, I, C, F, R;
|
|
1552
|
+
if (Array.isArray(u.children) && u.children.length > 0 && !((s = u == null ? void 0 : u.meta) != null && s.hidden) && !((g = u == null ? void 0 : u.meta) != null && g.hideChildrenInMenu)) {
|
|
1553
|
+
let B;
|
|
1557
1554
|
if (e.subMenuItemRender)
|
|
1558
1555
|
return e.subMenuItemRender({
|
|
1559
|
-
item:
|
|
1560
|
-
children: p(
|
|
1556
|
+
item: u,
|
|
1557
|
+
children: p(u.children)
|
|
1561
1558
|
});
|
|
1562
|
-
const P = (m =
|
|
1559
|
+
const P = (m = u.meta) != null && m.icon ? t("span", {
|
|
1563
1560
|
class: "gx-pro-menu-item"
|
|
1564
|
-
}, [f(
|
|
1561
|
+
}, [f(u.meta)]) : u.meta && f(u.meta), M = ((I = u.meta) == null ? void 0 : I.type) === "group", N = M ? ye.ItemGroup : ye.SubMenu;
|
|
1565
1562
|
return t(N, {
|
|
1566
1563
|
title: P,
|
|
1567
|
-
key:
|
|
1564
|
+
key: u.path,
|
|
1568
1565
|
icon: M ? null : t(Ze, {
|
|
1569
1566
|
className: o,
|
|
1570
|
-
icon: (C =
|
|
1567
|
+
icon: (C = u.meta) == null ? void 0 : C.icon,
|
|
1571
1568
|
iconfontUrl: e.iconfontUrl,
|
|
1572
|
-
iconType: (F =
|
|
1569
|
+
iconType: (F = u.meta) == null ? void 0 : F.iconType
|
|
1573
1570
|
}, null)
|
|
1574
|
-
}, Ve(
|
|
1575
|
-
default: () => [
|
|
1571
|
+
}, Ve(B = p(u.children)) ? B : {
|
|
1572
|
+
default: () => [B]
|
|
1576
1573
|
});
|
|
1577
1574
|
}
|
|
1578
|
-
const [v,
|
|
1575
|
+
const [v, w] = d(u);
|
|
1579
1576
|
return e.menuItemRender && e.menuItemRender({
|
|
1580
|
-
item:
|
|
1577
|
+
item: u,
|
|
1581
1578
|
title: v,
|
|
1582
|
-
icon:
|
|
1579
|
+
icon: w
|
|
1583
1580
|
}) || t(ye.Item, {
|
|
1584
|
-
disabled: (R =
|
|
1585
|
-
key:
|
|
1586
|
-
icon:
|
|
1581
|
+
disabled: (R = u.meta) == null ? void 0 : R.disabled,
|
|
1582
|
+
key: u.path,
|
|
1583
|
+
icon: w
|
|
1587
1584
|
}, Ve(v) ? v : {
|
|
1588
1585
|
default: () => [v]
|
|
1589
1586
|
});
|
|
1590
1587
|
};
|
|
1591
|
-
function p(
|
|
1592
|
-
return
|
|
1588
|
+
function p(u = []) {
|
|
1589
|
+
return u.map((v) => S(v)).filter((v) => v);
|
|
1593
1590
|
}
|
|
1594
|
-
return () => t(ye,
|
|
1591
|
+
return () => t(ye, te({
|
|
1595
1592
|
key: "Menu",
|
|
1596
1593
|
inlineIndent: 16,
|
|
1597
1594
|
mode: e.mode,
|
|
1598
1595
|
theme: e.theme,
|
|
1599
1596
|
openKeys: e.openKeys,
|
|
1600
1597
|
selectedKeys: e.selectedKeys || [],
|
|
1601
|
-
onOpenChange: (
|
|
1598
|
+
onOpenChange: (u) => l(u),
|
|
1602
1599
|
onSelect: r,
|
|
1603
1600
|
onClick: c
|
|
1604
1601
|
}, e.menuProps), {
|
|
@@ -1758,7 +1755,7 @@ const Ze = (e) => {
|
|
|
1758
1755
|
} = e, l = e.logoContentRender;
|
|
1759
1756
|
if (l === !1) return null;
|
|
1760
1757
|
const r = Cn(n, a), c = o && t("h1", null, [o]);
|
|
1761
|
-
return typeof l == "function" ? l(r, e.collapsed ? null : c, e) : l || t(
|
|
1758
|
+
return typeof l == "function" ? l(r, e.collapsed ? null : c, e) : l || t(J, null, [r || null, e.collapsed && (i === "side" || i === "simple") ? null : c]);
|
|
1762
1759
|
}, Lt = /* @__PURE__ */ E({
|
|
1763
1760
|
name: "LogoContent",
|
|
1764
1761
|
props: {
|
|
@@ -1950,11 +1947,11 @@ function Vr(e) {
|
|
|
1950
1947
|
var f;
|
|
1951
1948
|
const c = r.path, x = r.name, h = n.has(x) && n.get(x) !== c;
|
|
1952
1949
|
if ((f = r.meta) != null && f.hidden || !x || h)
|
|
1953
|
-
return (!x || h) && (a.some((
|
|
1950
|
+
return (!x || h) && (a.some((d) => d.name === x && c === r.path) || a.push({ ...r })), null;
|
|
1954
1951
|
if (n.set(x, c), r && (r != null && r.children)) {
|
|
1955
|
-
if (r.children.some((
|
|
1956
|
-
var
|
|
1957
|
-
return
|
|
1952
|
+
if (r.children.some((d) => {
|
|
1953
|
+
var S;
|
|
1954
|
+
return d && !((S = d.meta) != null && S.hidden);
|
|
1958
1955
|
}))
|
|
1959
1956
|
return {
|
|
1960
1957
|
...r,
|
|
@@ -2034,7 +2031,7 @@ const Fo = ["left", "right"], je = ["left", "right", "down", "up"], Po = ["downB
|
|
|
2034
2031
|
};
|
|
2035
2032
|
function wn({ type: e, token: n, dark: a, staticToken: o }) {
|
|
2036
2033
|
var x, h;
|
|
2037
|
-
const i = (x = n.layout) == null ? void 0 : x[e], l = at(e, n, ((h = n.layout) == null ? void 0 : h.key) || ""), r = Object.keys(ut).reduce((f,
|
|
2034
|
+
const i = (x = n.layout) == null ? void 0 : x[e], l = at(e, n, ((h = n.layout) == null ? void 0 : h.key) || ""), r = Object.keys(ut).reduce((f, d) => (f[d] = i[ut[d]] || l[ut[d]], f), {}), c = Object.assign(o, Object.fromEntries(Object.entries(r).filter(([f, d]) => d !== void 0)));
|
|
2038
2035
|
return a && e === "header" && (c.colorActiveBarHeight = 0), c;
|
|
2039
2036
|
}
|
|
2040
2037
|
function zo(e) {
|
|
@@ -2070,33 +2067,33 @@ const {
|
|
|
2070
2067
|
token: h
|
|
2071
2068
|
} = Oe(), {
|
|
2072
2069
|
theme: f,
|
|
2073
|
-
layout:
|
|
2074
|
-
isMobile:
|
|
2070
|
+
layout: d,
|
|
2071
|
+
isMobile: S,
|
|
2075
2072
|
menuLoading: p,
|
|
2076
|
-
breakpoint:
|
|
2073
|
+
breakpoint: u,
|
|
2077
2074
|
fixSiderbar: v,
|
|
2078
|
-
fixedHeader:
|
|
2075
|
+
fixedHeader: w,
|
|
2079
2076
|
collapsed: s,
|
|
2080
2077
|
siderWidth: g,
|
|
2081
2078
|
collapsedWidth: m,
|
|
2082
|
-
menuContentRender:
|
|
2079
|
+
menuContentRender: I,
|
|
2083
2080
|
menuFooterRender: C,
|
|
2084
2081
|
collapsedButtonRender: F
|
|
2085
2082
|
} = Je(e), R = n({
|
|
2086
2083
|
suffixCls: "sider",
|
|
2087
2084
|
isPor: !0
|
|
2088
|
-
}),
|
|
2085
|
+
}), B = $(() => e.layout === "wide"), P = $(() => e.layout === "mix" && !e.isMobile && e.splitMenus), M = $(() => d.value === "side" || d.value === "simple"), N = $(() => e.isMobile || B.value ? !1 : v.value), Q = $(() => (e.layout === "mix" || B.value) && "light" || r.value.theme), {
|
|
2089
2086
|
wrapSSR: _,
|
|
2090
2087
|
hashId: X
|
|
2091
2088
|
} = fe("ProLayoutSiderMenu", [Io, wo, So, xn, (H) => {
|
|
2092
2089
|
var xe, Se;
|
|
2093
|
-
const G = (xe = H == null ? void 0 : H.layout) == null ? void 0 : xe.sider,
|
|
2090
|
+
const G = (xe = H == null ? void 0 : H.layout) == null ? void 0 : xe.sider, Z = at("sider", H, (Se = H.layout) == null ? void 0 : Se.key), {
|
|
2094
2091
|
dark: pe
|
|
2095
2092
|
} = ve(H), Te = nt(H, "sider");
|
|
2096
2093
|
return {
|
|
2097
2094
|
[`${H.proComponentsCls}-basic-layout`]: {
|
|
2098
2095
|
[H.componentCls]: {
|
|
2099
|
-
background: (G == null ? void 0 : G.colorBgMenu) || (
|
|
2096
|
+
background: (G == null ? void 0 : G.colorBgMenu) || (Z == null ? void 0 : Z.colorBgMenu),
|
|
2100
2097
|
boxShadow: Te || pe ? "#0d0d0da6 0 2px 8px" : "2px 0 8px 0 rgba(29,35,41,.05)",
|
|
2101
2098
|
[`${H.componentCls}-footer`]: {
|
|
2102
2099
|
color: G == null ? void 0 : G.colorTextMenu
|
|
@@ -2104,7 +2101,7 @@ const {
|
|
|
2104
2101
|
}
|
|
2105
2102
|
}
|
|
2106
2103
|
};
|
|
2107
|
-
}], R), he =
|
|
2104
|
+
}], R), he = $(() => d.value === "top" ? [] : i.value), de = $(() => e.collapsed ? m.value : g.value), L = $(() => q([X.value, R, S.value ? "shadow" : null, `${R}-${f.value}`, N.value ? `${R}-fixed` : null])), k = $(() => F.value !== !1 ? F.value || In : !1), D = ft(() => e.layout === "simple" || !e.appLogoListRender ? null : t(bn, null, {
|
|
2108
2105
|
default: () => {
|
|
2109
2106
|
var H;
|
|
2110
2107
|
return [typeof e.appLogoListRender == "function" ? (H = e.appLogoListRender) == null ? void 0 : H.call(e) : e.appLogoListRender];
|
|
@@ -2114,11 +2111,11 @@ const {
|
|
|
2114
2111
|
var H;
|
|
2115
2112
|
e.onCollapse && ((H = e.onCollapse) == null || H.call(e, !s.value));
|
|
2116
2113
|
}
|
|
2117
|
-
const
|
|
2114
|
+
const ee = ft(() => {
|
|
2118
2115
|
var G;
|
|
2119
2116
|
if (F.value === !1) return null;
|
|
2120
2117
|
const H = t(Lo, {
|
|
2121
|
-
isMobile:
|
|
2118
|
+
isMobile: S.value,
|
|
2122
2119
|
collapsed: s.value,
|
|
2123
2120
|
onClick: () => W()
|
|
2124
2121
|
}, null);
|
|
@@ -2136,12 +2133,12 @@ const {
|
|
|
2136
2133
|
return () => {
|
|
2137
2134
|
var Se;
|
|
2138
2135
|
let H;
|
|
2139
|
-
const G = M.value && t(Lt,
|
|
2136
|
+
const G = M.value && t(Lt, te({
|
|
2140
2137
|
hashId: X.value,
|
|
2141
2138
|
baseClassName: R
|
|
2142
2139
|
}, ae(e, Object.keys(lt))), {
|
|
2143
2140
|
default: () => [D.value]
|
|
2144
|
-
}),
|
|
2141
|
+
}), Z = e.menuHeaderRender && ((Se = e.menuHeaderRender) == null ? void 0 : Se.call(e, e)), pe = e.menuLinksRender, Te = e.siderActionsRender, xe = t(vn, {
|
|
2145
2142
|
class: `${R}-menu ${X.value}`,
|
|
2146
2143
|
theme: Q.value,
|
|
2147
2144
|
mode: "inline",
|
|
@@ -2190,15 +2187,15 @@ const {
|
|
|
2190
2187
|
}, null), t(Ao, {
|
|
2191
2188
|
collapsible: !0,
|
|
2192
2189
|
trigger: null,
|
|
2193
|
-
class:
|
|
2190
|
+
class: L.value,
|
|
2194
2191
|
style: {
|
|
2195
2192
|
zIndex: N.value ? 101 : void 0,
|
|
2196
|
-
paddingTop: N.value &&
|
|
2193
|
+
paddingTop: N.value && w.value && d.value === "mix" ? `${e.headerHeight}px` : 0,
|
|
2197
2194
|
top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
|
|
2198
2195
|
height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
|
|
2199
2196
|
},
|
|
2200
2197
|
theme: Q.value,
|
|
2201
|
-
breakpoint:
|
|
2198
|
+
breakpoint: u.value || void 0,
|
|
2202
2199
|
collapsed: s.value,
|
|
2203
2200
|
width: g.value,
|
|
2204
2201
|
collapsedWidth: m.value
|
|
@@ -2212,12 +2209,12 @@ const {
|
|
|
2212
2209
|
indicator: (y = x == null ? void 0 : x.indicator) == null ? void 0 : y.value
|
|
2213
2210
|
}, null)]), G || null, Ne(e.menuHeaderRender) && t("div", {
|
|
2214
2211
|
class: q([X.value, `${R}-extra`, !G && `${R}-extra-no-logo`])
|
|
2215
|
-
}, [
|
|
2212
|
+
}, [Z]), t("div", {
|
|
2216
2213
|
style: {
|
|
2217
2214
|
flex: "1 1 0%",
|
|
2218
2215
|
overflow: "hidden auto"
|
|
2219
2216
|
}
|
|
2220
|
-
}, [
|
|
2217
|
+
}, [I.value && ((O = I.value) == null ? void 0 : O.call(I, e, xe)) || xe]), e.layout !== "wide" && t(J, null, [Ne(pe) && tn(pe) && pe.length > 0 && t("div", {
|
|
2221
2218
|
class: `${R}-links ${X.value}`
|
|
2222
2219
|
}, [t(ye, {
|
|
2223
2220
|
theme: Q.value,
|
|
@@ -2233,14 +2230,14 @@ const {
|
|
|
2233
2230
|
default: () => [z]
|
|
2234
2231
|
}))) ? H : {
|
|
2235
2232
|
default: () => [H]
|
|
2236
|
-
})]),
|
|
2233
|
+
})]), S.value ? null : t("div", {
|
|
2237
2234
|
class: q(`${R}-actions`, X.value)
|
|
2238
|
-
}, [Te || t(
|
|
2235
|
+
}, [Te || t(J, null, [t("div", {
|
|
2239
2236
|
class: q(`${R}-actions-item`, X.value),
|
|
2240
2237
|
onClick: () => W()
|
|
2241
2238
|
}, [k.value && ((T = k.value) == null ? void 0 : T.call(k, s.value))])])])]), C.value && t("div", {
|
|
2242
2239
|
class: `${R}-footer ${X.value}`
|
|
2243
|
-
}, [(j = C.value) == null ? void 0 : j.call(C, e)]), c.value ||
|
|
2240
|
+
}, [(j = C.value) == null ? void 0 : j.call(C, e)]), c.value || d.value === "wide" ? null : ee.value];
|
|
2244
2241
|
}
|
|
2245
2242
|
})]
|
|
2246
2243
|
}));
|
|
@@ -2252,7 +2249,7 @@ const {
|
|
|
2252
2249
|
}, Ho = ["mix", "top", "wide"], jo = (e, n) => e === !1 ? null : e ? e(n, null) : n, Eo = /* @__PURE__ */ E({
|
|
2253
2250
|
props: Rn,
|
|
2254
2251
|
setup(e) {
|
|
2255
|
-
return () => e.rightContentRender && typeof e.rightContentRender == "function" ? e.rightContentRender(e) : t(
|
|
2252
|
+
return () => e.rightContentRender && typeof e.rightContentRender == "function" ? e.rightContentRender(e) : t(J, null, null);
|
|
2256
2253
|
}
|
|
2257
2254
|
}), Wo = /* @__PURE__ */ E({
|
|
2258
2255
|
props: Rn,
|
|
@@ -2274,17 +2271,17 @@ const {
|
|
|
2274
2271
|
isPor: !0
|
|
2275
2272
|
}), {
|
|
2276
2273
|
wrapSSR: f,
|
|
2277
|
-
hashId:
|
|
2278
|
-
} = fe("ProGlobalHeader", [go, xn], h),
|
|
2279
|
-
[`${
|
|
2274
|
+
hashId: d
|
|
2275
|
+
} = fe("ProGlobalHeader", [go, xn], h), S = $(() => ({
|
|
2276
|
+
[`${d.value}`]: !0,
|
|
2280
2277
|
[`${h}`]: !0,
|
|
2281
2278
|
[`${h}-${e.layout}`]: !0
|
|
2282
2279
|
})), p = (s, g) => {
|
|
2283
|
-
const m = (e.toFirstPath === void 0 || e.toFirstPath) && e.layout === "mix",
|
|
2284
|
-
e.onSelect && s === "select" && e.onSelect(m ?
|
|
2285
|
-
},
|
|
2280
|
+
const m = (e.toFirstPath === void 0 || e.toFirstPath) && e.layout === "mix", I = a ? a.currentRoute.value.matched.concat() : [];
|
|
2281
|
+
e.onSelect && s === "select" && e.onSelect(m ? I.filter((C) => C.name !== "index").map((C) => C.path) : g), e.onOpenKeys && s === "openKeys" && e.onOpenKeys(m ? I.filter((C) => C.path !== a.currentRoute.value.path).map((C) => C.path) : g);
|
|
2282
|
+
}, u = () => {
|
|
2286
2283
|
n("collapse", !e.collapsed);
|
|
2287
|
-
}, v =
|
|
2284
|
+
}, v = $(() => e.collapsedButtonRender || In), w = () => {
|
|
2288
2285
|
var g;
|
|
2289
2286
|
if (e.headerContentRender) return t("div", {
|
|
2290
2287
|
style: {
|
|
@@ -2299,7 +2296,7 @@ const {
|
|
|
2299
2296
|
style: {
|
|
2300
2297
|
flex: 1
|
|
2301
2298
|
},
|
|
2302
|
-
class: [`${h}-menu`,
|
|
2299
|
+
class: [`${h}-menu`, d.value]
|
|
2303
2300
|
}, [((g = e.menuData) == null ? void 0 : g.length) > 0 && t(St, {
|
|
2304
2301
|
theme: {
|
|
2305
2302
|
components: {
|
|
@@ -2335,13 +2332,13 @@ const {
|
|
|
2335
2332
|
subMenuItemRender: e.subMenuItemRender,
|
|
2336
2333
|
class: {
|
|
2337
2334
|
"top-nav-menu": e.mode === "horizontal",
|
|
2338
|
-
[`${
|
|
2335
|
+
[`${d.value}`]: !0
|
|
2339
2336
|
},
|
|
2340
2337
|
onSelect: (m) => p("select", m),
|
|
2341
2338
|
onOpenKeys: (m) => p("openKeys", m)
|
|
2342
2339
|
}, null)]
|
|
2343
2340
|
})]);
|
|
2344
|
-
return t(
|
|
2341
|
+
return t(J, null, [s, e.layout !== "simple" && t(Eo, te(e, {
|
|
2345
2342
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
2346
2343
|
rightContentRender: e.rightContentRender
|
|
2347
2344
|
}), null)]);
|
|
@@ -2353,30 +2350,30 @@ const {
|
|
|
2353
2350
|
var g;
|
|
2354
2351
|
return (g = e.onLogoClick) == null ? void 0 : g.call(e);
|
|
2355
2352
|
},
|
|
2356
|
-
class: [`${h}-logo`, e.isMobile && "mobile",
|
|
2353
|
+
class: [`${h}-logo`, e.isMobile && "mobile", d.value]
|
|
2357
2354
|
}, [t("a", null, [Cn(e.logo, e.logoStyle)])]);
|
|
2358
2355
|
return f(t("div", {
|
|
2359
|
-
class:
|
|
2360
|
-
}, [e.isMobile ? t(
|
|
2361
|
-
class: `${h}-collapsed-button ${
|
|
2362
|
-
onClick:
|
|
2363
|
-
}, [re(v)(e.collapsed)]),
|
|
2356
|
+
class: S.value
|
|
2357
|
+
}, [e.isMobile ? t(J, null, [jo(e.logoContentRender, s), e.isMobile && re(v) && t("span", {
|
|
2358
|
+
class: `${h}-collapsed-button ${d.value}`,
|
|
2359
|
+
onClick: u
|
|
2360
|
+
}, [re(v)(e.collapsed)]), w()]) : Ho.includes(e.layout) ? t("div", {
|
|
2364
2361
|
style: {
|
|
2365
2362
|
width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
|
|
2366
2363
|
padding: e.layout === "wide" && x.value < e.wideWidth ? "0 50px" : void 0
|
|
2367
2364
|
},
|
|
2368
|
-
class: `${h}-main ${
|
|
2365
|
+
class: `${h}-main ${d.value}`
|
|
2369
2366
|
}, [t("div", {
|
|
2370
|
-
class: `${h}-main-left ${
|
|
2367
|
+
class: `${h}-main-left ${d.value}`
|
|
2371
2368
|
}, [e.layout !== "wide" && e.appLogoListRender && t(bn, null, {
|
|
2372
2369
|
default: () => {
|
|
2373
2370
|
var g;
|
|
2374
2371
|
return [typeof e.appLogoListRender == "function" ? (g = e.appLogoListRender) == null ? void 0 : g.call(e) : e.appLogoListRender];
|
|
2375
2372
|
}
|
|
2376
|
-
}), t(Lt,
|
|
2377
|
-
hashId:
|
|
2373
|
+
}), t(Lt, te({
|
|
2374
|
+
hashId: d.value,
|
|
2378
2375
|
baseClassName: h
|
|
2379
|
-
}, e), null)]),
|
|
2376
|
+
}, e), null)]), w()]) : w()]));
|
|
2380
2377
|
};
|
|
2381
2378
|
}
|
|
2382
2379
|
});
|
|
@@ -2402,16 +2399,14 @@ const {
|
|
|
2402
2399
|
menuData: x,
|
|
2403
2400
|
contentFullScreen: h,
|
|
2404
2401
|
menuState: f,
|
|
2405
|
-
headerHeight:
|
|
2406
|
-
} = ie(),
|
|
2402
|
+
headerHeight: d
|
|
2403
|
+
} = ie(), S = c({
|
|
2407
2404
|
suffixCls: "header",
|
|
2408
2405
|
isPor: !0
|
|
2409
2406
|
}), p = c({
|
|
2410
2407
|
suffixCls: "fixed-header",
|
|
2411
2408
|
isPor: !0
|
|
2412
|
-
}),
|
|
2413
|
-
I(() => o.value === "mix" || d.value);
|
|
2414
|
-
const S = I(() => o.value === "side" || o.value === "simple"), s = I(() => S.value && "light" || f.value.theme), {
|
|
2409
|
+
}), u = $(() => o.value === "wide"), v = $(() => a.value), w = $(() => o.value === "side" || o.value === "simple"), s = $(() => w.value && "light" || f.value.theme), {
|
|
2415
2410
|
wrapSSR: g,
|
|
2416
2411
|
hashId: m
|
|
2417
2412
|
} = Pe("ProLayoutHeader", (M) => {
|
|
@@ -2465,13 +2460,13 @@ const {
|
|
|
2465
2460
|
}
|
|
2466
2461
|
}
|
|
2467
2462
|
};
|
|
2468
|
-
},
|
|
2463
|
+
}, S), I = $(() => ({
|
|
2469
2464
|
[`${m.value}`]: !0,
|
|
2470
|
-
[`${
|
|
2471
|
-
[`${
|
|
2465
|
+
[`${S}`]: !0,
|
|
2466
|
+
[`${S}-${f.value.key}`]: !0,
|
|
2472
2467
|
[`${p}`]: v.value
|
|
2473
|
-
})), C =
|
|
2474
|
-
const M = t(Wo,
|
|
2468
|
+
})), C = $(() => v.value && !n.value), F = $(() => l.value ? x.value && Oo(x.value) || [] : o.value === "top" ? x.value : []), R = $(() => w.value && C.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), B = $(() => v.value ? 0 : void 0), P = () => {
|
|
2469
|
+
const M = t(Wo, te(e, {
|
|
2475
2470
|
mode: "horizontal",
|
|
2476
2471
|
theme: s.value,
|
|
2477
2472
|
onCollapse: i.value,
|
|
@@ -2482,22 +2477,22 @@ const {
|
|
|
2482
2477
|
};
|
|
2483
2478
|
return () => {
|
|
2484
2479
|
let M;
|
|
2485
|
-
return g(t(
|
|
2480
|
+
return g(t(J, null, [v.value && !u.value && t(Et, {
|
|
2486
2481
|
style: {
|
|
2487
|
-
height: `${
|
|
2488
|
-
lineHeight: `${
|
|
2482
|
+
height: `${d.value}px`,
|
|
2483
|
+
lineHeight: `${d.value}px`,
|
|
2489
2484
|
background: "transparent",
|
|
2490
|
-
marginTop: h.value ? `-${
|
|
2485
|
+
marginTop: h.value ? `-${d.value}px` : void 0
|
|
2491
2486
|
}
|
|
2492
2487
|
}, null), t(Et, {
|
|
2493
|
-
class:
|
|
2488
|
+
class: I.value,
|
|
2494
2489
|
style: {
|
|
2495
|
-
height: `${
|
|
2496
|
-
lineHeight: `${
|
|
2490
|
+
height: `${d.value}px`,
|
|
2491
|
+
lineHeight: `${d.value}px`,
|
|
2497
2492
|
width: R.value,
|
|
2498
|
-
zIndex:
|
|
2499
|
-
right:
|
|
2500
|
-
marginTop: h.value ? `-${
|
|
2493
|
+
zIndex: w.value ? 100 : 101,
|
|
2494
|
+
right: B.value,
|
|
2495
|
+
marginTop: h.value ? `-${d.value}px` : void 0
|
|
2501
2496
|
}
|
|
2502
2497
|
}, Ko(M = P()) ? M : {
|
|
2503
2498
|
default: () => [M]
|
|
@@ -2515,7 +2510,7 @@ const {
|
|
|
2515
2510
|
}
|
|
2516
2511
|
},
|
|
2517
2512
|
setup(e) {
|
|
2518
|
-
return () => t(
|
|
2513
|
+
return () => t(J, null, [e.isMobile ? t(Ye, {
|
|
2519
2514
|
maskClosable: !0,
|
|
2520
2515
|
open: !e.collapsed,
|
|
2521
2516
|
closable: !1,
|
|
@@ -2534,7 +2529,7 @@ const {
|
|
|
2534
2529
|
flexDirection: "row"
|
|
2535
2530
|
}
|
|
2536
2531
|
}, {
|
|
2537
|
-
default: () => [t(jt,
|
|
2532
|
+
default: () => [t(jt, te(e, {
|
|
2538
2533
|
collapsed: e.isMobile ? !1 : e.collapsed
|
|
2539
2534
|
}), null)]
|
|
2540
2535
|
}) : t(jt, e, null)]);
|
|
@@ -2542,13 +2537,13 @@ const {
|
|
|
2542
2537
|
});
|
|
2543
2538
|
function Mt(e, { change: n }) {
|
|
2544
2539
|
const { system: a } = qn(), [o, i, l] = ze("system", {
|
|
2545
|
-
value:
|
|
2540
|
+
value: $(() => Ue(e.value) ? e.value : "system"),
|
|
2546
2541
|
onChange: (c) => {
|
|
2547
2542
|
n == null || n(c);
|
|
2548
2543
|
}
|
|
2549
2544
|
});
|
|
2550
2545
|
return {
|
|
2551
|
-
isDark:
|
|
2546
|
+
isDark: $(() => l.value === "system" ? a.value === "dark" : l.value),
|
|
2552
2547
|
innerDark: l,
|
|
2553
2548
|
toggleMode: i
|
|
2554
2549
|
};
|
|
@@ -2602,20 +2597,20 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
2602
2597
|
window._iconfont_svg_string_4694134 = '<svg><symbol id="icon-fixed" viewBox="0 0 1024 1024"><path d="M540.736 900.608l-208.64-208.64v-0.064h-0.064l-208.64-208.64a304 304 0 0 1 262.656-28.8 41.152 41.152 0 0 0 38.976-6.336l259.328-202.752a40.96 40.96 0 0 0 14.72-41.344 143.68 143.68 0 0 1 13.696-100.8l195.648 195.648a144.448 144.448 0 0 1-100.8 13.696 41.088 41.088 0 0 0-41.408 14.72L568.704 579.776a41.088 41.088 0 0 0-5.44 41.28 305.344 305.344 0 0 1-22.528 279.552z m-528.64 53.312a41.024 41.024 0 0 0 57.984 58.048l233.024-233.024 213.312 213.376a40.96 40.96 0 0 0 28.992 11.968h1.6a41.28 41.28 0 0 0 29.568-14.272 388.224 388.224 0 0 0 71.104-378.048L815.872 396.8a224.512 224.512 0 0 0 183.68-64.832 41.024 41.024 0 0 0 0-57.984L737.536 11.968a41.024 41.024 0 0 0-57.984 0 224.768 224.768 0 0 0-64.832 183.68L391.616 370.176A385.856 385.856 0 0 0 34.048 447.488a40.96 40.96 0 0 0-2.304 60.16l213.376 213.312-233.024 232.96z m0 0" ></path></symbol><symbol id="icon-unpinned" viewBox="0 0 1024 1024"><path d="M1000.445782 331.509251a40.959412 40.959412 0 0 0 0-57.89271L738.842298 12.013057a40.959412 40.959412 0 0 0-57.89271 0 224.414127 224.414127 0 0 0-64.729929 183.390816L393.466912 369.593198A385.248511 385.248511 0 0 0 36.461864 446.783478a40.895513 40.895513 0 0 0-2.300372 60.065285l213.040062 212.976163-232.657129 232.657129a40.959412 40.959412 0 1 0 57.892711 57.89271l232.657128-232.657128 80.513041 80.513041c2.172574-14.377329 5.495335-28.435161 9.840483-41.9818a275.661317 275.661317 0 0 1-4.664644-68.627783l-56.742524-56.742524v-0.063899h-0.0639l-208.311518-208.311519a303.521385 303.521385 0 0 1 262.242476-28.754658 41.087211 41.087211 0 0 0 38.914637-6.326024l258.919716-202.432789a40.895513 40.895513 0 0 0 14.696824-41.278908 143.453791 143.453791 0 0 1 13.674438-100.641302L909.453266 298.409446a144.220582 144.220582 0 0 1-100.641301 13.674437 41.023311 41.023311 0 0 0-41.342808 14.696825L637.753702 492.663132a274.063836 274.063836 0 0 1 97.126843 8.626397l82.110522-105.050349a224.286328 224.286328 0 0 0 183.454715-64.729929z" ></path><path d="M653.089519 511.193911a239.366549 239.366549 0 1 0 0 478.733098 239.366549 239.366549 0 0 0 0-478.733098z m-174.381022 239.366549c0-28.818557 7.028916-56.039633 19.489267-80.001847l260.581097 218.599296a173.486434 173.486434 0 0 1-105.689342 35.783574 174.572721 174.572721 0 0 1-174.381022-174.381023z m307.674835 112.270963l1.469682-1.72528a35.144581 35.144581 0 0 0-1.469682 1.72528z m21.086749-31.374527L546.569488 612.602003a173.486434 173.486434 0 0 1 106.520031-36.422566 174.572721 174.572721 0 0 1 174.381023 174.381023 172.527945 172.527945 0 0 1-20.000461 80.896436z" ></path></symbol><symbol id="icon-anhei" viewBox="0 0 1024 1024"><path d="M398.97 64.12c-0.02 0.02-0.04 0.04-0.05 0.06 0.02 0 0.03-0.01 0.05-0.01v-0.05zM421.78 613.56C273.43 463.81 263.53 225.73 398.92 64.18 166.66 117.34 10.47 335.32 34.82 572.34c33.7 248.91 251.89 430.88 502.8 419.35a501.84 501.84 0 0 0 192.95-43.45 484.233 484.233 0 0 0 159.29-112.16A467.675 467.675 0 0 0 989 672.7c-179.36 116.54-415.76 91.89-567.22-59.14z" ></path><path d="M660.42 278.77a62.323 62.323 0 0 1 37.49 36.01c11.2 28.47 20.09 57.8 26.6 87.7 3.61 15.85 6.86 31.91 10.64 49.36 1.91-9.36 3.35-17.23 5.05-25a727.852 727.852 0 0 1 30.42-108.71 66.904 66.904 0 0 1 43.4-41.11c43.9-14.5 88.9-25.42 134.55-32.66h0.21c0.85-2.71-2.13-1.33-2.82-2.45-18.46-3.78-37.18-7.07-55.68-11.22a495.51 495.51 0 0 1-85.63-25.53 54.54 54.54 0 0 1-29.57-28.14 310.576 310.576 0 0 1-14.68-38.45 983.926 983.926 0 0 1-25.05-103.98l-5 23.67a731.899 731.899 0 0 1-30.74 109.29 68.137 68.137 0 0 1-43.66 41.75 767.933 767.933 0 0 1-101.58 26.97c-11.43 2.39-23.03 4.52-34.57 6.8 11.12 2.87 22.29 4.74 32.92 6.97a693.502 693.502 0 0 1 107.7 28.73zM771.31 516.98a456.433 456.433 0 0 1-60.63-15 35.124 35.124 0 0 1-23.72-22.55 318.968 318.968 0 0 1-9.89-32.71c-2.29-9.52-4.42-18.99-6.54-28.5a44.044 44.044 0 0 0-3.41 10.64 272.599 272.599 0 0 1-17.18 56.91 26.15 26.15 0 0 1-13.67 13.24c-11.1 4.72-22.62 8.38-34.41 10.96l-35.74 7.87c0.9 1.76 2.23 1.76 3.3 1.76 21.98 3.54 43.6 9.1 64.57 16.59 7.77 2.77 14.02 8.7 17.17 16.33 4.91 11.82 8.84 24.02 11.75 36.48 2.45 9.73 4.58 19.57 6.86 29.41a595.34 595.34 0 0 1 17.5-62.06 34.357 34.357 0 0 1 22.71-21.75 434.977 434.977 0 0 1 62.76-15.27l-0.16-0.1c0.91-1.51-0.53-1.72-1.27-2.25z" ></path></symbol><symbol id="icon-liangse" viewBox="0 0 1024 1024"><path d="M510.805433 812.646946A302.737439 302.737439 0 0 1 209.091909 510.76277 302.737439 302.737439 0 0 1 510.805433 209.049246a299.751021 299.751021 0 0 1 301.884176 301.79885 299.751021 299.751021 0 0 1-301.884176 301.884176z m0 0A302.737439 302.737439 0 0 1 209.091909 510.76277 302.737439 302.737439 0 0 1 510.805433 209.049246a299.751021 299.751021 0 0 1 301.884176 301.79885 299.751021 299.751021 0 0 1-301.884176 301.884176z m-383.114741-299.495042c0-2.389134 0-2.389134 0 0 0-16.211982 2.389134-32.509291 2.389135-48.806599H37.15957A39.932672 39.932672 0 0 0 0.042663 501.547538v16.211982c0 20.904925 18.601117 39.506041 37.116907 39.506041h92.920257c-2.303808-13.993501-2.303808-30.205483-2.303808-44.113657z m83.619699-239.169403a400.179985 400.179985 0 0 1 62.714774-62.714773l-32.509291-32.423965c-11.604366-16.297309-37.116907-16.297309-53.414216 0l-9.300558 9.215232a35.325056 35.325056 0 0 0 0 53.414216l32.509291 32.423964z m601.379218 0l30.205483-34.813098c16.211982-11.604366 16.211982-37.202233 0-53.414216L831.120073 174.065495c-11.604366-16.211982-37.116907-16.211982-53.328889 0l-32.509291 32.423964c23.208733 20.990251 46.417465 41.809849 67.32239 67.407716zM510.805433 127.733356c16.211982 0 30.205483 2.303808 46.502791 2.303808V37.116907A39.932672 39.932672 0 0 0 520.105991 0h-16.211982c-20.904925 0-39.506041 18.601117-39.506041 37.116907v95.224065c16.211982-2.303808 30.205483-4.607616 46.417465-4.607616z m471.342055 336.611949H891.701692c2.303808 16.211982 2.303808 30.205483 2.303808 46.417465 0 16.211982 0 30.205483-2.303808 44.113657h90.531122a40.700608 40.700608 0 0 0 39.506041-39.420715v-16.211982c0-16.297309-18.601117-34.898425-39.506041-34.898425zM211.310391 750.017499l-30.205483 32.50929c-16.211982 11.604366-16.211982 37.116907 0 53.414216l11.689692 11.604366c11.604366 16.211982 37.116907 16.211982 53.32889 0l32.509291-32.509291a298.385801 298.385801 0 0 1-67.32239-65.018581z m603.683026-4.607616c-18.601117 25.512541-41.809849 48.721273-67.407716 67.322389l32.594617 32.423965c11.604366 16.297309 37.116907 16.297309 53.414216 0l13.908174-13.908174c16.211982-11.604366 16.211982-37.116907 0-53.32889l-32.509291-32.50929z m-304.187984 148.552953c-13.908174 0-30.120157 0-44.113657-2.303808v92.834931c0 20.904925 16.211982 39.506041 37.202233 39.506041h16.211982c18.601117 0 37.202233-18.601117 37.202233-39.506041V891.659028c-16.211982 2.303808-30.205483 2.303808-46.502791 2.303808z" ></path></symbol></svg>', ((e) => {
|
|
2603
2598
|
var n = (a = (a = document.getElementsByTagName("script"))[a.length - 1]).getAttribute("data-injectcss"), a = a.getAttribute("data-disable-injectsvg");
|
|
2604
2599
|
if (!a) {
|
|
2605
|
-
var o, i, l, r, c, x = function(
|
|
2606
|
-
|
|
2600
|
+
var o, i, l, r, c, x = function(d, S) {
|
|
2601
|
+
S.parentNode.insertBefore(d, S);
|
|
2607
2602
|
};
|
|
2608
2603
|
if (n && !e.__iconfont__svg__cssinject__) {
|
|
2609
2604
|
e.__iconfont__svg__cssinject__ = !0;
|
|
2610
2605
|
try {
|
|
2611
2606
|
document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
|
|
2612
|
-
} catch (
|
|
2613
|
-
console && console.log(
|
|
2607
|
+
} catch (d) {
|
|
2608
|
+
console && console.log(d);
|
|
2614
2609
|
}
|
|
2615
2610
|
}
|
|
2616
2611
|
o = function() {
|
|
2617
|
-
var
|
|
2618
|
-
|
|
2612
|
+
var d, S = document.createElement("div");
|
|
2613
|
+
S.innerHTML = e._iconfont_svg_string_4694134, (S = S.getElementsByTagName("svg")[0]) && (S.setAttribute("aria-hidden", "true"), S.style.position = "absolute", S.style.width = 0, S.style.height = 0, S.style.overflow = "hidden", S = S, (d = document.body).firstChild ? x(S, d.firstChild) : d.appendChild(S));
|
|
2619
2614
|
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(o, 0) : (i = function() {
|
|
2620
2615
|
document.removeEventListener("DOMContentLoaded", i, !1), o();
|
|
2621
2616
|
}, document.addEventListener("DOMContentLoaded", i, !1)) : document.attachEvent && (l = o, r = e.document, c = !1, f(), r.onreadystatechange = function() {
|
|
@@ -2642,7 +2637,13 @@ const _o = /* @__PURE__ */ E({
|
|
|
2642
2637
|
GlobalFooter: At,
|
|
2643
2638
|
SiderMenuWrapper: Kt
|
|
2644
2639
|
},
|
|
2645
|
-
props:
|
|
2640
|
+
props: {
|
|
2641
|
+
...Ae,
|
|
2642
|
+
style: {
|
|
2643
|
+
type: Object,
|
|
2644
|
+
default: () => ({})
|
|
2645
|
+
}
|
|
2646
|
+
},
|
|
2646
2647
|
setup(e, {
|
|
2647
2648
|
slots: n
|
|
2648
2649
|
}) {
|
|
@@ -2657,42 +2658,42 @@ const _o = /* @__PURE__ */ E({
|
|
|
2657
2658
|
} = fe("ProLayout", [Za, Ja], a), l = en(), {
|
|
2658
2659
|
token: r,
|
|
2659
2660
|
dark: c
|
|
2660
|
-
} = Oe(), x = me(ht().uuid(10)), h = me(!1), f = me(!1),
|
|
2661
|
+
} = Oe(), x = me(ht().uuid(10)), h = me(!1), f = me(!1), d = me(!1), S = Be({
|
|
2661
2662
|
position: "relative"
|
|
2662
|
-
}), p =
|
|
2663
|
-
var
|
|
2664
|
-
return (
|
|
2663
|
+
}), p = $(() => {
|
|
2664
|
+
var B;
|
|
2665
|
+
return (B = r == null ? void 0 : r.value) == null ? void 0 : B.colorPrimary;
|
|
2665
2666
|
});
|
|
2666
2667
|
An(() => {
|
|
2667
|
-
const
|
|
2668
|
-
|
|
2668
|
+
const B = document.querySelector("html");
|
|
2669
|
+
B && (p.value && B.style.setProperty("--gx-primary-color", p.value), B.setAttribute("data-theme", c.value ? "dark" : "light"));
|
|
2669
2670
|
});
|
|
2670
|
-
const
|
|
2671
|
-
var
|
|
2672
|
-
return e.levelMenuData && ((
|
|
2673
|
-
}),
|
|
2671
|
+
const u = $(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), v = $(() => {
|
|
2672
|
+
var B;
|
|
2673
|
+
return e.levelMenuData && ((B = e.levelMenuData) != null && B.length) ? e.levelMenuData : It(e.menuData);
|
|
2674
|
+
}), w = $(() => e.layout === "wide"), s = $(() => ({
|
|
2674
2675
|
key: nn(c.value, e.theme),
|
|
2675
2676
|
theme: c.value ? "dark" : e.theme
|
|
2676
|
-
})), g =
|
|
2677
|
+
})), g = $(() => (l.value === "sm" || l.value === "xs") && !e.disableMobile && !w.value), m = $(() => ({
|
|
2677
2678
|
...e.breadcrumb || {},
|
|
2678
2679
|
itemRender: le(n, e, "pageContainerProps:breadcrumbRender")
|
|
2679
|
-
})),
|
|
2680
|
-
ce([() => e.layout, () => e.theme], ([
|
|
2681
|
-
(
|
|
2682
|
-
}), ce(() =>
|
|
2683
|
-
if (
|
|
2680
|
+
})), I = $(() => u.value && e.selectedKeys ? Mo(e.menuData, e.selectedKeys[0]) : []), C = $(() => Qe(e.headerHeight) ? e.headerHeight : Y.headerHeight), F = ft(() => d.value ? 0 : Qe(e.siderWidth) ? e.siderWidth : e.layout === "mix" ? 215 : e.layout === "wide" ? 208 : 256, [() => e.layout, () => e.siderWidth, () => d.value]);
|
|
2681
|
+
ce([() => e.layout, () => e.theme], ([B]) => {
|
|
2682
|
+
(B === "wide" || B === "simple") && (d.value = !1), x.value = ht().uuid(10);
|
|
2683
|
+
}), ce(() => w.value, (B) => {
|
|
2684
|
+
if (B) {
|
|
2684
2685
|
const P = document.querySelector('meta[name="viewport"]');
|
|
2685
2686
|
P && (P.content = "");
|
|
2686
2687
|
}
|
|
2687
2688
|
}, {
|
|
2688
2689
|
immediate: !0
|
|
2689
2690
|
}), ce([() => e.contentStyle, () => e.isChildrenLayout], () => {
|
|
2690
|
-
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (
|
|
2691
|
+
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (S.minHeight = 0);
|
|
2691
2692
|
}, {
|
|
2692
2693
|
immediate: !0,
|
|
2693
2694
|
deep: !0
|
|
2694
2695
|
});
|
|
2695
|
-
const R = (
|
|
2696
|
+
const R = (B, P) => B.headerRender === !1 || B.pure ? null : t(Wt, te(Me(B, "headerHeight"), {
|
|
2696
2697
|
headerHeight: C.value,
|
|
2697
2698
|
matchMenuKeys: P || []
|
|
2698
2699
|
}), null);
|
|
@@ -2702,64 +2703,68 @@ const _o = /* @__PURE__ */ E({
|
|
|
2702
2703
|
menuState: s,
|
|
2703
2704
|
lockOpen: h,
|
|
2704
2705
|
settingsOpen: f,
|
|
2705
|
-
contentFullScreen:
|
|
2706
|
-
hasContentWide:
|
|
2706
|
+
contentFullScreen: d,
|
|
2707
|
+
hasContentWide: w,
|
|
2707
2708
|
isMobile: g,
|
|
2708
2709
|
siderWidth: F,
|
|
2709
2710
|
headerHeight: C,
|
|
2710
2711
|
breadcrumb: m,
|
|
2711
|
-
flatMenuData:
|
|
2712
|
-
hasSide:
|
|
2712
|
+
flatMenuData: I,
|
|
2713
|
+
hasSide: u,
|
|
2713
2714
|
levelMenuData: v,
|
|
2714
2715
|
onDarkChange: e.onDarkChange,
|
|
2715
|
-
pageHeaderRender:
|
|
2716
|
+
pageHeaderRender: $(() => $e(n, e, "pageContainerProps:pageHeaderRender"))
|
|
2716
2717
|
}), () => {
|
|
2717
|
-
var
|
|
2718
|
-
const
|
|
2718
|
+
var G;
|
|
2719
|
+
const B = la(yn, n, e, {
|
|
2719
2720
|
render: !0
|
|
2720
|
-
}), P = le(n, e, "collapsedButtonRender"), M = le(n, e, "footerRender"), N = le(n, e, "headerRender"), Q = le(n, e, "headerContentRender"), _ = le(n, e, "rightContentRender"), X = le(n, e, "tabsRouteItemRender"), he = le(n, e, "menuItemRender"), de = le(n, e, "menuHeaderRender"),
|
|
2721
|
+
}), P = le(n, e, "collapsedButtonRender"), M = le(n, e, "footerRender"), N = le(n, e, "headerRender"), Q = le(n, e, "headerContentRender"), _ = le(n, e, "rightContentRender"), X = le(n, e, "tabsRouteItemRender"), he = le(n, e, "menuItemRender"), de = le(n, e, "menuHeaderRender"), L = le(n, e, "logoContentRender"), k = le(n, e, "menuFooterRender"), D = le(n, e, "subMenuItemRender"), W = le(n, e, "menuContentRender"), ee = R({
|
|
2721
2722
|
...e,
|
|
2722
|
-
...ae(
|
|
2723
|
+
...ae(B, gn),
|
|
2723
2724
|
menuItemRender: he,
|
|
2724
2725
|
subMenuItemRender: D,
|
|
2725
|
-
hasSiderMenu:
|
|
2726
|
+
hasSiderMenu: u.value,
|
|
2726
2727
|
isMobile: g.value,
|
|
2727
2728
|
rightContentRender: _,
|
|
2728
|
-
logoContentRender:
|
|
2729
|
+
logoContentRender: L,
|
|
2729
2730
|
headerContentRender: Q,
|
|
2730
2731
|
headerRender: N
|
|
2731
|
-
}, e.matchMenuKeys), ge =
|
|
2732
|
+
}, e.matchMenuKeys), ge = w.value ? {
|
|
2732
2733
|
minHeight: "835px",
|
|
2733
2734
|
marginInlineStart: F.value === 0 ? 0 : void 0
|
|
2734
|
-
} : {}
|
|
2735
|
-
|
|
2735
|
+
} : {}, H = M ? typeof M == "function" ? M(e) : M : t(At, {
|
|
2736
|
+
copyright: B.copyrightRender,
|
|
2737
|
+
links: e.footerLinks
|
|
2738
|
+
}, null);
|
|
2739
|
+
return o(t(J, null, [e.pure ? (G = n.default) == null ? void 0 : G.call(n) : t("div", {
|
|
2736
2740
|
class: q({
|
|
2737
2741
|
[`${i.value}`]: !0,
|
|
2738
2742
|
[`${a}`]: !0,
|
|
2739
2743
|
[`${a}-${e.layout}`]: !0
|
|
2740
2744
|
}),
|
|
2741
|
-
style:
|
|
2742
|
-
minWidth: `${e.wideWidth}px
|
|
2743
|
-
|
|
2745
|
+
style: w.value ? {
|
|
2746
|
+
minWidth: `${e.wideWidth}px`,
|
|
2747
|
+
...e.style
|
|
2748
|
+
} : e.style
|
|
2744
2749
|
}, [t(We, {
|
|
2745
|
-
style:
|
|
2750
|
+
style: w.value ? {
|
|
2746
2751
|
width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - F.value - 20}px`,
|
|
2747
2752
|
paddingTop: `${C.value + 20}px`,
|
|
2748
|
-
margin:
|
|
2753
|
+
margin: w.value ? "0 auto" : void 0
|
|
2749
2754
|
} : void 0
|
|
2750
2755
|
}, {
|
|
2751
|
-
default: () => [F.value > 0 && t(Kt,
|
|
2756
|
+
default: () => [F.value > 0 && t(Kt, te(e, {
|
|
2752
2757
|
siderWidth: F.value,
|
|
2753
2758
|
isMobile: g.value,
|
|
2754
2759
|
menuHeaderRender: de,
|
|
2755
|
-
logoContentRender:
|
|
2760
|
+
logoContentRender: L,
|
|
2756
2761
|
menuFooterRender: k,
|
|
2757
2762
|
menuContentRender: W,
|
|
2758
2763
|
collapsedButtonRender: P
|
|
2759
|
-
}, ae(
|
|
2760
|
-
style:
|
|
2764
|
+
}, ae(B, hn)), null), t(We, {
|
|
2765
|
+
style: S
|
|
2761
2766
|
}, {
|
|
2762
|
-
default: () => [e.layout !== "simple" && C.value > 0 &&
|
|
2767
|
+
default: () => [e.layout !== "simple" && C.value > 0 && ee, t(Bt, te(ae(e, to), {
|
|
2763
2768
|
hashId: i.value,
|
|
2764
2769
|
prefixCls: a,
|
|
2765
2770
|
siderWidth: F.value,
|
|
@@ -2770,15 +2775,12 @@ const _o = /* @__PURE__ */ E({
|
|
|
2770
2775
|
itemRender: X
|
|
2771
2776
|
}), {
|
|
2772
2777
|
default: () => {
|
|
2773
|
-
var
|
|
2774
|
-
return [(
|
|
2778
|
+
var Z;
|
|
2779
|
+
return [(Z = n.default) == null ? void 0 : Z.call(n)];
|
|
2775
2780
|
}
|
|
2776
|
-
}),
|
|
2777
|
-
copyright: $.copyrightRender,
|
|
2778
|
-
links: e.footerLinks
|
|
2779
|
-
}, null)]
|
|
2781
|
+
}), e.layout !== "wide" && H]
|
|
2780
2782
|
})]
|
|
2781
|
-
}),
|
|
2783
|
+
}), B.pageLockRender, e.layout === "wide" && H])]));
|
|
2782
2784
|
};
|
|
2783
2785
|
}
|
|
2784
2786
|
}), qr = /* @__PURE__ */ E({
|
|
@@ -2792,29 +2794,30 @@ const _o = /* @__PURE__ */ E({
|
|
|
2792
2794
|
slots: Object,
|
|
2793
2795
|
setup(e, {
|
|
2794
2796
|
slots: n,
|
|
2795
|
-
emit: a
|
|
2797
|
+
emit: a,
|
|
2798
|
+
attrs: o
|
|
2796
2799
|
}) {
|
|
2797
2800
|
const {
|
|
2798
|
-
isDark:
|
|
2799
|
-
innerDark:
|
|
2800
|
-
toggleMode:
|
|
2801
|
-
} = Mt(
|
|
2802
|
-
change: (
|
|
2803
|
-
var
|
|
2804
|
-
(
|
|
2801
|
+
isDark: i,
|
|
2802
|
+
innerDark: l,
|
|
2803
|
+
toggleMode: r
|
|
2804
|
+
} = Mt($(() => e.dark), {
|
|
2805
|
+
change: (S) => {
|
|
2806
|
+
var p, u;
|
|
2807
|
+
(p = e.onDarkChange) == null || p.call(e, S), (u = e == null ? void 0 : e["onUpdate:dark"]) == null || u.call(e, S);
|
|
2805
2808
|
}
|
|
2806
|
-
}),
|
|
2809
|
+
}), c = $(() => Ce(e.token || {}, {
|
|
2807
2810
|
layout: {
|
|
2808
|
-
key: `${nn(
|
|
2811
|
+
key: `${nn(i.value, e.theme)}:${e.layout}`
|
|
2809
2812
|
}
|
|
2810
|
-
})),
|
|
2811
|
-
a("update:collapsed",
|
|
2812
|
-
},
|
|
2813
|
-
a("update:open-keys",
|
|
2814
|
-
},
|
|
2815
|
-
a("update:selected-keys",
|
|
2816
|
-
},
|
|
2817
|
-
a("update:tabs",
|
|
2813
|
+
})), x = (S) => {
|
|
2814
|
+
a("update:collapsed", S), a("collapse", S);
|
|
2815
|
+
}, h = (S) => {
|
|
2816
|
+
a("update:open-keys", S), a("openKeys", S);
|
|
2817
|
+
}, f = (S) => {
|
|
2818
|
+
a("update:selected-keys", S), a("select", S);
|
|
2819
|
+
}, d = (S) => {
|
|
2820
|
+
a("update:tabs", S), a("tabsChange", S);
|
|
2818
2821
|
};
|
|
2819
2822
|
return () => t(St, {
|
|
2820
2823
|
theme: e.primaryColor ? {
|
|
@@ -2824,16 +2827,18 @@ const _o = /* @__PURE__ */ E({
|
|
|
2824
2827
|
} : void 0
|
|
2825
2828
|
}, {
|
|
2826
2829
|
default: () => [t(ua, {
|
|
2827
|
-
token:
|
|
2828
|
-
dark:
|
|
2830
|
+
token: c.value,
|
|
2831
|
+
dark: i.value
|
|
2829
2832
|
}, {
|
|
2830
|
-
default: () => [t(_o,
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2833
|
+
default: () => [t(_o, te({
|
|
2834
|
+
style: o.style
|
|
2835
|
+
}, Me(e, ["onSelect", "onOpenKeys", "onCollapse", "onTabsChange", "onDarkChange", "dark"]), {
|
|
2836
|
+
dark: l.value,
|
|
2837
|
+
onSelect: f,
|
|
2838
|
+
onOpenKeys: h,
|
|
2839
|
+
onCollapse: x,
|
|
2840
|
+
onTabsChange: d,
|
|
2841
|
+
onDarkChange: r
|
|
2837
2842
|
}), n)]
|
|
2838
2843
|
})]
|
|
2839
2844
|
});
|
|
@@ -3058,9 +3063,9 @@ const Mn = /* @__PURE__ */ E({
|
|
|
3058
3063
|
resetFields: r
|
|
3059
3064
|
} = qo(e.validator), c = (f) => {
|
|
3060
3065
|
Object.assign(o, f);
|
|
3061
|
-
}, x = (f = "",
|
|
3062
|
-
const
|
|
3063
|
-
return q(
|
|
3066
|
+
}, x = (f = "", d) => {
|
|
3067
|
+
const S = f ? `${e.className}-${f}` : e.className;
|
|
3068
|
+
return q(S, e.hashId, "");
|
|
3064
3069
|
}, h = () => {
|
|
3065
3070
|
i().then(() => {
|
|
3066
3071
|
var f;
|
|
@@ -3090,7 +3095,7 @@ const Mn = /* @__PURE__ */ E({
|
|
|
3090
3095
|
default: () => [t(Qt.Password, {
|
|
3091
3096
|
value: o.password,
|
|
3092
3097
|
placeholder: "请输入锁屏密码",
|
|
3093
|
-
onChange: (
|
|
3098
|
+
onChange: (d) => o.password = d.target.value
|
|
3094
3099
|
}, null)]
|
|
3095
3100
|
})]
|
|
3096
3101
|
}), t(qe, {
|
|
@@ -3130,7 +3135,7 @@ const Zo = /* @__PURE__ */ E({
|
|
|
3130
3135
|
},
|
|
3131
3136
|
setup(e) {
|
|
3132
3137
|
const [n, a] = ze(!1, {
|
|
3133
|
-
value:
|
|
3138
|
+
value: $(() => ne(e.open) ? e.open : !1),
|
|
3134
3139
|
onChange: e.onOpenChange
|
|
3135
3140
|
}), [o, i] = be(!1), l = Qo(), r = (c = "", x) => {
|
|
3136
3141
|
const h = c ? `${e.className}-popup-${c}` : `${e.className}-popup`;
|
|
@@ -3172,7 +3177,7 @@ const Zo = /* @__PURE__ */ E({
|
|
|
3172
3177
|
style: {
|
|
3173
3178
|
fontSize: "30px"
|
|
3174
3179
|
}
|
|
3175
|
-
}, [l.day, U(" "), l.dddd])])]) : t(
|
|
3180
|
+
}, [l.day, U(" "), l.dddd])])]) : t(J, null, [t("div", {
|
|
3176
3181
|
class: r("head")
|
|
3177
3182
|
}, [t("span", null, [l.day, U(" "), l.dddd]), t("span", {
|
|
3178
3183
|
class: r("lock-icon"),
|
|
@@ -3208,28 +3213,28 @@ const Zo = /* @__PURE__ */ E({
|
|
|
3208
3213
|
open: !1,
|
|
3209
3214
|
password: ""
|
|
3210
3215
|
}), [r, c, x] = ze(!1, {
|
|
3211
|
-
value:
|
|
3216
|
+
value: $(() => {
|
|
3212
3217
|
var m;
|
|
3213
3218
|
return ne(e.open) ? e.open : (m = a == null ? void 0 : a.lockOpen) == null ? void 0 : m.value;
|
|
3214
3219
|
}),
|
|
3215
3220
|
onChange: (m) => {
|
|
3216
|
-
var
|
|
3217
|
-
(
|
|
3221
|
+
var I, C;
|
|
3222
|
+
(I = e.onOpenChange) == null || I.call(e, m), (C = e["onUpdate:open"]) == null || C.call(e, m), a && (a.lockOpen.value = m);
|
|
3218
3223
|
}
|
|
3219
|
-
}), [h, f] = be(!1),
|
|
3220
|
-
function
|
|
3224
|
+
}), [h, f] = be(!1), d = me();
|
|
3225
|
+
function S(m) {
|
|
3221
3226
|
return e.cryptoFn ? e.cryptoFn(m) : m;
|
|
3222
3227
|
}
|
|
3223
3228
|
function p(m) {
|
|
3224
|
-
l.value.open = h.value, l.value.password =
|
|
3229
|
+
l.value.open = h.value, l.value.password = S(m);
|
|
3225
3230
|
}
|
|
3226
|
-
const
|
|
3227
|
-
mt(
|
|
3231
|
+
const u = $(() => e.shortsKey), v = $(() => l.value.open && !!l.value.password), w = Jt();
|
|
3232
|
+
mt(w["Alt+KeyL"], () => {
|
|
3228
3233
|
var m;
|
|
3229
|
-
(m =
|
|
3234
|
+
(m = u.value) != null && m.disabeld || x.value || c(!0);
|
|
3230
3235
|
}), ce(h, (m) => {
|
|
3231
|
-
var
|
|
3232
|
-
p(m && (((C = (
|
|
3236
|
+
var I, C;
|
|
3237
|
+
p(m && (((C = (I = d.value) == null ? void 0 : I.formState) == null ? void 0 : C.password) || l.value.password) || "");
|
|
3233
3238
|
}), Yt(() => {
|
|
3234
3239
|
v.value ? f(!0) : p("");
|
|
3235
3240
|
});
|
|
@@ -3237,14 +3242,14 @@ const Zo = /* @__PURE__ */ E({
|
|
|
3237
3242
|
c(!1), f(!0);
|
|
3238
3243
|
}, g = () => {
|
|
3239
3244
|
var m;
|
|
3240
|
-
c(!1), p(""), (m =
|
|
3245
|
+
c(!1), p(""), (m = d.value) == null || m.resetFields();
|
|
3241
3246
|
};
|
|
3242
|
-
return () => o(t(
|
|
3247
|
+
return () => o(t(J, null, [t(Zo, te(ae(e, ["name", "avatar"]), {
|
|
3243
3248
|
open: h.value,
|
|
3244
3249
|
hashId: i.value,
|
|
3245
3250
|
className: n,
|
|
3246
3251
|
password: l.value.password,
|
|
3247
|
-
cryptoFn:
|
|
3252
|
+
cryptoFn: S,
|
|
3248
3253
|
onOpenChange: f
|
|
3249
3254
|
}), null), t(Ua, {
|
|
3250
3255
|
width: 400,
|
|
@@ -3254,8 +3259,8 @@ const Zo = /* @__PURE__ */ E({
|
|
|
3254
3259
|
footer: !1,
|
|
3255
3260
|
onCancel: g
|
|
3256
3261
|
}, {
|
|
3257
|
-
default: () => [t(Mn,
|
|
3258
|
-
ref:
|
|
3262
|
+
default: () => [t(Mn, te({
|
|
3263
|
+
ref: d
|
|
3259
3264
|
}, ae(e, ["name", "avatar"]), {
|
|
3260
3265
|
submitText: "锁定",
|
|
3261
3266
|
hashId: i.value,
|
|
@@ -3397,20 +3402,20 @@ const ai = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3397
3402
|
i.value = [];
|
|
3398
3403
|
return;
|
|
3399
3404
|
}
|
|
3400
|
-
const g =
|
|
3401
|
-
e.dataSource.forEach((
|
|
3402
|
-
var F, R,
|
|
3403
|
-
if ((F =
|
|
3404
|
-
const C = ((R =
|
|
3405
|
+
const g = d(s), m = [];
|
|
3406
|
+
e.dataSource.forEach((I) => {
|
|
3407
|
+
var F, R, B;
|
|
3408
|
+
if ((F = I.meta) != null && F.hidden) return;
|
|
3409
|
+
const C = ((R = I.meta) == null ? void 0 : R.title) || I.name || "";
|
|
3405
3410
|
if (g.test(C.toLowerCase())) {
|
|
3406
3411
|
let P = [];
|
|
3407
|
-
const M = ((
|
|
3412
|
+
const M = ((B = I == null ? void 0 : I.key) == null ? void 0 : B.split("-")) || [];
|
|
3408
3413
|
for (let N = 0; N < M.length; N++)
|
|
3409
3414
|
P.push(M.slice(0, N + 1).join("-"));
|
|
3410
3415
|
P = P.map((N) => {
|
|
3411
3416
|
var Q, _;
|
|
3412
3417
|
return ((_ = (Q = e.dataSource.find((X) => (X == null ? void 0 : X.key) === N)) == null ? void 0 : Q.meta) == null ? void 0 : _.title) || "";
|
|
3413
|
-
}), m.push(Ce(
|
|
3418
|
+
}), m.push(Ce(I, {
|
|
3414
3419
|
meta: {
|
|
3415
3420
|
title: P.join("**")
|
|
3416
3421
|
}
|
|
@@ -3446,51 +3451,51 @@ const ai = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3446
3451
|
function f(s) {
|
|
3447
3452
|
return ai.has(s) ? `\\${s}` : s;
|
|
3448
3453
|
}
|
|
3449
|
-
function
|
|
3454
|
+
function d(s) {
|
|
3450
3455
|
const g = [...s].map((m) => f(m)).join(".*");
|
|
3451
3456
|
return new RegExp(`.*${g}.*`);
|
|
3452
3457
|
}
|
|
3453
|
-
function
|
|
3458
|
+
function S() {
|
|
3454
3459
|
i.value.length !== 0 && (o.value--, o.value < 0 && (o.value = i.value.length - 1), x());
|
|
3455
3460
|
}
|
|
3456
3461
|
function p() {
|
|
3457
3462
|
i.value.length !== 0 && (o.value++, o.value > i.value.length - 1 && (o.value = 0), x());
|
|
3458
3463
|
}
|
|
3459
3464
|
Yt(() => {
|
|
3460
|
-
a.value.length > 0 && (i.value = a.value), ct("Enter", h), ct("ArrowUp",
|
|
3465
|
+
a.value.length > 0 && (i.value = a.value), ct("Enter", h), ct("ArrowUp", S), ct("ArrowDown", p);
|
|
3461
3466
|
});
|
|
3462
|
-
function
|
|
3467
|
+
function u(s) {
|
|
3463
3468
|
o.value = s;
|
|
3464
3469
|
}
|
|
3465
3470
|
function v(s, g) {
|
|
3466
3471
|
s.stopPropagation(), e.keyword ? i.value.splice(g, 1) : a.value.splice(g, 1), o.value = o.value - 1 >= 0 ? o.value - 1 : 0, x();
|
|
3467
3472
|
}
|
|
3468
|
-
const
|
|
3469
|
-
return () => t(
|
|
3470
|
-
class:
|
|
3473
|
+
const w = (s) => q(`${e.className}${s ? `-${s}` : ""}`, e.hashId);
|
|
3474
|
+
return () => t(J, null, [i.value.length > 0 ? t(J, null, [a.value.length > 0 && !e.keyword && t("div", {
|
|
3475
|
+
class: w("panel-title")
|
|
3471
3476
|
}, [U("搜索历史")]), t("div", {
|
|
3472
|
-
class:
|
|
3477
|
+
class: w("panel-list")
|
|
3473
3478
|
}, [ti(i.value, "path").map((s, g) => {
|
|
3474
|
-
var m,
|
|
3479
|
+
var m, I, C, F;
|
|
3475
3480
|
return t("div", {
|
|
3476
3481
|
key: s.name,
|
|
3477
|
-
class:
|
|
3482
|
+
class: w(q("panel-item", g === o.value && "active")),
|
|
3478
3483
|
"data-search-item": g,
|
|
3479
3484
|
onClick: () => h(),
|
|
3480
|
-
onMouseenter: () =>
|
|
3485
|
+
onMouseenter: () => u(g)
|
|
3481
3486
|
}, [t("div", {
|
|
3482
|
-
class:
|
|
3483
|
-
}, [t(Ze,
|
|
3487
|
+
class: w("panel-item-left")
|
|
3488
|
+
}, [t(Ze, te(s.meta || {}, {
|
|
3484
3489
|
icon: ((m = s.meta) == null ? void 0 : m.icon) || t(Fa, null, null),
|
|
3485
|
-
classNames:
|
|
3486
|
-
}), null), (F = (C = (
|
|
3490
|
+
classNames: w("panel-icon")
|
|
3491
|
+
}), null), (F = (C = (I = s.meta) == null ? void 0 : I.title) == null ? void 0 : C.split("**")) == null ? void 0 : F.map((R, B) => {
|
|
3487
3492
|
var P, M, N;
|
|
3488
|
-
return t(
|
|
3493
|
+
return t(J, null, [R, B < ((N = (M = (P = s.meta) == null ? void 0 : P.title) == null ? void 0 : M.split("**")) == null ? void 0 : N.length) - 1 && t(Pa, null, null)]);
|
|
3489
3494
|
}), t("span", null, null)]), t(ot, {
|
|
3490
3495
|
onClick: (R) => v(R, g)
|
|
3491
3496
|
}, null)]);
|
|
3492
3497
|
})])]) : t(oi, {
|
|
3493
|
-
className:
|
|
3498
|
+
className: w("result"),
|
|
3494
3499
|
value: e.keyword
|
|
3495
3500
|
}, null)]);
|
|
3496
3501
|
}
|
|
@@ -3525,27 +3530,27 @@ const ai = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3525
3530
|
}), {
|
|
3526
3531
|
wrapSSR: a,
|
|
3527
3532
|
hashId: o
|
|
3528
|
-
} = ei(n), [i, l] = be(""), [r, c] = be(!1), x = ie(), h = Jt(), f = ra() ? h["ctrl+k"] : h["cmd+k"],
|
|
3529
|
-
var
|
|
3530
|
-
return It(e.dataSource || ((
|
|
3533
|
+
} = ei(n), [i, l] = be(""), [r, c] = be(!1), x = ie(), h = Jt(), f = ra() ? h["ctrl+k"] : h["cmd+k"], d = me(), S = $(() => {
|
|
3534
|
+
var u;
|
|
3535
|
+
return It(e.dataSource || ((u = x == null ? void 0 : x.menuData) == null ? void 0 : u.value));
|
|
3531
3536
|
});
|
|
3532
3537
|
mt(f, () => {
|
|
3533
3538
|
e.disabeldShortKey || c(!0);
|
|
3534
3539
|
}), mt(r, () => {
|
|
3535
3540
|
pt(() => {
|
|
3536
|
-
var
|
|
3537
|
-
(
|
|
3541
|
+
var u;
|
|
3542
|
+
(u = d.value) == null || u.focus();
|
|
3538
3543
|
});
|
|
3539
3544
|
});
|
|
3540
3545
|
const p = () => {
|
|
3541
3546
|
c(!1), i.value = "";
|
|
3542
3547
|
};
|
|
3543
3548
|
return () => {
|
|
3544
|
-
const
|
|
3549
|
+
const u = {
|
|
3545
3550
|
className: `${n}`,
|
|
3546
3551
|
hashId: o.value
|
|
3547
3552
|
}, v = `${n}-modal`;
|
|
3548
|
-
return a(t(
|
|
3553
|
+
return a(t(J, null, [t("div", {
|
|
3549
3554
|
class: q(n, o.value),
|
|
3550
3555
|
onClick: () => c(!0)
|
|
3551
3556
|
}, [t(Dt, null, null), t("span", {
|
|
@@ -3565,13 +3570,13 @@ const ai = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3565
3570
|
width: `${600 * 0.8}px`,
|
|
3566
3571
|
padding: 0
|
|
3567
3572
|
},
|
|
3568
|
-
ref:
|
|
3573
|
+
ref: d,
|
|
3569
3574
|
bordered: !1,
|
|
3570
3575
|
size: "large",
|
|
3571
3576
|
placeholder: "搜索导航菜单",
|
|
3572
3577
|
value: i.value,
|
|
3573
3578
|
prefix: t(Dt, null, null),
|
|
3574
|
-
onChange: (
|
|
3579
|
+
onChange: (w) => l(w.target.value)
|
|
3575
3580
|
}, null),
|
|
3576
3581
|
open: r.value,
|
|
3577
3582
|
footer: t(li, {
|
|
@@ -3580,9 +3585,9 @@ const ai = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3580
3585
|
}, null),
|
|
3581
3586
|
onCancel: () => p()
|
|
3582
3587
|
}, {
|
|
3583
|
-
default: () => [t(ii,
|
|
3588
|
+
default: () => [t(ii, te(u, {
|
|
3584
3589
|
keyword: i.value,
|
|
3585
|
-
dataSource:
|
|
3590
|
+
dataSource: S.value,
|
|
3586
3591
|
onClose: () => p()
|
|
3587
3592
|
}), null)]
|
|
3588
3593
|
})]));
|
|
@@ -3676,34 +3681,34 @@ const Zr = /* @__PURE__ */ E({
|
|
|
3676
3681
|
isPor: !0
|
|
3677
3682
|
}), [x, h] = be(!1), {
|
|
3678
3683
|
wrapSSR: f,
|
|
3679
|
-
hashId:
|
|
3680
|
-
} = ci(c), [
|
|
3681
|
-
isDark:
|
|
3684
|
+
hashId: d
|
|
3685
|
+
} = ci(c), [S, p] = be("auto"), {
|
|
3686
|
+
isDark: u,
|
|
3682
3687
|
toggleMode: v
|
|
3683
|
-
} = Mt(
|
|
3688
|
+
} = Mt($(() => {
|
|
3684
3689
|
var R;
|
|
3685
3690
|
return Ue(e.dark) ? e.dark : (R = l == null ? void 0 : l.dark) == null ? void 0 : R.value;
|
|
3686
3691
|
}), {
|
|
3687
3692
|
change: (R) => {
|
|
3688
|
-
var
|
|
3689
|
-
(
|
|
3693
|
+
var B, P, M;
|
|
3694
|
+
(B = e.onDarkChange) == null || B.call(e, R), (P = e == null ? void 0 : e["onUpdate:dark"]) == null || P.call(e, R), (M = l == null ? void 0 : l.onDarkChange) == null || M.call(l, R);
|
|
3690
3695
|
}
|
|
3691
|
-
}), [
|
|
3692
|
-
value:
|
|
3696
|
+
}), [w, s] = ze(!1, {
|
|
3697
|
+
value: $(() => {
|
|
3693
3698
|
var R;
|
|
3694
3699
|
return ne(e.settingsOpen) ? e.settingsOpen : (R = l == null ? void 0 : l.settingsOpen) == null ? void 0 : R.value;
|
|
3695
3700
|
}),
|
|
3696
3701
|
onChange: (R) => {
|
|
3697
|
-
var
|
|
3698
|
-
(
|
|
3702
|
+
var B, P;
|
|
3703
|
+
(B = e.onSettingsOpenChange) == null || B.call(e, R), (P = e == null ? void 0 : e["onUpdate:settingsOpen"]) == null || P.call(e, R), l && !ne(e.settingsOpen) && (l.settingsOpen.value = R);
|
|
3699
3704
|
}
|
|
3700
|
-
}), g =
|
|
3701
|
-
var R,
|
|
3702
|
-
return ne((R = l == null ? void 0 : l.isMobile) == null ? void 0 : R.value) ? (
|
|
3703
|
-
}), m =
|
|
3705
|
+
}), g = $(() => {
|
|
3706
|
+
var R, B;
|
|
3707
|
+
return ne((R = l == null ? void 0 : l.isMobile) == null ? void 0 : R.value) ? (B = l == null ? void 0 : l.isMobile) == null ? void 0 : B.value : r.value === "sm" || r.value === "xs";
|
|
3708
|
+
}), m = $(() => {
|
|
3704
3709
|
var R;
|
|
3705
|
-
return Ue(e.dark) ?
|
|
3706
|
-
}),
|
|
3710
|
+
return Ue(e.dark) ? u.value : (R = i == null ? void 0 : i.dark) == null ? void 0 : R.value;
|
|
3711
|
+
}), I = ea(async (R) => {
|
|
3707
3712
|
p(R);
|
|
3708
3713
|
}, 160), C = (R) => {
|
|
3709
3714
|
$n({
|
|
@@ -3715,11 +3720,11 @@ const Zr = /* @__PURE__ */ E({
|
|
|
3715
3720
|
e != null && e.onLogout && (h(!0), e.onLogout(() => h(!1)));
|
|
3716
3721
|
};
|
|
3717
3722
|
return () => {
|
|
3718
|
-
const R = $e(n, e, "dropdownMenuRender"),
|
|
3723
|
+
const R = $e(n, e, "dropdownMenuRender"), B = $e(n, e, "dropdownRender"), P = $e(n, e, "dropdownMenuExtraItemRender"), M = le(n, e, "actionsRender"), N = a.value ? Da : za;
|
|
3719
3724
|
return f(t("div", {
|
|
3720
|
-
class: `${c}-right-content ${
|
|
3725
|
+
class: `${c}-right-content ${d.value}`.trim(),
|
|
3721
3726
|
style: {
|
|
3722
|
-
minWidth:
|
|
3727
|
+
minWidth: S.value,
|
|
3723
3728
|
height: "100%"
|
|
3724
3729
|
}
|
|
3725
3730
|
}, [t("div", {
|
|
@@ -3731,33 +3736,33 @@ const Zr = /* @__PURE__ */ E({
|
|
|
3731
3736
|
onResize: ({
|
|
3732
3737
|
width: Q
|
|
3733
3738
|
}) => {
|
|
3734
|
-
|
|
3739
|
+
I(Q);
|
|
3735
3740
|
}
|
|
3736
3741
|
}, {
|
|
3737
3742
|
default: () => {
|
|
3738
3743
|
var Q;
|
|
3739
3744
|
return [t("div", {
|
|
3740
|
-
class: `${c}-header-actions ${
|
|
3745
|
+
class: `${c}-header-actions ${d.value}`.trim()
|
|
3741
3746
|
}, [e.actions.search && !g.value && t(ri, {
|
|
3742
3747
|
dataSource: e.dataSource,
|
|
3743
3748
|
disabeldShortKey: (Q = e.shortsKey) == null ? void 0 : Q.disabeld
|
|
3744
3749
|
}, null), e.actions.theme && t("div", {
|
|
3745
|
-
class: `${c}-header-actions-item ${
|
|
3750
|
+
class: `${c}-header-actions-item ${d.value}`.trim()
|
|
3746
3751
|
}, [t(Ke, {
|
|
3747
|
-
class: `${c}-header-actions-icon ${
|
|
3752
|
+
class: `${c}-header-actions-icon ${d.value}`.trim(),
|
|
3748
3753
|
name: m.value ? "liangse" : "anhei",
|
|
3749
3754
|
onClick: (_) => C(_)
|
|
3750
3755
|
}, null)]), e.actions.settings && !g.value && t("div", {
|
|
3751
|
-
class: `${c}-header-actions-item ${
|
|
3756
|
+
class: `${c}-header-actions-item ${d.value}`.trim()
|
|
3752
3757
|
}, [t(cn, {
|
|
3753
|
-
onClick: () => s(!
|
|
3758
|
+
onClick: () => s(!w.value)
|
|
3754
3759
|
}, null)]), e.actions.fullScreen && !g.value && t("div", {
|
|
3755
|
-
class: `${c}-header-actions-item ${
|
|
3760
|
+
class: `${c}-header-actions-item ${d.value}`.trim()
|
|
3756
3761
|
}, [t(N, {
|
|
3757
3762
|
onClick: () => o()
|
|
3758
|
-
}, null)]), M ? M == null ? void 0 : M([`${c}-header-actions-item`,
|
|
3763
|
+
}, null)]), M ? M == null ? void 0 : M([`${c}-header-actions-item`, d.value]) : null, t(dt, {
|
|
3759
3764
|
overlay: R || t(ye, null, {
|
|
3760
|
-
default: () => [P, e.actions.lock && t(
|
|
3765
|
+
default: () => [P, e.actions.lock && t(J, null, [t(Tt, {
|
|
3761
3766
|
key: "lock",
|
|
3762
3767
|
icon: t(sn, null, null),
|
|
3763
3768
|
onClick: () => {
|
|
@@ -3776,14 +3781,14 @@ const Zr = /* @__PURE__ */ E({
|
|
|
3776
3781
|
})]
|
|
3777
3782
|
})
|
|
3778
3783
|
}, {
|
|
3779
|
-
default: () => [
|
|
3780
|
-
class: `${c}-header-actions-avatar ${
|
|
3784
|
+
default: () => [B || t("div", {
|
|
3785
|
+
class: `${c}-header-actions-avatar ${d.value}`.trim()
|
|
3781
3786
|
}, [t(qt, {
|
|
3782
3787
|
size: 28,
|
|
3783
3788
|
icon: t(rn, null, null),
|
|
3784
3789
|
src: e.avatar
|
|
3785
3790
|
}, null), t("div", {
|
|
3786
|
-
class: `${c}-header-actions-name ${
|
|
3791
|
+
class: `${c}-header-actions-name ${d.value}`.trim()
|
|
3787
3792
|
}, [e.name || "gx12358"])])]
|
|
3788
3793
|
})])];
|
|
3789
3794
|
}
|
|
@@ -3856,7 +3861,7 @@ const Zr = /* @__PURE__ */ E({
|
|
|
3856
3861
|
}), {
|
|
3857
3862
|
wrapSSR: i,
|
|
3858
3863
|
hashId: l
|
|
3859
|
-
} = fe("ProPageHeader", [di], o), r =
|
|
3864
|
+
} = fe("ProPageHeader", [di], o), r = $(() => {
|
|
3860
3865
|
var h;
|
|
3861
3866
|
const c = ((h = n == null ? void 0 : n.breadcrumb) == null ? void 0 : h.value) || {}, x = (c.routes || []).map((f) => ({
|
|
3862
3867
|
...f,
|
|
@@ -3948,41 +3953,41 @@ const Jr = /* @__PURE__ */ E({
|
|
|
3948
3953
|
}), x = r({
|
|
3949
3954
|
suffixCls: "grid-content",
|
|
3950
3955
|
isPor: !0
|
|
3951
|
-
}), h =
|
|
3956
|
+
}), h = $(() => {
|
|
3952
3957
|
var C;
|
|
3953
3958
|
return ((C = o == null ? void 0 : o.pageContainerProps) == null ? void 0 : C.value) || {};
|
|
3954
|
-
}), f =
|
|
3959
|
+
}), f = $(() => {
|
|
3955
3960
|
var C;
|
|
3956
3961
|
return e.pageCardProps || ((C = h.value) == null ? void 0 : C.pageCardProps);
|
|
3957
|
-
}),
|
|
3962
|
+
}), d = $(() => {
|
|
3958
3963
|
var C;
|
|
3959
3964
|
return e.waterMarkProps || ((C = h.value) == null ? void 0 : C.waterMarkProps) || {};
|
|
3960
|
-
}),
|
|
3965
|
+
}), S = $(() => {
|
|
3961
3966
|
var C;
|
|
3962
3967
|
return e.pageContentStyle || ((C = h.value) == null ? void 0 : C.pageContentStyle);
|
|
3963
|
-
}), p =
|
|
3968
|
+
}), p = $(() => {
|
|
3964
3969
|
var C;
|
|
3965
3970
|
return e.pageChildrenContentStyle || ((C = h.value) == null ? void 0 : C.pageChildrenContentStyle) || {};
|
|
3966
|
-
}),
|
|
3971
|
+
}), u = $(() => {
|
|
3967
3972
|
var C;
|
|
3968
3973
|
return e.contentWide || ((C = o == null ? void 0 : o.hasContentWide) == null ? void 0 : C.value);
|
|
3969
|
-
}), v =
|
|
3974
|
+
}), v = $(() => {
|
|
3970
3975
|
var C, F;
|
|
3971
3976
|
return ne(e.usePageCard) ? e.usePageCard : ne((C = h.value) == null ? void 0 : C.usePageCard) ? (F = h.value) == null ? void 0 : F.usePageCard : !0;
|
|
3972
|
-
}),
|
|
3977
|
+
}), w = $(() => {
|
|
3973
3978
|
var C, F, R;
|
|
3974
3979
|
return (R = (F = (C = l == null ? void 0 : l.token) == null ? void 0 : C.value) == null ? void 0 : F.layout) == null ? void 0 : R.pageContainer;
|
|
3975
3980
|
}), {
|
|
3976
3981
|
wrapSSR: s,
|
|
3977
3982
|
hashId: g
|
|
3978
3983
|
} = hi(c), m = () => {
|
|
3979
|
-
var F, R,
|
|
3984
|
+
var F, R, B, P;
|
|
3980
3985
|
const C = $e(n, e, "pageChildrenExtraRender");
|
|
3981
3986
|
return t("div", {
|
|
3982
3987
|
class: `${c}-children-content ${g.value}`,
|
|
3983
3988
|
style: p.value
|
|
3984
|
-
}, [C, v.value ? t(Un,
|
|
3985
|
-
style:
|
|
3989
|
+
}, [C, v.value ? t(Un, te(f.value ? ae(f.value, ["loading", "bodyStyle"]) : {}, {
|
|
3990
|
+
style: u.value ? {
|
|
3986
3991
|
minHeight: "853px"
|
|
3987
3992
|
} : void 0,
|
|
3988
3993
|
bordered: !1
|
|
@@ -3992,20 +3997,20 @@ const Jr = /* @__PURE__ */ E({
|
|
|
3992
3997
|
return [(M = n.default) == null ? void 0 : M.call(n)];
|
|
3993
3998
|
}
|
|
3994
3999
|
}) : Ne(C) ? t("div", {
|
|
3995
|
-
style: (F =
|
|
3996
|
-
marginBlockStart: `${(R =
|
|
4000
|
+
style: (F = w.value) != null && F.marginBlockPageContainerContent ? {
|
|
4001
|
+
marginBlockStart: `${(R = w.value) == null ? void 0 : R.marginBlockPageContainerContent}px`
|
|
3997
4002
|
} : void 0
|
|
3998
|
-
}, [(
|
|
3999
|
-
},
|
|
4003
|
+
}, [(B = n.default) == null ? void 0 : B.call(n)]) : (P = n.default) == null ? void 0 : P.call(n)]);
|
|
4004
|
+
}, I = () => {
|
|
4000
4005
|
var F;
|
|
4001
4006
|
let C;
|
|
4002
|
-
return t(
|
|
4007
|
+
return t(J, null, [(ne(e.waterMark) ? e.waterMark : (F = o == null ? void 0 : o.waterMark) != null && F.value) ? t(Xa, d.value, gi(C = m()) ? C : {
|
|
4003
4008
|
default: () => [C]
|
|
4004
4009
|
}) : m()]);
|
|
4005
4010
|
};
|
|
4006
4011
|
return () => {
|
|
4007
|
-
var
|
|
4008
|
-
const C = $e(n, e, "pageHeaderRender") || ((
|
|
4012
|
+
var B, P;
|
|
4013
|
+
const C = $e(n, e, "pageHeaderRender") || ((B = o == null ? void 0 : o.pageHeaderRender) == null ? void 0 : B.value), F = le(n, e, "breadcrumbRender"), R = $e(n, e, "contentRender");
|
|
4009
4014
|
return s(t("div", {
|
|
4010
4015
|
style: a.style,
|
|
4011
4016
|
class: {
|
|
@@ -4016,7 +4021,7 @@ const Jr = /* @__PURE__ */ E({
|
|
|
4016
4021
|
class: q(`${c}-blur`, g.value)
|
|
4017
4022
|
}, [t(Ct, {
|
|
4018
4023
|
indicator: (P = i == null ? void 0 : i.indicator) == null ? void 0 : P.value
|
|
4019
|
-
}, null)]), !
|
|
4024
|
+
}, null)]), !u.value && C !== !1 && (C || t(mi, {
|
|
4020
4025
|
style: e.pageHeaderStyle,
|
|
4021
4026
|
breadcrumb: F,
|
|
4022
4027
|
content: R
|
|
@@ -4024,8 +4029,8 @@ const Jr = /* @__PURE__ */ E({
|
|
|
4024
4029
|
class: [x, g.value]
|
|
4025
4030
|
}, [t("div", {
|
|
4026
4031
|
class: `${x}-children ${g.value}`,
|
|
4027
|
-
style:
|
|
4028
|
-
}, [
|
|
4032
|
+
style: S.value
|
|
4033
|
+
}, [I()])])]));
|
|
4029
4034
|
};
|
|
4030
4035
|
}
|
|
4031
4036
|
}), vt = Object.keys(Y).filter((e) => e !== "title"), yi = [{
|
|
@@ -4500,43 +4505,43 @@ const Ri = /* @__PURE__ */ E({
|
|
|
4500
4505
|
hashId: r
|
|
4501
4506
|
} = fe("ProThemeEditor", [wi], i), {
|
|
4502
4507
|
token: c
|
|
4503
|
-
} = Oe(), x =
|
|
4508
|
+
} = Oe(), x = $(() => {
|
|
4504
4509
|
var p;
|
|
4505
4510
|
return (p = c.value) == null ? void 0 : p.layout;
|
|
4506
4511
|
});
|
|
4507
4512
|
function h(p) {
|
|
4508
|
-
return Re(Pn).map((
|
|
4509
|
-
var
|
|
4510
|
-
const v = at(p, c.value,
|
|
4511
|
-
if (
|
|
4512
|
-
for (const s in
|
|
4513
|
-
const g = (
|
|
4514
|
-
|
|
4513
|
+
return Re(Pn).map((u) => {
|
|
4514
|
+
var w;
|
|
4515
|
+
const v = at(p, c.value, u.key);
|
|
4516
|
+
if (u.token = v, v)
|
|
4517
|
+
for (const s in u.token) {
|
|
4518
|
+
const g = (w = x.value) == null ? void 0 : w[p], m = (g == null ? void 0 : g[s]) || u.token[s];
|
|
4519
|
+
u.token[s] = m;
|
|
4515
4520
|
}
|
|
4516
|
-
return
|
|
4517
|
-
}).filter((
|
|
4521
|
+
return u;
|
|
4522
|
+
}).filter((u) => u.token);
|
|
4518
4523
|
}
|
|
4519
4524
|
const f = Be({
|
|
4520
4525
|
header: h("header"),
|
|
4521
4526
|
sider: h("sider")
|
|
4522
4527
|
});
|
|
4523
4528
|
ce([() => {
|
|
4524
|
-
var p,
|
|
4525
|
-
return (
|
|
4529
|
+
var p, u;
|
|
4530
|
+
return (u = (p = c.value) == null ? void 0 : p.layout) == null ? void 0 : u.header;
|
|
4526
4531
|
}, () => {
|
|
4527
|
-
var p,
|
|
4528
|
-
return (
|
|
4532
|
+
var p, u;
|
|
4533
|
+
return (u = (p = c.value) == null ? void 0 : p.layout) == null ? void 0 : u.sider;
|
|
4529
4534
|
}], () => {
|
|
4530
4535
|
f.sider = h("sider"), f.header = h("header");
|
|
4531
4536
|
}, {
|
|
4532
4537
|
deep: 1
|
|
4533
4538
|
});
|
|
4534
|
-
const
|
|
4535
|
-
var
|
|
4536
|
-
const p = (
|
|
4537
|
-
var
|
|
4538
|
-
return v.key === ((
|
|
4539
|
-
})) == null ? void 0 :
|
|
4539
|
+
const d = $(() => {
|
|
4540
|
+
var u;
|
|
4541
|
+
const p = (u = f[a.value].find((v) => {
|
|
4542
|
+
var w;
|
|
4543
|
+
return v.key === ((w = x.value) == null ? void 0 : w.key);
|
|
4544
|
+
})) == null ? void 0 : u.token;
|
|
4540
4545
|
return Object.keys(p || {}).map((v) => {
|
|
4541
4546
|
var s;
|
|
4542
4547
|
return {
|
|
@@ -4545,15 +4550,15 @@ const Ri = /* @__PURE__ */ E({
|
|
|
4545
4550
|
value: (p == null ? void 0 : p[v]) || ""
|
|
4546
4551
|
};
|
|
4547
4552
|
});
|
|
4548
|
-
}),
|
|
4553
|
+
}), S = (p, u) => {
|
|
4549
4554
|
var v;
|
|
4550
|
-
f[a.value] = f[a.value].map((
|
|
4555
|
+
f[a.value] = f[a.value].map((w) => {
|
|
4551
4556
|
var s;
|
|
4552
|
-
return
|
|
4553
|
-
}), (v = e.onChange) == null || v.call(e, p, a.value,
|
|
4557
|
+
return w.key === ((s = x.value) == null ? void 0 : s.key) && (w.token[u] = p), w;
|
|
4558
|
+
}), (v = e.onChange) == null || v.call(e, p, a.value, u);
|
|
4554
4559
|
};
|
|
4555
4560
|
return () => {
|
|
4556
|
-
var
|
|
4561
|
+
var u, v, w;
|
|
4557
4562
|
let p;
|
|
4558
4563
|
return l(t("div", {
|
|
4559
4564
|
class: [i, r.value]
|
|
@@ -4561,7 +4566,7 @@ const Ri = /* @__PURE__ */ E({
|
|
|
4561
4566
|
class: [`${i}-title`, r.value]
|
|
4562
4567
|
}, [U("主题编辑器"), t("div", {
|
|
4563
4568
|
class: [`${i}-sub-title`, r.value]
|
|
4564
|
-
}, [t("span", null, [(
|
|
4569
|
+
}, [t("span", null, [(u = kn.find((s) => s.key === e.theme)) == null ? void 0 : u.title]), t("span", {
|
|
4565
4570
|
style: {
|
|
4566
4571
|
marginInline: "8px"
|
|
4567
4572
|
}
|
|
@@ -4588,7 +4593,7 @@ const Ri = /* @__PURE__ */ E({
|
|
|
4588
4593
|
dataSource: [{
|
|
4589
4594
|
title: "自定义主题色",
|
|
4590
4595
|
action: t(Nt, {
|
|
4591
|
-
value: (
|
|
4596
|
+
value: (w = e.settingValue) == null ? void 0 : w.primaryColor,
|
|
4592
4597
|
size: "small",
|
|
4593
4598
|
onChangeComplete: (s) => e.onChange && e.onChange(s.toCssString(), "primaryColor")
|
|
4594
4599
|
}, null)
|
|
@@ -4615,12 +4620,12 @@ const Ri = /* @__PURE__ */ E({
|
|
|
4615
4620
|
}
|
|
4616
4621
|
}, [g.title])]
|
|
4617
4622
|
}),
|
|
4618
|
-
dataSource:
|
|
4623
|
+
dataSource: d.value.map((g) => ({
|
|
4619
4624
|
...g,
|
|
4620
4625
|
action: t(Nt, {
|
|
4621
4626
|
value: g.value,
|
|
4622
4627
|
size: "small",
|
|
4623
|
-
onChangeComplete: (m) =>
|
|
4628
|
+
onChangeComplete: (m) => S(m.toCssString(), g.key)
|
|
4624
4629
|
}, null)
|
|
4625
4630
|
}))
|
|
4626
4631
|
}, null)]
|
|
@@ -4681,7 +4686,7 @@ const {
|
|
|
4681
4686
|
hashId: o
|
|
4682
4687
|
} = fe("SettingsDrawOthers", [$i], n);
|
|
4683
4688
|
return () => {
|
|
4684
|
-
var l, r, c, x, h, f,
|
|
4689
|
+
var l, r, c, x, h, f, d, S, p, u, v, w, s, g;
|
|
4685
4690
|
let i;
|
|
4686
4691
|
return a(t("div", {
|
|
4687
4692
|
class: [n, o.value]
|
|
@@ -4713,8 +4718,8 @@ const {
|
|
|
4713
4718
|
checked: !((r = (l = e.settingValue) == null ? void 0 : l.animate) != null && r.disabled),
|
|
4714
4719
|
size: "small",
|
|
4715
4720
|
onChange: (m) => {
|
|
4716
|
-
var
|
|
4717
|
-
return (
|
|
4721
|
+
var I;
|
|
4722
|
+
return (I = e.onChange) == null ? void 0 : I.call(e, "animate", "disabled", !m);
|
|
4718
4723
|
}
|
|
4719
4724
|
}, null)
|
|
4720
4725
|
}, {
|
|
@@ -4726,11 +4731,11 @@ const {
|
|
|
4726
4731
|
width: "100px"
|
|
4727
4732
|
},
|
|
4728
4733
|
size: "small",
|
|
4729
|
-
disabled: (
|
|
4734
|
+
disabled: (S = (d = e.settingValue) == null ? void 0 : d.animate) == null ? void 0 : S.disabled,
|
|
4730
4735
|
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
4731
4736
|
onChange: (m) => {
|
|
4732
|
-
var
|
|
4733
|
-
return (
|
|
4737
|
+
var I;
|
|
4738
|
+
return (I = e.onChange) == null ? void 0 : I.call(e, "animate", "name", m);
|
|
4734
4739
|
}
|
|
4735
4740
|
}, _t(i = Xt.map((m) => t(Xe.Option, {
|
|
4736
4741
|
value: m.name
|
|
@@ -4741,9 +4746,9 @@ const {
|
|
|
4741
4746
|
})
|
|
4742
4747
|
}, {
|
|
4743
4748
|
title: "动画方向",
|
|
4744
|
-
disabled: (
|
|
4749
|
+
disabled: (u = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : u.disabled,
|
|
4745
4750
|
action: t(Xe, {
|
|
4746
|
-
value: (
|
|
4751
|
+
value: (w = (v = e.settingValue) == null ? void 0 : v.animate) == null ? void 0 : w.direction,
|
|
4747
4752
|
style: {
|
|
4748
4753
|
width: "100px"
|
|
4749
4754
|
},
|
|
@@ -4754,19 +4759,19 @@ const {
|
|
|
4754
4759
|
disabled: (g = (s = e.settingValue) == null ? void 0 : s.animate) == null ? void 0 : g.disabled,
|
|
4755
4760
|
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
4756
4761
|
onChange: (m) => {
|
|
4757
|
-
var
|
|
4758
|
-
return (
|
|
4762
|
+
var I;
|
|
4763
|
+
return (I = e.onChange) == null ? void 0 : I.call(e, "animate", "direction", m);
|
|
4759
4764
|
}
|
|
4760
4765
|
}, {
|
|
4761
4766
|
default: () => {
|
|
4762
4767
|
var m;
|
|
4763
|
-
return [(m = Xt.find((
|
|
4768
|
+
return [(m = Xt.find((I) => {
|
|
4764
4769
|
var C, F;
|
|
4765
|
-
return
|
|
4766
|
-
})) == null ? void 0 : m.directions.map((
|
|
4767
|
-
value:
|
|
4768
|
-
}, _t(
|
|
4769
|
-
default: () => [
|
|
4770
|
+
return I.name === ((F = (C = e.settingValue) == null ? void 0 : C.animate) == null ? void 0 : F.name);
|
|
4771
|
+
})) == null ? void 0 : m.directions.map((I) => t(Xe.Option, {
|
|
4772
|
+
value: I
|
|
4773
|
+
}, _t(I) ? I : {
|
|
4774
|
+
default: () => [I]
|
|
4770
4775
|
}))];
|
|
4771
4776
|
}
|
|
4772
4777
|
})
|
|
@@ -4836,55 +4841,55 @@ const {
|
|
|
4836
4841
|
wrapSSR: r,
|
|
4837
4842
|
hashId: c
|
|
4838
4843
|
} = fe("ProSettingDraw", [xi], o), x = me(!1), [h, f] = ze(!1, {
|
|
4839
|
-
value:
|
|
4840
|
-
var
|
|
4841
|
-
return ne(e.open) ? e.open : (
|
|
4844
|
+
value: $(() => {
|
|
4845
|
+
var L;
|
|
4846
|
+
return ne(e.open) ? e.open : (L = a == null ? void 0 : a.settingsOpen) == null ? void 0 : L.value;
|
|
4842
4847
|
}),
|
|
4843
|
-
onChange: (
|
|
4848
|
+
onChange: (L) => {
|
|
4844
4849
|
var k, D;
|
|
4845
|
-
(k = e.onOpenChange) == null || k.call(e,
|
|
4850
|
+
(k = e.onOpenChange) == null || k.call(e, L), (D = e == null ? void 0 : e["onUpdate:open"]) == null || D.call(e, L), a && !ne(e.open) && (a.settingsOpen.value = L);
|
|
4846
4851
|
}
|
|
4847
4852
|
}), {
|
|
4848
|
-
innerDark:
|
|
4849
|
-
isDark:
|
|
4853
|
+
innerDark: d,
|
|
4854
|
+
isDark: S,
|
|
4850
4855
|
toggleMode: p
|
|
4851
|
-
} = Mt(
|
|
4852
|
-
var
|
|
4853
|
-
return Ue(e.dark) ? e.dark : (
|
|
4856
|
+
} = Mt($(() => {
|
|
4857
|
+
var L;
|
|
4858
|
+
return Ue(e.dark) ? e.dark : (L = a == null ? void 0 : a.dark) == null ? void 0 : L.value;
|
|
4854
4859
|
}), {
|
|
4855
|
-
change: (
|
|
4860
|
+
change: (L) => {
|
|
4856
4861
|
var k, D, W;
|
|
4857
|
-
(k = e.onDarkChange) == null || k.call(e,
|
|
4862
|
+
(k = e.onDarkChange) == null || k.call(e, L), (D = e == null ? void 0 : e["onUpdate:dark"]) == null || D.call(e, L), (W = a == null ? void 0 : a.onDarkChange) == null || W.call(a, L);
|
|
4858
4863
|
}
|
|
4859
|
-
}), [
|
|
4864
|
+
}), [u, v] = be(!1), [w, s] = be(!1), g = $(() => e.storage ? Object.keys(l.value).length > 0 : !1), m = $(() => Vt(ae(e.settings, vt))), [I, C] = ze(() => Vt(ae(e.settings, vt)), {
|
|
4860
4865
|
value: m,
|
|
4861
|
-
onChange: (
|
|
4866
|
+
onChange: (L) => {
|
|
4862
4867
|
var k;
|
|
4863
|
-
l.value = Ce(l.value,
|
|
4868
|
+
l.value = Ce(l.value, L), (k = e.onChange) == null || k.call(e, L);
|
|
4864
4869
|
}
|
|
4865
|
-
}), F =
|
|
4866
|
-
var
|
|
4867
|
-
return Ue(e.dark) ?
|
|
4868
|
-
}), R = (
|
|
4870
|
+
}), F = $(() => {
|
|
4871
|
+
var L;
|
|
4872
|
+
return Ue(e.dark) ? S.value : (L = n == null ? void 0 : n.dark) == null ? void 0 : L.value;
|
|
4873
|
+
}), R = (L, k) => {
|
|
4869
4874
|
$n({
|
|
4870
|
-
event:
|
|
4875
|
+
event: L,
|
|
4871
4876
|
isDark: F,
|
|
4872
4877
|
toggle: p,
|
|
4873
4878
|
value: k
|
|
4874
4879
|
});
|
|
4875
4880
|
};
|
|
4876
|
-
ce(() => e.storage, (
|
|
4877
|
-
|
|
4878
|
-
dark:
|
|
4879
|
-
...Re(
|
|
4880
|
-
}), sa(Me(l.value, "dark"),
|
|
4881
|
-
...
|
|
4882
|
-
dark:
|
|
4881
|
+
ce(() => e.storage, (L) => {
|
|
4882
|
+
L && (g.value ? (Object.assign(i, {
|
|
4883
|
+
dark: d.value,
|
|
4884
|
+
...Re(I.value)
|
|
4885
|
+
}), sa(Me(l.value, "dark"), I.value) || C(Me(l.value, "dark")), R(null, l.value.dark)) : l.value = {
|
|
4886
|
+
...I.value,
|
|
4887
|
+
dark: d.value
|
|
4883
4888
|
});
|
|
4884
4889
|
}, {
|
|
4885
4890
|
immediate: !0
|
|
4886
4891
|
});
|
|
4887
|
-
const
|
|
4892
|
+
const B = $(() => e.colorList && tn(e.colorList) ? e.colorList : []), P = $(() => No(re(I))), {
|
|
4888
4893
|
copy: M,
|
|
4889
4894
|
copied: N,
|
|
4890
4895
|
isSupported: Q
|
|
@@ -4892,39 +4897,39 @@ const {
|
|
|
4892
4897
|
ce(h, () => {
|
|
4893
4898
|
x.value || (x.value = !0);
|
|
4894
4899
|
}), ce(() => {
|
|
4895
|
-
var
|
|
4896
|
-
return (
|
|
4897
|
-
}, (
|
|
4898
|
-
ne(e.open) || f(
|
|
4899
|
-
}), ce(N, (
|
|
4900
|
-
|
|
4901
|
-
}), ce(() =>
|
|
4902
|
-
e.storage && (l.value.dark =
|
|
4900
|
+
var L;
|
|
4901
|
+
return (L = a == null ? void 0 : a.settingsOpen) == null ? void 0 : L.value;
|
|
4902
|
+
}, (L) => {
|
|
4903
|
+
ne(e.open) || f(L);
|
|
4904
|
+
}), ce(N, (L) => {
|
|
4905
|
+
L && Xn.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
4906
|
+
}), ce(() => d.value, (L) => {
|
|
4907
|
+
e.storage && (l.value.dark = L);
|
|
4903
4908
|
});
|
|
4904
|
-
const _ = (
|
|
4909
|
+
const _ = (L, k, D) => {
|
|
4905
4910
|
var ge, H, G;
|
|
4906
|
-
const W = ["header", "sider"],
|
|
4907
|
-
if (D != null && D.subKey && W.includes(
|
|
4908
|
-
|
|
4911
|
+
const W = ["header", "sider"], ee = {};
|
|
4912
|
+
if (D != null && D.subKey && W.includes(L)) {
|
|
4913
|
+
ee[L] = {}, ee[L][D == null ? void 0 : D.subKey] = k, (ge = e.onLayoutChange) == null || ge.call(e, ae(ee, W));
|
|
4909
4914
|
return;
|
|
4910
4915
|
} else
|
|
4911
|
-
|
|
4912
|
-
if (
|
|
4913
|
-
const
|
|
4914
|
-
|
|
4916
|
+
L === "animate" ? (ee[L] = {}, D != null && D.subKey && (ee[L][D == null ? void 0 : D.subKey] = k), (D == null ? void 0 : D.subKey) === "name" && (ee[L].direction = (G = (H = Li.find((Z) => Z.name === k)) == null ? void 0 : H.directions) == null ? void 0 : G[0])) : ee[L] = k;
|
|
4917
|
+
if (L === "colorWeak") {
|
|
4918
|
+
const Z = document.querySelector("body");
|
|
4919
|
+
Z && (Z.dataset.prosettingdrawer = k === !0 ? Z.style.filter : Z.dataset.prosettingdrawer || "none", k === !0 && (Z.dataset.prosettingdrawer = Z.style.filter), Z.style.filter = k === !0 ? "invert(80%)" : Z.dataset.prosettingdrawer || "none", k || delete Z.dataset.prosettingdrawer);
|
|
4915
4920
|
}
|
|
4916
|
-
C(Ce(re(
|
|
4917
|
-
...zo(Me(
|
|
4921
|
+
C(Ce(re(I), {
|
|
4922
|
+
...zo(Me(ee, W))
|
|
4918
4923
|
}));
|
|
4919
|
-
}, X = (
|
|
4920
|
-
l.value.dark =
|
|
4924
|
+
}, X = (L) => {
|
|
4925
|
+
l.value.dark = L === "system" ? L : L === "dark", R(null, L === "system" ? L : L === "dark");
|
|
4921
4926
|
}, he = () => {
|
|
4922
|
-
Q.value && M(JSON.stringify(re(
|
|
4927
|
+
Q.value && M(JSON.stringify(re(I)));
|
|
4923
4928
|
}, de = () => {
|
|
4924
4929
|
C(Me(Re(i), "dark")), R(null, i.dark), l.value = Re(i);
|
|
4925
4930
|
};
|
|
4926
4931
|
return () => {
|
|
4927
|
-
const
|
|
4932
|
+
const L = h.value ? ot : cn;
|
|
4928
4933
|
return r(t(Ye, {
|
|
4929
4934
|
width: 300,
|
|
4930
4935
|
closable: !1,
|
|
@@ -4941,7 +4946,7 @@ const {
|
|
|
4941
4946
|
handle: t("div", {
|
|
4942
4947
|
class: [`${o}-handle`, c.value],
|
|
4943
4948
|
onClick: () => f(!h.value)
|
|
4944
|
-
}, [t(
|
|
4949
|
+
}, [t(L, {
|
|
4945
4950
|
style: Oi
|
|
4946
4951
|
}, null)])
|
|
4947
4952
|
}, {
|
|
@@ -4956,7 +4961,7 @@ const {
|
|
|
4956
4961
|
title: "整体风格"
|
|
4957
4962
|
}, {
|
|
4958
4963
|
default: () => [t(Vn, {
|
|
4959
|
-
value: ne(
|
|
4964
|
+
value: ne(d.value) ? d.value ? "dark" : "light" : "system",
|
|
4960
4965
|
options: yi,
|
|
4961
4966
|
onChange: (k) => X(k)
|
|
4962
4967
|
}, null)]
|
|
@@ -4969,7 +4974,7 @@ const {
|
|
|
4969
4974
|
hashId: c.value,
|
|
4970
4975
|
prefixCls: o,
|
|
4971
4976
|
list: kn,
|
|
4972
|
-
value:
|
|
4977
|
+
value: I.value.theme,
|
|
4973
4978
|
configType: "theme",
|
|
4974
4979
|
key: "navTheme",
|
|
4975
4980
|
onChange: (k, D) => _("theme", k, {
|
|
@@ -4990,18 +4995,18 @@ const {
|
|
|
4990
4995
|
default: () => [t(Si, {
|
|
4991
4996
|
hashId: c.value,
|
|
4992
4997
|
prefixCls: o,
|
|
4993
|
-
colorList:
|
|
4994
|
-
settingValue:
|
|
4998
|
+
colorList: B.value,
|
|
4999
|
+
settingValue: I.value,
|
|
4995
5000
|
onChange: (k, D) => _(D || "primaryColor", k)
|
|
4996
5001
|
}, null)]
|
|
4997
|
-
}), !e.themeOnly && t(
|
|
5002
|
+
}), !e.themeOnly && t(J, null, [t(st, null, null), t(Ee, {
|
|
4998
5003
|
hashId: c.value,
|
|
4999
5004
|
prefixCls: o,
|
|
5000
5005
|
title: "导航模式"
|
|
5001
5006
|
}, {
|
|
5002
5007
|
default: () => [t(Ut, {
|
|
5003
5008
|
prefixCls: o,
|
|
5004
|
-
value: re(
|
|
5009
|
+
value: re(I).layout,
|
|
5005
5010
|
key: "layout",
|
|
5006
5011
|
hashId: c.value,
|
|
5007
5012
|
configType: "layout",
|
|
@@ -5014,11 +5019,11 @@ const {
|
|
|
5014
5019
|
}) => t(Ge, {
|
|
5015
5020
|
label: D,
|
|
5016
5021
|
disabled: P.value[k],
|
|
5017
|
-
value:
|
|
5022
|
+
value: I.value[k],
|
|
5018
5023
|
prefixCls: o,
|
|
5019
5024
|
hashId: c.value,
|
|
5020
5025
|
valueKey: k,
|
|
5021
|
-
onChange: (W,
|
|
5026
|
+
onChange: (W, ee) => _(W, ee)
|
|
5022
5027
|
}, null)), t(st, null, null), t(Ee, {
|
|
5023
5028
|
hashId: c.value,
|
|
5024
5029
|
prefixCls: o,
|
|
@@ -5036,21 +5041,21 @@ const {
|
|
|
5036
5041
|
}) => t(Ge, {
|
|
5037
5042
|
label: D,
|
|
5038
5043
|
disabled: re(P)[k],
|
|
5039
|
-
value: re(
|
|
5044
|
+
value: re(I)[k],
|
|
5040
5045
|
prefixCls: o,
|
|
5041
5046
|
hashId: c.value,
|
|
5042
5047
|
valueKey: k,
|
|
5043
|
-
onChange: (W,
|
|
5048
|
+
onChange: (W, ee) => _(W, ee)
|
|
5044
5049
|
}, null)), e.weakmode && t(Ge, {
|
|
5045
5050
|
label: "色弱模式",
|
|
5046
|
-
value: re(
|
|
5051
|
+
value: re(I).colorWeak,
|
|
5047
5052
|
prefixCls: o,
|
|
5048
5053
|
hashId: c.value,
|
|
5049
5054
|
valueKey: "colorWeak",
|
|
5050
5055
|
onChange: (k, D) => _(k, D)
|
|
5051
5056
|
}, null), e.showProgress && t(Ge, {
|
|
5052
5057
|
label: "顶部进度条",
|
|
5053
|
-
value: re(
|
|
5058
|
+
value: re(I).showProgressBar,
|
|
5054
5059
|
prefixCls: o,
|
|
5055
5060
|
hashId: c.value,
|
|
5056
5061
|
valueKey: "showProgressBar",
|
|
@@ -5084,15 +5089,15 @@ const {
|
|
|
5084
5089
|
width: 320,
|
|
5085
5090
|
closable: !1,
|
|
5086
5091
|
placement: "right",
|
|
5087
|
-
open:
|
|
5092
|
+
open: u.value,
|
|
5088
5093
|
bodyStyle: {
|
|
5089
5094
|
padding: 0
|
|
5090
5095
|
},
|
|
5091
5096
|
onClose: () => v(!1)
|
|
5092
5097
|
}, {
|
|
5093
5098
|
default: () => [t(Ri, {
|
|
5094
|
-
theme:
|
|
5095
|
-
settingValue:
|
|
5099
|
+
theme: I.value.theme,
|
|
5100
|
+
settingValue: I.value,
|
|
5096
5101
|
onChange: (k, D, W) => _(D || "primaryColor", k, {
|
|
5097
5102
|
subKey: W
|
|
5098
5103
|
})
|
|
@@ -5101,14 +5106,14 @@ const {
|
|
|
5101
5106
|
width: 320,
|
|
5102
5107
|
closable: !1,
|
|
5103
5108
|
placement: "right",
|
|
5104
|
-
open:
|
|
5109
|
+
open: w.value,
|
|
5105
5110
|
bodyStyle: {
|
|
5106
5111
|
padding: 0
|
|
5107
5112
|
},
|
|
5108
5113
|
onClose: () => s(!1)
|
|
5109
5114
|
}, {
|
|
5110
5115
|
default: () => [t(Bi, {
|
|
5111
|
-
settingValue:
|
|
5116
|
+
settingValue: I.value,
|
|
5112
5117
|
onChange: (k, D, W) => _(k, W, {
|
|
5113
5118
|
subKey: D
|
|
5114
5119
|
})
|
|
@@ -6424,17 +6429,17 @@ const ts = /* @__PURE__ */ E({
|
|
|
6424
6429
|
} = Ir(a), l = (h, f) => {
|
|
6425
6430
|
if (h.length === 0 || h === "x" || h === "y")
|
|
6426
6431
|
return h;
|
|
6427
|
-
let
|
|
6428
|
-
return
|
|
6432
|
+
let d = f.indexOf(h);
|
|
6433
|
+
return d = d % 2 === 1 ? d - 1 : d + 1, f[d];
|
|
6429
6434
|
}, r = (h) => {
|
|
6430
6435
|
const f = Ot.preset.find((p) => e.name === p.name);
|
|
6431
6436
|
if (f === void 0)
|
|
6432
6437
|
return "";
|
|
6433
|
-
let
|
|
6434
|
-
e.direction === void 0 ?
|
|
6435
|
-
const
|
|
6436
|
-
return f.name +
|
|
6437
|
-
}, c =
|
|
6438
|
+
let d = "";
|
|
6439
|
+
e.direction === void 0 ? d = f.directions[0] : d = f.directions.find((p) => p === e.direction) || "", d = d === void 0 || d === "default" ? "" : d, d !== "" && (d = h && e.reverse ? l(d, f.directions) : d, d = d[0].toUpperCase() + d.substring(1));
|
|
6440
|
+
const S = h ? "Out" : "In";
|
|
6441
|
+
return f.name + S + d;
|
|
6442
|
+
}, c = $(() => [r(!1), `${a}-enter`, i.value].join(" ")), x = $(() => [r(!0), `${a}-leave`, i.value].join(" "));
|
|
6438
6443
|
return () => {
|
|
6439
6444
|
var h;
|
|
6440
6445
|
return e.disabled ? (h = n.default) == null ? void 0 : h.call(n) : o(t(Hn, {
|