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