@gx-design-vue/pro-layout 0.1.0-beta.23 → 0.1.0-beta.25

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,29 +1,29 @@
1
- import { defineComponent as E, createVNode as a, mergeProps as U, provide as ze, readonly as Vt, inject as mt, resolveComponent as ft, computed as C, isVNode as ne, Fragment as q, toRefs as Oe, unref as X, createTextVNode as Q, ref as me, reactive as Ne, watch as re, withDirectives as At, vShow as jt, getCurrentInstance as Wt, onMounted as ht, onUpdated as Kt, onUnmounted as Ut, watchEffect as Xt, onBeforeUnmount as Gt, Transition as Yt } from "vue";
2
- import { Spin as Ce, Menu as ee, ConfigProvider as He, Layout as fe, Drawer as ve, Breadcrumb as qt, Card as Zt, LayoutFooter as Jt, Tabs as _e, Dropdown as Qe, Tooltip as Me, List as te, Switch as gt, TabPane as Qt, Select as ye, message as en, Divider as ke, Alert as tn, Button as nn } from "ant-design-vue";
3
- import { useRouter as Ee, RouterLink as an } from "vue-router";
4
- import { createFromIconfontCN as on, MenuUnfoldOutlined as ln, MenuFoldOutlined as rn, GithubOutlined as sn, EllipsisOutlined as un, ReloadOutlined as dn, CloseOutlined as yt, CheckOutlined as bt, SettingOutlined as cn, NotificationOutlined as mn, CopyOutlined as fn } from "@ant-design/icons-vue";
5
- import hn, { themeConfig as A, Keyframe as u, useProStyle as Z, useProConfigContext as Re, useStyle as Ve, mergeToken as Ae, colorList as gn } from "@gx-design-vue/pro-provider";
6
- import { createTypes as yn } from "vue-types";
7
- import { pick as oe, cloneDeep as pt, omit as je } from "lodash-es";
8
- import { GPorWaterMark as bn } from "@gx-design-vue/pro-watermark";
9
- import { getSlot as K, isBoolean as pn, getPrefixCls as he, classNames as vt, isArray as vn, isBrowser as xn, merge as Cn } from "@gx-design-vue/pro-utils";
10
- import { useMediaQuery as et, useState as xe, useMergedState as wn } from "@gx-design-vue/pro-hooks";
1
+ import { defineComponent as H, createVNode as o, mergeProps as X, provide as De, readonly as Vt, inject as ct, resolveComponent as mt, computed as w, isVNode as ne, Fragment as q, toRefs as Ie, unref as U, createTextVNode as Q, ref as ve, reactive as ze, watch as le, withDirectives as At, vShow as Et, getCurrentInstance as jt, onMounted as Wt, onUpdated as Kt, onUnmounted as Ut, watchEffect as Xt, Transition as Gt } from "vue";
2
+ import { Spin as xe, Menu as ee, ConfigProvider as Ne, Layout as de, Drawer as be, Breadcrumb as Yt, Card as qt, LayoutFooter as Zt, Tabs as He, Dropdown as Qe, Tooltip as Oe, List as te, Switch as ft, TabPane as Jt, Select as he, message as Qt, Divider as Be, Alert as en, Button as tn } from "ant-design-vue";
3
+ import { useRouter as _e, RouterLink as nn } from "vue-router";
4
+ import { createFromIconfontCN as an, MenuUnfoldOutlined as on, MenuFoldOutlined as ln, GithubOutlined as rn, EllipsisOutlined as sn, ReloadOutlined as un, CloseOutlined as ht, CheckOutlined as gt, SettingOutlined as dn, NotificationOutlined as cn, CopyOutlined as mn } from "@ant-design/icons-vue";
5
+ import fn, { themeConfig as A, Keyframe as u, useProStyle as Z, useProConfigContext as Me, useStyle as Ve, mergeToken as Ae, colorList as hn } from "@gx-design-vue/pro-provider";
6
+ import { createTypes as gn } from "vue-types";
7
+ import { pick as ae, cloneDeep as yt, omit as Ee } from "lodash-es";
8
+ import { GPorWaterMark as yn } from "@gx-design-vue/pro-watermark";
9
+ import { getSlot as K, isBoolean as bn, getPrefixCls as ce, classNames as bt, isArray as pn, isBrowser as vn, merge as xn } from "@gx-design-vue/pro-utils";
10
+ import { useMediaQuery as Cn, useState as pe, useMergedState as wn } from "@gx-design-vue/pro-hooks";
11
11
  import { useWindowSize as Sn, useClipboard as In } from "@vueuse/core";
12
12
  import On from "@gx-design-vue/scrollbar";
13
- import { GColorPicker as tt } from "@gx-design-vue/color-picker";
14
- const Mn = /* @__PURE__ */ E({
13
+ import { GColorPicker as et } from "@gx-design-vue/color-picker";
14
+ const Mn = /* @__PURE__ */ H({
15
15
  name: "PageLoading",
16
16
  props: {
17
- ...Ce.props
17
+ ...xe.props
18
18
  },
19
19
  setup(e) {
20
- return a("div", {
20
+ return o("div", {
21
21
  style: {
22
22
  paddingTop: "100px",
23
23
  textAlign: "center"
24
24
  }
25
- }, [a(Ce, U(e, {
26
- indicator: a("i", {
25
+ }, [o(xe, X(e, {
26
+ indicator: o("i", {
27
27
  class: "toolsfont create-spin toolsfont tools-icon-jiazaizhong",
28
28
  style: {
29
29
  fontSize: "30px"
@@ -31,7 +31,7 @@ const Mn = /* @__PURE__ */ E({
31
31
  }, null)
32
32
  }), null)]);
33
33
  }
34
- }), xt = yn({
34
+ }), pt = gn({
35
35
  func: void 0,
36
36
  bool: void 0,
37
37
  string: void 0,
@@ -40,7 +40,7 @@ const Mn = /* @__PURE__ */ E({
40
40
  object: void 0,
41
41
  integer: void 0
42
42
  });
43
- xt.extend([{
43
+ pt.extend([{
44
44
  name: "looseBool",
45
45
  getter: !0,
46
46
  type: Boolean,
@@ -55,7 +55,7 @@ xt.extend([{
55
55
  getter: !0,
56
56
  type: null
57
57
  }]);
58
- const L = xt, le = {
58
+ const L = pt, ie = {
59
59
  theme: {
60
60
  type: String,
61
61
  default: A.theme
@@ -120,10 +120,10 @@ const L = xt, le = {
120
120
  type: String,
121
121
  default: A.primaryColor
122
122
  }
123
- }, ie = {
123
+ }, oe = {
124
124
  renderKey: L.string.def("menuHeaderRender"),
125
- title: le.title,
126
- layout: le.layout,
125
+ title: ie.title,
126
+ layout: ie.layout,
127
127
  logo: {
128
128
  type: [Object, String, Function],
129
129
  default: () => {
@@ -146,8 +146,8 @@ const L = xt, le = {
146
146
  }
147
147
  },
148
148
  onMenuHeaderClick: Function
149
- }, We = {
150
- ...le,
149
+ }, je = {
150
+ ...ie,
151
151
  mode: {
152
152
  type: String,
153
153
  default: "inline"
@@ -188,14 +188,20 @@ const L = xt, le = {
188
188
  type: [Function, Boolean],
189
189
  default: () => !1
190
190
  },
191
- onClick: [Function, Object]
191
+ onClick: [Function, Object],
192
+ onOpenKeys: {
193
+ type: Function
194
+ },
195
+ onSelect: {
196
+ type: Function
197
+ }
192
198
  }, Y = {
193
- ...le,
194
- ...We,
199
+ ...ie,
200
+ ...je,
195
201
  menuLoading: L.looseBool,
196
- logo: ie.logo,
197
- logoStyle: ie.logoStyle,
198
- logoDirection: ie.logoDirection,
202
+ logo: oe.logo,
203
+ logoStyle: oe.logoStyle,
204
+ logoDirection: oe.logoDirection,
199
205
  siderWidth: L.number.def(208),
200
206
  headerHeight: L.number.def(48),
201
207
  collapsedWidth: L.number.def(48),
@@ -240,50 +246,47 @@ const L = xt, le = {
240
246
  onMenuClick: L.func,
241
247
  onCollapse: {
242
248
  type: Function
243
- },
244
- onOpenKeys: {
245
- type: Function
246
- },
247
- onSelect: {
248
- type: Function
249
249
  }
250
- }, Rn = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/, Ct = (e) => Rn.test(e);
250
+ }, Rn = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/, vt = (e) => Rn.test(e);
251
251
  function Bn(e) {
252
252
  return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
253
253
  }
254
- function wt(e, t, n, o) {
255
- var l, d, m, y, b, p, r, T, w, M, s, I, v, c, h, f, k, S, O, F, R, D, N, H, z, g, x, $, B, P, j, W, V, _;
254
+ function xt(e, t, n, a) {
255
+ var r, d, m, b, h, S, s, k, l, p, I, M, g, c, f, v, T, x, O, F, R, D, _, N, z, y, C, $, B, P, j, W, E, V;
256
256
  const i = { ...e };
257
- return n === "light" ? (i.colorItemBg = (d = (l = t.layout) == null ? void 0 : l[o]) == null ? void 0 : d.colorBgMenu, i.colorSubItemBg = (y = (m = t.layout) == null ? void 0 : m[o]) == null ? void 0 : y.colorSubItemBg, i.colorItemBgSelected = (p = (b = t.layout) == null ? void 0 : b[o]) == null ? void 0 : p.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (T = (r = t.layout) == null ? void 0 : r[o]) == null ? void 0 : T.colorBgMenuItemSelected, i.colorItemText = (M = (w = t.layout) == null ? void 0 : w[o]) == null ? void 0 : M.colorTextMenu, i.colorItemTextHover = (I = (s = t.layout) == null ? void 0 : s[o]) == null ? void 0 : I.colorTextMenuHover, i.colorItemTextSelected = (c = (v = t.layout) == null ? void 0 : v[o]) == null ? void 0 : c.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (f = (h = t.layout) == null ? void 0 : h[o]) == null ? void 0 : f.colorTextMenuSelected, o === "sider" && (i.colorItemBgHover = (S = (k = t.layout) == null ? void 0 : k[o]) == null ? void 0 : S.colorBgMenuItemHover)) : n === "dark" && (i.colorItemBg = (F = (O = t.layout) == null ? void 0 : O[o]) == null ? void 0 : F.colorDarkBgMenu, i.colorSubItemBg = (D = (R = t.layout) == null ? void 0 : R[o]) == null ? void 0 : D.colorDarkSubItemBg, i.colorItemBgSelected = (H = (N = t.layout) == null ? void 0 : N[o]) == null ? void 0 : H.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (g = (z = t.layout) == null ? void 0 : z[o]) == null ? void 0 : g.colorDarkBgMenuItemSelected, i.colorItemText = ($ = (x = t.layout) == null ? void 0 : x[o]) == null ? void 0 : $.colorDarkTextMenu, i.colorItemTextHover = (P = (B = t.layout) == null ? void 0 : B[o]) == null ? void 0 : P.colorDarkTextMenuHover, i.colorItemTextSelected = (W = (j = t.layout) == null ? void 0 : j[o]) == null ? void 0 : W.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (_ = (V = t.layout) == null ? void 0 : V[o]) == null ? void 0 : _.colorDarkTextMenuSelected, o === "header" && (i.colorActiveBarHeight = 0)), i;
257
+ return n === "light" ? (i.colorItemBg = (d = (r = t.layout) == null ? void 0 : r[a]) == null ? void 0 : d.colorBgMenu, i.colorSubItemBg = (b = (m = t.layout) == null ? void 0 : m[a]) == null ? void 0 : b.colorSubItemBg, i.colorItemBgSelected = (S = (h = t.layout) == null ? void 0 : h[a]) == null ? void 0 : S.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (k = (s = t.layout) == null ? void 0 : s[a]) == null ? void 0 : k.colorBgMenuItemSelected, i.colorItemText = (p = (l = t.layout) == null ? void 0 : l[a]) == null ? void 0 : p.colorTextMenu, i.colorItemTextHover = (M = (I = t.layout) == null ? void 0 : I[a]) == null ? void 0 : M.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 = (x = (T = t.layout) == null ? void 0 : T[a]) == null ? void 0 : x.colorBgMenuItemHover)) : n === "dark" && (i.colorItemBg = (F = (O = t.layout) == null ? void 0 : O[a]) == null ? void 0 : F.colorDarkBgMenu, i.colorSubItemBg = (D = (R = t.layout) == null ? void 0 : R[a]) == null ? void 0 : D.colorDarkSubItemBg, i.colorItemBgSelected = (N = (_ = t.layout) == null ? void 0 : _[a]) == null ? void 0 : N.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (y = (z = t.layout) == null ? void 0 : z[a]) == null ? void 0 : y.colorDarkBgMenuItemSelected, i.colorItemText = ($ = (C = t.layout) == null ? void 0 : C[a]) == null ? void 0 : $.colorDarkTextMenu, i.colorItemTextHover = (P = (B = t.layout) == null ? void 0 : B[a]) == null ? void 0 : P.colorDarkTextMenuHover, i.colorItemTextSelected = (W = (j = t.layout) == null ? void 0 : j[a]) == null ? void 0 : W.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (V = (E = t.layout) == null ? void 0 : E[a]) == null ? void 0 : V.colorDarkTextMenuSelected, a === "header" && (i.colorActiveBarHeight = 0)), i;
258
258
  }
259
- const kn = ["left", "right"], de = ["left", "right", "down", "up"], $n = ["downBig", "upBig", "leftBig", "rightBig"], Tn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Fn = ["downLeft", "upRight", "downRight", "upLeft"], Ke = {
259
+ const kn = ["left", "right"], se = ["left", "right", "down", "up"], $n = ["downBig", "upBig", "leftBig", "rightBig"], Tn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Fn = ["downLeft", "upRight", "downRight", "upLeft"], We = {
260
260
  preset: [
261
261
  //预设动画配置
262
- { name: "back", alias: "渐近", directions: de },
263
- { name: "bounce", alias: "弹跳", directions: de.concat("default") },
262
+ { name: "back", alias: "渐近", directions: se },
263
+ { name: "bounce", alias: "弹跳", directions: se.concat("default") },
264
264
  {
265
265
  name: "fade",
266
266
  alias: "淡化",
267
- directions: de.concat($n).concat(Tn).concat("default")
267
+ directions: se.concat($n).concat(Tn).concat("default")
268
268
  },
269
269
  { name: "flip", alias: "翻转", directions: ["x", "y"] },
270
270
  { name: "lightSpeed", alias: "光速", directions: kn },
271
271
  { name: "rotate", alias: "旋转", directions: Fn.concat("default") },
272
272
  { name: "roll", alias: "翻滚", directions: ["default"] },
273
- { name: "zoom", alias: "缩放", directions: de.concat("default") },
274
- { name: "slide", alias: "滑动", directions: de }
273
+ { name: "zoom", alias: "缩放", directions: se.concat("default") },
274
+ { name: "slide", alias: "滑动", directions: se }
275
275
  ]
276
276
  };
277
+ function Ct(e, t) {
278
+ return t != null && t.isNamed && (t == null ? void 0 : t.target) || e;
279
+ }
277
280
  function Pn(e) {
278
281
  return e.map((t) => {
279
- var o;
282
+ var a;
280
283
  const n = { ...t };
281
- if (!n.name || (o = n.meta) != null && o.hideInMenu)
284
+ if (!n.name || (a = n.meta) != null && a.hideInMenu)
282
285
  return null;
283
286
  if (n && (n != null && n.children)) {
284
287
  if (n.children.some((i) => {
285
- var l;
286
- return i && i.name && !((l = i.meta) != null && l.hideInMenu);
288
+ var r;
289
+ return i && i.name && !((r = i.meta) != null && r.hideInMenu);
287
290
  }))
288
291
  return {
289
292
  ...t,
@@ -296,20 +299,23 @@ function Pn(e) {
296
299
  }
297
300
  function Ln(e) {
298
301
  return e.map((t) => {
299
- var o;
302
+ var a;
300
303
  const n = { ...t };
301
- return !n.name || (o = n.meta) != null && o.hideInMenu ? null : (n.linkPath = zn(n.children || []), n.children && delete n.children, n);
304
+ return !n.name || (a = n.meta) != null && a.hideInMenu ? null : (n.linkPath = zn(n.children || []), n.children && delete n.children, n);
302
305
  }).filter((t) => t);
303
306
  }
304
307
  function Dn(e, t) {
305
- const n = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`;
306
- return t === void 0 ? [] : (e[e.findIndex((o) => o.path === n)] || {}).children || [];
308
+ const n = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`, a = e.find((i) => {
309
+ var r;
310
+ return (r = i.meta) != null && r.isNamed ? i.path.includes(n) : i.path === n;
311
+ });
312
+ return t === void 0 ? [] : (a == null ? void 0 : a.children) || [];
307
313
  }
308
314
  function zn(e) {
309
315
  let t = "";
310
- const n = function(o) {
316
+ const n = function(a) {
311
317
  let i = "";
312
- return o.children && o.children.length > 0 ? i = n(o.children[0]) : i = `${o.path}`, i;
318
+ return a.children && a.children.length > 0 ? i = n(a.children[0]) : i = `${a.path}`, i;
313
319
  };
314
320
  return e.length > 0 && e[0].children && e[0].children.length > 0 ? t = n(e[0].children[0]) : t = e.length > 0 ? e[0].path : "", t;
315
321
  }
@@ -318,15 +324,15 @@ function Nn(e) {
318
324
  }
319
325
  function Hn(e) {
320
326
  const t = ["showTabsBar", "fixedMultiTab", "fixSiderbar", "fixedHeader", "splitMenus"];
321
- let o = Object.keys(e).reduce((i, l) => (i[l] = !1, i), {});
322
- return o = _n(o, t), e.layout === "mix" && (o.fixSiderbar = !0, o.fixedHeader = !0), e.layout === "side" && (o.splitMenus = !0), e.layout === "simple" && (o.splitMenus = !0, o.fixedHeader = !0, o.showTabsBar = !0, o.fixedMultiTab = !0), e.layout === "wide" && (o.splitMenus = !0, o.fixedHeader = !0, o.fixSiderbar = !0, o.showTabsBar = !0, o.fixedMultiTab = !0), o;
327
+ let a = Object.keys(e).reduce((i, r) => (i[r] = !1, i), {});
328
+ return a = _n(a, t), e.layout === "mix" && (a.fixSiderbar = !0, a.fixedHeader = !0), e.layout === "side" && (a.splitMenus = !0), e.layout === "simple" && (a.splitMenus = !0, a.fixedHeader = !0, a.showTabsBar = !0, a.fixedMultiTab = !0), e.layout === "wide" && (a.splitMenus = !0, a.fixedHeader = !0, a.fixSiderbar = !0, a.showTabsBar = !0, a.fixedMultiTab = !0), a;
323
329
  }
324
330
  function _n(e, t) {
325
331
  return {
326
- ...t.reduce((n, o) => ({ ...n, [o]: e[o] }), {})
332
+ ...t.reduce((n, a) => ({ ...n, [a]: e[a] }), {})
327
333
  };
328
334
  }
329
- const En = (e = Symbol(), t = "Context.Provider") => E({
335
+ const Vn = (e = Symbol(), t = "Context.Provider") => H({
330
336
  name: t,
331
337
  props: {
332
338
  value: {
@@ -334,51 +340,51 @@ const En = (e = Symbol(), t = "Context.Provider") => E({
334
340
  required: !0
335
341
  }
336
342
  },
337
- setup(o, { slots: i }) {
338
- return ze(e, Vt(o.value)), () => {
339
- var l;
340
- return (l = i.default) == null ? void 0 : l.call(i);
343
+ setup(a, { slots: i }) {
344
+ return De(e, Vt(a.value)), () => {
345
+ var r;
346
+ return (r = i.default) == null ? void 0 : r.call(i);
341
347
  };
342
348
  }
343
- }), Vn = (e = Symbol(), t) => mt(e, t || {}), Ue = Symbol("pro-layout-context"), An = () => En(Ue, "ProLayoutContext.Provider"), jn = (e) => {
344
- ze(Ue, e);
345
- }, J = () => Vn(Ue);
346
- An();
347
- function nt(e) {
349
+ }), An = (e = Symbol(), t) => ct(e, t || {}), Ke = Symbol("pro-layout-context"), En = () => Vn(Ke, "ProLayoutContext.Provider"), jn = (e) => {
350
+ De(Ke, e);
351
+ }, J = () => An(Ke);
352
+ En();
353
+ function tt(e) {
348
354
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
349
355
  }
350
- const we = (e) => {
356
+ const Ce = (e) => {
351
357
  const {
352
358
  icon: t,
353
359
  iconType: n,
354
- iconfontUrl: o
360
+ iconfontUrl: a
355
361
  } = e;
356
362
  if (!t)
357
363
  return null;
358
364
  if (typeof t == "string" && t !== "") {
359
- if (Ct(t) || Bn(t))
360
- return a("img", {
365
+ if (vt(t) || Bn(t))
366
+ return o("img", {
361
367
  src: t,
362
368
  alt: "icon",
363
369
  class: `${e.className}-icon-image`
364
370
  }, null);
365
371
  if (n === 1) {
366
- const l = on({
367
- scriptUrl: o || A.iconfontUrl
372
+ const r = an({
373
+ scriptUrl: a || A.iconfontUrl
368
374
  });
369
- return o ? a(l, {
375
+ return a ? o(r, {
370
376
  type: t
371
- }, null) : a("i", {
377
+ }, null) : o("i", {
372
378
  class: `iconfont ${t} ${e.className}-icon`
373
379
  }, null);
374
380
  }
375
381
  }
376
382
  if (ne(t))
377
383
  return t;
378
- const i = ft(t);
379
- return typeof we == "function" && a(i, null, null) || null;
384
+ const i = mt(t);
385
+ return typeof Ce == "function" && o(i, null, null) || null;
380
386
  };
381
- we.props = {
387
+ Ce.props = {
382
388
  icon: {
383
389
  type: [String, Function, Object]
384
390
  },
@@ -386,116 +392,113 @@ we.props = {
386
392
  className: String,
387
393
  iconfontUrl: String
388
394
  };
389
- const St = /* @__PURE__ */ E({
395
+ const wt = /* @__PURE__ */ H({
390
396
  name: "BaseMenu",
391
- props: We,
392
- emits: ["update:openKeys", "update:selectedKeys", "click"],
393
- setup(e, {
394
- attrs: t,
395
- emit: n
396
- }) {
397
- const o = Ee(), {
398
- getPrefixCls: i
399
- } = J(), l = i({
397
+ props: je,
398
+ setup(e) {
399
+ const t = _e(), {
400
+ getPrefixCls: n
401
+ } = J(), a = n({
400
402
  suffixCls: "menu-item",
401
403
  isPor: !0
402
- }), d = (s) => {
403
- n("update:openKeys", s);
404
- }, m = (s) => {
405
- n("update:selectedKeys", s.selectedKeys);
406
- }, y = (s) => {
407
- n("click", s);
408
- }, b = (s, I) => {
409
- var h;
410
- const v = s.target || "", c = Ct(v);
411
- ((h = o.currentRoute.value) == null ? void 0 : h.fullPath) !== I.to && c && v && s.targetStatus === 1 && window.open(v);
412
- }, p = ft("router-link"), r = (s = []) => s.map((I) => T(I)).filter((I) => I), T = (s) => {
413
- var c, h, f, k, S, O, F, R, D;
414
- if (Array.isArray(s.children) && s.children.length > 0 && !((c = s == null ? void 0 : s.meta) != null && c.hideInMenu) && !((h = s == null ? void 0 : s.meta) != null && h.hideChildrenInMenu)) {
415
- let N;
404
+ }), i = (l) => {
405
+ var p;
406
+ (p = e.onOpenKeys) == null || p.call(e, l);
407
+ }, r = (l) => {
408
+ var p;
409
+ (p = e.onSelect) == null || p.call(e, l.selectedKeys);
410
+ }, d = (l) => {
411
+ var p;
412
+ (p = e.onClick) == null || p.call(e, ...l);
413
+ }, m = (l, p) => {
414
+ var g;
415
+ const I = l.target || "", M = vt(I);
416
+ ((g = t.currentRoute.value) == null ? void 0 : g.fullPath) !== p.to && M && I && l.targetStatus === 1 && window.open(I);
417
+ }, b = mt("router-link"), h = (l = []) => l.map((p) => S(p)).filter((p) => p), S = (l) => {
418
+ var M, g, c, f, v, T, x, O, F;
419
+ if (Array.isArray(l.children) && l.children.length > 0 && !((M = l == null ? void 0 : l.meta) != null && M.hideInMenu) && !((g = l == null ? void 0 : l.meta) != null && g.hideChildrenInMenu)) {
420
+ let R;
416
421
  if (e.subMenuItemRender)
417
422
  return e.subMenuItemRender({
418
- item: s,
419
- children: r(s.children)
423
+ item: l,
424
+ children: h(l.children)
420
425
  });
421
- const H = (f = s.meta) == null ? void 0 : f.title, z = (k = s.meta) != null && k.icon ? a("span", {
426
+ const D = (c = l.meta) == null ? void 0 : c.title, _ = (f = l.meta) != null && f.icon ? o("span", {
422
427
  class: "gx-pro-sider-menu-item"
423
- }, [a("span", {
428
+ }, [o("span", {
424
429
  class: "gx-pro-sider-menu-item-title"
425
- }, [H])]) : a("span", {
430
+ }, [D])]) : o("span", {
426
431
  class: "gx-pro-sider-menu-item"
427
- }, [H]), g = ((S = s.meta) == null ? void 0 : S.type) === "group", x = g ? ee.ItemGroup : ee.SubMenu;
428
- return a(x, {
429
- title: z,
430
- key: s.path,
431
- icon: g ? null : a(we, {
432
- className: l,
433
- icon: (O = s.meta) == null ? void 0 : O.icon,
432
+ }, [D]), N = ((v = l.meta) == null ? void 0 : v.type) === "group", z = N ? ee.ItemGroup : ee.SubMenu;
433
+ return o(z, {
434
+ title: _,
435
+ key: l.path,
436
+ icon: N ? null : o(Ce, {
437
+ className: a,
438
+ icon: (T = l.meta) == null ? void 0 : T.icon,
434
439
  iconfontUrl: e.iconfontUrl,
435
- iconType: (F = s.meta) == null ? void 0 : F.iconType
440
+ iconType: (x = l.meta) == null ? void 0 : x.iconType
436
441
  }, null)
437
- }, nt(N = r(s.children)) ? N : {
438
- default: () => [N]
442
+ }, tt(R = h(l.children)) ? R : {
443
+ default: () => [R]
439
444
  });
440
445
  }
441
- const [I, v] = w(s);
446
+ const [p, I] = s(l);
442
447
  return e.menuItemRender && e.menuItemRender({
443
- item: s,
444
- title: I,
445
- icon: v
446
- }) || a(ee.Item, {
447
- disabled: (R = s.meta) == null ? void 0 : R.disabled,
448
- danger: (D = s.meta) == null ? void 0 : D.danger,
449
- key: s.path,
450
- icon: v
451
- }, nt(I) ? I : {
452
- default: () => [I]
448
+ item: l,
449
+ title: p,
450
+ icon: I
451
+ }) || o(ee.Item, {
452
+ disabled: (O = l.meta) == null ? void 0 : O.disabled,
453
+ danger: (F = l.meta) == null ? void 0 : F.danger,
454
+ key: l.path,
455
+ icon: I
456
+ }, tt(p) ? p : {
457
+ default: () => [p]
453
458
  });
454
- }, w = (s) => {
455
- var S, O, F, R, D;
456
- const I = {
457
- ...s.meta
458
- }, v = I.targetStatus === 1 && I.target ? "a" : p, c = {
459
- to: s.linkPath || s.path || ""
459
+ }, s = (l) => {
460
+ var T, x, O, F, R;
461
+ const p = {
462
+ ...l.meta
463
+ }, I = p.targetStatus === 1 && p.target ? "a" : b, M = l.linkPath || l.path || "", g = {
464
+ to: Ct(M, p)
460
465
  };
461
- c.to === "/live/list/operation/:id" && (c.to = "/live/list/operation/add");
462
- const h = (S = s.meta) == null ? void 0 : S.title, f = (O = s.meta) != null && O.icon ? a(v, U(c, {
466
+ g.to === "/live/list/operation/:id" && (g.to = "/live/list/operation/add");
467
+ const c = (T = l.meta) == null ? void 0 : T.title, f = (x = l.meta) != null && x.icon ? o(I, X(g, {
463
468
  class: "gx-pro-sider-menu-item",
464
- onClick: () => b(I, c)
469
+ onClick: () => m(p, g)
465
470
  }), {
466
- default: () => [a("span", {
471
+ default: () => [o("span", {
467
472
  class: "gx-pro-sider-menu-item-title"
468
- }, [h])]
469
- }) : a(v, U(c, {
473
+ }, [c])]
474
+ }) : o(I, X(g, {
470
475
  class: "gx-pro-sider-menu-item",
471
- onClick: () => b(I, c)
476
+ onClick: () => m(p, g)
472
477
  }), {
473
- default: () => [a("span", null, [h])]
474
- }), k = ((F = s.meta) == null ? void 0 : F.icon) && a(we, {
475
- className: l,
476
- icon: (R = s.meta) == null ? void 0 : R.icon,
478
+ default: () => [o("span", null, [c])]
479
+ }), v = ((O = l.meta) == null ? void 0 : O.icon) && o(Ce, {
480
+ className: a,
481
+ icon: (F = l.meta) == null ? void 0 : F.icon,
477
482
  iconfontUrl: e.iconfontUrl,
478
- iconType: (D = s.meta) == null ? void 0 : D.iconType
483
+ iconType: (R = l.meta) == null ? void 0 : R.iconType
479
484
  }, null) || void 0;
480
- return [f, k];
481
- }, M = C(() => r(e.menuData));
482
- return () => a(ee, U({
485
+ return [f, v];
486
+ }, k = w(() => h(e.menuData));
487
+ return () => o(ee, X({
483
488
  key: "Menu",
484
489
  inlineIndent: 16,
485
490
  mode: e.mode,
486
491
  theme: e.theme,
487
492
  openKeys: e.openKeys === !1 ? [] : e.openKeys,
488
493
  selectedKeys: e.selectedKeys || [],
489
- style: t.style,
490
- class: `${t.class}`,
491
- onOpenChange: d,
492
- onSelect: m,
493
- onClick: y
494
+ onOpenChange: i,
495
+ onSelect: r,
496
+ onClick: d
494
497
  }, e.menuProps), {
495
- default: () => [M.value]
498
+ default: () => [k.value]
496
499
  });
497
500
  }
498
- }), It = new u("pro-layout-title-hide", {
501
+ }), St = new u("pro-layout-title-hide", {
499
502
  "0%": { display: "none", opacity: 0 },
500
503
  "99%": {
501
504
  display: "none",
@@ -517,7 +520,7 @@ const St = /* @__PURE__ */ E({
517
520
  }
518
521
  };
519
522
  }, Kn = (e) => {
520
- var t, n, o, i, l, d, m, y, b, p, r, T;
523
+ var t, n, a, i, r, d, m, b, h, S, s, k;
521
524
  return {
522
525
  [`${e.proComponentsCls}-basic-layout`]: {
523
526
  [`&${e.proComponentsCls}-basic-layout-wide`]: {
@@ -547,20 +550,17 @@ const St = /* @__PURE__ */ E({
547
550
  height: "100%"
548
551
  },
549
552
  "&-light": {
550
- background: (i = (o = e.layout) == null ? void 0 : o.sider) == null ? void 0 : i.colorBgMenu,
553
+ background: (i = (a = e.layout) == null ? void 0 : a.sider) == null ? void 0 : i.colorBgMenu,
551
554
  boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
552
555
  [`${e.componentCls}-footer`]: {
553
- color: (d = (l = e.layout) == null ? void 0 : l.sider) == null ? void 0 : d.colorTextMenu
556
+ color: (d = (r = e.layout) == null ? void 0 : r.sider) == null ? void 0 : d.colorTextMenu
554
557
  }
555
558
  },
556
559
  "&-links": {
557
560
  width: "100%",
558
561
  borderTop: "1px solid rgba(0,0,0,.06)",
559
562
  ul: {
560
- height: "auto",
561
- [`${e.antCls}-menu-item`]: {
562
- width: "calc(100% + 1px)"
563
- }
563
+ height: "auto"
564
564
  }
565
565
  },
566
566
  "&-link-menu": {
@@ -569,10 +569,10 @@ const St = /* @__PURE__ */ E({
569
569
  background: "transparent"
570
570
  },
571
571
  "&-footer": {
572
- color: (y = (m = e.layout) == null ? void 0 : m.sider) == null ? void 0 : y.colorDarkTextMenu,
572
+ color: (b = (m = e.layout) == null ? void 0 : m.sider) == null ? void 0 : b.colorDarkTextMenu,
573
573
  paddingBlockEnd: 16,
574
574
  fontSize: e.fontSize,
575
- animationName: It,
575
+ animationName: St,
576
576
  animationDuration: ".4s",
577
577
  animationTimingFunction: "ease"
578
578
  }
@@ -584,8 +584,8 @@ const St = /* @__PURE__ */ E({
584
584
  zIndex: "100",
585
585
  height: "100%",
586
586
  "&-mix": {
587
- height: `calc(100% - ${((p = (b = e.layout) == null ? void 0 : b.header) == null ? void 0 : p.heightLayoutHeader) || A.headerHeight}px)`,
588
- insetBlockStart: `${((T = (r = e.layout) == null ? void 0 : r.header) == null ? void 0 : T.heightLayoutHeader) || A.headerHeight}px`
587
+ height: `calc(100% - ${((S = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : S.heightLayoutHeader) || A.headerHeight}px)`,
588
+ insetBlockStart: `${((k = (s = e.layout) == null ? void 0 : s.header) == null ? void 0 : k.heightLayoutHeader) || A.headerHeight}px`
589
589
  }
590
590
  }
591
591
  }
@@ -633,7 +633,7 @@ const St = /* @__PURE__ */ E({
633
633
  marginInlineEnd: 0,
634
634
  marginInlineStart: 12,
635
635
  color: e.colorWhite,
636
- animationName: It,
636
+ animationName: St,
637
637
  animationDuration: ".2s",
638
638
  fontWeight: 600,
639
639
  fontSize: 18,
@@ -658,96 +658,96 @@ const St = /* @__PURE__ */ E({
658
658
  }
659
659
  }
660
660
  }
661
- }), Ot = (e, t) => e ? typeof e == "string" ? a("img", {
661
+ }), It = (e, t) => e ? typeof e == "string" ? o("img", {
662
662
  src: e,
663
663
  alt: "logo",
664
664
  style: t
665
665
  }, null) : typeof e == "function" ? e() : e : null, Gn = (e, t = "menuHeaderRender") => {
666
666
  const {
667
667
  logo: n,
668
- logoStyle: o,
668
+ logoStyle: a,
669
669
  title: i,
670
- layout: l
670
+ layout: r
671
671
  } = e, d = e[t || ""];
672
672
  if (d === !1)
673
673
  return null;
674
- const m = Ot(n, o), y = i && a("h1", null, [i]);
675
- return typeof d == "function" ? d(m, e.collapsed ? null : y, e) : a(q, null, [m || null, e.collapsed && l === "side" ? null : y]);
676
- }, Xe = /* @__PURE__ */ E({
674
+ const m = It(n, a), b = i && o("h1", null, [i]);
675
+ return typeof d == "function" ? d(m, e.collapsed ? null : b, e) : o(q, null, [m || null, e.collapsed && r === "side" ? null : b]);
676
+ }, Ue = /* @__PURE__ */ H({
677
677
  name: "LogoContent",
678
- props: ie,
678
+ props: oe,
679
679
  setup(e) {
680
680
  const {
681
681
  getPrefixCls: t
682
- } = J(), n = C(() => e.layout === "side" || e.layout === "simple"), o = C(() => t({
682
+ } = J(), n = w(() => e.layout === "side" || e.layout === "simple"), a = w(() => t({
683
683
  suffixCls: n.value || e.drawer ? "sider" : "global-header",
684
684
  isPor: !0
685
685
  })), {
686
686
  wrapSSR: i,
687
- hashId: l
688
- } = Z("ProLayoutLogo", [Xn]), d = C(() => Gn(e, e.renderKey));
689
- return () => i(a("div", {
687
+ hashId: r
688
+ } = Z("ProLayoutLogo", [Xn]), d = w(() => Gn(e, e.renderKey));
689
+ return () => i(o("div", {
690
690
  id: "logo",
691
691
  class: {
692
- [`${l.value}`]: !0,
693
- [`${o.value}-logo`]: !0,
694
- [`${o.value}-logo-collapsed`]: !!e.collapsed
692
+ [`${r.value}`]: !0,
693
+ [`${a.value}-logo`]: !0,
694
+ [`${a.value}-logo-collapsed`]: !!e.collapsed
695
695
  },
696
696
  onClick: () => {
697
697
  var m;
698
698
  return (m = e.onMenuHeaderClick) == null ? void 0 : m.call(e);
699
699
  }
700
- }, [a("a", null, [d.value || null])]));
700
+ }, [o("a", null, [d.value || null])]));
701
701
  }
702
702
  });
703
- Xe.inheritAttrs = !1;
703
+ Ue.inheritAttrs = !1;
704
704
  function Yn(e) {
705
705
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
706
706
  }
707
707
  const {
708
708
  Sider: qn
709
- } = fe, {
710
- Item: at
711
- } = ee, Mt = (e) => e ? a(ln, null, null) : a(rn, null, null), ot = /* @__PURE__ */ E({
709
+ } = de, {
710
+ Item: nt
711
+ } = ee, Ot = (e) => e ? o(on, null, null) : o(ln, null, null), at = /* @__PURE__ */ H({
712
712
  props: Y,
713
713
  inheritAttrs: !1,
714
714
  setup(e) {
715
715
  const {
716
716
  getPrefixCls: t,
717
717
  selectedKeys: n,
718
- flatMenuData: o,
718
+ flatMenuData: a,
719
719
  menuData: i,
720
- openKeys: l
720
+ openKeys: r
721
721
  } = J(), {
722
722
  token: d
723
- } = Re(), {
723
+ } = Me(), {
724
724
  theme: m,
725
- layout: y,
726
- isMobile: b,
727
- menuLoading: p,
728
- breakpoint: r,
729
- fixSiderbar: T,
730
- collapsed: w,
731
- siderWidth: M,
732
- collapsedWidth: s,
733
- menuExtraRender: I,
734
- menuContentRender: v,
725
+ layout: b,
726
+ isMobile: h,
727
+ menuLoading: S,
728
+ breakpoint: s,
729
+ fixSiderbar: k,
730
+ collapsed: l,
731
+ siderWidth: p,
732
+ collapsedWidth: I,
733
+ menuExtraRender: M,
734
+ menuContentRender: g,
735
735
  menuFooterRender: c,
736
- collapsedButtonRender: h,
737
- links: f
738
- } = Oe(e), k = t({
736
+ collapsedButtonRender: f,
737
+ links: v
738
+ } = Ie(e), T = t({
739
739
  suffixCls: "sider",
740
740
  isPor: !0
741
741
  }), {
742
- wrapSSR: S,
742
+ wrapSSR: x,
743
743
  hashId: O
744
- } = Z("ProLayoutSiderMenu", [Wn, Kn, Un], k), F = C(() => e.layout === "wide"), R = C(() => e.layout === "mix" && !e.isMobile && e.splitMenus), D = C(() => y.value === "side" || y.value === "simple"), N = C(() => (e.layout === "mix" || F.value) && "light" || m.value), H = C(() => e.collapsed ? e.collapsedWidth : e.siderWidth), z = C(() => [O.value, k, b.value ? "shadow" : null, `${k}-${N.value}`, T.value && e.layout !== "wide" ? `${k}-fixed` : null]), g = C(() => {
744
+ } = Z("ProLayoutSiderMenu", [Wn, Kn, Un], T), F = w(() => e.layout === "wide"), R = w(() => e.layout === "mix" && !e.isMobile && e.splitMenus), D = w(() => b.value === "side" || b.value === "simple"), _ = w(() => (e.layout === "mix" || F.value) && "light" || m.value), N = w(() => e.collapsed ? e.collapsedWidth : e.siderWidth), z = w(() => [O.value, T, h.value ? "shadow" : null, `${T}-${_.value}`, k.value && e.layout !== "wide" ? `${T}-fixed` : null]), y = w(() => {
745
745
  var B;
746
- return typeof f.value == "function" ? (B = f.value) == null ? void 0 : B.call(f) : f.value;
747
- }), x = C(() => h.value !== !1 ? h.value || Mt : !1), $ = (B) => {
746
+ return typeof v.value == "function" ? (B = v.value) == null ? void 0 : B.call(v) : v.value;
747
+ }), C = w(() => f.value !== !1 ? f.value || Ot : !1), $ = (B) => {
748
748
  var P;
749
749
  if (e.onSelect) {
750
- if (X(R)) {
750
+ if (U(R)) {
751
751
  e.onSelect([(P = n == null ? void 0 : n.value) == null ? void 0 : P[0], ...B]);
752
752
  return;
753
753
  }
@@ -756,128 +756,122 @@ const {
756
756
  };
757
757
  return () => {
758
758
  var W;
759
- const B = D.value ? a(Xe, U({
760
- drawer: b.value
761
- }, e), null) : null, P = I.value && ((W = I.value) == null ? void 0 : W.call(I, e)), j = a(St, U({
762
- class: `${k}-menu ${O.value}`,
763
- theme: N.value,
759
+ const B = D.value ? o(Ue, X({
760
+ drawer: h.value
761
+ }, e), null) : null, P = M.value && ((W = M.value) == null ? void 0 : W.call(M, e)), j = o(wt, {
762
+ class: `${T}-menu ${O.value}`,
763
+ theme: _.value,
764
764
  mode: "inline",
765
- menuData: R.value ? o.value : i.value,
766
- collapsed: e.collapsed,
765
+ menuData: R.value ? a.value : i.value,
767
766
  iconfontUrl: e.iconfontUrl,
768
- openKeys: l.value,
767
+ openKeys: r.value,
769
768
  selectedKeys: n.value,
770
769
  menuItemRender: e.menuItemRender,
771
770
  subMenuItemRender: e.subMenuItemRender,
772
771
  onClick: e.onMenuClick,
773
772
  style: {
774
773
  width: "100%"
775
- }
776
- }, {
777
- "onUpdate:openKeys": (V) => {
778
- var _;
779
- return e.onOpenKeys && ((_ = e.onOpenKeys) == null ? void 0 : _.call(e, V));
780
774
  },
781
- "onUpdate:selectedKeys": $
782
- }), null);
783
- return R.value && X(o.value).length === 0 || i.value.length === 0 ? null : S(a(He, {
775
+ onOpenKeys: (E) => {
776
+ var V;
777
+ return e.onOpenKeys && ((V = e.onOpenKeys) == null ? void 0 : V.call(e, E));
778
+ },
779
+ onSelect: $
780
+ }, null);
781
+ return R.value && U(a.value).length === 0 || i.value.length === 0 ? null : x(o(Ne, {
784
782
  theme: {
785
783
  components: {
786
- Menu: wt({
784
+ Menu: xt({
787
785
  radiusItem: 4,
788
786
  colorActiveBarWidth: 0,
789
787
  colorActiveBarHeight: 0,
790
788
  colorActiveBarBorderSize: 0
791
789
  // 主题颜色
792
- }, (d == null ? void 0 : d.value) || {}, N.value, "sider")
790
+ }, (d == null ? void 0 : d.value) || {}, _.value, "sider")
793
791
  }
794
792
  }
795
793
  }, {
796
- default: () => [T.value && a("div", {
794
+ default: () => [k.value && o("div", {
797
795
  style: {
798
- width: `${H.value}px`,
796
+ width: `${N.value}px`,
799
797
  overflow: "hidden",
800
- flex: `0 0 ${H.value}px`,
801
- maxWidth: `${H.value}px`,
802
- minWidth: `${H.value}px`,
798
+ flex: `0 0 ${N.value}px`,
799
+ maxWidth: `${N.value}px`,
800
+ minWidth: `${N.value}px`,
803
801
  transition: "background-color 0.2s, min-width 0.2s, max-width 0.2s"
804
802
  }
805
- }, null), a(qn, {
803
+ }, null), o(qn, {
806
804
  collapsible: !0,
807
805
  trigger: null,
808
806
  class: z.value,
809
807
  style: {
810
808
  overflow: "hidden",
811
- zIndex: T.value ? 101 : void 0,
809
+ zIndex: k.value ? 101 : void 0,
812
810
  paddingTop: D.value || e.isMobile || F.value ? 0 : `${e.headerHeight}px`,
813
811
  top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
814
812
  height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
815
813
  },
816
- theme: N.value,
817
- breakpoint: r.value || void 0,
818
- collapsed: w.value,
819
- width: M.value,
820
- collapsedWidth: s.value,
821
- onCollapse: (V) => {
822
- var _;
823
- e.isMobile || (_ = e.onCollapse) == null || _.call(e, V);
824
- }
814
+ theme: _.value,
815
+ breakpoint: s.value || void 0,
816
+ collapsed: l.value,
817
+ width: p.value,
818
+ collapsedWidth: I.value
825
819
  }, {
826
820
  default: () => {
827
- var V, _;
828
- return [p.value && a("div", {
821
+ var E, V;
822
+ return [S.value && o("div", {
829
823
  class: ["gx-pro-sider-loading", O.value]
830
- }, [a(Ce, {
831
- spinning: p.value
832
- }, null)]), B || null, P && !e.collapsed && a("div", {
824
+ }, [o(xe, {
825
+ spinning: S.value
826
+ }, null)]), B || null, P && !e.collapsed && o("div", {
833
827
  class: {
834
828
  [`${O.value}`]: !0,
835
- [`${k}-extra`]: !0,
836
- [`${k}-extra-no-logo`]: !B
829
+ [`${T}-extra`]: !0,
830
+ [`${T}-extra-no-logo`]: !B
837
831
  }
838
- }, [P]), a("div", {
832
+ }, [P]), o("div", {
839
833
  style: {
840
834
  flex: "1 1 0%",
841
835
  overflow: "hidden auto"
842
836
  }
843
- }, [v.value && ((V = v.value) == null ? void 0 : V.call(v, e, j)) || j]), e.layout !== "wide" && a("div", {
844
- class: `${k}-links ${O.value}`
845
- }, [a(ee, {
846
- theme: N.value,
837
+ }, [g.value && ((E = g.value) == null ? void 0 : E.call(g, e, j)) || j]), e.layout !== "wide" && o("div", {
838
+ class: `${T}-links ${O.value}`
839
+ }, [o(ee, {
840
+ theme: _.value,
847
841
  inlineIndent: 16,
848
- class: `${k}-link-menu ${O.value}`,
842
+ class: `${T}-link-menu ${O.value}`,
849
843
  selectedKeys: [],
850
844
  openKeys: [],
851
845
  mode: "inline"
852
846
  }, {
853
- default: () => [(g.value || []).map((G, ae) => a(at, {
854
- class: `${k}-link ${O.value}`,
855
- key: ae
847
+ default: () => [(y.value || []).map((G, fe) => o(nt, {
848
+ class: `${T}-link ${O.value}`,
849
+ key: fe
856
850
  }, Yn(G) ? G : {
857
851
  default: () => [G]
858
- })), x.value && !b.value && a(at, {
859
- class: `${k}-collapsed-button ${O.value}`,
852
+ })), C.value && !h.value && o(nt, {
853
+ class: `${T}-collapsed-button ${O.value}`,
860
854
  title: !1,
861
855
  key: "collapsed",
862
856
  onClick: () => {
863
857
  var G;
864
- e.onCollapse && ((G = e.onCollapse) == null || G.call(e, !w.value));
858
+ e.onCollapse && ((G = e.onCollapse) == null || G.call(e, !l.value));
865
859
  }
866
860
  }, {
867
861
  default: () => {
868
862
  var G;
869
- return [(G = x.value) == null ? void 0 : G.call(x, w.value)];
863
+ return [(G = C.value) == null ? void 0 : G.call(C, l.value)];
870
864
  }
871
865
  })]
872
- })]), c.value && a("div", {
873
- class: `${k}-footer ${O.value}`
874
- }, [(_ = c.value) == null ? void 0 : _.call(c, e)])];
866
+ })]), c.value && o("div", {
867
+ class: `${T}-footer ${O.value}`
868
+ }, [(V = c.value) == null ? void 0 : V.call(c, e)])];
875
869
  }
876
870
  })]
877
871
  }));
878
872
  };
879
873
  }
880
- }), Te = /* @__PURE__ */ E({
874
+ }), $e = /* @__PURE__ */ H({
881
875
  name: "SiderMenuWrapper",
882
876
  inheritAttrs: !1,
883
877
  props: {
@@ -887,10 +881,8 @@ const {
887
881
  default: () => []
888
882
  }
889
883
  },
890
- setup(e, {
891
- attrs: t
892
- }) {
893
- return () => a(q, null, [e.isMobile ? a(ve, {
884
+ setup(e) {
885
+ return () => o(q, null, [e.isMobile ? o(be, {
894
886
  maskClosable: !0,
895
887
  open: !e.collapsed,
896
888
  closable: !1,
@@ -907,17 +899,16 @@ const {
907
899
  padding: 0,
908
900
  display: "flex",
909
901
  flexDirection: "row"
910
- // backgroundColor: token?.value?.layout?.sider?.colorMenuBackground
911
902
  }
912
903
  }, {
913
- default: () => [a(ot, U(t, e, {
904
+ default: () => [o(at, X(e, {
914
905
  collapsed: e.isMobile ? !1 : e.collapsed
915
906
  }), null)]
916
- }) : a(ot, U(t, e), null)]);
907
+ }) : o(at, e, null)]);
917
908
  }
918
- }), Rt = Symbol("pro-app-context"), Zn = (e = Symbol(), t) => mt(e, t || {}), Jn = (e) => {
919
- ze(Rt, e);
920
- }, Qn = () => Zn(Rt, []);
909
+ }), Mt = Symbol("pro-app-context"), Zn = (e = Symbol(), t) => ct(e, t || {}), Jn = (e) => {
910
+ De(Mt, e);
911
+ }, Qn = () => Zn(Mt, []);
921
912
  process.env.NODE_ENV !== "production" && Object.freeze({});
922
913
  process.env.NODE_ENV !== "production" && Object.freeze([]);
923
914
  const ea = Object.prototype.toString;
@@ -929,29 +920,29 @@ function na(e) {
929
920
  }
930
921
  typeof process < "u" && process.versions != null && process.versions.node != null;
931
922
  function aa(e, t, n = "default") {
932
- var o, i;
933
- return t[n] === !1 ? !1 : na(t[n]) && t[n] ? ((o = e == null ? void 0 : e[n]) == null ? void 0 : o.call(e)) || t[n] : t[n] || ((i = e[n]) == null ? void 0 : i.call(e));
923
+ var a, i;
924
+ return t[n] === !1 ? !1 : na(t[n]) && t[n] ? ((a = e == null ? void 0 : e[n]) == null ? void 0 : a.call(e)) || t[n] : t[n] || ((i = e[n]) == null ? void 0 : i.call(e));
934
925
  }
935
926
  function oa(e, t, n) {
936
- const o = {};
927
+ const a = {};
937
928
  return e.forEach((i) => {
938
- o[i] = aa(t, n, i);
939
- }), o;
929
+ a[i] = aa(t, n, i);
930
+ }), a;
940
931
  }
941
- const ia = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: o }) => {
942
- const i = o || (n ? "gx-pro" : "gx");
932
+ const ia = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: a }) => {
933
+ const i = a || (n ? "gx-pro" : "gx");
943
934
  return t || (e ? `${i}-${e}` : i);
944
935
  }, la = (e) => {
945
- const { componentCls: t, colorText: n, fontSize: o, lineHeight: i, fontFamily: l } = e;
936
+ const { componentCls: t, colorText: n, fontSize: a, lineHeight: i, fontFamily: r } = e;
946
937
  return {
947
938
  [t]: {
948
939
  color: n,
949
- fontSize: o,
940
+ fontSize: a,
950
941
  lineHeight: i,
951
- fontFamily: l
942
+ fontFamily: r
952
943
  }
953
944
  };
954
- }, ra = ["emptyText", "indicator"], $e = /* @__PURE__ */ E({
945
+ }, ra = ["emptyText", "indicator"], ke = /* @__PURE__ */ H({
955
946
  name: "GProApp",
956
947
  props: {
957
948
  rootClassName: String,
@@ -965,22 +956,22 @@ const ia = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: o }) =>
965
956
  suffixCls: "app",
966
957
  isPor: !0
967
958
  }), {
968
- wrapSSR: o,
959
+ wrapSSR: a,
969
960
  hashId: i
970
- } = Z("BaseApp", [la], n), l = C(() => oa(ra, t, e)), d = C(() => [i.value, n, e.rootClassName]);
961
+ } = Z("BaseApp", [la], n), r = w(() => oa(ra, t, e)), d = w(() => [i.value, n, e.rootClassName]);
971
962
  return Jn({
972
- emptyText: C(() => l.value.emptyText),
973
- indicator: C(() => l.value.indicator)
963
+ emptyText: w(() => r.value.emptyText),
964
+ indicator: w(() => r.value.indicator)
974
965
  }), () => {
975
966
  var m;
976
- return o(a("div", {
967
+ return a(o("div", {
977
968
  class: d.value
978
969
  }, [(m = t.default) == null ? void 0 : m.call(t)]));
979
970
  };
980
971
  }
981
972
  });
982
- $e.install = (e) => (e.component($e.name, $e), e);
983
- const ge = {
973
+ ke.install = (e) => (e.component(ke.name, ke), e);
974
+ const me = {
984
975
  pageHeaderRender: {
985
976
  type: [Object, Function, Boolean],
986
977
  default: () => {
@@ -1012,51 +1003,51 @@ const ge = {
1012
1003
  marginTop: "8px"
1013
1004
  }
1014
1005
  }
1015
- }), ua = /* @__PURE__ */ E({
1006
+ }), ua = /* @__PURE__ */ H({
1016
1007
  name: "ProPageHeader",
1017
1008
  props: {
1018
- content: ge.contentRender,
1019
- breadcrumb: ge.breadcrumbRender
1009
+ content: me.contentRender,
1010
+ breadcrumb: me.breadcrumbRender
1020
1011
  },
1021
1012
  setup(e) {
1022
1013
  const {
1023
1014
  breadcrumb: t,
1024
1015
  getPrefixCls: n
1025
- } = J(), o = n({
1016
+ } = J(), a = n({
1026
1017
  isPor: !0,
1027
1018
  suffixCls: "page-header"
1028
1019
  }), {
1029
1020
  wrapSSR: i,
1030
- hashId: l
1031
- } = Z("ProPageHeader", [sa], o), d = C(() => {
1021
+ hashId: r
1022
+ } = Z("ProPageHeader", [sa], a), d = w(() => {
1032
1023
  var m;
1033
1024
  return {
1034
1025
  ...t.value,
1035
1026
  itemRender: ((m = t.value) == null ? void 0 : m.itemRender) || (({
1036
- route: y
1037
- }) => a(an, {
1038
- to: y.path
1027
+ route: b
1028
+ }) => o(nn, {
1029
+ to: b.path
1039
1030
  }, {
1040
- default: () => [y.breadcrumbName]
1031
+ default: () => [b.breadcrumbName]
1041
1032
  }))
1042
1033
  };
1043
1034
  });
1044
1035
  return () => {
1045
- var m, y;
1046
- return i(a("div", {
1047
- class: [`${o}`, l.value, `${o}-has-breadcrumb`]
1048
- }, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, d.value) : a(qt, d.value, null), e.content && a("div", {
1049
- class: [`${o}-content`, l.value]
1050
- }, [(y = e.content) == null ? void 0 : y.call(e)])]));
1036
+ var m, b;
1037
+ return i(o("div", {
1038
+ class: [`${a}`, r.value, `${a}-has-breadcrumb`]
1039
+ }, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, d.value) : o(Yt, d.value, null), e.content && o("div", {
1040
+ class: [`${a}-content`, r.value]
1041
+ }, [(b = e.content) == null ? void 0 : b.call(e)])]));
1051
1042
  };
1052
1043
  }
1053
1044
  }), da = (e) => {
1054
- var t, n, o, i, l, d, m, y;
1045
+ var t, n, a, i, r, d, m, b;
1055
1046
  return {
1056
1047
  [`${e.proComponentsCls}-basic-layout`]: {
1057
1048
  [e.componentCls]: {
1058
1049
  marginInline: -(((n = (t = e.layout) == null ? void 0 : t.pageContainer) == null ? void 0 : n.paddingBlockPageContainerContent) ?? 24),
1059
- marginBlockStart: -(((i = (o = e.layout) == null ? void 0 : o.pageContainer) == null ? void 0 : i.paddingBlockPageContainerContent) ?? 24)
1050
+ marginBlockStart: -(((i = (a = e.layout) == null ? void 0 : a.pageContainer) == null ? void 0 : i.paddingBlockPageContainerContent) ?? 24)
1060
1051
  },
1061
1052
  [e.gridContent]: {
1062
1053
  width: "100%"
@@ -1064,8 +1055,8 @@ const ge = {
1064
1055
  },
1065
1056
  [e.componentCls]: {
1066
1057
  ["&-children-content"]: {
1067
- marginInline: ((d = (l = e.layout) == null ? void 0 : l.pageContainer) == null ? void 0 : d.paddingBlockPageContainerContent) ?? 24,
1068
- marginBlockStart: ((y = (m = e.layout) == null ? void 0 : m.pageContainer) == null ? void 0 : y.paddingBlockPageContainerContent) ?? 24,
1058
+ marginInline: ((d = (r = e.layout) == null ? void 0 : r.pageContainer) == null ? void 0 : d.paddingBlockPageContainerContent) ?? 24,
1059
+ marginBlockStart: ((b = (m = e.layout) == null ? void 0 : m.pageContainer) == null ? void 0 : b.paddingBlockPageContainerContent) ?? 24,
1069
1060
  padding: "inherit"
1070
1061
  }
1071
1062
  }
@@ -1082,81 +1073,81 @@ function ca(e) {
1082
1073
  function ma(e) {
1083
1074
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
1084
1075
  }
1085
- const yl = /* @__PURE__ */ E({
1076
+ const yl = /* @__PURE__ */ H({
1086
1077
  inheritAttrs: !1,
1087
1078
  name: "GProPageContainer",
1088
- props: ge,
1079
+ props: me,
1089
1080
  setup(e, {
1090
1081
  slots: t
1091
1082
  }) {
1092
1083
  const {
1093
1084
  getPrefixCls: n,
1094
- hasContentWide: o,
1085
+ hasContentWide: a,
1095
1086
  waterMark: i,
1096
- pageHeaderRender: l,
1087
+ pageHeaderRender: r,
1097
1088
  pageContentStyle: d,
1098
1089
  pageCardProps: m,
1099
- usePageCard: y
1090
+ usePageCard: b
1100
1091
  } = J(), {
1101
- indicator: b
1102
- } = Qn(), p = n({
1092
+ indicator: h
1093
+ } = Qn(), S = n({
1103
1094
  suffixCls: "page-container",
1104
1095
  isPor: !0
1105
- }), r = n({
1096
+ }), s = n({
1106
1097
  suffixCls: "grid-content",
1107
1098
  isPor: !0
1108
- }), T = C(() => e.pageCardProps || m.value), w = C(() => e.pageContentStyle || d.value), {
1109
- wrapSSR: M,
1110
- hashId: s
1111
- } = ca(p), I = () => {
1099
+ }), k = w(() => e.pageCardProps || m.value), l = w(() => e.pageContentStyle || d.value), {
1100
+ wrapSSR: p,
1101
+ hashId: I
1102
+ } = ca(S), M = () => {
1112
1103
  var c;
1113
- return a("div", {
1114
- class: `${p}-children-content ${s.value}`
1115
- }, [(pn(e.usePageCard) ? e.usePageCard : y.value) ? a(Zt, U(T.value ? oe(T.value, ["loading", "bodyStyle"]) : {}, {
1116
- style: o.value ? {
1104
+ return o("div", {
1105
+ class: `${S}-children-content ${I.value}`
1106
+ }, [(bn(e.usePageCard) ? e.usePageCard : b.value) ? o(qt, X(k.value ? ae(k.value, ["loading", "bodyStyle"]) : {}, {
1107
+ style: a.value ? {
1117
1108
  minHeight: "853px"
1118
1109
  } : void 0,
1119
1110
  bordered: !1
1120
1111
  }), {
1121
1112
  default: () => {
1122
- var h;
1123
- return [(h = t.default) == null ? void 0 : h.call(t)];
1113
+ var f;
1114
+ return [(f = t.default) == null ? void 0 : f.call(t)];
1124
1115
  }
1125
1116
  }) : (c = t.default) == null ? void 0 : c.call(t)]);
1126
- }, v = () => {
1117
+ }, g = () => {
1127
1118
  let c;
1128
- return a(q, null, [e.waterMark && i.value ? a(bn, null, ma(c = I()) ? c : {
1119
+ return o(q, null, [e.waterMark && i.value ? o(yn, null, ma(c = M()) ? c : {
1129
1120
  default: () => [c]
1130
- }) : I()]);
1121
+ }) : M()]);
1131
1122
  };
1132
1123
  return () => {
1133
- const c = K(t, e, "pageHeaderRender") || l.value, h = K(t, e, "breadcrumbRender"), f = K(t, e, "contentRender");
1134
- return M(a(Ce, {
1124
+ const c = K(t, e, "pageHeaderRender") || r.value, f = K(t, e, "breadcrumbRender"), v = K(t, e, "contentRender");
1125
+ return p(o(xe, {
1135
1126
  spinning: e.loading,
1136
- indicator: b == null ? void 0 : b.value
1127
+ indicator: h == null ? void 0 : h.value
1137
1128
  }, {
1138
- default: () => [a("div", {
1129
+ default: () => [o("div", {
1139
1130
  class: {
1140
- [`${s.value}`]: !0,
1141
- [`${p}`]: !0
1131
+ [`${I.value}`]: !0,
1132
+ [`${S}`]: !0
1142
1133
  }
1143
- }, [!o.value && c !== !1 && (c || a(ua, {
1144
- breadcrumb: h,
1145
- content: f
1146
- }, null)), a("div", {
1147
- class: [r, s.value]
1148
- }, [a("div", {
1149
- class: `${r}-children ${s.value}`,
1150
- style: w.value
1151
- }, [v()])])])]
1134
+ }, [!a.value && c !== !1 && (c || o(ua, {
1135
+ breadcrumb: f,
1136
+ content: v
1137
+ }, null)), o("div", {
1138
+ class: [s, I.value]
1139
+ }, [o("div", {
1140
+ class: `${s}-children ${I.value}`,
1141
+ style: l.value
1142
+ }, [g()])])])]
1152
1143
  }));
1153
1144
  };
1154
1145
  }
1155
- }), Ge = {
1156
- ...le,
1157
- logo: ie.logo,
1158
- logoStyle: ie.logoStyle,
1159
- logoDirection: ie.logoDirection,
1146
+ }), Xe = {
1147
+ ...ie,
1148
+ logo: oe.logo,
1149
+ logoStyle: oe.logoStyle,
1150
+ logoDirection: oe.logoDirection,
1160
1151
  menuLoading: Boolean,
1161
1152
  autoHideHeader: Boolean,
1162
1153
  collapsed: Boolean,
@@ -1191,8 +1182,8 @@ const yl = /* @__PURE__ */ E({
1191
1182
  onOpenKeys: Y.onOpenKeys,
1192
1183
  onMenuHeaderClick: Function,
1193
1184
  onSelect: Y.onSelect
1194
- }, Bt = {
1195
- ...Ge,
1185
+ }, Rt = {
1186
+ ...Xe,
1196
1187
  headerTitleRender: {
1197
1188
  type: [Object, Function],
1198
1189
  default: () => {
@@ -1211,13 +1202,13 @@ const yl = /* @__PURE__ */ E({
1211
1202
  hasSiderMenu: Boolean,
1212
1203
  collapsedWidth: Y.collapsedWidth,
1213
1204
  siderWidth: Y.siderWidth
1214
- }, kt = {
1205
+ }, Bt = {
1215
1206
  loading: L.looseBool,
1216
1207
  isMobile: Y.isMobile,
1217
- collapsed: We.collapsed,
1208
+ collapsed: je.collapsed,
1218
1209
  siderWidth: Y.siderWidth,
1219
1210
  collapsedWidth: Y.collapsedWidth,
1220
- isFixedMultiTab: le.fixedMultiTab,
1211
+ isFixedMultiTab: ie.fixedMultiTab,
1221
1212
  onReloadPage: {
1222
1213
  type: Function
1223
1214
  },
@@ -1258,14 +1249,14 @@ const yl = /* @__PURE__ */ E({
1258
1249
  }
1259
1250
  }
1260
1251
  }
1261
- }), $t = [{
1252
+ }), kt = [{
1262
1253
  key: "Ant Design Pro",
1263
1254
  title: "Ant Design Pro",
1264
1255
  href: "https://pro.ant.design",
1265
1256
  blankTarget: !0
1266
1257
  }, {
1267
1258
  key: "gitee",
1268
- title: a(sn, null, null),
1259
+ title: o(rn, null, null),
1269
1260
  href: "https://gitee.com/gx12358/vue-antd-admin",
1270
1261
  blankTarget: !0
1271
1262
  }, {
@@ -1273,12 +1264,12 @@ const yl = /* @__PURE__ */ E({
1273
1264
  title: "Ant Design Vue",
1274
1265
  href: "https://next.antdv.com/components/overview-cn/",
1275
1266
  blankTarget: !0
1276
- }], Fe = /* @__PURE__ */ E({
1267
+ }], Te = /* @__PURE__ */ H({
1277
1268
  name: "GlobalFooter",
1278
1269
  props: {
1279
1270
  links: {
1280
1271
  type: [Array, Boolean],
1281
- default: $t
1272
+ default: kt
1282
1273
  },
1283
1274
  copyright: {
1284
1275
  type: [Object, Function, Boolean, String],
@@ -1286,41 +1277,41 @@ const yl = /* @__PURE__ */ E({
1286
1277
  }
1287
1278
  },
1288
1279
  setup(e) {
1289
- const t = he({
1280
+ const t = ce({
1290
1281
  suffixCls: "global-footer",
1291
1282
  isPor: !0
1292
1283
  }), {
1293
1284
  wrapSSR: n,
1294
- hashId: o
1285
+ hashId: a
1295
1286
  } = Z("ProLayoutFooter", [fa], t);
1296
- return () => n(a(Jt, {
1287
+ return () => n(o(Zt, {
1297
1288
  style: {
1298
1289
  padding: 0
1299
1290
  }
1300
1291
  }, {
1301
- default: () => [a("div", {
1302
- class: [t, o.value]
1303
- }, [e.links && a("div", {
1304
- class: `${t}-links ${o.value}`
1305
- }, [e.links.map((i) => a("a", {
1292
+ default: () => [o("div", {
1293
+ class: [t, a.value]
1294
+ }, [e.links && o("div", {
1295
+ class: `${t}-links ${a.value}`
1296
+ }, [e.links.map((i) => o("a", {
1306
1297
  key: i.key,
1307
1298
  title: i.key,
1308
1299
  target: i.blankTarget ? "_blank" : "_self",
1309
1300
  href: i.href
1310
- }, [i.title]))]), e.copyright && a("div", {
1311
- class: `${t}-copyright ${o.value}`
1312
- }, [Q("Copyright  2022  "), a("a", {
1301
+ }, [i.title]))]), e.copyright && o("div", {
1302
+ class: `${t}-copyright ${a.value}`
1303
+ }, [Q("Copyright  2022  "), o("a", {
1313
1304
  href: "https://beian.miit.gov.cn/"
1314
1305
  }, [e.copyright])])])]
1315
1306
  }));
1316
1307
  }
1317
- }), Tt = {
1318
- ...le,
1319
- ...Ge,
1308
+ }), $t = {
1309
+ ...ie,
1310
+ ...Xe,
1320
1311
  ...Y,
1312
+ ...Rt,
1321
1313
  ...Bt,
1322
- ...kt,
1323
- ...ge,
1314
+ ...me,
1324
1315
  pure: Boolean,
1325
1316
  token: Object,
1326
1317
  waterMark: {
@@ -1347,7 +1338,7 @@ const yl = /* @__PURE__ */ E({
1347
1338
  loading: L.looseBool,
1348
1339
  footerLinks: {
1349
1340
  type: [Array, Boolean],
1350
- default: $t
1341
+ default: kt
1351
1342
  },
1352
1343
  copyrightRender: {
1353
1344
  type: [Object, Function, Boolean, String],
@@ -1481,9 +1472,9 @@ const pa = [
1481
1472
  function va(e) {
1482
1473
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
1483
1474
  }
1484
- const xa = _e.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ E({
1475
+ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
1485
1476
  props: {
1486
- ...kt,
1477
+ ...Bt,
1487
1478
  visible: {
1488
1479
  type: Boolean,
1489
1480
  default: !0
@@ -1494,206 +1485,206 @@ const xa = _e.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ E({
1494
1485
  const {
1495
1486
  isMobile: t,
1496
1487
  isFixedMultiTab: n
1497
- } = Oe(e), o = me(!1), i = Ne({
1488
+ } = Ie(e), a = ve(!1), i = ze({
1498
1489
  activeKey: "",
1499
1490
  contextMenuActiveKey: ""
1500
- }), l = Ee(), {
1491
+ }), r = _e(), {
1501
1492
  menuData: d,
1502
1493
  getPrefixCls: m
1503
- } = J(), y = m({
1494
+ } = J(), b = m({
1504
1495
  isPor: !0,
1505
1496
  suffixCls: "multi-tab"
1506
1497
  }), {
1507
- wrapSSR: b,
1508
- hashId: p
1509
- } = ba(y), r = me([]);
1510
- re(r, () => {
1511
- var g;
1512
- (g = e.onChangeTabs) == null || g.call(e, pt(X(r)));
1498
+ wrapSSR: h,
1499
+ hashId: S
1500
+ } = ba(b), s = ve([]);
1501
+ le(s, () => {
1502
+ var y;
1503
+ (y = e.onChangeTabs) == null || y.call(e, yt(U(s)));
1513
1504
  }, {
1514
1505
  deep: !0
1515
1506
  });
1516
- const T = C(() => l.currentRoute.value.path), w = C(() => n.value && !t.value), M = C(() => w.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), s = C(() => vt(`${y}-wrap`, {
1517
- [`${p.value}`]: !0,
1518
- [`${y}-wrap-fixed`]: e.isFixedMultiTab,
1519
- [`${y}-wrap-loading`]: e.loading
1520
- })), I = C(() => {
1521
- const g = {
1507
+ const k = w(() => r.currentRoute.value.path), l = w(() => n.value && !t.value), p = w(() => l.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), I = w(() => bt(`${b}-wrap`, {
1508
+ [`${S.value}`]: !0,
1509
+ [`${b}-wrap-fixed`]: e.isFixedMultiTab,
1510
+ [`${b}-wrap-loading`]: e.loading
1511
+ })), M = w(() => {
1512
+ const y = {
1522
1513
  display: e.visible ? void 0 : "none"
1523
1514
  };
1524
1515
  return e.isFixedMultiTab ? {
1525
1516
  margin: 0,
1526
- width: M.value,
1517
+ width: p.value,
1527
1518
  paddingTop: "6px",
1528
1519
  zIndex: 99,
1529
- ...g
1530
- } : g;
1531
- }), v = (g) => g.fullPath === T.value, c = (g) => {
1532
- if (g.name && g.meta && g.meta.tagHidden !== !0) {
1533
- const x = g.fullPath || g.path, $ = r.value.find((P) => P.fullPath === x), B = {
1534
- path: g.path,
1535
- fullPath: x,
1536
- query: g.query,
1537
- params: g.params,
1538
- name: g.name,
1520
+ ...y
1521
+ } : y;
1522
+ }), g = (y) => y.fullPath === k.value, c = (y) => {
1523
+ if (y.name && y.meta && y.meta.tagHidden !== !0) {
1524
+ const C = y.fullPath || y.path, $ = s.value.find((P) => P.fullPath === C), B = {
1525
+ path: y.path,
1526
+ fullPath: C,
1527
+ query: y.query,
1528
+ params: y.params,
1529
+ name: y.name,
1539
1530
  meta: {
1540
- ...g.meta
1531
+ ...y.meta
1541
1532
  }
1542
1533
  };
1543
- $ ? Object.assign($, B) : g.meta.tagFixed ? r.value.unshift(B) : r.value.push(B), v(g) && (i.activeKey = x);
1534
+ $ ? Object.assign($, B) : y.meta.tagFixed ? s.value.unshift(B) : s.value.push(B), g(y) && (i.activeKey = C);
1544
1535
  }
1545
- }, h = (g) => {
1546
- g.forEach((x) => {
1547
- x.meta && x.meta.tagFixed && c(x), x.children && h(x.children);
1536
+ }, f = (y) => {
1537
+ y.forEach((C) => {
1538
+ C.meta && C.meta.tagFixed && c(C), C.children && f(C.children);
1548
1539
  });
1549
1540
  };
1550
- re(() => d.value, (g) => {
1551
- h(g);
1541
+ le(() => d.value, (y) => {
1542
+ f(y);
1552
1543
  }, {
1553
1544
  deep: !0,
1554
1545
  immediate: !0
1555
- }), re(() => l.currentRoute.value, (g) => {
1556
- c(g);
1546
+ }), le(() => r.currentRoute.value, (y) => {
1547
+ c(y);
1557
1548
  }, {
1558
1549
  deep: !0,
1559
1550
  immediate: !0
1560
1551
  });
1561
- const f = () => {
1562
- const g = r.value.slice(-1)[0];
1563
- g ? l.push(g) : l.push("/");
1564
- }, k = async (g) => {
1565
- const x = r.value.find(($) => g === $.fullPath);
1566
- r.value = r.value.filter(($) => $.fullPath !== g), x && v(x) && f();
1567
- }, S = (g) => {
1568
- const x = r.value.find(($) => $.path === g);
1569
- i.activeKey !== (x == null ? void 0 : x.fullPath) && (x != null && x.fullPath) && l.push(x == null ? void 0 : x.fullPath);
1552
+ const v = () => {
1553
+ const y = s.value.slice(-1)[0];
1554
+ y ? r.push(y) : r.push("/");
1555
+ }, T = async (y) => {
1556
+ const C = s.value.find(($) => y === $.fullPath);
1557
+ s.value = s.value.filter(($) => $.fullPath !== y), C && g(C) && v();
1558
+ }, x = (y) => {
1559
+ const C = s.value.find(($) => $.path === y);
1560
+ i.activeKey !== (C == null ? void 0 : C.fullPath) && (C != null && C.fullPath) && r.push(C == null ? void 0 : C.fullPath);
1570
1561
  }, O = () => {
1571
- var g;
1572
- o.value = !0, e.onReloadPage && ((g = e.onReloadPage) == null || g.call(e)), setTimeout(() => {
1573
- o.value = !1;
1562
+ var y;
1563
+ a.value = !0, e.onReloadPage && ((y = e.onReloadPage) == null || y.call(e)), setTimeout(() => {
1564
+ a.value = !1;
1574
1565
  }, 500);
1575
- }, F = (g) => g.meta && g.meta.tagFixed, R = (g) => i[g], D = (g, x) => {
1576
- const $ = r.value.findIndex((B) => B.fullPath === R(x));
1577
- switch (g) {
1566
+ }, F = (y) => y.meta && y.meta.tagFixed, R = (y) => i[y], D = (y, C) => {
1567
+ const $ = s.value.findIndex((B) => B.fullPath === R(C));
1568
+ switch (y) {
1578
1569
  case "closeOthersTabs":
1579
- r.value = r.value.filter((B) => {
1570
+ s.value = s.value.filter((B) => {
1580
1571
  var P;
1581
- return B.fullPath === R(x) || ((P = B.meta) == null ? void 0 : P.tagFixed);
1572
+ return B.fullPath === R(C) || ((P = B.meta) == null ? void 0 : P.tagFixed);
1582
1573
  });
1583
1574
  break;
1584
1575
  case "closeLeftTabs":
1585
- $ && (r.value = r.value.filter((B, P) => {
1576
+ $ && (s.value = s.value.filter((B, P) => {
1586
1577
  var j;
1587
1578
  return P >= $ || ((j = B.meta) == null ? void 0 : j.tagFixed);
1588
1579
  }));
1589
1580
  break;
1590
1581
  case "closeRightTabs":
1591
- $ && (r.value = r.value.filter((B, P) => {
1582
+ $ && (s.value = s.value.filter((B, P) => {
1592
1583
  var j;
1593
1584
  return P <= $ || ((j = B.meta) == null ? void 0 : j.tagFixed);
1594
1585
  }));
1595
1586
  break;
1596
1587
  case "reloadPage":
1597
- ($ === 0 || $) && i.activeKey === R(x) && O();
1588
+ ($ === 0 || $) && i.activeKey === R(C) && O();
1598
1589
  break;
1599
1590
  }
1600
- i.activeKey !== R(x) && l.push(R(x));
1601
- }, N = (g, x) => {
1602
- const $ = r.value.findIndex((B) => B.fullPath === x);
1603
- switch (g) {
1591
+ i.activeKey !== R(C) && r.push(R(C));
1592
+ }, _ = (y, C) => {
1593
+ const $ = s.value.findIndex((B) => B.fullPath === C);
1594
+ switch (y) {
1604
1595
  case "closeOthersTabs":
1605
- return r.value.filter((W, V) => {
1606
- var _;
1607
- return V !== $ && !((_ = W.meta) != null && _.tagFixed);
1596
+ return s.value.filter((W, E) => {
1597
+ var V;
1598
+ return E !== $ && !((V = W.meta) != null && V.tagFixed);
1608
1599
  }).length === 0;
1609
1600
  case "closeLeftTabs":
1610
- return r.value.filter((W, V) => {
1611
- var _;
1612
- return V < $ && !((_ = W.meta) != null && _.tagFixed);
1601
+ return s.value.filter((W, E) => {
1602
+ var V;
1603
+ return E < $ && !((V = W.meta) != null && V.tagFixed);
1613
1604
  }).length === 0;
1614
1605
  case "closeRightTabs":
1615
- return r.value.filter((W, V) => {
1616
- var _;
1617
- return V > $ && !((_ = W.meta) != null && _.tagFixed);
1606
+ return s.value.filter((W, E) => {
1607
+ var V;
1608
+ return E > $ && !((V = W.meta) != null && V.tagFixed);
1618
1609
  }).length === 0;
1619
1610
  }
1620
- }, H = (g) => {
1621
- let x;
1611
+ }, N = (y) => {
1612
+ let C;
1622
1613
  const {
1623
1614
  path: $,
1624
1615
  stateType: B
1625
- } = g;
1626
- return a(ee, {
1616
+ } = y;
1617
+ return o(ee, {
1627
1618
  selectedKeys: [],
1628
1619
  onClick: ({
1629
1620
  key: P
1630
1621
  }) => D(P, B)
1631
- }, va(x = pa.map((P) => a(Ca, {
1622
+ }, va(C = pa.map((P) => o(Ca, {
1632
1623
  key: P.key,
1633
- disabled: N(P.key, $)
1624
+ disabled: _(P.key, $)
1634
1625
  }, {
1635
1626
  default: () => [P.label]
1636
- }))) ? x : {
1637
- default: () => [x]
1627
+ }))) ? C : {
1628
+ default: () => [C]
1638
1629
  });
1639
- }, z = (g) => {
1630
+ }, z = (y) => {
1640
1631
  const {
1641
- router: x
1642
- } = g;
1643
- return a(Qe, {
1632
+ router: C
1633
+ } = y;
1634
+ return o(Qe, {
1644
1635
  trigger: "contextmenu",
1645
- overlay: a(H, {
1646
- path: (x == null ? void 0 : x.fullPath) || "",
1636
+ overlay: o(N, {
1637
+ path: (C == null ? void 0 : C.fullPath) || "",
1647
1638
  stateType: "contextMenuActiveKey"
1648
1639
  }, null),
1649
1640
  onOpenChange: ($) => {
1650
- i.contextMenuActiveKey = $ && x.fullPath || "";
1641
+ i.contextMenuActiveKey = $ && C.fullPath || "";
1651
1642
  }
1652
1643
  }, {
1653
1644
  default: () => {
1654
1645
  var $;
1655
- return [a("div", {
1656
- class: [`${y}-title`, p.value]
1657
- }, [($ = x.meta) == null ? void 0 : $.title, i.activeKey === x.fullPath && a(dn, {
1658
- class: [`${y}-reload-btn`, p.value],
1659
- spin: o.value,
1646
+ return [o("div", {
1647
+ class: [`${b}-title`, S.value]
1648
+ }, [($ = C.meta) == null ? void 0 : $.title, i.activeKey === C.fullPath && o(un, {
1649
+ class: [`${b}-reload-btn`, S.value],
1650
+ spin: a.value,
1660
1651
  onClick: (B) => {
1661
- B.stopPropagation(), !o.value && O();
1652
+ B.stopPropagation(), !a.value && O();
1662
1653
  }
1663
- }, null), r.value.length > 1 && !F(x) && a(yt, {
1664
- class: [`${y}-close-btn`, p.value],
1654
+ }, null), s.value.length > 1 && !F(C) && o(ht, {
1655
+ class: [`${b}-close-btn`, S.value],
1665
1656
  onClick: (B) => {
1666
- B.stopPropagation(), !o.value && k((x == null ? void 0 : x.fullPath) || "");
1657
+ B.stopPropagation(), !a.value && T((C == null ? void 0 : C.fullPath) || "");
1667
1658
  }
1668
1659
  }, null)])];
1669
1660
  }
1670
1661
  });
1671
1662
  };
1672
- return () => b(a(q, null, [!!e.isFixedMultiTab && At(a("div", {
1673
- class: [`${y}-fixed`, p.value]
1674
- }, null), [[jt, e.visible]]), a(_e, {
1663
+ return () => h(o(q, null, [!!e.isFixedMultiTab && At(o("div", {
1664
+ class: [`${b}-fixed`, S.value]
1665
+ }, null), [[Et, e.visible]]), o(He, {
1675
1666
  hideAdd: !0,
1676
1667
  type: "editable-card",
1677
- style: I.value,
1678
- class: s.value,
1668
+ style: M.value,
1669
+ class: I.value,
1679
1670
  activeKey: i.activeKey,
1680
- onTabClick: S
1671
+ onTabClick: x
1681
1672
  }, {
1682
- default: () => [r.value.map((g) => a(xa, {
1683
- key: g.fullPath,
1673
+ default: () => [s.value.map((y) => o(xa, {
1674
+ key: y.fullPath,
1684
1675
  closable: !1,
1685
- tab: a(z, {
1686
- router: g
1676
+ tab: o(z, {
1677
+ router: y
1687
1678
  }, null)
1688
1679
  }, null))],
1689
- rightExtra: () => a(Qe, {
1690
- overlay: a(H, {
1680
+ rightExtra: () => o(Qe, {
1681
+ overlay: o(N, {
1691
1682
  path: i.activeKey,
1692
1683
  stateType: "activeKey"
1693
1684
  }, null)
1694
1685
  }, {
1695
- default: () => [a(un, {
1696
- class: [`${y}-dropdown-menu-btn`, p.value],
1686
+ default: () => [o(sn, {
1687
+ class: [`${b}-dropdown-menu-btn`, S.value],
1697
1688
  rotate: 90
1698
1689
  }, null)]
1699
1690
  })
@@ -1701,63 +1692,63 @@ const xa = _e.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ E({
1701
1692
  }
1702
1693
  }), {
1703
1694
  Content: Sa
1704
- } = fe, Ye = (e, {
1695
+ } = de, Ge = (e, {
1705
1696
  slots: t,
1706
1697
  attrs: n
1707
1698
  }) => {
1708
- var M;
1699
+ var p;
1709
1700
  const {
1710
- hashId: o,
1701
+ hashId: a,
1711
1702
  prefixCls: i,
1712
- isMobile: l,
1703
+ isMobile: r,
1713
1704
  loading: d,
1714
1705
  collapsed: m,
1715
- siderWidth: y,
1716
- isShowTabsBar: b,
1717
- isFixedMultiTab: p,
1718
- onReloadPage: r,
1719
- onChangeTabs: T
1706
+ siderWidth: b,
1707
+ isShowTabsBar: h,
1708
+ isFixedMultiTab: S,
1709
+ onReloadPage: s,
1710
+ onChangeTabs: k
1720
1711
  } = e;
1721
1712
  if (e.isChildrenLayout)
1722
- return (M = t.default) == null ? void 0 : M.call(t);
1713
+ return (p = t.default) == null ? void 0 : p.call(t);
1723
1714
  const {
1724
- flatMenuData: w
1715
+ flatMenuData: l
1725
1716
  } = J();
1726
- return a(q, null, [a(wa, {
1727
- visible: X(w).length > 0 && b,
1728
- isMobile: l,
1717
+ return o(q, null, [o(wa, {
1718
+ visible: U(l).length > 0 && h,
1719
+ isMobile: r,
1729
1720
  loading: d,
1730
- isFixedMultiTab: p,
1731
- siderWidth: y,
1721
+ isFixedMultiTab: S,
1722
+ siderWidth: b,
1732
1723
  collapsed: m,
1733
- onReloadPage: r,
1734
- onChangeTabs: T
1735
- }, null), a(Sa, {
1724
+ onReloadPage: s,
1725
+ onChangeTabs: k
1726
+ }, null), o(Sa, {
1736
1727
  style: n.style,
1737
1728
  class: [`${i}-content`]
1738
1729
  }, {
1739
1730
  default: () => {
1740
- var s;
1741
- return [d && a(Mn, null, null), a("div", {
1742
- class: [`${i}-content-spin-container`, o],
1731
+ var I;
1732
+ return [d && o(Mn, null, null), o("div", {
1733
+ class: [`${i}-content-spin-container`, a],
1743
1734
  style: {
1744
1735
  opacity: d ? "0" : void 0
1745
1736
  }
1746
- }, [(s = t.default) == null ? void 0 : s.call(t)])];
1737
+ }, [(I = t.default) == null ? void 0 : I.call(t)])];
1747
1738
  }
1748
1739
  })]);
1749
1740
  };
1750
- Ye.inheritAttrs = !1;
1751
- Ye.displayName = "wrap-content";
1741
+ Ge.inheritAttrs = !1;
1742
+ Ge.displayName = "wrap-content";
1752
1743
  const Ia = (e) => {
1753
- var t, n, o, i;
1744
+ var t, n, a, i;
1754
1745
  return {
1755
1746
  [`${e.proComponentsCls}-basic-layout`]: {
1756
1747
  [`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]: {
1757
1748
  backgroundColor: ((n = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : n.colorBgMenu) || e.colorBgElevated
1758
1749
  },
1759
1750
  [`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]: {
1760
- backgroundColor: (i = (o = e.layout) == null ? void 0 : o.header) == null ? void 0 : i.colorDarkBgMenu,
1751
+ backgroundColor: (i = (a = e.layout) == null ? void 0 : a.header) == null ? void 0 : i.colorDarkBgMenu,
1761
1752
  [`${e.proComponentsCls}-global-header-collapsed-button`]: {
1762
1753
  color: "#fff"
1763
1754
  }
@@ -1802,24 +1793,24 @@ const Ia = (e) => {
1802
1793
  }
1803
1794
  };
1804
1795
  };
1805
- function ce() {
1806
- return ce = Object.assign ? Object.assign.bind() : function(e) {
1796
+ function ue() {
1797
+ return ue = Object.assign ? Object.assign.bind() : function(e) {
1807
1798
  for (var t = 1; t < arguments.length; t++) {
1808
1799
  var n = arguments[t];
1809
- for (var o in n)
1810
- Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
1800
+ for (var a in n)
1801
+ Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
1811
1802
  }
1812
1803
  return e;
1813
- }, ce.apply(this, arguments);
1804
+ }, ue.apply(this, arguments);
1814
1805
  }
1815
- var Ft = function() {
1806
+ var Tt = function() {
1816
1807
  if (typeof Map < "u")
1817
1808
  return Map;
1818
1809
  function e(t, n) {
1819
- var o = -1;
1820
- return t.some(function(i, l) {
1821
- return i[0] === n ? (o = l, !0) : !1;
1822
- }), o;
1810
+ var a = -1;
1811
+ return t.some(function(i, r) {
1812
+ return i[0] === n ? (a = r, !0) : !1;
1813
+ }), a;
1823
1814
  }
1824
1815
  return (
1825
1816
  /** @class */
@@ -1837,53 +1828,53 @@ var Ft = function() {
1837
1828
  enumerable: !0,
1838
1829
  configurable: !0
1839
1830
  }), t.prototype.get = function(n) {
1840
- var o = e(this.__entries__, n), i = this.__entries__[o];
1831
+ var a = e(this.__entries__, n), i = this.__entries__[a];
1841
1832
  return i && i[1];
1842
- }, t.prototype.set = function(n, o) {
1833
+ }, t.prototype.set = function(n, a) {
1843
1834
  var i = e(this.__entries__, n);
1844
- ~i ? this.__entries__[i][1] = o : this.__entries__.push([n, o]);
1835
+ ~i ? this.__entries__[i][1] = a : this.__entries__.push([n, a]);
1845
1836
  }, t.prototype.delete = function(n) {
1846
- var o = this.__entries__, i = e(o, n);
1847
- ~i && o.splice(i, 1);
1837
+ var a = this.__entries__, i = e(a, n);
1838
+ ~i && a.splice(i, 1);
1848
1839
  }, t.prototype.has = function(n) {
1849
1840
  return !!~e(this.__entries__, n);
1850
1841
  }, t.prototype.clear = function() {
1851
1842
  this.__entries__.splice(0);
1852
- }, t.prototype.forEach = function(n, o) {
1853
- o === void 0 && (o = null);
1854
- for (var i = 0, l = this.__entries__; i < l.length; i++) {
1855
- var d = l[i];
1856
- n.call(o, d[1], d[0]);
1843
+ }, t.prototype.forEach = function(n, a) {
1844
+ a === void 0 && (a = null);
1845
+ for (var i = 0, r = this.__entries__; i < r.length; i++) {
1846
+ var d = r[i];
1847
+ n.call(a, d[1], d[0]);
1857
1848
  }
1858
1849
  }, t;
1859
1850
  }()
1860
1851
  );
1861
- }(), Pe = typeof window < "u" && typeof document < "u" && window.document === document, Se = function() {
1852
+ }(), Fe = typeof window < "u" && typeof document < "u" && window.document === document, we = function() {
1862
1853
  return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
1863
1854
  }(), Oa = function() {
1864
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Se) : function(e) {
1855
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(we) : function(e) {
1865
1856
  return setTimeout(function() {
1866
1857
  return e(Date.now());
1867
1858
  }, 1e3 / 60);
1868
1859
  };
1869
1860
  }(), Ma = 2;
1870
1861
  function Ra(e, t) {
1871
- var n = !1, o = !1, i = 0;
1872
- function l() {
1873
- n && (n = !1, e()), o && m();
1862
+ var n = !1, a = !1, i = 0;
1863
+ function r() {
1864
+ n && (n = !1, e()), a && m();
1874
1865
  }
1875
1866
  function d() {
1876
- Oa(l);
1867
+ Oa(r);
1877
1868
  }
1878
1869
  function m() {
1879
- var y = Date.now();
1870
+ var b = Date.now();
1880
1871
  if (n) {
1881
- if (y - i < Ma)
1872
+ if (b - i < Ma)
1882
1873
  return;
1883
- o = !0;
1874
+ a = !0;
1884
1875
  } else
1885
- n = !0, o = !1, setTimeout(d, t);
1886
- i = y;
1876
+ n = !0, a = !1, setTimeout(d, t);
1877
+ i = b;
1887
1878
  }
1888
1879
  return m;
1889
1880
  }
@@ -1896,8 +1887,8 @@ var Ba = 20, ka = ["top", "right", "bottom", "left", "width", "height", "size",
1896
1887
  return e.prototype.addObserver = function(t) {
1897
1888
  ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
1898
1889
  }, e.prototype.removeObserver = function(t) {
1899
- var n = this.observers_, o = n.indexOf(t);
1900
- ~o && n.splice(o, 1), !n.length && this.connected_ && this.disconnect_();
1890
+ var n = this.observers_, a = n.indexOf(t);
1891
+ ~a && n.splice(a, 1), !n.length && this.connected_ && this.disconnect_();
1901
1892
  }, e.prototype.refresh = function() {
1902
1893
  var t = this.updateObservers_();
1903
1894
  t && this.refresh();
@@ -1909,26 +1900,26 @@ var Ba = 20, ka = ["top", "right", "bottom", "left", "width", "height", "size",
1909
1900
  return n.broadcastActive();
1910
1901
  }), t.length > 0;
1911
1902
  }, e.prototype.connect_ = function() {
1912
- !Pe || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), $a ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
1903
+ !Fe || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), $a ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
1913
1904
  attributes: !0,
1914
1905
  childList: !0,
1915
1906
  characterData: !0,
1916
1907
  subtree: !0
1917
1908
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
1918
1909
  }, e.prototype.disconnect_ = function() {
1919
- !Pe || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
1910
+ !Fe || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
1920
1911
  }, e.prototype.onTransitionEnd_ = function(t) {
1921
- var n = t.propertyName, o = n === void 0 ? "" : n, i = ka.some(function(l) {
1922
- return !!~o.indexOf(l);
1912
+ var n = t.propertyName, a = n === void 0 ? "" : n, i = ka.some(function(r) {
1913
+ return !!~a.indexOf(r);
1923
1914
  });
1924
1915
  i && this.refresh();
1925
1916
  }, e.getInstance = function() {
1926
1917
  return this.instance_ || (this.instance_ = new e()), this.instance_;
1927
1918
  }, e.instance_ = null, e;
1928
1919
  }()
1929
- ), Pt = function(e, t) {
1930
- for (var n = 0, o = Object.keys(t); n < o.length; n++) {
1931
- var i = o[n];
1920
+ ), Ft = function(e, t) {
1921
+ for (var n = 0, a = Object.keys(t); n < a.length; n++) {
1922
+ var i = a[n];
1932
1923
  Object.defineProperty(e, i, {
1933
1924
  value: t[i],
1934
1925
  enumerable: !1,
@@ -1937,77 +1928,77 @@ var Ba = 20, ka = ["top", "right", "bottom", "left", "width", "height", "size",
1937
1928
  });
1938
1929
  }
1939
1930
  return e;
1940
- }, se = function(e) {
1931
+ }, re = function(e) {
1941
1932
  var t = e && e.ownerDocument && e.ownerDocument.defaultView;
1942
- return t || Se;
1943
- }, Lt = Be(0, 0, 0, 0);
1944
- function Ie(e) {
1933
+ return t || we;
1934
+ }, Pt = Re(0, 0, 0, 0);
1935
+ function Se(e) {
1945
1936
  return parseFloat(e) || 0;
1946
1937
  }
1947
- function it(e) {
1938
+ function ot(e) {
1948
1939
  for (var t = [], n = 1; n < arguments.length; n++)
1949
1940
  t[n - 1] = arguments[n];
1950
- return t.reduce(function(o, i) {
1951
- var l = e["border-" + i + "-width"];
1952
- return o + Ie(l);
1941
+ return t.reduce(function(a, i) {
1942
+ var r = e["border-" + i + "-width"];
1943
+ return a + Se(r);
1953
1944
  }, 0);
1954
1945
  }
1955
1946
  function Fa(e) {
1956
- for (var t = ["top", "right", "bottom", "left"], n = {}, o = 0, i = t; o < i.length; o++) {
1957
- var l = i[o], d = e["padding-" + l];
1958
- n[l] = Ie(d);
1947
+ for (var t = ["top", "right", "bottom", "left"], n = {}, a = 0, i = t; a < i.length; a++) {
1948
+ var r = i[a], d = e["padding-" + r];
1949
+ n[r] = Se(d);
1959
1950
  }
1960
1951
  return n;
1961
1952
  }
1962
1953
  function Pa(e) {
1963
1954
  var t = e.getBBox();
1964
- return Be(0, 0, t.width, t.height);
1955
+ return Re(0, 0, t.width, t.height);
1965
1956
  }
1966
1957
  function La(e) {
1967
1958
  var t = e.clientWidth, n = e.clientHeight;
1968
1959
  if (!t && !n)
1969
- return Lt;
1970
- var o = se(e).getComputedStyle(e), i = Fa(o), l = i.left + i.right, d = i.top + i.bottom, m = Ie(o.width), y = Ie(o.height);
1971
- if (o.boxSizing === "border-box" && (Math.round(m + l) !== t && (m -= it(o, "left", "right") + l), Math.round(y + d) !== n && (y -= it(o, "top", "bottom") + d)), !za(e)) {
1972
- var b = Math.round(m + l) - t, p = Math.round(y + d) - n;
1973
- Math.abs(b) !== 1 && (m -= b), Math.abs(p) !== 1 && (y -= p);
1960
+ return Pt;
1961
+ var a = re(e).getComputedStyle(e), i = Fa(a), r = i.left + i.right, d = i.top + i.bottom, m = Se(a.width), b = Se(a.height);
1962
+ if (a.boxSizing === "border-box" && (Math.round(m + r) !== t && (m -= ot(a, "left", "right") + r), Math.round(b + d) !== n && (b -= ot(a, "top", "bottom") + d)), !za(e)) {
1963
+ var h = Math.round(m + r) - t, S = Math.round(b + d) - n;
1964
+ Math.abs(h) !== 1 && (m -= h), Math.abs(S) !== 1 && (b -= S);
1974
1965
  }
1975
- return Be(i.left, i.top, m, y);
1966
+ return Re(i.left, i.top, m, b);
1976
1967
  }
1977
1968
  var Da = function() {
1978
1969
  return typeof SVGGraphicsElement < "u" ? function(e) {
1979
- return e instanceof se(e).SVGGraphicsElement;
1970
+ return e instanceof re(e).SVGGraphicsElement;
1980
1971
  } : function(e) {
1981
- return e instanceof se(e).SVGElement && typeof e.getBBox == "function";
1972
+ return e instanceof re(e).SVGElement && typeof e.getBBox == "function";
1982
1973
  };
1983
1974
  }();
1984
1975
  function za(e) {
1985
- return e === se(e).document.documentElement;
1976
+ return e === re(e).document.documentElement;
1986
1977
  }
1987
1978
  function Na(e) {
1988
- return Pe ? Da(e) ? Pa(e) : La(e) : Lt;
1979
+ return Fe ? Da(e) ? Pa(e) : La(e) : Pt;
1989
1980
  }
1990
1981
  function Ha(e) {
1991
- var t = e.x, n = e.y, o = e.width, i = e.height, l = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, d = Object.create(l.prototype);
1992
- return Pt(d, {
1982
+ var t = e.x, n = e.y, a = e.width, i = e.height, r = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, d = Object.create(r.prototype);
1983
+ return Ft(d, {
1993
1984
  x: t,
1994
1985
  y: n,
1995
- width: o,
1986
+ width: a,
1996
1987
  height: i,
1997
1988
  top: n,
1998
- right: t + o,
1989
+ right: t + a,
1999
1990
  bottom: i + n,
2000
1991
  left: t
2001
1992
  }), d;
2002
1993
  }
2003
- function Be(e, t, n, o) {
2004
- return { x: e, y: t, width: n, height: o };
1994
+ function Re(e, t, n, a) {
1995
+ return { x: e, y: t, width: n, height: a };
2005
1996
  }
2006
1997
  var _a = (
2007
1998
  /** @class */
2008
1999
  function() {
2009
2000
  function e(t) {
2010
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Be(0, 0, 0, 0), this.target = t;
2001
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Re(0, 0, 0, 0), this.target = t;
2011
2002
  }
2012
2003
  return e.prototype.isActive = function() {
2013
2004
  var t = Na(this.target);
@@ -2017,28 +2008,28 @@ var _a = (
2017
2008
  return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
2018
2009
  }, e;
2019
2010
  }()
2020
- ), Ea = (
2011
+ ), Va = (
2021
2012
  /** @class */
2022
2013
  function() {
2023
2014
  function e(t, n) {
2024
- var o = Ha(n);
2025
- Pt(this, { target: t, contentRect: o });
2015
+ var a = Ha(n);
2016
+ Ft(this, { target: t, contentRect: a });
2026
2017
  }
2027
2018
  return e;
2028
2019
  }()
2029
- ), Va = (
2020
+ ), Aa = (
2030
2021
  /** @class */
2031
2022
  function() {
2032
- function e(t, n, o) {
2033
- if (this.activeObservations_ = [], this.observations_ = new Ft(), typeof t != "function")
2023
+ function e(t, n, a) {
2024
+ if (this.activeObservations_ = [], this.observations_ = new Tt(), typeof t != "function")
2034
2025
  throw new TypeError("The callback provided as parameter 1 is not a function.");
2035
- this.callback_ = t, this.controller_ = n, this.callbackCtx_ = o;
2026
+ this.callback_ = t, this.controller_ = n, this.callbackCtx_ = a;
2036
2027
  }
2037
2028
  return e.prototype.observe = function(t) {
2038
2029
  if (!arguments.length)
2039
2030
  throw new TypeError("1 argument required, but only 0 present.");
2040
2031
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
2041
- if (!(t instanceof se(t).Element))
2032
+ if (!(t instanceof re(t).Element))
2042
2033
  throw new TypeError('parameter 1 is not of type "Element".');
2043
2034
  var n = this.observations_;
2044
2035
  n.has(t) || (n.set(t, new _a(t)), this.controller_.addObserver(this), this.controller_.refresh());
@@ -2047,7 +2038,7 @@ var _a = (
2047
2038
  if (!arguments.length)
2048
2039
  throw new TypeError("1 argument required, but only 0 present.");
2049
2040
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
2050
- if (!(t instanceof se(t).Element))
2041
+ if (!(t instanceof re(t).Element))
2051
2042
  throw new TypeError('parameter 1 is not of type "Element".');
2052
2043
  var n = this.observations_;
2053
2044
  n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
@@ -2061,8 +2052,8 @@ var _a = (
2061
2052
  });
2062
2053
  }, e.prototype.broadcastActive = function() {
2063
2054
  if (this.hasActive()) {
2064
- var t = this.callbackCtx_, n = this.activeObservations_.map(function(o) {
2065
- return new Ea(o.target, o.broadcastRect());
2055
+ var t = this.callbackCtx_, n = this.activeObservations_.map(function(a) {
2056
+ return new Va(a.target, a.broadcastRect());
2066
2057
  });
2067
2058
  this.callback_.call(t, n, t), this.clearActive();
2068
2059
  }
@@ -2072,7 +2063,7 @@ var _a = (
2072
2063
  return this.activeObservations_.length > 0;
2073
2064
  }, e;
2074
2065
  }()
2075
- ), Dt = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Ft(), zt = (
2066
+ ), Lt = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Tt(), Dt = (
2076
2067
  /** @class */
2077
2068
  function() {
2078
2069
  function e(t) {
@@ -2080,8 +2071,8 @@ var _a = (
2080
2071
  throw new TypeError("Cannot call a class as a function.");
2081
2072
  if (!arguments.length)
2082
2073
  throw new TypeError("1 argument required, but only 0 present.");
2083
- var n = Ta.getInstance(), o = new Va(t, n, this);
2084
- Dt.set(this, o);
2074
+ var n = Ta.getInstance(), a = new Aa(t, n, this);
2075
+ Lt.set(this, a);
2085
2076
  }
2086
2077
  return e;
2087
2078
  }()
@@ -2091,13 +2082,13 @@ var _a = (
2091
2082
  "unobserve",
2092
2083
  "disconnect"
2093
2084
  ].forEach(function(e) {
2094
- zt.prototype[e] = function() {
2085
+ Dt.prototype[e] = function() {
2095
2086
  var t;
2096
- return (t = Dt.get(this))[e].apply(t, arguments);
2087
+ return (t = Lt.get(this))[e].apply(t, arguments);
2097
2088
  };
2098
2089
  });
2099
- var Aa = function() {
2100
- return typeof Se.ResizeObserver < "u" ? Se.ResizeObserver : zt;
2090
+ var Ea = function() {
2091
+ return typeof we.ResizeObserver < "u" ? we.ResizeObserver : Dt;
2101
2092
  }();
2102
2093
  const ja = (e) => {
2103
2094
  var t;
@@ -2105,7 +2096,7 @@ const ja = (e) => {
2105
2096
  for (; n && !n.tagName; )
2106
2097
  n = n.nextSibling;
2107
2098
  return n;
2108
- }, Wa = E({
2099
+ }, Wa = H({
2109
2100
  compatConfig: {
2110
2101
  MODE: 3
2111
2102
  },
@@ -2119,63 +2110,63 @@ const ja = (e) => {
2119
2110
  let {
2120
2111
  slots: n
2121
2112
  } = t;
2122
- const o = Ne({
2113
+ const a = ze({
2123
2114
  width: 0,
2124
2115
  height: 0,
2125
2116
  offsetHeight: 0,
2126
2117
  offsetWidth: 0
2127
2118
  });
2128
- let i = null, l = null;
2119
+ let i = null, r = null;
2129
2120
  const d = () => {
2130
- l && (l.disconnect(), l = null);
2131
- }, m = (p) => {
2121
+ r && (r.disconnect(), r = null);
2122
+ }, m = (S) => {
2132
2123
  const {
2133
- onResize: r
2134
- } = e, T = p[0].target, {
2135
- width: w,
2136
- height: M
2137
- } = T.getBoundingClientRect(), {
2138
- offsetWidth: s,
2139
- offsetHeight: I
2140
- } = T, v = Math.floor(w), c = Math.floor(M);
2141
- if (o.width !== v || o.height !== c || o.offsetWidth !== s || o.offsetHeight !== I) {
2142
- const h = {
2143
- width: v,
2124
+ onResize: s
2125
+ } = e, k = S[0].target, {
2126
+ width: l,
2127
+ height: p
2128
+ } = k.getBoundingClientRect(), {
2129
+ offsetWidth: I,
2130
+ offsetHeight: M
2131
+ } = k, g = Math.floor(l), c = Math.floor(p);
2132
+ if (a.width !== g || a.height !== c || a.offsetWidth !== I || a.offsetHeight !== M) {
2133
+ const f = {
2134
+ width: g,
2144
2135
  height: c,
2145
- offsetWidth: s,
2146
- offsetHeight: I
2136
+ offsetWidth: I,
2137
+ offsetHeight: M
2147
2138
  };
2148
- ce(o, h), r && Promise.resolve().then(() => {
2149
- r(ce(ce({}, h), {
2150
- offsetWidth: s,
2151
- offsetHeight: I
2152
- }), T);
2139
+ ue(a, f), s && Promise.resolve().then(() => {
2140
+ s(ue(ue({}, f), {
2141
+ offsetWidth: I,
2142
+ offsetHeight: M
2143
+ }), k);
2153
2144
  });
2154
2145
  }
2155
- }, y = Wt(), b = () => {
2146
+ }, b = jt(), h = () => {
2156
2147
  const {
2157
- disabled: p
2148
+ disabled: S
2158
2149
  } = e;
2159
- if (p) {
2150
+ if (S) {
2160
2151
  d();
2161
2152
  return;
2162
2153
  }
2163
- const r = ja(y);
2164
- r !== i && (d(), i = r), !l && r && (l = new Aa(m), l.observe(r));
2154
+ const s = ja(b);
2155
+ s !== i && (d(), i = s), !r && s && (r = new Ea(m), r.observe(s));
2165
2156
  };
2166
- return ht(() => {
2167
- b();
2157
+ return Wt(() => {
2158
+ h();
2168
2159
  }), Kt(() => {
2169
- b();
2160
+ h();
2170
2161
  }), Ut(() => {
2171
2162
  d();
2172
- }), re(() => e.disabled, () => {
2173
- b();
2163
+ }), le(() => e.disabled, () => {
2164
+ h();
2174
2165
  }, {
2175
2166
  flush: "post"
2176
2167
  }), () => {
2177
- var p;
2178
- return (p = n.default) === null || p === void 0 ? void 0 : p.call(n)[0];
2168
+ var S;
2169
+ return (S = n.default) === null || S === void 0 ? void 0 : S.call(n)[0];
2179
2170
  };
2180
2171
  }
2181
2172
  }), Ka = (e) => ({
@@ -2261,81 +2252,81 @@ const ja = (e) => {
2261
2252
  marginInlineEnd: 0
2262
2253
  }
2263
2254
  }
2264
- }), Nt = {
2255
+ }), zt = {
2265
2256
  ...Y,
2266
- ...Ge
2267
- }, Ua = (e, t) => e === !1 ? null : e ? e(t, null) : t, Xa = /* @__PURE__ */ E({
2268
- props: Nt,
2257
+ ...Xe
2258
+ }, Ua = (e, t) => e === !1 ? null : e ? e(t, null) : t, Xa = /* @__PURE__ */ H({
2259
+ props: zt,
2269
2260
  setup(e) {
2270
- const t = me("auto"), n = ({
2271
- width: o
2261
+ const t = ve("auto"), n = ({
2262
+ width: a
2272
2263
  }) => {
2273
- t.value = o;
2264
+ t.value = a;
2274
2265
  };
2275
- return () => a("div", {
2266
+ return () => o("div", {
2276
2267
  style: {
2277
2268
  minWidth: typeof t.value == "string" ? t.value : `${t.value}px`
2278
2269
  }
2279
- }, [a("div", {
2270
+ }, [o("div", {
2280
2271
  style: {
2281
2272
  paddingRight: "8px"
2282
2273
  }
2283
- }, [a(Wa, {
2274
+ }, [o(Wa, {
2284
2275
  onResize: n
2285
2276
  }, {
2286
- default: () => [e.rightContentRender && typeof e.rightContentRender == "function" ? a("div", null, [e.rightContentRender({
2277
+ default: () => [e.rightContentRender && typeof e.rightContentRender == "function" ? o("div", null, [e.rightContentRender({
2287
2278
  ...e
2288
- })]) : a("div", null, null)]
2279
+ })]) : o("div", null, null)]
2289
2280
  })])]);
2290
2281
  }
2291
- }), Ga = /* @__PURE__ */ E({
2292
- props: Nt,
2282
+ }), Ga = /* @__PURE__ */ H({
2283
+ props: zt,
2293
2284
  inheritAttrs: !1,
2294
2285
  setup(e, {
2295
2286
  slots: t,
2296
2287
  emit: n
2297
2288
  }) {
2298
- const o = Ee(), {
2289
+ const a = _e(), {
2299
2290
  token: i
2300
- } = Re(), {
2301
- getPrefixCls: l,
2291
+ } = Me(), {
2292
+ getPrefixCls: r,
2302
2293
  openKeys: d,
2303
2294
  selectedKeys: m
2304
2295
  } = J(), {
2305
- width: y
2306
- } = Sn(), b = l({
2296
+ width: b
2297
+ } = Sn(), h = r({
2307
2298
  suffixCls: "global-header",
2308
2299
  isPor: !0
2309
2300
  }), {
2310
- wrapSSR: p,
2311
- hashId: r
2312
- } = Z("ProGlobalHeader", [Ka], b), T = C(() => ({
2313
- [`${r.value}`]: !0,
2314
- [`${b}`]: !0,
2315
- [`${b}-${e.layout}`]: !0
2316
- })), w = (v) => {
2301
+ wrapSSR: S,
2302
+ hashId: s
2303
+ } = Z("ProGlobalHeader", [Ka], h), k = w(() => ({
2304
+ [`${s.value}`]: !0,
2305
+ [`${h}`]: !0,
2306
+ [`${h}-${e.layout}`]: !0
2307
+ })), l = (g) => {
2317
2308
  var c;
2318
- if (o.currentRoute) {
2319
- const h = o.currentRoute.value.matched.concat();
2320
- e.onSelect && v === "select" && e.onSelect(h.filter((f) => f.name !== "index").map((f) => f.path)), e.onOpenKeys && v === "openKeys" && ((c = e.onOpenKeys) == null || c.call(e, h.filter((f) => f.path !== o.currentRoute.value.path).map((f) => f.path)));
2309
+ if (a.currentRoute) {
2310
+ const f = a.currentRoute.value.matched.concat();
2311
+ e.onSelect && g === "select" && e.onSelect(f.filter((v) => v.name !== "index").map((v) => v.path)), e.onOpenKeys && g === "openKeys" && ((c = e.onOpenKeys) == null || c.call(e, f.filter((v) => v.path !== a.currentRoute.value.path).map((v) => v.path)));
2321
2312
  }
2322
- }, M = () => {
2313
+ }, p = () => {
2323
2314
  n("collapse", !e.collapsed);
2324
- }, s = C(() => e.collapsedButtonRender || Mt), I = () => {
2325
- var v;
2326
- return a(q, null, [e.layout === "mix" && !e.isMobile && e.splitMenus ? a("div", {
2315
+ }, I = w(() => e.collapsedButtonRender || Ot), M = () => {
2316
+ var g;
2317
+ return o(q, null, [e.layout === "mix" && !e.isMobile && e.splitMenus ? o("div", {
2327
2318
  style: {
2328
2319
  flex: 1
2329
2320
  },
2330
- class: [`${b}-menu`, r.value]
2331
- }, [a(He, {
2321
+ class: [`${h}-menu`, s.value]
2322
+ }, [o(Ne, {
2332
2323
  theme: {
2333
2324
  components: {
2334
2325
  Layout: {
2335
2326
  headerBg: "transparent",
2336
2327
  bodyBg: "transparent"
2337
2328
  },
2338
- Menu: wt({
2329
+ Menu: xt({
2339
2330
  radiusItem: 4,
2340
2331
  colorActiveBarWidth: 0,
2341
2332
  colorActiveBarHeight: 2,
@@ -2345,7 +2336,7 @@ const ja = (e) => {
2345
2336
  }
2346
2337
  }
2347
2338
  }, {
2348
- default: () => [a(St, U({
2339
+ default: () => [o(wt, X({
2349
2340
  theme: e.theme,
2350
2341
  mode: e.mode,
2351
2342
  collapsed: e.collapsed,
@@ -2357,46 +2348,46 @@ const ja = (e) => {
2357
2348
  subMenuItemRender: e.subMenuItemRender,
2358
2349
  class: {
2359
2350
  "top-nav-menu": e.mode === "horizontal",
2360
- [`${r.value}`]: !0
2351
+ [`${s.value}`]: !0
2361
2352
  }
2362
2353
  }, {
2363
- "onUpdate:openKeys": () => w("openKeys"),
2364
- "onUpdate:selectedKeys": () => w("select")
2354
+ "onUpdate:openKeys": () => l("openKeys"),
2355
+ "onUpdate:selectedKeys": () => l("select")
2365
2356
  }), null)]
2366
- })]) : a("div", {
2357
+ })]) : o("div", {
2367
2358
  style: {
2368
2359
  flex: 1
2369
2360
  }
2370
- }, [(v = t.default) == null ? void 0 : v.call(t)]), e.layout !== "simple" && a(Xa, U(e, {
2361
+ }, [(g = t.default) == null ? void 0 : g.call(t)]), e.layout !== "simple" && o(Xa, X(e, {
2371
2362
  extraRightDropdownRender: e.extraRightDropdownRender,
2372
2363
  rightContentRender: e.rightContentRender
2373
2364
  }), null)]);
2374
2365
  };
2375
2366
  return () => {
2376
- const v = a("span", {
2367
+ const g = o("span", {
2377
2368
  key: "logo",
2378
2369
  onClick: () => {
2379
2370
  var c;
2380
2371
  return (c = e.onMenuHeaderClick) == null ? void 0 : c.call(e);
2381
2372
  },
2382
- class: [`${b}-logo`, e.isMobile ? "mobile" : "", r.value]
2383
- }, [a("a", null, [Ot(e.logo)])]);
2384
- return p(a("div", {
2385
- class: T.value
2386
- }, [e.isMobile ? a(q, null, [Ua(e.menuHeaderRender, v), e.isMobile && X(s) && a("span", {
2387
- class: `${b}-collapsed-button ${r.value}`,
2388
- onClick: M
2389
- }, [X(s)(e.collapsed)]), I()]) : e.layout === "mix" || e.layout === "wide" ? a(q, null, [a("div", {
2373
+ class: [`${h}-logo`, e.isMobile ? "mobile" : "", s.value]
2374
+ }, [o("a", null, [It(e.logo)])]);
2375
+ return S(o("div", {
2376
+ class: k.value
2377
+ }, [e.isMobile ? o(q, null, [Ua(e.menuHeaderRender, g), e.isMobile && U(I) && o("span", {
2378
+ class: `${h}-collapsed-button ${s.value}`,
2379
+ onClick: p
2380
+ }, [U(I)(e.collapsed)]), M()]) : e.layout === "mix" || e.layout === "wide" ? o(q, null, [o("div", {
2390
2381
  style: {
2391
2382
  width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
2392
- padding: e.layout === "wide" && y.value < e.wideWidth ? "0 50px" : void 0
2383
+ padding: e.layout === "wide" && b.value < e.wideWidth ? "0 50px" : void 0
2393
2384
  },
2394
- class: `${b}-main ${r.value}`
2395
- }, [a("div", {
2396
- class: `${b}-main-left ${r.value}`
2397
- }, [a(Xe, U(e, {
2385
+ class: `${h}-main ${s.value}`
2386
+ }, [o("div", {
2387
+ class: `${h}-main-left ${s.value}`
2388
+ }, [o(Ue, X(e, {
2398
2389
  renderKey: "headerTitleRender"
2399
- }), null)]), I()])]) : I()]));
2390
+ }), null)]), M()])]) : M()]));
2400
2391
  };
2401
2392
  }
2402
2393
  });
@@ -2404,64 +2395,64 @@ function Ya(e) {
2404
2395
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
2405
2396
  }
2406
2397
  const {
2407
- Header: lt
2408
- } = fe, Le = /* @__PURE__ */ E({
2398
+ Header: it
2399
+ } = de, Pe = /* @__PURE__ */ H({
2409
2400
  inheritAttrs: !1,
2410
- props: Bt,
2401
+ props: Rt,
2411
2402
  setup(e) {
2412
2403
  const {
2413
2404
  theme: t,
2414
2405
  isMobile: n,
2415
- fixedHeader: o,
2406
+ fixedHeader: a,
2416
2407
  headerHeight: i,
2417
- layout: l,
2408
+ layout: r,
2418
2409
  onCollapse: d,
2419
2410
  splitMenus: m
2420
- } = Oe(e), {
2421
- getPrefixCls: y,
2422
- menuData: b
2423
- } = J(), p = y({
2411
+ } = Ie(e), {
2412
+ getPrefixCls: b,
2413
+ menuData: h
2414
+ } = J(), S = b({
2424
2415
  suffixCls: "header",
2425
2416
  isPor: !0
2426
- }), r = y({
2417
+ }), s = b({
2427
2418
  suffixCls: "fixed-header",
2428
2419
  isPor: !0
2429
2420
  }), {
2430
- wrapSSR: T,
2431
- hashId: w
2432
- } = Z("ProLayoutHeader", [Ia], p), M = C(() => l.value === "wide"), s = C(() => o.value), I = C(() => l.value === "mix" || M.value), v = C(() => l.value === "side" || l.value === "simple"), c = C(() => v.value && "light" || t.value), h = C(() => ({
2433
- [`${w.value}`]: !0,
2434
- [`${p}-${c.value}`]: !0,
2435
- [`${p}`]: !0,
2436
- [`${r}`]: s.value
2437
- })), f = C(() => s.value && !n.value), k = C(() => m.value ? b.value && Ln(b.value) || [] : []), S = C(() => v.value && f.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), O = C(() => s.value ? 0 : void 0), F = () => {
2438
- const R = a(Ga, U(e, {
2421
+ wrapSSR: k,
2422
+ hashId: l
2423
+ } = Z("ProLayoutHeader", [Ia], S), p = w(() => r.value === "wide"), I = w(() => a.value), M = w(() => r.value === "mix" || p.value), g = w(() => r.value === "side" || r.value === "simple"), c = w(() => g.value && "light" || t.value), f = w(() => ({
2424
+ [`${l.value}`]: !0,
2425
+ [`${S}-${c.value}`]: !0,
2426
+ [`${S}`]: !0,
2427
+ [`${s}`]: I.value
2428
+ })), v = w(() => I.value && !n.value), T = w(() => m.value ? h.value && Ln(h.value) || [] : []), x = w(() => g.value && v.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), O = w(() => I.value ? 0 : void 0), F = () => {
2429
+ const R = o(Ga, X(e, {
2439
2430
  theme: c.value,
2440
2431
  mode: "horizontal",
2441
2432
  onCollapse: d.value,
2442
- menuData: k.value
2433
+ menuData: T.value
2443
2434
  }), {
2444
- default: () => [I.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
2435
+ default: () => [M.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
2445
2436
  });
2446
2437
  return e.headerRender ? e.headerRender(e, R) : R;
2447
2438
  };
2448
2439
  return () => {
2449
2440
  let R;
2450
- return T(a(q, null, [s.value && !M.value && a(lt, {
2441
+ return k(o(q, null, [I.value && !p.value && o(it, {
2451
2442
  theme: c.value,
2452
2443
  style: {
2453
2444
  height: `${i.value}px`,
2454
2445
  lineHeight: `${i.value}px`,
2455
2446
  background: "transparent"
2456
2447
  }
2457
- }, null), a(lt, {
2448
+ }, null), o(it, {
2458
2449
  theme: c.value,
2459
- class: h.value,
2450
+ class: f.value,
2460
2451
  style: {
2461
2452
  height: `${i.value}px`,
2462
2453
  lineHeight: `${i.value}px`,
2463
- width: S.value,
2464
- zIndex: v.value ? 100 : 101,
2454
+ width: x.value,
2455
+ zIndex: g.value ? 100 : 101,
2465
2456
  right: O.value
2466
2457
  }
2467
2458
  }, Ya(R = F()) ? R : {
@@ -2469,116 +2460,107 @@ const {
2469
2460
  })]));
2470
2461
  };
2471
2462
  }
2472
- }), qa = /* @__PURE__ */ E({
2463
+ }), qa = /* @__PURE__ */ H({
2473
2464
  name: "BaseProLayout",
2474
2465
  inheritAttrs: !1,
2475
2466
  components: {
2476
- GlobalHeader: Le,
2477
- GlobalFooter: Fe,
2478
- SiderMenuWrapper: Te
2467
+ GlobalHeader: Pe,
2468
+ GlobalFooter: Te,
2469
+ SiderMenuWrapper: $e
2479
2470
  },
2480
- props: Tt,
2471
+ props: $t,
2481
2472
  emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
2482
2473
  setup(e, {
2483
2474
  slots: t
2484
2475
  }) {
2485
- const n = he({
2476
+ const n = ce({
2486
2477
  suffixCls: "basic-layout",
2487
2478
  isPor: !0
2488
2479
  }), {
2489
- wrapSSR: o,
2480
+ wrapSSR: a,
2490
2481
  hashId: i
2491
- } = Z("ProLayout", [ha, ga], n), l = et(), {
2482
+ } = Z("ProLayout", [ha, ga], n), r = Cn(), {
2492
2483
  token: d
2493
- } = Re(), m = C(() => {
2494
- var f;
2495
- return (f = d.value) == null ? void 0 : f.colorPrimary;
2484
+ } = Me(), m = w(() => {
2485
+ var c;
2486
+ return (c = d == null ? void 0 : d.value) == null ? void 0 : c.colorPrimary;
2496
2487
  });
2497
2488
  Xt(() => {
2498
2489
  m.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", m.value);
2499
2490
  });
2500
- const y = me(document.body.getBoundingClientRect().width), b = C(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = C(() => e.layout === "wide"), r = C(() => b.value), T = C(() => e.collapsed ? e.collapsedWidth : e.siderWidth), w = C(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light");
2501
- ht(() => {
2502
- window.addEventListener("resize", I), I();
2503
- }), Gt(() => {
2504
- window.removeEventListener("resize", I);
2505
- });
2506
- const M = C(() => (l.value === "sm" || l.value === "xs") && !e.disableMobile && !p.value), s = Ne({
2491
+ const b = w(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), h = w(() => e.layout === "wide"), S = w(() => b.value), s = w(() => e.collapsed ? e.collapsedWidth : e.siderWidth), k = w(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = w(() => (r.value === "sm" || r.value === "xs") && !e.disableMobile && !h.value), p = ze({
2507
2492
  position: "relative"
2508
2493
  });
2509
- (e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (s.minHeight = 0);
2510
- const I = () => {
2511
- const f = document.body.getBoundingClientRect().width;
2512
- y.value !== f && (l.value = et().value, y.value = f);
2513
- }, v = (f, k) => f.headerRender === !1 || f.pure ? null : a(Le, U(f, {
2514
- matchMenuKeys: k || []
2515
- }), null), c = C(() => ({
2494
+ (e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (p.minHeight = 0);
2495
+ const I = (c, f) => c.headerRender === !1 || c.pure ? null : o(Pe, X(c, {
2496
+ matchMenuKeys: f || []
2497
+ }), null), M = w(() => ({
2516
2498
  ...e.breadcrumb,
2517
2499
  itemRender: K(t, e, "breadcrumbRender")
2518
- })), h = C(() => r.value && e.selectedKeys ? Dn(e.menuData, e.selectedKeys[0]) : []);
2500
+ })), g = w(() => S.value && e.selectedKeys ? Dn(e.menuData, e.selectedKeys[0]) : []);
2519
2501
  return jn({
2520
- getPrefixCls: he,
2521
- ...oe(Oe(e), ["layout", "waterMark", "menuData", "openKeys", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader"].concat(Object.keys(ge))),
2522
- theme: w.value,
2523
- hasContentWide: p,
2524
- isMobile: M,
2525
- siderWidth: T,
2526
- breadcrumb: c,
2527
- flatMenuData: h,
2502
+ getPrefixCls: ce,
2503
+ ...ae(Ie(e), ["layout", "waterMark", "menuData", "openKeys", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader"].concat(Object.keys(me))),
2504
+ theme: k.value,
2505
+ hasContentWide: h,
2506
+ isMobile: l,
2507
+ siderWidth: s,
2508
+ breadcrumb: M,
2509
+ flatMenuData: g,
2528
2510
  hasSide: b,
2529
- flatMenu: r,
2530
- pageHeaderRender: C(() => K(t, e, "pageHeaderRender"))
2511
+ flatMenu: S,
2512
+ pageHeaderRender: w(() => K(t, e, "pageHeaderRender"))
2531
2513
  }), () => {
2532
- var ae;
2533
- const f = K(t, e, "collapsedButtonRender"), k = K(t, e, "headerContentRender"), S = K(t, e, "rightContentRender"), O = K(t, e, "headerRender"), F = K(t, e, "footerRender"), R = K(t, e, "links"), D = K(t, e, "copyrightRender"), N = K(t, e, "extraRightDropdownRender"), H = K(t, e, "menuHeaderRender"), z = K(t, e, "menuExtraRender"), g = K(t, e, "menuContentRender"), x = K(t, e, "menuFooterRender"), $ = K(t, e, "menuItemRender"), B = K(t, e, "subMenuItemRender"), P = {
2534
- menuItemRender: $,
2535
- subMenuItemRender: B
2536
- }, j = C(() => v({
2514
+ var V;
2515
+ const c = K(t, e, "collapsedButtonRender"), f = K(t, e, "headerContentRender"), v = K(t, e, "rightContentRender"), T = K(t, e, "headerRender"), x = K(t, e, "footerRender"), O = K(t, e, "links"), F = K(t, e, "copyrightRender"), R = K(t, e, "extraRightDropdownRender"), D = K(t, e, "menuHeaderRender"), _ = K(t, e, "menuExtraRender"), N = K(t, e, "menuContentRender"), z = K(t, e, "menuFooterRender"), y = K(t, e, "menuItemRender"), C = K(t, e, "subMenuItemRender"), $ = {
2516
+ menuItemRender: y,
2517
+ subMenuItemRender: C
2518
+ }, B = w(() => I({
2537
2519
  ...e,
2538
- ...P,
2520
+ ...$,
2539
2521
  hasSiderMenu: b.value,
2540
2522
  menuData: e.menuData,
2541
- isMobile: X(M),
2542
- rightContentRender: S,
2543
- extraRightDropdownRender: N,
2544
- headerTitleRender: H,
2545
- headerContentRender: k,
2546
- headerRender: O,
2547
- theme: w.value
2548
- }, e.matchMenuKeys)), W = C(() => ({
2523
+ isMobile: U(l),
2524
+ rightContentRender: v,
2525
+ extraRightDropdownRender: R,
2526
+ headerTitleRender: D,
2527
+ headerContentRender: f,
2528
+ headerRender: T,
2529
+ theme: k.value
2530
+ }, e.matchMenuKeys)), P = w(() => ({
2549
2531
  [`${i.value}`]: !0,
2550
2532
  [`${n}`]: !0,
2551
2533
  [`${n}-${e.layout}`]: !0
2552
- })), V = C(() => p.value ? {
2534
+ })), j = w(() => h.value ? {
2553
2535
  minWidth: `${e.wideWidth}px`
2554
- } : void 0), _ = C(() => p.value ? {
2536
+ } : void 0), W = w(() => h.value ? {
2555
2537
  width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
2556
2538
  paddingTop: `${e.headerHeight + 20}px`,
2557
- margin: p.value ? "0 auto" : void 0
2558
- } : void 0), G = C(() => p.value ? {
2539
+ margin: h.value ? "0 auto" : void 0
2540
+ } : void 0), E = w(() => h.value ? {
2559
2541
  minHeight: "835px"
2560
2542
  } : {});
2561
- return o(a(q, null, [e.pure ? (ae = t.default) == null ? void 0 : ae.call(t) : a("div", {
2562
- class: W.value,
2563
- style: V.value
2564
- }, [a(fe, {
2565
- style: _.value
2543
+ return a(o(q, null, [e.pure ? (V = t.default) == null ? void 0 : V.call(t) : o("div", {
2544
+ class: P.value,
2545
+ style: j.value
2546
+ }, [o(de, {
2547
+ style: W.value
2566
2548
  }, {
2567
- default: () => [a(Te, U(je(e, ["pure", "theme"]), {
2568
- links: R,
2569
- theme: w.value,
2570
- isMobile: M.value,
2571
- menuHeaderRender: H,
2572
- menuContentRender: g,
2573
- menuExtraRender: z,
2574
- menuFooterRender: x,
2575
- collapsedButtonRender: f
2576
- }), null), a(fe, {
2577
- style: s
2549
+ default: () => [o($e, X(Ee(e, ["pure", "theme"]), {
2550
+ links: O,
2551
+ theme: k.value,
2552
+ isMobile: l.value,
2553
+ menuHeaderRender: D,
2554
+ menuContentRender: N,
2555
+ menuExtraRender: _,
2556
+ menuFooterRender: z,
2557
+ collapsedButtonRender: c
2558
+ }), null), o(de, {
2559
+ style: p
2578
2560
  }, {
2579
- default: () => [j.value, a(Ye, U({
2561
+ default: () => [B.value, o(Ge, X({
2580
2562
  hashId: i.value,
2581
- isMobile: M.value,
2563
+ isMobile: l.value,
2582
2564
  prefixCls: n,
2583
2565
  collapsedWidth: e.collapsedWidth,
2584
2566
  isChildrenLayout: e.isChildrenLayout,
@@ -2587,68 +2569,68 @@ const {
2587
2569
  isFixedMultiTab: e.fixedMultiTab,
2588
2570
  siderWidth: e.siderWidth,
2589
2571
  collapsed: e.collapsed,
2590
- style: e.disableContentMargin ? G.value : {
2572
+ style: e.disableContentMargin ? E.value : {
2591
2573
  ...e.contentStyle,
2592
- ...G.value
2574
+ ...E.value
2593
2575
  }
2594
- }, oe(e, ["onReloadPage", "onChangeTabs"])), {
2576
+ }, ae(e, ["onReloadPage", "onChangeTabs"])), {
2595
2577
  default: () => {
2596
- var ue;
2597
- return [(ue = t.default) == null ? void 0 : ue.call(t)];
2578
+ var G;
2579
+ return [(G = t.default) == null ? void 0 : G.call(t)];
2598
2580
  }
2599
- }), F === !1 ? null : F ? F(e) : a(Fe, {
2600
- copyright: D
2581
+ }), x === !1 ? null : x ? x(e) : o(Te, {
2582
+ copyright: F
2601
2583
  }, null)]
2602
2584
  })]
2603
2585
  })])]));
2604
2586
  };
2605
2587
  }
2606
- }), bl = /* @__PURE__ */ E({
2588
+ }), bl = /* @__PURE__ */ H({
2607
2589
  components: {
2608
- GlobalHeader: Le,
2609
- GlobalFooter: Fe,
2610
- SiderMenuWrapper: Te
2590
+ GlobalHeader: Pe,
2591
+ GlobalFooter: Te,
2592
+ SiderMenuWrapper: $e
2611
2593
  },
2612
- props: Tt,
2594
+ props: $t,
2613
2595
  emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
2614
2596
  setup(e, {
2615
2597
  slots: t,
2616
2598
  emit: n
2617
2599
  }) {
2618
- const o = C(() => e.theme !== void 0 ? {
2600
+ const a = w(() => e.theme !== void 0 ? {
2619
2601
  dark: e.theme === "realDark"
2620
2602
  } : {}), i = (m) => {
2621
2603
  n("update:collapsed", m), n("collapse", m);
2622
- }, l = (m) => {
2604
+ }, r = (m) => {
2623
2605
  n("update:open-keys", m), n("openKeys", m);
2624
2606
  }, d = (m) => {
2625
2607
  n("update:selected-keys", m), n("select", m);
2626
2608
  };
2627
- return () => a(He, {
2609
+ return () => o(Ne, {
2628
2610
  theme: e.primaryColor ? {
2629
2611
  token: {
2630
2612
  colorPrimary: e.primaryColor
2631
2613
  }
2632
2614
  } : void 0
2633
2615
  }, {
2634
- default: () => [a(hn, U({
2616
+ default: () => [o(fn, X({
2635
2617
  token: e.token
2636
- }, o.value), {
2637
- default: () => [a(qa, U(je(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
2618
+ }, a.value), {
2619
+ default: () => [o(qa, X(Ee(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
2638
2620
  onSelect: d,
2639
- onOpenKeys: l,
2621
+ onOpenKeys: r,
2640
2622
  onCollapse: i
2641
2623
  }), t)]
2642
2624
  })]
2643
2625
  });
2644
2626
  }
2645
- }), Ht = (e, t) => e.map((n) => (n.path = n.path.replace("//", "/"), n.children && n.children.length > 0 && (n.children = Ht(n.children, t)), t[`${n.path}`] = n, n)), pl = (e) => {
2646
- const t = e.find((o) => o.path === "/"), n = {};
2627
+ }), Nt = (e, t) => e.map((n) => (n.path = n.path.replace("//", "/"), n.path = Ct(n.path, n.meta), n.children && n.children.length > 0 && (n.children = Nt(n.children, t)), t[`${n.path}`] = n, n)), pl = (e) => {
2628
+ const t = e.find((a) => a.path === "/"), n = {};
2647
2629
  return {
2648
- menuData: Ht((t == null ? void 0 : t.children) || [], n),
2630
+ menuData: Nt((t == null ? void 0 : t.children) || [], n),
2649
2631
  breadcrumb: n
2650
2632
  };
2651
- }, _t = [
2633
+ }, Ht = [
2652
2634
  {
2653
2635
  key: "light",
2654
2636
  title: "亮色菜单风格"
@@ -2661,7 +2643,7 @@ const {
2661
2643
  key: "realDark",
2662
2644
  title: "暗黑模式"
2663
2645
  }
2664
- ], Et = [
2646
+ ], _t = [
2665
2647
  {
2666
2648
  key: "side",
2667
2649
  title: "侧边菜单布局"
@@ -2852,7 +2834,7 @@ const {
2852
2834
  }
2853
2835
  }
2854
2836
  }
2855
- }), rt = /* @__PURE__ */ E({
2837
+ }), lt = /* @__PURE__ */ H({
2856
2838
  name: "BlockCheckbox",
2857
2839
  props: {
2858
2840
  value: L.string,
@@ -2868,32 +2850,32 @@ const {
2868
2850
  setup(e) {
2869
2851
  return () => {
2870
2852
  const t = `${e.prefixCls}-block-checkbox`;
2871
- return a("div", {
2853
+ return o("div", {
2872
2854
  class: [t, e.hashId]
2873
- }, [e.list.map((n) => a(Me, {
2855
+ }, [e.list.map((n) => o(Oe, {
2874
2856
  title: n.title,
2875
2857
  key: n.key
2876
2858
  }, {
2877
- default: () => [a("div", {
2878
- class: vt(e.hashId, `${t}-item`, `${t}-item-${n.key}`, `${t}-${e.configType}-item`),
2859
+ default: () => [o("div", {
2860
+ class: bt(e.hashId, `${t}-item`, `${t}-item-${n.key}`, `${t}-${e.configType}-item`),
2879
2861
  onClick: () => {
2880
- var o;
2881
- return (o = e.onChange) == null ? void 0 : o.call(e, n.key);
2862
+ var a;
2863
+ return (a = e.onChange) == null ? void 0 : a.call(e, n.key);
2882
2864
  }
2883
- }, [n.key === "wide" && a("div", {
2865
+ }, [n.key === "wide" && o("div", {
2884
2866
  class: [`${t}-item-${n.key}-content`, e.hashId]
2885
- }, null), a(bt, {
2867
+ }, null), o(gt, {
2886
2868
  class: `${t}-selectIcon ${e.hashId}`.trim(),
2887
2869
  style: {
2888
2870
  display: e.value === n.key ? "block" : "none"
2889
2871
  }
2890
- }, null), n != null && n.icon ? a("div", {
2872
+ }, null), n != null && n.icon ? o("div", {
2891
2873
  class: `${t}-icon ${e.hashId}`.trim()
2892
2874
  }, [n.icon]) : null])]
2893
2875
  }))]);
2894
2876
  };
2895
2877
  }
2896
- }), Qa = /* @__PURE__ */ E({
2878
+ }), Qa = /* @__PURE__ */ H({
2897
2879
  name: "ThemeColor",
2898
2880
  inheritAttrs: !1,
2899
2881
  props: {
@@ -2910,30 +2892,30 @@ const {
2910
2892
  return () => {
2911
2893
  var n;
2912
2894
  const t = `${e.prefixCls}-theme-color`;
2913
- return a(q, null, [a("div", {
2895
+ return o(q, null, [o("div", {
2914
2896
  class: `${t} ${e.hashId}`.trim()
2915
2897
  }, [(n = e.colorList) == null ? void 0 : n.map(({
2916
- key: o,
2898
+ key: a,
2917
2899
  color: i,
2918
- title: l
2919
- }) => o ? a(Me, {
2900
+ title: r
2901
+ }) => a ? o(Oe, {
2920
2902
  key: i,
2921
- title: l
2903
+ title: r
2922
2904
  }, {
2923
2905
  default: () => {
2924
2906
  var d, m;
2925
- return [a("div", {
2907
+ return [o("div", {
2926
2908
  class: [`${t}-block ${e.hashId}`.trim(), ((d = e.settingValue) == null ? void 0 : d.primaryColor) === i ? `${t}-block-checked` : ""],
2927
2909
  style: {
2928
2910
  backgroundColor: i
2929
2911
  },
2930
2912
  onClick: () => e.onChange && e.onChange(i)
2931
- }, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === i && a(bt, null, null)])];
2913
+ }, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === i && o(gt, null, null)])];
2932
2914
  }
2933
2915
  }) : null)])]);
2934
2916
  };
2935
2917
  }
2936
- }), be = /* @__PURE__ */ E({
2918
+ }), ge = /* @__PURE__ */ H({
2937
2919
  name: "RegionalChange",
2938
2920
  props: {
2939
2921
  label: L.string,
@@ -2945,20 +2927,20 @@ const {
2945
2927
  onChange: Function
2946
2928
  },
2947
2929
  setup(e) {
2948
- return () => a(te, {
2930
+ return () => o(te, {
2949
2931
  class: `${e.prefixCls}-list ${e.hashId}`.trim(),
2950
2932
  split: !1,
2951
2933
  size: "small",
2952
2934
  renderItem: ({
2953
2935
  item: t
2954
- }) => a(Me, {
2936
+ }) => o(Oe, {
2955
2937
  title: t.disabled ? t.disabledReason : "",
2956
2938
  placement: "left"
2957
2939
  }, {
2958
- default: () => [a(te.Item, {
2940
+ default: () => [o(te.Item, {
2959
2941
  actions: [t.action]
2960
2942
  }, {
2961
- default: () => [a("span", {
2943
+ default: () => [o("span", {
2962
2944
  style: {
2963
2945
  opacity: t.disabled ? 0.5 : 1
2964
2946
  }
@@ -2967,7 +2949,7 @@ const {
2967
2949
  }),
2968
2950
  dataSource: [{
2969
2951
  title: e.label,
2970
- action: a(gt, {
2952
+ action: o(ft, {
2971
2953
  size: "small",
2972
2954
  disabled: e.disabled,
2973
2955
  checked: !!e.value,
@@ -3012,7 +2994,7 @@ const {
3012
2994
  function to(e) {
3013
2995
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
3014
2996
  }
3015
- const no = /* @__PURE__ */ E({
2997
+ const no = /* @__PURE__ */ H({
3016
2998
  name: "ThemeEditor",
3017
2999
  props: {
3018
3000
  settingValue: Object,
@@ -3021,27 +3003,27 @@ const no = /* @__PURE__ */ E({
3021
3003
  setup(e) {
3022
3004
  const {
3023
3005
  getPrefixCls: t
3024
- } = J(), [n, o] = xe("header"), i = t({
3006
+ } = J(), [n, a] = pe("header"), i = t({
3025
3007
  suffixCls: "theme-editor",
3026
3008
  isPor: !0
3027
3009
  }), {
3028
- wrapSSR: l,
3010
+ wrapSSR: r,
3029
3011
  hashId: d
3030
3012
  } = Z("ProThemeEditor", [eo], i), {
3031
3013
  token: m
3032
- } = Re(), y = C(() => {
3033
- var w;
3034
- return (w = m.value) == null ? void 0 : w.layout;
3035
- }), b = C(() => {
3036
- var w, M, s, I, v, c, h, f, k, S, O, F, R, D, N, H, z, g, x, $, B, P, j, W, V;
3014
+ } = Me(), b = w(() => {
3015
+ var l;
3016
+ return (l = m.value) == null ? void 0 : l.layout;
3017
+ }), h = w(() => {
3018
+ var l, p, I, M, g, c, f, v, T, x, O, F, R, D, _, N, z, y, C, $, B, P, j, W, E;
3037
3019
  return [{
3038
3020
  key: "colorBgMenu",
3039
3021
  title: "全部背景",
3040
- disabled: ((w = e.settingValue) == null ? void 0 : w.theme) === "dark" && ["mix", "wide"].includes((M = e.settingValue) == null ? void 0 : M.layout)
3022
+ disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["mix", "wide"].includes((p = e.settingValue) == null ? void 0 : p.layout)
3041
3023
  }, {
3042
3024
  key: "colorDarkBgMenu",
3043
3025
  title: "全部背景",
3044
- disabled: ((s = e.settingValue) == null ? void 0 : s.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["side", "simple"].includes((v = e.settingValue) == null ? void 0 : v.layout)
3026
+ disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((M = e.settingValue) == null ? void 0 : M.theme) === "dark" && ["side", "simple"].includes((g = e.settingValue) == null ? void 0 : g.layout)
3045
3027
  }, {
3046
3028
  key: "colorSubItemBg",
3047
3029
  title: "子菜单背景",
@@ -3053,11 +3035,11 @@ const no = /* @__PURE__ */ E({
3053
3035
  }, {
3054
3036
  key: "colorBgMenuItemSelected",
3055
3037
  title: "菜单选中背景",
3056
- disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ["mix", "wide"].includes((h = e.settingValue) == null ? void 0 : h.layout)
3038
+ disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ["mix", "wide"].includes((f = e.settingValue) == null ? void 0 : f.layout)
3057
3039
  }, {
3058
3040
  key: "colorDarkBgMenuItemSelected",
3059
3041
  title: "菜单选中背景",
3060
- disabled: ((f = e.settingValue) == null ? void 0 : f.theme) === "light" || ((k = e.settingValue) == null ? void 0 : k.theme) === "dark" && ["side", "simple"].includes((S = e.settingValue) == null ? void 0 : S.layout)
3042
+ disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "light" || ((T = e.settingValue) == null ? void 0 : T.theme) === "dark" && ["side", "simple"].includes((x = e.settingValue) == null ? void 0 : x.layout)
3061
3043
  }, {
3062
3044
  key: "colorTextMenu",
3063
3045
  title: "菜单文字颜色",
@@ -3065,15 +3047,15 @@ const no = /* @__PURE__ */ E({
3065
3047
  }, {
3066
3048
  key: "colorDarkTextMenu",
3067
3049
  title: "菜单文字颜色",
3068
- disabled: ((R = e.settingValue) == null ? void 0 : R.theme) === "light" || ((D = e.settingValue) == null ? void 0 : D.theme) === "dark" && ["side", "simple"].includes((N = e.settingValue) == null ? void 0 : N.layout)
3050
+ disabled: ((R = e.settingValue) == null ? void 0 : R.theme) === "light" || ((D = e.settingValue) == null ? void 0 : D.theme) === "dark" && ["side", "simple"].includes((_ = e.settingValue) == null ? void 0 : _.layout)
3069
3051
  }, {
3070
3052
  key: "colorTextMenuHover",
3071
3053
  title: "菜单文字移入颜色",
3072
- disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "dark" && ["mix", "wide"].includes((z = e.settingValue) == null ? void 0 : z.layout)
3054
+ disabled: ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((z = e.settingValue) == null ? void 0 : z.layout)
3073
3055
  }, {
3074
3056
  key: "colorDarkTextMenuHover",
3075
3057
  title: "菜单文字移入颜色",
3076
- disabled: ((g = e.settingValue) == null ? void 0 : g.theme) === "light" || ((x = e.settingValue) == null ? void 0 : x.theme) === "dark" && ["side", "simple"].includes(($ = e.settingValue) == null ? void 0 : $.layout)
3058
+ disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "light" || ((C = e.settingValue) == null ? void 0 : C.theme) === "dark" && ["side", "simple"].includes(($ = e.settingValue) == null ? void 0 : $.layout)
3077
3059
  }, {
3078
3060
  key: "colorTextMenuSelected",
3079
3061
  title: "菜单文字选中颜色",
@@ -3081,26 +3063,26 @@ const no = /* @__PURE__ */ E({
3081
3063
  }, {
3082
3064
  key: "colorDarkTextMenuSelected",
3083
3065
  title: "菜单文字选中颜色",
3084
- 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)
3066
+ disabled: ((j = e.settingValue) == null ? void 0 : j.theme) === "light" || ((W = e.settingValue) == null ? void 0 : W.theme) === "dark" && ["side", "simple"].includes((E = e.settingValue) == null ? void 0 : E.layout)
3085
3067
  }];
3086
- }), p = C(() => {
3087
- var w, M, s, I, v, c, h, f, k, S, O, F, R, D, N, H, z, g, x, $, B, P, j, W, V, _, G, ae, ue, qe, Ze, Je;
3068
+ }), S = w(() => {
3069
+ var l, p, I, M, g, c, f, v, T, x, O, F, R, D, _, N, z, y, C, $, B, P, j, W, E, V, G, fe, Ye, qe, Ze, Je;
3088
3070
  return [{
3089
3071
  key: "colorBgMenu",
3090
3072
  title: "全部背景",
3091
- disabled: ((w = e.settingValue) == null ? void 0 : w.theme) === "dark" && ["side", "simple"].includes((M = e.settingValue) == null ? void 0 : M.layout)
3073
+ disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["side", "simple"].includes((p = e.settingValue) == null ? void 0 : p.layout)
3092
3074
  }, {
3093
3075
  key: "colorDarkBgMenu",
3094
3076
  title: "全部背景",
3095
- disabled: ((s = e.settingValue) == null ? void 0 : s.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["mix", "wide"].includes((v = e.settingValue) == null ? void 0 : v.layout)
3077
+ disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((M = e.settingValue) == null ? void 0 : M.theme) === "dark" && ["mix", "wide"].includes((g = e.settingValue) == null ? void 0 : g.layout)
3096
3078
  }, {
3097
3079
  key: "colorSubItemBg",
3098
3080
  title: "子菜单背景",
3099
- disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ["side", "simple"].includes((h = e.settingValue) == null ? void 0 : h.layout)
3081
+ disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ["side", "simple"].includes((f = e.settingValue) == null ? void 0 : f.layout)
3100
3082
  }, {
3101
3083
  key: "colorDarkSubItemBg",
3102
3084
  title: "子菜单背景",
3103
- disabled: ((f = e.settingValue) == null ? void 0 : f.theme) === "light" || ((k = e.settingValue) == null ? void 0 : k.theme) === "dark" && ["mix", "wide"].includes((S = e.settingValue) == null ? void 0 : S.layout)
3085
+ disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "light" || ((T = e.settingValue) == null ? void 0 : T.theme) === "dark" && ["mix", "wide"].includes((x = e.settingValue) == null ? void 0 : x.layout)
3104
3086
  }, {
3105
3087
  key: "colorBgMenuItemHover",
3106
3088
  title: "菜单移入背景",
@@ -3112,11 +3094,11 @@ const no = /* @__PURE__ */ E({
3112
3094
  }, {
3113
3095
  key: "colorDarkBgMenuItemSelected",
3114
3096
  title: "菜单选中背景",
3115
- disabled: ((N = e.settingValue) == null ? void 0 : N.theme) === "light" || ((H = e.settingValue) == null ? void 0 : H.theme) === "dark" && ["mix", "wide"].includes((z = e.settingValue) == null ? void 0 : z.layout)
3097
+ disabled: ((_ = e.settingValue) == null ? void 0 : _.theme) === "light" || ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((z = e.settingValue) == null ? void 0 : z.layout)
3116
3098
  }, {
3117
3099
  key: "colorTextMenu",
3118
3100
  title: "菜单文字颜色",
3119
- disabled: ((g = e.settingValue) == null ? void 0 : g.theme) === "dark" && ((x = e.settingValue) == null ? void 0 : x.layout) !== "mix"
3101
+ disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ((C = e.settingValue) == null ? void 0 : C.layout) !== "mix"
3120
3102
  }, {
3121
3103
  key: "colorDarkTextMenu",
3122
3104
  title: "菜单文字颜色",
@@ -3128,101 +3110,101 @@ const no = /* @__PURE__ */ E({
3128
3110
  }, {
3129
3111
  key: "colorDarkTextMenuHover",
3130
3112
  title: "菜单文字移入颜色",
3131
- disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "light" || ((_ = e.settingValue) == null ? void 0 : _.theme) === "dark" && ["mix", "wide"].includes((G = e.settingValue) == null ? void 0 : G.layout)
3113
+ disabled: ((E = e.settingValue) == null ? void 0 : E.theme) === "light" || ((V = e.settingValue) == null ? void 0 : V.theme) === "dark" && ["mix", "wide"].includes((G = e.settingValue) == null ? void 0 : G.layout)
3132
3114
  }, {
3133
3115
  key: "colorTextMenuSelected",
3134
3116
  title: "菜单文字选中颜色",
3135
- disabled: ((ae = e.settingValue) == null ? void 0 : ae.theme) === "dark" && ((ue = e.settingValue) == null ? void 0 : ue.layout) !== "mix"
3117
+ disabled: ((fe = e.settingValue) == null ? void 0 : fe.theme) === "dark" && ((Ye = e.settingValue) == null ? void 0 : Ye.layout) !== "mix"
3136
3118
  }, {
3137
3119
  key: "colorDarkTextMenuSelected",
3138
3120
  title: "菜单文字选中颜色",
3139
3121
  disabled: ((qe = e.settingValue) == null ? void 0 : qe.theme) === "light" || ((Ze = e.settingValue) == null ? void 0 : Ze.theme) === "dark" && ["mix", "wide"].includes((Je = e.settingValue) == null ? void 0 : Je.layout)
3140
3122
  }];
3141
- }), r = C(() => n.value === "header" ? b.value : n.value === "sider" ? p.value : []), T = (w) => {
3142
- var M, s;
3143
- return (s = (M = y.value) == null ? void 0 : M[n.value]) == null ? void 0 : s[w];
3123
+ }), s = w(() => n.value === "header" ? h.value : n.value === "sider" ? S.value : []), k = (l) => {
3124
+ var p, I;
3125
+ return (I = (p = b.value) == null ? void 0 : p[n.value]) == null ? void 0 : I[l];
3144
3126
  };
3145
3127
  return () => {
3146
- var M, s, I;
3147
- let w;
3148
- return l(a("div", {
3128
+ var p, I, M;
3129
+ let l;
3130
+ return r(o("div", {
3149
3131
  class: [i, d.value]
3150
- }, [a("h3", {
3132
+ }, [o("h3", {
3151
3133
  class: [`${i}-title`, d.value]
3152
- }, [Q("主题编辑器"), a("div", {
3134
+ }, [Q("主题编辑器"), o("div", {
3153
3135
  class: [`${i}-sub-title`, d.value]
3154
- }, [a("span", null, [(M = _t.find((v) => {
3136
+ }, [o("span", null, [(p = Ht.find((g) => {
3155
3137
  var c;
3156
- return v.key === ((c = e.settingValue) == null ? void 0 : c.theme);
3157
- })) == null ? void 0 : M.title]), a("span", {
3138
+ return g.key === ((c = e.settingValue) == null ? void 0 : c.theme);
3139
+ })) == null ? void 0 : p.title]), o("span", {
3158
3140
  style: {
3159
3141
  marginInline: "8px"
3160
3142
  }
3161
- }, [Q("/")]), a("span", null, [(s = Et.find((v) => {
3143
+ }, [Q("/")]), o("span", null, [(I = _t.find((g) => {
3162
3144
  var c;
3163
- return v.key === ((c = e.settingValue) == null ? void 0 : c.layout);
3164
- })) == null ? void 0 : s.title])])]), a("div", {
3145
+ return g.key === ((c = e.settingValue) == null ? void 0 : c.layout);
3146
+ })) == null ? void 0 : I.title])])]), o("div", {
3165
3147
  class: [`${i}-content`, d.value]
3166
- }, [a(te, {
3148
+ }, [o(te, {
3167
3149
  class: `${i}-list ${d.value}`.trim(),
3168
3150
  split: !1,
3169
3151
  size: "small",
3170
3152
  renderItem: ({
3171
- item: v
3172
- }) => a(te.Item, {
3173
- actions: [v.action]
3153
+ item: g
3154
+ }) => o(te.Item, {
3155
+ actions: [g.action]
3174
3156
  }, {
3175
- default: () => [a("span", {
3157
+ default: () => [o("span", {
3176
3158
  style: {
3177
- opacity: v.disabled ? 0.5 : 1
3159
+ opacity: g.disabled ? 0.5 : 1
3178
3160
  }
3179
- }, [v.title])]
3161
+ }, [g.title])]
3180
3162
  }),
3181
3163
  dataSource: [{
3182
3164
  title: "自定义主题色",
3183
- action: a(tt, {
3184
- value: (I = e.settingValue) == null ? void 0 : I.primaryColor,
3165
+ action: o(et, {
3166
+ value: (M = e.settingValue) == null ? void 0 : M.primaryColor,
3185
3167
  actions: ["confirm"],
3186
3168
  modes: ["rgb"],
3187
3169
  size: "small",
3188
- onConfirm: (v) => e.onChange && e.onChange(v, "primaryColor")
3170
+ onConfirm: (g) => e.onChange && e.onChange(g, "primaryColor")
3189
3171
  }, null)
3190
3172
  }]
3191
- }, null), a(_e, {
3173
+ }, null), o(He, {
3192
3174
  activeKey: n.value,
3193
- onChange: o
3194
- }, to(w = Za.map((v) => a(Qt, {
3195
- key: v.key,
3196
- tab: v.title
3175
+ onChange: a
3176
+ }, to(l = Za.map((g) => o(Jt, {
3177
+ key: g.key,
3178
+ tab: g.title
3197
3179
  }, {
3198
- default: () => [a(te, {
3180
+ default: () => [o(te, {
3199
3181
  class: `${i}-list ${d.value}`.trim(),
3200
3182
  split: !1,
3201
3183
  size: "small",
3202
3184
  renderItem: ({
3203
3185
  item: c
3204
- }) => a(te.Item, {
3186
+ }) => o(te.Item, {
3205
3187
  actions: [c.action]
3206
3188
  }, {
3207
- default: () => [a("span", {
3189
+ default: () => [o("span", {
3208
3190
  style: {
3209
3191
  opacity: c.disabled ? 0.5 : 1
3210
3192
  }
3211
3193
  }, [c.title])]
3212
3194
  }),
3213
- dataSource: r.value.filter((c) => !c.disabled).map((c) => ({
3195
+ dataSource: s.value.filter((c) => !c.disabled).map((c) => ({
3214
3196
  ...c,
3215
- action: a(tt, {
3216
- value: T(c.key),
3197
+ action: o(et, {
3198
+ value: k(c.key),
3217
3199
  actions: ["confirm"],
3218
3200
  modes: ["rgb"],
3219
3201
  size: "small",
3220
- onConfirm: (h) => e.onChange && e.onChange(h, n.value, c.key)
3202
+ onConfirm: (f) => e.onChange && e.onChange(f, n.value, c.key)
3221
3203
  }, null)
3222
3204
  }))
3223
3205
  }, null)]
3224
- }))) ? w : {
3225
- default: () => [w]
3206
+ }))) ? l : {
3207
+ default: () => [l]
3226
3208
  })])]));
3227
3209
  };
3228
3210
  }
@@ -3257,12 +3239,12 @@ const no = /* @__PURE__ */ E({
3257
3239
  }
3258
3240
  }
3259
3241
  });
3260
- function st(e) {
3242
+ function rt(e) {
3261
3243
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
3262
3244
  }
3263
3245
  const {
3264
- preset: ut
3265
- } = Ke, oo = /* @__PURE__ */ E({
3246
+ preset: st
3247
+ } = We, oo = /* @__PURE__ */ H({
3266
3248
  name: "OthersChange",
3267
3249
  props: {
3268
3250
  prefixCls: L.string,
@@ -3270,77 +3252,77 @@ const {
3270
3252
  onChange: Function
3271
3253
  },
3272
3254
  setup(e) {
3273
- const t = he({
3255
+ const t = ce({
3274
3256
  suffixCls: "others",
3275
3257
  isPor: !0
3276
3258
  }), {
3277
3259
  wrapSSR: n,
3278
- hashId: o
3260
+ hashId: a
3279
3261
  } = Z("SettingsDrawOthers", [ao], t);
3280
3262
  return () => {
3281
- var l, d, m, y, b, p, r, T, w, M, s, I, v, c;
3263
+ var r, d, m, b, h, S, s, k, l, p, I, M, g, c;
3282
3264
  let i;
3283
- return n(a("div", {
3284
- class: [t, o.value]
3285
- }, [a("h3", {
3286
- class: [`${t}-title`, o.value]
3287
- }, [Q("页面动画设置")]), a(te, {
3288
- class: `${t}-list ${o.value}`.trim(),
3265
+ return n(o("div", {
3266
+ class: [t, a.value]
3267
+ }, [o("h3", {
3268
+ class: [`${t}-title`, a.value]
3269
+ }, [Q("页面动画设置")]), o(te, {
3270
+ class: `${t}-list ${a.value}`.trim(),
3289
3271
  split: !1,
3290
3272
  size: "small",
3291
3273
  renderItem: ({
3292
- item: h
3293
- }) => a(Me, {
3294
- title: h.disabled ? h.disabledReason : "",
3274
+ item: f
3275
+ }) => o(Oe, {
3276
+ title: f.disabled ? f.disabledReason : "",
3295
3277
  placement: "left"
3296
3278
  }, {
3297
- default: () => [a(te.Item, {
3298
- actions: [h.action]
3279
+ default: () => [o(te.Item, {
3280
+ actions: [f.action]
3299
3281
  }, {
3300
- default: () => [a("span", {
3282
+ default: () => [o("span", {
3301
3283
  style: {
3302
- opacity: h.disabled ? 0.5 : 1
3284
+ opacity: f.disabled ? 0.5 : 1
3303
3285
  }
3304
- }, [h.title])]
3286
+ }, [f.title])]
3305
3287
  })]
3306
3288
  }),
3307
3289
  dataSource: [{
3308
3290
  title: "禁用动画",
3309
- action: a(gt, {
3310
- checked: !((d = (l = e.settingValue) == null ? void 0 : l.animate) != null && d.disabled),
3291
+ action: o(ft, {
3292
+ checked: !((d = (r = e.settingValue) == null ? void 0 : r.animate) != null && d.disabled),
3311
3293
  size: "small",
3312
- onChange: (h) => {
3313
- var f;
3314
- return (f = e.onChange) == null ? void 0 : f.call(e, "animate", "disabled", !h);
3294
+ onChange: (f) => {
3295
+ var v;
3296
+ return (v = e.onChange) == null ? void 0 : v.call(e, "animate", "disabled", !f);
3315
3297
  }
3316
3298
  }, null)
3317
3299
  }, {
3318
3300
  title: "动画效果",
3319
- disabled: (y = (m = e.settingValue) == null ? void 0 : m.animate) == null ? void 0 : y.disabled,
3320
- action: a(ye, {
3321
- value: (p = (b = e.settingValue) == null ? void 0 : b.animate) == null ? void 0 : p.name,
3301
+ disabled: (b = (m = e.settingValue) == null ? void 0 : m.animate) == null ? void 0 : b.disabled,
3302
+ action: o(he, {
3303
+ value: (S = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : S.name,
3322
3304
  style: {
3323
3305
  width: "100px"
3324
3306
  },
3325
3307
  size: "small",
3326
- disabled: (T = (r = e.settingValue) == null ? void 0 : r.animate) == null ? void 0 : T.disabled,
3327
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
3328
- onChange: (h) => {
3329
- var f;
3330
- return (f = e.onChange) == null ? void 0 : f.call(e, "animate", "name", h);
3308
+ disabled: (k = (s = e.settingValue) == null ? void 0 : s.animate) == null ? void 0 : k.disabled,
3309
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
3310
+ onChange: (f) => {
3311
+ var v;
3312
+ return (v = e.onChange) == null ? void 0 : v.call(e, "animate", "name", f);
3331
3313
  }
3332
- }, st(i = ut.map((h) => a(ye.Option, {
3333
- value: h.name
3314
+ }, rt(i = st.map((f) => o(he.Option, {
3315
+ value: f.name
3334
3316
  }, {
3335
- default: () => [h.alias]
3317
+ default: () => [f.alias]
3336
3318
  }))) ? i : {
3337
3319
  default: () => [i]
3338
3320
  })
3339
3321
  }, {
3340
3322
  title: "动画方向",
3341
- disabled: (M = (w = e.settingValue) == null ? void 0 : w.animate) == null ? void 0 : M.disabled,
3342
- action: a(ye, {
3343
- value: (I = (s = e.settingValue) == null ? void 0 : s.animate) == null ? void 0 : I.direction,
3323
+ disabled: (p = (l = e.settingValue) == null ? void 0 : l.animate) == null ? void 0 : p.disabled,
3324
+ action: o(he, {
3325
+ value: (M = (I = e.settingValue) == null ? void 0 : I.animate) == null ? void 0 : M.direction,
3344
3326
  style: {
3345
3327
  width: "100px"
3346
3328
  },
@@ -3348,22 +3330,22 @@ const {
3348
3330
  dropdownStyle: {
3349
3331
  minWidth: "120px"
3350
3332
  },
3351
- disabled: (c = (v = e.settingValue) == null ? void 0 : v.animate) == null ? void 0 : c.disabled,
3352
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
3353
- onChange: (h) => {
3354
- var f;
3355
- return (f = e.onChange) == null ? void 0 : f.call(e, "animate", "direction", h);
3333
+ disabled: (c = (g = e.settingValue) == null ? void 0 : g.animate) == null ? void 0 : c.disabled,
3334
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
3335
+ onChange: (f) => {
3336
+ var v;
3337
+ return (v = e.onChange) == null ? void 0 : v.call(e, "animate", "direction", f);
3356
3338
  }
3357
3339
  }, {
3358
3340
  default: () => {
3359
- var h;
3360
- return [(h = ut.find((f) => {
3361
- var k, S;
3362
- return f.name === ((S = (k = e.settingValue) == null ? void 0 : k.animate) == null ? void 0 : S.name);
3363
- })) == null ? void 0 : h.directions.map((f) => a(ye.Option, {
3364
- value: f
3365
- }, st(f) ? f : {
3366
- default: () => [f]
3341
+ var f;
3342
+ return [(f = st.find((v) => {
3343
+ var T, x;
3344
+ return v.name === ((x = (T = e.settingValue) == null ? void 0 : T.animate) == null ? void 0 : x.name);
3345
+ })) == null ? void 0 : f.directions.map((v) => o(he.Option, {
3346
+ value: v
3347
+ }, rt(v) ? v : {
3348
+ default: () => [v]
3367
3349
  }))];
3368
3350
  }
3369
3351
  })
@@ -3373,7 +3355,7 @@ const {
3373
3355
  }
3374
3356
  }), {
3375
3357
  preset: io
3376
- } = Ke, De = Object.keys(A).filter((e) => e !== "title"), dt = {
3358
+ } = We, Le = Object.keys(A).filter((e) => e !== "title"), ut = {
3377
3359
  color: "#fff",
3378
3360
  fontSize: 20
3379
3361
  }, lo = [{
@@ -3391,21 +3373,21 @@ const {
3391
3373
  }, {
3392
3374
  label: "fixedMultiTab",
3393
3375
  title: "固定多标签"
3394
- }], ct = (e) => xn() ? {
3395
- ...oe(A, De),
3376
+ }], dt = (e) => vn() ? {
3377
+ ...ae(A, Le),
3396
3378
  ...e || {}
3397
- } : pt(A), pe = (e, {
3379
+ } : yt(A), ye = (e, {
3398
3380
  slots: t
3399
3381
  }) => {
3400
3382
  var n;
3401
- return a("div", {
3383
+ return o("div", {
3402
3384
  style: {
3403
3385
  marginBottom: "24px"
3404
3386
  }
3405
- }, [a("h3", {
3387
+ }, [o("h3", {
3406
3388
  class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
3407
3389
  }, [e.title]), (n = t.default) == null ? void 0 : n.call(t)]);
3408
- }, vl = /* @__PURE__ */ E({
3390
+ }, vl = /* @__PURE__ */ H({
3409
3391
  name: "SettingDrawer",
3410
3392
  props: {
3411
3393
  themeOnly: Boolean,
@@ -3418,7 +3400,7 @@ const {
3418
3400
  },
3419
3401
  colorList: {
3420
3402
  type: [Boolean, Array],
3421
- default: () => gn
3403
+ default: () => hn
3422
3404
  },
3423
3405
  onChange: Function,
3424
3406
  onChangeLayout: Function
@@ -3431,44 +3413,44 @@ const {
3431
3413
  suffixCls: "setting-drawer",
3432
3414
  isPor: !0
3433
3415
  }), {
3434
- wrapSSR: o,
3416
+ wrapSSR: a,
3435
3417
  hashId: i
3436
- } = Z("ProSettingDraw", [Ja], n), l = me(!1), [d, m] = xe(!1), [y, b] = xe(!1), [p, r] = xe(!1), T = C(() => ct(oe(e.settings, De))), [w, M] = wn(() => ct(oe(e.settings, De)), {
3437
- value: T,
3418
+ } = Z("ProSettingDraw", [Ja], n), r = ve(!1), [d, m] = pe(!1), [b, h] = pe(!1), [S, s] = pe(!1), k = w(() => dt(ae(e.settings, Le))), [l, p] = wn(() => dt(ae(e.settings, Le)), {
3419
+ value: k,
3438
3420
  onChange: e.onChange
3439
- }), s = C(() => e.colorList && vn(e.colorList) ? e.colorList : []), I = C(() => Hn(X(w))), {
3440
- copy: v,
3421
+ }), I = w(() => e.colorList && pn(e.colorList) ? e.colorList : []), M = w(() => Hn(U(l))), {
3422
+ copy: g,
3441
3423
  copied: c,
3442
- isSupported: h
3424
+ isSupported: f
3443
3425
  } = In();
3444
- re(d, () => {
3445
- l.value || (l.value = !0);
3426
+ le(d, () => {
3427
+ r.value || (r.value = !0);
3446
3428
  });
3447
- const f = (S, O, F) => {
3448
- var N, H;
3429
+ const v = (x, O, F) => {
3430
+ var _, N;
3449
3431
  const R = ["header", "sider"], D = {};
3450
- if (F && R.includes(S)) {
3451
- D[S] = {}, D[S][F] = O, e.onChangeLayout && e.onChangeLayout(oe(D, R));
3432
+ if (F && R.includes(x)) {
3433
+ D[x] = {}, D[x][F] = O, e.onChangeLayout && e.onChangeLayout(ae(D, R));
3452
3434
  return;
3453
3435
  } else
3454
- S === "animate" ? (D[S] = {}, D[S][F] = O, F === "name" && (D[S].direction = (H = (N = io.find((z) => z.name === O)) == null ? void 0 : N.directions) == null ? void 0 : H[0])) : D[S] = O;
3455
- if (S === "colorWeak") {
3436
+ x === "animate" ? (D[x] = {}, D[x][F] = O, F === "name" && (D[x].direction = (N = (_ = io.find((z) => z.name === O)) == null ? void 0 : _.directions) == null ? void 0 : N[0])) : D[x] = O;
3437
+ if (x === "colorWeak") {
3456
3438
  const z = document.querySelector("body");
3457
3439
  z && (z.dataset.prosettingdrawer = O === !0 ? z.style.filter : z.dataset.prosettingdrawer || "none", O === !0 && (z.dataset.prosettingdrawer = z.style.filter), z.style.filter = O === !0 ? "invert(80%)" : z.dataset.prosettingdrawer || "none", O || delete z.dataset.prosettingdrawer);
3458
3440
  }
3459
- M(Cn(X(w), {
3460
- ...Nn(je(D, R))
3441
+ p(xn(U(l), {
3442
+ ...Nn(Ee(D, R))
3461
3443
  }));
3462
- }, k = () => {
3463
- h.value && v(JSON.stringify(X(w)));
3444
+ }, T = () => {
3445
+ f.value && g(JSON.stringify(U(l)));
3464
3446
  };
3465
- return re(c, (S) => {
3466
- S && en.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
3467
- }), () => o(a(ve, {
3447
+ return le(c, (x) => {
3448
+ x && Qt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
3449
+ }), () => a(o(be, {
3468
3450
  width: 300,
3469
3451
  closable: !1,
3470
3452
  open: d.value,
3471
- rootClassName: `${n} ${i.value} ${d.value && `${n}-show`} ${!l.value && `${n}-trantion-none`}`,
3453
+ rootClassName: `${n} ${i.value} ${d.value && `${n}-show`} ${!r.value && `${n}-trantion-none`}`,
3472
3454
  placement: "right",
3473
3455
  rootStyle: {
3474
3456
  zIndex: 999
@@ -3477,153 +3459,153 @@ const {
3477
3459
  padding: 0
3478
3460
  },
3479
3461
  onClose: () => m(!1),
3480
- handle: a("div", {
3462
+ handle: o("div", {
3481
3463
  class: [`${n}-handle`, i.value],
3482
3464
  onClick: () => m(!d.value)
3483
- }, [d.value ? a(yt, {
3484
- style: dt
3485
- }, null) : a(cn, {
3486
- style: dt
3465
+ }, [d.value ? o(ht, {
3466
+ style: ut
3467
+ }, null) : o(dn, {
3468
+ style: ut
3487
3469
  }, null)])
3488
3470
  }, {
3489
- default: () => [a("div", {
3471
+ default: () => [o("div", {
3490
3472
  class: [`${n}-wrapper`, i.value]
3491
- }, [a(On, null, {
3492
- default: () => [a("div", {
3473
+ }, [o(On, null, {
3474
+ default: () => [o("div", {
3493
3475
  class: [`${n}-content`, i.value]
3494
- }, [a(pe, {
3476
+ }, [o(ye, {
3495
3477
  prefixCls: n,
3496
3478
  hashId: i.value,
3497
3479
  title: "整体风格设置"
3498
3480
  }, {
3499
- default: () => [a(rt, {
3481
+ default: () => [o(lt, {
3500
3482
  hashId: i.value,
3501
3483
  prefixCls: n,
3502
- list: _t,
3503
- value: w.value.theme,
3484
+ list: Ht,
3485
+ value: l.value.theme,
3504
3486
  configType: "theme",
3505
3487
  key: "navTheme",
3506
- onChange: (S) => f("theme", S)
3488
+ onChange: (x) => v("theme", x)
3507
3489
  }, null)]
3508
- }), a(pe, {
3490
+ }), o(ye, {
3509
3491
  hashId: i.value,
3510
- title: a("span", null, [Q("主题色 "), a("a", {
3492
+ title: o("span", null, [Q("主题色 "), o("a", {
3511
3493
  style: {
3512
3494
  fontSize: "12px"
3513
3495
  },
3514
- onClick: () => b(!0)
3496
+ onClick: () => h(!0)
3515
3497
  }, [Q("更多配置")])]),
3516
3498
  prefixCls: n
3517
3499
  }, {
3518
- default: () => [a(Qa, {
3500
+ default: () => [o(Qa, {
3519
3501
  hashId: i.value,
3520
3502
  prefixCls: n,
3521
- colorList: s.value,
3522
- settingValue: w.value,
3523
- onChange: (S, O) => f(O || "primaryColor", S)
3503
+ colorList: I.value,
3504
+ settingValue: l.value,
3505
+ onChange: (x, O) => v(O || "primaryColor", x)
3524
3506
  }, null)]
3525
- }), !e.themeOnly && a(q, null, [a(ke, null, null), a(pe, {
3507
+ }), !e.themeOnly && o(q, null, [o(Be, null, null), o(ye, {
3526
3508
  hashId: i.value,
3527
3509
  prefixCls: n,
3528
3510
  title: "导航模式"
3529
3511
  }, {
3530
- default: () => [a(rt, {
3512
+ default: () => [o(lt, {
3531
3513
  prefixCls: n,
3532
- value: X(w).layout,
3514
+ value: U(l).layout,
3533
3515
  key: "layout",
3534
3516
  hashId: i.value,
3535
3517
  configType: "layout",
3536
- list: Et,
3537
- onChange: (S) => f("layout", S)
3518
+ list: _t,
3519
+ onChange: (x) => v("layout", x)
3538
3520
  }, null)]
3539
3521
  }), lo.map(({
3540
- label: S,
3522
+ label: x,
3541
3523
  title: O
3542
- }) => a(be, {
3524
+ }) => o(ge, {
3543
3525
  label: O,
3544
- disabled: X(I)[S],
3545
- value: X(w)[S],
3526
+ disabled: U(M)[x],
3527
+ value: U(l)[x],
3546
3528
  prefixCls: n,
3547
3529
  hashId: i.value,
3548
- valueKey: S,
3549
- onChange: (F, R) => f(F, R)
3550
- }, null)), a(ke, null, null), a(pe, {
3530
+ valueKey: x,
3531
+ onChange: (F, R) => v(F, R)
3532
+ }, null)), o(Be, null, null), o(ye, {
3551
3533
  hashId: i.value,
3552
3534
  prefixCls: n,
3553
- title: a("span", null, [Q("其他设置 "), a("a", {
3535
+ title: o("span", null, [Q("其他设置 "), o("a", {
3554
3536
  style: {
3555
3537
  fontSize: "12px"
3556
3538
  },
3557
- onClick: () => r(!0)
3539
+ onClick: () => s(!0)
3558
3540
  }, [Q("更多配置")])])
3559
3541
  }, {
3560
3542
  default: () => [ro.map(({
3561
- label: S,
3543
+ label: x,
3562
3544
  title: O
3563
- }) => a(be, {
3545
+ }) => o(ge, {
3564
3546
  label: O,
3565
- disabled: X(I)[S],
3566
- value: X(w)[S],
3547
+ disabled: U(M)[x],
3548
+ value: U(l)[x],
3567
3549
  prefixCls: n,
3568
3550
  hashId: i.value,
3569
- valueKey: S,
3570
- onChange: (F, R) => f(F, R)
3571
- }, null)), e.weakmode && a(be, {
3551
+ valueKey: x,
3552
+ onChange: (F, R) => v(F, R)
3553
+ }, null)), e.weakmode && o(ge, {
3572
3554
  label: "色弱模式",
3573
- value: X(w).colorWeak,
3555
+ value: U(l).colorWeak,
3574
3556
  prefixCls: n,
3575
3557
  hashId: i.value,
3576
3558
  valueKey: "colorWeak",
3577
- onChange: (S, O) => f(S, O)
3578
- }, null), e.showProgress && a(be, {
3559
+ onChange: (x, O) => v(x, O)
3560
+ }, null), e.showProgress && o(ge, {
3579
3561
  label: "顶部进度条",
3580
- value: X(w).showProgressBar,
3562
+ value: U(l).showProgressBar,
3581
3563
  prefixCls: n,
3582
3564
  hashId: i.value,
3583
3565
  valueKey: "showProgressBar",
3584
- onChange: (S, O) => f(S, O)
3566
+ onChange: (x, O) => v(x, O)
3585
3567
  }, null)]
3586
- })]), e.hideHintAlert && e.hideCopyButton ? null : a(ke, null, null), e.hideHintAlert ? null : a(tn, {
3568
+ })]), e.hideHintAlert && e.hideCopyButton ? null : o(Be, null, null), e.hideHintAlert ? null : o(en, {
3587
3569
  type: "warning",
3588
3570
  message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
3589
- icon: a(mn, null, null),
3571
+ icon: o(cn, null, null),
3590
3572
  showIcon: !0,
3591
3573
  style: {
3592
3574
  marginBottom: "16px"
3593
3575
  }
3594
- }, null), e.hideCopyButton ? null : a(nn, {
3595
- onClick: () => k(),
3576
+ }, null), e.hideCopyButton ? null : o(tn, {
3577
+ onClick: () => T(),
3596
3578
  block: !0
3597
3579
  }, {
3598
- default: () => [a(fn, null, null), Q("拷贝设置")]
3580
+ default: () => [o(mn, null, null), Q("拷贝设置")]
3599
3581
  })])]
3600
- })]), a(ve, {
3582
+ })]), o(be, {
3601
3583
  width: 320,
3602
3584
  closable: !1,
3603
3585
  placement: "right",
3604
- open: y.value,
3586
+ open: b.value,
3605
3587
  bodyStyle: {
3606
3588
  padding: 0
3607
3589
  },
3608
- onClose: () => b(!1)
3590
+ onClose: () => h(!1)
3609
3591
  }, {
3610
- default: () => [a(no, {
3611
- settingValue: w.value,
3612
- onChange: (S, O, F) => f(O || "primaryColor", S, F)
3592
+ default: () => [o(no, {
3593
+ settingValue: l.value,
3594
+ onChange: (x, O, F) => v(O || "primaryColor", x, F)
3613
3595
  }, null)]
3614
- }), a(ve, {
3596
+ }), o(be, {
3615
3597
  width: 320,
3616
3598
  closable: !1,
3617
3599
  placement: "right",
3618
- open: p.value,
3600
+ open: S.value,
3619
3601
  bodyStyle: {
3620
3602
  padding: 0
3621
3603
  },
3622
- onClose: () => r(!1)
3604
+ onClose: () => s(!1)
3623
3605
  }, {
3624
- default: () => [a(oo, {
3625
- settingValue: w.value,
3626
- onChange: (S, O, F) => f(S, F, O)
3606
+ default: () => [o(oo, {
3607
+ settingValue: l.value,
3608
+ onChange: (x, O, F) => v(x, F, O)
3627
3609
  }, null)]
3628
3610
  })]
3629
3611
  }));
@@ -4053,7 +4035,7 @@ const {
4053
4035
  opacity: 1,
4054
4036
  transform: "translate3d(0, 0, 0)"
4055
4037
  }
4056
- }), Eo = new u("fadeInTopLeft", {
4038
+ }), Vo = new u("fadeInTopLeft", {
4057
4039
  from: {
4058
4040
  opacity: 0,
4059
4041
  transform: "translate3d(-100%, -100%, 0)"
@@ -4062,7 +4044,7 @@ const {
4062
4044
  opacity: 1,
4063
4045
  transform: "translate3d(0, 0, 0)"
4064
4046
  }
4065
- }), Vo = new u("fadeInBottomRight", {
4047
+ }), Ao = new u("fadeInBottomRight", {
4066
4048
  from: {
4067
4049
  opacity: 0,
4068
4050
  transform: "translate3d(100%, 100%, 0)"
@@ -4071,7 +4053,7 @@ const {
4071
4053
  opacity: 1,
4072
4054
  transform: "translate3d(0, 0, 0)"
4073
4055
  }
4074
- }), Ao = new u("fadeInTopRight", {
4056
+ }), Eo = new u("fadeInTopRight", {
4075
4057
  from: {
4076
4058
  opacity: 0,
4077
4059
  transform: "translate3d(100%, -100%, 0)"
@@ -4235,15 +4217,15 @@ const {
4235
4217
  },
4236
4218
  "&.fadeInTopLeft": {
4237
4219
  animationFillMode: "both",
4238
- animationName: Eo
4220
+ animationName: Vo
4239
4221
  },
4240
4222
  "&.fadeInBottomRight": {
4241
4223
  animationFillMode: "both",
4242
- animationName: Vo
4224
+ animationName: Ao
4243
4225
  },
4244
4226
  "&.fadeInTopRight": {
4245
4227
  animationFillMode: "both",
4246
- animationName: Ao
4228
+ animationName: Eo
4247
4229
  },
4248
4230
  "&.fadeInBottomLeft": {
4249
4231
  animationFillMode: "both",
@@ -4696,7 +4678,7 @@ const {
4696
4678
  transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
4697
4679
  animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4698
4680
  }
4699
- }), Ei = new u("zoomOutLeft", {
4681
+ }), Vi = new u("zoomOutLeft", {
4700
4682
  "40%": {
4701
4683
  opacity: 1,
4702
4684
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
@@ -4705,7 +4687,7 @@ const {
4705
4687
  opacity: 0,
4706
4688
  transform: "scale(0.1) translate3d(-2000px, 0, 0)"
4707
4689
  }
4708
- }), Vi = new u("zoomOutRight", {
4690
+ }), Ai = new u("zoomOutRight", {
4709
4691
  "40%": {
4710
4692
  opacity: 1,
4711
4693
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
@@ -4714,7 +4696,7 @@ const {
4714
4696
  opacity: 0,
4715
4697
  transform: "scale(0.1) translate3d(2000px, 0, 0)"
4716
4698
  }
4717
- }), Ai = new u("zoomOutUp", {
4699
+ }), Ei = new u("zoomOutUp", {
4718
4700
  "40%": {
4719
4701
  opacity: 1,
4720
4702
  transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
@@ -4759,17 +4741,17 @@ const {
4759
4741
  "&.zoomOutLeft": {
4760
4742
  animationFillMode: "both",
4761
4743
  transformOrigin: "left center",
4762
- animationName: Ei
4744
+ animationName: Vi
4763
4745
  },
4764
4746
  "&.zoomOutRight": {
4765
4747
  animationFillMode: "both",
4766
4748
  transformOrigin: "right center",
4767
- animationName: Vi
4749
+ animationName: Ai
4768
4750
  },
4769
4751
  "&.zoomOutUp": {
4770
4752
  animationFillMode: "both",
4771
4753
  transformOrigin: "center bottom",
4772
- animationName: Ai
4754
+ animationName: Ei
4773
4755
  }
4774
4756
  }), Ki = new u("slideInDown", {
4775
4757
  from: {
@@ -4906,7 +4888,7 @@ function nl(e) {
4906
4888
  return [tl(n)];
4907
4889
  }, e);
4908
4890
  }
4909
- const xl = /* @__PURE__ */ E({
4891
+ const xl = /* @__PURE__ */ H({
4910
4892
  name: "PageTranstion",
4911
4893
  props: {
4912
4894
  disabled: {
@@ -4926,57 +4908,58 @@ const xl = /* @__PURE__ */ E({
4926
4908
  setup(e, {
4927
4909
  slots: t
4928
4910
  }) {
4929
- const n = he({
4911
+ const n = ce({
4930
4912
  suffixCls: "page-transtion",
4931
4913
  isPor: !0
4932
4914
  }), {
4933
- wrapSSR: o,
4915
+ wrapSSR: a,
4934
4916
  hashId: i
4935
- } = nl(n), l = C(() => [m(!1), `${n}-enter`, i.value].join(" ")), d = C(() => [m(!0), `${n}-leave`, i.value].join(" ")), m = (b) => {
4936
- const p = Ke.preset.find((w) => e.name == w.name);
4937
- if (p == null)
4917
+ } = nl(n), r = w(() => [m(!1), `${n}-enter`, i.value].join(" ")), d = w(() => [m(!0), `${n}-leave`, i.value].join(" ")), m = (h) => {
4918
+ const S = We.preset.find((l) => e.name == l.name);
4919
+ if (S == null)
4938
4920
  return "";
4939
- let r = "";
4940
- e.direction == null ? r = p.directions[0] : r = p.directions.find((w) => w == e.direction) || "", r = r == null || r === "default" ? "" : r, r != "" && (r = b && e.reverse ? y(r, p.directions) : r, r = r[0].toUpperCase() + r.substring(1));
4941
- const T = b ? "Out" : "In";
4942
- return p.name + T + r;
4943
- }, y = (b, p) => {
4944
- if (b.length == 0 || b == "x" || b == "y")
4945
- return b;
4946
- let r = p.indexOf(b);
4947
- return r = r % 2 == 1 ? r - 1 : r + 1, p[r];
4921
+ let s = "";
4922
+ e.direction == null ? s = S.directions[0] : s = S.directions.find((l) => l == e.direction) || "", s = s == null || s === "default" ? "" : s, s != "" && (s = h && e.reverse ? b(s, S.directions) : s, s = s[0].toUpperCase() + s.substring(1));
4923
+ const k = h ? "Out" : "In";
4924
+ return S.name + k + s;
4925
+ }, b = (h, S) => {
4926
+ if (h.length == 0 || h == "x" || h == "y")
4927
+ return h;
4928
+ let s = S.indexOf(h);
4929
+ return s = s % 2 == 1 ? s - 1 : s + 1, S[s];
4948
4930
  };
4949
- return () => e.disabled ? null : o(a(Yt, {
4950
- enterActiveClass: l.value,
4931
+ return () => e.disabled ? null : a(o(Gt, {
4932
+ enterActiveClass: r.value,
4951
4933
  leaveActiveClass: d.value
4952
4934
  }, {
4953
4935
  default: () => {
4954
- var b;
4955
- return [(b = t.default) == null ? void 0 : b.call(t)];
4936
+ var h;
4937
+ return [(h = t.default) == null ? void 0 : h.call(t)];
4956
4938
  }
4957
4939
  }));
4958
4940
  }
4959
4941
  });
4960
4942
  export {
4961
- St as BaseMenu,
4943
+ wt as BaseMenu,
4962
4944
  Ga as DefaultHeader,
4963
4945
  bl as GProLayout,
4964
- Fe as GlobalFooter,
4946
+ Te as GlobalFooter,
4965
4947
  yl as PageContainer,
4966
4948
  Mn as PageLoading,
4967
4949
  xl as PageTranstion,
4968
4950
  vl as SettingDrawer,
4969
- Te as SiderMenuWrapper,
4970
- Ye as WrapContent,
4971
- We as baseMenuProps,
4951
+ $e as SiderMenuWrapper,
4952
+ Ge as WrapContent,
4953
+ je as baseMenuProps,
4972
4954
  Pn as clearMenuItem,
4973
- En as createContext,
4974
- An as createRouteContext,
4955
+ Vn as createContext,
4956
+ En as createRouteContext,
4975
4957
  Ln as flatMap,
4976
4958
  pl as getMenuData,
4977
4959
  Dn as getMenuFirstChildren,
4960
+ Ct as getRealPath,
4978
4961
  Nn as handleThemeConfig,
4979
4962
  jn as provideProLayoutContext,
4980
- Vn as useContext,
4963
+ An as useContext,
4981
4964
  J as useProLayoutContext
4982
4965
  };