@gx-design-vue/pro-layout 0.1.0-beta.70 → 0.1.0-beta.71

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,7 +1,7 @@
1
1
  import type { CSSProperties, ExtractPropTypes, SlotsType } from 'vue';
2
2
  import { type CustomRender } from '@gx-design-vue/pro-utils';
3
3
  import { basicLayoutProps } from './props';
4
- import type { FooterRender, HeaderContentRender, HeaderLogoRender, HeaderRender, MenuContentRender, MenuHeaderRender, MenuFooterRender, RightContentRender, TabsRouteItemRender } from './SlotsTypings';
4
+ import type { FooterRender, HeaderContentRender, HeaderLogoRender, HeaderRender, MenuContentRender, MenuFooterRender, MenuHeaderRender, RightContentRender, TabsRouteItemRender } from './SlotsTypings';
5
5
  import type { AppRouteModule } from './RouteTypings';
6
6
  import type { AntRoute, BreadcrumbProps } from './typings';
7
7
  import type { DefaultHeaderProps } from './components/GlobalHeader/DefaultHeader';
@@ -1,4 +1,4 @@
1
- import { createVNode as t, defineComponent as E, createTextVNode as U, mergeProps as ee, toRefs as Je, ref as me, reactive as Be, watch as ce, computed as I, unref as re, Fragment as Z, withDirectives as zn, vShow as Nn, isVNode as Le, resolveComponent as Gt, nextTick as pt, watchEffect as An, onMounted as Yt, Transition as Hn } from "vue";
1
+ import { createVNode as t, defineComponent as E, createTextVNode as U, mergeProps as te, toRefs as Je, ref as me, reactive as Be, watch as ce, computed as I, unref as re, Fragment as J, withDirectives as zn, vShow as Nn, isVNode as Le, resolveComponent as Gt, nextTick as pt, watchEffect as An, onMounted as Yt, Transition as Hn } from "vue";
2
2
  import { pick as ae, cloneDeep as Re, omit as Me } from "lodash-es";
3
3
  import { LayoutFooter as jn, Spin as Ct, Tabs as xt, Menu as ye, Dropdown as dt, Layout as We, Popover as En, Badge as Wn, ConfigProvider as St, Drawer as Ye, Avatar as qt, Form as Ft, Input as Qt, Button as qe, Empty as Pt, MenuItem as Tt, Breadcrumb as Kn, Card as Un, Tooltip as et, List as Ie, Switch as Zt, TabPane as _n, Select as Xe, message as Xn, Segmented as Vn, Divider as st, Alert as Gn } from "ant-design-vue";
4
4
  import { useLocalStorage as tt, useWindowSize as Yn, useColorMode as qn, useStyleTag as Qn, useMagicKeys as Jt, whenever as mt, useThrottleFn as Zn, onKeyStroke as ct, useFullscreen as Jn, useDebounceFn as ea, useClipboard as ta } from "@vueuse/core";
@@ -550,7 +550,7 @@ const to = ["tabsVisible", "storageTabsBar", "collapsedWidth", "isChildrenLayout
550
550
  textAlign: "center",
551
551
  ...i
552
552
  }
553
- }, [t(Ct, ee(e, {
553
+ }, [t(Ct, te(e, {
554
554
  indicator: l || ((r = o == null ? void 0 : o.indicator) == null ? void 0 : r.value)
555
555
  }), null)]) : null;
556
556
  };
@@ -901,7 +901,7 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
901
901
  i.value = !0, e.onReloadPage && ((y = e.onReloadPage) == null || y.call(e)), setTimeout(() => {
902
902
  i.value = !1;
903
903
  }, 500);
904
- }, W = (y) => l[y], J = (y) => {
904
+ }, W = (y) => l[y], ee = (y) => {
905
905
  const O = g.value.find((T) => K(T) === W(y));
906
906
  l.activeKey !== W(y) && (s.normal.length > 0 ? P(K(O)) || r.push(X(W(y))) : de());
907
907
  }, ge = (y, O) => {
@@ -927,13 +927,13 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
927
927
  !i.value && B(K(j) || "");
928
928
  break;
929
929
  case "closeOthersTabs":
930
- s.normal = s.normal.filter((A) => K(A) === W(O) || N(A)), J(O);
930
+ s.normal = s.normal.filter((A) => K(A) === W(O) || N(A)), ee(O);
931
931
  break;
932
932
  case "closeLeftTabs":
933
- Qe(T) && (s.normal = s.normal.filter((A, ue) => ue >= T || N(A))), J(O);
933
+ Qe(T) && (s.normal = s.normal.filter((A, ue) => ue >= T || N(A))), ee(O);
934
934
  break;
935
935
  case "closeRightTabs":
936
- Qe(T) && (s.normal = s.normal.filter((A, ue) => ue <= T || N(A))), J(O);
936
+ Qe(T) && (s.normal = s.normal.filter((A, ue) => ue <= T || N(A))), ee(O);
937
937
  break;
938
938
  case "closeAllTabs":
939
939
  s.normal = s.normal.filter((A) => N(A)), de();
@@ -989,7 +989,7 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
989
989
  })) ? O : {
990
990
  default: () => [O]
991
991
  });
992
- }, te = ({
992
+ }, Z = ({
993
993
  router: y
994
994
  }) => {
995
995
  const O = e.itemRender ? e.itemRender(y) : null, T = N(y);
@@ -1027,7 +1027,7 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
1027
1027
  };
1028
1028
  return () => {
1029
1029
  const y = c.value ? on : ln;
1030
- return d(t(Z, null, [a.value && zn(t("div", {
1030
+ return d(t(J, null, [a.value && zn(t("div", {
1031
1031
  class: [`${p}-fixed`, v.value]
1032
1032
  }, null), [[Nn, e.visible]]), t(xt, {
1033
1033
  hideAdd: !0,
@@ -1040,7 +1040,7 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
1040
1040
  default: () => [g.value.map((O) => t(uo, {
1041
1041
  key: K(O),
1042
1042
  closable: !1,
1043
- tab: t(te, {
1043
+ tab: t(Z, {
1044
1044
  router: O
1045
1045
  }, null)
1046
1046
  }, null))],
@@ -1089,7 +1089,7 @@ const uo = xt.TabPane, mo = ye.Item, fo = /* @__PURE__ */ E({
1089
1089
  flatMenuData: x,
1090
1090
  layout: h
1091
1091
  } = ie();
1092
- return t(Z, null, [t(fo, ee({
1092
+ return t(J, null, [t(fo, te({
1093
1093
  visible: l ? r ? !0 : h.value === "mix" ? x.value.length > 0 : !0 : !1
1094
1094
  }, c), null), t(ho, {
1095
1095
  style: a.style,
@@ -1431,7 +1431,7 @@ const go = (e) => {
1431
1431
  } = fe("AppsLogoIcon", [Co], a), [l, r] = be(!1), c = me(), x = me();
1432
1432
  return () => {
1433
1433
  var h;
1434
- return o(t(Z, null, [t("div", {
1434
+ return o(t(J, null, [t("div", {
1435
1435
  ref: c,
1436
1436
  onClick: (f) => {
1437
1437
  f.stopPropagation(), f.preventDefault();
@@ -1522,7 +1522,7 @@ const Ze = (e) => {
1522
1522
  }, [(m = d.badge) == null ? void 0 : m.call(d, Me(d, "badge"))]) : null, g = t("span", {
1523
1523
  class: [`${o}-title`, !S && `${o}-title-no-icon`]
1524
1524
  }, [d.title]);
1525
- return v ? g : t(Z, null, [g, s ?? (oa(d.badge) && t(Wn, ee({
1525
+ return v ? g : t(J, null, [g, s ?? (oa(d.badge) && t(Wn, te({
1526
1526
  class: `${o}-item-bradde`,
1527
1527
  overflowCount: 999
1528
1528
  }, d.badge), null))]);
@@ -1533,12 +1533,12 @@ const Ze = (e) => {
1533
1533
  ...d.meta
1534
1534
  }, g = s.linkStatus === 1 && s.link ? "a" : h, m = {
1535
1535
  to: d.linkPath && e.layout === "mix" ? e.toFirstPath ? d.linkPath : "" : d.linkPath || d.path || ""
1536
- }, w = (F = d.meta) != null && F.icon ? t(g, ee(m, {
1536
+ }, w = (F = d.meta) != null && F.icon ? t(g, te(m, {
1537
1537
  class: "gx-pro-menu-item",
1538
1538
  onClick: () => x(s, m)
1539
1539
  }), Ve(v = f(s)) ? v : {
1540
1540
  default: () => [v]
1541
- }) : t(g, ee(m, {
1541
+ }) : t(g, te(m, {
1542
1542
  class: "gx-pro-menu-item",
1543
1543
  onClick: () => x(s, m)
1544
1544
  }), Ve(S = f(s, !0)) ? S : {
@@ -1591,7 +1591,7 @@ const Ze = (e) => {
1591
1591
  function p(d = []) {
1592
1592
  return d.map((v) => L(v)).filter((v) => v);
1593
1593
  }
1594
- return () => t(ye, ee({
1594
+ return () => t(ye, te({
1595
1595
  key: "Menu",
1596
1596
  inlineIndent: 16,
1597
1597
  mode: e.mode,
@@ -1758,7 +1758,7 @@ const Ze = (e) => {
1758
1758
  } = e, l = e.logoContentRender;
1759
1759
  if (l === !1) return null;
1760
1760
  const r = Cn(n, a), c = o && t("h1", null, [o]);
1761
- return typeof l == "function" ? l(r, e.collapsed ? null : c, e) : l || t(Z, null, [r || null, e.collapsed && (i === "side" || i === "simple") ? null : c]);
1761
+ return typeof l == "function" ? l(r, e.collapsed ? null : c, e) : l || t(J, null, [r || null, e.collapsed && (i === "side" || i === "simple") ? null : c]);
1762
1762
  }, Lt = /* @__PURE__ */ E({
1763
1763
  name: "LogoContent",
1764
1764
  props: {
@@ -2090,13 +2090,13 @@ const {
2090
2090
  hashId: X
2091
2091
  } = fe("ProLayoutSiderMenu", [Io, wo, So, xn, (H) => {
2092
2092
  var xe, Se;
2093
- const G = (xe = H == null ? void 0 : H.layout) == null ? void 0 : xe.sider, te = at("sider", H, (Se = H.layout) == null ? void 0 : Se.key), {
2093
+ const G = (xe = H == null ? void 0 : H.layout) == null ? void 0 : xe.sider, Z = at("sider", H, (Se = H.layout) == null ? void 0 : Se.key), {
2094
2094
  dark: pe
2095
2095
  } = ve(H), Te = nt(H, "sider");
2096
2096
  return {
2097
2097
  [`${H.proComponentsCls}-basic-layout`]: {
2098
2098
  [H.componentCls]: {
2099
- background: (G == null ? void 0 : G.colorBgMenu) || (te == null ? void 0 : te.colorBgMenu),
2099
+ background: (G == null ? void 0 : G.colorBgMenu) || (Z == null ? void 0 : Z.colorBgMenu),
2100
2100
  boxShadow: Te || pe ? "#0d0d0da6 0 2px 8px" : "2px 0 8px 0 rgba(29,35,41,.05)",
2101
2101
  [`${H.componentCls}-footer`]: {
2102
2102
  color: G == null ? void 0 : G.colorTextMenu
@@ -2114,7 +2114,7 @@ const {
2114
2114
  var H;
2115
2115
  e.onCollapse && ((H = e.onCollapse) == null || H.call(e, !s.value));
2116
2116
  }
2117
- const J = ft(() => {
2117
+ const ee = ft(() => {
2118
2118
  var G;
2119
2119
  if (F.value === !1) return null;
2120
2120
  const H = t(Lo, {
@@ -2136,12 +2136,12 @@ const {
2136
2136
  return () => {
2137
2137
  var Se;
2138
2138
  let H;
2139
- const G = M.value && t(Lt, ee({
2139
+ const G = M.value && t(Lt, te({
2140
2140
  hashId: X.value,
2141
2141
  baseClassName: R
2142
2142
  }, ae(e, Object.keys(lt))), {
2143
2143
  default: () => [D.value]
2144
- }), te = e.menuHeaderRender && ((Se = e.menuHeaderRender) == null ? void 0 : Se.call(e, e)), pe = e.menuLinksRender, Te = e.siderActionsRender, xe = t(vn, {
2144
+ }), Z = e.menuHeaderRender && ((Se = e.menuHeaderRender) == null ? void 0 : Se.call(e, e)), pe = e.menuLinksRender, Te = e.siderActionsRender, xe = t(vn, {
2145
2145
  class: `${R}-menu ${X.value}`,
2146
2146
  theme: Q.value,
2147
2147
  mode: "inline",
@@ -2212,12 +2212,12 @@ const {
2212
2212
  indicator: (y = x == null ? void 0 : x.indicator) == null ? void 0 : y.value
2213
2213
  }, null)]), G || null, Ne(e.menuHeaderRender) && t("div", {
2214
2214
  class: q([X.value, `${R}-extra`, !G && `${R}-extra-no-logo`])
2215
- }, [te]), t("div", {
2215
+ }, [Z]), t("div", {
2216
2216
  style: {
2217
2217
  flex: "1 1 0%",
2218
2218
  overflow: "hidden auto"
2219
2219
  }
2220
- }, [w.value && ((O = w.value) == null ? void 0 : O.call(w, e, xe)) || xe]), e.layout !== "wide" && t(Z, null, [Ne(pe) && tn(pe) && pe.length > 0 && t("div", {
2220
+ }, [w.value && ((O = w.value) == null ? void 0 : O.call(w, e, xe)) || xe]), e.layout !== "wide" && t(J, null, [Ne(pe) && tn(pe) && pe.length > 0 && t("div", {
2221
2221
  class: `${R}-links ${X.value}`
2222
2222
  }, [t(ye, {
2223
2223
  theme: Q.value,
@@ -2235,12 +2235,12 @@ const {
2235
2235
  default: () => [H]
2236
2236
  })]), L.value ? null : t("div", {
2237
2237
  class: q(`${R}-actions`, X.value)
2238
- }, [Te || t(Z, null, [t("div", {
2238
+ }, [Te || t(J, null, [t("div", {
2239
2239
  class: q(`${R}-actions-item`, X.value),
2240
2240
  onClick: () => W()
2241
2241
  }, [k.value && ((T = k.value) == null ? void 0 : T.call(k, s.value))])])])]), C.value && t("div", {
2242
2242
  class: `${R}-footer ${X.value}`
2243
- }, [(j = C.value) == null ? void 0 : j.call(C, e)]), c.value || u.value === "wide" ? null : J.value];
2243
+ }, [(j = C.value) == null ? void 0 : j.call(C, e)]), c.value || u.value === "wide" ? null : ee.value];
2244
2244
  }
2245
2245
  })]
2246
2246
  }));
@@ -2252,7 +2252,7 @@ const {
2252
2252
  }, Ho = ["mix", "top", "wide"], jo = (e, n) => e === !1 ? null : e ? e(n, null) : n, Eo = /* @__PURE__ */ E({
2253
2253
  props: Rn,
2254
2254
  setup(e) {
2255
- return () => e.rightContentRender && typeof e.rightContentRender == "function" ? e.rightContentRender(e) : t(Z, null, null);
2255
+ return () => e.rightContentRender && typeof e.rightContentRender == "function" ? e.rightContentRender(e) : t(J, null, null);
2256
2256
  }
2257
2257
  }), Wo = /* @__PURE__ */ E({
2258
2258
  props: Rn,
@@ -2341,7 +2341,7 @@ const {
2341
2341
  onOpenKeys: (m) => p("openKeys", m)
2342
2342
  }, null)]
2343
2343
  })]);
2344
- return t(Z, null, [s, e.layout !== "simple" && t(Eo, ee(e, {
2344
+ return t(J, null, [s, e.layout !== "simple" && t(Eo, te(e, {
2345
2345
  extraRightDropdownRender: e.extraRightDropdownRender,
2346
2346
  rightContentRender: e.rightContentRender
2347
2347
  }), null)]);
@@ -2357,7 +2357,7 @@ const {
2357
2357
  }, [t("a", null, [Cn(e.logo, e.logoStyle)])]);
2358
2358
  return f(t("div", {
2359
2359
  class: L.value
2360
- }, [e.isMobile ? t(Z, null, [jo(e.logoContentRender, s), e.isMobile && re(v) && t("span", {
2360
+ }, [e.isMobile ? t(J, null, [jo(e.logoContentRender, s), e.isMobile && re(v) && t("span", {
2361
2361
  class: `${h}-collapsed-button ${u.value}`,
2362
2362
  onClick: d
2363
2363
  }, [re(v)(e.collapsed)]), S()]) : Ho.includes(e.layout) ? t("div", {
@@ -2373,7 +2373,7 @@ const {
2373
2373
  var g;
2374
2374
  return [typeof e.appLogoListRender == "function" ? (g = e.appLogoListRender) == null ? void 0 : g.call(e) : e.appLogoListRender];
2375
2375
  }
2376
- }), t(Lt, ee({
2376
+ }), t(Lt, te({
2377
2377
  hashId: u.value,
2378
2378
  baseClassName: h
2379
2379
  }, e), null)]), S()]) : S()]));
@@ -2471,7 +2471,7 @@ const {
2471
2471
  [`${L}-${f.value.key}`]: !0,
2472
2472
  [`${p}`]: v.value
2473
2473
  })), C = I(() => v.value && !n.value), F = I(() => l.value ? x.value && Oo(x.value) || [] : o.value === "top" ? x.value : []), R = I(() => S.value && C.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), $ = I(() => v.value ? 0 : void 0), P = () => {
2474
- const M = t(Wo, ee(e, {
2474
+ const M = t(Wo, te(e, {
2475
2475
  mode: "horizontal",
2476
2476
  theme: s.value,
2477
2477
  onCollapse: i.value,
@@ -2482,7 +2482,7 @@ const {
2482
2482
  };
2483
2483
  return () => {
2484
2484
  let M;
2485
- return g(t(Z, null, [v.value && !d.value && t(Et, {
2485
+ return g(t(J, null, [v.value && !d.value && t(Et, {
2486
2486
  style: {
2487
2487
  height: `${u.value}px`,
2488
2488
  lineHeight: `${u.value}px`,
@@ -2515,7 +2515,7 @@ const {
2515
2515
  }
2516
2516
  },
2517
2517
  setup(e) {
2518
- return () => t(Z, null, [e.isMobile ? t(Ye, {
2518
+ return () => t(J, null, [e.isMobile ? t(Ye, {
2519
2519
  maskClosable: !0,
2520
2520
  open: !e.collapsed,
2521
2521
  closable: !1,
@@ -2534,7 +2534,7 @@ const {
2534
2534
  flexDirection: "row"
2535
2535
  }
2536
2536
  }, {
2537
- default: () => [t(jt, ee(e, {
2537
+ default: () => [t(jt, te(e, {
2538
2538
  collapsed: e.isMobile ? !1 : e.collapsed
2539
2539
  }), null)]
2540
2540
  }) : t(jt, e, null)]);
@@ -2692,7 +2692,7 @@ const _o = /* @__PURE__ */ E({
2692
2692
  immediate: !0,
2693
2693
  deep: !0
2694
2694
  });
2695
- const R = ($, P) => $.headerRender === !1 || $.pure ? null : t(Wt, ee(Me($, "headerHeight"), {
2695
+ const R = ($, P) => $.headerRender === !1 || $.pure ? null : t(Wt, te(Me($, "headerHeight"), {
2696
2696
  headerHeight: C.value,
2697
2697
  matchMenuKeys: P || []
2698
2698
  }), null);
@@ -2714,10 +2714,10 @@ const _o = /* @__PURE__ */ E({
2714
2714
  onDarkChange: e.onDarkChange,
2715
2715
  pageHeaderRender: I(() => $e(n, e, "pageContainerProps:pageHeaderRender"))
2716
2716
  }), () => {
2717
- var H;
2717
+ var G;
2718
2718
  const $ = la(yn, n, e, {
2719
2719
  render: !0
2720
- }), P = le(n, e, "collapsedButtonRender"), M = le(n, e, "footerRender"), N = le(n, e, "headerRender"), Q = le(n, e, "headerContentRender"), _ = le(n, e, "rightContentRender"), X = le(n, e, "tabsRouteItemRender"), he = le(n, e, "menuItemRender"), de = le(n, e, "menuHeaderRender"), B = le(n, e, "logoContentRender"), k = le(n, e, "menuFooterRender"), D = le(n, e, "subMenuItemRender"), W = le(n, e, "menuContentRender"), J = R({
2720
+ }), P = le(n, e, "collapsedButtonRender"), M = le(n, e, "footerRender"), N = le(n, e, "headerRender"), Q = le(n, e, "headerContentRender"), _ = le(n, e, "rightContentRender"), X = le(n, e, "tabsRouteItemRender"), he = le(n, e, "menuItemRender"), de = le(n, e, "menuHeaderRender"), B = le(n, e, "logoContentRender"), k = le(n, e, "menuFooterRender"), D = le(n, e, "subMenuItemRender"), W = le(n, e, "menuContentRender"), ee = R({
2721
2721
  ...e,
2722
2722
  ...ae($, gn),
2723
2723
  menuItemRender: he,
@@ -2731,8 +2731,11 @@ const _o = /* @__PURE__ */ E({
2731
2731
  }, e.matchMenuKeys), ge = S.value ? {
2732
2732
  minHeight: "835px",
2733
2733
  marginInlineStart: F.value === 0 ? 0 : void 0
2734
- } : {};
2735
- return o(t(Z, null, [e.pure ? (H = n.default) == null ? void 0 : H.call(n) : t("div", {
2734
+ } : {}, H = M ? typeof M == "function" ? M(e) : M : t(At, {
2735
+ copyright: $.copyrightRender,
2736
+ links: e.footerLinks
2737
+ }, null);
2738
+ return o(t(J, null, [e.pure ? (G = n.default) == null ? void 0 : G.call(n) : t("div", {
2736
2739
  class: q({
2737
2740
  [`${i.value}`]: !0,
2738
2741
  [`${a}`]: !0,
@@ -2748,7 +2751,7 @@ const _o = /* @__PURE__ */ E({
2748
2751
  margin: S.value ? "0 auto" : void 0
2749
2752
  } : void 0
2750
2753
  }, {
2751
- default: () => [F.value > 0 && t(Kt, ee(e, {
2754
+ default: () => [F.value > 0 && t(Kt, te(e, {
2752
2755
  siderWidth: F.value,
2753
2756
  isMobile: g.value,
2754
2757
  menuHeaderRender: de,
@@ -2759,7 +2762,7 @@ const _o = /* @__PURE__ */ E({
2759
2762
  }, ae($, hn)), null), t(We, {
2760
2763
  style: L
2761
2764
  }, {
2762
- default: () => [e.layout !== "simple" && C.value > 0 && J, t(Bt, ee(ae(e, to), {
2765
+ default: () => [e.layout !== "simple" && C.value > 0 && ee, t(Bt, te(ae(e, to), {
2763
2766
  hashId: i.value,
2764
2767
  prefixCls: a,
2765
2768
  siderWidth: F.value,
@@ -2770,15 +2773,12 @@ const _o = /* @__PURE__ */ E({
2770
2773
  itemRender: X
2771
2774
  }), {
2772
2775
  default: () => {
2773
- var G;
2774
- return [(G = n.default) == null ? void 0 : G.call(n)];
2776
+ var Z;
2777
+ return [(Z = n.default) == null ? void 0 : Z.call(n)];
2775
2778
  }
2776
- }), M ? typeof M == "function" ? M(e) : M : t(At, {
2777
- copyright: $.copyrightRender,
2778
- links: e.footerLinks
2779
- }, null)]
2779
+ }), e.layout !== "wide" && H]
2780
2780
  })]
2781
- }), $.pageLockRender])]));
2781
+ }), $.pageLockRender, e.layout === "wide" && H])]));
2782
2782
  };
2783
2783
  }
2784
2784
  }), qr = /* @__PURE__ */ E({
@@ -2827,7 +2827,7 @@ const _o = /* @__PURE__ */ E({
2827
2827
  token: r.value,
2828
2828
  dark: o.value
2829
2829
  }, {
2830
- default: () => [t(_o, ee(Me(e, ["onSelect", "onOpenKeys", "onCollapse", "onTabsChange", "onDarkChange", "dark"]), {
2830
+ default: () => [t(_o, te(Me(e, ["onSelect", "onOpenKeys", "onCollapse", "onTabsChange", "onDarkChange", "dark"]), {
2831
2831
  dark: i.value,
2832
2832
  onSelect: h,
2833
2833
  onOpenKeys: x,
@@ -3172,7 +3172,7 @@ const Zo = /* @__PURE__ */ E({
3172
3172
  style: {
3173
3173
  fontSize: "30px"
3174
3174
  }
3175
- }, [l.day, U("  "), l.dddd])])]) : t(Z, null, [t("div", {
3175
+ }, [l.day, U("  "), l.dddd])])]) : t(J, null, [t("div", {
3176
3176
  class: r("head")
3177
3177
  }, [t("span", null, [l.day, U("  "), l.dddd]), t("span", {
3178
3178
  class: r("lock-icon"),
@@ -3239,7 +3239,7 @@ const Zo = /* @__PURE__ */ E({
3239
3239
  var m;
3240
3240
  c(!1), p(""), (m = u.value) == null || m.resetFields();
3241
3241
  };
3242
- return () => o(t(Z, null, [t(Zo, ee(ae(e, ["name", "avatar"]), {
3242
+ return () => o(t(J, null, [t(Zo, te(ae(e, ["name", "avatar"]), {
3243
3243
  open: h.value,
3244
3244
  hashId: i.value,
3245
3245
  className: n,
@@ -3254,7 +3254,7 @@ const Zo = /* @__PURE__ */ E({
3254
3254
  footer: !1,
3255
3255
  onCancel: g
3256
3256
  }, {
3257
- default: () => [t(Mn, ee({
3257
+ default: () => [t(Mn, te({
3258
3258
  ref: u
3259
3259
  }, ae(e, ["name", "avatar"]), {
3260
3260
  submitText: "锁定",
@@ -3466,7 +3466,7 @@ const ai = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
3466
3466
  s.stopPropagation(), e.keyword ? i.value.splice(g, 1) : a.value.splice(g, 1), o.value = o.value - 1 >= 0 ? o.value - 1 : 0, x();
3467
3467
  }
3468
3468
  const S = (s) => q(`${e.className}${s ? `-${s}` : ""}`, e.hashId);
3469
- return () => t(Z, null, [i.value.length > 0 ? t(Z, null, [a.value.length > 0 && !e.keyword && t("div", {
3469
+ return () => t(J, null, [i.value.length > 0 ? t(J, null, [a.value.length > 0 && !e.keyword && t("div", {
3470
3470
  class: S("panel-title")
3471
3471
  }, [U("搜索历史")]), t("div", {
3472
3472
  class: S("panel-list")
@@ -3480,12 +3480,12 @@ const ai = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
3480
3480
  onMouseenter: () => d(g)
3481
3481
  }, [t("div", {
3482
3482
  class: S("panel-item-left")
3483
- }, [t(Ze, ee(s.meta || {}, {
3483
+ }, [t(Ze, te(s.meta || {}, {
3484
3484
  icon: ((m = s.meta) == null ? void 0 : m.icon) || t(Fa, null, null),
3485
3485
  classNames: S("panel-icon")
3486
3486
  }), null), (F = (C = (w = s.meta) == null ? void 0 : w.title) == null ? void 0 : C.split("**")) == null ? void 0 : F.map((R, $) => {
3487
3487
  var P, M, N;
3488
- return t(Z, null, [R, $ < ((N = (M = (P = s.meta) == null ? void 0 : P.title) == null ? void 0 : M.split("**")) == null ? void 0 : N.length) - 1 && t(Pa, null, null)]);
3488
+ return t(J, null, [R, $ < ((N = (M = (P = s.meta) == null ? void 0 : P.title) == null ? void 0 : M.split("**")) == null ? void 0 : N.length) - 1 && t(Pa, null, null)]);
3489
3489
  }), t("span", null, null)]), t(ot, {
3490
3490
  onClick: (R) => v(R, g)
3491
3491
  }, null)]);
@@ -3545,7 +3545,7 @@ const ai = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
3545
3545
  className: `${n}`,
3546
3546
  hashId: o.value
3547
3547
  }, v = `${n}-modal`;
3548
- return a(t(Z, null, [t("div", {
3548
+ return a(t(J, null, [t("div", {
3549
3549
  class: q(n, o.value),
3550
3550
  onClick: () => c(!0)
3551
3551
  }, [t(Dt, null, null), t("span", {
@@ -3580,7 +3580,7 @@ const ai = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
3580
3580
  }, null),
3581
3581
  onCancel: () => p()
3582
3582
  }, {
3583
- default: () => [t(ii, ee(d, {
3583
+ default: () => [t(ii, te(d, {
3584
3584
  keyword: i.value,
3585
3585
  dataSource: L.value,
3586
3586
  onClose: () => p()
@@ -3757,7 +3757,7 @@ const Zr = /* @__PURE__ */ E({
3757
3757
  onClick: () => o()
3758
3758
  }, null)]), M ? M == null ? void 0 : M([`${c}-header-actions-item`, u.value]) : null, t(dt, {
3759
3759
  overlay: R || t(ye, null, {
3760
- default: () => [P, e.actions.lock && t(Z, null, [t(Tt, {
3760
+ default: () => [P, e.actions.lock && t(J, null, [t(Tt, {
3761
3761
  key: "lock",
3762
3762
  icon: t(sn, null, null),
3763
3763
  onClick: () => {
@@ -3981,7 +3981,7 @@ const Jr = /* @__PURE__ */ E({
3981
3981
  return t("div", {
3982
3982
  class: `${c}-children-content ${g.value}`,
3983
3983
  style: p.value
3984
- }, [C, v.value ? t(Un, ee(f.value ? ae(f.value, ["loading", "bodyStyle"]) : {}, {
3984
+ }, [C, v.value ? t(Un, te(f.value ? ae(f.value, ["loading", "bodyStyle"]) : {}, {
3985
3985
  style: d.value ? {
3986
3986
  minHeight: "853px"
3987
3987
  } : void 0,
@@ -3999,7 +3999,7 @@ const Jr = /* @__PURE__ */ E({
3999
3999
  }, w = () => {
4000
4000
  var F;
4001
4001
  let C;
4002
- return t(Z, null, [(ne(e.waterMark) ? e.waterMark : (F = o == null ? void 0 : o.waterMark) != null && F.value) ? t(Xa, u.value, gi(C = m()) ? C : {
4002
+ return t(J, null, [(ne(e.waterMark) ? e.waterMark : (F = o == null ? void 0 : o.waterMark) != null && F.value) ? t(Xa, u.value, gi(C = m()) ? C : {
4003
4003
  default: () => [C]
4004
4004
  }) : m()]);
4005
4005
  };
@@ -4903,18 +4903,18 @@ const {
4903
4903
  });
4904
4904
  const _ = (B, k, D) => {
4905
4905
  var ge, H, G;
4906
- const W = ["header", "sider"], J = {};
4906
+ const W = ["header", "sider"], ee = {};
4907
4907
  if (D != null && D.subKey && W.includes(B)) {
4908
- J[B] = {}, J[B][D == null ? void 0 : D.subKey] = k, (ge = e.onLayoutChange) == null || ge.call(e, ae(J, W));
4908
+ ee[B] = {}, ee[B][D == null ? void 0 : D.subKey] = k, (ge = e.onLayoutChange) == null || ge.call(e, ae(ee, W));
4909
4909
  return;
4910
4910
  } else
4911
- B === "animate" ? (J[B] = {}, D != null && D.subKey && (J[B][D == null ? void 0 : D.subKey] = k), (D == null ? void 0 : D.subKey) === "name" && (J[B].direction = (G = (H = Li.find((te) => te.name === k)) == null ? void 0 : H.directions) == null ? void 0 : G[0])) : J[B] = k;
4911
+ B === "animate" ? (ee[B] = {}, D != null && D.subKey && (ee[B][D == null ? void 0 : D.subKey] = k), (D == null ? void 0 : D.subKey) === "name" && (ee[B].direction = (G = (H = Li.find((Z) => Z.name === k)) == null ? void 0 : H.directions) == null ? void 0 : G[0])) : ee[B] = k;
4912
4912
  if (B === "colorWeak") {
4913
- const te = document.querySelector("body");
4914
- te && (te.dataset.prosettingdrawer = k === !0 ? te.style.filter : te.dataset.prosettingdrawer || "none", k === !0 && (te.dataset.prosettingdrawer = te.style.filter), te.style.filter = k === !0 ? "invert(80%)" : te.dataset.prosettingdrawer || "none", k || delete te.dataset.prosettingdrawer);
4913
+ const Z = document.querySelector("body");
4914
+ Z && (Z.dataset.prosettingdrawer = k === !0 ? Z.style.filter : Z.dataset.prosettingdrawer || "none", k === !0 && (Z.dataset.prosettingdrawer = Z.style.filter), Z.style.filter = k === !0 ? "invert(80%)" : Z.dataset.prosettingdrawer || "none", k || delete Z.dataset.prosettingdrawer);
4915
4915
  }
4916
4916
  C(Ce(re(w), {
4917
- ...zo(Me(J, W))
4917
+ ...zo(Me(ee, W))
4918
4918
  }));
4919
4919
  }, X = (B) => {
4920
4920
  l.value.dark = B === "system" ? B : B === "dark", R(null, B === "system" ? B : B === "dark");
@@ -4994,7 +4994,7 @@ const {
4994
4994
  settingValue: w.value,
4995
4995
  onChange: (k, D) => _(D || "primaryColor", k)
4996
4996
  }, null)]
4997
- }), !e.themeOnly && t(Z, null, [t(st, null, null), t(Ee, {
4997
+ }), !e.themeOnly && t(J, null, [t(st, null, null), t(Ee, {
4998
4998
  hashId: c.value,
4999
4999
  prefixCls: o,
5000
5000
  title: "导航模式"
@@ -5018,7 +5018,7 @@ const {
5018
5018
  prefixCls: o,
5019
5019
  hashId: c.value,
5020
5020
  valueKey: k,
5021
- onChange: (W, J) => _(W, J)
5021
+ onChange: (W, ee) => _(W, ee)
5022
5022
  }, null)), t(st, null, null), t(Ee, {
5023
5023
  hashId: c.value,
5024
5024
  prefixCls: o,
@@ -5040,7 +5040,7 @@ const {
5040
5040
  prefixCls: o,
5041
5041
  hashId: c.value,
5042
5042
  valueKey: k,
5043
- onChange: (W, J) => _(W, J)
5043
+ onChange: (W, ee) => _(W, ee)
5044
5044
  }, null)), e.weakmode && t(Ge, {
5045
5045
  label: "色弱模式",
5046
5046
  value: re(w).colorWeak,