@gx-design-vue/pro-layout 0.1.0-beta.20 → 0.1.0-beta.21

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, createVNode as o, mergeProps as X, provide as _e, readonly as Xt, inject as gt, resolveComponent as yt, computed as w, isVNode as ne, Fragment as q, toRefs as Be, unref as U, createTextVNode as Q, ref as ce, reactive as Ee, watch as le, withDirectives as Gt, vShow as Yt, getCurrentInstance as qt, onMounted as bt, onUpdated as Zt, onUnmounted as Jt, watchEffect as Qt, onBeforeUnmount as en, Transition as tn } from "vue";
1
+ import { defineComponent as E, createVNode as o, mergeProps as X, provide as _e, readonly as Xt, inject as gt, resolveComponent as yt, computed as x, isVNode as ne, Fragment as q, toRefs as Be, unref as U, createTextVNode as Q, ref as ce, reactive as Ee, watch as le, withDirectives as Gt, vShow as Yt, getCurrentInstance as qt, onMounted as bt, onUpdated as Zt, onUnmounted as Jt, watchEffect as Qt, onBeforeUnmount as en, Transition as tn } from "vue";
2
2
  import { Spin as Ie, Menu as ee, ConfigProvider as Ve, Layout as me, Drawer as we, Breadcrumb as nn, Card as an, LayoutFooter as on, Tabs as Ae, Dropdown as nt, Tooltip as ke, List as te, Switch as pt, TabPane as ln, Select as ve, message as rn, Divider as Fe, Alert as sn, Button as un } from "ant-design-vue";
3
3
  import { useRouter as je, RouterLink as dn } from "vue-router";
4
4
  import { createFromIconfontCN as cn, MenuUnfoldOutlined as mn, MenuFoldOutlined as fn, GithubOutlined as hn, EllipsisOutlined as gn, ReloadOutlined as yn, CloseOutlined as vt, CheckOutlined as xt, SettingOutlined as bn, NotificationOutlined as pn, CopyOutlined as vn } from "@ant-design/icons-vue";
@@ -252,9 +252,9 @@ function Ln(e) {
252
252
  return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
253
253
  }
254
254
  function Ot(e, t, n, a) {
255
- var l, d, m, y, p, x, r, T, S, R, s, I, g, c, f, v, P, C, O, L, B, N, H, M, F, h, b, k, $, D, j, W, V, _;
255
+ var l, d, m, y, p, C, r, T, S, R, s, I, g, c, f, v, P, w, O, L, B, N, H, M, F, h, b, k, $, D, j, W, V, _;
256
256
  const i = { ...e };
257
- return n === "light" ? (i.colorItemBg = (d = (l = t.layout) == null ? void 0 : l[a]) == null ? void 0 : d.colorBgMenu, i.colorSubItemBg = (y = (m = t.layout) == null ? void 0 : m[a]) == null ? void 0 : y.colorSubItemBg, i.colorItemBgSelected = (x = (p = t.layout) == null ? void 0 : p[a]) == null ? void 0 : x.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (T = (r = t.layout) == null ? void 0 : r[a]) == null ? void 0 : T.colorBgMenuItemSelected, i.colorItemText = (R = (S = t.layout) == null ? void 0 : S[a]) == null ? void 0 : R.colorTextMenu, i.colorItemTextHover = (I = (s = t.layout) == null ? void 0 : s[a]) == null ? void 0 : I.colorTextMenuHover, i.colorItemTextSelected = (c = (g = t.layout) == null ? void 0 : g[a]) == null ? void 0 : c.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (v = (f = t.layout) == null ? void 0 : f[a]) == null ? void 0 : v.colorTextMenuSelected, a === "sider" && (i.colorItemBgHover = (C = (P = t.layout) == null ? void 0 : P[a]) == null ? void 0 : C.colorBgMenuItemHover)) : n === "dark" && (i.colorItemBg = (L = (O = t.layout) == null ? void 0 : O[a]) == null ? void 0 : L.colorDarkBgMenu, i.colorSubItemBg = (N = (B = t.layout) == null ? void 0 : B[a]) == null ? void 0 : N.colorDarkSubItemBg, i.colorItemBgSelected = (M = (H = t.layout) == null ? void 0 : H[a]) == null ? void 0 : M.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (h = (F = t.layout) == null ? void 0 : F[a]) == null ? void 0 : h.colorDarkBgMenuItemSelected, i.colorItemText = (k = (b = t.layout) == null ? void 0 : b[a]) == null ? void 0 : k.colorDarkTextMenu, i.colorItemTextHover = (D = ($ = t.layout) == null ? void 0 : $[a]) == null ? void 0 : D.colorDarkTextMenuHover, i.colorItemTextSelected = (W = (j = t.layout) == null ? void 0 : j[a]) == null ? void 0 : W.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (_ = (V = t.layout) == null ? void 0 : V[a]) == null ? void 0 : _.colorDarkTextMenuSelected, a === "header" && (i.colorActiveBarHeight = 0)), i;
257
+ return n === "light" ? (i.colorItemBg = (d = (l = t.layout) == null ? void 0 : l[a]) == null ? void 0 : d.colorBgMenu, i.colorSubItemBg = (y = (m = t.layout) == null ? void 0 : m[a]) == null ? void 0 : y.colorSubItemBg, i.colorItemBgSelected = (C = (p = t.layout) == null ? void 0 : p[a]) == null ? void 0 : C.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (T = (r = t.layout) == null ? void 0 : r[a]) == null ? void 0 : T.colorBgMenuItemSelected, i.colorItemText = (R = (S = t.layout) == null ? void 0 : S[a]) == null ? void 0 : R.colorTextMenu, i.colorItemTextHover = (I = (s = t.layout) == null ? void 0 : s[a]) == null ? void 0 : I.colorTextMenuHover, i.colorItemTextSelected = (c = (g = t.layout) == null ? void 0 : g[a]) == null ? void 0 : c.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (v = (f = t.layout) == null ? void 0 : f[a]) == null ? void 0 : v.colorTextMenuSelected, a === "sider" && (i.colorItemBgHover = (w = (P = t.layout) == null ? void 0 : P[a]) == null ? void 0 : w.colorBgMenuItemHover)) : n === "dark" && (i.colorItemBg = (L = (O = t.layout) == null ? void 0 : O[a]) == null ? void 0 : L.colorDarkBgMenu, i.colorSubItemBg = (N = (B = t.layout) == null ? void 0 : B[a]) == null ? void 0 : N.colorDarkSubItemBg, i.colorItemBgSelected = (M = (H = t.layout) == null ? void 0 : H[a]) == null ? void 0 : M.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (h = (F = t.layout) == null ? void 0 : F[a]) == null ? void 0 : h.colorDarkBgMenuItemSelected, i.colorItemText = (k = (b = t.layout) == null ? void 0 : b[a]) == null ? void 0 : k.colorDarkTextMenu, i.colorItemTextHover = (D = ($ = t.layout) == null ? void 0 : $[a]) == null ? void 0 : D.colorDarkTextMenuHover, i.colorItemTextSelected = (W = (j = t.layout) == null ? void 0 : j[a]) == null ? void 0 : W.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (_ = (V = t.layout) == null ? void 0 : V[a]) == null ? void 0 : _.colorDarkTextMenuSelected, a === "header" && (i.colorActiveBarHeight = 0)), i;
258
258
  }
259
259
  const Dn = ["left", "right"], se = ["left", "right", "down", "up"], zn = ["downBig", "upBig", "leftBig", "rightBig"], Nn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Hn = ["downLeft", "upRight", "downRight", "upLeft"], Ge = {
260
260
  preset: [
@@ -409,8 +409,8 @@ const Rt = /* @__PURE__ */ E({
409
409
  var f;
410
410
  const g = s.target || "", c = It(g);
411
411
  ((f = a.currentRoute.value) == null ? void 0 : f.fullPath) !== I.to && c && g && s.targetStatus === 1 && window.open(g);
412
- }, x = yt("router-link"), r = (s = []) => s.map((I) => T(I)).filter((I) => I), T = (s) => {
413
- var c, f, v, P, C, O, L, B, N;
412
+ }, C = yt("router-link"), r = (s = []) => s.map((I) => T(I)).filter((I) => I), T = (s) => {
413
+ var c, f, v, P, w, O, L, B, N;
414
414
  if (Array.isArray(s.children) && s.children.length > 0 && !((c = s == null ? void 0 : s.meta) != null && c.hideInMenu) && !((f = s == null ? void 0 : s.meta) != null && f.hideChildrenInMenu)) {
415
415
  let H;
416
416
  if (e.subMenuItemRender)
@@ -424,7 +424,7 @@ const Rt = /* @__PURE__ */ E({
424
424
  class: "gx-pro-sider-menu-item-title"
425
425
  }, [M])]) : o("span", {
426
426
  class: "gx-pro-sider-menu-item"
427
- }, [M]), h = ((C = s.meta) == null ? void 0 : C.type) === "group", b = h ? ee.ItemGroup : ee.SubMenu;
427
+ }, [M]), h = ((w = s.meta) == null ? void 0 : w.type) === "group", b = h ? ee.ItemGroup : ee.SubMenu;
428
428
  return o(b, {
429
429
  title: F,
430
430
  key: s.path,
@@ -452,14 +452,14 @@ const Rt = /* @__PURE__ */ E({
452
452
  default: () => [I]
453
453
  });
454
454
  }, S = (s) => {
455
- var C, O, L, B, N;
455
+ var w, O, L, B, N;
456
456
  const I = {
457
457
  ...s.meta
458
- }, g = I.targetStatus === 1 && I.target ? "a" : x, c = {
458
+ }, g = I.targetStatus === 1 && I.target ? "a" : C, c = {
459
459
  to: s.linkPath || s.path || ""
460
460
  };
461
461
  c.to === "/live/list/operation/:id" && (c.to = "/live/list/operation/add");
462
- const f = (C = s.meta) == null ? void 0 : C.title, v = (O = s.meta) != null && O.icon ? o(g, X(c, {
462
+ const f = (w = s.meta) == null ? void 0 : w.title, v = (O = s.meta) != null && O.icon ? o(g, X(c, {
463
463
  class: "gx-pro-sider-menu-item",
464
464
  onClick: () => p(I, c)
465
465
  }), {
@@ -478,7 +478,7 @@ const Rt = /* @__PURE__ */ E({
478
478
  iconType: (N = s.meta) == null ? void 0 : N.iconType
479
479
  }, null) || void 0;
480
480
  return [v, P];
481
- }, R = w(() => r(e.menuData));
481
+ }, R = x(() => r(e.menuData));
482
482
  return () => o(ee, X({
483
483
  key: "Menu",
484
484
  inlineIndent: 16,
@@ -517,7 +517,7 @@ const Rt = /* @__PURE__ */ E({
517
517
  }
518
518
  };
519
519
  }, qn = (e) => {
520
- var t, n, a, i, l, d, m, y, p, x, r, T;
520
+ var t, n, a, i, l, d, m, y, p, C, r, T;
521
521
  return {
522
522
  [`${e.proComponentsCls}-basic-layout`]: {
523
523
  [`&${e.proComponentsCls}-basic-layout-wide`]: {
@@ -584,7 +584,7 @@ const Rt = /* @__PURE__ */ E({
584
584
  zIndex: "100",
585
585
  height: "100%",
586
586
  "&-mix": {
587
- height: `calc(100% - ${((x = (p = e.layout) == null ? void 0 : p.header) == null ? void 0 : x.heightLayoutHeader) || A.headerHeight}px)`,
587
+ height: `calc(100% - ${((C = (p = e.layout) == null ? void 0 : p.header) == null ? void 0 : C.heightLayoutHeader) || A.headerHeight}px)`,
588
588
  insetBlockStart: `${((T = (r = e.layout) == null ? void 0 : r.header) == null ? void 0 : T.heightLayoutHeader) || A.headerHeight}px`
589
589
  }
590
590
  }
@@ -634,8 +634,7 @@ const Rt = /* @__PURE__ */ E({
634
634
  marginInlineStart: 12,
635
635
  color: e.colorWhite,
636
636
  animationName: Bt,
637
- animationDuration: ".3s",
638
- animationTimingFunction: "ease",
637
+ animationDuration: ".2s",
639
638
  fontWeight: 600,
640
639
  fontSize: 18,
641
640
  verticalAlign: "middle"
@@ -679,13 +678,13 @@ const Rt = /* @__PURE__ */ E({
679
678
  setup(e) {
680
679
  const {
681
680
  getPrefixCls: t
682
- } = J(), n = w(() => e.layout === "side" || e.layout === "simple"), a = w(() => t({
681
+ } = J(), n = x(() => e.layout === "side" || e.layout === "simple"), a = x(() => t({
683
682
  suffixCls: n.value || e.drawer ? "sider" : "global-header",
684
683
  isPor: !0
685
684
  })), {
686
685
  wrapSSR: i,
687
686
  hashId: l
688
- } = Z("ProLayoutLogo", [Jn]), d = w(() => Qn(e, e.renderKey));
687
+ } = Z("ProLayoutLogo", [Jn]), d = x(() => Qn(e, e.renderKey));
689
688
  return () => i(o("div", {
690
689
  id: "logo",
691
690
  class: {
@@ -724,7 +723,7 @@ const {
724
723
  theme: m,
725
724
  layout: y,
726
725
  isMobile: p,
727
- menuLoading: x,
726
+ menuLoading: C,
728
727
  breakpoint: r,
729
728
  fixSiderbar: T,
730
729
  collapsed: S,
@@ -739,12 +738,12 @@ const {
739
738
  suffixCls: "sider",
740
739
  isPor: !0
741
740
  }), {
742
- wrapSSR: C,
741
+ wrapSSR: w,
743
742
  hashId: O
744
- } = Z("ProLayoutSiderMenu", [Yn, qn, Zn], P), L = w(() => e.layout === "wide"), B = w(() => e.layout === "mix" && !e.isMobile && e.splitMenus), N = w(() => y.value === "side" || y.value === "simple"), H = w(() => (e.layout === "mix" || L.value) && "light" || m.value), M = w(() => e.collapsed ? e.collapsedWidth : e.siderWidth), F = w(() => [O.value, P, p.value ? "shadow" : null, `${P}-${H.value}`, T.value && e.layout !== "wide" ? `${P}-fixed` : null]), h = w(() => {
743
+ } = Z("ProLayoutSiderMenu", [Yn, qn, Zn], P), L = x(() => e.layout === "wide"), B = x(() => e.layout === "mix" && !e.isMobile && e.splitMenus), N = x(() => y.value === "side" || y.value === "simple"), H = x(() => (e.layout === "mix" || L.value) && "light" || m.value), M = x(() => e.collapsed ? e.collapsedWidth : e.siderWidth), F = x(() => [O.value, P, p.value ? "shadow" : null, `${P}-${H.value}`, T.value && e.layout !== "wide" ? `${P}-fixed` : null]), h = x(() => {
745
744
  var $;
746
745
  return typeof v.value == "function" ? ($ = v.value) == null ? void 0 : $.call(v) : v.value;
747
- }), b = w(() => f.value || $t), k = ($) => {
746
+ }), b = x(() => f.value || $t), k = ($) => {
748
747
  var D;
749
748
  if (e.onSelect) {
750
749
  if (U(B)) {
@@ -780,7 +779,7 @@ const {
780
779
  },
781
780
  "onUpdate:selectedKeys": k
782
781
  }), null);
783
- return B.value && U(a.value).length === 0 || i.value.length === 0 ? null : C(o(Ve, {
782
+ return B.value && U(a.value).length === 0 || i.value.length === 0 ? null : w(o(Ve, {
784
783
  theme: {
785
784
  components: {
786
785
  Menu: Ot({
@@ -800,7 +799,7 @@ const {
800
799
  flex: `0 0 ${M.value}px`,
801
800
  maxWidth: `${M.value}px`,
802
801
  minWidth: `${M.value}px`,
803
- transition: "background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"
802
+ transition: "background-color 0.2s, min-width 0.2s, max-width 0.2s"
804
803
  }
805
804
  }, null), o(ta, {
806
805
  collapsible: !0,
@@ -825,10 +824,10 @@ const {
825
824
  }, {
826
825
  default: () => {
827
826
  var V, _;
828
- return [x.value && o("div", {
827
+ return [C.value && o("div", {
829
828
  class: ["gx-pro-sider-loading", O.value]
830
829
  }, [o(Ie, {
831
- spinning: x.value
830
+ spinning: C.value
832
831
  }, null)]), $ || null, D && !e.collapsed && o("div", {
833
832
  class: {
834
833
  [`${O.value}`]: !0,
@@ -967,10 +966,10 @@ const da = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: a }) =>
967
966
  }), {
968
967
  wrapSSR: a,
969
968
  hashId: i
970
- } = Z("BaseApp", [ca], n), l = w(() => ua(ma, t, e)), d = w(() => [i.value, n, e.rootClassName]);
969
+ } = Z("BaseApp", [ca], n), l = x(() => ua(ma, t, e)), d = x(() => [i.value, n, e.rootClassName]);
971
970
  return aa({
972
- emptyText: w(() => l.value.emptyText),
973
- indicator: w(() => l.value.indicator)
971
+ emptyText: x(() => l.value.emptyText),
972
+ indicator: x(() => l.value.indicator)
974
973
  }), () => {
975
974
  var m;
976
975
  return a(o("div", {
@@ -1028,7 +1027,7 @@ const he = {
1028
1027
  }), {
1029
1028
  wrapSSR: i,
1030
1029
  hashId: l
1031
- } = Z("ProPageHeader", [fa], a), d = w(() => {
1030
+ } = Z("ProPageHeader", [fa], a), d = x(() => {
1032
1031
  var m;
1033
1032
  return {
1034
1033
  ...t.value,
@@ -1099,19 +1098,19 @@ const Cl = /* @__PURE__ */ E({
1099
1098
  usePageCard: y
1100
1099
  } = J(), {
1101
1100
  indicator: p
1102
- } = oa(), x = n({
1101
+ } = oa(), C = n({
1103
1102
  suffixCls: "page-container",
1104
1103
  isPor: !0
1105
1104
  }), r = n({
1106
1105
  suffixCls: "grid-content",
1107
1106
  isPor: !0
1108
- }), T = w(() => e.pageCardProps || m.value), S = w(() => e.pageContentStyle || d.value), {
1107
+ }), T = x(() => e.pageCardProps || m.value), S = x(() => e.pageContentStyle || d.value), {
1109
1108
  wrapSSR: R,
1110
1109
  hashId: s
1111
- } = ya(x), I = () => {
1110
+ } = ya(C), I = () => {
1112
1111
  var c;
1113
1112
  return o("div", {
1114
- class: `${x}-children-content ${s.value}`
1113
+ class: `${C}-children-content ${s.value}`
1115
1114
  }, [(In(e.usePageCard) ? e.usePageCard : y.value) ? o(an, X(T.value ? ue(T.value, ["loading", "bodyStyle"]) : {}, {
1116
1115
  style: a.value ? {
1117
1116
  minHeight: "853px"
@@ -1125,7 +1124,7 @@ const Cl = /* @__PURE__ */ E({
1125
1124
  }) : (c = t.default) == null ? void 0 : c.call(t)]);
1126
1125
  }, g = () => {
1127
1126
  let c;
1128
- return o(q, null, [e.waterMark || i.value ? o(Sn, null, ba(c = I()) ? c : {
1127
+ return o(q, null, [e.waterMark && i.value ? o(Sn, null, ba(c = I()) ? c : {
1129
1128
  default: () => [c]
1130
1129
  }) : I()]);
1131
1130
  };
@@ -1138,9 +1137,9 @@ const Cl = /* @__PURE__ */ E({
1138
1137
  default: () => [o("div", {
1139
1138
  class: {
1140
1139
  [`${s.value}`]: !0,
1141
- [`${x}`]: !0
1140
+ [`${C}`]: !0
1142
1141
  }
1143
- }, [!a.value && c !== !1 && (c ? c == null ? void 0 : c() : o(ha, {
1142
+ }, [!a.value && c !== !1 && (c || o(ha, {
1144
1143
  breadcrumb: f,
1145
1144
  content: v
1146
1145
  }, null)), o("div", {
@@ -1505,7 +1504,7 @@ const Oa = Ae.TabPane, Ma = ee.Item, Ra = /* @__PURE__ */ E({
1505
1504
  suffixCls: "multi-tab"
1506
1505
  }), {
1507
1506
  wrapSSR: p,
1508
- hashId: x
1507
+ hashId: C
1509
1508
  } = wa(y), r = ce([]);
1510
1509
  le(r, () => {
1511
1510
  var h;
@@ -1513,11 +1512,11 @@ const Oa = Ae.TabPane, Ma = ee.Item, Ra = /* @__PURE__ */ E({
1513
1512
  }, {
1514
1513
  deep: !0
1515
1514
  });
1516
- const T = w(() => l.currentRoute.value.path), S = w(() => n.value && !t.value), R = w(() => S.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), s = w(() => wt(`${y}-wrap`, {
1517
- [`${x.value}`]: !0,
1515
+ const T = x(() => l.currentRoute.value.path), S = x(() => n.value && !t.value), R = x(() => S.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), s = x(() => wt(`${y}-wrap`, {
1516
+ [`${C.value}`]: !0,
1518
1517
  [`${y}-wrap-fixed`]: e.isFixedMultiTab,
1519
1518
  [`${y}-wrap-loading`]: e.loading
1520
- })), I = w(() => {
1519
+ })), I = x(() => {
1521
1520
  const h = {
1522
1521
  display: e.visible ? void 0 : "none"
1523
1522
  };
@@ -1525,7 +1524,7 @@ const Oa = Ae.TabPane, Ma = ee.Item, Ra = /* @__PURE__ */ E({
1525
1524
  margin: 0,
1526
1525
  width: R.value,
1527
1526
  paddingTop: "6px",
1528
- zIndex: 100,
1527
+ zIndex: 99,
1529
1528
  ...h
1530
1529
  } : h;
1531
1530
  }), g = (h) => h.fullPath === T.value, c = (h) => {
@@ -1564,7 +1563,7 @@ const Oa = Ae.TabPane, Ma = ee.Item, Ra = /* @__PURE__ */ E({
1564
1563
  }, P = async (h) => {
1565
1564
  const b = r.value.find((k) => h === k.fullPath);
1566
1565
  r.value = r.value.filter((k) => k.fullPath !== h), b && g(b) && v();
1567
- }, C = (h) => {
1566
+ }, w = (h) => {
1568
1567
  const b = r.value.find((k) => k.path === h);
1569
1568
  i.activeKey !== (b == null ? void 0 : b.fullPath) && (b != null && b.fullPath) && l.push(b == null ? void 0 : b.fullPath);
1570
1569
  }, O = () => {
@@ -1653,15 +1652,15 @@ const Oa = Ae.TabPane, Ma = ee.Item, Ra = /* @__PURE__ */ E({
1653
1652
  default: () => {
1654
1653
  var k;
1655
1654
  return [o("div", {
1656
- class: [`${y}-title`, x.value]
1655
+ class: [`${y}-title`, C.value]
1657
1656
  }, [(k = b.meta) == null ? void 0 : k.title, i.activeKey === b.fullPath && o(yn, {
1658
- class: [`${y}-reload-btn`, x.value],
1657
+ class: [`${y}-reload-btn`, C.value],
1659
1658
  spin: a.value,
1660
1659
  onClick: ($) => {
1661
1660
  $.stopPropagation(), !a.value && O();
1662
1661
  }
1663
1662
  }, null), r.value.length > 1 && !L(b) && o(vt, {
1664
- class: [`${y}-close-btn`, x.value],
1663
+ class: [`${y}-close-btn`, C.value],
1665
1664
  onClick: ($) => {
1666
1665
  $.stopPropagation(), !a.value && P((b == null ? void 0 : b.fullPath) || "");
1667
1666
  }
@@ -1670,14 +1669,14 @@ const Oa = Ae.TabPane, Ma = ee.Item, Ra = /* @__PURE__ */ E({
1670
1669
  });
1671
1670
  };
1672
1671
  return () => p(o(q, null, [!!e.isFixedMultiTab && Gt(o("div", {
1673
- class: [`${y}-fixed`, x.value]
1672
+ class: [`${y}-fixed`, C.value]
1674
1673
  }, null), [[Yt, e.visible]]), o(Ae, {
1675
1674
  hideAdd: !0,
1676
1675
  type: "editable-card",
1677
1676
  style: I.value,
1678
1677
  class: s.value,
1679
1678
  activeKey: i.activeKey,
1680
- onTabClick: C
1679
+ onTabClick: w
1681
1680
  }, {
1682
1681
  default: () => [r.value.map((h) => o(Oa, {
1683
1682
  key: h.fullPath,
@@ -1693,7 +1692,7 @@ const Oa = Ae.TabPane, Ma = ee.Item, Ra = /* @__PURE__ */ E({
1693
1692
  }, null)
1694
1693
  }, {
1695
1694
  default: () => [o(gn, {
1696
- class: [`${y}-dropdown-menu-btn`, x.value],
1695
+ class: [`${y}-dropdown-menu-btn`, C.value],
1697
1696
  rotate: 90
1698
1697
  }, null)]
1699
1698
  })
@@ -1714,7 +1713,7 @@ const Oa = Ae.TabPane, Ma = ee.Item, Ra = /* @__PURE__ */ E({
1714
1713
  collapsed: m,
1715
1714
  siderWidth: y,
1716
1715
  isShowTabsBar: p,
1717
- isFixedMultiTab: x,
1716
+ isFixedMultiTab: C,
1718
1717
  onReloadPage: r,
1719
1718
  onChangeTabs: T
1720
1719
  } = e;
@@ -1727,7 +1726,7 @@ const Oa = Ae.TabPane, Ma = ee.Item, Ra = /* @__PURE__ */ E({
1727
1726
  visible: U(S).length > 0 && p,
1728
1727
  isMobile: l,
1729
1728
  loading: d,
1730
- isFixedMultiTab: x,
1729
+ isFixedMultiTab: C,
1731
1730
  siderWidth: y,
1732
1731
  collapsed: m,
1733
1732
  onReloadPage: r,
@@ -1754,10 +1753,10 @@ const ka = (e) => {
1754
1753
  return {
1755
1754
  [`${e.proComponentsCls}-basic-layout`]: {
1756
1755
  [`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]: {
1757
- background: ((n = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : n.colorBgMenu) || e.colorBgElevated
1756
+ backgroundColor: ((n = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : n.colorBgMenu) || e.colorBgElevated
1758
1757
  },
1759
1758
  [`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]: {
1760
- background: (i = (a = e.layout) == null ? void 0 : a.header) == null ? void 0 : i.colorDarkBgMenu,
1759
+ backgroundColor: (i = (a = e.layout) == null ? void 0 : a.header) == null ? void 0 : i.colorDarkBgMenu,
1761
1760
  [`${e.proComponentsCls}-global-header-collapsed-button`]: {
1762
1761
  color: "#fff"
1763
1762
  }
@@ -1775,6 +1774,7 @@ const ka = (e) => {
1775
1774
  width: "100%",
1776
1775
  zIndex: 9,
1777
1776
  top: 0,
1777
+ transition: "width .2s",
1778
1778
  "&-action": {
1779
1779
  transition: "width .3s cubic-bezier(.645,.045,.355,1)"
1780
1780
  }
@@ -1968,8 +1968,8 @@ function _a(e) {
1968
1968
  return Ht;
1969
1969
  var a = re(e).getComputedStyle(e), i = Na(a), l = i.left + i.right, d = i.top + i.bottom, m = Re(a.width), y = Re(a.height);
1970
1970
  if (a.boxSizing === "border-box" && (Math.round(m + l) !== t && (m -= st(a, "left", "right") + l), Math.round(y + d) !== n && (y -= st(a, "top", "bottom") + d)), !Va(e)) {
1971
- var p = Math.round(m + l) - t, x = Math.round(y + d) - n;
1972
- Math.abs(p) !== 1 && (m -= p), Math.abs(x) !== 1 && (y -= x);
1971
+ var p = Math.round(m + l) - t, C = Math.round(y + d) - n;
1972
+ Math.abs(p) !== 1 && (m -= p), Math.abs(C) !== 1 && (y -= C);
1973
1973
  }
1974
1974
  return Te(i.left, i.top, m, y);
1975
1975
  }
@@ -2127,10 +2127,10 @@ const Ga = (e) => {
2127
2127
  let i = null, l = null;
2128
2128
  const d = () => {
2129
2129
  l && (l.disconnect(), l = null);
2130
- }, m = (x) => {
2130
+ }, m = (C) => {
2131
2131
  const {
2132
2132
  onResize: r
2133
- } = e, T = x[0].target, {
2133
+ } = e, T = C[0].target, {
2134
2134
  width: S,
2135
2135
  height: R
2136
2136
  } = T.getBoundingClientRect(), {
@@ -2153,9 +2153,9 @@ const Ga = (e) => {
2153
2153
  }
2154
2154
  }, y = qt(), p = () => {
2155
2155
  const {
2156
- disabled: x
2156
+ disabled: C
2157
2157
  } = e;
2158
- if (x) {
2158
+ if (C) {
2159
2159
  d();
2160
2160
  return;
2161
2161
  }
@@ -2173,8 +2173,8 @@ const Ga = (e) => {
2173
2173
  }, {
2174
2174
  flush: "post"
2175
2175
  }), () => {
2176
- var x;
2177
- return (x = n.default) === null || x === void 0 ? void 0 : x.call(n)[0];
2176
+ var C;
2177
+ return (C = n.default) === null || C === void 0 ? void 0 : C.call(n)[0];
2178
2178
  };
2179
2179
  }
2180
2180
  }), qa = (e) => ({
@@ -2306,9 +2306,9 @@ const Ga = (e) => {
2306
2306
  suffixCls: "global-header",
2307
2307
  isPor: !0
2308
2308
  }), {
2309
- wrapSSR: x,
2309
+ wrapSSR: C,
2310
2310
  hashId: r
2311
- } = Z("ProGlobalHeader", [qa], p), T = w(() => ({
2311
+ } = Z("ProGlobalHeader", [qa], p), T = x(() => ({
2312
2312
  [`${r.value}`]: !0,
2313
2313
  [`${p}`]: !0,
2314
2314
  [`${p}-${e.layout}`]: !0
@@ -2320,7 +2320,7 @@ const Ga = (e) => {
2320
2320
  }
2321
2321
  }, R = () => {
2322
2322
  n("collapse", !e.collapsed);
2323
- }, s = w(() => e.collapsedButtonRender || $t), I = () => {
2323
+ }, s = x(() => e.collapsedButtonRender || $t), I = () => {
2324
2324
  var g;
2325
2325
  return o(q, null, [e.layout === "mix" && !e.isMobile && e.splitMenus ? o("div", {
2326
2326
  style: {
@@ -2380,7 +2380,7 @@ const Ga = (e) => {
2380
2380
  },
2381
2381
  class: [`${p}-logo`, e.isMobile ? "mobile" : "", r.value]
2382
2382
  }, [o("a", null, [kt(e.logo)])]);
2383
- return x(o("div", {
2383
+ return C(o("div", {
2384
2384
  class: T.value
2385
2385
  }, [e.isMobile ? o(q, null, [Za(e.menuHeaderRender, g), e.isMobile && U(s) && o("span", {
2386
2386
  class: `${p}-collapsed-button ${r.value}`,
@@ -2419,7 +2419,7 @@ const {
2419
2419
  } = Be(e), {
2420
2420
  getPrefixCls: y,
2421
2421
  menuData: p
2422
- } = J(), x = y({
2422
+ } = J(), C = y({
2423
2423
  suffixCls: "header",
2424
2424
  isPor: !0
2425
2425
  }), r = y({
@@ -2428,12 +2428,12 @@ const {
2428
2428
  }), {
2429
2429
  wrapSSR: T,
2430
2430
  hashId: S
2431
- } = Z("ProLayoutHeader", [ka], x), R = w(() => l.value === "wide"), s = w(() => a.value), I = w(() => l.value === "mix" || R.value), g = w(() => l.value === "side" || l.value === "simple"), c = w(() => g.value && "light" || t.value), f = w(() => ({
2431
+ } = Z("ProLayoutHeader", [ka], C), R = x(() => l.value === "wide"), s = x(() => a.value), I = x(() => l.value === "mix" || R.value), g = x(() => l.value === "side" || l.value === "simple"), c = x(() => g.value && "light" || t.value), f = x(() => ({
2432
2432
  [`${S.value}`]: !0,
2433
- [`${x}-${c.value}`]: !0,
2434
- [`${x}`]: !0,
2433
+ [`${C}-${c.value}`]: !0,
2434
+ [`${C}`]: !0,
2435
2435
  [`${r}`]: s.value
2436
- })), v = w(() => s.value && !n.value), P = w(() => m.value ? p.value && En(p.value) || [] : []), C = w(() => g.value && v.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), O = w(() => s.value ? 0 : void 0), L = () => {
2436
+ })), v = x(() => s.value && !n.value), P = x(() => m.value ? p.value && En(p.value) || [] : []), w = x(() => g.value && v.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), O = x(() => s.value ? 0 : void 0), L = () => {
2437
2437
  const B = o(Qa, X(e, {
2438
2438
  theme: c.value,
2439
2439
  mode: "horizontal",
@@ -2459,7 +2459,7 @@ const {
2459
2459
  style: {
2460
2460
  height: `${i.value}px`,
2461
2461
  lineHeight: `${i.value}px`,
2462
- width: C.value,
2462
+ width: w.value,
2463
2463
  zIndex: g.value ? 100 : 101,
2464
2464
  right: O.value
2465
2465
  }
@@ -2490,20 +2490,20 @@ const {
2490
2490
  hashId: l
2491
2491
  } = Z("ProLayout", [va, xa], a), d = at(), {
2492
2492
  token: m
2493
- } = $e(), y = w(() => {
2493
+ } = $e(), y = x(() => {
2494
2494
  var M;
2495
2495
  return (M = m.value) == null ? void 0 : M.colorPrimary;
2496
2496
  });
2497
2497
  Qt(() => {
2498
2498
  y.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", y.value);
2499
2499
  });
2500
- const p = ce(document.body.getBoundingClientRect().width), x = w(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), r = w(() => e.layout === "wide"), T = w(() => x.value), S = w(() => e.collapsed ? e.collapsedWidth : e.siderWidth), R = w(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light");
2500
+ const p = ce(document.body.getBoundingClientRect().width), C = x(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), r = x(() => e.layout === "wide"), T = x(() => C.value), S = x(() => e.collapsed ? e.collapsedWidth : e.siderWidth), R = x(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light");
2501
2501
  bt(() => {
2502
2502
  window.addEventListener("resize", g), g();
2503
2503
  }), en(() => {
2504
2504
  window.removeEventListener("resize", g);
2505
2505
  });
2506
- const s = w(() => (d.value === "sm" || d.value === "xs") && !e.disableMobile && !r.value), I = Ee({
2506
+ const s = x(() => (d.value === "sm" || d.value === "xs") && !e.disableMobile && !r.value), I = Ee({
2507
2507
  position: "relative"
2508
2508
  });
2509
2509
  (e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (I.minHeight = 0);
@@ -2512,13 +2512,13 @@ const {
2512
2512
  p.value !== M && (d.value = at().value, p.value = M);
2513
2513
  }, c = (M, F) => M.headerRender === !1 || M.pure ? null : o(Ne, X(M, {
2514
2514
  matchMenuKeys: F || []
2515
- }), null), f = w(() => ({
2515
+ }), null), f = x(() => ({
2516
2516
  ...e.breadcrumb,
2517
2517
  itemRender: K(n, e, "breadcrumbRender")
2518
- })), v = w(() => T.value && e.selectedKeys ? Vn(e.menuData, e.selectedKeys[0]) : []), P = (M) => {
2518
+ })), v = x(() => T.value && e.selectedKeys ? Vn(e.menuData, e.selectedKeys[0]) : []), P = (M) => {
2519
2519
  var F;
2520
2520
  (F = e.onCollapse) == null || F.call(e, M);
2521
- }, C = (M) => {
2521
+ }, w = (M) => {
2522
2522
  var F;
2523
2523
  (F = e.onOpenKeys) == null || F.call(e, M);
2524
2524
  }, O = (M) => {
@@ -2542,21 +2542,22 @@ const {
2542
2542
  siderWidth: S,
2543
2543
  breadcrumb: f,
2544
2544
  flatMenuData: v,
2545
- hasSide: x,
2546
- flatMenu: T
2545
+ hasSide: C,
2546
+ flatMenu: T,
2547
+ pageHeaderRender: x(() => K(n, e, "pageHeaderRender"))
2547
2548
  }), () => {
2548
2549
  var et;
2549
2550
  const M = K(n, e, "collapsedButtonRender"), F = K(n, e, "headerContentRender"), h = K(n, e, "rightContentRender"), b = K(n, e, "headerRender"), k = K(n, e, "footerRender"), $ = K(n, e, "links"), D = K(n, e, "copyrightRender"), j = K(n, e, "extraRightDropdownRender"), W = K(n, e, "menuHeaderRender"), V = K(n, e, "menuExtraRender"), _ = K(n, e, "menuContentRender"), Y = K(n, e, "menuFooterRender"), ie = K(n, e, "menuItemRender"), ge = K(n, e, "subMenuItemRender"), ye = {
2550
2551
  menuItemRender: ie,
2551
2552
  subMenuItemRender: ge
2552
- }, be = w(() => c({
2553
+ }, be = x(() => c({
2553
2554
  ...e,
2554
2555
  ...ye,
2555
- hasSiderMenu: x.value,
2556
+ hasSiderMenu: C.value,
2556
2557
  menuData: e.menuData,
2557
2558
  isMobile: U(s),
2558
2559
  onCollapse: P,
2559
- onOpenKeys: C,
2560
+ onOpenKeys: w,
2560
2561
  onSelect: O,
2561
2562
  onMenuHeaderClick: L,
2562
2563
  rightContentRender: h,
@@ -2565,17 +2566,17 @@ const {
2565
2566
  headerContentRender: F,
2566
2567
  headerRender: b,
2567
2568
  theme: R.value
2568
- }, e.matchMenuKeys)), pe = w(() => ({
2569
+ }, e.matchMenuKeys)), pe = x(() => ({
2569
2570
  [`${l.value}`]: !0,
2570
2571
  [`${a}`]: !0,
2571
2572
  [`${a}-${e.layout}`]: !0
2572
- })), Kt = w(() => r.value ? {
2573
+ })), Kt = x(() => r.value ? {
2573
2574
  minWidth: `${e.wideWidth}px`
2574
- } : void 0), Ut = w(() => r.value ? {
2575
+ } : void 0), Ut = x(() => r.value ? {
2575
2576
  width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
2576
2577
  paddingTop: `${e.headerHeight + 20}px`,
2577
2578
  margin: r.value ? "0 auto" : void 0
2578
- } : void 0), Qe = w(() => r.value ? {
2579
+ } : void 0), Qe = x(() => r.value ? {
2579
2580
  minHeight: "835px"
2580
2581
  } : {});
2581
2582
  return i(o(q, null, [e.pure ? (et = n.default) == null ? void 0 : et.call(n) : o("div", {
@@ -2595,7 +2596,7 @@ const {
2595
2596
  collapsedButtonRender: M,
2596
2597
  onCollapse: P,
2597
2598
  onSelect: O,
2598
- onOpenKeys: C,
2599
+ onOpenKeys: w,
2599
2600
  onMenuClick: B
2600
2601
  }), null), o(me, {
2601
2602
  style: I
@@ -2641,7 +2642,7 @@ const {
2641
2642
  slots: t,
2642
2643
  emit: n
2643
2644
  }) {
2644
- const a = w(() => e.theme !== void 0 ? {
2645
+ const a = x(() => e.theme !== void 0 ? {
2645
2646
  dark: e.theme === "realDark"
2646
2647
  } : {}), i = (m) => {
2647
2648
  n("update:collapsed", m), n("collapse", m);
@@ -3055,11 +3056,11 @@ const ro = /* @__PURE__ */ E({
3055
3056
  hashId: d
3056
3057
  } = Z("ProThemeEditor", [io], i), {
3057
3058
  token: m
3058
- } = $e(), y = w(() => {
3059
+ } = $e(), y = x(() => {
3059
3060
  var S;
3060
3061
  return (S = m.value) == null ? void 0 : S.layout;
3061
- }), p = w(() => {
3062
- var S, R, s, I, g, c, f, v, P, C, O, L, B, N, H, M, F, h, b, k, $, D, j, W, V;
3062
+ }), p = x(() => {
3063
+ var S, R, s, I, g, c, f, v, P, w, O, L, B, N, H, M, F, h, b, k, $, D, j, W, V;
3063
3064
  return [{
3064
3065
  key: "colorBgMenu",
3065
3066
  title: "全部背景",
@@ -3083,7 +3084,7 @@ const ro = /* @__PURE__ */ E({
3083
3084
  }, {
3084
3085
  key: "colorDarkBgMenuItemSelected",
3085
3086
  title: "菜单选中背景",
3086
- disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "light" || ((P = e.settingValue) == null ? void 0 : P.theme) === "dark" && ["side", "simple"].includes((C = e.settingValue) == null ? void 0 : C.layout)
3087
+ disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "light" || ((P = e.settingValue) == null ? void 0 : P.theme) === "dark" && ["side", "simple"].includes((w = e.settingValue) == null ? void 0 : w.layout)
3087
3088
  }, {
3088
3089
  key: "colorTextMenu",
3089
3090
  title: "菜单文字颜色",
@@ -3109,8 +3110,8 @@ const ro = /* @__PURE__ */ E({
3109
3110
  title: "菜单文字选中颜色",
3110
3111
  disabled: ((j = e.settingValue) == null ? void 0 : j.theme) === "light" || ((W = e.settingValue) == null ? void 0 : W.theme) === "dark" && ["side", "simple"].includes((V = e.settingValue) == null ? void 0 : V.layout)
3111
3112
  }];
3112
- }), x = w(() => {
3113
- var S, R, s, I, g, c, f, v, P, C, O, L, B, N, H, M, F, h, b, k, $, D, j, W, V, _, Y, ie, ge, ye, be, pe;
3113
+ }), C = x(() => {
3114
+ var S, R, s, I, g, c, f, v, P, w, O, L, B, N, H, M, F, h, b, k, $, D, j, W, V, _, Y, ie, ge, ye, be, pe;
3114
3115
  return [{
3115
3116
  key: "colorBgMenu",
3116
3117
  title: "全部背景",
@@ -3126,7 +3127,7 @@ const ro = /* @__PURE__ */ E({
3126
3127
  }, {
3127
3128
  key: "colorDarkSubItemBg",
3128
3129
  title: "子菜单背景",
3129
- disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "light" || ((P = e.settingValue) == null ? void 0 : P.theme) === "dark" && ["mix", "wide"].includes((C = e.settingValue) == null ? void 0 : C.layout)
3130
+ disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "light" || ((P = e.settingValue) == null ? void 0 : P.theme) === "dark" && ["mix", "wide"].includes((w = e.settingValue) == null ? void 0 : w.layout)
3130
3131
  }, {
3131
3132
  key: "colorBgMenuItemHover",
3132
3133
  title: "菜单移入背景",
@@ -3164,7 +3165,7 @@ const ro = /* @__PURE__ */ E({
3164
3165
  title: "菜单文字选中颜色",
3165
3166
  disabled: ((ye = e.settingValue) == null ? void 0 : ye.theme) === "light" || ((be = e.settingValue) == null ? void 0 : be.theme) === "dark" && ["mix", "wide"].includes((pe = e.settingValue) == null ? void 0 : pe.layout)
3166
3167
  }];
3167
- }), r = w(() => n.value === "header" ? p.value : n.value === "sider" ? x.value : []), T = (S) => {
3168
+ }), r = x(() => n.value === "header" ? p.value : n.value === "sider" ? C.value : []), T = (S) => {
3168
3169
  var R, s;
3169
3170
  return (s = (R = y.value) == null ? void 0 : R[n.value]) == null ? void 0 : s[S];
3170
3171
  };
@@ -3304,7 +3305,7 @@ const {
3304
3305
  hashId: a
3305
3306
  } = Z("SettingsDrawOthers", [so], t);
3306
3307
  return () => {
3307
- var l, d, m, y, p, x, r, T, S, R, s, I, g, c;
3308
+ var l, d, m, y, p, C, r, T, S, R, s, I, g, c;
3308
3309
  let i;
3309
3310
  return n(o("div", {
3310
3311
  class: [t, a.value]
@@ -3344,7 +3345,7 @@ const {
3344
3345
  title: "动画效果",
3345
3346
  disabled: (y = (m = e.settingValue) == null ? void 0 : m.animate) == null ? void 0 : y.disabled,
3346
3347
  action: o(ve, {
3347
- value: (x = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : x.name,
3348
+ value: (C = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : C.name,
3348
3349
  style: {
3349
3350
  width: "100px"
3350
3351
  },
@@ -3384,8 +3385,8 @@ const {
3384
3385
  default: () => {
3385
3386
  var f;
3386
3387
  return [(f = mt.find((v) => {
3387
- var P, C;
3388
- return v.name === ((C = (P = e.settingValue) == null ? void 0 : P.animate) == null ? void 0 : C.name);
3388
+ var P, w;
3389
+ return v.name === ((w = (P = e.settingValue) == null ? void 0 : P.animate) == null ? void 0 : w.name);
3389
3390
  })) == null ? void 0 : f.directions.map((v) => o(ve.Option, {
3390
3391
  value: v
3391
3392
  }, ct(v) ? v : {
@@ -3459,10 +3460,10 @@ const {
3459
3460
  }), {
3460
3461
  wrapSSR: a,
3461
3462
  hashId: i
3462
- } = Z("ProSettingDraw", [ao], n), l = ce(!1), [d, m] = Se(!1), [y, p] = Se(!1), [x, r] = Se(!1), T = w(() => ht(ue(e.settings, He))), [S, R] = Bn(() => ht(ue(e.settings, He)), {
3463
+ } = Z("ProSettingDraw", [ao], n), l = ce(!1), [d, m] = Se(!1), [y, p] = Se(!1), [C, r] = Se(!1), T = x(() => ht(ue(e.settings, He))), [S, R] = Bn(() => ht(ue(e.settings, He)), {
3463
3464
  value: T,
3464
3465
  onChange: e.onChange
3465
- }), s = w(() => e.colorList && On(e.colorList) ? e.colorList : []), I = w(() => Wn(U(S))), {
3466
+ }), s = x(() => e.colorList && On(e.colorList) ? e.colorList : []), I = x(() => Wn(U(S))), {
3466
3467
  copy: g,
3467
3468
  copied: c,
3468
3469
  isSupported: f
@@ -3470,15 +3471,15 @@ const {
3470
3471
  le(d, () => {
3471
3472
  l.value || (l.value = !0);
3472
3473
  });
3473
- const v = (C, O, L) => {
3474
+ const v = (w, O, L) => {
3474
3475
  var H, M;
3475
3476
  const B = ["header", "sider"], N = {};
3476
- if (L && B.includes(C)) {
3477
- N[C] = {}, N[C][L] = O, e.onChangeLayout && e.onChangeLayout(ue(N, B));
3477
+ if (L && B.includes(w)) {
3478
+ N[w] = {}, N[w][L] = O, e.onChangeLayout && e.onChangeLayout(ue(N, B));
3478
3479
  return;
3479
3480
  } else
3480
- C === "animate" ? (N[C] = {}, N[C][L] = O, L === "name" && (N[C].direction = (M = (H = co.find((F) => F.name === O)) == null ? void 0 : H.directions) == null ? void 0 : M[0])) : N[C] = O;
3481
- if (C === "colorWeak") {
3481
+ w === "animate" ? (N[w] = {}, N[w][L] = O, L === "name" && (N[w].direction = (M = (H = co.find((F) => F.name === O)) == null ? void 0 : H.directions) == null ? void 0 : M[0])) : N[w] = O;
3482
+ if (w === "colorWeak") {
3482
3483
  const F = document.querySelector("body");
3483
3484
  F && (F.dataset.prosettingdrawer = O === !0 ? F.style.filter : F.dataset.prosettingdrawer || "none", O === !0 && (F.dataset.prosettingdrawer = F.style.filter), F.style.filter = O === !0 ? "invert(80%)" : F.dataset.prosettingdrawer || "none", O || delete F.dataset.prosettingdrawer);
3484
3485
  }
@@ -3488,8 +3489,8 @@ const {
3488
3489
  }, P = () => {
3489
3490
  f.value && g(JSON.stringify(U(S)));
3490
3491
  };
3491
- return le(c, (C) => {
3492
- C && rn.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
3492
+ return le(c, (w) => {
3493
+ w && rn.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
3493
3494
  }), () => a(o(we, {
3494
3495
  width: 300,
3495
3496
  closable: !1,
@@ -3529,7 +3530,7 @@ const {
3529
3530
  value: S.value.theme,
3530
3531
  configType: "theme",
3531
3532
  key: "navTheme",
3532
- onChange: (C) => v("theme", C)
3533
+ onChange: (w) => v("theme", w)
3533
3534
  }, null)]
3534
3535
  }), o(Ce, {
3535
3536
  hashId: i.value,
@@ -3546,7 +3547,7 @@ const {
3546
3547
  prefixCls: n,
3547
3548
  colorList: s.value,
3548
3549
  settingValue: S.value,
3549
- onChange: (C, O) => v(O || "primaryColor", C)
3550
+ onChange: (w, O) => v(O || "primaryColor", w)
3550
3551
  }, null)]
3551
3552
  }), !e.themeOnly && o(q, null, [o(Fe, null, null), o(Ce, {
3552
3553
  hashId: i.value,
@@ -3560,18 +3561,18 @@ const {
3560
3561
  hashId: i.value,
3561
3562
  configType: "layout",
3562
3563
  list: Wt,
3563
- onChange: (C) => v("layout", C)
3564
+ onChange: (w) => v("layout", w)
3564
3565
  }, null)]
3565
3566
  }), mo.map(({
3566
- label: C,
3567
+ label: w,
3567
3568
  title: O
3568
3569
  }) => o(xe, {
3569
3570
  label: O,
3570
- disabled: U(I)[C],
3571
- value: U(S)[C],
3571
+ disabled: U(I)[w],
3572
+ value: U(S)[w],
3572
3573
  prefixCls: n,
3573
3574
  hashId: i.value,
3574
- valueKey: C,
3575
+ valueKey: w,
3575
3576
  onChange: (L, B) => v(L, B)
3576
3577
  }, null)), o(Fe, null, null), o(Ce, {
3577
3578
  hashId: i.value,
@@ -3584,15 +3585,15 @@ const {
3584
3585
  }, [Q("更多配置")])])
3585
3586
  }, {
3586
3587
  default: () => [fo.map(({
3587
- label: C,
3588
+ label: w,
3588
3589
  title: O
3589
3590
  }) => o(xe, {
3590
3591
  label: O,
3591
- disabled: U(I)[C],
3592
- value: U(S)[C],
3592
+ disabled: U(I)[w],
3593
+ value: U(S)[w],
3593
3594
  prefixCls: n,
3594
3595
  hashId: i.value,
3595
- valueKey: C,
3596
+ valueKey: w,
3596
3597
  onChange: (L, B) => v(L, B)
3597
3598
  }, null)), e.weakmode && o(xe, {
3598
3599
  label: "色弱模式",
@@ -3600,14 +3601,14 @@ const {
3600
3601
  prefixCls: n,
3601
3602
  hashId: i.value,
3602
3603
  valueKey: "colorWeak",
3603
- onChange: (C, O) => v(C, O)
3604
+ onChange: (w, O) => v(w, O)
3604
3605
  }, null), e.showProgress && o(xe, {
3605
3606
  label: "顶部进度条",
3606
3607
  value: U(S).showProgressBar,
3607
3608
  prefixCls: n,
3608
3609
  hashId: i.value,
3609
3610
  valueKey: "showProgressBar",
3610
- onChange: (C, O) => v(C, O)
3611
+ onChange: (w, O) => v(w, O)
3611
3612
  }, null)]
3612
3613
  })]), e.hideHintAlert && e.hideCopyButton ? null : o(Fe, null, null), e.hideHintAlert ? null : o(sn, {
3613
3614
  type: "warning",
@@ -3635,13 +3636,13 @@ const {
3635
3636
  }, {
3636
3637
  default: () => [o(ro, {
3637
3638
  settingValue: S.value,
3638
- onChange: (C, O, L) => v(O || "primaryColor", C, L)
3639
+ onChange: (w, O, L) => v(O || "primaryColor", w, L)
3639
3640
  }, null)]
3640
3641
  }), o(we, {
3641
3642
  width: 320,
3642
3643
  closable: !1,
3643
3644
  placement: "right",
3644
- open: x.value,
3645
+ open: C.value,
3645
3646
  bodyStyle: {
3646
3647
  padding: 0
3647
3648
  },
@@ -3649,7 +3650,7 @@ const {
3649
3650
  }, {
3650
3651
  default: () => [o(uo, {
3651
3652
  settingValue: S.value,
3652
- onChange: (C, O, L) => v(C, L, O)
3653
+ onChange: (w, O, L) => v(w, L, O)
3653
3654
  }, null)]
3654
3655
  })]
3655
3656
  }));
@@ -4958,19 +4959,19 @@ const Ol = /* @__PURE__ */ E({
4958
4959
  }), {
4959
4960
  wrapSSR: a,
4960
4961
  hashId: i
4961
- } = rl(n), l = w(() => [m(!1), `${n}-enter`, i.value].join(" ")), d = w(() => [m(!0), `${n}-leave`, i.value].join(" ")), m = (p) => {
4962
- const x = Ge.preset.find((S) => e.name == S.name);
4963
- if (x == null)
4962
+ } = rl(n), l = x(() => [m(!1), `${n}-enter`, i.value].join(" ")), d = x(() => [m(!0), `${n}-leave`, i.value].join(" ")), m = (p) => {
4963
+ const C = Ge.preset.find((S) => e.name == S.name);
4964
+ if (C == null)
4964
4965
  return "";
4965
4966
  let r = "";
4966
- e.direction == null ? r = x.directions[0] : r = x.directions.find((S) => S == e.direction) || "", r = r == null || r === "default" ? "" : r, r != "" && (r = p && e.reverse ? y(r, x.directions) : r, r = r[0].toUpperCase() + r.substring(1));
4967
+ e.direction == null ? r = C.directions[0] : r = C.directions.find((S) => S == e.direction) || "", r = r == null || r === "default" ? "" : r, r != "" && (r = p && e.reverse ? y(r, C.directions) : r, r = r[0].toUpperCase() + r.substring(1));
4967
4968
  const T = p ? "Out" : "In";
4968
- return x.name + T + r;
4969
- }, y = (p, x) => {
4969
+ return C.name + T + r;
4970
+ }, y = (p, C) => {
4970
4971
  if (p.length == 0 || p == "x" || p == "y")
4971
4972
  return p;
4972
- let r = x.indexOf(p);
4973
- return r = r % 2 == 1 ? r - 1 : r + 1, x[r];
4973
+ let r = C.indexOf(p);
4974
+ return r = r % 2 == 1 ? r - 1 : r + 1, C[r];
4974
4975
  };
4975
4976
  return () => e.disabled ? null : a(o(tn, {
4976
4977
  enterActiveClass: l.value,