@gx-design-vue/pro-layout 0.1.0-beta.47 → 0.1.0-beta.49
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
CHANGED
|
@@ -62,7 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
62
|
default: () => undefined;
|
|
63
63
|
};
|
|
64
64
|
pageCardProps: import("vue").PropType<{
|
|
65
|
-
loading
|
|
65
|
+
loading?: boolean | undefined;
|
|
66
66
|
bodyStyle: CSSProperties;
|
|
67
67
|
}>;
|
|
68
68
|
pageContentStyle: import("vue-types").VueTypeValidableDef<CSSProperties>;
|
|
@@ -413,7 +413,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
413
413
|
default: () => undefined;
|
|
414
414
|
};
|
|
415
415
|
pageCardProps: import("vue").PropType<{
|
|
416
|
-
loading
|
|
416
|
+
loading?: boolean | undefined;
|
|
417
417
|
bodyStyle: CSSProperties;
|
|
418
418
|
}>;
|
|
419
419
|
pageContentStyle: import("vue-types").VueTypeValidableDef<CSSProperties>;
|
|
@@ -7,7 +7,7 @@ declare const PageContainer: import("vue").DefineComponent<{
|
|
|
7
7
|
default: () => undefined;
|
|
8
8
|
};
|
|
9
9
|
pageCardProps: import("vue").PropType<{
|
|
10
|
-
loading
|
|
10
|
+
loading?: boolean | undefined;
|
|
11
11
|
bodyStyle: CSSProperties;
|
|
12
12
|
}>;
|
|
13
13
|
pageContentStyle: import("vue-types").VueTypeValidableDef<CSSProperties>;
|
|
@@ -104,7 +104,7 @@ declare const PageContainer: import("vue").DefineComponent<{
|
|
|
104
104
|
default: () => undefined;
|
|
105
105
|
};
|
|
106
106
|
pageCardProps: import("vue").PropType<{
|
|
107
|
-
loading
|
|
107
|
+
loading?: boolean | undefined;
|
|
108
108
|
bodyStyle: CSSProperties;
|
|
109
109
|
}>;
|
|
110
110
|
pageContentStyle: import("vue-types").VueTypeValidableDef<CSSProperties>;
|
|
@@ -7,7 +7,7 @@ export declare const commonPageContainerProps: {
|
|
|
7
7
|
default: () => undefined;
|
|
8
8
|
};
|
|
9
9
|
pageCardProps: PropType<{
|
|
10
|
-
loading
|
|
10
|
+
loading?: boolean | undefined;
|
|
11
11
|
bodyStyle: CSSProperties;
|
|
12
12
|
}>;
|
|
13
13
|
pageContentStyle: import("vue-types").VueTypeValidableDef<CSSProperties>;
|
|
@@ -87,7 +87,7 @@ export declare const pageContainerProps: {
|
|
|
87
87
|
default: () => undefined;
|
|
88
88
|
};
|
|
89
89
|
pageCardProps: PropType<{
|
|
90
|
-
loading
|
|
90
|
+
loading?: boolean | undefined;
|
|
91
91
|
bodyStyle: CSSProperties;
|
|
92
92
|
}>;
|
|
93
93
|
pageContentStyle: import("vue-types").VueTypeValidableDef<CSSProperties>;
|
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, g, m, w, p, R, h,
|
|
256
|
+
var d, g, m, w, p, R, h, T, l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B, F;
|
|
257
257
|
const o = { ...e };
|
|
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 = (
|
|
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 = (T = (h = t.layout) == null ? void 0 : h[i]) == null ? void 0 : T.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 = (F = (B = t.layout) == null ? void 0 : B[i]) == null ? void 0 : F.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: [
|
|
@@ -496,7 +496,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
496
496
|
iconType: (M = l.meta) == null ? void 0 : M.iconType
|
|
497
497
|
}, null) || void 0;
|
|
498
498
|
return [y, f];
|
|
499
|
-
},
|
|
499
|
+
}, T = b(() => p(e.menuData));
|
|
500
500
|
return () => n(ie, G({
|
|
501
501
|
key: "Menu",
|
|
502
502
|
inlineIndent: 16,
|
|
@@ -508,7 +508,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
508
508
|
onSelect: d,
|
|
509
509
|
onClick: g
|
|
510
510
|
}, e.menuProps), {
|
|
511
|
-
default: () => [
|
|
511
|
+
default: () => [T.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, g, m, w, p, R, h,
|
|
536
|
+
var t, a, i, o, d, g, m, w, p, R, h, T;
|
|
537
537
|
return {
|
|
538
538
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
539
539
|
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
@@ -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: `${((T = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : T.heightLayoutHeader) || j.headerHeight}px`
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
@@ -740,7 +740,7 @@ const {
|
|
|
740
740
|
layout: p,
|
|
741
741
|
isMobile: R,
|
|
742
742
|
menuLoading: h,
|
|
743
|
-
breakpoint:
|
|
743
|
+
breakpoint: T,
|
|
744
744
|
fixSiderbar: l,
|
|
745
745
|
collapsed: r,
|
|
746
746
|
siderWidth: I,
|
|
@@ -770,10 +770,10 @@ const {
|
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
772
|
return () => {
|
|
773
|
-
var
|
|
773
|
+
var F;
|
|
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 && ((F = x.value) == null ? void 0 : F.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: T.value || void 0,
|
|
831
831
|
collapsed: r.value,
|
|
832
832
|
width: I.value,
|
|
833
833
|
collapsedWidth: k.value
|
|
@@ -1059,7 +1059,7 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1059
1059
|
usePageCard: R,
|
|
1060
1060
|
waterMarkProps: h
|
|
1061
1061
|
} = te(), {
|
|
1062
|
-
indicator:
|
|
1062
|
+
indicator: T
|
|
1063
1063
|
} = De(), l = he(), r = i({
|
|
1064
1064
|
suffixCls: "page-container",
|
|
1065
1065
|
isPor: !0
|
|
@@ -1100,7 +1100,7 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1100
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: T == null ? void 0 : T.value
|
|
1104
1104
|
}, {
|
|
1105
1105
|
default: () => [n("div", {
|
|
1106
1106
|
style: a.style,
|
|
@@ -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: T,
|
|
1489
1489
|
hashId: l
|
|
1490
1490
|
} = Un(h), r = ke([]);
|
|
1491
1491
|
me(r, () => {
|
|
@@ -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), F = {
|
|
1518
1518
|
path: c.path,
|
|
1519
1519
|
fullPath: v,
|
|
1520
1520
|
query: c.query,
|
|
@@ -1525,7 +1525,7 @@ 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, F) : c.meta.tagFixed ? r.value.unshift(F) : r.value.push(F), $(c) && (o.activeKey = v);
|
|
1529
1529
|
}
|
|
1530
1530
|
}, S = (c) => {
|
|
1531
1531
|
c.forEach((v) => {
|
|
@@ -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((F) => (c || o.activeKey) === A(F))) == 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((F) => A(F) === V(v));
|
|
1569
1569
|
switch (c) {
|
|
1570
1570
|
case "closeOthersTabs":
|
|
1571
|
-
r.value = r.value.filter((
|
|
1571
|
+
r.value = r.value.filter((F) => {
|
|
1572
1572
|
var z;
|
|
1573
|
-
return A(
|
|
1573
|
+
return A(F) === V(v) || ((z = F.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((F, z) => {
|
|
1578
1578
|
var q;
|
|
1579
|
-
return z >= B || ((q =
|
|
1579
|
+
return z >= B || ((q = F.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((F, z) => {
|
|
1584
1584
|
var q;
|
|
1585
|
-
return z <= B || ((q =
|
|
1585
|
+
return z <= B || ((q = F.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((F) => A(F) === 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: F
|
|
1617
1617
|
} = c;
|
|
1618
1618
|
return n(ie, {
|
|
1619
1619
|
selectedKeys: [],
|
|
1620
1620
|
onClick: ({
|
|
1621
1621
|
key: z
|
|
1622
|
-
}) => Y(z,
|
|
1622
|
+
}) => Y(z, F)
|
|
1623
1623
|
}, Xn(v = En.map((z) => n(_n, {
|
|
1624
1624
|
key: z.key,
|
|
1625
1625
|
disabled: _(z.key, B)
|
|
@@ -1649,19 +1649,19 @@ 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: (F) => {
|
|
1653
|
+
F.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: (F) => {
|
|
1658
|
+
F.stopPropagation(), !i.value && P(A(v) || "");
|
|
1659
1659
|
}
|
|
1660
1660
|
}, null)])];
|
|
1661
1661
|
}
|
|
1662
1662
|
});
|
|
1663
1663
|
};
|
|
1664
|
-
return () =>
|
|
1664
|
+
return () => T(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,
|
|
@@ -1708,7 +1708,7 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1708
1708
|
isShowTabsBar: p,
|
|
1709
1709
|
isFixedMultiTab: R,
|
|
1710
1710
|
onReloadPage: h,
|
|
1711
|
-
onChangeTabs:
|
|
1711
|
+
onChangeTabs: T
|
|
1712
1712
|
} = e;
|
|
1713
1713
|
if (e.isChildrenLayout)
|
|
1714
1714
|
return (I = t.default) == null ? void 0 : I.call(t);
|
|
@@ -1724,7 +1724,7 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1724
1724
|
siderWidth: w,
|
|
1725
1725
|
collapsed: m,
|
|
1726
1726
|
onReloadPage: h,
|
|
1727
|
-
onChangeTabs:
|
|
1727
|
+
onChangeTabs: T
|
|
1728
1728
|
}, null), n(qn, {
|
|
1729
1729
|
style: a.style,
|
|
1730
1730
|
class: [`${o}-content`]
|
|
@@ -1908,7 +1908,7 @@ const Zn = (e) => {
|
|
|
1908
1908
|
}), {
|
|
1909
1909
|
wrapSSR: R,
|
|
1910
1910
|
hashId: h
|
|
1911
|
-
} = ae("ProGlobalHeader", [Jn], p),
|
|
1911
|
+
} = ae("ProGlobalHeader", [Jn], p), T = 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
|
|
@@ -1922,7 +1922,7 @@ const Zn = (e) => {
|
|
|
1922
1922
|
a("collapse", !e.collapsed);
|
|
1923
1923
|
}, k = b(() => e.collapsedButtonRender || bt), x = () => {
|
|
1924
1924
|
var y, f;
|
|
1925
|
-
return n(Q, null, [
|
|
1925
|
+
return n(Q, null, [T.value ? n("div", {
|
|
1926
1926
|
style: {
|
|
1927
1927
|
flex: 1
|
|
1928
1928
|
},
|
|
@@ -1972,7 +1972,6 @@ const Zn = (e) => {
|
|
|
1972
1972
|
}), null)]);
|
|
1973
1973
|
};
|
|
1974
1974
|
return () => {
|
|
1975
|
-
console.log(F.value);
|
|
1976
1975
|
const y = n("span", {
|
|
1977
1976
|
key: "logo",
|
|
1978
1977
|
onClick: () => {
|
|
@@ -2027,7 +2026,7 @@ const {
|
|
|
2027
2026
|
suffixCls: "fixed-header",
|
|
2028
2027
|
isPor: !0
|
|
2029
2028
|
}), {
|
|
2030
|
-
wrapSSR:
|
|
2029
|
+
wrapSSR: T,
|
|
2031
2030
|
hashId: l
|
|
2032
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), f = b(() => ({
|
|
2033
2032
|
[`${l.value}`]: !0,
|
|
@@ -2047,7 +2046,7 @@ const {
|
|
|
2047
2046
|
};
|
|
2048
2047
|
return () => {
|
|
2049
2048
|
let O;
|
|
2050
|
-
return
|
|
2049
|
+
return T(n(Q, null, [I.value && !r.value && n(Qe, {
|
|
2051
2050
|
theme: y.value,
|
|
2052
2051
|
style: {
|
|
2053
2052
|
height: `${o.value}px`,
|
|
@@ -2097,7 +2096,7 @@ const {
|
|
|
2097
2096
|
Ft(() => {
|
|
2098
2097
|
m.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", m.value);
|
|
2099
2098
|
});
|
|
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),
|
|
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), T = b(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = b(() => (d.value === "sm" || d.value === "xs") && !e.disableMobile && !p.value), r = rt({
|
|
2101
2100
|
position: "relative"
|
|
2102
2101
|
});
|
|
2103
2102
|
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (r.minHeight = 0);
|
|
@@ -2110,7 +2109,7 @@ const {
|
|
|
2110
2109
|
return Rn({
|
|
2111
2110
|
getPrefixCls: ge,
|
|
2112
2111
|
...se(Ie(e), ["layout", "waterMark", "menuData", "openKeys", "splitMenus", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps"].concat(Object.keys(pt))),
|
|
2113
|
-
theme:
|
|
2112
|
+
theme: T.value,
|
|
2114
2113
|
hasContentWide: p,
|
|
2115
2114
|
isMobile: l,
|
|
2116
2115
|
siderWidth: h,
|
|
@@ -2120,7 +2119,7 @@ const {
|
|
|
2120
2119
|
flatMenu: R,
|
|
2121
2120
|
pageHeaderRender: b(() => K(t, e, "pageHeaderRender"))
|
|
2122
2121
|
}), () => {
|
|
2123
|
-
var
|
|
2122
|
+
var F;
|
|
2124
2123
|
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"), _ = {
|
|
2125
2124
|
menuItemRender: V,
|
|
2126
2125
|
subMenuItemRender: Y
|
|
@@ -2135,7 +2134,7 @@ const {
|
|
|
2135
2134
|
headerTitleRender: P,
|
|
2136
2135
|
headerContentRender: f,
|
|
2137
2136
|
headerRender: $,
|
|
2138
|
-
theme:
|
|
2137
|
+
theme: T.value
|
|
2139
2138
|
}, e.matchMenuKeys)), J = b(() => ({
|
|
2140
2139
|
[`${o.value}`]: !0,
|
|
2141
2140
|
[`${a}`]: !0,
|
|
@@ -2149,7 +2148,7 @@ const {
|
|
|
2149
2148
|
} : void 0), B = b(() => p.value ? {
|
|
2150
2149
|
minHeight: "835px"
|
|
2151
2150
|
} : {});
|
|
2152
|
-
return i(n(Q, null, [e.pure ? (
|
|
2151
|
+
return i(n(Q, null, [e.pure ? (F = t.default) == null ? void 0 : F.call(t) : n("div", {
|
|
2153
2152
|
class: J.value,
|
|
2154
2153
|
style: c.value
|
|
2155
2154
|
}, [n(fe, {
|
|
@@ -2157,7 +2156,7 @@ const {
|
|
|
2157
2156
|
}, {
|
|
2158
2157
|
default: () => [n(Be, G(je(e, ["pure", "theme"]), {
|
|
2159
2158
|
links: S,
|
|
2160
|
-
theme:
|
|
2159
|
+
theme: T.value,
|
|
2161
2160
|
isMobile: l.value,
|
|
2162
2161
|
menuHeaderRender: P,
|
|
2163
2162
|
menuContentRender: N,
|
|
@@ -2237,7 +2236,10 @@ const {
|
|
|
2237
2236
|
var d;
|
|
2238
2237
|
return i.meta && (i.meta.key = a ? `${a}-${o}` : `${o}`), i.path = i.path.replace("//", "/"), i.children && i.children.length > 0 && (i.children = It(i.children, t, (d = i.meta) == null ? void 0 : d.key)), t[`${i.path}`] = i, i;
|
|
2239
2238
|
}), Ri = (e) => {
|
|
2240
|
-
const t = e.find((o) =>
|
|
2239
|
+
const t = e.find((o) => {
|
|
2240
|
+
var d;
|
|
2241
|
+
return o.path === "/" && ((d = o.children) == null ? void 0 : d.length);
|
|
2242
|
+
}), a = {}, i = It((t == null ? void 0 : t.children) || [], a);
|
|
2241
2243
|
return {
|
|
2242
2244
|
menuData: i,
|
|
2243
2245
|
breadcrumb: a,
|
|
@@ -2679,7 +2681,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2679
2681
|
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)
|
|
2680
2682
|
}];
|
|
2681
2683
|
}), R = b(() => {
|
|
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,
|
|
2684
|
+
var l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B, F, z, q, X, ne, ee, Xe;
|
|
2683
2685
|
return [{
|
|
2684
2686
|
key: "colorBgMenu",
|
|
2685
2687
|
title: "全部背景",
|
|
@@ -2723,7 +2725,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2723
2725
|
}, {
|
|
2724
2726
|
key: "colorDarkTextMenuHover",
|
|
2725
2727
|
title: "菜单文字移入颜色",
|
|
2726
|
-
disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "light" || ((
|
|
2728
|
+
disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "light" || ((F = e.settingValue) == null ? void 0 : F.theme) === "dark" && ["mix", "wide"].includes((z = e.settingValue) == null ? void 0 : z.layout)
|
|
2727
2729
|
}, {
|
|
2728
2730
|
key: "colorTextMenuSelected",
|
|
2729
2731
|
title: "菜单文字选中颜色",
|
|
@@ -2733,7 +2735,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2733
2735
|
title: "菜单文字选中颜色",
|
|
2734
2736
|
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)
|
|
2735
2737
|
}];
|
|
2736
|
-
}), h = b(() => a.value === "header" ? p.value : a.value === "sider" ? R.value : []),
|
|
2738
|
+
}), h = b(() => a.value === "header" ? p.value : a.value === "sider" ? R.value : []), T = (l) => {
|
|
2737
2739
|
var r, I;
|
|
2738
2740
|
return (I = (r = w.value) == null ? void 0 : r[a.value]) == null ? void 0 : I[l];
|
|
2739
2741
|
};
|
|
@@ -2808,7 +2810,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2808
2810
|
dataSource: h.value.filter((y) => !y.disabled).map((y) => ({
|
|
2809
2811
|
...y,
|
|
2810
2812
|
action: n(Ge, {
|
|
2811
|
-
value:
|
|
2813
|
+
value: T(y.key),
|
|
2812
2814
|
actions: ["confirm"],
|
|
2813
2815
|
modes: ["rgb"],
|
|
2814
2816
|
size: "small",
|
|
@@ -2873,7 +2875,7 @@ const {
|
|
|
2873
2875
|
hashId: i
|
|
2874
2876
|
} = ae("SettingsDrawOthers", [ua], t);
|
|
2875
2877
|
return () => {
|
|
2876
|
-
var d, g, m, w, p, R, h,
|
|
2878
|
+
var d, g, m, w, p, R, h, T, l, r, I, k, x, y;
|
|
2877
2879
|
let o;
|
|
2878
2880
|
return a(n("div", {
|
|
2879
2881
|
class: [t, i.value]
|
|
@@ -2918,7 +2920,7 @@ const {
|
|
|
2918
2920
|
width: "100px"
|
|
2919
2921
|
},
|
|
2920
2922
|
size: "small",
|
|
2921
|
-
disabled: (
|
|
2923
|
+
disabled: (T = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : T.disabled,
|
|
2922
2924
|
getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
|
|
2923
2925
|
onChange: (f) => {
|
|
2924
2926
|
var C;
|
|
@@ -3028,8 +3030,8 @@ const {
|
|
|
3028
3030
|
}), {
|
|
3029
3031
|
wrapSSR: i,
|
|
3030
3032
|
hashId: o
|
|
3031
|
-
} = ae("ProSettingDraw", [ia], a), d = ke(!1), [g, m] = xe(!1), [w, p] = xe(!1), [R, h] = xe(!1),
|
|
3032
|
-
value:
|
|
3033
|
+
} = ae("ProSettingDraw", [ia], a), d = ke(!1), [g, m] = xe(!1), [w, p] = xe(!1), [R, h] = xe(!1), T = b(() => ot(se(e.settings, Te))), [l, r] = ln(() => ot(se(e.settings, Te)), {
|
|
3034
|
+
value: T,
|
|
3033
3035
|
onChange: e.onChange
|
|
3034
3036
|
}), I = b(() => e.colorList && tn(e.colorList) ? e.colorList : []), k = b(() => wn(U(l))), {
|
|
3035
3037
|
copy: x,
|
|
@@ -4533,8 +4535,8 @@ const Bi = /* @__PURE__ */ W({
|
|
|
4533
4535
|
return "";
|
|
4534
4536
|
let h = "";
|
|
4535
4537
|
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));
|
|
4536
|
-
const
|
|
4537
|
-
return R.name +
|
|
4538
|
+
const T = p ? "Out" : "In";
|
|
4539
|
+
return R.name + T + h;
|
|
4538
4540
|
}, w = (p, R) => {
|
|
4539
4541
|
if (p.length == 0 || p == "x" || p == "y")
|
|
4540
4542
|
return p;
|
package/dist/pro-layout.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(V,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("ant-design-vue"),require("@gx-design-vue/pro-app"),require("vue-router"),require("@ant-design/icons-vue"),require("@gx-design-vue/pro-provider"),require("vue-types"),require("lodash-es"),require("@gx-design-vue/pro-watermark"),require("@gx-design-vue/pro-utils"),require("@gx-design-vue/pro-hooks"),require("@vueuse/core"),require("@gx-design-vue/scrollbar"),require("@gx-design-vue/color-picker")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@gx-design-vue/pro-app","vue-router","@ant-design/icons-vue","@gx-design-vue/pro-provider","vue-types","lodash-es","@gx-design-vue/pro-watermark","@gx-design-vue/pro-utils","@gx-design-vue/pro-hooks","@vueuse/core","@gx-design-vue/scrollbar","@gx-design-vue/color-picker"],t):(V=typeof globalThis<"u"?globalThis:V||self,t(V.ProLayout={},V.vue,V.antDesignVue,V.proApp,V.vueRouter,V.iconsVue,V.ProConfigProvider,V.vueTypes,V.lodashEs,V.proWatermark,V.proUtils,V.proHooks,V.core,V.GScrollbars,V.colorPicker))})(this,function(V,t,p,he,ie,Z,i,lt,J,it,K,ne,we,rt,Ne){"use strict";const Ie=t.defineComponent({name:"PageLoading",props:{...p.Spin.props},setup(e){const{indicator:a}=he.useProAppContext();return t.createVNode("div",{style:{paddingTop:"100px",textAlign:"center"}},[t.createVNode(p.Spin,t.mergeProps(e,{indicator:a==null?void 0:a.value}),null)])}}),D=lt.createTypes({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});D.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const te={theme:{type:String,default:i.themeConfig.theme},layout:{type:String,default:i.themeConfig.layout},wideWidth:{type:Number,default:i.themeConfig.wideWidth},splitMenus:{type:Boolean,default:i.themeConfig.splitMenus},fixedMultiTab:{type:Boolean,default:i.themeConfig.fixedMultiTab},showProgressBar:{type:Boolean,default:i.themeConfig.showProgressBar},fixedHeader:{type:Boolean,default:i.themeConfig.fixedHeader},fixSiderbar:{type:Boolean,default:i.themeConfig.fixSiderbar},showTabsBar:{type:Boolean,default:i.themeConfig.showTabsBar},showFullScreen:{type:Boolean,default:i.themeConfig.showFullScreen},autoHideHeader:{type:Boolean,default:i.themeConfig.autoHideHeader},headerHeight:{type:Number,default:i.themeConfig.headerHeight},title:{type:String,default:i.themeConfig.title},iconfontUrl:{type:String,default:i.themeConfig.iconfontUrl},animate:{type:Object,default:i.themeConfig.animate},primaryColor:{type:String,default:i.themeConfig.primaryColor}},ae={renderKey:D.string.def("menuHeaderRender"),title:te.title,layout:te.layout,logo:{type:[Object,String,Function],default:()=>{}},logoStyle:{type:Object,default:()=>{}},logoDirection:{type:String,default:"horizontal"},drawer:D.looseBool,collapsed:D.looseBool,menuHeaderRender:{type:[Object,Function],default:()=>{}},onMenuHeaderClick:Function},oe={...te,mode:{type:String,default:"inline"},menuData:{type:Array,default:()=>[]},theme:{type:String,default:"dark"},layout:{type:String,default:"mix"},collapsed:{type:Boolean,default:()=>!1},openKeys:{type:[Array,Boolean],default:()=>[]},selectedKeys:{type:Array,default:()=>[]},menuProps:{type:Object,default:()=>null},menuItemRender:{type:[Function,Boolean],default:()=>{}},subMenuItemRender:{type:[Function,Boolean],default:()=>{}},onClick:[Function,Object],onOpenKeys:{type:Function},onSelect:{type:Function}},_={...te,...oe,menuLoading:D.looseBool,logo:ae.logo,logoStyle:ae.logoStyle,logoDirection:ae.logoDirection,siderWidth:D.number.def(208),headerHeight:D.number.def(48),collapsedWidth:D.number.def(48),links:{type:[Function,Object,Array],default:()=>{}},menuHeaderRender:{type:[Function,Object],default:()=>{}},menuFooterRender:{type:[Function,Object,Boolean],default:()=>!1},menuContentRender:{type:[Function,Object,Boolean],default:()=>!1},menuExtraRender:{type:[Function,Object,Boolean],default:()=>!1},collapsedButtonRender:{type:[Function,Object,Boolean],default:()=>{}},breakpoint:{type:[Object,Boolean],default:()=>!1},isMobile:D.looseBool,matchMenuKeys:{type:Array,default:()=>[]},onMenuHeaderClick:D.func,onMenuClick:D.func,onCollapse:{type:Function}},dt=/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/,Me=e=>dt.test(e);function ct(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}function ke(e,a,n,l){var c,h,m,w,b,O,g,T,r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B,$;const o={...e};return n==="light"?(o.colorItemBg=(h=(c=a.layout)==null?void 0:c[l])==null?void 0:h.colorBgMenu,o.colorSubItemBg=(w=(m=a.layout)==null?void 0:m[l])==null?void 0:w.colorSubItemBg,o.colorItemBgSelected=(O=(b=a.layout)==null?void 0:b[l])==null?void 0:O.colorBgMenuItemSelected,o.colorItemBgSelectedHorizontal=(T=(g=a.layout)==null?void 0:g[l])==null?void 0:T.colorBgMenuItemSelected,o.colorItemText=(d=(r=a.layout)==null?void 0:r[l])==null?void 0:d.colorTextMenu,o.colorItemTextHover=(R=(I=a.layout)==null?void 0:I[l])==null?void 0:R.colorTextMenuHover,o.colorItemTextSelected=(y=(C=a.layout)==null?void 0:C[l])==null?void 0:y.colorTextMenuSelected,o.colorItemTextSelectedHorizontal=(S=(f=a.layout)==null?void 0:f[l])==null?void 0:S.colorTextMenuSelected,l==="sider"&&(o.colorItemBgHover=(s=(F=a.layout)==null?void 0:F[l])==null?void 0:s.colorBgMenuItemHover)):n==="dark"&&(o.colorItemBg=(M=(N=a.layout)==null?void 0:N[l])==null?void 0:M.colorDarkBgMenu,o.colorSubItemBg=(L=(k=a.layout)==null?void 0:k[l])==null?void 0:L.colorDarkSubItemBg,o.colorItemBgSelected=(H=(W=a.layout)==null?void 0:W[l])==null?void 0:H.colorDarkBgMenuItemSelected,o.colorItemBgSelectedHorizontal=(A=(z=a.layout)==null?void 0:z[l])==null?void 0:A.colorDarkBgMenuItemSelected,o.colorItemText=(Y=(E=a.layout)==null?void 0:E[l])==null?void 0:Y.colorDarkTextMenu,o.colorItemTextHover=(q=(U=a.layout)==null?void 0:U[l])==null?void 0:q.colorDarkTextMenuHover,o.colorItemTextSelected=(x=(u=a.layout)==null?void 0:u[l])==null?void 0:x.colorDarkTextMenuSelected,o.colorItemTextSelectedHorizontal=($=(B=a.layout)==null?void 0:B[l])==null?void 0:$.colorDarkTextMenuSelected,l==="header"&&(o.colorActiveBarHeight=0)),o}const st=["left","right"],le=["left","right","down","up"],ut=["downBig","upBig","leftBig","rightBig"],mt=["topLeft","bottomRight","topRight","bottomLeft"],ft=["downLeft","upRight","downRight","upLeft"],ge={preset:[{name:"back",alias:"渐近",directions:le},{name:"bounce",alias:"弹跳",directions:le.concat("default")},{name:"fade",alias:"淡化",directions:le.concat(ut).concat(mt).concat("default")},{name:"flip",alias:"翻转",directions:["x","y"]},{name:"lightSpeed",alias:"光速",directions:st},{name:"rotate",alias:"旋转",directions:ft.concat("default")},{name:"roll",alias:"翻滚",directions:["default"]},{name:"zoom",alias:"缩放",directions:le.concat("default")},{name:"slide",alias:"滑动",directions:le}]};function Oe(e){return e.map(a=>{var l;const n={...a};if((l=n.meta)!=null&&l.hideInMenu)return null;if(n&&(n!=null&&n.children)){if(n.children.some(o=>{var c;return o&&!((c=o.meta)!=null&&c.hideInMenu)}))return{...n,children:Oe(n.children)};delete n.children}return n}).filter(a=>a)}function Re(e){return e.map(a=>{var l;const n={...a};return(l=n.meta)!=null&&l.hideInMenu?null:(n.linkPath=Ve(n.children||[]),n.children&&delete n.children,n)}).filter(a=>a)}function Be(e,a){const n=(a||"").split("/").length===2?a||"":`/${(a||"").split("/")[1]}`,l=e.find(o=>o.path===n);return a===void 0?[]:(l==null?void 0:l.children)||[]}function Ve(e){let a="";const n=function(o){let c="";return o.children&&o.children.length>0?c=n(o.children[0]):c=o.path,c},l=e==null?void 0:e.filter(o=>!o.hidden);if(l.length>0&&l[0].children&&l[0].children.length>0)a=n(l[0].children[0]);else{const o=l.length>0?l[0]:void 0;a=(o==null?void 0:o.path)||""}return a}function ht(e,a){var l,o;const n=((o=(l=e.find(c=>c.path===a))==null?void 0:l.meta)==null?void 0:o.key)||"";if(n){const c=[],h=n.split("-");for(let m=0;m<h.length;m+=1)c.push(J.cloneDeep(h).splice(0,m+1).join("-"));return e.filter(m=>c.some(w=>{var b;return w===((b=m==null?void 0:m.meta)==null?void 0:b.key)||""}))}return[]}function Fe(e){return e.layout==="mix"&&(e.fixSiderbar=!0,e.fixedHeader=!0,e.splitMenus=!0),e.layout==="top"&&(e.fixSiderbar=!1,e.fixedHeader=!0,e.splitMenus=!1),e.layout==="simple"&&(e.splitMenus=!1,e.showTabsBar=!1),e.layout==="side"&&(e.splitMenus=!1),e.layout==="wide"&&(e.splitMenus=!1,e.fixSiderbar=!1,e.fixedHeader=!0,e.showTabsBar=!1,e.fixedMultiTab=!1),{...e}}function gt(e){const a=["showTabsBar","fixedMultiTab","fixSiderbar","fixedHeader","splitMenus"];let l=Object.keys(e).reduce((o,c)=>(o[c]=!1,o),{});return l=yt(l,a),e.layout==="mix"&&(l.fixSiderbar=!0,l.fixedHeader=!0),e.layout==="side"&&(l.splitMenus=!0),e.layout==="simple"&&(l.splitMenus=!0,l.fixedHeader=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),e.layout==="wide"&&(l.splitMenus=!0,l.fixedHeader=!0,l.fixSiderbar=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),l}function yt(e,a){return{...a.reduce((n,l)=>({...n,[l]:e[l]}),{})}}const Te=(e=Symbol(),a="Context.Provider")=>t.defineComponent({name:a,props:{value:{type:Object,required:!0}},setup(l,{slots:o}){return t.provide(e,t.readonly(l.value)),()=>{var c;return(c=o.default)==null?void 0:c.call(o)}}}),$e=(e=Symbol(),a)=>t.inject(e,a||{}),ye=Symbol("pro-layout-context"),Le=()=>Te(ye,"ProLayoutContext.Provider"),Ke=e=>{t.provide(ye,e)},Q=()=>$e(ye);Le();function De(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const re=e=>{const{icon:a,iconType:n,iconfontUrl:l}=e;if(!a)return null;if(typeof a=="string"&&a!==""){if(Me(a)||ct(a))return t.createVNode("img",{src:a,alt:"icon",class:`${e.className}-icon-image`},null);if(n===1){const c=Z.createFromIconfontCN({scriptUrl:l||i.themeConfig.iconfontUrl});return l?t.createVNode(c,{type:a},null):t.createVNode("i",{class:`iconfont ${a} ${e.className}-icon`},null)}}if(t.isVNode(a))return a;const o=t.resolveComponent(a);return typeof re=="function"&&t.createVNode(o,null,null)||null};re.props={icon:{type:[String,Function,Object]},iconType:Number,className:String,iconfontUrl:String};const be=t.defineComponent({name:"BaseMenu",props:oe,setup(e){const a=ie.useRouter(),{getPrefixCls:n}=Q(),l=n({suffixCls:"menu-item",isPor:!0}),o=r=>{var d;(d=e.onOpenKeys)==null||d.call(e,r)},c=r=>{var d;(d=e.onSelect)==null||d.call(e,r.selectedKeys)},h=r=>{var d;(d=e.onClick)==null||d.call(e,...r)},m=(r,d)=>{var C;const I=r.target||"",R=Me(I);((C=a.currentRoute.value)==null?void 0:C.fullPath)!==d.to&&R&&I&&r.targetStatus===1&&window.open(I)},w=t.resolveComponent("router-link"),b=(r=[])=>r.map(d=>O(d)).filter(d=>d),O=r=>{var R,C,y,f,S,F,s,N,M;if(Array.isArray(r.children)&&r.children.length>0&&!((R=r==null?void 0:r.meta)!=null&&R.hideInMenu)&&!((C=r==null?void 0:r.meta)!=null&&C.hideChildrenInMenu)){let k;if(e.subMenuItemRender)return e.subMenuItemRender({item:r,children:b(r.children)});const L=(y=r.meta)==null?void 0:y.title,W=(f=r.meta)!=null&&f.icon?t.createVNode("span",{class:"gx-pro-sider-menu-item"},[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[L])]):t.createVNode("span",{class:"gx-pro-sider-menu-item"},[L]),H=((S=r.meta)==null?void 0:S.type)==="group",z=H?p.Menu.ItemGroup:p.Menu.SubMenu;return t.createVNode(z,{title:W,key:r.path,icon:H?null:t.createVNode(re,{className:l,icon:(F=r.meta)==null?void 0:F.icon,iconfontUrl:e.iconfontUrl,iconType:(s=r.meta)==null?void 0:s.iconType},null)},De(k=b(r.children))?k:{default:()=>[k]})}const[d,I]=g(r);return e.menuItemRender&&e.menuItemRender({item:r,title:d,icon:I})||t.createVNode(p.Menu.Item,{disabled:(N=r.meta)==null?void 0:N.disabled,danger:(M=r.meta)==null?void 0:M.danger,key:r.path,icon:I},De(d)?d:{default:()=>[d]})},g=r=>{var S,F,s,N,M;const d={...r.meta},I=d.targetStatus===1&&d.target?"a":w,R={to:r.linkPath||r.path||""},C=(S=r.meta)==null?void 0:S.title,y=(F=r.meta)!=null&&F.icon?t.createVNode(I,t.mergeProps(R,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,R)}),{default:()=>[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[C])]}):t.createVNode(I,t.mergeProps(R,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,R)}),{default:()=>[t.createVNode("span",null,[C])]}),f=((s=r.meta)==null?void 0:s.icon)&&t.createVNode(re,{className:l,icon:(N=r.meta)==null?void 0:N.icon,iconfontUrl:e.iconfontUrl,iconType:(M=r.meta)==null?void 0:M.iconType},null)||void 0;return[y,f]},T=t.computed(()=>b(e.menuData));return()=>t.createVNode(p.Menu,t.mergeProps({key:"Menu",inlineIndent:16,mode:e.mode,theme:e.theme,openKeys:e.openKeys===!1?[]:e.openKeys,selectedKeys:e.selectedKeys||[],onOpenChange:o,onSelect:c,onClick:h},e.menuProps),{default:()=>[T.value]})}}),ze=new i.Keyframe("pro-layout-title-hide",{"0%":{display:"none",opacity:0},"99%":{display:"none",opacity:0},"100%":{display:"block",opacity:1}}),bt=e=>{const a=`${e.antCls}-menu`;return{[`${e.proComponentsCls}-basic-layout`]:{[`${a}${a}-root`]:{[`${a}-item a`]:{transition:"none"}}}}},pt=e=>{var a,n,l,o,c,h,m,w,b,O,g,T;return{[`${e.proComponentsCls}-basic-layout`]:{[`&${e.proComponentsCls}-basic-layout-wide`]:{[e.componentCls]:{position:"sticky",zIndex:100,borderRadius:e.borderRadiusSM}},[e.componentCls]:{position:"relative",borderRight:0,background:(n=(a=e.layout)==null?void 0:a.sider)==null?void 0:n.colorDarkBgMenu,zIndex:9,"&-menu":{position:"relative",zIndex:10,minHeight:"100%","&-icon":{verticalAlign:"unset"}},[`& ${e.antCls}-layout-sider-children`]:{position:"relative",display:"flex",flexDirection:"column",height:"100%"},"&-light":{background:(o=(l=e.layout)==null?void 0:l.sider)==null?void 0:o.colorBgMenu,boxShadow:"2px 0 8px 0 rgba(29,35,41,.05)",[`${e.componentCls}-footer`]:{color:(h=(c=e.layout)==null?void 0:c.sider)==null?void 0:h.colorTextMenu}},"&-links":{width:"100%",borderTop:"1px solid rgba(0,0,0,.06)",ul:{height:"auto"}},"&-link-menu":{border:"none",boxShadow:"none",background:"transparent"},"&-footer":{color:(w=(m=e.layout)==null?void 0:m.sider)==null?void 0:w.colorDarkTextMenu,paddingBlockEnd:16,fontSize:e.fontSize,animationName:ze,animationDuration:".4s",animationTimingFunction:"ease"}},[`${e.componentCls}${e.componentCls}-fixed`]:{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:`calc(100% - ${((O=(b=e.layout)==null?void 0:b.header)==null?void 0:O.heightLayoutHeader)||i.themeConfig.headerHeight}px)`,insetBlockStart:`${((T=(g=e.layout)==null?void 0:g.header)==null?void 0:T.heightLayoutHeader)||i.themeConfig.headerHeight}px`}}}}},xt=e=>({[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-menu`]:{[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]:{verticalAlign:"unset",lineHeight:1}}}}),Ct=e=>({[`${e.proComponentsCls}-sider`]:{"&-light":{[`${e.proComponentsCls}-sider-logo`]:{h1:{color:e.colorPrimary}}},"&-logo":{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 8px",cursor:"pointer",transition:"padding .3s cubic-bezier(.645,.045,.355,1)","> a":{display:"flex",alignItems:"center",justifyContent:"center",maxHeight:32,"> img":{display:"inline-block",height:32,verticalAlign:"middle"},"> h1":{display:"inline-block",lineHeight:"32px",marginBlock:0,marginInlineEnd:0,marginInlineStart:12,color:e.colorWhite,animationName:ze,animationDuration:".2s",fontWeight:600,fontSize:18,overflow:"hidden",verticalAlign:"middle"}},"&-collapsed":{flexDirection:"column-reverse",margin:0,padding:12,[`${e.proComponentsCls}-layout-apps-icon`]:{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"}}},[`&${e.antCls}-layout-sider-collapsed`]:{[`${e.proComponentsCls}-sider-logo`]:{padding:"16px 8px"}}}}),He=(e,a)=>e?typeof e=="string"?t.createVNode("img",{src:e,alt:"logo",style:a},null):typeof e=="function"?e():e:null,St=(e,a="menuHeaderRender")=>{const{logo:n,logoStyle:l,title:o,layout:c}=e,h=e[a||""];if(h===!1)return null;const m=He(n,l),w=o&&t.createVNode("h1",null,[o]);return typeof h=="function"?h(m,e.collapsed?null:w,e):t.createVNode(t.Fragment,null,[m||null,e.collapsed&&c==="side"?null:w])},pe=t.defineComponent({name:"LogoContent",props:ae,setup(e){const{getPrefixCls:a}=Q(),n=t.computed(()=>e.layout==="side"||e.layout==="simple"),l=t.computed(()=>a({suffixCls:n.value||e.drawer?"sider":"global-header",isPor:!0})),{wrapSSR:o,hashId:c}=i.useProStyle("ProLayoutLogo",[Ct]),h=t.computed(()=>St(e,e.renderKey));return()=>o(t.createVNode("div",{id:"logo",class:{[`${c.value}`]:!0,[`${l.value}-logo`]:!0,[`${l.value}-logo-collapsed`]:!!e.collapsed},onClick:()=>{var m;return(m=e.onMenuHeaderClick)==null?void 0:m.call(e)}},[t.createVNode("a",null,[h.value||null])]))}});pe.inheritAttrs=!1;function wt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Sider:Nt}=p.Layout,{Item:je}=p.Menu,We=e=>e?t.createVNode(Z.MenuUnfoldOutlined,null,null):t.createVNode(Z.MenuFoldOutlined,null,null),Ae=t.defineComponent({props:_,inheritAttrs:!1,setup(e){const{getPrefixCls:a,selectedKeys:n,flatMenuData:l,menuData:o,openKeys:c}=Q(),{indicator:h}=he.useProAppContext(),{token:m}=i.useProConfigContext(),{theme:w,layout:b,isMobile:O,menuLoading:g,breakpoint:T,fixSiderbar:r,collapsed:d,siderWidth:I,collapsedWidth:R,menuExtraRender:C,menuContentRender:y,menuFooterRender:f,collapsedButtonRender:S,links:F}=t.toRefs(e),s=a({suffixCls:"sider",isPor:!0}),{wrapSSR:N,hashId:M}=i.useProStyle("ProLayoutSiderMenu",[bt,pt,xt],s),k=t.computed(()=>e.layout==="wide"),L=t.computed(()=>e.layout==="mix"&&!e.isMobile&&e.splitMenus),W=t.computed(()=>b.value==="side"||b.value==="simple"),H=t.computed(()=>(e.layout==="mix"||k.value)&&"light"||w.value),z=t.computed(()=>b.value==="top"?[]:o.value),A=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),E=t.computed(()=>[M.value,s,O.value?"shadow":null,`${s}-${H.value}`,r.value&&e.layout!=="wide"?`${s}-fixed`:null]),Y=t.computed(()=>{var u;return typeof F.value=="function"?(u=F.value)==null?void 0:u.call(F):F.value}),U=t.computed(()=>S.value!==!1?S.value||We:!1),q=u=>{var x;if(e.onSelect){if(t.unref(L)){e.onSelect([(x=n==null?void 0:n.value)==null?void 0:x[0],...u]);return}e.onSelect(u)}};return()=>{var $;const u=W.value?t.createVNode(pe,t.mergeProps({drawer:O.value},e),null):null,x=C.value&&(($=C.value)==null?void 0:$.call(C,e)),B=t.createVNode(be,{class:`${s}-menu ${M.value}`,theme:H.value,mode:"inline",menuData:L.value?l.value:z.value,iconfontUrl:e.iconfontUrl,openKeys:c.value,selectedKeys:n.value,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,onClick:e.onMenuClick,style:{width:"100%"},onOpenKeys:j=>{var G;return e.onOpenKeys&&((G=e.onOpenKeys)==null?void 0:G.call(e,j))},onSelect:q},null);return L.value&&t.unref(l.value).length===0||z.value.length===0?null:N(t.createVNode(p.ConfigProvider,{theme:{components:{Menu:ke({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0},(m==null?void 0:m.value)||{},H.value,"sider")}}},{default:()=>[r.value&&t.createVNode("div",{style:{width:`${A.value}px`,overflow:"hidden",flex:`0 0 ${A.value}px`,maxWidth:`${A.value}px`,minWidth:`${A.value}px`,transition:"background-color 0.2s, min-width 0.2s, max-width 0.2s"}},null),t.createVNode(Nt,{collapsible:!0,trigger:null,class:E.value,style:{overflow:"hidden",zIndex:r.value?101:void 0,paddingTop:W.value||e.isMobile||k.value?0:`${e.headerHeight}px`,top:e.layout==="wide"?`${e.headerHeight+20}px`:void 0,height:e.layout==="wide"?`calc(100vh - ${e.headerHeight+20*2}px)`:void 0},theme:H.value,breakpoint:T.value||void 0,collapsed:d.value,width:I.value,collapsedWidth:R.value},{default:()=>{var j,G;return[g.value&&t.createVNode("div",{class:["gx-pro-sider-loading",M.value]},[t.createVNode(p.Spin,{spinning:g.value,indicator:h==null?void 0:h.value},null)]),u||null,x&&!e.collapsed&&t.createVNode("div",{class:{[`${M.value}`]:!0,[`${s}-extra`]:!0,[`${s}-extra-no-logo`]:!u}},[x]),t.createVNode("div",{style:{flex:"1 1 0%",overflow:"hidden auto"}},[y.value&&((j=y.value)==null?void 0:j.call(y,e,B))||B]),e.layout!=="wide"&&t.createVNode("div",{class:`${s}-links ${M.value}`},[t.createVNode(p.Menu,{theme:H.value,inlineIndent:16,class:`${s}-link-menu ${M.value}`,selectedKeys:[],openKeys:[],mode:"inline"},{default:()=>[(Y.value||[]).map((X,ee)=>t.createVNode(je,{class:`${s}-link ${M.value}`,key:ee},wt(X)?X:{default:()=>[X]})),U.value&&!O.value&&t.createVNode(je,{class:`${s}-collapsed-button ${M.value}`,title:!1,key:"collapsed",onClick:()=>{var X;e.onCollapse&&((X=e.onCollapse)==null||X.call(e,!d.value))}},{default:()=>{var X;return[(X=U.value)==null?void 0:X.call(U,d.value)]}})]})]),f.value&&t.createVNode("div",{class:`${s}-footer ${M.value}`},[(G=f.value)==null?void 0:G.call(f,e)])]}})]}))}}}),de=t.defineComponent({name:"SiderMenuWrapper",inheritAttrs:!1,props:{..._,matchMenuKeys:{type:Array,default:()=>[]}},setup(e){return()=>t.createVNode(t.Fragment,null,[e.isMobile?t.createVNode(p.Drawer,{maskClosable:!0,open:!e.collapsed,closable:!1,placement:"left",style:{padding:0,height:"100vh"},getContainer:!1,onClose:()=>e.onCollapse&&e.onCollapse(!0),width:e.siderWidth,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},{default:()=>[t.createVNode(Ae,t.mergeProps(e,{collapsed:e.isMobile?!1:e.collapsed}),null)]}):t.createVNode(Ae,e,null)])}}),ve={usePageCard:{type:Boolean,default:()=>{}},pageCardProps:Object,pageContentStyle:D.style,pageChildrenContentStyle:D.style,waterMarkProps:{type:Object},waterMark:D.bool.def(!0),pageHeaderRender:{type:[Object,Function,Boolean],default:()=>{}}},ce={pageChildrenExtraRender:{type:[Object,Function,Boolean],default:()=>{}},contentRender:{type:[Object,Function,Boolean],default:()=>{}},breadcrumbRender:{type:[Object,Function,Boolean],default:()=>{}},pageHeaderStyle:D.style,loading:D.bool.def(!1),...ve},It=e=>({[e.componentCls]:{background:e.colorBgContainer,padding:`${e.paddingLG}px`,"&-has-breadcrumb":{paddingBlock:`${e.paddingSM}px`},"&-content":{marginTop:"8px"}}}),Mt=t.defineComponent({name:"ProPageHeader",props:{content:ce.contentRender,breadcrumb:ce.breadcrumbRender},setup(e){const{breadcrumb:a,getPrefixCls:n}=Q(),l=n({isPor:!0,suffixCls:"page-header"}),{wrapSSR:o,hashId:c}=i.useProStyle("ProPageHeader",[It],l),h=t.computed(()=>{var m;return{...a.value,itemRender:((m=a.value)==null?void 0:m.itemRender)||(({route:w})=>w.path?t.createVNode(ie.RouterLink,{to:w.path},{default:()=>[w.breadcrumbName]}):w.breadcrumbName)}});return()=>{var m,w;return o(t.createVNode("div",{class:[`${l}`,c.value,`${l}-has-breadcrumb`]},[e.breadcrumb?(m=e.breadcrumb)==null?void 0:m.call(e,h.value):t.createVNode(p.Breadcrumb,h.value,null),e.content&&t.createVNode("div",{class:[`${l}-content`,c.value]},[(w=e.content)==null?void 0:w.call(e)])]))}}}),kt=e=>{var a,n,l,o,c,h,m,w;return{[`${e.proComponentsCls}-basic-layout`]:{[e.componentCls]:{marginInline:-(((n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent)??24),marginBlockStart:-(((o=(l=e.layout)==null?void 0:l.pageContainer)==null?void 0:o.paddingBlockPageContainerContent)??24)},[e.gridContent]:{width:"100%"}},[e.componentCls]:{"&-children-content":{marginInline:((h=(c=e.layout)==null?void 0:c.pageContainer)==null?void 0:h.marginInlinePageContainerContent)??24,marginBlockStart:((w=(m=e.layout)==null?void 0:m.pageContainer)==null?void 0:w.marginBlockPageContainerContent)??24,padding:"inherit"}}}};function Ot(e){return i.useStyle("ProPageContainter",a=>{const n=i.mergeToken(a,{gridContent:`${a.proComponentsCls}-grid-content`});return[kt(n)]},e)}function Rt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const Bt=t.defineComponent({inheritAttrs:!1,name:"GProPageContainer",props:ce,setup(e,{slots:a,attrs:n}){const{getPrefixCls:l,hasContentWide:o,waterMark:c,pageHeaderRender:h,pageContentStyle:m,pageChildrenContentStyle:w,pageCardProps:b,usePageCard:O,waterMarkProps:g}=Q(),{indicator:T}=he.useProAppContext(),r=i.useProConfigContext(),d=l({suffixCls:"page-container",isPor:!0}),I=l({suffixCls:"grid-content",isPor:!0}),R=t.computed(()=>e.pageCardProps||b.value),C=t.computed(()=>e.waterMarkProps||g.value||{}),y=t.computed(()=>e.pageContentStyle||m.value),f=t.computed(()=>e.pageChildrenContentStyle||w.value||{}),S=t.computed(()=>K.isBoolean(e.usePageCard)?e.usePageCard:K.isBoolean(O.value)?O.value:!0),{wrapSSR:F,hashId:s}=Ot(d),N=()=>{var L,W,H,z,A,E;const k=K.getSlot(a,e,"pageChildrenExtraRender");return t.createVNode("div",{class:`${d}-children-content ${s.value}`,style:f.value},[k&&(k==null?void 0:k()),S.value?t.createVNode(p.Card,t.mergeProps(R.value?J.pick(R.value,["loading","bodyStyle"]):{},{style:o.value?{minHeight:"853px"}:void 0,bordered:!1}),{default:()=>{var Y;return[(Y=a.default)==null?void 0:Y.call(a)]}}):k?t.createVNode("div",{style:{marginBlockStart:`${(z=(H=(W=(L=r==null?void 0:r.token)==null?void 0:L.value)==null?void 0:W.layout)==null?void 0:H.pageContainer)==null?void 0:z.marginBlockPageContainerContent}px`}},[(A=a.default)==null?void 0:A.call(a)]):(E=a.default)==null?void 0:E.call(a)])},M=()=>{let k;return t.createVNode(t.Fragment,null,[e.waterMark&&c.value?t.createVNode(it.GPorWaterMark,C.value,Rt(k=N())?k:{default:()=>[k]}):N()])};return()=>{const k=K.getSlot(a,e,"pageHeaderRender")||h.value,L=K.getSlot(a,e,"breadcrumbRender"),W=K.getSlot(a,e,"contentRender");return F(t.createVNode(p.Spin,{spinning:e.loading,indicator:T==null?void 0:T.value},{default:()=>[t.createVNode("div",{style:n.style,class:{[`${s.value}`]:!0,[`${d}`]:!0}},[!o.value&&k!==!1&&(k||t.createVNode(Mt,{style:e.pageHeaderStyle,breadcrumb:L,content:W},null)),t.createVNode("div",{class:[I,s.value]},[t.createVNode("div",{class:`${I}-children ${s.value}`,style:y.value},[M()])])])]}))}}}),xe={...te,...oe,logo:ae.logo,logoStyle:ae.logoStyle,logoDirection:ae.logoDirection,menuLoading:Boolean,autoHideHeader:Boolean,collapsed:Boolean,isMobile:Boolean,siderWidth:_.siderWidth,headerTheme:{type:String,default:"dark"},menuData:{type:Array,default:()=>[]},menuRender:{type:[Object,Function],default:()=>{}},extraRightDropdownRender:{type:[Object,Function],default:()=>{}},rightContentRender:{type:[Object,Function],default:()=>{}},collapsedButtonRender:_.collapsedButtonRender,matchMenuKeys:_.matchMenuKeys,onCollapse:_.onCollapse,onOpenKeys:_.onOpenKeys,onMenuHeaderClick:Function,onSelect:_.onSelect},Ue={...xe,headerTitleRender:{type:[Object,Function],default:()=>{}},headerRender:{type:[Object,Function],default:()=>{}},headerContentRender:{type:[Object,Function],default:()=>{}},hasSiderMenu:Boolean,collapsedWidth:_.collapsedWidth,siderWidth:_.siderWidth},Xe={loading:D.looseBool,isMobile:_.isMobile,collapsed:oe.collapsed,siderWidth:_.siderWidth,collapsedWidth:_.collapsedWidth,isFixedMultiTab:te.fixedMultiTab,onReloadPage:{type:Function},onChangeTabs:{type:Function},"onUpdate:tabs":{type:Function}},Vt=e=>({[e.componentCls]:{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-links":{marginBottom:8,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration,"&:hover":{color:e.colorPrimary}},"a:not(:last-child)":{marginInlineEnd:40}},"&-copyright":{fontSize:"14px",color:e.colorTextSecondary,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration}}}}),Ee=[{key:"Ant Design Pro",title:"Ant Design Pro",href:"https://pro.ant.design",blankTarget:!0},{key:"gitee",title:t.createVNode(Z.GithubOutlined,null,null),href:"https://gitee.com/gx12358/vue-antd-admin",blankTarget:!0},{key:"Ant Design Vue",title:"Ant Design Vue",href:"https://next.antdv.com/components/overview-cn/",blankTarget:!0}],se=t.defineComponent({name:"GlobalFooter",props:{links:{type:[Array,Boolean],default:Ee},copyright:{type:[Object,Function,Boolean,String],default:"皖ICP备2022010510号-1"}},setup(e){const a=K.getPrefixCls({suffixCls:"global-footer",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("ProLayoutFooter",[Vt],a);return()=>n(t.createVNode(p.LayoutFooter,{style:{padding:0}},{default:()=>[t.createVNode("div",{class:[a,l.value]},[e.links&&t.createVNode("div",{class:`${a}-links ${l.value}`},[e.links.map(o=>t.createVNode("a",{key:o.key,title:o.key,target:o.blankTarget?"_blank":"_self",href:o.href},[o.title]))]),e.copyright&&t.createVNode("div",{class:`${a}-copyright ${l.value}`},[t.createTextVNode("Copyright 2022 "),t.createVNode("a",{href:"https://beian.miit.gov.cn/"},[e.copyright])])])]}))}}),Ye={...te,...xe,..._,...Ue,...Xe,...ce,pure:Boolean,token:Object,waterMark:{type:Boolean,default:!0},disableMobile:{type:Boolean,required:!1},contentStyle:{type:[String,Object],default:()=>null},breadcrumb:{type:[Object,Function],default:()=>null},disableContentMargin:D.looseBool,isChildrenLayout:D.looseBool,loading:D.looseBool,footerLinks:{type:[Array,Boolean],default:Ee},copyrightRender:{type:[Object,Function,Boolean,String],default:()=>{}},footerRender:{type:[Object,Function,Boolean],default:()=>{}},menuData:{type:Array,default:()=>[]},levelMenuData:{type:Array,default:()=>[]},collapsed:D.looseBool},Ft=e=>({[e.componentCls]:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh"}}),Tt=e=>{var a,n;return{[e.componentCls]:{a:{color:e.colorPrimary,"&:hover":{color:e.colorPrimaryHover}},[`&${e.componentCls}-wide`]:{backgroundColor:e.colorBgLayout,[`${e.componentCls}-content`]:{margin:0,marginInlineStart:20}},[`${e.componentCls}-content`]:{position:"relative",margin:(n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent},[`${e.componentCls}-container`]:{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}}}},$t=e=>{var a,n;return{[`${e.componentCls}`]:{"&-fixed":{width:"100%",height:62,background:"transparent"}},[`${e.componentWrapCls}`]:{background:e.colorBgContainer,[`${e.antCls}-tabs-nav`]:{paddingLeft:16,[`${e.antCls}-tabs-tab:not(${e.antCls}-tabs-tab-active)`]:{borderBottomColor:"transparent"},[`${e.componentCls}-title`]:{display:"flex",alignItems:"center",gap:8,[`${e.componentCls}-reload-btn,${e.componentCls}-close-btn`]:{color:e.colorTextSecondary,fontSize:12,margin:0,cursor:"pointer",transition:"color .3s cubic-bezier(.645,.045,.355,1)","&:hover":{color:e.colorPrimary}}},[`${e.componentCls}-dropdown-menu-btn`]:{marginInlineEnd:8,padding:12,fontSize:16,cursor:"pointer"}},"&-fixed":{position:"fixed",height:62,top:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.heightLayoutHeader)||i.themeConfig.headerHeight,right:0,zIndex:9,transition:"width .2s"}}}};function Lt(e){return i.useStyle("ProMultiTabs",a=>{const n=i.mergeToken(a,{componentWrapCls:`${a.componentCls}-wrap`});return[$t(n)]},e)}const Kt=[{key:"closeOthersTabs",label:"关闭其他"},{key:"closeLeftTabs",label:"关闭左侧"},{key:"closeRightTabs",label:"关闭右侧"},{key:"reloadPage",label:"刷新当前页"}];function Dt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}function v(e){var a;return((a=e==null?void 0:e.meta)==null?void 0:a.currenFulltPath)||e.fullPath||e.path}const zt=p.Tabs.TabPane,Ht=p.Menu.Item,jt=t.defineComponent({props:{...Xe,visible:{type:Boolean,default:!0}},inheritAttrs:!1,setup(e){const{isMobile:a,isFixedMultiTab:n}=t.toRefs(e),l=t.ref(!1),o=t.reactive({activeKey:"",contextMenuActiveKey:""}),c=ie.useRouter(),{menuData:h,flatMenuData:m,layout:w,splitMenus:b,getPrefixCls:O}=Q(),g=O({isPor:!0,suffixCls:"multi-tab"}),{wrapSSR:T,hashId:r}=Lt(g),d=t.ref([]);t.watch(d,()=>{var u;(u=e.onChangeTabs)==null||u.call(e,J.cloneDeep(t.unref(d)))},{deep:!0});const I=t.computed(()=>w.value==="mix"&&!e.isMobile&&b.value),R=t.computed(()=>v(c.currentRoute.value)),C=t.computed(()=>n.value&&!a.value),y=t.computed(()=>{const u=!(I.value&&t.unref(m.value).length===0||h.value.length===0||w.value==="top");return C.value&&u?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"}),f=t.computed(()=>K.classNames(`${g}-wrap`,{[`${r.value}`]:!0,[`${g}-wrap-fixed`]:e.isFixedMultiTab,[`${g}-wrap-loading`]:e.loading})),S=t.computed(()=>{const u={display:e.visible?void 0:"none"};return e.isFixedMultiTab?{margin:0,width:y.value,paddingTop:"6px",zIndex:99,...u}:u}),F=u=>v(u)===R.value,s=u=>{if(u.name&&u.meta&&u.meta.tagHidden!==!0){const x=v(u),B=d.value.find(j=>v(j)===x),$={path:u.path,fullPath:x,query:u.query,params:u.params,name:u.name,meta:{...u.meta,originTagPath:u.fullPath}};B?Object.assign(B,$):u.meta.tagFixed?d.value.unshift($):d.value.push($),F(u)&&(o.activeKey=x)}},N=u=>{u.forEach(x=>{x.meta&&x.meta.tagFixed&&s(x),x.children&&N(x.children)})};t.watch(()=>h.value,u=>{N(u)},{deep:!0,immediate:!0}),t.watch(()=>c.currentRoute.value,u=>{s(u)},{deep:!0,immediate:!0});const M=u=>{var x,B;return((B=(x=d.value.find($=>(u||o.activeKey)===v($)))==null?void 0:x.meta)==null?void 0:B.originTagPath)||u||o.activeKey},k=()=>{const u=d.value.slice(-1)[0];u?c.push({path:M(v(u))}):c.push("/")},L=async u=>{const x=d.value.find(B=>u===v(B));d.value=d.value.filter(B=>v(B)!==u),x&&F(x)&&k()},W=u=>{const x=d.value.find(B=>v(B)===u);x&&o.activeKey!==v(x)&&c.push({path:M(v(x))})},H=()=>{var u;l.value=!0,e.onReloadPage&&((u=e.onReloadPage)==null||u.call(e)),setTimeout(()=>{l.value=!1},500)},z=u=>u.meta&&u.meta.tagFixed,A=u=>o[u],E=(u,x)=>{const B=d.value.findIndex($=>v($)===A(x));switch(u){case"closeOthersTabs":d.value=d.value.filter($=>{var j;return v($)===A(x)||((j=$.meta)==null?void 0:j.tagFixed)});break;case"closeLeftTabs":B&&(d.value=d.value.filter(($,j)=>{var G;return j>=B||((G=$.meta)==null?void 0:G.tagFixed)}));break;case"closeRightTabs":B&&(d.value=d.value.filter(($,j)=>{var G;return j<=B||((G=$.meta)==null?void 0:G.tagFixed)}));break;case"reloadPage":(B===0||B)&&o.activeKey===A(x)&&H();break}o.activeKey!==A(x)&&c.push(M(A(x)))},Y=(u,x)=>{const B=d.value.findIndex($=>v($)===x);switch(u){case"closeOthersTabs":return d.value.filter((X,ee)=>{var P;return ee!==B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0;case"closeLeftTabs":return d.value.filter((X,ee)=>{var P;return ee<B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0;case"closeRightTabs":return d.value.filter((X,ee)=>{var P;return ee>B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0}},U=u=>{let x;const{path:B,stateType:$}=u;return t.createVNode(p.Menu,{selectedKeys:[],onClick:({key:j})=>E(j,$)},Dt(x=Kt.map(j=>t.createVNode(Ht,{key:j.key,disabled:Y(j.key,B)},{default:()=>[j.label]})))?x:{default:()=>[x]})},q=u=>{const{router:x}=u;return t.createVNode(p.Dropdown,{trigger:"contextmenu",overlay:t.createVNode(U,{path:v(x)||"",stateType:"contextMenuActiveKey"},null),onOpenChange:B=>{o.contextMenuActiveKey=B&&v(x)||""}},{default:()=>{var B;return[t.createVNode("div",{class:[`${g}-title`,r.value]},[(B=x.meta)==null?void 0:B.title,o.activeKey===v(x)&&t.createVNode(Z.ReloadOutlined,{class:[`${g}-reload-btn`,r.value],spin:l.value,onClick:$=>{$.stopPropagation(),!l.value&&H()}},null),d.value.length>1&&!z(x)&&t.createVNode(Z.CloseOutlined,{class:[`${g}-close-btn`,r.value],onClick:$=>{$.stopPropagation(),!l.value&&L(v(x)||"")}},null)])]}})};return()=>T(t.createVNode(t.Fragment,null,[!!e.isFixedMultiTab&&t.withDirectives(t.createVNode("div",{class:[`${g}-fixed`,r.value]},null),[[t.vShow,e.visible]]),t.createVNode(p.Tabs,{hideAdd:!0,type:"editable-card",style:S.value,class:f.value,activeKey:o.activeKey,onTabClick:W},{default:()=>[d.value.map(u=>t.createVNode(zt,{key:v(u),closable:!1,tab:t.createVNode(q,{router:u},null)},null))],rightExtra:()=>t.createVNode(p.Dropdown,{overlay:t.createVNode(U,{path:o.activeKey,stateType:"activeKey"},null)},{default:()=>[t.createVNode(Z.EllipsisOutlined,{class:[`${g}-dropdown-menu-btn`,r.value],rotate:90},null)]})})]))}}),{Content:Wt}=p.Layout,ue=(e,{slots:a,attrs:n})=>{var I;const{hashId:l,prefixCls:o,isMobile:c,loading:h,collapsed:m,siderWidth:w,isShowTabsBar:b,isFixedMultiTab:O,onReloadPage:g,onChangeTabs:T}=e;if(e.isChildrenLayout)return(I=a.default)==null?void 0:I.call(a);const{flatMenuData:r,layout:d}=Q();return t.createVNode(t.Fragment,null,[t.createVNode(jt,{visible:(t.unref(d)==="mix"?t.unref(r).length>0:!0)&&b,isMobile:c,loading:h,isFixedMultiTab:O,siderWidth:w,collapsed:m,onReloadPage:g,onChangeTabs:T},null),t.createVNode(Wt,{style:n.style,class:[`${o}-content`]},{default:()=>{var R;return[h&&t.createVNode(Ie,null,null),t.createVNode("div",{class:[`${o}-content-spin-container`,l],style:{opacity:h?"0":void 0}},[(R=a.default)==null?void 0:R.call(a)])]}})])};ue.inheritAttrs=!1,ue.displayName="wrap-content";const At=e=>{var a,n,l,o;return{[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]:{backgroundColor:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.colorBgMenu)||e.colorBgElevated},[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]:{backgroundColor:(o=(l=e.layout)==null?void 0:l.header)==null?void 0:o.colorDarkBgMenu,[`${e.proComponentsCls}-global-header-collapsed-button`]:{color:"#fff"}},[`${e.antCls}-layout-header${e.componentCls}`]:{zIndex:19,paddingBlock:0,paddingInline:0,WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.2s cubic-bezier(.645,.045,.355,1)",[`&${e.proComponentsCls}`]:{"&-fixed-header":{position:"fixed",width:"100%",zIndex:9,top:0,transition:"width .2s","&-action":{transition:"width .3s cubic-bezier(.645,.045,.355,1)"}},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}}}}},vt=e=>({[`${e.proComponentsCls}-header`]:{"&-light":{[`${e.componentCls}-logo`]:{h1:{color:e.colorBgSpotlight}}}},[e.componentCls]:{position:"relative",background:"transparent",display:"flex",marginBlock:0,paddingInline:16,width:"100%",height:"100%",boxShadow:"0 1px 4px rgba(0,21,41,.08)",boxSizing:"border-box","&-mix":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)"},"&-wide":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)",padding:0,[`${e.componentCls}-main`]:{margin:"0 auto"}},"&-main":{display:"flex",width:"100%",height:"100%","&-left":{display:"flex",minWidth:192}},"> a":{height:"100%"},"> *":{height:"100%"},[`${e.proComponentsCls}-layout-apps-icon`]:{marginInlineEnd:16},"&-collapsed-button":{display:"flex",alignItems:"center",fontSize:"20px",marginInlineEnd:"16px"},"&-logo":{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{marginBlock:0,marginInline:0,marginInlineStart:12,fontWeight:"500",color:e.colorWhite,fontSize:16},"&-mix":{display:"flex",alignItems:"center"}},"&-logo-mobile":{minWidth:"24px",marginInlineEnd:0}}}),_e={..._,...xe},Ut=(e,a)=>e===!1?null:e?e(a,null):a,Xt=t.defineComponent({props:_e,setup(e){return()=>e.rightContentRender&&typeof e.rightContentRender=="function"&&t.createVNode(t.Fragment,null,[e.rightContentRender({...e})])}}),Ge=t.defineComponent({props:_e,inheritAttrs:!1,setup(e,{slots:a,emit:n}){const l=ie.useRouter(),{token:o}=i.useProConfigContext(),{getPrefixCls:c,openKeys:h,selectedKeys:m}=Q(),{width:w}=we.useWindowSize(),b=c({suffixCls:"global-header",isPor:!0}),{wrapSSR:O,hashId:g}=i.useProStyle("ProGlobalHeader",[vt],b),T=t.computed(()=>e.isMobile?!1:e.layout==="top"||e.layout==="mix"&&e.splitMenus),r=t.computed(()=>({[`${g.value}`]:!0,[`${b}`]:!0,[`${b}-${e.layout}`]:!0})),d=y=>{var f;if(l.currentRoute){const S=l.currentRoute.value.matched.concat();e.onSelect&&y==="select"&&e.onSelect(S.filter(F=>F.name!=="index").map(F=>F.path)),e.onOpenKeys&&y==="openKeys"&&((f=e.onOpenKeys)==null||f.call(e,S.filter(F=>F.path!==l.currentRoute.value.path).map(F=>F.path)))}},I=()=>{n("collapse",!e.collapsed)},R=t.computed(()=>e.collapsedButtonRender||We),C=()=>{var y,f;return t.createVNode(t.Fragment,null,[T.value?t.createVNode("div",{style:{flex:1},class:[`${b}-menu`,g.value]},[((y=e.menuData)==null?void 0:y.length)>0&&t.createVNode(p.ConfigProvider,{theme:{components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:ke({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:2,colorActiveBarBorderSize:0,horizontalItemBorderRadius:4},o.value||{},e.theme,"header")}}},{default:()=>[t.createVNode(be,t.mergeProps({theme:e.theme,mode:e.mode,collapsed:e.collapsed,menuData:e.menuData,openKeys:h.value,selectedKeys:m.value,iconfontUrl:e.iconfontUrl,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,class:{"top-nav-menu":e.mode==="horizontal",[`${g.value}`]:!0}},{"onUpdate:openKeys":()=>d("openKeys"),"onUpdate:selectedKeys":()=>d("select")}),null)]})]):t.createVNode("div",{style:{flex:1}},[(f=a.default)==null?void 0:f.call(a)]),e.layout!=="simple"&&t.createVNode(Xt,t.mergeProps(e,{extraRightDropdownRender:e.extraRightDropdownRender,rightContentRender:e.rightContentRender}),null)])};return()=>{console.log(T.value);const y=t.createVNode("span",{key:"logo",onClick:()=>{var f;return(f=e.onMenuHeaderClick)==null?void 0:f.call(e)},class:[`${b}-logo`,e.isMobile?"mobile":"",g.value]},[t.createVNode("a",null,[He(e.logo)])]);return O(t.createVNode("div",{class:r.value},[e.isMobile?t.createVNode(t.Fragment,null,[Ut(e.menuHeaderRender,y),e.isMobile&&t.unref(R)&&t.createVNode("span",{class:`${b}-collapsed-button ${g.value}`,onClick:I},[t.unref(R)(e.collapsed)]),C()]):["mix","wide","top"].includes(e.layout)?t.createVNode(t.Fragment,null,[t.createVNode("div",{style:{width:e.layout==="wide"?`${e.wideWidth}px`:void 0,padding:e.layout==="wide"&&w.value<e.wideWidth?"0 50px":void 0},class:`${b}-main ${g.value}`},[t.createVNode("div",{class:`${b}-main-left ${g.value}`},[t.createVNode(pe,t.mergeProps(e,{renderKey:"headerTitleRender"}),null)]),C()])]):C()]))}}});function Et(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Header:qe}=p.Layout,Ce=t.defineComponent({inheritAttrs:!1,props:Ue,setup(e){const{theme:a,isMobile:n,fixedHeader:l,headerHeight:o,layout:c,onCollapse:h,splitMenus:m}=t.toRefs(e),{getPrefixCls:w,menuData:b}=Q(),O=w({suffixCls:"header",isPor:!0}),g=w({suffixCls:"fixed-header",isPor:!0}),{wrapSSR:T,hashId:r}=i.useProStyle("ProLayoutHeader",[At],O),d=t.computed(()=>c.value==="wide"),I=t.computed(()=>l.value),R=t.computed(()=>c.value==="mix"||d.value),C=t.computed(()=>c.value==="side"||c.value==="simple"),y=t.computed(()=>C.value&&"light"||a.value),f=t.computed(()=>({[`${r.value}`]:!0,[`${O}-${y.value}`]:!0,[`${O}`]:!0,[`${g}`]:I.value})),S=t.computed(()=>I.value&&!n.value),F=t.computed(()=>m.value?b.value&&Re(b.value)||[]:c.value==="top"?b.value:[]),s=t.computed(()=>C.value&&S.value?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"),N=t.computed(()=>I.value?0:void 0),M=()=>{const k=t.createVNode(Ge,t.mergeProps(e,{theme:y.value,mode:"horizontal",onCollapse:h.value,menuData:F.value}),{default:()=>[R.value?null:e.headerContentRender&&typeof e.headerContentRender=="function"?e.headerContentRender(e):e.headerContentRender]});return e.headerRender?e.headerRender(e,k):k};return()=>{let k;return T(t.createVNode(t.Fragment,null,[I.value&&!d.value&&t.createVNode(qe,{theme:y.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,background:"transparent"}},null),t.createVNode(qe,{theme:y.value,class:f.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,width:s.value,zIndex:C.value?100:101,right:N.value}},Et(k=M())?k:{default:()=>[k]})]))}}}),Yt=t.defineComponent({name:"BaseProLayout",inheritAttrs:!1,components:{GlobalHeader:Ce,GlobalFooter:se,SiderMenuWrapper:de},props:Ye,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a}){const n=K.getPrefixCls({suffixCls:"basic-layout",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProLayout",[Ft,Tt],n),c=ne.useMediaQuery(),{token:h}=i.useProConfigContext(),m=t.computed(()=>{var y;return(y=h==null?void 0:h.value)==null?void 0:y.colorPrimary});t.watchEffect(()=>{m.value&&document.querySelector("html")&&document.querySelector("html").style.setProperty("--gx-primary-color",m.value)});const w=t.computed(()=>e.layout==="mix"||e.layout==="side"||e.layout==="wide"||!1),b=t.computed(()=>e.layout==="wide"),O=t.computed(()=>w.value),g=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),T=t.computed(()=>(e.theme||"dark").toLocaleLowerCase().includes("dark")?"dark":"light"),r=t.computed(()=>(c.value==="sm"||c.value==="xs")&&!e.disableMobile&&!b.value),d=t.reactive({position:"relative"});(e.isChildrenLayout||e.contentStyle&&e.contentStyle.minHeight)&&(d.minHeight=0);const I=(y,f)=>y.headerRender===!1||y.pure?null:t.createVNode(Ce,t.mergeProps(y,{matchMenuKeys:f||[]}),null),R=t.computed(()=>({...e.breadcrumb,itemRender:K.getSlot(a,e,"breadcrumbRender")})),C=t.computed(()=>O.value&&e.selectedKeys?Be(e.menuData,e.selectedKeys[0]):[]);return Ke({getPrefixCls:K.getPrefixCls,...J.pick(t.toRefs(e),["layout","waterMark","menuData","openKeys","splitMenus","headerHeight","selectedKeys","disableMobile","fixSiderbar","fixedHeader","waterMarkProps"].concat(Object.keys(ve))),theme:T.value,hasContentWide:b,isMobile:r,siderWidth:g,breadcrumb:R,flatMenuData:C,hasSide:w,flatMenu:O,pageHeaderRender:t.computed(()=>K.getSlot(a,e,"pageHeaderRender"))}),()=>{var $;const y=K.getSlot(a,e,"collapsedButtonRender"),f=K.getSlot(a,e,"headerContentRender"),S=K.getSlot(a,e,"rightContentRender"),F=K.getSlot(a,e,"headerRender"),s=K.getSlot(a,e,"footerRender"),N=K.getSlot(a,e,"links"),M=K.getSlot(a,e,"copyrightRender"),k=K.getSlot(a,e,"extraRightDropdownRender"),L=K.getSlot(a,e,"menuHeaderRender"),W=K.getSlot(a,e,"menuExtraRender"),H=K.getSlot(a,e,"menuContentRender"),z=K.getSlot(a,e,"menuFooterRender"),A=K.getSlot(a,e,"menuItemRender"),E=K.getSlot(a,e,"subMenuItemRender"),Y={menuItemRender:A,subMenuItemRender:E},U=t.computed(()=>I({...e,...Y,hasSiderMenu:w.value,menuData:e.menuData,isMobile:t.unref(r),rightContentRender:S,extraRightDropdownRender:k,headerTitleRender:L,headerContentRender:f,headerRender:F,theme:T.value},e.matchMenuKeys)),q=t.computed(()=>({[`${o.value}`]:!0,[`${n}`]:!0,[`${n}-${e.layout}`]:!0})),u=t.computed(()=>b.value?{minWidth:`${e.wideWidth}px`}:void 0),x=t.computed(()=>b.value?{width:e.menuData.length?`${e.wideWidth}px`:`${e.wideWidth-e.siderWidth-20}px`,paddingTop:`${e.headerHeight+20}px`,margin:b.value?"0 auto":void 0}:void 0),B=t.computed(()=>b.value?{minHeight:"835px"}:{});return l(t.createVNode(t.Fragment,null,[e.pure?($=a.default)==null?void 0:$.call(a):t.createVNode("div",{class:q.value,style:u.value},[t.createVNode(p.Layout,{style:x.value},{default:()=>[t.createVNode(de,t.mergeProps(J.omit(e,["pure","theme"]),{links:N,theme:T.value,isMobile:r.value,menuHeaderRender:L,menuContentRender:H,menuExtraRender:W,menuFooterRender:z,collapsedButtonRender:y}),null),t.createVNode(p.Layout,{style:d},{default:()=>[U.value,t.createVNode(ue,t.mergeProps({hashId:o.value,isMobile:r.value,prefixCls:n,collapsedWidth:e.collapsedWidth,isChildrenLayout:e.isChildrenLayout,loading:e.loading,isShowTabsBar:e.showTabsBar,isFixedMultiTab:e.fixedMultiTab,siderWidth:e.siderWidth,collapsed:e.collapsed,style:e.disableContentMargin?B.value:{...e.contentStyle,...B.value}},J.pick(e,["onReloadPage","onChangeTabs"])),{default:()=>{var j;return[(j=a.default)==null?void 0:j.call(a)]}}),s===!1?null:s?s(e):t.createVNode(se,{copyright:M},null)]})]})])]))}}}),_t=t.defineComponent({components:{GlobalHeader:Ce,GlobalFooter:se,SiderMenuWrapper:de},props:Ye,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a,emit:n}){const l=t.computed(()=>e.theme!==void 0?{dark:e.theme==="realDark"}:{}),o=m=>{n("update:collapsed",m),n("collapse",m)},c=m=>{n("update:open-keys",m),n("openKeys",m)},h=m=>{n("update:selected-keys",m),n("select",m)};return()=>t.createVNode(p.ConfigProvider,{theme:e.primaryColor?{token:{colorPrimary:e.primaryColor}}:void 0},{default:()=>[t.createVNode(i,t.mergeProps({token:e.token},l.value),{default:()=>[t.createVNode(Yt,t.mergeProps(J.omit(e,["onSelect","onOpenKeys","onCollapse"]),{onSelect:h,onOpenKeys:c,onCollapse:o}),a)]})]})}}),Ze=(e,a,n)=>e.map((l,o)=>{var c;return l.meta&&(l.meta.key=n?`${n}-${o}`:`${o}`),l.path=l.path.replace("//","/"),l.children&&l.children.length>0&&(l.children=Ze(l.children,a,(c=l.meta)==null?void 0:c.key)),a[`${l.path}`]=l,l}),Gt=e=>{const a=e.find(o=>o.path==="/"),n={},l=Ze((a==null?void 0:a.children)||[],n);return{menuData:l,breadcrumb:n,levelMenuData:K.getLevelData(l)}},Je=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"},{key:"realDark",title:"暗黑模式"}],Qe=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],qt=[{key:"header",title:"顶部主题"},{key:"sider",title:"左侧主题"}],Zt=e=>({[e.componentCls]:{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(100%)",display:"block !important"},"&-show":{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(0%)"}},"&-trantion-none":{[`${e.antCls}-drawer-content-wrapper`]:{transition:"none !important;"}},"&-handle":{position:"absolute",top:240,right:300,zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:e.colorPrimary,borderEndStartRadius:e.borderRadiusLG,borderStartStartRadius:e.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"},"&-wrapper":{position:"relative",height:`calc(100vh - ${e.marginLG*2}px)`},"&-content":{padding:e.marginLG},"&-body-title":{margin:0,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-block-checkbox":{display:"flex",minHeight:42,gap:e.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:"0 1px 2.5px rgba(0,0,0,.18)",cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:"#f7f8fa","&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:"#fff"}},"&-wide":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff",left:"15%",width:"15%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:"#fff"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"15%",width:"calc(100% - 15% - 15% - 10% - 15%)",backgroundColor:"#fff"}},"&-simple":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{display:"none"}},"&-mix":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:e.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:e.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",display:"flex",gap:8,"&-label":{marginBlock:"16px"},"&-block":{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0}}}}),Pe=t.defineComponent({name:"BlockCheckbox",props:{value:D.string,list:{type:Array,default:()=>[]},configType:D.string,prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{const a=`${e.prefixCls}-block-checkbox`;return t.createVNode("div",{class:[a,e.hashId]},[e.list.map(n=>t.createVNode(p.Tooltip,{title:n.title,key:n.key},{default:()=>[t.createVNode("div",{class:K.classNames(e.hashId,`${a}-item`,`${a}-item-${n.key}`,`${a}-${e.configType}-item`),onClick:()=>{var l;return(l=e.onChange)==null?void 0:l.call(e,n.key)}},[n.key==="wide"&&t.createVNode("div",{class:[`${a}-item-${n.key}-content`,e.hashId]},null),t.createVNode(Z.CheckOutlined,{class:`${a}-selectIcon ${e.hashId}`.trim(),style:{display:e.value===n.key?"block":"none"}},null),n!=null&&n.icon?t.createVNode("div",{class:`${a}-icon ${e.hashId}`.trim()},[n.icon]):null])]}))])}}}),Jt=t.defineComponent({name:"ThemeColor",inheritAttrs:!1,props:{settingValue:Object,colorList:{type:Array,default:()=>[]},prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{var n;const a=`${e.prefixCls}-theme-color`;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:`${a} ${e.hashId}`.trim()},[(n=e.colorList)==null?void 0:n.map(({key:l,color:o,title:c})=>l?t.createVNode(p.Tooltip,{key:o,title:c},{default:()=>{var h,m;return[t.createVNode("div",{class:[`${a}-block ${e.hashId}`.trim(),((h=e.settingValue)==null?void 0:h.primaryColor)===o?`${a}-block-checked`:""],style:{backgroundColor:o},onClick:()=>e.onChange&&e.onChange(o)},[((m=e.settingValue)==null?void 0:m.primaryColor)===o&&t.createVNode(Z.CheckOutlined,null,null)])]}}):null)])])}}}),me=t.defineComponent({name:"RegionalChange",props:{label:D.string,value:D.bool,prefixCls:D.string,valueKey:String,hashId:D.string,disabled:D.bool,onChange:Function},setup(e){return()=>t.createVNode(p.List,{class:`${e.prefixCls}-list ${e.hashId}`.trim(),split:!1,size:"small",renderItem:({item:a})=>t.createVNode(p.Tooltip,{title:a.disabled?a.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[a.action]},{default:()=>[t.createVNode("span",{style:{opacity:a.disabled?.5:1}},[a.title])]})]}),dataSource:[{title:e.label,action:t.createVNode(p.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:a=>{e.onChange&&e.onChange(e.valueKey,a)}},null)}]},null)}}),Qt=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function Pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const ea=t.defineComponent({name:"ThemeEditor",props:{settingValue:Object,onChange:Function},setup(e){const{getPrefixCls:a}=Q(),[n,l]=ne.useState("header"),o=a({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:c,hashId:h}=i.useProStyle("ProThemeEditor",[Qt],o),{token:m}=i.useProConfigContext(),w=t.computed(()=>{var r;return(r=m.value)==null?void 0:r.layout}),b=t.computed(()=>{var r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["mix","wide"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["side","simple"].includes((C=e.settingValue)==null?void 0:C.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["mix","wide"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["side","simple"].includes((s=e.settingValue)==null?void 0:s.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&["mix","wide"].includes((M=e.settingValue)==null?void 0:M.layout)},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((k=e.settingValue)==null?void 0:k.theme)==="light"||((L=e.settingValue)==null?void 0:L.theme)==="dark"&&["side","simple"].includes((W=e.settingValue)==null?void 0:W.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="light"||((E=e.settingValue)==null?void 0:E.theme)==="dark"&&["side","simple"].includes((Y=e.settingValue)==null?void 0:Y.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((U=e.settingValue)==null?void 0:U.theme)==="dark"&&["mix","wide"].includes((q=e.settingValue)==null?void 0:q.layout)},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((u=e.settingValue)==null?void 0:u.theme)==="light"||((x=e.settingValue)==null?void 0:x.theme)==="dark"&&["side","simple"].includes((B=e.settingValue)==null?void 0:B.layout)}]}),O=t.computed(()=>{var r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B,$,j,G,X,ee,P,ot;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["side","simple"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["mix","wide"].includes((C=e.settingValue)==null?void 0:C.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["side","simple"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["mix","wide"].includes((s=e.settingValue)==null?void 0:s.layout)},{key:"colorBgMenuItemHover",title:"菜单移入背景",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&((M=e.settingValue)==null?void 0:M.layout)!=="mix"},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((k=e.settingValue)==null?void 0:k.theme)==="dark"&&((L=e.settingValue)==null?void 0:L.layout)!=="mix"},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((W=e.settingValue)==null?void 0:W.theme)==="light"||((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="dark"&&((E=e.settingValue)==null?void 0:E.layout)!=="mix"},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((Y=e.settingValue)==null?void 0:Y.theme)==="light"||((U=e.settingValue)==null?void 0:U.theme)==="dark"&&["mix","wide"].includes((q=e.settingValue)==null?void 0:q.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((u=e.settingValue)==null?void 0:u.theme)==="dark"&&((x=e.settingValue)==null?void 0:x.layout)!=="mix"},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((B=e.settingValue)==null?void 0:B.theme)==="light"||(($=e.settingValue)==null?void 0:$.theme)==="dark"&&["mix","wide"].includes((j=e.settingValue)==null?void 0:j.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((G=e.settingValue)==null?void 0:G.theme)==="dark"&&((X=e.settingValue)==null?void 0:X.layout)!=="mix"},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((ee=e.settingValue)==null?void 0:ee.theme)==="light"||((P=e.settingValue)==null?void 0:P.theme)==="dark"&&["mix","wide"].includes((ot=e.settingValue)==null?void 0:ot.layout)}]}),g=t.computed(()=>n.value==="header"?b.value:n.value==="sider"?O.value:[]),T=r=>{var d,I;return(I=(d=w.value)==null?void 0:d[n.value])==null?void 0:I[r]};return()=>{var d,I,R;let r;return c(t.createVNode("div",{class:[o,h.value]},[t.createVNode("h3",{class:[`${o}-title`,h.value]},[t.createTextVNode("主题编辑器"),t.createVNode("div",{class:[`${o}-sub-title`,h.value]},[t.createVNode("span",null,[(d=Je.find(C=>{var y;return C.key===((y=e.settingValue)==null?void 0:y.theme)}))==null?void 0:d.title]),t.createVNode("span",{style:{marginInline:"8px"}},[t.createTextVNode("/")]),t.createVNode("span",null,[(I=Qe.find(C=>{var y;return C.key===((y=e.settingValue)==null?void 0:y.layout)}))==null?void 0:I.title])])]),t.createVNode("div",{class:[`${o}-content`,h.value]},[t.createVNode(p.List,{class:`${o}-list ${h.value}`.trim(),split:!1,size:"small",renderItem:({item:C})=>t.createVNode(p.List.Item,{actions:[C.action]},{default:()=>[t.createVNode("span",{style:{opacity:C.disabled?.5:1}},[C.title])]}),dataSource:[{title:"自定义主题色",action:t.createVNode(Ne.GColorPicker,{value:(R=e.settingValue)==null?void 0:R.primaryColor,actions:["confirm"],modes:["rgb"],size:"small",onConfirm:C=>e.onChange&&e.onChange(C,"primaryColor")},null)}]},null),t.createVNode(p.Tabs,{activeKey:n.value,onChange:l},Pt(r=qt.map(C=>t.createVNode(p.TabPane,{key:C.key,tab:C.title},{default:()=>[t.createVNode(p.List,{class:`${o}-list ${h.value}`.trim(),split:!1,size:"small",renderItem:({item:y})=>t.createVNode(p.List.Item,{actions:[y.action]},{default:()=>[t.createVNode("span",{style:{opacity:y.disabled?.5:1}},[y.title])]}),dataSource:g.value.filter(y=>!y.disabled).map(y=>({...y,action:t.createVNode(Ne.GColorPicker,{value:T(y.key),actions:["confirm"],modes:["rgb"],size:"small",onConfirm:f=>e.onChange&&e.onChange(f,n.value,y.key)},null)}))},null)]})))?r:{default:()=>[r]})])]))}}}),ta=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function et(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{preset:tt}=ge,aa=t.defineComponent({name:"OthersChange",props:{prefixCls:D.string,settingValue:Object,onChange:Function},setup(e){const a=K.getPrefixCls({suffixCls:"others",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("SettingsDrawOthers",[ta],a);return()=>{var c,h,m,w,b,O,g,T,r,d,I,R,C,y;let o;return n(t.createVNode("div",{class:[a,l.value]},[t.createVNode("h3",{class:[`${a}-title`,l.value]},[t.createTextVNode("页面动画设置")]),t.createVNode(p.List,{class:`${a}-list ${l.value}`.trim(),split:!1,size:"small",renderItem:({item:f})=>t.createVNode(p.Tooltip,{title:f.disabled?f.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[f.action]},{default:()=>[t.createVNode("span",{style:{opacity:f.disabled?.5:1}},[f.title])]})]}),dataSource:[{title:"禁用动画",action:t.createVNode(p.Switch,{checked:!((h=(c=e.settingValue)==null?void 0:c.animate)!=null&&h.disabled),size:"small",onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","disabled",!f)}},null)},{title:"动画效果",disabled:(w=(m=e.settingValue)==null?void 0:m.animate)==null?void 0:w.disabled,action:t.createVNode(p.Select,{value:(O=(b=e.settingValue)==null?void 0:b.animate)==null?void 0:O.name,style:{width:"100px"},size:"small",disabled:(T=(g=e.settingValue)==null?void 0:g.animate)==null?void 0:T.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","name",f)}},et(o=tt.map(f=>t.createVNode(p.Select.Option,{value:f.name},{default:()=>[f.alias]})))?o:{default:()=>[o]})},{title:"动画方向",disabled:(d=(r=e.settingValue)==null?void 0:r.animate)==null?void 0:d.disabled,action:t.createVNode(p.Select,{value:(R=(I=e.settingValue)==null?void 0:I.animate)==null?void 0:R.direction,style:{width:"100px"},size:"small",dropdownStyle:{minWidth:"120px"},disabled:(y=(C=e.settingValue)==null?void 0:C.animate)==null?void 0:y.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","direction",f)}},{default:()=>{var f;return[(f=tt.find(S=>{var F,s;return S.name===((s=(F=e.settingValue)==null?void 0:F.animate)==null?void 0:s.name)}))==null?void 0:f.directions.map(S=>t.createVNode(p.Select.Option,{value:S},et(S)?S:{default:()=>[S]}))]}})}]},null)]))}}}),{preset:na}=ge,Se=Object.keys(i.themeConfig).filter(e=>e!=="title"),at={color:"#fff",fontSize:20},oa=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],la=[{label:"showTabsBar",title:"多标签"},{label:"fixedMultiTab",title:"固定多标签"}],nt=e=>K.isBrowser()?{...J.pick(i.themeConfig,Se),...e||{}}:J.cloneDeep(i.themeConfig),fe=(e,{slots:a})=>{var n;return t.createVNode("div",{style:{marginBottom:"24px"}},[t.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),(n=a.default)==null?void 0:n.call(a)])},ia=t.defineComponent({name:"SettingDrawer",props:{themeOnly:Boolean,hideHintAlert:Boolean,hideCopyButton:Boolean,weakmode:Boolean,showProgress:Boolean,settings:{type:Object},colorList:{type:[Boolean,Array],default:()=>i.colorList},onChange:Function,onChangeLayout:Function},emits:["change","changeLayout"],setup(e){const{getPrefixCls:a}=Q(),n=a({suffixCls:"setting-drawer",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProSettingDraw",[Zt],n),c=t.ref(!1),[h,m]=ne.useState(!1),[w,b]=ne.useState(!1),[O,g]=ne.useState(!1),T=t.computed(()=>nt(J.pick(e.settings,Se))),[r,d]=ne.useMergedState(()=>nt(J.pick(e.settings,Se)),{value:T,onChange:e.onChange}),I=t.computed(()=>e.colorList&&K.isArray(e.colorList)?e.colorList:[]),R=t.computed(()=>gt(t.unref(r))),{copy:C,copied:y,isSupported:f}=we.useClipboard();t.watch(h,()=>{c.value||(c.value=!0)});const S=(s,N,M)=>{var W,H;const k=["header","sider"],L={};if(M&&k.includes(s)){L[s]={},L[s][M]=N,e.onChangeLayout&&e.onChangeLayout(J.pick(L,k));return}else s==="animate"?(L[s]={},L[s][M]=N,M==="name"&&(L[s].direction=(H=(W=na.find(z=>z.name===N))==null?void 0:W.directions)==null?void 0:H[0])):L[s]=N;if(s==="colorWeak"){const z=document.querySelector("body");z&&(z.dataset.prosettingdrawer=N===!0?z.style.filter:z.dataset.prosettingdrawer||"none",N===!0&&(z.dataset.prosettingdrawer=z.style.filter),z.style.filter=N===!0?"invert(80%)":z.dataset.prosettingdrawer||"none",N||delete z.dataset.prosettingdrawer)}d(K.merge(t.unref(r),{...Fe(J.omit(L,k))}))},F=()=>{f.value&&C(JSON.stringify(t.unref(r)))};return t.watch(y,s=>{s&&p.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")}),()=>l(t.createVNode(p.Drawer,{width:300,closable:!1,open:h.value,rootClassName:`${n} ${o.value} ${h.value&&`${n}-show`} ${!c.value&&`${n}-trantion-none`}`,placement:"right",rootStyle:{zIndex:999},bodyStyle:{padding:0},onClose:()=>m(!1),handle:t.createVNode("div",{class:[`${n}-handle`,o.value],onClick:()=>m(!h.value)},[h.value?t.createVNode(Z.CloseOutlined,{style:at},null):t.createVNode(Z.SettingOutlined,{style:at},null)])},{default:()=>[t.createVNode("div",{class:[`${n}-wrapper`,o.value]},[t.createVNode(rt,null,{default:()=>[t.createVNode("div",{class:[`${n}-content`,o.value]},[t.createVNode(fe,{prefixCls:n,hashId:o.value,title:"整体风格设置"},{default:()=>[t.createVNode(Pe,{hashId:o.value,prefixCls:n,list:Je,value:r.value.theme,configType:"theme",key:"navTheme",onChange:s=>S("theme",s)},null)]}),t.createVNode(fe,{hashId:o.value,title:t.createVNode("span",null,[t.createTextVNode("主题色 "),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>b(!0)},[t.createTextVNode("更多配置")])]),prefixCls:n},{default:()=>[t.createVNode(Jt,{hashId:o.value,prefixCls:n,colorList:I.value,settingValue:r.value,onChange:(s,N)=>S(N||"primaryColor",s)},null)]}),!e.themeOnly&&t.createVNode(t.Fragment,null,[t.createVNode(p.Divider,null,null),t.createVNode(fe,{hashId:o.value,prefixCls:n,title:"导航模式"},{default:()=>[t.createVNode(Pe,{prefixCls:n,value:t.unref(r).layout,key:"layout",hashId:o.value,configType:"layout",list:Qe,onChange:s=>S("layout",s)},null)]}),oa.map(({label:s,title:N})=>t.createVNode(me,{label:N,disabled:t.unref(R)[s],value:t.unref(r)[s],prefixCls:n,hashId:o.value,valueKey:s,onChange:(M,k)=>S(M,k)},null)),t.createVNode(p.Divider,null,null),t.createVNode(fe,{hashId:o.value,prefixCls:n,title:t.createVNode("span",null,[t.createTextVNode("其他设置 "),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>g(!0)},[t.createTextVNode("更多配置")])])},{default:()=>[la.map(({label:s,title:N})=>t.createVNode(me,{label:N,disabled:t.unref(R)[s],value:t.unref(r)[s],prefixCls:n,hashId:o.value,valueKey:s,onChange:(M,k)=>S(M,k)},null)),e.weakmode&&t.createVNode(me,{label:"色弱模式",value:t.unref(r).colorWeak,prefixCls:n,hashId:o.value,valueKey:"colorWeak",onChange:(s,N)=>S(s,N)},null),e.showProgress&&t.createVNode(me,{label:"顶部进度条",value:t.unref(r).showProgressBar,prefixCls:n,hashId:o.value,valueKey:"showProgressBar",onChange:(s,N)=>S(s,N)},null)]})]),e.hideHintAlert&&e.hideCopyButton?null:t.createVNode(p.Divider,null,null),e.hideHintAlert?null:t.createVNode(p.Alert,{type:"warning",message:"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",icon:t.createVNode(Z.NotificationOutlined,null,null),showIcon:!0,style:{marginBottom:"16px"}},null),e.hideCopyButton?null:t.createVNode(p.Button,{onClick:()=>F(),block:!0},{default:()=>[t.createVNode(Z.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]})])]})]),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:w.value,bodyStyle:{padding:0},onClose:()=>b(!1)},{default:()=>[t.createVNode(ea,{settingValue:r.value,onChange:(s,N,M)=>S(N||"primaryColor",s,M)},null)]}),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:O.value,bodyStyle:{padding:0},onClose:()=>g(!1)},{default:()=>[t.createVNode(aa,{settingValue:r.value,onChange:(s,N,M)=>S(s,M,N)},null)]})]}))}}),ra=new i.Keyframe("backInLeft",{"0%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),da=new i.Keyframe("backInRight",{"0%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ca=new i.Keyframe("backInUp",{"0%":{opacity:.7,transform:"translateY(1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),sa=new i.Keyframe("backInDown",{"0%":{opacity:.7,transform:"translateY(-1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ua=new i.Keyframe("backOutLeft",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"}}),ma=new i.Keyframe("backOutRight",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"}}),fa=new i.Keyframe("backOutUp",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(-700px) scale(0.7)"}}),ha=new i.Keyframe("backOutDown",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(700px) scale(0.7)"}}),ga=()=>({"&.backInLeft":{animationFillMode:"both",animationName:ra},"&.backInRight":{animationFillMode:"both",animationName:da},"&.backInUp":{animationFillMode:"both",animationName:ca},"&.backInDown":{animationFillMode:"both",animationName:sa}}),ya=()=>({"&.backOutLeft":{animationFillMode:"both",animationName:ua},"&.backOutRight":{animationFillMode:"both",animationName:ma},"&.backOutUp":{animationFillMode:"both",animationName:fa},"&.backOutDown":{animationFillMode:"both",animationName:ha}}),ba=new i.Keyframe("bounceIn",{"from,20%,40%,60%,80%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"20%":{transform:"scale3d(1.1, 1.1, 1.1)"},"40%":{transform:"scale3d(0.9, 0.9, 0.9)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},"80%":{transform:"scale3d(0.97, 0.97, 0.97)"},to:{opacity:1,transform:"scale3d(1, 1, 1)"}}),pa=new i.Keyframe("bounceInLeft",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(-3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),xa=new i.Keyframe("bounceInRight",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(-25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),Ca=new i.Keyframe("bounceInDown",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(0, -3000px, 0) scaleY(3)"},"60%":{opacity:1,transform:"translate3d(0, 25px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, -10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, 5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),Sa=new i.Keyframe("bounceInUp",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(0, 3000px, 0) scaleY(5)"},"60%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, 10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, -5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),wa=new i.Keyframe("bounceOut",{"20%":{transform:"scale3d(0.9, 0.9, 0.9)"},"50%,55%":{transform:"scale3d(1.1, 1.1, 1.1)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},to:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"}}),Na=new i.Keyframe("bounceOutLeft",{"20%":{opacity:1,transform:"translate3d(20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(-2000px, 0, 0) scaleX(2)"}}),Ia=new i.Keyframe("bounceOutRight",{"20%":{opacity:1,transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(2000px, 0, 0) scaleX(2)"}}),Ma=new i.Keyframe("bounceOutDown",{"20%":{transform:"translate3d(0, 10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, 2000px, 0) scaleY(3)"}}),ka=new i.Keyframe("bounceOutUp",{"20%":{transform:"translate3d(0, -10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, 20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, -2000px, 0) scaleY(3)"}}),Oa=()=>({"&.bounceIn":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:ba},"&.bounceInLeft":{animationFillMode:"both",animationName:pa},"&.bounceInRight":{animationFillMode:"both",animationName:xa},"&.bounceInDown":{animationFillMode:"both",animationName:Ca},"&.bounceInUp":{animationFillMode:"both",animationName:Sa}}),Ra=()=>({"&.bounceOut":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:wa},"&.bounceOutLeft":{animationFillMode:"both",animationName:Na},"&.bounceOutRight":{animationFillMode:"both",animationName:Ia},"&.bounceOutDown":{animationFillMode:"both",animationName:Ma},"&.bounceOutUp":{animationFillMode:"both",animationName:ka}}),Ba=new i.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),Va=new i.Keyframe("fadeInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Fa=new i.Keyframe("fadeInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ta=new i.Keyframe("fadeInDown",{from:{opacity:0,transform:"translate3d(0, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),$a=new i.Keyframe("fadeInUp",{from:{opacity:0,transform:"translate3d(0, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),La=new i.Keyframe("fadeInDownBig",{from:{opacity:0,transform:"translate3d(0, -2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ka=new i.Keyframe("fadeInUpBig",{from:{opacity:0,transform:"translate3d(0, 2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Da=new i.Keyframe("fadeInLeftBig",{from:{opacity:0,transform:"translate3d(-2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),za=new i.Keyframe("fadeInRightBig",{from:{opacity:0,transform:"translate3d(2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ha=new i.Keyframe("fadeInTopLeft",{from:{opacity:0,transform:"translate3d(-100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ja=new i.Keyframe("fadeInBottomRight",{from:{opacity:0,transform:"translate3d(100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Wa=new i.Keyframe("fadeInTopRight",{from:{opacity:0,transform:"translate3d(100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Aa=new i.Keyframe("fadeInBottomLeft",{from:{opacity:0,transform:"translate3d(-100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),va=new i.Keyframe("fadeOut",{from:{opacity:1},to:{opacity:0}}),Ua=new i.Keyframe("fadeOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0)"}}),Xa=new i.Keyframe("fadeOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0)"}}),Ea=new i.Keyframe("fadeOutDown",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 100%, 0)"}}),Ya=new i.Keyframe("fadeOutUp",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -100%, 0)"}}),_a=new i.Keyframe("fadeOutDownBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 2000px, 0)"}}),Ga=new i.Keyframe("fadeOutUpBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -2000px, 0)"}}),qa=new i.Keyframe("fadeOutLeftBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-2000px, 0, 0)"}}),Za=new i.Keyframe("fadeOutRightBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(2000px, 0, 0)"}}),Ja=new i.Keyframe("fadeOutTopLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, -100%, 0)"}}),Qa=new i.Keyframe("fadeOutBottomRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, 100%, 0)"}}),Pa=new i.Keyframe("fadeOutTopRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, -100%, 0)"}}),en=new i.Keyframe("fadeOutBottomLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, 100%, 0)"}}),tn=()=>({"&.fadeIn":{animationFillMode:"both",animationName:Ba},"&.fadeInLeft":{animationFillMode:"both",animationName:Va},"&.fadeInRight":{animationFillMode:"both",animationName:Fa},"&.fadeInDown":{animationFillMode:"both",animationName:Ta},"&.fadeInUp":{animationFillMode:"both",animationName:$a},"&.fadeInLeftBig":{animationFillMode:"both",animationName:Da},"&.fadeInRightBig":{animationFillMode:"both",animationName:za},"&.fadeInUpBig":{animationFillMode:"both",animationName:Ka},"&.fadeInDownBig":{animationFillMode:"both",animationName:La},"&.fadeInTopLeft":{animationFillMode:"both",animationName:Ha},"&.fadeInBottomRight":{animationFillMode:"both",animationName:ja},"&.fadeInTopRight":{animationFillMode:"both",animationName:Wa},"&.fadeInBottomLeft":{animationFillMode:"both",animationName:Aa}}),an=()=>({"&.fadeOut":{animationFillMode:"both",animationName:va},"&.fadeOutLeft":{animationFillMode:"both",animationName:Ua},"&.fadeOutRight":{animationFillMode:"both",animationName:Xa},"&.fadeOutDown":{animationFillMode:"both",animationName:Ea},"&.fadeOutUp":{animationFillMode:"both",animationName:Ya},"&.fadeOutDownBig":{animationFillMode:"both",animationName:_a},"&.fadeOutUpBig":{animationFillMode:"both",animationName:Ga},"&.fadeOutLeftBig":{animationFillMode:"both",animationName:qa},"&.fadeOutRightBig":{animationFillMode:"both",animationName:Za},"&.fadeOutTopLeft":{animationFillMode:"both",animationName:Ja},"&.fadeOutBottomRight":{animationFillMode:"both",animationName:Qa},"&.fadeOutTopRight":{animationFillMode:"both",animationName:Pa},"&.fadeOutBottomLeft":{animationFillMode:"both",animationName:en}}),nn=new i.Keyframe("flipInX",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},to:{transform:"perspective(400px)"}}),on=new i.Keyframe("flipInY",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},to:{transform:"perspective(400px)"}}),ln=new i.Keyframe("flipOutX",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"}}),rn=new i.Keyframe("flipOutY",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"}}),dn=()=>({"&.flipInX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:nn},"&.flipInY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:on}}),cn=()=>({"&.flipOutX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:ln},"&.flipOutY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:rn}}),sn=new i.Keyframe("lightSpeedInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)"},"60%":{opacity:1,transform:"skewX(-20deg)"},"80%":{transform:"skewX(5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),un=new i.Keyframe("lightSpeedInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)"},"60%":{opacity:1,transform:"skewX(20deg)"},"80%":{transform:"skewX(-5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),mn=new i.Keyframe("lightSpeedOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(-30deg)"}}),fn=new i.Keyframe("lightSpeedOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(30deg)"}}),hn=()=>({"&.lightSpeedInLeft":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:sn},"&.lightSpeedInRight":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:un}}),gn=()=>({"&.lightSpeedOutLeft":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:mn},"&.lightSpeedOutRight":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:fn}}),yn=new i.Keyframe("rotateIn",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -200deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),bn=new i.Keyframe("rotateInDownLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),pn=new i.Keyframe("rotateInDownRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),xn=new i.Keyframe("rotateInUpLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Cn=new i.Keyframe("rotateInUpRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -90deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Sn=new i.Keyframe("rotateOut",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 200deg)"}}),wn=new i.Keyframe("rotateOutDownLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"}}),Nn=new i.Keyframe("rotateOutDownRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),In=new i.Keyframe("rotateOutUpLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),Mn=new i.Keyframe("rotateOutUpRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 90deg)"}}),kn=()=>({"&.rotateIn":{animationFillMode:"both",transformOrigin:"center",animationName:yn},"&.rotateInDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:bn},"&.rotateInDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:pn},"&.rotateInUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:xn},"&.rotateInUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Cn}}),On=()=>({"&.rotateOut":{animationFillMode:"both",transformOrigin:"center",animationName:Sn},"&.rotateOutDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:wn},"&.rotateOutDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Nn},"&.rotateOutUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:In},"&.rotateOutUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Mn}}),Rn=new i.Keyframe("rollIn",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Bn=new i.Keyframe("rollOut",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}}),Vn=()=>({"&.rollIn":{animationFillMode:"both",animationName:Rn}}),Fn=()=>({"&.rollOut":{animationFillMode:"both",animationName:Bn}}),Tn=new i.Keyframe("zoomIn",{from:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"50%":{opacity:1}}),$n=new i.Keyframe("zoomInDown",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Ln=new i.Keyframe("zoomInLeft",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Kn=new i.Keyframe("zoomInRight",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Dn=new i.Keyframe("zoomInUp",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),zn=new i.Keyframe("zoomOut",{from:{opacity:1},"50%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},to:{opacity:0}}),Hn=new i.Keyframe("zoomOutDown",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),jn=new i.Keyframe("zoomOutLeft",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(-2000px, 0, 0)"}}),Wn=new i.Keyframe("zoomOutRight",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(2000px, 0, 0)"}}),An=new i.Keyframe("zoomOutUp",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),vn=()=>({"&.zoomIn":{animationFillMode:"both",animationName:Tn},"&.zoomInDown":{animationFillMode:"both",animationName:$n},"&.zoomInLeft":{animationFillMode:"both",animationName:Ln},"&.zoomInRight":{animationFillMode:"both",animationName:Kn},"&.zoomInUp":{animationFillMode:"both",animationName:Dn}}),Un=()=>({"&.zoomOut":{animationFillMode:"both",animationName:zn},"&.zoomOutDown":{animationFillMode:"both",transformOrigin:"center bottom",animationName:Hn},"&.zoomOutLeft":{animationFillMode:"both",transformOrigin:"left center",animationName:jn},"&.zoomOutRight":{animationFillMode:"both",transformOrigin:"right center",animationName:Wn},"&.zoomOutUp":{animationFillMode:"both",transformOrigin:"center bottom",animationName:An}}),Xn=new i.Keyframe("slideInDown",{from:{transform:"translate3d(0, -100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),En=new i.Keyframe("slideInLeft",{from:{transform:"translate3d(-100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Yn=new i.Keyframe("slideInRight",{from:{transform:"translate3d(100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),_n=new i.Keyframe("slideInUp",{from:{transform:"translate3d(0, 100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Gn=new i.Keyframe("slideOutDown",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 100%, 0)",visibility:"hidden"}}),qn=new i.Keyframe("slideOutLeft",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}}),Zn=new i.Keyframe("slideOutRight",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(100%, 0, 0)",visibility:"hidden"}}),Jn=new i.Keyframe("slideOutUp",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -100%, 0)",visibility:"hidden"}}),Qn=()=>({"&.slideInDown":{animationFillMode:"both",animationName:Xn},"&.slideInLeft":{animationFillMode:"both",animationName:En},"&.slideInRight":{animationFillMode:"both",animationName:Yn},"&.slideInUp":{animationFillMode:"both",animationName:_n}}),Pn=()=>({"&.slideOutDown":{animationFillMode:"both",animationName:Gn},"&.slideOutLeft":{animationFillMode:"both",animationName:qn},"&.slideOutRight":{animationFillMode:"both",animationName:Zn},"&.slideOutUp":{animationFillMode:"both",animationName:Jn}}),eo=e=>({[e.componentCls]:{"&-enter":{background:"transparent",animationDuration:".3s !important",...ga(),...Oa(),...tn(),...dn(),...hn(),...kn(),...Vn(),...vn(),...Qn()},"&-leave":{display:"none",background:"transparent",animationDuration:".3s !important",...ya(),...Ra(),...an(),...cn(),...gn(),...On(),...Fn(),...Un(),...Pn()}}});function to(e){return i.useStyle("LayoutPageTranstion",a=>{const n=i.mergeToken(a);return[eo(n)]},e)}const ao=t.defineComponent({name:"PageTranstion",props:{disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!0},name:{type:String,default:"bounce"},direction:String},setup(e,{slots:a}){const n=K.getPrefixCls({suffixCls:"page-transtion",isPor:!0}),{wrapSSR:l,hashId:o}=to(n),c=t.computed(()=>[m(!1),`${n}-enter`,o.value].join(" ")),h=t.computed(()=>[m(!0),`${n}-leave`,o.value].join(" ")),m=b=>{const O=ge.preset.find(r=>e.name==r.name);if(O==null)return"";let g="";e.direction==null?g=O.directions[0]:g=O.directions.find(r=>r==e.direction)||"",g=g==null||g==="default"?"":g,g!=""&&(g=b&&e.reverse?w(g,O.directions):g,g=g[0].toUpperCase()+g.substring(1));const T=b?"Out":"In";return O.name+T+g},w=(b,O)=>{if(b.length==0||b=="x"||b=="y")return b;let g=O.indexOf(b);return g=g%2==1?g-1:g+1,O[g]};return()=>{var b;return e.disabled?(b=a.default)==null?void 0:b.call(a):l(t.createVNode(t.Transition,{enterActiveClass:c.value,leaveActiveClass:h.value},{default:()=>{var O;return[(O=a.default)==null?void 0:O.call(a)]}}))}}});V.BaseMenu=be,V.DefaultHeader=Ge,V.GProLayout=_t,V.GlobalFooter=se,V.PageContainer=Bt,V.PageLoading=Ie,V.PageTranstion=ao,V.SettingDrawer=ia,V.SiderMenuWrapper=de,V.WrapContent=ue,V.baseMenuProps=oe,V.clearMenuItem=Oe,V.createContext=Te,V.createRouteContext=Le,V.flatMap=Re,V.getMatchedList=ht,V.getMenuData=Gt,V.getMenuFirstChildren=Be,V.getMenuFirstLastChildPath=Ve,V.handleThemeConfig=Fe,V.hanlePathKey=v,V.provideProLayoutContext=Ke,V.useContext=$e,V.useProLayoutContext=Q,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(V,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("ant-design-vue"),require("@gx-design-vue/pro-app"),require("vue-router"),require("@ant-design/icons-vue"),require("@gx-design-vue/pro-provider"),require("vue-types"),require("lodash-es"),require("@gx-design-vue/pro-watermark"),require("@gx-design-vue/pro-utils"),require("@gx-design-vue/pro-hooks"),require("@vueuse/core"),require("@gx-design-vue/scrollbar"),require("@gx-design-vue/color-picker")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@gx-design-vue/pro-app","vue-router","@ant-design/icons-vue","@gx-design-vue/pro-provider","vue-types","lodash-es","@gx-design-vue/pro-watermark","@gx-design-vue/pro-utils","@gx-design-vue/pro-hooks","@vueuse/core","@gx-design-vue/scrollbar","@gx-design-vue/color-picker"],t):(V=typeof globalThis<"u"?globalThis:V||self,t(V.ProLayout={},V.vue,V.antDesignVue,V.proApp,V.vueRouter,V.iconsVue,V.ProConfigProvider,V.vueTypes,V.lodashEs,V.proWatermark,V.proUtils,V.proHooks,V.core,V.GScrollbars,V.colorPicker))})(this,function(V,t,p,he,ie,Z,i,lt,J,it,K,ne,we,rt,Ne){"use strict";const Ie=t.defineComponent({name:"PageLoading",props:{...p.Spin.props},setup(e){const{indicator:a}=he.useProAppContext();return t.createVNode("div",{style:{paddingTop:"100px",textAlign:"center"}},[t.createVNode(p.Spin,t.mergeProps(e,{indicator:a==null?void 0:a.value}),null)])}}),D=lt.createTypes({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});D.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const te={theme:{type:String,default:i.themeConfig.theme},layout:{type:String,default:i.themeConfig.layout},wideWidth:{type:Number,default:i.themeConfig.wideWidth},splitMenus:{type:Boolean,default:i.themeConfig.splitMenus},fixedMultiTab:{type:Boolean,default:i.themeConfig.fixedMultiTab},showProgressBar:{type:Boolean,default:i.themeConfig.showProgressBar},fixedHeader:{type:Boolean,default:i.themeConfig.fixedHeader},fixSiderbar:{type:Boolean,default:i.themeConfig.fixSiderbar},showTabsBar:{type:Boolean,default:i.themeConfig.showTabsBar},showFullScreen:{type:Boolean,default:i.themeConfig.showFullScreen},autoHideHeader:{type:Boolean,default:i.themeConfig.autoHideHeader},headerHeight:{type:Number,default:i.themeConfig.headerHeight},title:{type:String,default:i.themeConfig.title},iconfontUrl:{type:String,default:i.themeConfig.iconfontUrl},animate:{type:Object,default:i.themeConfig.animate},primaryColor:{type:String,default:i.themeConfig.primaryColor}},ae={renderKey:D.string.def("menuHeaderRender"),title:te.title,layout:te.layout,logo:{type:[Object,String,Function],default:()=>{}},logoStyle:{type:Object,default:()=>{}},logoDirection:{type:String,default:"horizontal"},drawer:D.looseBool,collapsed:D.looseBool,menuHeaderRender:{type:[Object,Function],default:()=>{}},onMenuHeaderClick:Function},oe={...te,mode:{type:String,default:"inline"},menuData:{type:Array,default:()=>[]},theme:{type:String,default:"dark"},layout:{type:String,default:"mix"},collapsed:{type:Boolean,default:()=>!1},openKeys:{type:[Array,Boolean],default:()=>[]},selectedKeys:{type:Array,default:()=>[]},menuProps:{type:Object,default:()=>null},menuItemRender:{type:[Function,Boolean],default:()=>{}},subMenuItemRender:{type:[Function,Boolean],default:()=>{}},onClick:[Function,Object],onOpenKeys:{type:Function},onSelect:{type:Function}},_={...te,...oe,menuLoading:D.looseBool,logo:ae.logo,logoStyle:ae.logoStyle,logoDirection:ae.logoDirection,siderWidth:D.number.def(208),headerHeight:D.number.def(48),collapsedWidth:D.number.def(48),links:{type:[Function,Object,Array],default:()=>{}},menuHeaderRender:{type:[Function,Object],default:()=>{}},menuFooterRender:{type:[Function,Object,Boolean],default:()=>!1},menuContentRender:{type:[Function,Object,Boolean],default:()=>!1},menuExtraRender:{type:[Function,Object,Boolean],default:()=>!1},collapsedButtonRender:{type:[Function,Object,Boolean],default:()=>{}},breakpoint:{type:[Object,Boolean],default:()=>!1},isMobile:D.looseBool,matchMenuKeys:{type:Array,default:()=>[]},onMenuHeaderClick:D.func,onMenuClick:D.func,onCollapse:{type:Function}},dt=/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/,Me=e=>dt.test(e);function ct(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}function ke(e,a,n,l){var c,h,m,w,b,O,g,$,r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B,T;const o={...e};return n==="light"?(o.colorItemBg=(h=(c=a.layout)==null?void 0:c[l])==null?void 0:h.colorBgMenu,o.colorSubItemBg=(w=(m=a.layout)==null?void 0:m[l])==null?void 0:w.colorSubItemBg,o.colorItemBgSelected=(O=(b=a.layout)==null?void 0:b[l])==null?void 0:O.colorBgMenuItemSelected,o.colorItemBgSelectedHorizontal=($=(g=a.layout)==null?void 0:g[l])==null?void 0:$.colorBgMenuItemSelected,o.colorItemText=(d=(r=a.layout)==null?void 0:r[l])==null?void 0:d.colorTextMenu,o.colorItemTextHover=(R=(I=a.layout)==null?void 0:I[l])==null?void 0:R.colorTextMenuHover,o.colorItemTextSelected=(y=(C=a.layout)==null?void 0:C[l])==null?void 0:y.colorTextMenuSelected,o.colorItemTextSelectedHorizontal=(S=(f=a.layout)==null?void 0:f[l])==null?void 0:S.colorTextMenuSelected,l==="sider"&&(o.colorItemBgHover=(s=(F=a.layout)==null?void 0:F[l])==null?void 0:s.colorBgMenuItemHover)):n==="dark"&&(o.colorItemBg=(M=(N=a.layout)==null?void 0:N[l])==null?void 0:M.colorDarkBgMenu,o.colorSubItemBg=(L=(k=a.layout)==null?void 0:k[l])==null?void 0:L.colorDarkSubItemBg,o.colorItemBgSelected=(H=(W=a.layout)==null?void 0:W[l])==null?void 0:H.colorDarkBgMenuItemSelected,o.colorItemBgSelectedHorizontal=(A=(z=a.layout)==null?void 0:z[l])==null?void 0:A.colorDarkBgMenuItemSelected,o.colorItemText=(Y=(E=a.layout)==null?void 0:E[l])==null?void 0:Y.colorDarkTextMenu,o.colorItemTextHover=(q=(U=a.layout)==null?void 0:U[l])==null?void 0:q.colorDarkTextMenuHover,o.colorItemTextSelected=(x=(u=a.layout)==null?void 0:u[l])==null?void 0:x.colorDarkTextMenuSelected,o.colorItemTextSelectedHorizontal=(T=(B=a.layout)==null?void 0:B[l])==null?void 0:T.colorDarkTextMenuSelected,l==="header"&&(o.colorActiveBarHeight=0)),o}const st=["left","right"],le=["left","right","down","up"],ut=["downBig","upBig","leftBig","rightBig"],mt=["topLeft","bottomRight","topRight","bottomLeft"],ft=["downLeft","upRight","downRight","upLeft"],ge={preset:[{name:"back",alias:"渐近",directions:le},{name:"bounce",alias:"弹跳",directions:le.concat("default")},{name:"fade",alias:"淡化",directions:le.concat(ut).concat(mt).concat("default")},{name:"flip",alias:"翻转",directions:["x","y"]},{name:"lightSpeed",alias:"光速",directions:st},{name:"rotate",alias:"旋转",directions:ft.concat("default")},{name:"roll",alias:"翻滚",directions:["default"]},{name:"zoom",alias:"缩放",directions:le.concat("default")},{name:"slide",alias:"滑动",directions:le}]};function Oe(e){return e.map(a=>{var l;const n={...a};if((l=n.meta)!=null&&l.hideInMenu)return null;if(n&&(n!=null&&n.children)){if(n.children.some(o=>{var c;return o&&!((c=o.meta)!=null&&c.hideInMenu)}))return{...n,children:Oe(n.children)};delete n.children}return n}).filter(a=>a)}function Re(e){return e.map(a=>{var l;const n={...a};return(l=n.meta)!=null&&l.hideInMenu?null:(n.linkPath=Ve(n.children||[]),n.children&&delete n.children,n)}).filter(a=>a)}function Be(e,a){const n=(a||"").split("/").length===2?a||"":`/${(a||"").split("/")[1]}`,l=e.find(o=>o.path===n);return a===void 0?[]:(l==null?void 0:l.children)||[]}function Ve(e){let a="";const n=function(o){let c="";return o.children&&o.children.length>0?c=n(o.children[0]):c=o.path,c},l=e==null?void 0:e.filter(o=>!o.hidden);if(l.length>0&&l[0].children&&l[0].children.length>0)a=n(l[0].children[0]);else{const o=l.length>0?l[0]:void 0;a=(o==null?void 0:o.path)||""}return a}function ht(e,a){var l,o;const n=((o=(l=e.find(c=>c.path===a))==null?void 0:l.meta)==null?void 0:o.key)||"";if(n){const c=[],h=n.split("-");for(let m=0;m<h.length;m+=1)c.push(J.cloneDeep(h).splice(0,m+1).join("-"));return e.filter(m=>c.some(w=>{var b;return w===((b=m==null?void 0:m.meta)==null?void 0:b.key)||""}))}return[]}function Fe(e){return e.layout==="mix"&&(e.fixSiderbar=!0,e.fixedHeader=!0,e.splitMenus=!0),e.layout==="top"&&(e.fixSiderbar=!1,e.fixedHeader=!0,e.splitMenus=!1),e.layout==="simple"&&(e.splitMenus=!1,e.showTabsBar=!1),e.layout==="side"&&(e.splitMenus=!1),e.layout==="wide"&&(e.splitMenus=!1,e.fixSiderbar=!1,e.fixedHeader=!0,e.showTabsBar=!1,e.fixedMultiTab=!1),{...e}}function gt(e){const a=["showTabsBar","fixedMultiTab","fixSiderbar","fixedHeader","splitMenus"];let l=Object.keys(e).reduce((o,c)=>(o[c]=!1,o),{});return l=yt(l,a),e.layout==="mix"&&(l.fixSiderbar=!0,l.fixedHeader=!0),e.layout==="side"&&(l.splitMenus=!0),e.layout==="simple"&&(l.splitMenus=!0,l.fixedHeader=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),e.layout==="wide"&&(l.splitMenus=!0,l.fixedHeader=!0,l.fixSiderbar=!0,l.showTabsBar=!0,l.fixedMultiTab=!0),l}function yt(e,a){return{...a.reduce((n,l)=>({...n,[l]:e[l]}),{})}}const Te=(e=Symbol(),a="Context.Provider")=>t.defineComponent({name:a,props:{value:{type:Object,required:!0}},setup(l,{slots:o}){return t.provide(e,t.readonly(l.value)),()=>{var c;return(c=o.default)==null?void 0:c.call(o)}}}),$e=(e=Symbol(),a)=>t.inject(e,a||{}),ye=Symbol("pro-layout-context"),Le=()=>Te(ye,"ProLayoutContext.Provider"),Ke=e=>{t.provide(ye,e)},Q=()=>$e(ye);Le();function De(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const re=e=>{const{icon:a,iconType:n,iconfontUrl:l}=e;if(!a)return null;if(typeof a=="string"&&a!==""){if(Me(a)||ct(a))return t.createVNode("img",{src:a,alt:"icon",class:`${e.className}-icon-image`},null);if(n===1){const c=Z.createFromIconfontCN({scriptUrl:l||i.themeConfig.iconfontUrl});return l?t.createVNode(c,{type:a},null):t.createVNode("i",{class:`iconfont ${a} ${e.className}-icon`},null)}}if(t.isVNode(a))return a;const o=t.resolveComponent(a);return typeof re=="function"&&t.createVNode(o,null,null)||null};re.props={icon:{type:[String,Function,Object]},iconType:Number,className:String,iconfontUrl:String};const be=t.defineComponent({name:"BaseMenu",props:oe,setup(e){const a=ie.useRouter(),{getPrefixCls:n}=Q(),l=n({suffixCls:"menu-item",isPor:!0}),o=r=>{var d;(d=e.onOpenKeys)==null||d.call(e,r)},c=r=>{var d;(d=e.onSelect)==null||d.call(e,r.selectedKeys)},h=r=>{var d;(d=e.onClick)==null||d.call(e,...r)},m=(r,d)=>{var C;const I=r.target||"",R=Me(I);((C=a.currentRoute.value)==null?void 0:C.fullPath)!==d.to&&R&&I&&r.targetStatus===1&&window.open(I)},w=t.resolveComponent("router-link"),b=(r=[])=>r.map(d=>O(d)).filter(d=>d),O=r=>{var R,C,y,f,S,F,s,N,M;if(Array.isArray(r.children)&&r.children.length>0&&!((R=r==null?void 0:r.meta)!=null&&R.hideInMenu)&&!((C=r==null?void 0:r.meta)!=null&&C.hideChildrenInMenu)){let k;if(e.subMenuItemRender)return e.subMenuItemRender({item:r,children:b(r.children)});const L=(y=r.meta)==null?void 0:y.title,W=(f=r.meta)!=null&&f.icon?t.createVNode("span",{class:"gx-pro-sider-menu-item"},[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[L])]):t.createVNode("span",{class:"gx-pro-sider-menu-item"},[L]),H=((S=r.meta)==null?void 0:S.type)==="group",z=H?p.Menu.ItemGroup:p.Menu.SubMenu;return t.createVNode(z,{title:W,key:r.path,icon:H?null:t.createVNode(re,{className:l,icon:(F=r.meta)==null?void 0:F.icon,iconfontUrl:e.iconfontUrl,iconType:(s=r.meta)==null?void 0:s.iconType},null)},De(k=b(r.children))?k:{default:()=>[k]})}const[d,I]=g(r);return e.menuItemRender&&e.menuItemRender({item:r,title:d,icon:I})||t.createVNode(p.Menu.Item,{disabled:(N=r.meta)==null?void 0:N.disabled,danger:(M=r.meta)==null?void 0:M.danger,key:r.path,icon:I},De(d)?d:{default:()=>[d]})},g=r=>{var S,F,s,N,M;const d={...r.meta},I=d.targetStatus===1&&d.target?"a":w,R={to:r.linkPath||r.path||""},C=(S=r.meta)==null?void 0:S.title,y=(F=r.meta)!=null&&F.icon?t.createVNode(I,t.mergeProps(R,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,R)}),{default:()=>[t.createVNode("span",{class:"gx-pro-sider-menu-item-title"},[C])]}):t.createVNode(I,t.mergeProps(R,{class:"gx-pro-sider-menu-item",onClick:()=>m(d,R)}),{default:()=>[t.createVNode("span",null,[C])]}),f=((s=r.meta)==null?void 0:s.icon)&&t.createVNode(re,{className:l,icon:(N=r.meta)==null?void 0:N.icon,iconfontUrl:e.iconfontUrl,iconType:(M=r.meta)==null?void 0:M.iconType},null)||void 0;return[y,f]},$=t.computed(()=>b(e.menuData));return()=>t.createVNode(p.Menu,t.mergeProps({key:"Menu",inlineIndent:16,mode:e.mode,theme:e.theme,openKeys:e.openKeys===!1?[]:e.openKeys,selectedKeys:e.selectedKeys||[],onOpenChange:o,onSelect:c,onClick:h},e.menuProps),{default:()=>[$.value]})}}),ze=new i.Keyframe("pro-layout-title-hide",{"0%":{display:"none",opacity:0},"99%":{display:"none",opacity:0},"100%":{display:"block",opacity:1}}),bt=e=>{const a=`${e.antCls}-menu`;return{[`${e.proComponentsCls}-basic-layout`]:{[`${a}${a}-root`]:{[`${a}-item a`]:{transition:"none"}}}}},pt=e=>{var a,n,l,o,c,h,m,w,b,O,g,$;return{[`${e.proComponentsCls}-basic-layout`]:{[`&${e.proComponentsCls}-basic-layout-wide`]:{[e.componentCls]:{position:"sticky",zIndex:100,borderRadius:e.borderRadiusSM}},[e.componentCls]:{position:"relative",borderRight:0,background:(n=(a=e.layout)==null?void 0:a.sider)==null?void 0:n.colorDarkBgMenu,zIndex:9,"&-menu":{position:"relative",zIndex:10,minHeight:"100%","&-icon":{verticalAlign:"unset"}},[`& ${e.antCls}-layout-sider-children`]:{position:"relative",display:"flex",flexDirection:"column",height:"100%"},"&-light":{background:(o=(l=e.layout)==null?void 0:l.sider)==null?void 0:o.colorBgMenu,boxShadow:"2px 0 8px 0 rgba(29,35,41,.05)",[`${e.componentCls}-footer`]:{color:(h=(c=e.layout)==null?void 0:c.sider)==null?void 0:h.colorTextMenu}},"&-links":{width:"100%",borderTop:"1px solid rgba(0,0,0,.06)",ul:{height:"auto"}},"&-link-menu":{border:"none",boxShadow:"none",background:"transparent"},"&-footer":{color:(w=(m=e.layout)==null?void 0:m.sider)==null?void 0:w.colorDarkTextMenu,paddingBlockEnd:16,fontSize:e.fontSize,animationName:ze,animationDuration:".4s",animationTimingFunction:"ease"}},[`${e.componentCls}${e.componentCls}-fixed`]:{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:`calc(100% - ${((O=(b=e.layout)==null?void 0:b.header)==null?void 0:O.heightLayoutHeader)||i.themeConfig.headerHeight}px)`,insetBlockStart:`${(($=(g=e.layout)==null?void 0:g.header)==null?void 0:$.heightLayoutHeader)||i.themeConfig.headerHeight}px`}}}}},xt=e=>({[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-menu`]:{[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]:{verticalAlign:"unset",lineHeight:1}}}}),Ct=e=>({[`${e.proComponentsCls}-sider`]:{"&-light":{[`${e.proComponentsCls}-sider-logo`]:{h1:{color:e.colorPrimary}}},"&-logo":{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 8px",cursor:"pointer",transition:"padding .3s cubic-bezier(.645,.045,.355,1)","> a":{display:"flex",alignItems:"center",justifyContent:"center",maxHeight:32,"> img":{display:"inline-block",height:32,verticalAlign:"middle"},"> h1":{display:"inline-block",lineHeight:"32px",marginBlock:0,marginInlineEnd:0,marginInlineStart:12,color:e.colorWhite,animationName:ze,animationDuration:".2s",fontWeight:600,fontSize:18,overflow:"hidden",verticalAlign:"middle"}},"&-collapsed":{flexDirection:"column-reverse",margin:0,padding:12,[`${e.proComponentsCls}-layout-apps-icon`]:{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"}}},[`&${e.antCls}-layout-sider-collapsed`]:{[`${e.proComponentsCls}-sider-logo`]:{padding:"16px 8px"}}}}),He=(e,a)=>e?typeof e=="string"?t.createVNode("img",{src:e,alt:"logo",style:a},null):typeof e=="function"?e():e:null,St=(e,a="menuHeaderRender")=>{const{logo:n,logoStyle:l,title:o,layout:c}=e,h=e[a||""];if(h===!1)return null;const m=He(n,l),w=o&&t.createVNode("h1",null,[o]);return typeof h=="function"?h(m,e.collapsed?null:w,e):t.createVNode(t.Fragment,null,[m||null,e.collapsed&&c==="side"?null:w])},pe=t.defineComponent({name:"LogoContent",props:ae,setup(e){const{getPrefixCls:a}=Q(),n=t.computed(()=>e.layout==="side"||e.layout==="simple"),l=t.computed(()=>a({suffixCls:n.value||e.drawer?"sider":"global-header",isPor:!0})),{wrapSSR:o,hashId:c}=i.useProStyle("ProLayoutLogo",[Ct]),h=t.computed(()=>St(e,e.renderKey));return()=>o(t.createVNode("div",{id:"logo",class:{[`${c.value}`]:!0,[`${l.value}-logo`]:!0,[`${l.value}-logo-collapsed`]:!!e.collapsed},onClick:()=>{var m;return(m=e.onMenuHeaderClick)==null?void 0:m.call(e)}},[t.createVNode("a",null,[h.value||null])]))}});pe.inheritAttrs=!1;function wt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Sider:Nt}=p.Layout,{Item:je}=p.Menu,We=e=>e?t.createVNode(Z.MenuUnfoldOutlined,null,null):t.createVNode(Z.MenuFoldOutlined,null,null),Ae=t.defineComponent({props:_,inheritAttrs:!1,setup(e){const{getPrefixCls:a,selectedKeys:n,flatMenuData:l,menuData:o,openKeys:c}=Q(),{indicator:h}=he.useProAppContext(),{token:m}=i.useProConfigContext(),{theme:w,layout:b,isMobile:O,menuLoading:g,breakpoint:$,fixSiderbar:r,collapsed:d,siderWidth:I,collapsedWidth:R,menuExtraRender:C,menuContentRender:y,menuFooterRender:f,collapsedButtonRender:S,links:F}=t.toRefs(e),s=a({suffixCls:"sider",isPor:!0}),{wrapSSR:N,hashId:M}=i.useProStyle("ProLayoutSiderMenu",[bt,pt,xt],s),k=t.computed(()=>e.layout==="wide"),L=t.computed(()=>e.layout==="mix"&&!e.isMobile&&e.splitMenus),W=t.computed(()=>b.value==="side"||b.value==="simple"),H=t.computed(()=>(e.layout==="mix"||k.value)&&"light"||w.value),z=t.computed(()=>b.value==="top"?[]:o.value),A=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),E=t.computed(()=>[M.value,s,O.value?"shadow":null,`${s}-${H.value}`,r.value&&e.layout!=="wide"?`${s}-fixed`:null]),Y=t.computed(()=>{var u;return typeof F.value=="function"?(u=F.value)==null?void 0:u.call(F):F.value}),U=t.computed(()=>S.value!==!1?S.value||We:!1),q=u=>{var x;if(e.onSelect){if(t.unref(L)){e.onSelect([(x=n==null?void 0:n.value)==null?void 0:x[0],...u]);return}e.onSelect(u)}};return()=>{var T;const u=W.value?t.createVNode(pe,t.mergeProps({drawer:O.value},e),null):null,x=C.value&&((T=C.value)==null?void 0:T.call(C,e)),B=t.createVNode(be,{class:`${s}-menu ${M.value}`,theme:H.value,mode:"inline",menuData:L.value?l.value:z.value,iconfontUrl:e.iconfontUrl,openKeys:c.value,selectedKeys:n.value,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,onClick:e.onMenuClick,style:{width:"100%"},onOpenKeys:j=>{var G;return e.onOpenKeys&&((G=e.onOpenKeys)==null?void 0:G.call(e,j))},onSelect:q},null);return L.value&&t.unref(l.value).length===0||z.value.length===0?null:N(t.createVNode(p.ConfigProvider,{theme:{components:{Menu:ke({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0},(m==null?void 0:m.value)||{},H.value,"sider")}}},{default:()=>[r.value&&t.createVNode("div",{style:{width:`${A.value}px`,overflow:"hidden",flex:`0 0 ${A.value}px`,maxWidth:`${A.value}px`,minWidth:`${A.value}px`,transition:"background-color 0.2s, min-width 0.2s, max-width 0.2s"}},null),t.createVNode(Nt,{collapsible:!0,trigger:null,class:E.value,style:{overflow:"hidden",zIndex:r.value?101:void 0,paddingTop:W.value||e.isMobile||k.value?0:`${e.headerHeight}px`,top:e.layout==="wide"?`${e.headerHeight+20}px`:void 0,height:e.layout==="wide"?`calc(100vh - ${e.headerHeight+20*2}px)`:void 0},theme:H.value,breakpoint:$.value||void 0,collapsed:d.value,width:I.value,collapsedWidth:R.value},{default:()=>{var j,G;return[g.value&&t.createVNode("div",{class:["gx-pro-sider-loading",M.value]},[t.createVNode(p.Spin,{spinning:g.value,indicator:h==null?void 0:h.value},null)]),u||null,x&&!e.collapsed&&t.createVNode("div",{class:{[`${M.value}`]:!0,[`${s}-extra`]:!0,[`${s}-extra-no-logo`]:!u}},[x]),t.createVNode("div",{style:{flex:"1 1 0%",overflow:"hidden auto"}},[y.value&&((j=y.value)==null?void 0:j.call(y,e,B))||B]),e.layout!=="wide"&&t.createVNode("div",{class:`${s}-links ${M.value}`},[t.createVNode(p.Menu,{theme:H.value,inlineIndent:16,class:`${s}-link-menu ${M.value}`,selectedKeys:[],openKeys:[],mode:"inline"},{default:()=>[(Y.value||[]).map((X,ee)=>t.createVNode(je,{class:`${s}-link ${M.value}`,key:ee},wt(X)?X:{default:()=>[X]})),U.value&&!O.value&&t.createVNode(je,{class:`${s}-collapsed-button ${M.value}`,title:!1,key:"collapsed",onClick:()=>{var X;e.onCollapse&&((X=e.onCollapse)==null||X.call(e,!d.value))}},{default:()=>{var X;return[(X=U.value)==null?void 0:X.call(U,d.value)]}})]})]),f.value&&t.createVNode("div",{class:`${s}-footer ${M.value}`},[(G=f.value)==null?void 0:G.call(f,e)])]}})]}))}}}),de=t.defineComponent({name:"SiderMenuWrapper",inheritAttrs:!1,props:{..._,matchMenuKeys:{type:Array,default:()=>[]}},setup(e){return()=>t.createVNode(t.Fragment,null,[e.isMobile?t.createVNode(p.Drawer,{maskClosable:!0,open:!e.collapsed,closable:!1,placement:"left",style:{padding:0,height:"100vh"},getContainer:!1,onClose:()=>e.onCollapse&&e.onCollapse(!0),width:e.siderWidth,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"}},{default:()=>[t.createVNode(Ae,t.mergeProps(e,{collapsed:e.isMobile?!1:e.collapsed}),null)]}):t.createVNode(Ae,e,null)])}}),ve={usePageCard:{type:Boolean,default:()=>{}},pageCardProps:Object,pageContentStyle:D.style,pageChildrenContentStyle:D.style,waterMarkProps:{type:Object},waterMark:D.bool.def(!0),pageHeaderRender:{type:[Object,Function,Boolean],default:()=>{}}},ce={pageChildrenExtraRender:{type:[Object,Function,Boolean],default:()=>{}},contentRender:{type:[Object,Function,Boolean],default:()=>{}},breadcrumbRender:{type:[Object,Function,Boolean],default:()=>{}},pageHeaderStyle:D.style,loading:D.bool.def(!1),...ve},It=e=>({[e.componentCls]:{background:e.colorBgContainer,padding:`${e.paddingLG}px`,"&-has-breadcrumb":{paddingBlock:`${e.paddingSM}px`},"&-content":{marginTop:"8px"}}}),Mt=t.defineComponent({name:"ProPageHeader",props:{content:ce.contentRender,breadcrumb:ce.breadcrumbRender},setup(e){const{breadcrumb:a,getPrefixCls:n}=Q(),l=n({isPor:!0,suffixCls:"page-header"}),{wrapSSR:o,hashId:c}=i.useProStyle("ProPageHeader",[It],l),h=t.computed(()=>{var m;return{...a.value,itemRender:((m=a.value)==null?void 0:m.itemRender)||(({route:w})=>w.path?t.createVNode(ie.RouterLink,{to:w.path},{default:()=>[w.breadcrumbName]}):w.breadcrumbName)}});return()=>{var m,w;return o(t.createVNode("div",{class:[`${l}`,c.value,`${l}-has-breadcrumb`]},[e.breadcrumb?(m=e.breadcrumb)==null?void 0:m.call(e,h.value):t.createVNode(p.Breadcrumb,h.value,null),e.content&&t.createVNode("div",{class:[`${l}-content`,c.value]},[(w=e.content)==null?void 0:w.call(e)])]))}}}),kt=e=>{var a,n,l,o,c,h,m,w;return{[`${e.proComponentsCls}-basic-layout`]:{[e.componentCls]:{marginInline:-(((n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent)??24),marginBlockStart:-(((o=(l=e.layout)==null?void 0:l.pageContainer)==null?void 0:o.paddingBlockPageContainerContent)??24)},[e.gridContent]:{width:"100%"}},[e.componentCls]:{"&-children-content":{marginInline:((h=(c=e.layout)==null?void 0:c.pageContainer)==null?void 0:h.marginInlinePageContainerContent)??24,marginBlockStart:((w=(m=e.layout)==null?void 0:m.pageContainer)==null?void 0:w.marginBlockPageContainerContent)??24,padding:"inherit"}}}};function Ot(e){return i.useStyle("ProPageContainter",a=>{const n=i.mergeToken(a,{gridContent:`${a.proComponentsCls}-grid-content`});return[kt(n)]},e)}function Rt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const Bt=t.defineComponent({inheritAttrs:!1,name:"GProPageContainer",props:ce,setup(e,{slots:a,attrs:n}){const{getPrefixCls:l,hasContentWide:o,waterMark:c,pageHeaderRender:h,pageContentStyle:m,pageChildrenContentStyle:w,pageCardProps:b,usePageCard:O,waterMarkProps:g}=Q(),{indicator:$}=he.useProAppContext(),r=i.useProConfigContext(),d=l({suffixCls:"page-container",isPor:!0}),I=l({suffixCls:"grid-content",isPor:!0}),R=t.computed(()=>e.pageCardProps||b.value),C=t.computed(()=>e.waterMarkProps||g.value||{}),y=t.computed(()=>e.pageContentStyle||m.value),f=t.computed(()=>e.pageChildrenContentStyle||w.value||{}),S=t.computed(()=>K.isBoolean(e.usePageCard)?e.usePageCard:K.isBoolean(O.value)?O.value:!0),{wrapSSR:F,hashId:s}=Ot(d),N=()=>{var L,W,H,z,A,E;const k=K.getSlot(a,e,"pageChildrenExtraRender");return t.createVNode("div",{class:`${d}-children-content ${s.value}`,style:f.value},[k&&(k==null?void 0:k()),S.value?t.createVNode(p.Card,t.mergeProps(R.value?J.pick(R.value,["loading","bodyStyle"]):{},{style:o.value?{minHeight:"853px"}:void 0,bordered:!1}),{default:()=>{var Y;return[(Y=a.default)==null?void 0:Y.call(a)]}}):k?t.createVNode("div",{style:{marginBlockStart:`${(z=(H=(W=(L=r==null?void 0:r.token)==null?void 0:L.value)==null?void 0:W.layout)==null?void 0:H.pageContainer)==null?void 0:z.marginBlockPageContainerContent}px`}},[(A=a.default)==null?void 0:A.call(a)]):(E=a.default)==null?void 0:E.call(a)])},M=()=>{let k;return t.createVNode(t.Fragment,null,[e.waterMark&&c.value?t.createVNode(it.GPorWaterMark,C.value,Rt(k=N())?k:{default:()=>[k]}):N()])};return()=>{const k=K.getSlot(a,e,"pageHeaderRender")||h.value,L=K.getSlot(a,e,"breadcrumbRender"),W=K.getSlot(a,e,"contentRender");return F(t.createVNode(p.Spin,{spinning:e.loading,indicator:$==null?void 0:$.value},{default:()=>[t.createVNode("div",{style:n.style,class:{[`${s.value}`]:!0,[`${d}`]:!0}},[!o.value&&k!==!1&&(k||t.createVNode(Mt,{style:e.pageHeaderStyle,breadcrumb:L,content:W},null)),t.createVNode("div",{class:[I,s.value]},[t.createVNode("div",{class:`${I}-children ${s.value}`,style:y.value},[M()])])])]}))}}}),xe={...te,...oe,logo:ae.logo,logoStyle:ae.logoStyle,logoDirection:ae.logoDirection,menuLoading:Boolean,autoHideHeader:Boolean,collapsed:Boolean,isMobile:Boolean,siderWidth:_.siderWidth,headerTheme:{type:String,default:"dark"},menuData:{type:Array,default:()=>[]},menuRender:{type:[Object,Function],default:()=>{}},extraRightDropdownRender:{type:[Object,Function],default:()=>{}},rightContentRender:{type:[Object,Function],default:()=>{}},collapsedButtonRender:_.collapsedButtonRender,matchMenuKeys:_.matchMenuKeys,onCollapse:_.onCollapse,onOpenKeys:_.onOpenKeys,onMenuHeaderClick:Function,onSelect:_.onSelect},Ue={...xe,headerTitleRender:{type:[Object,Function],default:()=>{}},headerRender:{type:[Object,Function],default:()=>{}},headerContentRender:{type:[Object,Function],default:()=>{}},hasSiderMenu:Boolean,collapsedWidth:_.collapsedWidth,siderWidth:_.siderWidth},Xe={loading:D.looseBool,isMobile:_.isMobile,collapsed:oe.collapsed,siderWidth:_.siderWidth,collapsedWidth:_.collapsedWidth,isFixedMultiTab:te.fixedMultiTab,onReloadPage:{type:Function},onChangeTabs:{type:Function},"onUpdate:tabs":{type:Function}},Vt=e=>({[e.componentCls]:{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-links":{marginBottom:8,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration,"&:hover":{color:e.colorPrimary}},"a:not(:last-child)":{marginInlineEnd:40}},"&-copyright":{fontSize:"14px",color:e.colorTextSecondary,a:{color:e.colorTextSecondary,textDecoration:e.linkDecoration}}}}),Ee=[{key:"Ant Design Pro",title:"Ant Design Pro",href:"https://pro.ant.design",blankTarget:!0},{key:"gitee",title:t.createVNode(Z.GithubOutlined,null,null),href:"https://gitee.com/gx12358/vue-antd-admin",blankTarget:!0},{key:"Ant Design Vue",title:"Ant Design Vue",href:"https://next.antdv.com/components/overview-cn/",blankTarget:!0}],se=t.defineComponent({name:"GlobalFooter",props:{links:{type:[Array,Boolean],default:Ee},copyright:{type:[Object,Function,Boolean,String],default:"皖ICP备2022010510号-1"}},setup(e){const a=K.getPrefixCls({suffixCls:"global-footer",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("ProLayoutFooter",[Vt],a);return()=>n(t.createVNode(p.LayoutFooter,{style:{padding:0}},{default:()=>[t.createVNode("div",{class:[a,l.value]},[e.links&&t.createVNode("div",{class:`${a}-links ${l.value}`},[e.links.map(o=>t.createVNode("a",{key:o.key,title:o.key,target:o.blankTarget?"_blank":"_self",href:o.href},[o.title]))]),e.copyright&&t.createVNode("div",{class:`${a}-copyright ${l.value}`},[t.createTextVNode("Copyright 2022 "),t.createVNode("a",{href:"https://beian.miit.gov.cn/"},[e.copyright])])])]}))}}),Ye={...te,...xe,..._,...Ue,...Xe,...ce,pure:Boolean,token:Object,waterMark:{type:Boolean,default:!0},disableMobile:{type:Boolean,required:!1},contentStyle:{type:[String,Object],default:()=>null},breadcrumb:{type:[Object,Function],default:()=>null},disableContentMargin:D.looseBool,isChildrenLayout:D.looseBool,loading:D.looseBool,footerLinks:{type:[Array,Boolean],default:Ee},copyrightRender:{type:[Object,Function,Boolean,String],default:()=>{}},footerRender:{type:[Object,Function,Boolean],default:()=>{}},menuData:{type:Array,default:()=>[]},levelMenuData:{type:Array,default:()=>[]},collapsed:D.looseBool},Ft=e=>({[e.componentCls]:{display:"flex",flexDirection:"column",width:"100%",minHeight:"100vh"}}),Tt=e=>{var a,n;return{[e.componentCls]:{a:{color:e.colorPrimary,"&:hover":{color:e.colorPrimaryHover}},[`&${e.componentCls}-wide`]:{backgroundColor:e.colorBgLayout,[`${e.componentCls}-content`]:{margin:0,marginInlineStart:20}},[`${e.componentCls}-content`]:{position:"relative",margin:(n=(a=e.layout)==null?void 0:a.pageContainer)==null?void 0:n.paddingBlockPageContainerContent},[`${e.componentCls}-container`]:{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}}}},$t=e=>{var a,n;return{[`${e.componentCls}`]:{"&-fixed":{width:"100%",height:62,background:"transparent"}},[`${e.componentWrapCls}`]:{background:e.colorBgContainer,[`${e.antCls}-tabs-nav`]:{paddingLeft:16,[`${e.antCls}-tabs-tab:not(${e.antCls}-tabs-tab-active)`]:{borderBottomColor:"transparent"},[`${e.componentCls}-title`]:{display:"flex",alignItems:"center",gap:8,[`${e.componentCls}-reload-btn,${e.componentCls}-close-btn`]:{color:e.colorTextSecondary,fontSize:12,margin:0,cursor:"pointer",transition:"color .3s cubic-bezier(.645,.045,.355,1)","&:hover":{color:e.colorPrimary}}},[`${e.componentCls}-dropdown-menu-btn`]:{marginInlineEnd:8,padding:12,fontSize:16,cursor:"pointer"}},"&-fixed":{position:"fixed",height:62,top:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.heightLayoutHeader)||i.themeConfig.headerHeight,right:0,zIndex:9,transition:"width .2s"}}}};function Lt(e){return i.useStyle("ProMultiTabs",a=>{const n=i.mergeToken(a,{componentWrapCls:`${a.componentCls}-wrap`});return[$t(n)]},e)}const Kt=[{key:"closeOthersTabs",label:"关闭其他"},{key:"closeLeftTabs",label:"关闭左侧"},{key:"closeRightTabs",label:"关闭右侧"},{key:"reloadPage",label:"刷新当前页"}];function Dt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}function v(e){var a;return((a=e==null?void 0:e.meta)==null?void 0:a.currenFulltPath)||e.fullPath||e.path}const zt=p.Tabs.TabPane,Ht=p.Menu.Item,jt=t.defineComponent({props:{...Xe,visible:{type:Boolean,default:!0}},inheritAttrs:!1,setup(e){const{isMobile:a,isFixedMultiTab:n}=t.toRefs(e),l=t.ref(!1),o=t.reactive({activeKey:"",contextMenuActiveKey:""}),c=ie.useRouter(),{menuData:h,flatMenuData:m,layout:w,splitMenus:b,getPrefixCls:O}=Q(),g=O({isPor:!0,suffixCls:"multi-tab"}),{wrapSSR:$,hashId:r}=Lt(g),d=t.ref([]);t.watch(d,()=>{var u;(u=e.onChangeTabs)==null||u.call(e,J.cloneDeep(t.unref(d)))},{deep:!0});const I=t.computed(()=>w.value==="mix"&&!e.isMobile&&b.value),R=t.computed(()=>v(c.currentRoute.value)),C=t.computed(()=>n.value&&!a.value),y=t.computed(()=>{const u=!(I.value&&t.unref(m.value).length===0||h.value.length===0||w.value==="top");return C.value&&u?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"}),f=t.computed(()=>K.classNames(`${g}-wrap`,{[`${r.value}`]:!0,[`${g}-wrap-fixed`]:e.isFixedMultiTab,[`${g}-wrap-loading`]:e.loading})),S=t.computed(()=>{const u={display:e.visible?void 0:"none"};return e.isFixedMultiTab?{margin:0,width:y.value,paddingTop:"6px",zIndex:99,...u}:u}),F=u=>v(u)===R.value,s=u=>{if(u.name&&u.meta&&u.meta.tagHidden!==!0){const x=v(u),B=d.value.find(j=>v(j)===x),T={path:u.path,fullPath:x,query:u.query,params:u.params,name:u.name,meta:{...u.meta,originTagPath:u.fullPath}};B?Object.assign(B,T):u.meta.tagFixed?d.value.unshift(T):d.value.push(T),F(u)&&(o.activeKey=x)}},N=u=>{u.forEach(x=>{x.meta&&x.meta.tagFixed&&s(x),x.children&&N(x.children)})};t.watch(()=>h.value,u=>{N(u)},{deep:!0,immediate:!0}),t.watch(()=>c.currentRoute.value,u=>{s(u)},{deep:!0,immediate:!0});const M=u=>{var x,B;return((B=(x=d.value.find(T=>(u||o.activeKey)===v(T)))==null?void 0:x.meta)==null?void 0:B.originTagPath)||u||o.activeKey},k=()=>{const u=d.value.slice(-1)[0];u?c.push({path:M(v(u))}):c.push("/")},L=async u=>{const x=d.value.find(B=>u===v(B));d.value=d.value.filter(B=>v(B)!==u),x&&F(x)&&k()},W=u=>{const x=d.value.find(B=>v(B)===u);x&&o.activeKey!==v(x)&&c.push({path:M(v(x))})},H=()=>{var u;l.value=!0,e.onReloadPage&&((u=e.onReloadPage)==null||u.call(e)),setTimeout(()=>{l.value=!1},500)},z=u=>u.meta&&u.meta.tagFixed,A=u=>o[u],E=(u,x)=>{const B=d.value.findIndex(T=>v(T)===A(x));switch(u){case"closeOthersTabs":d.value=d.value.filter(T=>{var j;return v(T)===A(x)||((j=T.meta)==null?void 0:j.tagFixed)});break;case"closeLeftTabs":B&&(d.value=d.value.filter((T,j)=>{var G;return j>=B||((G=T.meta)==null?void 0:G.tagFixed)}));break;case"closeRightTabs":B&&(d.value=d.value.filter((T,j)=>{var G;return j<=B||((G=T.meta)==null?void 0:G.tagFixed)}));break;case"reloadPage":(B===0||B)&&o.activeKey===A(x)&&H();break}o.activeKey!==A(x)&&c.push(M(A(x)))},Y=(u,x)=>{const B=d.value.findIndex(T=>v(T)===x);switch(u){case"closeOthersTabs":return d.value.filter((X,ee)=>{var P;return ee!==B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0;case"closeLeftTabs":return d.value.filter((X,ee)=>{var P;return ee<B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0;case"closeRightTabs":return d.value.filter((X,ee)=>{var P;return ee>B&&!((P=X.meta)!=null&&P.tagFixed)}).length===0}},U=u=>{let x;const{path:B,stateType:T}=u;return t.createVNode(p.Menu,{selectedKeys:[],onClick:({key:j})=>E(j,T)},Dt(x=Kt.map(j=>t.createVNode(Ht,{key:j.key,disabled:Y(j.key,B)},{default:()=>[j.label]})))?x:{default:()=>[x]})},q=u=>{const{router:x}=u;return t.createVNode(p.Dropdown,{trigger:"contextmenu",overlay:t.createVNode(U,{path:v(x)||"",stateType:"contextMenuActiveKey"},null),onOpenChange:B=>{o.contextMenuActiveKey=B&&v(x)||""}},{default:()=>{var B;return[t.createVNode("div",{class:[`${g}-title`,r.value]},[(B=x.meta)==null?void 0:B.title,o.activeKey===v(x)&&t.createVNode(Z.ReloadOutlined,{class:[`${g}-reload-btn`,r.value],spin:l.value,onClick:T=>{T.stopPropagation(),!l.value&&H()}},null),d.value.length>1&&!z(x)&&t.createVNode(Z.CloseOutlined,{class:[`${g}-close-btn`,r.value],onClick:T=>{T.stopPropagation(),!l.value&&L(v(x)||"")}},null)])]}})};return()=>$(t.createVNode(t.Fragment,null,[!!e.isFixedMultiTab&&t.withDirectives(t.createVNode("div",{class:[`${g}-fixed`,r.value]},null),[[t.vShow,e.visible]]),t.createVNode(p.Tabs,{hideAdd:!0,type:"editable-card",style:S.value,class:f.value,activeKey:o.activeKey,onTabClick:W},{default:()=>[d.value.map(u=>t.createVNode(zt,{key:v(u),closable:!1,tab:t.createVNode(q,{router:u},null)},null))],rightExtra:()=>t.createVNode(p.Dropdown,{overlay:t.createVNode(U,{path:o.activeKey,stateType:"activeKey"},null)},{default:()=>[t.createVNode(Z.EllipsisOutlined,{class:[`${g}-dropdown-menu-btn`,r.value],rotate:90},null)]})})]))}}),{Content:Wt}=p.Layout,ue=(e,{slots:a,attrs:n})=>{var I;const{hashId:l,prefixCls:o,isMobile:c,loading:h,collapsed:m,siderWidth:w,isShowTabsBar:b,isFixedMultiTab:O,onReloadPage:g,onChangeTabs:$}=e;if(e.isChildrenLayout)return(I=a.default)==null?void 0:I.call(a);const{flatMenuData:r,layout:d}=Q();return t.createVNode(t.Fragment,null,[t.createVNode(jt,{visible:(t.unref(d)==="mix"?t.unref(r).length>0:!0)&&b,isMobile:c,loading:h,isFixedMultiTab:O,siderWidth:w,collapsed:m,onReloadPage:g,onChangeTabs:$},null),t.createVNode(Wt,{style:n.style,class:[`${o}-content`]},{default:()=>{var R;return[h&&t.createVNode(Ie,null,null),t.createVNode("div",{class:[`${o}-content-spin-container`,l],style:{opacity:h?"0":void 0}},[(R=a.default)==null?void 0:R.call(a)])]}})])};ue.inheritAttrs=!1,ue.displayName="wrap-content";const At=e=>{var a,n,l,o;return{[`${e.proComponentsCls}-basic-layout`]:{[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]:{backgroundColor:((n=(a=e.layout)==null?void 0:a.header)==null?void 0:n.colorBgMenu)||e.colorBgElevated},[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]:{backgroundColor:(o=(l=e.layout)==null?void 0:l.header)==null?void 0:o.colorDarkBgMenu,[`${e.proComponentsCls}-global-header-collapsed-button`]:{color:"#fff"}},[`${e.antCls}-layout-header${e.componentCls}`]:{zIndex:19,paddingBlock:0,paddingInline:0,WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.2s cubic-bezier(.645,.045,.355,1)",[`&${e.proComponentsCls}`]:{"&-fixed-header":{position:"fixed",width:"100%",zIndex:9,top:0,transition:"width .2s","&-action":{transition:"width .3s cubic-bezier(.645,.045,.355,1)"}},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}}}}},vt=e=>({[`${e.proComponentsCls}-header`]:{"&-light":{[`${e.componentCls}-logo`]:{h1:{color:e.colorBgSpotlight}}}},[e.componentCls]:{position:"relative",background:"transparent",display:"flex",marginBlock:0,paddingInline:16,width:"100%",height:"100%",boxShadow:"0 1px 4px rgba(0,21,41,.08)",boxSizing:"border-box","&-mix":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)"},"&-wide":{boxShadow:"0 1px 4px 0 rgba(0,21,41,.12)",padding:0,[`${e.componentCls}-main`]:{margin:"0 auto"}},"&-main":{display:"flex",width:"100%",height:"100%","&-left":{display:"flex",minWidth:192}},"> a":{height:"100%"},"> *":{height:"100%"},[`${e.proComponentsCls}-layout-apps-icon`]:{marginInlineEnd:16},"&-collapsed-button":{display:"flex",alignItems:"center",fontSize:"20px",marginInlineEnd:"16px"},"&-logo":{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{marginBlock:0,marginInline:0,marginInlineStart:12,fontWeight:"500",color:e.colorWhite,fontSize:16},"&-mix":{display:"flex",alignItems:"center"}},"&-logo-mobile":{minWidth:"24px",marginInlineEnd:0}}}),_e={..._,...xe},Ut=(e,a)=>e===!1?null:e?e(a,null):a,Xt=t.defineComponent({props:_e,setup(e){return()=>e.rightContentRender&&typeof e.rightContentRender=="function"&&t.createVNode(t.Fragment,null,[e.rightContentRender({...e})])}}),Ge=t.defineComponent({props:_e,inheritAttrs:!1,setup(e,{slots:a,emit:n}){const l=ie.useRouter(),{token:o}=i.useProConfigContext(),{getPrefixCls:c,openKeys:h,selectedKeys:m}=Q(),{width:w}=we.useWindowSize(),b=c({suffixCls:"global-header",isPor:!0}),{wrapSSR:O,hashId:g}=i.useProStyle("ProGlobalHeader",[vt],b),$=t.computed(()=>e.isMobile?!1:e.layout==="top"||e.layout==="mix"&&e.splitMenus),r=t.computed(()=>({[`${g.value}`]:!0,[`${b}`]:!0,[`${b}-${e.layout}`]:!0})),d=y=>{var f;if(l.currentRoute){const S=l.currentRoute.value.matched.concat();e.onSelect&&y==="select"&&e.onSelect(S.filter(F=>F.name!=="index").map(F=>F.path)),e.onOpenKeys&&y==="openKeys"&&((f=e.onOpenKeys)==null||f.call(e,S.filter(F=>F.path!==l.currentRoute.value.path).map(F=>F.path)))}},I=()=>{n("collapse",!e.collapsed)},R=t.computed(()=>e.collapsedButtonRender||We),C=()=>{var y,f;return t.createVNode(t.Fragment,null,[$.value?t.createVNode("div",{style:{flex:1},class:[`${b}-menu`,g.value]},[((y=e.menuData)==null?void 0:y.length)>0&&t.createVNode(p.ConfigProvider,{theme:{components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:ke({radiusItem:4,colorActiveBarWidth:0,colorActiveBarHeight:2,colorActiveBarBorderSize:0,horizontalItemBorderRadius:4},o.value||{},e.theme,"header")}}},{default:()=>[t.createVNode(be,t.mergeProps({theme:e.theme,mode:e.mode,collapsed:e.collapsed,menuData:e.menuData,openKeys:h.value,selectedKeys:m.value,iconfontUrl:e.iconfontUrl,menuItemRender:e.menuItemRender,subMenuItemRender:e.subMenuItemRender,class:{"top-nav-menu":e.mode==="horizontal",[`${g.value}`]:!0}},{"onUpdate:openKeys":()=>d("openKeys"),"onUpdate:selectedKeys":()=>d("select")}),null)]})]):t.createVNode("div",{style:{flex:1}},[(f=a.default)==null?void 0:f.call(a)]),e.layout!=="simple"&&t.createVNode(Xt,t.mergeProps(e,{extraRightDropdownRender:e.extraRightDropdownRender,rightContentRender:e.rightContentRender}),null)])};return()=>{const y=t.createVNode("span",{key:"logo",onClick:()=>{var f;return(f=e.onMenuHeaderClick)==null?void 0:f.call(e)},class:[`${b}-logo`,e.isMobile?"mobile":"",g.value]},[t.createVNode("a",null,[He(e.logo)])]);return O(t.createVNode("div",{class:r.value},[e.isMobile?t.createVNode(t.Fragment,null,[Ut(e.menuHeaderRender,y),e.isMobile&&t.unref(R)&&t.createVNode("span",{class:`${b}-collapsed-button ${g.value}`,onClick:I},[t.unref(R)(e.collapsed)]),C()]):["mix","wide","top"].includes(e.layout)?t.createVNode(t.Fragment,null,[t.createVNode("div",{style:{width:e.layout==="wide"?`${e.wideWidth}px`:void 0,padding:e.layout==="wide"&&w.value<e.wideWidth?"0 50px":void 0},class:`${b}-main ${g.value}`},[t.createVNode("div",{class:`${b}-main-left ${g.value}`},[t.createVNode(pe,t.mergeProps(e,{renderKey:"headerTitleRender"}),null)]),C()])]):C()]))}}});function Et(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{Header:qe}=p.Layout,Ce=t.defineComponent({inheritAttrs:!1,props:Ue,setup(e){const{theme:a,isMobile:n,fixedHeader:l,headerHeight:o,layout:c,onCollapse:h,splitMenus:m}=t.toRefs(e),{getPrefixCls:w,menuData:b}=Q(),O=w({suffixCls:"header",isPor:!0}),g=w({suffixCls:"fixed-header",isPor:!0}),{wrapSSR:$,hashId:r}=i.useProStyle("ProLayoutHeader",[At],O),d=t.computed(()=>c.value==="wide"),I=t.computed(()=>l.value),R=t.computed(()=>c.value==="mix"||d.value),C=t.computed(()=>c.value==="side"||c.value==="simple"),y=t.computed(()=>C.value&&"light"||a.value),f=t.computed(()=>({[`${r.value}`]:!0,[`${O}-${y.value}`]:!0,[`${O}`]:!0,[`${g}`]:I.value})),S=t.computed(()=>I.value&&!n.value),F=t.computed(()=>m.value?b.value&&Re(b.value)||[]:c.value==="top"?b.value:[]),s=t.computed(()=>C.value&&S.value?`calc(100% - ${e.collapsed?e.collapsedWidth:e.siderWidth}px)`:"100%"),N=t.computed(()=>I.value?0:void 0),M=()=>{const k=t.createVNode(Ge,t.mergeProps(e,{theme:y.value,mode:"horizontal",onCollapse:h.value,menuData:F.value}),{default:()=>[R.value?null:e.headerContentRender&&typeof e.headerContentRender=="function"?e.headerContentRender(e):e.headerContentRender]});return e.headerRender?e.headerRender(e,k):k};return()=>{let k;return $(t.createVNode(t.Fragment,null,[I.value&&!d.value&&t.createVNode(qe,{theme:y.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,background:"transparent"}},null),t.createVNode(qe,{theme:y.value,class:f.value,style:{height:`${o.value}px`,lineHeight:`${o.value}px`,width:s.value,zIndex:C.value?100:101,right:N.value}},Et(k=M())?k:{default:()=>[k]})]))}}}),Yt=t.defineComponent({name:"BaseProLayout",inheritAttrs:!1,components:{GlobalHeader:Ce,GlobalFooter:se,SiderMenuWrapper:de},props:Ye,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a}){const n=K.getPrefixCls({suffixCls:"basic-layout",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProLayout",[Ft,Tt],n),c=ne.useMediaQuery(),{token:h}=i.useProConfigContext(),m=t.computed(()=>{var y;return(y=h==null?void 0:h.value)==null?void 0:y.colorPrimary});t.watchEffect(()=>{m.value&&document.querySelector("html")&&document.querySelector("html").style.setProperty("--gx-primary-color",m.value)});const w=t.computed(()=>e.layout==="mix"||e.layout==="side"||e.layout==="wide"||!1),b=t.computed(()=>e.layout==="wide"),O=t.computed(()=>w.value),g=t.computed(()=>e.collapsed?e.collapsedWidth:e.siderWidth),$=t.computed(()=>(e.theme||"dark").toLocaleLowerCase().includes("dark")?"dark":"light"),r=t.computed(()=>(c.value==="sm"||c.value==="xs")&&!e.disableMobile&&!b.value),d=t.reactive({position:"relative"});(e.isChildrenLayout||e.contentStyle&&e.contentStyle.minHeight)&&(d.minHeight=0);const I=(y,f)=>y.headerRender===!1||y.pure?null:t.createVNode(Ce,t.mergeProps(y,{matchMenuKeys:f||[]}),null),R=t.computed(()=>({...e.breadcrumb,itemRender:K.getSlot(a,e,"breadcrumbRender")})),C=t.computed(()=>O.value&&e.selectedKeys?Be(e.menuData,e.selectedKeys[0]):[]);return Ke({getPrefixCls:K.getPrefixCls,...J.pick(t.toRefs(e),["layout","waterMark","menuData","openKeys","splitMenus","headerHeight","selectedKeys","disableMobile","fixSiderbar","fixedHeader","waterMarkProps"].concat(Object.keys(ve))),theme:$.value,hasContentWide:b,isMobile:r,siderWidth:g,breadcrumb:R,flatMenuData:C,hasSide:w,flatMenu:O,pageHeaderRender:t.computed(()=>K.getSlot(a,e,"pageHeaderRender"))}),()=>{var T;const y=K.getSlot(a,e,"collapsedButtonRender"),f=K.getSlot(a,e,"headerContentRender"),S=K.getSlot(a,e,"rightContentRender"),F=K.getSlot(a,e,"headerRender"),s=K.getSlot(a,e,"footerRender"),N=K.getSlot(a,e,"links"),M=K.getSlot(a,e,"copyrightRender"),k=K.getSlot(a,e,"extraRightDropdownRender"),L=K.getSlot(a,e,"menuHeaderRender"),W=K.getSlot(a,e,"menuExtraRender"),H=K.getSlot(a,e,"menuContentRender"),z=K.getSlot(a,e,"menuFooterRender"),A=K.getSlot(a,e,"menuItemRender"),E=K.getSlot(a,e,"subMenuItemRender"),Y={menuItemRender:A,subMenuItemRender:E},U=t.computed(()=>I({...e,...Y,hasSiderMenu:w.value,menuData:e.menuData,isMobile:t.unref(r),rightContentRender:S,extraRightDropdownRender:k,headerTitleRender:L,headerContentRender:f,headerRender:F,theme:$.value},e.matchMenuKeys)),q=t.computed(()=>({[`${o.value}`]:!0,[`${n}`]:!0,[`${n}-${e.layout}`]:!0})),u=t.computed(()=>b.value?{minWidth:`${e.wideWidth}px`}:void 0),x=t.computed(()=>b.value?{width:e.menuData.length?`${e.wideWidth}px`:`${e.wideWidth-e.siderWidth-20}px`,paddingTop:`${e.headerHeight+20}px`,margin:b.value?"0 auto":void 0}:void 0),B=t.computed(()=>b.value?{minHeight:"835px"}:{});return l(t.createVNode(t.Fragment,null,[e.pure?(T=a.default)==null?void 0:T.call(a):t.createVNode("div",{class:q.value,style:u.value},[t.createVNode(p.Layout,{style:x.value},{default:()=>[t.createVNode(de,t.mergeProps(J.omit(e,["pure","theme"]),{links:N,theme:$.value,isMobile:r.value,menuHeaderRender:L,menuContentRender:H,menuExtraRender:W,menuFooterRender:z,collapsedButtonRender:y}),null),t.createVNode(p.Layout,{style:d},{default:()=>[U.value,t.createVNode(ue,t.mergeProps({hashId:o.value,isMobile:r.value,prefixCls:n,collapsedWidth:e.collapsedWidth,isChildrenLayout:e.isChildrenLayout,loading:e.loading,isShowTabsBar:e.showTabsBar,isFixedMultiTab:e.fixedMultiTab,siderWidth:e.siderWidth,collapsed:e.collapsed,style:e.disableContentMargin?B.value:{...e.contentStyle,...B.value}},J.pick(e,["onReloadPage","onChangeTabs"])),{default:()=>{var j;return[(j=a.default)==null?void 0:j.call(a)]}}),s===!1?null:s?s(e):t.createVNode(se,{copyright:M},null)]})]})])]))}}}),_t=t.defineComponent({components:{GlobalHeader:Ce,GlobalFooter:se,SiderMenuWrapper:de},props:Ye,emits:["update:collapsed","update:open-keys","update:selected-keys","collapse","openKeys","reloadPage","select","menuHeaderClick","menuClick","changeTabs"],setup(e,{slots:a,emit:n}){const l=t.computed(()=>e.theme!==void 0?{dark:e.theme==="realDark"}:{}),o=m=>{n("update:collapsed",m),n("collapse",m)},c=m=>{n("update:open-keys",m),n("openKeys",m)},h=m=>{n("update:selected-keys",m),n("select",m)};return()=>t.createVNode(p.ConfigProvider,{theme:e.primaryColor?{token:{colorPrimary:e.primaryColor}}:void 0},{default:()=>[t.createVNode(i,t.mergeProps({token:e.token},l.value),{default:()=>[t.createVNode(Yt,t.mergeProps(J.omit(e,["onSelect","onOpenKeys","onCollapse"]),{onSelect:h,onOpenKeys:c,onCollapse:o}),a)]})]})}}),Ze=(e,a,n)=>e.map((l,o)=>{var c;return l.meta&&(l.meta.key=n?`${n}-${o}`:`${o}`),l.path=l.path.replace("//","/"),l.children&&l.children.length>0&&(l.children=Ze(l.children,a,(c=l.meta)==null?void 0:c.key)),a[`${l.path}`]=l,l}),Gt=e=>{const a=e.find(o=>{var c;return o.path==="/"&&((c=o.children)==null?void 0:c.length)}),n={},l=Ze((a==null?void 0:a.children)||[],n);return{menuData:l,breadcrumb:n,levelMenuData:K.getLevelData(l)}},Je=[{key:"light",title:"亮色菜单风格"},{key:"dark",title:"暗色菜单风格"},{key:"realDark",title:"暗黑模式"}],Qe=[{key:"side",title:"侧边菜单布局"},{key:"mix",title:"混合菜单布局"},{key:"wide",title:"定宽菜单布局"},{key:"simple",title:"简单菜单布局"}],qt=[{key:"header",title:"顶部主题"},{key:"sider",title:"左侧主题"}],Zt=e=>({[e.componentCls]:{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(100%)",display:"block !important"},"&-show":{[`${e.antCls}-drawer-content-wrapper`]:{transform:"translate(0%)"}},"&-trantion-none":{[`${e.antCls}-drawer-content-wrapper`]:{transition:"none !important;"}},"&-handle":{position:"absolute",top:240,right:300,zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:e.colorPrimary,borderEndStartRadius:e.borderRadiusLG,borderStartStartRadius:e.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"},"&-wrapper":{position:"relative",height:`calc(100vh - ${e.marginLG*2}px)`},"&-content":{padding:e.marginLG},"&-body-title":{margin:0,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-block-checkbox":{display:"flex",minHeight:42,gap:e.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:"0 1px 2.5px rgba(0,0,0,.18)",cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-dark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-dark,&-side":{backgroundColor:"#f7f8fa","&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:"#fff"}},"&-wide":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff",left:"15%",width:"15%",height:"calc(100% - 38%)",top:"38%"},"&::after":{backgroundColor:"#fff"},"&-content":{position:"absolute",height:"calc(100% - 38%)",top:"38%",right:"15%",width:"calc(100% - 15% - 15% - 10% - 15%)",backgroundColor:"#fff"}},"&-simple":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{display:"none"}},"&-mix":{backgroundColor:"#f7f8fa","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:e.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:e.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",display:"flex",gap:8,"&-label":{marginBlock:"16px"},"&-block":{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0}}}}),Pe=t.defineComponent({name:"BlockCheckbox",props:{value:D.string,list:{type:Array,default:()=>[]},configType:D.string,prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{const a=`${e.prefixCls}-block-checkbox`;return t.createVNode("div",{class:[a,e.hashId]},[e.list.map(n=>t.createVNode(p.Tooltip,{title:n.title,key:n.key},{default:()=>[t.createVNode("div",{class:K.classNames(e.hashId,`${a}-item`,`${a}-item-${n.key}`,`${a}-${e.configType}-item`),onClick:()=>{var l;return(l=e.onChange)==null?void 0:l.call(e,n.key)}},[n.key==="wide"&&t.createVNode("div",{class:[`${a}-item-${n.key}-content`,e.hashId]},null),t.createVNode(Z.CheckOutlined,{class:`${a}-selectIcon ${e.hashId}`.trim(),style:{display:e.value===n.key?"block":"none"}},null),n!=null&&n.icon?t.createVNode("div",{class:`${a}-icon ${e.hashId}`.trim()},[n.icon]):null])]}))])}}}),Jt=t.defineComponent({name:"ThemeColor",inheritAttrs:!1,props:{settingValue:Object,colorList:{type:Array,default:()=>[]},prefixCls:D.string,hashId:D.string,onChange:Function},setup(e){return()=>{var n;const a=`${e.prefixCls}-theme-color`;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:`${a} ${e.hashId}`.trim()},[(n=e.colorList)==null?void 0:n.map(({key:l,color:o,title:c})=>l?t.createVNode(p.Tooltip,{key:o,title:c},{default:()=>{var h,m;return[t.createVNode("div",{class:[`${a}-block ${e.hashId}`.trim(),((h=e.settingValue)==null?void 0:h.primaryColor)===o?`${a}-block-checked`:""],style:{backgroundColor:o},onClick:()=>e.onChange&&e.onChange(o)},[((m=e.settingValue)==null?void 0:m.primaryColor)===o&&t.createVNode(Z.CheckOutlined,null,null)])]}}):null)])])}}}),me=t.defineComponent({name:"RegionalChange",props:{label:D.string,value:D.bool,prefixCls:D.string,valueKey:String,hashId:D.string,disabled:D.bool,onChange:Function},setup(e){return()=>t.createVNode(p.List,{class:`${e.prefixCls}-list ${e.hashId}`.trim(),split:!1,size:"small",renderItem:({item:a})=>t.createVNode(p.Tooltip,{title:a.disabled?a.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[a.action]},{default:()=>[t.createVNode("span",{style:{opacity:a.disabled?.5:1}},[a.title])]})]}),dataSource:[{title:e.label,action:t.createVNode(p.Switch,{size:"small",disabled:e.disabled,checked:!!e.value,onChange:a=>{e.onChange&&e.onChange(e.valueKey,a)}},null)}]},null)}}),Qt=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function Pt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const ea=t.defineComponent({name:"ThemeEditor",props:{settingValue:Object,onChange:Function},setup(e){const{getPrefixCls:a}=Q(),[n,l]=ne.useState("header"),o=a({suffixCls:"theme-editor",isPor:!0}),{wrapSSR:c,hashId:h}=i.useProStyle("ProThemeEditor",[Qt],o),{token:m}=i.useProConfigContext(),w=t.computed(()=>{var r;return(r=m.value)==null?void 0:r.layout}),b=t.computed(()=>{var r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["mix","wide"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["side","simple"].includes((C=e.settingValue)==null?void 0:C.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:!0},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["mix","wide"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["side","simple"].includes((s=e.settingValue)==null?void 0:s.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&["mix","wide"].includes((M=e.settingValue)==null?void 0:M.layout)},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((k=e.settingValue)==null?void 0:k.theme)==="light"||((L=e.settingValue)==null?void 0:L.theme)==="dark"&&["side","simple"].includes((W=e.settingValue)==null?void 0:W.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="light"||((E=e.settingValue)==null?void 0:E.theme)==="dark"&&["side","simple"].includes((Y=e.settingValue)==null?void 0:Y.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((U=e.settingValue)==null?void 0:U.theme)==="dark"&&["mix","wide"].includes((q=e.settingValue)==null?void 0:q.layout)},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((u=e.settingValue)==null?void 0:u.theme)==="light"||((x=e.settingValue)==null?void 0:x.theme)==="dark"&&["side","simple"].includes((B=e.settingValue)==null?void 0:B.layout)}]}),O=t.computed(()=>{var r,d,I,R,C,y,f,S,F,s,N,M,k,L,W,H,z,A,E,Y,U,q,u,x,B,T,j,G,X,ee,P,ot;return[{key:"colorBgMenu",title:"全部背景",disabled:((r=e.settingValue)==null?void 0:r.theme)==="dark"&&["side","simple"].includes((d=e.settingValue)==null?void 0:d.layout)},{key:"colorDarkBgMenu",title:"全部背景",disabled:((I=e.settingValue)==null?void 0:I.theme)==="light"||((R=e.settingValue)==null?void 0:R.theme)==="dark"&&["mix","wide"].includes((C=e.settingValue)==null?void 0:C.layout)},{key:"colorSubItemBg",title:"子菜单背景",disabled:((y=e.settingValue)==null?void 0:y.theme)==="dark"&&["side","simple"].includes((f=e.settingValue)==null?void 0:f.layout)},{key:"colorDarkSubItemBg",title:"子菜单背景",disabled:((S=e.settingValue)==null?void 0:S.theme)==="light"||((F=e.settingValue)==null?void 0:F.theme)==="dark"&&["mix","wide"].includes((s=e.settingValue)==null?void 0:s.layout)},{key:"colorBgMenuItemHover",title:"菜单移入背景",disabled:((N=e.settingValue)==null?void 0:N.theme)==="dark"&&((M=e.settingValue)==null?void 0:M.layout)!=="mix"},{key:"colorBgMenuItemSelected",title:"菜单选中背景",disabled:((k=e.settingValue)==null?void 0:k.theme)==="dark"&&((L=e.settingValue)==null?void 0:L.layout)!=="mix"},{key:"colorDarkBgMenuItemSelected",title:"菜单选中背景",disabled:((W=e.settingValue)==null?void 0:W.theme)==="light"||((H=e.settingValue)==null?void 0:H.theme)==="dark"&&["mix","wide"].includes((z=e.settingValue)==null?void 0:z.layout)},{key:"colorTextMenu",title:"菜单文字颜色",disabled:((A=e.settingValue)==null?void 0:A.theme)==="dark"&&((E=e.settingValue)==null?void 0:E.layout)!=="mix"},{key:"colorDarkTextMenu",title:"菜单文字颜色",disabled:((Y=e.settingValue)==null?void 0:Y.theme)==="light"||((U=e.settingValue)==null?void 0:U.theme)==="dark"&&["mix","wide"].includes((q=e.settingValue)==null?void 0:q.layout)},{key:"colorTextMenuHover",title:"菜单文字移入颜色",disabled:((u=e.settingValue)==null?void 0:u.theme)==="dark"&&((x=e.settingValue)==null?void 0:x.layout)!=="mix"},{key:"colorDarkTextMenuHover",title:"菜单文字移入颜色",disabled:((B=e.settingValue)==null?void 0:B.theme)==="light"||((T=e.settingValue)==null?void 0:T.theme)==="dark"&&["mix","wide"].includes((j=e.settingValue)==null?void 0:j.layout)},{key:"colorTextMenuSelected",title:"菜单文字选中颜色",disabled:((G=e.settingValue)==null?void 0:G.theme)==="dark"&&((X=e.settingValue)==null?void 0:X.layout)!=="mix"},{key:"colorDarkTextMenuSelected",title:"菜单文字选中颜色",disabled:((ee=e.settingValue)==null?void 0:ee.theme)==="light"||((P=e.settingValue)==null?void 0:P.theme)==="dark"&&["mix","wide"].includes((ot=e.settingValue)==null?void 0:ot.layout)}]}),g=t.computed(()=>n.value==="header"?b.value:n.value==="sider"?O.value:[]),$=r=>{var d,I;return(I=(d=w.value)==null?void 0:d[n.value])==null?void 0:I[r]};return()=>{var d,I,R;let r;return c(t.createVNode("div",{class:[o,h.value]},[t.createVNode("h3",{class:[`${o}-title`,h.value]},[t.createTextVNode("主题编辑器"),t.createVNode("div",{class:[`${o}-sub-title`,h.value]},[t.createVNode("span",null,[(d=Je.find(C=>{var y;return C.key===((y=e.settingValue)==null?void 0:y.theme)}))==null?void 0:d.title]),t.createVNode("span",{style:{marginInline:"8px"}},[t.createTextVNode("/")]),t.createVNode("span",null,[(I=Qe.find(C=>{var y;return C.key===((y=e.settingValue)==null?void 0:y.layout)}))==null?void 0:I.title])])]),t.createVNode("div",{class:[`${o}-content`,h.value]},[t.createVNode(p.List,{class:`${o}-list ${h.value}`.trim(),split:!1,size:"small",renderItem:({item:C})=>t.createVNode(p.List.Item,{actions:[C.action]},{default:()=>[t.createVNode("span",{style:{opacity:C.disabled?.5:1}},[C.title])]}),dataSource:[{title:"自定义主题色",action:t.createVNode(Ne.GColorPicker,{value:(R=e.settingValue)==null?void 0:R.primaryColor,actions:["confirm"],modes:["rgb"],size:"small",onConfirm:C=>e.onChange&&e.onChange(C,"primaryColor")},null)}]},null),t.createVNode(p.Tabs,{activeKey:n.value,onChange:l},Pt(r=qt.map(C=>t.createVNode(p.TabPane,{key:C.key,tab:C.title},{default:()=>[t.createVNode(p.List,{class:`${o}-list ${h.value}`.trim(),split:!1,size:"small",renderItem:({item:y})=>t.createVNode(p.List.Item,{actions:[y.action]},{default:()=>[t.createVNode("span",{style:{opacity:y.disabled?.5:1}},[y.title])]}),dataSource:g.value.filter(y=>!y.disabled).map(y=>({...y,action:t.createVNode(Ne.GColorPicker,{value:$(y.key),actions:["confirm"],modes:["rgb"],size:"small",onConfirm:f=>e.onChange&&e.onChange(f,n.value,y.key)},null)}))},null)]})))?r:{default:()=>[r]})])]))}}}),ta=e=>({[e.componentCls]:{padding:e.marginLG,"&-title":{display:"flex",alignItems:"center",margin:0,gap:10,marginBlockEnd:e.marginSM,fontSize:"14px",lineHeight:"22px",color:e.colorBgSpotlight},"&-sub-title":{margin:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:"normal",color:e.colorTextDescription},"&-list":{[`&${e.antCls}-list-sm ${e.antCls}-list-item`]:{paddingInline:0,[`${e.antCls}-list-item-action`]:{marginInlineStart:10}}}}});function et(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const{preset:tt}=ge,aa=t.defineComponent({name:"OthersChange",props:{prefixCls:D.string,settingValue:Object,onChange:Function},setup(e){const a=K.getPrefixCls({suffixCls:"others",isPor:!0}),{wrapSSR:n,hashId:l}=i.useProStyle("SettingsDrawOthers",[ta],a);return()=>{var c,h,m,w,b,O,g,$,r,d,I,R,C,y;let o;return n(t.createVNode("div",{class:[a,l.value]},[t.createVNode("h3",{class:[`${a}-title`,l.value]},[t.createTextVNode("页面动画设置")]),t.createVNode(p.List,{class:`${a}-list ${l.value}`.trim(),split:!1,size:"small",renderItem:({item:f})=>t.createVNode(p.Tooltip,{title:f.disabled?f.disabledReason:"",placement:"left"},{default:()=>[t.createVNode(p.List.Item,{actions:[f.action]},{default:()=>[t.createVNode("span",{style:{opacity:f.disabled?.5:1}},[f.title])]})]}),dataSource:[{title:"禁用动画",action:t.createVNode(p.Switch,{checked:!((h=(c=e.settingValue)==null?void 0:c.animate)!=null&&h.disabled),size:"small",onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","disabled",!f)}},null)},{title:"动画效果",disabled:(w=(m=e.settingValue)==null?void 0:m.animate)==null?void 0:w.disabled,action:t.createVNode(p.Select,{value:(O=(b=e.settingValue)==null?void 0:b.animate)==null?void 0:O.name,style:{width:"100px"},size:"small",disabled:($=(g=e.settingValue)==null?void 0:g.animate)==null?void 0:$.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","name",f)}},et(o=tt.map(f=>t.createVNode(p.Select.Option,{value:f.name},{default:()=>[f.alias]})))?o:{default:()=>[o]})},{title:"动画方向",disabled:(d=(r=e.settingValue)==null?void 0:r.animate)==null?void 0:d.disabled,action:t.createVNode(p.Select,{value:(R=(I=e.settingValue)==null?void 0:I.animate)==null?void 0:R.direction,style:{width:"100px"},size:"small",dropdownStyle:{minWidth:"120px"},disabled:(y=(C=e.settingValue)==null?void 0:C.animate)==null?void 0:y.disabled,getPopupContainer:f=>f&&f.parentNode?f.parentNode:f,onChange:f=>{var S;return(S=e.onChange)==null?void 0:S.call(e,"animate","direction",f)}},{default:()=>{var f;return[(f=tt.find(S=>{var F,s;return S.name===((s=(F=e.settingValue)==null?void 0:F.animate)==null?void 0:s.name)}))==null?void 0:f.directions.map(S=>t.createVNode(p.Select.Option,{value:S},et(S)?S:{default:()=>[S]}))]}})}]},null)]))}}}),{preset:na}=ge,Se=Object.keys(i.themeConfig).filter(e=>e!=="title"),at={color:"#fff",fontSize:20},oa=[{label:"fixedHeader",title:"固定 Header"},{label:"fixSiderbar",title:"固定侧边菜单"},{label:"splitMenus",title:"自动分割菜单"}],la=[{label:"showTabsBar",title:"多标签"},{label:"fixedMultiTab",title:"固定多标签"}],nt=e=>K.isBrowser()?{...J.pick(i.themeConfig,Se),...e||{}}:J.cloneDeep(i.themeConfig),fe=(e,{slots:a})=>{var n;return t.createVNode("div",{style:{marginBottom:"24px"}},[t.createVNode("h3",{class:`${e.prefixCls}-body-title ${e.hashId}`.trim()},[e.title]),(n=a.default)==null?void 0:n.call(a)])},ia=t.defineComponent({name:"SettingDrawer",props:{themeOnly:Boolean,hideHintAlert:Boolean,hideCopyButton:Boolean,weakmode:Boolean,showProgress:Boolean,settings:{type:Object},colorList:{type:[Boolean,Array],default:()=>i.colorList},onChange:Function,onChangeLayout:Function},emits:["change","changeLayout"],setup(e){const{getPrefixCls:a}=Q(),n=a({suffixCls:"setting-drawer",isPor:!0}),{wrapSSR:l,hashId:o}=i.useProStyle("ProSettingDraw",[Zt],n),c=t.ref(!1),[h,m]=ne.useState(!1),[w,b]=ne.useState(!1),[O,g]=ne.useState(!1),$=t.computed(()=>nt(J.pick(e.settings,Se))),[r,d]=ne.useMergedState(()=>nt(J.pick(e.settings,Se)),{value:$,onChange:e.onChange}),I=t.computed(()=>e.colorList&&K.isArray(e.colorList)?e.colorList:[]),R=t.computed(()=>gt(t.unref(r))),{copy:C,copied:y,isSupported:f}=we.useClipboard();t.watch(h,()=>{c.value||(c.value=!0)});const S=(s,N,M)=>{var W,H;const k=["header","sider"],L={};if(M&&k.includes(s)){L[s]={},L[s][M]=N,e.onChangeLayout&&e.onChangeLayout(J.pick(L,k));return}else s==="animate"?(L[s]={},L[s][M]=N,M==="name"&&(L[s].direction=(H=(W=na.find(z=>z.name===N))==null?void 0:W.directions)==null?void 0:H[0])):L[s]=N;if(s==="colorWeak"){const z=document.querySelector("body");z&&(z.dataset.prosettingdrawer=N===!0?z.style.filter:z.dataset.prosettingdrawer||"none",N===!0&&(z.dataset.prosettingdrawer=z.style.filter),z.style.filter=N===!0?"invert(80%)":z.dataset.prosettingdrawer||"none",N||delete z.dataset.prosettingdrawer)}d(K.merge(t.unref(r),{...Fe(J.omit(L,k))}))},F=()=>{f.value&&C(JSON.stringify(t.unref(r)))};return t.watch(y,s=>{s&&p.message.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置")}),()=>l(t.createVNode(p.Drawer,{width:300,closable:!1,open:h.value,rootClassName:`${n} ${o.value} ${h.value&&`${n}-show`} ${!c.value&&`${n}-trantion-none`}`,placement:"right",rootStyle:{zIndex:999},bodyStyle:{padding:0},onClose:()=>m(!1),handle:t.createVNode("div",{class:[`${n}-handle`,o.value],onClick:()=>m(!h.value)},[h.value?t.createVNode(Z.CloseOutlined,{style:at},null):t.createVNode(Z.SettingOutlined,{style:at},null)])},{default:()=>[t.createVNode("div",{class:[`${n}-wrapper`,o.value]},[t.createVNode(rt,null,{default:()=>[t.createVNode("div",{class:[`${n}-content`,o.value]},[t.createVNode(fe,{prefixCls:n,hashId:o.value,title:"整体风格设置"},{default:()=>[t.createVNode(Pe,{hashId:o.value,prefixCls:n,list:Je,value:r.value.theme,configType:"theme",key:"navTheme",onChange:s=>S("theme",s)},null)]}),t.createVNode(fe,{hashId:o.value,title:t.createVNode("span",null,[t.createTextVNode("主题色 "),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>b(!0)},[t.createTextVNode("更多配置")])]),prefixCls:n},{default:()=>[t.createVNode(Jt,{hashId:o.value,prefixCls:n,colorList:I.value,settingValue:r.value,onChange:(s,N)=>S(N||"primaryColor",s)},null)]}),!e.themeOnly&&t.createVNode(t.Fragment,null,[t.createVNode(p.Divider,null,null),t.createVNode(fe,{hashId:o.value,prefixCls:n,title:"导航模式"},{default:()=>[t.createVNode(Pe,{prefixCls:n,value:t.unref(r).layout,key:"layout",hashId:o.value,configType:"layout",list:Qe,onChange:s=>S("layout",s)},null)]}),oa.map(({label:s,title:N})=>t.createVNode(me,{label:N,disabled:t.unref(R)[s],value:t.unref(r)[s],prefixCls:n,hashId:o.value,valueKey:s,onChange:(M,k)=>S(M,k)},null)),t.createVNode(p.Divider,null,null),t.createVNode(fe,{hashId:o.value,prefixCls:n,title:t.createVNode("span",null,[t.createTextVNode("其他设置 "),t.createVNode("a",{style:{fontSize:"12px"},onClick:()=>g(!0)},[t.createTextVNode("更多配置")])])},{default:()=>[la.map(({label:s,title:N})=>t.createVNode(me,{label:N,disabled:t.unref(R)[s],value:t.unref(r)[s],prefixCls:n,hashId:o.value,valueKey:s,onChange:(M,k)=>S(M,k)},null)),e.weakmode&&t.createVNode(me,{label:"色弱模式",value:t.unref(r).colorWeak,prefixCls:n,hashId:o.value,valueKey:"colorWeak",onChange:(s,N)=>S(s,N)},null),e.showProgress&&t.createVNode(me,{label:"顶部进度条",value:t.unref(r).showProgressBar,prefixCls:n,hashId:o.value,valueKey:"showProgressBar",onChange:(s,N)=>S(s,N)},null)]})]),e.hideHintAlert&&e.hideCopyButton?null:t.createVNode(p.Divider,null,null),e.hideHintAlert?null:t.createVNode(p.Alert,{type:"warning",message:"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",icon:t.createVNode(Z.NotificationOutlined,null,null),showIcon:!0,style:{marginBottom:"16px"}},null),e.hideCopyButton?null:t.createVNode(p.Button,{onClick:()=>F(),block:!0},{default:()=>[t.createVNode(Z.CopyOutlined,null,null),t.createTextVNode("拷贝设置")]})])]})]),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:w.value,bodyStyle:{padding:0},onClose:()=>b(!1)},{default:()=>[t.createVNode(ea,{settingValue:r.value,onChange:(s,N,M)=>S(N||"primaryColor",s,M)},null)]}),t.createVNode(p.Drawer,{width:320,closable:!1,placement:"right",open:O.value,bodyStyle:{padding:0},onClose:()=>g(!1)},{default:()=>[t.createVNode(aa,{settingValue:r.value,onChange:(s,N,M)=>S(s,M,N)},null)]})]}))}}),ra=new i.Keyframe("backInLeft",{"0%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),da=new i.Keyframe("backInRight",{"0%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"},"80%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ca=new i.Keyframe("backInUp",{"0%":{opacity:.7,transform:"translateY(1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),sa=new i.Keyframe("backInDown",{"0%":{opacity:.7,transform:"translateY(-1200px) scale(0.7)"},"80%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:1,transform:"scale(1)"}}),ua=new i.Keyframe("backOutLeft",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(-2000px) scale(0.7)"}}),ma=new i.Keyframe("backOutRight",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateX(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateX(2000px) scale(0.7)"}}),fa=new i.Keyframe("backOutUp",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(-700px) scale(0.7)"}}),ha=new i.Keyframe("backOutDown",{"0%":{opacity:1,transform:"scale(1)"},"20%":{opacity:.7,transform:"translateY(0px) scale(0.7)"},"100%":{opacity:.7,transform:"translateY(700px) scale(0.7)"}}),ga=()=>({"&.backInLeft":{animationFillMode:"both",animationName:ra},"&.backInRight":{animationFillMode:"both",animationName:da},"&.backInUp":{animationFillMode:"both",animationName:ca},"&.backInDown":{animationFillMode:"both",animationName:sa}}),ya=()=>({"&.backOutLeft":{animationFillMode:"both",animationName:ua},"&.backOutRight":{animationFillMode:"both",animationName:ma},"&.backOutUp":{animationFillMode:"both",animationName:fa},"&.backOutDown":{animationFillMode:"both",animationName:ha}}),ba=new i.Keyframe("bounceIn",{"from,20%,40%,60%,80%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"20%":{transform:"scale3d(1.1, 1.1, 1.1)"},"40%":{transform:"scale3d(0.9, 0.9, 0.9)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},"80%":{transform:"scale3d(0.97, 0.97, 0.97)"},to:{opacity:1,transform:"scale3d(1, 1, 1)"}}),pa=new i.Keyframe("bounceInLeft",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(-3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),xa=new i.Keyframe("bounceInRight",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(3000px, 0, 0) scaleX(3)"},"60%":{opacity:1,transform:"translate3d(-25px, 0, 0) scaleX(1)"},"75%":{transform:"translate3d(10px, 0, 0) scaleX(0.98)"},"90%":{transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},to:{transform:"translate3d(0, 0, 0)"}}),Ca=new i.Keyframe("bounceInDown",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},"0%":{opacity:0,transform:"translate3d(0, -3000px, 0) scaleY(3)"},"60%":{opacity:1,transform:"translate3d(0, 25px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, -10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, 5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),Sa=new i.Keyframe("bounceInUp",{"from,60%,75%,90%,to":{animationTimingFunction:"cubic-bezier(0.215, 0.61, 0.355, 1)"},from:{opacity:0,transform:"translate3d(0, 3000px, 0) scaleY(5)"},"60%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},"75%":{transform:"translate3d(0, 10px, 0) scaleY(0.95)"},"90%":{transform:"translate3d(0, -5px, 0) scaleY(0.985)"},to:{transform:"translate3d(0, 0, 0)"}}),wa=new i.Keyframe("bounceOut",{"20%":{transform:"scale3d(0.9, 0.9, 0.9)"},"50%,55%":{transform:"scale3d(1.1, 1.1, 1.1)"},"60%":{transform:"scale3d(1.03, 1.03, 1.03)"},to:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"}}),Na=new i.Keyframe("bounceOutLeft",{"20%":{opacity:1,transform:"translate3d(20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(-2000px, 0, 0) scaleX(2)"}}),Ia=new i.Keyframe("bounceOutRight",{"20%":{opacity:1,transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},to:{opacity:0,transform:"translate3d(2000px, 0, 0) scaleX(2)"}}),Ma=new i.Keyframe("bounceOutDown",{"20%":{transform:"translate3d(0, 10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, -20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, 2000px, 0) scaleY(3)"}}),ka=new i.Keyframe("bounceOutUp",{"20%":{transform:"translate3d(0, -10px, 0) scaleY(0.985)"},"40%,45%":{opacity:1,transform:"translate3d(0, 20px, 0) scaleY(0.9)"},to:{opacity:0,transform:"translate3d(0, -2000px, 0) scaleY(3)"}}),Oa=()=>({"&.bounceIn":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:ba},"&.bounceInLeft":{animationFillMode:"both",animationName:pa},"&.bounceInRight":{animationFillMode:"both",animationName:xa},"&.bounceInDown":{animationFillMode:"both",animationName:Ca},"&.bounceInUp":{animationFillMode:"both",animationName:Sa}}),Ra=()=>({"&.bounceOut":{animationFillMode:"both",animationDuration:`${.3*.75}s !important`,animationName:wa},"&.bounceOutLeft":{animationFillMode:"both",animationName:Na},"&.bounceOutRight":{animationFillMode:"both",animationName:Ia},"&.bounceOutDown":{animationFillMode:"both",animationName:Ma},"&.bounceOutUp":{animationFillMode:"both",animationName:ka}}),Ba=new i.Keyframe("fadeIn",{from:{opacity:0},to:{opacity:1}}),Va=new i.Keyframe("fadeInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Fa=new i.Keyframe("fadeInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ta=new i.Keyframe("fadeInDown",{from:{opacity:0,transform:"translate3d(0, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),$a=new i.Keyframe("fadeInUp",{from:{opacity:0,transform:"translate3d(0, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),La=new i.Keyframe("fadeInDownBig",{from:{opacity:0,transform:"translate3d(0, -2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ka=new i.Keyframe("fadeInUpBig",{from:{opacity:0,transform:"translate3d(0, 2000px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Da=new i.Keyframe("fadeInLeftBig",{from:{opacity:0,transform:"translate3d(-2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),za=new i.Keyframe("fadeInRightBig",{from:{opacity:0,transform:"translate3d(2000px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Ha=new i.Keyframe("fadeInTopLeft",{from:{opacity:0,transform:"translate3d(-100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),ja=new i.Keyframe("fadeInBottomRight",{from:{opacity:0,transform:"translate3d(100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Wa=new i.Keyframe("fadeInTopRight",{from:{opacity:0,transform:"translate3d(100%, -100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Aa=new i.Keyframe("fadeInBottomLeft",{from:{opacity:0,transform:"translate3d(-100%, 100%, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),va=new i.Keyframe("fadeOut",{from:{opacity:1},to:{opacity:0}}),Ua=new i.Keyframe("fadeOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0)"}}),Xa=new i.Keyframe("fadeOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0)"}}),Ea=new i.Keyframe("fadeOutDown",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 100%, 0)"}}),Ya=new i.Keyframe("fadeOutUp",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -100%, 0)"}}),_a=new i.Keyframe("fadeOutDownBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, 2000px, 0)"}}),Ga=new i.Keyframe("fadeOutUpBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(0, -2000px, 0)"}}),qa=new i.Keyframe("fadeOutLeftBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-2000px, 0, 0)"}}),Za=new i.Keyframe("fadeOutRightBig",{from:{opacity:1},to:{opacity:0,transform:"translate3d(2000px, 0, 0)"}}),Ja=new i.Keyframe("fadeOutTopLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, -100%, 0)"}}),Qa=new i.Keyframe("fadeOutBottomRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, 100%, 0)"}}),Pa=new i.Keyframe("fadeOutTopRight",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(100%, -100%, 0)"}}),en=new i.Keyframe("fadeOutBottomLeft",{from:{opacity:1,transform:"translate3d(0, 0, 0)"},to:{opacity:0,transform:"translate3d(-100%, 100%, 0)"}}),tn=()=>({"&.fadeIn":{animationFillMode:"both",animationName:Ba},"&.fadeInLeft":{animationFillMode:"both",animationName:Va},"&.fadeInRight":{animationFillMode:"both",animationName:Fa},"&.fadeInDown":{animationFillMode:"both",animationName:Ta},"&.fadeInUp":{animationFillMode:"both",animationName:$a},"&.fadeInLeftBig":{animationFillMode:"both",animationName:Da},"&.fadeInRightBig":{animationFillMode:"both",animationName:za},"&.fadeInUpBig":{animationFillMode:"both",animationName:Ka},"&.fadeInDownBig":{animationFillMode:"both",animationName:La},"&.fadeInTopLeft":{animationFillMode:"both",animationName:Ha},"&.fadeInBottomRight":{animationFillMode:"both",animationName:ja},"&.fadeInTopRight":{animationFillMode:"both",animationName:Wa},"&.fadeInBottomLeft":{animationFillMode:"both",animationName:Aa}}),an=()=>({"&.fadeOut":{animationFillMode:"both",animationName:va},"&.fadeOutLeft":{animationFillMode:"both",animationName:Ua},"&.fadeOutRight":{animationFillMode:"both",animationName:Xa},"&.fadeOutDown":{animationFillMode:"both",animationName:Ea},"&.fadeOutUp":{animationFillMode:"both",animationName:Ya},"&.fadeOutDownBig":{animationFillMode:"both",animationName:_a},"&.fadeOutUpBig":{animationFillMode:"both",animationName:Ga},"&.fadeOutLeftBig":{animationFillMode:"both",animationName:qa},"&.fadeOutRightBig":{animationFillMode:"both",animationName:Za},"&.fadeOutTopLeft":{animationFillMode:"both",animationName:Ja},"&.fadeOutBottomRight":{animationFillMode:"both",animationName:Qa},"&.fadeOutTopRight":{animationFillMode:"both",animationName:Pa},"&.fadeOutBottomLeft":{animationFillMode:"both",animationName:en}}),nn=new i.Keyframe("flipInX",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},to:{transform:"perspective(400px)"}}),on=new i.Keyframe("flipInY",{from:{opacity:0,animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"},"40%":{animationTimingFunction:"ease-in",transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)"},"60%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)"},"80%":{transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},to:{transform:"perspective(400px)"}}),ln=new i.Keyframe("flipOutX",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"}}),rn=new i.Keyframe("flipOutY",{from:{transform:"perspective(400px)"},"40%":{opacity:1,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)"},to:{opacity:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"}}),dn=()=>({"&.flipInX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:nn},"&.flipInY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationName:on}}),cn=()=>({"&.flipOutX":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:ln},"&.flipOutY":{animationFillMode:"both",backfaceVisibility:"visible !important",animationDuration:`${.3*.75}s !important`,animationName:rn}}),sn=new i.Keyframe("lightSpeedInLeft",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)"},"60%":{opacity:1,transform:"skewX(-20deg)"},"80%":{transform:"skewX(5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),un=new i.Keyframe("lightSpeedInRight",{from:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)"},"60%":{opacity:1,transform:"skewX(20deg)"},"80%":{transform:"skewX(-5deg)"},to:{transform:"translate3d(0, 0, 0)"}}),mn=new i.Keyframe("lightSpeedOutLeft",{from:{opacity:1},to:{opacity:0,transform:"translate3d(-100%, 0, 0) skewX(-30deg)"}}),fn=new i.Keyframe("lightSpeedOutRight",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) skewX(30deg)"}}),hn=()=>({"&.lightSpeedInLeft":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:sn},"&.lightSpeedInRight":{animationFillMode:"both",animationTimingFunction:"ease-out",animationName:un}}),gn=()=>({"&.lightSpeedOutLeft":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:mn},"&.lightSpeedOutRight":{animationFillMode:"both",animationTimingFunction:"ease-in",animationName:fn}}),yn=new i.Keyframe("rotateIn",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -200deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),bn=new i.Keyframe("rotateInDownLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),pn=new i.Keyframe("rotateInDownRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),xn=new i.Keyframe("rotateInUpLeft",{from:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Cn=new i.Keyframe("rotateInUpRight",{from:{opacity:0,transform:"rotate3d(0, 0, 1, -90deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Sn=new i.Keyframe("rotateOut",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 200deg)"}}),wn=new i.Keyframe("rotateOutDownLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 45deg)"}}),Nn=new i.Keyframe("rotateOutDownRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),In=new i.Keyframe("rotateOutUpLeft",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, -45deg)"}}),Mn=new i.Keyframe("rotateOutUpRight",{from:{opacity:1},to:{opacity:0,transform:"rotate3d(0, 0, 1, 90deg)"}}),kn=()=>({"&.rotateIn":{animationFillMode:"both",transformOrigin:"center",animationName:yn},"&.rotateInDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:bn},"&.rotateInDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:pn},"&.rotateInUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:xn},"&.rotateInUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Cn}}),On=()=>({"&.rotateOut":{animationFillMode:"both",transformOrigin:"center",animationName:Sn},"&.rotateOutDownLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:wn},"&.rotateOutDownRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Nn},"&.rotateOutUpLeft":{animationFillMode:"both",transformOrigin:"left bottom",animationName:In},"&.rotateOutUpRight":{animationFillMode:"both",transformOrigin:"right bottom",animationName:Mn}}),Rn=new i.Keyframe("rollIn",{from:{opacity:0,transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),Bn=new i.Keyframe("rollOut",{from:{opacity:1},to:{opacity:0,transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}}),Vn=()=>({"&.rollIn":{animationFillMode:"both",animationName:Rn}}),Fn=()=>({"&.rollOut":{animationFillMode:"both",animationName:Bn}}),Tn=new i.Keyframe("zoomIn",{from:{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},"50%":{opacity:1}}),$n=new i.Keyframe("zoomInDown",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Ln=new i.Keyframe("zoomInLeft",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Kn=new i.Keyframe("zoomInRight",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),Dn=new i.Keyframe("zoomInUp",{from:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},"60%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),zn=new i.Keyframe("zoomOut",{from:{opacity:1},"50%":{opacity:0,transform:"scale3d(0.3, 0.3, 0.3)"},to:{opacity:0}}),Hn=new i.Keyframe("zoomOutDown",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),jn=new i.Keyframe("zoomOutLeft",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(-2000px, 0, 0)"}}),Wn=new i.Keyframe("zoomOutRight",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},to:{opacity:0,transform:"scale(0.1) translate3d(2000px, 0, 0)"}}),An=new i.Keyframe("zoomOutUp",{"40%":{opacity:1,transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",animationTimingFunction:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},to:{opacity:0,transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",animationTimingFunction:"cubic-bezier(0.175, 0.885, 0.32, 1)"}}),vn=()=>({"&.zoomIn":{animationFillMode:"both",animationName:Tn},"&.zoomInDown":{animationFillMode:"both",animationName:$n},"&.zoomInLeft":{animationFillMode:"both",animationName:Ln},"&.zoomInRight":{animationFillMode:"both",animationName:Kn},"&.zoomInUp":{animationFillMode:"both",animationName:Dn}}),Un=()=>({"&.zoomOut":{animationFillMode:"both",animationName:zn},"&.zoomOutDown":{animationFillMode:"both",transformOrigin:"center bottom",animationName:Hn},"&.zoomOutLeft":{animationFillMode:"both",transformOrigin:"left center",animationName:jn},"&.zoomOutRight":{animationFillMode:"both",transformOrigin:"right center",animationName:Wn},"&.zoomOutUp":{animationFillMode:"both",transformOrigin:"center bottom",animationName:An}}),Xn=new i.Keyframe("slideInDown",{from:{transform:"translate3d(0, -100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),En=new i.Keyframe("slideInLeft",{from:{transform:"translate3d(-100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Yn=new i.Keyframe("slideInRight",{from:{transform:"translate3d(100%, 0, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),_n=new i.Keyframe("slideInUp",{from:{transform:"translate3d(0, 100%, 0)",visibility:"visible"},to:{transform:"translate3d(0, 0, 0)"}}),Gn=new i.Keyframe("slideOutDown",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 100%, 0)",visibility:"hidden"}}),qn=new i.Keyframe("slideOutLeft",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}}),Zn=new i.Keyframe("slideOutRight",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(100%, 0, 0)",visibility:"hidden"}}),Jn=new i.Keyframe("slideOutUp",{from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -100%, 0)",visibility:"hidden"}}),Qn=()=>({"&.slideInDown":{animationFillMode:"both",animationName:Xn},"&.slideInLeft":{animationFillMode:"both",animationName:En},"&.slideInRight":{animationFillMode:"both",animationName:Yn},"&.slideInUp":{animationFillMode:"both",animationName:_n}}),Pn=()=>({"&.slideOutDown":{animationFillMode:"both",animationName:Gn},"&.slideOutLeft":{animationFillMode:"both",animationName:qn},"&.slideOutRight":{animationFillMode:"both",animationName:Zn},"&.slideOutUp":{animationFillMode:"both",animationName:Jn}}),eo=e=>({[e.componentCls]:{"&-enter":{background:"transparent",animationDuration:".3s !important",...ga(),...Oa(),...tn(),...dn(),...hn(),...kn(),...Vn(),...vn(),...Qn()},"&-leave":{display:"none",background:"transparent",animationDuration:".3s !important",...ya(),...Ra(),...an(),...cn(),...gn(),...On(),...Fn(),...Un(),...Pn()}}});function to(e){return i.useStyle("LayoutPageTranstion",a=>{const n=i.mergeToken(a);return[eo(n)]},e)}const ao=t.defineComponent({name:"PageTranstion",props:{disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!0},name:{type:String,default:"bounce"},direction:String},setup(e,{slots:a}){const n=K.getPrefixCls({suffixCls:"page-transtion",isPor:!0}),{wrapSSR:l,hashId:o}=to(n),c=t.computed(()=>[m(!1),`${n}-enter`,o.value].join(" ")),h=t.computed(()=>[m(!0),`${n}-leave`,o.value].join(" ")),m=b=>{const O=ge.preset.find(r=>e.name==r.name);if(O==null)return"";let g="";e.direction==null?g=O.directions[0]:g=O.directions.find(r=>r==e.direction)||"",g=g==null||g==="default"?"":g,g!=""&&(g=b&&e.reverse?w(g,O.directions):g,g=g[0].toUpperCase()+g.substring(1));const $=b?"Out":"In";return O.name+$+g},w=(b,O)=>{if(b.length==0||b=="x"||b=="y")return b;let g=O.indexOf(b);return g=g%2==1?g-1:g+1,O[g]};return()=>{var b;return e.disabled?(b=a.default)==null?void 0:b.call(a):l(t.createVNode(t.Transition,{enterActiveClass:c.value,leaveActiveClass:h.value},{default:()=>{var O;return[(O=a.default)==null?void 0:O.call(a)]}}))}}});V.BaseMenu=be,V.DefaultHeader=Ge,V.GProLayout=_t,V.GlobalFooter=se,V.PageContainer=Bt,V.PageLoading=Ie,V.PageTranstion=ao,V.SettingDrawer=ia,V.SiderMenuWrapper=de,V.WrapContent=ue,V.baseMenuProps=oe,V.clearMenuItem=Oe,V.createContext=Te,V.createRouteContext=Le,V.flatMap=Re,V.getMatchedList=ht,V.getMenuData=Gt,V.getMenuFirstChildren=Be,V.getMenuFirstLastChildPath=Ve,V.handleThemeConfig=Fe,V.hanlePathKey=v,V.provideProLayoutContext=Ke,V.useContext=$e,V.useProLayoutContext=Q,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
package/dist/props.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export declare const basicLayoutProps: {
|
|
|
65
65
|
default: () => undefined;
|
|
66
66
|
};
|
|
67
67
|
pageCardProps: PropType<{
|
|
68
|
-
loading
|
|
68
|
+
loading?: boolean | undefined;
|
|
69
69
|
bodyStyle: CSSProperties;
|
|
70
70
|
}>;
|
|
71
71
|
pageContentStyle: import("vue-types").VueTypeValidableDef<CSSProperties>;
|