@gx-design-vue/pro-layout 0.1.0-beta.31 → 0.1.0-beta.32

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,20 +1,20 @@
1
- import { defineComponent as W, createVNode as n, mergeProps as Y, provide as ke, readonly as Rt, inject as ot, resolveComponent as it, computed as v, isVNode as ne, Fragment as q, toRefs as ve, unref as X, createTextVNode as Q, ref as Ie, reactive as lt, watch as re, withDirectives as Bt, vShow as kt, watchEffect as $t, Transition as Ft } from "vue";
2
- import { Spin as be, Menu as ee, ConfigProvider as $e, Layout as se, Drawer as he, Breadcrumb as Tt, Card as Pt, LayoutFooter as Lt, Tabs as Fe, Dropdown as Ye, Tooltip as xe, List as te, Switch as rt, TabPane as Dt, Select as me, message as Nt, Divider as we, Alert as zt, Button as Ht } from "ant-design-vue";
3
- import { useRouter as Te, RouterLink as Vt } from "vue-router";
4
- import { createFromIconfontCN as jt, MenuUnfoldOutlined as Wt, MenuFoldOutlined as At, GithubOutlined as Kt, EllipsisOutlined as Ut, ReloadOutlined as Et, CloseOutlined as st, CheckOutlined as dt, SettingOutlined as Xt, NotificationOutlined as Yt, CopyOutlined as _t } from "@ant-design/icons-vue";
5
- import Gt, { themeConfig as j, Keyframe as r, useProStyle as Z, useProConfigContext as Ce, useStyle as Pe, mergeToken as Le, colorList as qt } from "@gx-design-vue/pro-provider";
1
+ import { defineComponent as j, createVNode as n, mergeProps as X, provide as Te, readonly as Rt, inject as ot, resolveComponent as it, computed as v, isVNode as ie, Fragment as q, toRefs as Ce, unref as U, createTextVNode as te, ref as Re, reactive as lt, watch as de, withDirectives as Bt, vShow as kt, watchEffect as $t, Transition as Ft } from "vue";
2
+ import { Spin as ve, Menu as ae, ConfigProvider as Pe, Layout as ce, Drawer as be, Breadcrumb as Tt, Card as Pt, LayoutFooter as Lt, Tabs as Le, Dropdown as Ye, Tooltip as we, List as oe, Switch as rt, TabPane as Dt, Select as ge, message as Nt, Divider as Me, Alert as zt, Button as Ht } from "ant-design-vue";
3
+ import { useRouter as De, RouterLink as Vt } from "vue-router";
4
+ import { createFromIconfontCN as jt, MenuUnfoldOutlined as Wt, MenuFoldOutlined as At, GithubOutlined as Kt, EllipsisOutlined as Ut, ReloadOutlined as Et, CloseOutlined as st, CheckOutlined as ut, SettingOutlined as Xt, NotificationOutlined as Yt, CopyOutlined as _t } from "@ant-design/icons-vue";
5
+ import Gt, { themeConfig as V, Keyframe as r, useProStyle as J, useProConfigContext as Se, useStyle as Ne, mergeToken as ze, colorList as qt } from "@gx-design-vue/pro-provider";
6
6
  import { createTypes as Zt } from "vue-types";
7
- import { cloneDeep as De, pick as ae, omit as Ne } from "lodash-es";
7
+ import { cloneDeep as He, pick as le, omit as Ve } from "lodash-es";
8
8
  import { GPorWaterMark as Jt } from "@gx-design-vue/pro-watermark";
9
- import { getSlot as E, isBoolean as Qt, getPrefixCls as de, classNames as ut, getLevelData as en, isArray as tn, isBrowser as nn, merge as an } from "@gx-design-vue/pro-utils";
10
- import { useMediaQuery as on, useState as ye, useMergedState as ln } from "@gx-design-vue/pro-hooks";
9
+ import { getSlot as K, isBoolean as Qt, getPrefixCls as me, classNames as dt, getLevelData as en, isArray as tn, isBrowser as nn, merge as an } from "@gx-design-vue/pro-utils";
10
+ import { useMediaQuery as on, useState as pe, useMergedState as ln } from "@gx-design-vue/pro-hooks";
11
11
  import { useWindowSize as rn, useClipboard as sn } from "@vueuse/core";
12
- import dn from "@gx-design-vue/scrollbar";
12
+ import un from "@gx-design-vue/scrollbar";
13
13
  import { GColorPicker as _e } from "@gx-design-vue/color-picker";
14
- const un = /* @__PURE__ */ W({
14
+ const dn = /* @__PURE__ */ j({
15
15
  name: "PageLoading",
16
16
  props: {
17
- ...be.props
17
+ ...ve.props
18
18
  },
19
19
  setup(e) {
20
20
  return n("div", {
@@ -22,7 +22,7 @@ const un = /* @__PURE__ */ W({
22
22
  paddingTop: "100px",
23
23
  textAlign: "center"
24
24
  }
25
- }, [n(be, Y(e, {
25
+ }, [n(ve, X(e, {
26
26
  indicator: n("i", {
27
27
  class: "toolsfont create-spin toolsfont tools-icon-jiazaizhong",
28
28
  style: {
@@ -55,75 +55,75 @@ ct.extend([{
55
55
  getter: !0,
56
56
  type: null
57
57
  }]);
58
- const L = ct, ie = {
58
+ const L = ct, se = {
59
59
  theme: {
60
60
  type: String,
61
- default: j.theme
61
+ default: V.theme
62
62
  },
63
63
  layout: {
64
64
  type: String,
65
- default: j.layout
65
+ default: V.layout
66
66
  },
67
67
  wideWidth: {
68
68
  type: Number,
69
- default: j.wideWidth
69
+ default: V.wideWidth
70
70
  },
71
71
  splitMenus: {
72
72
  type: Boolean,
73
- default: j.splitMenus
73
+ default: V.splitMenus
74
74
  },
75
75
  fixedMultiTab: {
76
76
  type: Boolean,
77
- default: j.fixedMultiTab
77
+ default: V.fixedMultiTab
78
78
  },
79
79
  showProgressBar: {
80
80
  type: Boolean,
81
- default: j.showProgressBar
81
+ default: V.showProgressBar
82
82
  },
83
83
  fixedHeader: {
84
84
  type: Boolean,
85
- default: j.fixedHeader
85
+ default: V.fixedHeader
86
86
  },
87
87
  fixSiderbar: {
88
88
  type: Boolean,
89
- default: j.fixSiderbar
89
+ default: V.fixSiderbar
90
90
  },
91
91
  showTabsBar: {
92
92
  type: Boolean,
93
- default: j.showTabsBar
93
+ default: V.showTabsBar
94
94
  },
95
95
  showFullScreen: {
96
96
  type: Boolean,
97
- default: j.showFullScreen
97
+ default: V.showFullScreen
98
98
  },
99
99
  autoHideHeader: {
100
100
  type: Boolean,
101
- default: j.autoHideHeader
101
+ default: V.autoHideHeader
102
102
  },
103
103
  headerHeight: {
104
104
  type: Number,
105
- default: j.headerHeight
105
+ default: V.headerHeight
106
106
  },
107
107
  title: {
108
108
  type: String,
109
- default: j.title
109
+ default: V.title
110
110
  },
111
111
  iconfontUrl: {
112
112
  type: String,
113
- default: j.iconfontUrl
113
+ default: V.iconfontUrl
114
114
  },
115
115
  animate: {
116
116
  type: Object,
117
- default: j.animate
117
+ default: V.animate
118
118
  },
119
119
  primaryColor: {
120
120
  type: String,
121
- default: j.primaryColor
121
+ default: V.primaryColor
122
122
  }
123
- }, oe = {
123
+ }, re = {
124
124
  renderKey: L.string.def("menuHeaderRender"),
125
- title: ie.title,
126
- layout: ie.layout,
125
+ title: se.title,
126
+ layout: se.layout,
127
127
  logo: {
128
128
  type: [Object, String, Function],
129
129
  default: () => {
@@ -146,8 +146,8 @@ const L = ct, ie = {
146
146
  }
147
147
  },
148
148
  onMenuHeaderClick: Function
149
- }, ze = {
150
- ...ie,
149
+ }, Ie = {
150
+ ...se,
151
151
  mode: {
152
152
  type: String,
153
153
  default: "inline"
@@ -182,11 +182,13 @@ const L = ct, ie = {
182
182
  },
183
183
  menuItemRender: {
184
184
  type: [Function, Boolean],
185
- default: () => !1
185
+ default: () => {
186
+ }
186
187
  },
187
188
  subMenuItemRender: {
188
189
  type: [Function, Boolean],
189
- default: () => !1
190
+ default: () => {
191
+ }
190
192
  },
191
193
  onClick: [Function, Object],
192
194
  onOpenKeys: {
@@ -195,13 +197,13 @@ const L = ct, ie = {
195
197
  onSelect: {
196
198
  type: Function
197
199
  }
198
- }, G = {
199
- ...ie,
200
- ...ze,
200
+ }, _ = {
201
+ ...se,
202
+ ...Ie,
201
203
  menuLoading: L.looseBool,
202
- logo: oe.logo,
203
- logoStyle: oe.logoStyle,
204
- logoDirection: oe.logoDirection,
204
+ logo: re.logo,
205
+ logoStyle: re.logoStyle,
206
+ logoDirection: re.logoDirection,
205
207
  siderWidth: L.number.def(208),
206
208
  headerHeight: L.number.def(48),
207
209
  collapsedWidth: L.number.def(48),
@@ -252,26 +254,26 @@ function mn(e) {
252
254
  return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
253
255
  }
254
256
  function ft(e, t, a, o) {
255
- var d, m, u, w, y, M, s, T, l, x, O, I, C, h, c, g, B, b, S, F, k, D, H, z, N, f, p, $, R, P, K, U, A, V;
257
+ var u, f, c, S, b, O, g, F, l, s, M, I, x, y, m, h, R, p, w, $, T, N, z, H, P, G, E, Y, A, d, C, B, k, D;
256
258
  const i = { ...e };
257
- return a === "light" ? (i.colorItemBg = (m = (d = t.layout) == null ? void 0 : d[o]) == null ? void 0 : m.colorBgMenu, i.colorSubItemBg = (w = (u = t.layout) == null ? void 0 : u[o]) == null ? void 0 : w.colorSubItemBg, i.colorItemBgSelected = (M = (y = t.layout) == null ? void 0 : y[o]) == null ? void 0 : M.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (T = (s = t.layout) == null ? void 0 : s[o]) == null ? void 0 : T.colorBgMenuItemSelected, i.colorItemText = (x = (l = t.layout) == null ? void 0 : l[o]) == null ? void 0 : x.colorTextMenu, i.colorItemTextHover = (I = (O = t.layout) == null ? void 0 : O[o]) == null ? void 0 : I.colorTextMenuHover, i.colorItemTextSelected = (h = (C = t.layout) == null ? void 0 : C[o]) == null ? void 0 : h.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (g = (c = t.layout) == null ? void 0 : c[o]) == null ? void 0 : g.colorTextMenuSelected, o === "sider" && (i.colorItemBgHover = (b = (B = t.layout) == null ? void 0 : B[o]) == null ? void 0 : b.colorBgMenuItemHover)) : a === "dark" && (i.colorItemBg = (F = (S = t.layout) == null ? void 0 : S[o]) == null ? void 0 : F.colorDarkBgMenu, i.colorSubItemBg = (D = (k = t.layout) == null ? void 0 : k[o]) == null ? void 0 : D.colorDarkSubItemBg, i.colorItemBgSelected = (z = (H = t.layout) == null ? void 0 : H[o]) == null ? void 0 : z.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (f = (N = t.layout) == null ? void 0 : N[o]) == null ? void 0 : f.colorDarkBgMenuItemSelected, i.colorItemText = ($ = (p = t.layout) == null ? void 0 : p[o]) == null ? void 0 : $.colorDarkTextMenu, i.colorItemTextHover = (P = (R = t.layout) == null ? void 0 : R[o]) == null ? void 0 : P.colorDarkTextMenuHover, i.colorItemTextSelected = (U = (K = t.layout) == null ? void 0 : K[o]) == null ? void 0 : U.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (V = (A = t.layout) == null ? void 0 : A[o]) == null ? void 0 : V.colorDarkTextMenuSelected, o === "header" && (i.colorActiveBarHeight = 0)), i;
259
+ return a === "light" ? (i.colorItemBg = (f = (u = t.layout) == null ? void 0 : u[o]) == null ? void 0 : f.colorBgMenu, i.colorSubItemBg = (S = (c = t.layout) == null ? void 0 : c[o]) == null ? void 0 : S.colorSubItemBg, i.colorItemBgSelected = (O = (b = t.layout) == null ? void 0 : b[o]) == null ? void 0 : O.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (F = (g = t.layout) == null ? void 0 : g[o]) == null ? void 0 : F.colorBgMenuItemSelected, i.colorItemText = (s = (l = t.layout) == null ? void 0 : l[o]) == null ? void 0 : s.colorTextMenu, i.colorItemTextHover = (I = (M = t.layout) == null ? void 0 : M[o]) == null ? void 0 : I.colorTextMenuHover, i.colorItemTextSelected = (y = (x = t.layout) == null ? void 0 : x[o]) == null ? void 0 : y.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (h = (m = t.layout) == null ? void 0 : m[o]) == null ? void 0 : h.colorTextMenuSelected, o === "sider" && (i.colorItemBgHover = (p = (R = t.layout) == null ? void 0 : R[o]) == null ? void 0 : p.colorBgMenuItemHover)) : a === "dark" && (i.colorItemBg = ($ = (w = t.layout) == null ? void 0 : w[o]) == null ? void 0 : $.colorDarkBgMenu, i.colorSubItemBg = (N = (T = t.layout) == null ? void 0 : T[o]) == null ? void 0 : N.colorDarkSubItemBg, i.colorItemBgSelected = (H = (z = t.layout) == null ? void 0 : z[o]) == null ? void 0 : H.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (G = (P = t.layout) == null ? void 0 : P[o]) == null ? void 0 : G.colorDarkBgMenuItemSelected, i.colorItemText = (Y = (E = t.layout) == null ? void 0 : E[o]) == null ? void 0 : Y.colorDarkTextMenu, i.colorItemTextHover = (d = (A = t.layout) == null ? void 0 : A[o]) == null ? void 0 : d.colorDarkTextMenuHover, i.colorItemTextSelected = (B = (C = t.layout) == null ? void 0 : C[o]) == null ? void 0 : B.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (D = (k = t.layout) == null ? void 0 : k[o]) == null ? void 0 : D.colorDarkTextMenuSelected, o === "header" && (i.colorActiveBarHeight = 0)), i;
258
260
  }
259
- const fn = ["left", "right"], le = ["left", "right", "down", "up"], gn = ["downBig", "upBig", "leftBig", "rightBig"], hn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], yn = ["downLeft", "upRight", "downRight", "upLeft"], He = {
261
+ const fn = ["left", "right"], ue = ["left", "right", "down", "up"], gn = ["downBig", "upBig", "leftBig", "rightBig"], hn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], yn = ["downLeft", "upRight", "downRight", "upLeft"], je = {
260
262
  preset: [
261
263
  //预设动画配置
262
- { name: "back", alias: "渐近", directions: le },
263
- { name: "bounce", alias: "弹跳", directions: le.concat("default") },
264
+ { name: "back", alias: "渐近", directions: ue },
265
+ { name: "bounce", alias: "弹跳", directions: ue.concat("default") },
264
266
  {
265
267
  name: "fade",
266
268
  alias: "淡化",
267
- directions: le.concat(gn).concat(hn).concat("default")
269
+ directions: ue.concat(gn).concat(hn).concat("default")
268
270
  },
269
271
  { name: "flip", alias: "翻转", directions: ["x", "y"] },
270
272
  { name: "lightSpeed", alias: "光速", directions: fn },
271
273
  { name: "rotate", alias: "旋转", directions: yn.concat("default") },
272
274
  { name: "roll", alias: "翻滚", directions: ["default"] },
273
- { name: "zoom", alias: "缩放", directions: le.concat("default") },
274
- { name: "slide", alias: "滑动", directions: le }
275
+ { name: "zoom", alias: "缩放", directions: ue.concat("default") },
276
+ { name: "slide", alias: "滑动", directions: ue }
275
277
  ]
276
278
  };
277
279
  function bn(e) {
@@ -282,8 +284,8 @@ function bn(e) {
282
284
  return null;
283
285
  if (a && (a != null && a.children)) {
284
286
  if (a.children.some((i) => {
285
- var d;
286
- return i && !((d = i.meta) != null && d.hideInMenu);
287
+ var u;
288
+ return i && !((u = i.meta) != null && u.hideInMenu);
287
289
  }))
288
290
  return {
289
291
  ...a,
@@ -321,24 +323,24 @@ function xn(e) {
321
323
  }
322
324
  function Li(e, t) {
323
325
  var o, i;
324
- const a = ((i = (o = e.find((d) => d.path === t)) == null ? void 0 : o.meta) == null ? void 0 : i.key) || "";
326
+ const a = ((i = (o = e.find((u) => u.path === t)) == null ? void 0 : o.meta) == null ? void 0 : i.key) || "";
325
327
  if (a) {
326
- const d = [], m = a.split("-");
327
- for (let u = 0; u < m.length; u += 1)
328
- d.push(De(m).splice(0, u + 1).join("-"));
329
- return e.filter((u) => d.some((w) => {
330
- var y;
331
- return w === ((y = u == null ? void 0 : u.meta) == null ? void 0 : y.key) || "";
328
+ const u = [], f = a.split("-");
329
+ for (let c = 0; c < f.length; c += 1)
330
+ u.push(He(f).splice(0, c + 1).join("-"));
331
+ return e.filter((c) => u.some((S) => {
332
+ var b;
333
+ return S === ((b = c == null ? void 0 : c.meta) == null ? void 0 : b.key) || "";
332
334
  }));
333
335
  }
334
336
  return [];
335
337
  }
336
338
  function Cn(e) {
337
- return e.layout === "mix" && (e.fixSiderbar = !0, e.fixedHeader = !0, e.splitMenus = !0), e.layout === "simple" && (e.splitMenus = !1, e.showTabsBar = !1), e.layout === "side" && (e.splitMenus = !1), e.layout === "wide" && (e.splitMenus = !1, e.fixSiderbar = !1, e.fixedHeader = !0, e.showTabsBar = !1, e.fixedMultiTab = !1), { ...e };
339
+ return e.layout === "mix" && (e.fixSiderbar = !0, e.fixedHeader = !0, e.splitMenus = !0), e.layout === "top" && (e.fixSiderbar = !1, e.fixedHeader = !0, e.splitMenus = !1), e.layout === "simple" && (e.splitMenus = !1, e.showTabsBar = !1), e.layout === "side" && (e.splitMenus = !1), e.layout === "wide" && (e.splitMenus = !1, e.fixSiderbar = !1, e.fixedHeader = !0, e.showTabsBar = !1, e.fixedMultiTab = !1), { ...e };
338
340
  }
339
341
  function wn(e) {
340
342
  const t = ["showTabsBar", "fixedMultiTab", "fixSiderbar", "fixedHeader", "splitMenus"];
341
- let o = Object.keys(e).reduce((i, d) => (i[d] = !1, i), {});
343
+ let o = Object.keys(e).reduce((i, u) => (i[u] = !1, i), {});
342
344
  return o = Sn(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;
343
345
  }
344
346
  function Sn(e, t) {
@@ -346,7 +348,7 @@ function Sn(e, t) {
346
348
  ...t.reduce((a, o) => ({ ...a, [o]: e[o] }), {})
347
349
  };
348
350
  }
349
- const In = (e = Symbol(), t = "Context.Provider") => W({
351
+ const In = (e = Symbol(), t = "Context.Provider") => j({
350
352
  name: t,
351
353
  props: {
352
354
  value: {
@@ -355,19 +357,19 @@ const In = (e = Symbol(), t = "Context.Provider") => W({
355
357
  }
356
358
  },
357
359
  setup(o, { slots: i }) {
358
- return ke(e, Rt(o.value)), () => {
359
- var d;
360
- return (d = i.default) == null ? void 0 : d.call(i);
360
+ return Te(e, Rt(o.value)), () => {
361
+ var u;
362
+ return (u = i.default) == null ? void 0 : u.call(i);
361
363
  };
362
364
  }
363
- }), Mn = (e = Symbol(), t) => ot(e, t || {}), Ve = Symbol("pro-layout-context"), On = () => In(Ve, "ProLayoutContext.Provider"), Rn = (e) => {
364
- ke(Ve, e);
365
- }, J = () => Mn(Ve);
365
+ }), Mn = (e = Symbol(), t) => ot(e, t || {}), We = Symbol("pro-layout-context"), On = () => In(We, "ProLayoutContext.Provider"), Rn = (e) => {
366
+ Te(We, e);
367
+ }, Q = () => Mn(We);
366
368
  On();
367
369
  function Ge(e) {
368
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
370
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
369
371
  }
370
- const pe = (e) => {
372
+ const xe = (e) => {
371
373
  const {
372
374
  icon: t,
373
375
  iconType: a,
@@ -383,22 +385,22 @@ const pe = (e) => {
383
385
  class: `${e.className}-icon-image`
384
386
  }, null);
385
387
  if (a === 1) {
386
- const d = jt({
387
- scriptUrl: o || j.iconfontUrl
388
+ const u = jt({
389
+ scriptUrl: o || V.iconfontUrl
388
390
  });
389
- return o ? n(d, {
391
+ return o ? n(u, {
390
392
  type: t
391
393
  }, null) : n("i", {
392
394
  class: `iconfont ${t} ${e.className}-icon`
393
395
  }, null);
394
396
  }
395
397
  }
396
- if (ne(t))
398
+ if (ie(t))
397
399
  return t;
398
400
  const i = it(t);
399
- return typeof pe == "function" && n(i, null, null) || null;
401
+ return typeof xe == "function" && n(i, null, null) || null;
400
402
  };
401
- pe.props = {
403
+ xe.props = {
402
404
  icon: {
403
405
  type: [String, Function, Object]
404
406
  },
@@ -406,99 +408,99 @@ pe.props = {
406
408
  className: String,
407
409
  iconfontUrl: String
408
410
  };
409
- const gt = /* @__PURE__ */ W({
411
+ const gt = /* @__PURE__ */ j({
410
412
  name: "BaseMenu",
411
- props: ze,
413
+ props: Ie,
412
414
  setup(e) {
413
- const t = Te(), {
415
+ const t = De(), {
414
416
  getPrefixCls: a
415
- } = J(), o = a({
417
+ } = Q(), o = a({
416
418
  suffixCls: "menu-item",
417
419
  isPor: !0
418
420
  }), i = (l) => {
421
+ var s;
422
+ (s = e.onOpenKeys) == null || s.call(e, l);
423
+ }, u = (l) => {
424
+ var s;
425
+ (s = e.onSelect) == null || s.call(e, l.selectedKeys);
426
+ }, f = (l) => {
427
+ var s;
428
+ (s = e.onClick) == null || s.call(e, ...l);
429
+ }, c = (l, s) => {
419
430
  var x;
420
- (x = e.onOpenKeys) == null || x.call(e, l);
421
- }, d = (l) => {
422
- var x;
423
- (x = e.onSelect) == null || x.call(e, l.selectedKeys);
424
- }, m = (l) => {
425
- var x;
426
- (x = e.onClick) == null || x.call(e, ...l);
427
- }, u = (l, x) => {
428
- var C;
429
- const O = l.target || "", I = mt(O);
430
- ((C = t.currentRoute.value) == null ? void 0 : C.fullPath) !== x.to && I && O && l.targetStatus === 1 && window.open(O);
431
- }, w = it("router-link"), y = (l = []) => l.map((x) => M(x)).filter((x) => x), M = (l) => {
432
- var I, C, h, c, g, B, b, S, F;
433
- if (Array.isArray(l.children) && l.children.length > 0 && !((I = l == null ? void 0 : l.meta) != null && I.hideInMenu) && !((C = l == null ? void 0 : l.meta) != null && C.hideChildrenInMenu)) {
434
- let k;
431
+ const M = l.target || "", I = mt(M);
432
+ ((x = t.currentRoute.value) == null ? void 0 : x.fullPath) !== s.to && I && M && l.targetStatus === 1 && window.open(M);
433
+ }, S = it("router-link"), b = (l = []) => l.map((s) => O(s)).filter((s) => s), O = (l) => {
434
+ var I, x, y, m, h, R, p, w, $;
435
+ if (Array.isArray(l.children) && l.children.length > 0 && !((I = l == null ? void 0 : l.meta) != null && I.hideInMenu) && !((x = l == null ? void 0 : l.meta) != null && x.hideChildrenInMenu)) {
436
+ let T;
435
437
  if (e.subMenuItemRender)
436
438
  return e.subMenuItemRender({
437
439
  item: l,
438
- children: y(l.children)
440
+ children: b(l.children)
439
441
  });
440
- const D = (h = l.meta) == null ? void 0 : h.title, H = (c = l.meta) != null && c.icon ? n("span", {
442
+ const N = (y = l.meta) == null ? void 0 : y.title, z = (m = l.meta) != null && m.icon ? n("span", {
441
443
  class: "gx-pro-sider-menu-item"
442
444
  }, [n("span", {
443
445
  class: "gx-pro-sider-menu-item-title"
444
- }, [D])]) : n("span", {
446
+ }, [N])]) : n("span", {
445
447
  class: "gx-pro-sider-menu-item"
446
- }, [D]), z = ((g = l.meta) == null ? void 0 : g.type) === "group", N = z ? ee.ItemGroup : ee.SubMenu;
447
- return n(N, {
448
- title: H,
448
+ }, [N]), H = ((h = l.meta) == null ? void 0 : h.type) === "group", P = H ? ae.ItemGroup : ae.SubMenu;
449
+ return n(P, {
450
+ title: z,
449
451
  key: l.path,
450
- icon: z ? null : n(pe, {
452
+ icon: H ? null : n(xe, {
451
453
  className: o,
452
- icon: (B = l.meta) == null ? void 0 : B.icon,
454
+ icon: (R = l.meta) == null ? void 0 : R.icon,
453
455
  iconfontUrl: e.iconfontUrl,
454
- iconType: (b = l.meta) == null ? void 0 : b.iconType
456
+ iconType: (p = l.meta) == null ? void 0 : p.iconType
455
457
  }, null)
456
- }, Ge(k = y(l.children)) ? k : {
457
- default: () => [k]
458
+ }, Ge(T = b(l.children)) ? T : {
459
+ default: () => [T]
458
460
  });
459
461
  }
460
- const [x, O] = s(l);
462
+ const [s, M] = g(l);
461
463
  return e.menuItemRender && e.menuItemRender({
462
464
  item: l,
463
- title: x,
464
- icon: O
465
- }) || n(ee.Item, {
466
- disabled: (S = l.meta) == null ? void 0 : S.disabled,
467
- danger: (F = l.meta) == null ? void 0 : F.danger,
465
+ title: s,
466
+ icon: M
467
+ }) || n(ae.Item, {
468
+ disabled: (w = l.meta) == null ? void 0 : w.disabled,
469
+ danger: ($ = l.meta) == null ? void 0 : $.danger,
468
470
  key: l.path,
469
- icon: O
470
- }, Ge(x) ? x : {
471
- default: () => [x]
471
+ icon: M
472
+ }, Ge(s) ? s : {
473
+ default: () => [s]
472
474
  });
473
- }, s = (l) => {
474
- var g, B, b, S, F;
475
- const x = {
475
+ }, g = (l) => {
476
+ var h, R, p, w, $;
477
+ const s = {
476
478
  ...l.meta
477
- }, O = x.targetStatus === 1 && x.target ? "a" : w, I = {
479
+ }, M = s.targetStatus === 1 && s.target ? "a" : S, I = {
478
480
  to: l.linkPath || l.path || ""
479
481
  };
480
482
  I.to === "/live/list/operation/:id" && (I.to = "/live/list/operation/add");
481
- const C = (g = l.meta) == null ? void 0 : g.title, h = (B = l.meta) != null && B.icon ? n(O, Y(I, {
483
+ const x = (h = l.meta) == null ? void 0 : h.title, y = (R = l.meta) != null && R.icon ? n(M, X(I, {
482
484
  class: "gx-pro-sider-menu-item",
483
- onClick: () => u(x, I)
485
+ onClick: () => c(s, I)
484
486
  }), {
485
487
  default: () => [n("span", {
486
488
  class: "gx-pro-sider-menu-item-title"
487
- }, [C])]
488
- }) : n(O, Y(I, {
489
+ }, [x])]
490
+ }) : n(M, X(I, {
489
491
  class: "gx-pro-sider-menu-item",
490
- onClick: () => u(x, I)
492
+ onClick: () => c(s, I)
491
493
  }), {
492
- default: () => [n("span", null, [C])]
493
- }), c = ((b = l.meta) == null ? void 0 : b.icon) && n(pe, {
494
+ default: () => [n("span", null, [x])]
495
+ }), m = ((p = l.meta) == null ? void 0 : p.icon) && n(xe, {
494
496
  className: o,
495
- icon: (S = l.meta) == null ? void 0 : S.icon,
497
+ icon: (w = l.meta) == null ? void 0 : w.icon,
496
498
  iconfontUrl: e.iconfontUrl,
497
- iconType: (F = l.meta) == null ? void 0 : F.iconType
499
+ iconType: ($ = l.meta) == null ? void 0 : $.iconType
498
500
  }, null) || void 0;
499
- return [h, c];
500
- }, T = v(() => y(e.menuData));
501
- return () => n(ee, Y({
501
+ return [y, m];
502
+ }, F = v(() => b(e.menuData));
503
+ return () => n(ae, X({
502
504
  key: "Menu",
503
505
  inlineIndent: 16,
504
506
  mode: e.mode,
@@ -506,10 +508,10 @@ const gt = /* @__PURE__ */ W({
506
508
  openKeys: e.openKeys === !1 ? [] : e.openKeys,
507
509
  selectedKeys: e.selectedKeys || [],
508
510
  onOpenChange: i,
509
- onSelect: d,
510
- onClick: m
511
+ onSelect: u,
512
+ onClick: f
511
513
  }, e.menuProps), {
512
- default: () => [T.value]
514
+ default: () => [F.value]
513
515
  });
514
516
  }
515
517
  }), ht = new r("pro-layout-title-hide", {
@@ -534,7 +536,7 @@ const gt = /* @__PURE__ */ W({
534
536
  }
535
537
  };
536
538
  }, kn = (e) => {
537
- var t, a, o, i, d, m, u, w, y, M, s, T;
539
+ var t, a, o, i, u, f, c, S, b, O, g, F;
538
540
  return {
539
541
  [`${e.proComponentsCls}-basic-layout`]: {
540
542
  [`&${e.proComponentsCls}-basic-layout-wide`]: {
@@ -567,7 +569,7 @@ const gt = /* @__PURE__ */ W({
567
569
  background: (i = (o = e.layout) == null ? void 0 : o.sider) == null ? void 0 : i.colorBgMenu,
568
570
  boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
569
571
  [`${e.componentCls}-footer`]: {
570
- color: (m = (d = e.layout) == null ? void 0 : d.sider) == null ? void 0 : m.colorTextMenu
572
+ color: (f = (u = e.layout) == null ? void 0 : u.sider) == null ? void 0 : f.colorTextMenu
571
573
  }
572
574
  },
573
575
  "&-links": {
@@ -583,7 +585,7 @@ const gt = /* @__PURE__ */ W({
583
585
  background: "transparent"
584
586
  },
585
587
  "&-footer": {
586
- color: (w = (u = e.layout) == null ? void 0 : u.sider) == null ? void 0 : w.colorDarkTextMenu,
588
+ color: (S = (c = e.layout) == null ? void 0 : c.sider) == null ? void 0 : S.colorDarkTextMenu,
587
589
  paddingBlockEnd: 16,
588
590
  fontSize: e.fontSize,
589
591
  animationName: ht,
@@ -598,8 +600,8 @@ const gt = /* @__PURE__ */ W({
598
600
  zIndex: "100",
599
601
  height: "100%",
600
602
  "&-mix": {
601
- height: `calc(100% - ${((M = (y = e.layout) == null ? void 0 : y.header) == null ? void 0 : M.heightLayoutHeader) || j.headerHeight}px)`,
602
- insetBlockStart: `${((T = (s = e.layout) == null ? void 0 : s.header) == null ? void 0 : T.heightLayoutHeader) || j.headerHeight}px`
603
+ height: `calc(100% - ${((O = (b = e.layout) == null ? void 0 : b.header) == null ? void 0 : O.heightLayoutHeader) || V.headerHeight}px)`,
604
+ insetBlockStart: `${((F = (g = e.layout) == null ? void 0 : g.header) == null ? void 0 : F.heightLayoutHeader) || V.headerHeight}px`
603
605
  }
604
606
  }
605
607
  }
@@ -681,49 +683,49 @@ const gt = /* @__PURE__ */ W({
681
683
  logo: a,
682
684
  logoStyle: o,
683
685
  title: i,
684
- layout: d
685
- } = e, m = e[t || ""];
686
- if (m === !1)
686
+ layout: u
687
+ } = e, f = e[t || ""];
688
+ if (f === !1)
687
689
  return null;
688
- const u = yt(a, o), w = i && n("h1", null, [i]);
689
- return typeof m == "function" ? m(u, e.collapsed ? null : w, e) : n(q, null, [u || null, e.collapsed && d === "side" ? null : w]);
690
- }, je = /* @__PURE__ */ W({
690
+ const c = yt(a, o), S = i && n("h1", null, [i]);
691
+ return typeof f == "function" ? f(c, e.collapsed ? null : S, e) : n(q, null, [c || null, e.collapsed && u === "side" ? null : S]);
692
+ }, Ae = /* @__PURE__ */ j({
691
693
  name: "LogoContent",
692
- props: oe,
694
+ props: re,
693
695
  setup(e) {
694
696
  const {
695
697
  getPrefixCls: t
696
- } = J(), a = v(() => e.layout === "side" || e.layout === "simple"), o = v(() => t({
698
+ } = Q(), a = v(() => e.layout === "side" || e.layout === "simple"), o = v(() => t({
697
699
  suffixCls: a.value || e.drawer ? "sider" : "global-header",
698
700
  isPor: !0
699
701
  })), {
700
702
  wrapSSR: i,
701
- hashId: d
702
- } = Z("ProLayoutLogo", [Fn]), m = v(() => Tn(e, e.renderKey));
703
+ hashId: u
704
+ } = J("ProLayoutLogo", [Fn]), f = v(() => Tn(e, e.renderKey));
703
705
  return () => i(n("div", {
704
706
  id: "logo",
705
707
  class: {
706
- [`${d.value}`]: !0,
708
+ [`${u.value}`]: !0,
707
709
  [`${o.value}-logo`]: !0,
708
710
  [`${o.value}-logo-collapsed`]: !!e.collapsed
709
711
  },
710
712
  onClick: () => {
711
- var u;
712
- return (u = e.onMenuHeaderClick) == null ? void 0 : u.call(e);
713
+ var c;
714
+ return (c = e.onMenuHeaderClick) == null ? void 0 : c.call(e);
713
715
  }
714
- }, [n("a", null, [m.value || null])]));
716
+ }, [n("a", null, [f.value || null])]));
715
717
  }
716
718
  });
717
- je.inheritAttrs = !1;
719
+ Ae.inheritAttrs = !1;
718
720
  function Pn(e) {
719
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
721
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
720
722
  }
721
723
  const {
722
724
  Sider: Ln
723
- } = se, {
725
+ } = ce, {
724
726
  Item: qe
725
- } = ee, bt = (e) => e ? n(Wt, null, null) : n(At, null, null), Ze = /* @__PURE__ */ W({
726
- props: G,
727
+ } = ae, bt = (e) => e ? n(Wt, null, null) : n(At, null, null), Ze = /* @__PURE__ */ j({
728
+ props: _,
727
729
  inheritAttrs: !1,
728
730
  setup(e) {
729
731
  const {
@@ -731,54 +733,54 @@ const {
731
733
  selectedKeys: a,
732
734
  flatMenuData: o,
733
735
  menuData: i,
734
- openKeys: d
735
- } = J(), {
736
- token: m
737
- } = Ce(), {
738
- theme: u,
739
- layout: w,
740
- isMobile: y,
741
- menuLoading: M,
742
- breakpoint: s,
743
- fixSiderbar: T,
736
+ openKeys: u
737
+ } = Q(), {
738
+ token: f
739
+ } = Se(), {
740
+ theme: c,
741
+ layout: S,
742
+ isMobile: b,
743
+ menuLoading: O,
744
+ breakpoint: g,
745
+ fixSiderbar: F,
744
746
  collapsed: l,
745
- siderWidth: x,
746
- collapsedWidth: O,
747
+ siderWidth: s,
748
+ collapsedWidth: M,
747
749
  menuExtraRender: I,
748
- menuContentRender: C,
749
- menuFooterRender: h,
750
- collapsedButtonRender: c,
751
- links: g
752
- } = ve(e), B = t({
750
+ menuContentRender: x,
751
+ menuFooterRender: y,
752
+ collapsedButtonRender: m,
753
+ links: h
754
+ } = Ce(e), R = t({
753
755
  suffixCls: "sider",
754
756
  isPor: !0
755
757
  }), {
756
- wrapSSR: b,
757
- hashId: S
758
- } = Z("ProLayoutSiderMenu", [Bn, kn, $n], B), F = v(() => e.layout === "wide"), k = v(() => e.layout === "mix" && !e.isMobile && e.splitMenus), D = v(() => w.value === "side" || w.value === "simple"), H = v(() => (e.layout === "mix" || F.value) && "light" || u.value), z = v(() => e.collapsed ? e.collapsedWidth : e.siderWidth), N = v(() => [S.value, B, y.value ? "shadow" : null, `${B}-${H.value}`, T.value && e.layout !== "wide" ? `${B}-fixed` : null]), f = v(() => {
759
- var R;
760
- return typeof g.value == "function" ? (R = g.value) == null ? void 0 : R.call(g) : g.value;
761
- }), p = v(() => c.value !== !1 ? c.value || bt : !1), $ = (R) => {
762
- var P;
758
+ wrapSSR: p,
759
+ hashId: w
760
+ } = J("ProLayoutSiderMenu", [Bn, kn, $n], R), $ = v(() => e.layout === "wide"), T = v(() => e.layout === "mix" && !e.isMobile && e.splitMenus), N = v(() => S.value === "side" || S.value === "simple"), z = v(() => (e.layout === "mix" || $.value) && "light" || c.value), H = v(() => e.collapsed ? e.collapsedWidth : e.siderWidth), P = v(() => [w.value, R, b.value ? "shadow" : null, `${R}-${z.value}`, F.value && e.layout !== "wide" ? `${R}-fixed` : null]), G = v(() => {
761
+ var A;
762
+ return typeof h.value == "function" ? (A = h.value) == null ? void 0 : A.call(h) : h.value;
763
+ }), E = v(() => m.value !== !1 ? m.value || bt : !1), Y = (A) => {
764
+ var d;
763
765
  if (e.onSelect) {
764
- if (X(k)) {
765
- e.onSelect([(P = a == null ? void 0 : a.value) == null ? void 0 : P[0], ...R]);
766
+ if (U(T)) {
767
+ e.onSelect([(d = a == null ? void 0 : a.value) == null ? void 0 : d[0], ...A]);
766
768
  return;
767
769
  }
768
- e.onSelect(R);
770
+ e.onSelect(A);
769
771
  }
770
772
  };
771
773
  return () => {
772
- var U;
773
- const R = D.value ? n(je, Y({
774
- drawer: y.value
775
- }, e), null) : null, P = I.value && ((U = I.value) == null ? void 0 : U.call(I, e)), K = n(gt, {
776
- class: `${B}-menu ${S.value}`,
777
- theme: H.value,
774
+ var B;
775
+ const A = N.value ? n(Ae, X({
776
+ drawer: b.value
777
+ }, e), null) : null, d = I.value && ((B = I.value) == null ? void 0 : B.call(I, e)), C = n(gt, {
778
+ class: `${R}-menu ${w.value}`,
779
+ theme: z.value,
778
780
  mode: "inline",
779
- menuData: k.value ? o.value : i.value,
781
+ menuData: T.value ? o.value : i.value,
780
782
  iconfontUrl: e.iconfontUrl,
781
- openKeys: d.value,
783
+ openKeys: u.value,
782
784
  selectedKeys: a.value,
783
785
  menuItemRender: e.menuItemRender,
784
786
  subMenuItemRender: e.subMenuItemRender,
@@ -786,13 +788,13 @@ const {
786
788
  style: {
787
789
  width: "100%"
788
790
  },
789
- onOpenKeys: (A) => {
790
- var V;
791
- return e.onOpenKeys && ((V = e.onOpenKeys) == null ? void 0 : V.call(e, A));
791
+ onOpenKeys: (k) => {
792
+ var D;
793
+ return e.onOpenKeys && ((D = e.onOpenKeys) == null ? void 0 : D.call(e, k));
792
794
  },
793
- onSelect: $
795
+ onSelect: Y
794
796
  }, null);
795
- return k.value && X(o.value).length === 0 || i.value.length === 0 ? null : b(n($e, {
797
+ return T.value && U(o.value).length === 0 || i.value.length === 0 || S.value === "top" ? null : p(n(Pe, {
796
798
  theme: {
797
799
  components: {
798
800
  Menu: ft({
@@ -801,102 +803,102 @@ const {
801
803
  colorActiveBarHeight: 0,
802
804
  colorActiveBarBorderSize: 0
803
805
  // 主题颜色
804
- }, (m == null ? void 0 : m.value) || {}, H.value, "sider")
806
+ }, (f == null ? void 0 : f.value) || {}, z.value, "sider")
805
807
  }
806
808
  }
807
809
  }, {
808
- default: () => [T.value && n("div", {
810
+ default: () => [F.value && n("div", {
809
811
  style: {
810
- width: `${z.value}px`,
812
+ width: `${H.value}px`,
811
813
  overflow: "hidden",
812
- flex: `0 0 ${z.value}px`,
813
- maxWidth: `${z.value}px`,
814
- minWidth: `${z.value}px`,
814
+ flex: `0 0 ${H.value}px`,
815
+ maxWidth: `${H.value}px`,
816
+ minWidth: `${H.value}px`,
815
817
  transition: "background-color 0.2s, min-width 0.2s, max-width 0.2s"
816
818
  }
817
819
  }, null), n(Ln, {
818
820
  collapsible: !0,
819
821
  trigger: null,
820
- class: N.value,
822
+ class: P.value,
821
823
  style: {
822
824
  overflow: "hidden",
823
- zIndex: T.value ? 101 : void 0,
824
- paddingTop: D.value || e.isMobile || F.value ? 0 : `${e.headerHeight}px`,
825
+ zIndex: F.value ? 101 : void 0,
826
+ paddingTop: N.value || e.isMobile || $.value ? 0 : `${e.headerHeight}px`,
825
827
  top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
826
828
  height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
827
829
  },
828
- theme: H.value,
829
- breakpoint: s.value || void 0,
830
+ theme: z.value,
831
+ breakpoint: g.value || void 0,
830
832
  collapsed: l.value,
831
- width: x.value,
832
- collapsedWidth: O.value
833
+ width: s.value,
834
+ collapsedWidth: M.value
833
835
  }, {
834
836
  default: () => {
835
- var A, V;
836
- return [M.value && n("div", {
837
- class: ["gx-pro-sider-loading", S.value]
838
- }, [n(be, {
839
- spinning: M.value
840
- }, null)]), R || null, P && !e.collapsed && n("div", {
837
+ var k, D;
838
+ return [O.value && n("div", {
839
+ class: ["gx-pro-sider-loading", w.value]
840
+ }, [n(ve, {
841
+ spinning: O.value
842
+ }, null)]), A || null, d && !e.collapsed && n("div", {
841
843
  class: {
842
- [`${S.value}`]: !0,
843
- [`${B}-extra`]: !0,
844
- [`${B}-extra-no-logo`]: !R
844
+ [`${w.value}`]: !0,
845
+ [`${R}-extra`]: !0,
846
+ [`${R}-extra-no-logo`]: !A
845
847
  }
846
- }, [P]), n("div", {
848
+ }, [d]), n("div", {
847
849
  style: {
848
850
  flex: "1 1 0%",
849
851
  overflow: "hidden auto"
850
852
  }
851
- }, [C.value && ((A = C.value) == null ? void 0 : A.call(C, e, K)) || K]), e.layout !== "wide" && n("div", {
852
- class: `${B}-links ${S.value}`
853
- }, [n(ee, {
854
- theme: H.value,
853
+ }, [x.value && ((k = x.value) == null ? void 0 : k.call(x, e, C)) || C]), e.layout !== "wide" && n("div", {
854
+ class: `${R}-links ${w.value}`
855
+ }, [n(ae, {
856
+ theme: z.value,
855
857
  inlineIndent: 16,
856
- class: `${B}-link-menu ${S.value}`,
858
+ class: `${R}-link-menu ${w.value}`,
857
859
  selectedKeys: [],
858
860
  openKeys: [],
859
861
  mode: "inline"
860
862
  }, {
861
- default: () => [(f.value || []).map((_, ce) => n(qe, {
862
- class: `${B}-link ${S.value}`,
863
- key: ce
864
- }, Pn(_) ? _ : {
865
- default: () => [_]
866
- })), p.value && !y.value && n(qe, {
867
- class: `${B}-collapsed-button ${S.value}`,
863
+ default: () => [(G.value || []).map((W, ee) => n(qe, {
864
+ class: `${R}-link ${w.value}`,
865
+ key: ee
866
+ }, Pn(W) ? W : {
867
+ default: () => [W]
868
+ })), E.value && !b.value && n(qe, {
869
+ class: `${R}-collapsed-button ${w.value}`,
868
870
  title: !1,
869
871
  key: "collapsed",
870
872
  onClick: () => {
871
- var _;
872
- e.onCollapse && ((_ = e.onCollapse) == null || _.call(e, !l.value));
873
+ var W;
874
+ e.onCollapse && ((W = e.onCollapse) == null || W.call(e, !l.value));
873
875
  }
874
876
  }, {
875
877
  default: () => {
876
- var _;
877
- return [(_ = p.value) == null ? void 0 : _.call(p, l.value)];
878
+ var W;
879
+ return [(W = E.value) == null ? void 0 : W.call(E, l.value)];
878
880
  }
879
881
  })]
880
- })]), h.value && n("div", {
881
- class: `${B}-footer ${S.value}`
882
- }, [(V = h.value) == null ? void 0 : V.call(h, e)])];
882
+ })]), y.value && n("div", {
883
+ class: `${R}-footer ${w.value}`
884
+ }, [(D = y.value) == null ? void 0 : D.call(y, e)])];
883
885
  }
884
886
  })]
885
887
  }));
886
888
  };
887
889
  }
888
- }), Me = /* @__PURE__ */ W({
890
+ }), Be = /* @__PURE__ */ j({
889
891
  name: "SiderMenuWrapper",
890
892
  inheritAttrs: !1,
891
893
  props: {
892
- ...G,
894
+ ..._,
893
895
  matchMenuKeys: {
894
896
  type: Array,
895
897
  default: () => []
896
898
  }
897
899
  },
898
900
  setup(e) {
899
- return () => n(q, null, [e.isMobile ? n(he, {
901
+ return () => n(q, null, [e.isMobile ? n(be, {
900
902
  maskClosable: !0,
901
903
  open: !e.collapsed,
902
904
  closable: !1,
@@ -915,13 +917,13 @@ const {
915
917
  flexDirection: "row"
916
918
  }
917
919
  }, {
918
- default: () => [n(Ze, Y(e, {
920
+ default: () => [n(Ze, X(e, {
919
921
  collapsed: e.isMobile ? !1 : e.collapsed
920
922
  }), null)]
921
923
  }) : n(Ze, e, null)]);
922
924
  }
923
925
  }), pt = Symbol("pro-app-context"), Dn = (e = Symbol(), t) => ot(e, t || {}), Nn = (e) => {
924
- ke(pt, e);
926
+ Te(pt, e);
925
927
  }, zn = () => Dn(pt, []);
926
928
  process.env.NODE_ENV !== "production" && Object.freeze({});
927
929
  process.env.NODE_ENV !== "production" && Object.freeze([]);
@@ -947,16 +949,16 @@ const Kn = ({ suffixCls: e, customizePrefixCls: t, isPor: a, className: o }) =>
947
949
  const i = o || (a ? "gx-pro" : "gx");
948
950
  return t || (e ? `${i}-${e}` : i);
949
951
  }, Un = (e) => {
950
- const { componentCls: t, colorText: a, fontSize: o, lineHeight: i, fontFamily: d } = e;
952
+ const { componentCls: t, colorText: a, fontSize: o, lineHeight: i, fontFamily: u } = e;
951
953
  return {
952
954
  [t]: {
953
955
  color: a,
954
956
  fontSize: o,
955
957
  lineHeight: i,
956
- fontFamily: d
958
+ fontFamily: u
957
959
  }
958
960
  };
959
- }, En = ["emptyText", "indicator"], Se = /* @__PURE__ */ W({
961
+ }, En = ["emptyText", "indicator"], Oe = /* @__PURE__ */ j({
960
962
  name: "GProApp",
961
963
  props: {
962
964
  rootClassName: String,
@@ -972,20 +974,20 @@ const Kn = ({ suffixCls: e, customizePrefixCls: t, isPor: a, className: o }) =>
972
974
  }), {
973
975
  wrapSSR: o,
974
976
  hashId: i
975
- } = Z("BaseApp", [Un], a), d = v(() => An(En, t, e)), m = v(() => [i.value, a, e.rootClassName]);
977
+ } = J("BaseApp", [Un], a), u = v(() => An(En, t, e)), f = v(() => [i.value, a, e.rootClassName]);
976
978
  return Nn({
977
- emptyText: v(() => d.value.emptyText),
978
- indicator: v(() => d.value.indicator)
979
+ emptyText: v(() => u.value.emptyText),
980
+ indicator: v(() => u.value.indicator)
979
981
  }), () => {
980
- var u;
982
+ var c;
981
983
  return o(n("div", {
982
- class: m.value
983
- }, [(u = t.default) == null ? void 0 : u.call(t)]));
984
+ class: f.value
985
+ }, [(c = t.default) == null ? void 0 : c.call(t)]));
984
986
  };
985
987
  }
986
988
  });
987
- Se.install = (e) => (e.component(Se.name, Se), e);
988
- const ue = {
989
+ Oe.install = (e) => (e.component(Oe.name, Oe), e);
990
+ const fe = {
989
991
  pageHeaderRender: {
990
992
  type: [Object, Function, Boolean],
991
993
  default: () => {
@@ -1018,46 +1020,46 @@ const ue = {
1018
1020
  marginTop: "8px"
1019
1021
  }
1020
1022
  }
1021
- }), Yn = /* @__PURE__ */ W({
1023
+ }), Yn = /* @__PURE__ */ j({
1022
1024
  name: "ProPageHeader",
1023
1025
  props: {
1024
- content: ue.contentRender,
1025
- breadcrumb: ue.breadcrumbRender
1026
+ content: fe.contentRender,
1027
+ breadcrumb: fe.breadcrumbRender
1026
1028
  },
1027
1029
  setup(e) {
1028
1030
  const {
1029
1031
  breadcrumb: t,
1030
1032
  getPrefixCls: a
1031
- } = J(), o = a({
1033
+ } = Q(), o = a({
1032
1034
  isPor: !0,
1033
1035
  suffixCls: "page-header"
1034
1036
  }), {
1035
1037
  wrapSSR: i,
1036
- hashId: d
1037
- } = Z("ProPageHeader", [Xn], o), m = v(() => {
1038
- var u;
1038
+ hashId: u
1039
+ } = J("ProPageHeader", [Xn], o), f = v(() => {
1040
+ var c;
1039
1041
  return {
1040
1042
  ...t.value,
1041
- itemRender: ((u = t.value) == null ? void 0 : u.itemRender) || (({
1042
- route: w
1043
- }) => w.path ? n(Vt, {
1044
- to: w.path
1043
+ itemRender: ((c = t.value) == null ? void 0 : c.itemRender) || (({
1044
+ route: S
1045
+ }) => S.path ? n(Vt, {
1046
+ to: S.path
1045
1047
  }, {
1046
- default: () => [w.breadcrumbName]
1047
- }) : w.breadcrumbName)
1048
+ default: () => [S.breadcrumbName]
1049
+ }) : S.breadcrumbName)
1048
1050
  };
1049
1051
  });
1050
1052
  return () => {
1051
- var u, w;
1053
+ var c, S;
1052
1054
  return i(n("div", {
1053
- class: [`${o}`, d.value, `${o}-has-breadcrumb`]
1054
- }, [e.breadcrumb ? (u = e.breadcrumb) == null ? void 0 : u.call(e, m.value) : n(Tt, m.value, null), e.content && n("div", {
1055
- class: [`${o}-content`, d.value]
1056
- }, [(w = e.content) == null ? void 0 : w.call(e)])]));
1055
+ class: [`${o}`, u.value, `${o}-has-breadcrumb`]
1056
+ }, [e.breadcrumb ? (c = e.breadcrumb) == null ? void 0 : c.call(e, f.value) : n(Tt, f.value, null), e.content && n("div", {
1057
+ class: [`${o}-content`, u.value]
1058
+ }, [(S = e.content) == null ? void 0 : S.call(e)])]));
1057
1059
  };
1058
1060
  }
1059
1061
  }), _n = (e) => {
1060
- var t, a, o, i, d, m, u, w;
1062
+ var t, a, o, i, u, f, c, S;
1061
1063
  return {
1062
1064
  [`${e.proComponentsCls}-basic-layout`]: {
1063
1065
  [e.componentCls]: {
@@ -1070,28 +1072,28 @@ const ue = {
1070
1072
  },
1071
1073
  [e.componentCls]: {
1072
1074
  ["&-children-content"]: {
1073
- marginInline: ((m = (d = e.layout) == null ? void 0 : d.pageContainer) == null ? void 0 : m.paddingBlockPageContainerContent) ?? 24,
1074
- marginBlockStart: ((w = (u = e.layout) == null ? void 0 : u.pageContainer) == null ? void 0 : w.paddingBlockPageContainerContent) ?? 24,
1075
+ marginInline: ((f = (u = e.layout) == null ? void 0 : u.pageContainer) == null ? void 0 : f.paddingBlockPageContainerContent) ?? 24,
1076
+ marginBlockStart: ((S = (c = e.layout) == null ? void 0 : c.pageContainer) == null ? void 0 : S.paddingBlockPageContainerContent) ?? 24,
1075
1077
  padding: "inherit"
1076
1078
  }
1077
1079
  }
1078
1080
  };
1079
1081
  };
1080
1082
  function Gn(e) {
1081
- return Pe("ProPageContainter", (t) => {
1082
- const a = Le(t, {
1083
+ return Ne("ProPageContainter", (t) => {
1084
+ const a = ze(t, {
1083
1085
  gridContent: `${t.proComponentsCls}-grid-content`
1084
1086
  });
1085
1087
  return [_n(a)];
1086
1088
  }, e);
1087
1089
  }
1088
1090
  function qn(e) {
1089
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
1091
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
1090
1092
  }
1091
- const Di = /* @__PURE__ */ W({
1093
+ const Di = /* @__PURE__ */ j({
1092
1094
  inheritAttrs: !1,
1093
1095
  name: "GProPageContainer",
1094
- props: ue,
1096
+ props: fe,
1095
1097
  setup(e, {
1096
1098
  slots: t,
1097
1099
  attrs: a
@@ -1099,78 +1101,79 @@ const Di = /* @__PURE__ */ W({
1099
1101
  const {
1100
1102
  getPrefixCls: o,
1101
1103
  hasContentWide: i,
1102
- waterMark: d,
1103
- pageHeaderRender: m,
1104
- pageContentStyle: u,
1105
- pageCardProps: w,
1106
- usePageCard: y
1107
- } = J(), {
1108
- indicator: M
1109
- } = zn(), s = o({
1104
+ waterMark: u,
1105
+ pageHeaderRender: f,
1106
+ pageContentStyle: c,
1107
+ pageCardProps: S,
1108
+ usePageCard: b
1109
+ } = Q(), {
1110
+ indicator: O
1111
+ } = zn(), g = o({
1110
1112
  suffixCls: "page-container",
1111
1113
  isPor: !0
1112
- }), T = o({
1114
+ }), F = o({
1113
1115
  suffixCls: "grid-content",
1114
1116
  isPor: !0
1115
- }), l = v(() => e.pageCardProps || w.value), x = v(() => e.pageContentStyle || u.value), {
1116
- wrapSSR: O,
1117
+ }), l = v(() => e.pageCardProps || S.value), s = v(() => e.pageContentStyle || c.value), {
1118
+ wrapSSR: M,
1117
1119
  hashId: I
1118
- } = Gn(s), C = () => {
1119
- var c;
1120
+ } = Gn(g), x = () => {
1121
+ var m;
1120
1122
  return n("div", {
1121
- class: `${s}-children-content ${I.value}`
1122
- }, [(Qt(e.usePageCard) ? e.usePageCard : y.value) ? n(Pt, Y(l.value ? ae(l.value, ["loading", "bodyStyle"]) : {}, {
1123
+ class: `${g}-children-content ${I.value}`
1124
+ }, [(Qt(e.usePageCard) ? e.usePageCard : b.value) ? n(Pt, X(l.value ? le(l.value, ["loading", "bodyStyle"]) : {}, {
1123
1125
  style: i.value ? {
1124
1126
  minHeight: "853px"
1125
1127
  } : void 0,
1126
1128
  bordered: !1
1127
1129
  }), {
1128
1130
  default: () => {
1129
- var g;
1130
- return [(g = t.default) == null ? void 0 : g.call(t)];
1131
+ var h;
1132
+ return [(h = t.default) == null ? void 0 : h.call(t)];
1131
1133
  }
1132
- }) : (c = t.default) == null ? void 0 : c.call(t)]);
1133
- }, h = () => {
1134
- let c;
1135
- return n(q, null, [e.waterMark && d.value ? n(Jt, null, qn(c = C()) ? c : {
1136
- default: () => [c]
1137
- }) : C()]);
1134
+ }) : (m = t.default) == null ? void 0 : m.call(t)]);
1135
+ }, y = () => {
1136
+ let m;
1137
+ return n(q, null, [e.waterMark && u.value ? n(Jt, null, qn(m = x()) ? m : {
1138
+ default: () => [m]
1139
+ }) : x()]);
1138
1140
  };
1139
1141
  return () => {
1140
- const c = E(t, e, "pageHeaderRender") || m.value, g = E(t, e, "breadcrumbRender"), B = E(t, e, "contentRender");
1141
- return O(n(be, {
1142
+ const m = K(t, e, "pageHeaderRender") || f.value, h = K(t, e, "breadcrumbRender"), R = K(t, e, "contentRender");
1143
+ return M(n(ve, {
1142
1144
  spinning: e.loading,
1143
- indicator: M == null ? void 0 : M.value
1145
+ indicator: O == null ? void 0 : O.value
1144
1146
  }, {
1145
1147
  default: () => [n("div", {
1146
1148
  style: a.style,
1147
1149
  class: {
1148
1150
  [`${I.value}`]: !0,
1149
- [`${s}`]: !0
1151
+ [`${g}`]: !0
1150
1152
  }
1151
- }, [!i.value && c !== !1 && (c || n(Yn, {
1153
+ }, [!i.value && m !== !1 && (m || n(Yn, {
1152
1154
  style: e.pageHeaderStyle,
1153
- breadcrumb: g,
1154
- content: B
1155
+ breadcrumb: h,
1156
+ content: R
1155
1157
  }, null)), n("div", {
1156
- class: [T, I.value]
1158
+ class: [F, I.value]
1157
1159
  }, [n("div", {
1158
- class: `${T}-children ${I.value}`,
1159
- style: x.value
1160
- }, [h()])])])]
1160
+ class: `${F}-children ${I.value}`,
1161
+ style: s.value
1162
+ }, [y()])])])]
1161
1163
  }));
1162
1164
  };
1163
1165
  }
1164
- }), We = {
1165
- ...ie,
1166
- logo: oe.logo,
1167
- logoStyle: oe.logoStyle,
1168
- logoDirection: oe.logoDirection,
1166
+ }), Ke = {
1167
+ ...se,
1168
+ ...Ie,
1169
+ logo: re.logo,
1170
+ logoStyle: re.logoStyle,
1171
+ logoDirection: re.logoDirection,
1169
1172
  menuLoading: Boolean,
1170
1173
  autoHideHeader: Boolean,
1171
1174
  collapsed: Boolean,
1172
1175
  isMobile: Boolean,
1173
- siderWidth: G.siderWidth,
1176
+ siderWidth: _.siderWidth,
1174
1177
  headerTheme: {
1175
1178
  type: String,
1176
1179
  default: "dark"
@@ -1194,14 +1197,14 @@ const Di = /* @__PURE__ */ W({
1194
1197
  default: () => {
1195
1198
  }
1196
1199
  },
1197
- collapsedButtonRender: G.collapsedButtonRender,
1198
- matchMenuKeys: G.matchMenuKeys,
1199
- onCollapse: G.onCollapse,
1200
- onOpenKeys: G.onOpenKeys,
1200
+ collapsedButtonRender: _.collapsedButtonRender,
1201
+ matchMenuKeys: _.matchMenuKeys,
1202
+ onCollapse: _.onCollapse,
1203
+ onOpenKeys: _.onOpenKeys,
1201
1204
  onMenuHeaderClick: Function,
1202
- onSelect: G.onSelect
1205
+ onSelect: _.onSelect
1203
1206
  }, vt = {
1204
- ...We,
1207
+ ...Ke,
1205
1208
  headerTitleRender: {
1206
1209
  type: [Object, Function],
1207
1210
  default: () => {
@@ -1218,15 +1221,15 @@ const Di = /* @__PURE__ */ W({
1218
1221
  }
1219
1222
  },
1220
1223
  hasSiderMenu: Boolean,
1221
- collapsedWidth: G.collapsedWidth,
1222
- siderWidth: G.siderWidth
1224
+ collapsedWidth: _.collapsedWidth,
1225
+ siderWidth: _.siderWidth
1223
1226
  }, xt = {
1224
1227
  loading: L.looseBool,
1225
- isMobile: G.isMobile,
1226
- collapsed: ze.collapsed,
1227
- siderWidth: G.siderWidth,
1228
- collapsedWidth: G.collapsedWidth,
1229
- isFixedMultiTab: ie.fixedMultiTab,
1228
+ isMobile: _.isMobile,
1229
+ collapsed: Ie.collapsed,
1230
+ siderWidth: _.siderWidth,
1231
+ collapsedWidth: _.collapsedWidth,
1232
+ isFixedMultiTab: se.fixedMultiTab,
1230
1233
  onReloadPage: {
1231
1234
  type: Function
1232
1235
  },
@@ -1282,7 +1285,7 @@ const Di = /* @__PURE__ */ W({
1282
1285
  title: "Ant Design Vue",
1283
1286
  href: "https://next.antdv.com/components/overview-cn/",
1284
1287
  blankTarget: !0
1285
- }], Oe = /* @__PURE__ */ W({
1288
+ }], ke = /* @__PURE__ */ j({
1286
1289
  name: "GlobalFooter",
1287
1290
  props: {
1288
1291
  links: {
@@ -1295,13 +1298,13 @@ const Di = /* @__PURE__ */ W({
1295
1298
  }
1296
1299
  },
1297
1300
  setup(e) {
1298
- const t = de({
1301
+ const t = me({
1299
1302
  suffixCls: "global-footer",
1300
1303
  isPor: !0
1301
1304
  }), {
1302
1305
  wrapSSR: a,
1303
1306
  hashId: o
1304
- } = Z("ProLayoutFooter", [Zn], t);
1307
+ } = J("ProLayoutFooter", [Zn], t);
1305
1308
  return () => a(n(Lt, {
1306
1309
  style: {
1307
1310
  padding: 0
@@ -1318,18 +1321,18 @@ const Di = /* @__PURE__ */ W({
1318
1321
  href: i.href
1319
1322
  }, [i.title]))]), e.copyright && n("div", {
1320
1323
  class: `${t}-copyright ${o.value}`
1321
- }, [Q("Copyright  2022  "), n("a", {
1324
+ }, [te("Copyright  2022  "), n("a", {
1322
1325
  href: "https://beian.miit.gov.cn/"
1323
1326
  }, [e.copyright])])])]
1324
1327
  }));
1325
1328
  }
1326
1329
  }), wt = {
1327
- ...ie,
1328
- ...We,
1329
- ...G,
1330
+ ...se,
1331
+ ...Ke,
1332
+ ..._,
1330
1333
  ...vt,
1331
1334
  ...xt,
1332
- ...ue,
1335
+ ...fe,
1333
1336
  pure: Boolean,
1334
1337
  token: Object,
1335
1338
  waterMark: {
@@ -1457,7 +1460,7 @@ const Di = /* @__PURE__ */ W({
1457
1460
  "&-fixed": {
1458
1461
  position: "fixed",
1459
1462
  height: 62,
1460
- top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) || j.headerHeight,
1463
+ top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) || V.headerHeight,
1461
1464
  right: 0,
1462
1465
  zIndex: 9,
1463
1466
  transition: "width .2s"
@@ -1466,8 +1469,8 @@ const Di = /* @__PURE__ */ W({
1466
1469
  };
1467
1470
  };
1468
1471
  function ta(e) {
1469
- return Pe("ProMultiTabs", (t) => {
1470
- const a = Le(t, {
1472
+ return Ne("ProMultiTabs", (t) => {
1473
+ const a = ze(t, {
1471
1474
  componentWrapCls: `${t.componentCls}-wrap`
1472
1475
  });
1473
1476
  return [ea(a)];
@@ -1492,9 +1495,9 @@ const na = [
1492
1495
  }
1493
1496
  ];
1494
1497
  function aa(e) {
1495
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
1498
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
1496
1499
  }
1497
- const oa = Fe.TabPane, ia = ee.Item, la = /* @__PURE__ */ W({
1500
+ const oa = Le.TabPane, ia = ae.Item, la = /* @__PURE__ */ j({
1498
1501
  props: {
1499
1502
  ...xt,
1500
1503
  visible: {
@@ -1507,206 +1510,212 @@ const oa = Fe.TabPane, ia = ee.Item, la = /* @__PURE__ */ W({
1507
1510
  const {
1508
1511
  isMobile: t,
1509
1512
  isFixedMultiTab: a
1510
- } = ve(e), o = Ie(!1), i = lt({
1513
+ } = Ce(e), o = Re(!1), i = lt({
1511
1514
  activeKey: "",
1512
1515
  contextMenuActiveKey: ""
1513
- }), d = Te(), {
1514
- menuData: m,
1515
- getPrefixCls: u
1516
- } = J(), w = u({
1516
+ }), u = De(), {
1517
+ menuData: f,
1518
+ flatMenuData: c,
1519
+ layout: S,
1520
+ splitMenus: b,
1521
+ getPrefixCls: O
1522
+ } = Q(), g = O({
1517
1523
  isPor: !0,
1518
1524
  suffixCls: "multi-tab"
1519
1525
  }), {
1520
- wrapSSR: y,
1521
- hashId: M
1522
- } = ta(w), s = Ie([]);
1523
- re(s, () => {
1524
- var f;
1525
- (f = e.onChangeTabs) == null || f.call(e, De(X(s)));
1526
+ wrapSSR: F,
1527
+ hashId: l
1528
+ } = ta(g), s = Re([]);
1529
+ de(s, () => {
1530
+ var d;
1531
+ (d = e.onChangeTabs) == null || d.call(e, He(U(s)));
1526
1532
  }, {
1527
1533
  deep: !0
1528
1534
  });
1529
- const T = v(() => d.currentRoute.value.fullPath || d.currentRoute.value.path), l = v(() => a.value && !t.value), x = v(() => l.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), O = v(() => ut(`${w}-wrap`, {
1530
- [`${M.value}`]: !0,
1531
- [`${w}-wrap-fixed`]: e.isFixedMultiTab,
1532
- [`${w}-wrap-loading`]: e.loading
1533
- })), I = v(() => {
1534
- const f = {
1535
+ const M = v(() => S.value === "mix" && !e.isMobile && b.value), I = v(() => u.currentRoute.value.fullPath || u.currentRoute.value.path), x = v(() => a.value && !t.value), y = v(() => {
1536
+ const d = !(M.value && U(c.value).length === 0 || f.value.length === 0 || S.value === "top");
1537
+ return x.value && d ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
1538
+ }), m = v(() => dt(`${g}-wrap`, {
1539
+ [`${l.value}`]: !0,
1540
+ [`${g}-wrap-fixed`]: e.isFixedMultiTab,
1541
+ [`${g}-wrap-loading`]: e.loading
1542
+ })), h = v(() => {
1543
+ const d = {
1535
1544
  display: e.visible ? void 0 : "none"
1536
1545
  };
1537
1546
  return e.isFixedMultiTab ? {
1538
1547
  margin: 0,
1539
- width: x.value,
1548
+ width: y.value,
1540
1549
  paddingTop: "6px",
1541
1550
  zIndex: 99,
1542
- ...f
1543
- } : f;
1544
- }), C = (f) => (f.fullPath || f.path) === T.value, h = (f) => {
1545
- if (f.name && f.meta && f.meta.tagHidden !== !0) {
1546
- const p = f.fullPath || f.path, $ = s.value.find((P) => P.fullPath === p), R = {
1547
- path: f.path,
1548
- fullPath: p,
1549
- query: f.query,
1550
- params: f.params,
1551
- name: f.name,
1551
+ ...d
1552
+ } : d;
1553
+ }), R = (d) => (d.fullPath || d.path) === I.value, p = (d) => {
1554
+ if (d.name && d.meta && d.meta.tagHidden !== !0) {
1555
+ const C = d.fullPath || d.path, B = s.value.find((D) => D.fullPath === C), k = {
1556
+ path: d.path,
1557
+ fullPath: C,
1558
+ query: d.query,
1559
+ params: d.params,
1560
+ name: d.name,
1552
1561
  meta: {
1553
- ...f.meta
1562
+ ...d.meta
1554
1563
  }
1555
1564
  };
1556
- $ ? Object.assign($, R) : f.meta.tagFixed ? s.value.unshift(R) : s.value.push(R), C(f) && (i.activeKey = p);
1565
+ B ? Object.assign(B, k) : d.meta.tagFixed ? s.value.unshift(k) : s.value.push(k), R(d) && (i.activeKey = C);
1557
1566
  }
1558
- }, c = (f) => {
1559
- f.forEach((p) => {
1560
- p.meta && p.meta.tagFixed && h(p), p.children && c(p.children);
1567
+ }, w = (d) => {
1568
+ d.forEach((C) => {
1569
+ C.meta && C.meta.tagFixed && p(C), C.children && w(C.children);
1561
1570
  });
1562
1571
  };
1563
- re(() => m.value, (f) => {
1564
- c(f);
1572
+ de(() => f.value, (d) => {
1573
+ w(d);
1565
1574
  }, {
1566
1575
  deep: !0,
1567
1576
  immediate: !0
1568
- }), re(() => d.currentRoute.value, (f) => {
1569
- h(f);
1577
+ }), de(() => u.currentRoute.value, (d) => {
1578
+ p(d);
1570
1579
  }, {
1571
1580
  deep: !0,
1572
1581
  immediate: !0
1573
1582
  });
1574
- const g = () => {
1575
- const f = s.value.slice(-1)[0];
1576
- f ? d.push(f) : d.push("/");
1577
- }, B = async (f) => {
1578
- const p = s.value.find(($) => f === $.fullPath);
1579
- s.value = s.value.filter(($) => $.fullPath !== f), p && C(p) && g();
1580
- }, b = (f) => {
1581
- const p = s.value.find(($) => $.fullPath === f);
1582
- i.activeKey !== (p == null ? void 0 : p.fullPath) && (p != null && p.fullPath) && d.push(p == null ? void 0 : p.fullPath);
1583
- }, S = () => {
1584
- var f;
1585
- o.value = !0, e.onReloadPage && ((f = e.onReloadPage) == null || f.call(e)), setTimeout(() => {
1583
+ const $ = () => {
1584
+ const d = s.value.slice(-1)[0];
1585
+ d ? u.push(d) : u.push("/");
1586
+ }, T = async (d) => {
1587
+ const C = s.value.find((B) => d === B.fullPath);
1588
+ s.value = s.value.filter((B) => B.fullPath !== d), C && R(C) && $();
1589
+ }, N = (d) => {
1590
+ const C = s.value.find((B) => B.fullPath === d);
1591
+ i.activeKey !== (C == null ? void 0 : C.fullPath) && (C != null && C.fullPath) && u.push(C == null ? void 0 : C.fullPath);
1592
+ }, z = () => {
1593
+ var d;
1594
+ o.value = !0, e.onReloadPage && ((d = e.onReloadPage) == null || d.call(e)), setTimeout(() => {
1586
1595
  o.value = !1;
1587
1596
  }, 500);
1588
- }, F = (f) => f.meta && f.meta.tagFixed, k = (f) => i[f], D = (f, p) => {
1589
- const $ = s.value.findIndex((R) => R.fullPath === k(p));
1590
- switch (f) {
1597
+ }, H = (d) => d.meta && d.meta.tagFixed, P = (d) => i[d], G = (d, C) => {
1598
+ const B = s.value.findIndex((k) => k.fullPath === P(C));
1599
+ switch (d) {
1591
1600
  case "closeOthersTabs":
1592
- s.value = s.value.filter((R) => {
1593
- var P;
1594
- return R.fullPath === k(p) || ((P = R.meta) == null ? void 0 : P.tagFixed);
1601
+ s.value = s.value.filter((k) => {
1602
+ var D;
1603
+ return k.fullPath === P(C) || ((D = k.meta) == null ? void 0 : D.tagFixed);
1595
1604
  });
1596
1605
  break;
1597
1606
  case "closeLeftTabs":
1598
- $ && (s.value = s.value.filter((R, P) => {
1599
- var K;
1600
- return P >= $ || ((K = R.meta) == null ? void 0 : K.tagFixed);
1607
+ B && (s.value = s.value.filter((k, D) => {
1608
+ var W;
1609
+ return D >= B || ((W = k.meta) == null ? void 0 : W.tagFixed);
1601
1610
  }));
1602
1611
  break;
1603
1612
  case "closeRightTabs":
1604
- $ && (s.value = s.value.filter((R, P) => {
1605
- var K;
1606
- return P <= $ || ((K = R.meta) == null ? void 0 : K.tagFixed);
1613
+ B && (s.value = s.value.filter((k, D) => {
1614
+ var W;
1615
+ return D <= B || ((W = k.meta) == null ? void 0 : W.tagFixed);
1607
1616
  }));
1608
1617
  break;
1609
1618
  case "reloadPage":
1610
- ($ === 0 || $) && i.activeKey === k(p) && S();
1619
+ (B === 0 || B) && i.activeKey === P(C) && z();
1611
1620
  break;
1612
1621
  }
1613
- i.activeKey !== k(p) && d.push(k(p));
1614
- }, H = (f, p) => {
1615
- const $ = s.value.findIndex((R) => R.fullPath === p);
1616
- switch (f) {
1622
+ i.activeKey !== P(C) && u.push(P(C));
1623
+ }, E = (d, C) => {
1624
+ const B = s.value.findIndex((k) => k.fullPath === C);
1625
+ switch (d) {
1617
1626
  case "closeOthersTabs":
1618
- return s.value.filter((U, A) => {
1619
- var V;
1620
- return A !== $ && !((V = U.meta) != null && V.tagFixed);
1627
+ return s.value.filter((ee, ne) => {
1628
+ var Z;
1629
+ return ne !== B && !((Z = ee.meta) != null && Z.tagFixed);
1621
1630
  }).length === 0;
1622
1631
  case "closeLeftTabs":
1623
- return s.value.filter((U, A) => {
1624
- var V;
1625
- return A < $ && !((V = U.meta) != null && V.tagFixed);
1632
+ return s.value.filter((ee, ne) => {
1633
+ var Z;
1634
+ return ne < B && !((Z = ee.meta) != null && Z.tagFixed);
1626
1635
  }).length === 0;
1627
1636
  case "closeRightTabs":
1628
- return s.value.filter((U, A) => {
1629
- var V;
1630
- return A > $ && !((V = U.meta) != null && V.tagFixed);
1637
+ return s.value.filter((ee, ne) => {
1638
+ var Z;
1639
+ return ne > B && !((Z = ee.meta) != null && Z.tagFixed);
1631
1640
  }).length === 0;
1632
1641
  }
1633
- }, z = (f) => {
1634
- let p;
1642
+ }, Y = (d) => {
1643
+ let C;
1635
1644
  const {
1636
- path: $,
1637
- stateType: R
1638
- } = f;
1639
- return n(ee, {
1645
+ path: B,
1646
+ stateType: k
1647
+ } = d;
1648
+ return n(ae, {
1640
1649
  selectedKeys: [],
1641
1650
  onClick: ({
1642
- key: P
1643
- }) => D(P, R)
1644
- }, aa(p = na.map((P) => n(ia, {
1645
- key: P.key,
1646
- disabled: H(P.key, $)
1651
+ key: D
1652
+ }) => G(D, k)
1653
+ }, aa(C = na.map((D) => n(ia, {
1654
+ key: D.key,
1655
+ disabled: E(D.key, B)
1647
1656
  }, {
1648
- default: () => [P.label]
1649
- }))) ? p : {
1650
- default: () => [p]
1657
+ default: () => [D.label]
1658
+ }))) ? C : {
1659
+ default: () => [C]
1651
1660
  });
1652
- }, N = (f) => {
1661
+ }, A = (d) => {
1653
1662
  const {
1654
- router: p
1655
- } = f;
1663
+ router: C
1664
+ } = d;
1656
1665
  return n(Ye, {
1657
1666
  trigger: "contextmenu",
1658
- overlay: n(z, {
1659
- path: (p == null ? void 0 : p.fullPath) || "",
1667
+ overlay: n(Y, {
1668
+ path: (C == null ? void 0 : C.fullPath) || "",
1660
1669
  stateType: "contextMenuActiveKey"
1661
1670
  }, null),
1662
- onOpenChange: ($) => {
1663
- i.contextMenuActiveKey = $ && p.fullPath || "";
1671
+ onOpenChange: (B) => {
1672
+ i.contextMenuActiveKey = B && C.fullPath || "";
1664
1673
  }
1665
1674
  }, {
1666
1675
  default: () => {
1667
- var $;
1676
+ var B;
1668
1677
  return [n("div", {
1669
- class: [`${w}-title`, M.value]
1670
- }, [($ = p.meta) == null ? void 0 : $.title, i.activeKey === p.fullPath && n(Et, {
1671
- class: [`${w}-reload-btn`, M.value],
1678
+ class: [`${g}-title`, l.value]
1679
+ }, [(B = C.meta) == null ? void 0 : B.title, i.activeKey === C.fullPath && n(Et, {
1680
+ class: [`${g}-reload-btn`, l.value],
1672
1681
  spin: o.value,
1673
- onClick: (R) => {
1674
- R.stopPropagation(), !o.value && S();
1682
+ onClick: (k) => {
1683
+ k.stopPropagation(), !o.value && z();
1675
1684
  }
1676
- }, null), s.value.length > 1 && !F(p) && n(st, {
1677
- class: [`${w}-close-btn`, M.value],
1678
- onClick: (R) => {
1679
- R.stopPropagation(), !o.value && B((p == null ? void 0 : p.fullPath) || "");
1685
+ }, null), s.value.length > 1 && !H(C) && n(st, {
1686
+ class: [`${g}-close-btn`, l.value],
1687
+ onClick: (k) => {
1688
+ k.stopPropagation(), !o.value && T((C == null ? void 0 : C.fullPath) || "");
1680
1689
  }
1681
1690
  }, null)])];
1682
1691
  }
1683
1692
  });
1684
1693
  };
1685
- return () => y(n(q, null, [!!e.isFixedMultiTab && Bt(n("div", {
1686
- class: [`${w}-fixed`, M.value]
1687
- }, null), [[kt, e.visible]]), n(Fe, {
1694
+ return () => F(n(q, null, [!!e.isFixedMultiTab && Bt(n("div", {
1695
+ class: [`${g}-fixed`, l.value]
1696
+ }, null), [[kt, e.visible]]), n(Le, {
1688
1697
  hideAdd: !0,
1689
1698
  type: "editable-card",
1690
- style: I.value,
1691
- class: O.value,
1699
+ style: h.value,
1700
+ class: m.value,
1692
1701
  activeKey: i.activeKey,
1693
- onTabClick: b
1702
+ onTabClick: N
1694
1703
  }, {
1695
- default: () => [s.value.map((f) => n(oa, {
1696
- key: f.fullPath,
1704
+ default: () => [s.value.map((d) => n(oa, {
1705
+ key: d.fullPath,
1697
1706
  closable: !1,
1698
- tab: n(N, {
1699
- router: f
1707
+ tab: n(A, {
1708
+ router: d
1700
1709
  }, null)
1701
1710
  }, null))],
1702
1711
  rightExtra: () => n(Ye, {
1703
- overlay: n(z, {
1712
+ overlay: n(Y, {
1704
1713
  path: i.activeKey,
1705
1714
  stateType: "activeKey"
1706
1715
  }, null)
1707
1716
  }, {
1708
1717
  default: () => [n(Ut, {
1709
- class: [`${w}-dropdown-menu-btn`, M.value],
1718
+ class: [`${g}-dropdown-menu-btn`, l.value],
1710
1719
  rotate: 90
1711
1720
  }, null)]
1712
1721
  })
@@ -1714,55 +1723,55 @@ const oa = Fe.TabPane, ia = ee.Item, la = /* @__PURE__ */ W({
1714
1723
  }
1715
1724
  }), {
1716
1725
  Content: ra
1717
- } = se, Ae = (e, {
1726
+ } = ce, Ue = (e, {
1718
1727
  slots: t,
1719
1728
  attrs: a
1720
1729
  }) => {
1721
- var O;
1730
+ var M;
1722
1731
  const {
1723
1732
  hashId: o,
1724
1733
  prefixCls: i,
1725
- isMobile: d,
1726
- loading: m,
1727
- collapsed: u,
1728
- siderWidth: w,
1729
- isShowTabsBar: y,
1730
- isFixedMultiTab: M,
1731
- onReloadPage: s,
1732
- onChangeTabs: T
1734
+ isMobile: u,
1735
+ loading: f,
1736
+ collapsed: c,
1737
+ siderWidth: S,
1738
+ isShowTabsBar: b,
1739
+ isFixedMultiTab: O,
1740
+ onReloadPage: g,
1741
+ onChangeTabs: F
1733
1742
  } = e;
1734
1743
  if (e.isChildrenLayout)
1735
- return (O = t.default) == null ? void 0 : O.call(t);
1744
+ return (M = t.default) == null ? void 0 : M.call(t);
1736
1745
  const {
1737
1746
  flatMenuData: l,
1738
- layout: x
1739
- } = J();
1747
+ layout: s
1748
+ } = Q();
1740
1749
  return n(q, null, [n(la, {
1741
- visible: (X(x) === "mix" ? X(l).length > 0 : !0) && y,
1742
- isMobile: d,
1743
- loading: m,
1744
- isFixedMultiTab: M,
1745
- siderWidth: w,
1746
- collapsed: u,
1747
- onReloadPage: s,
1748
- onChangeTabs: T
1750
+ visible: (U(s) === "mix" ? U(l).length > 0 : !0) && b,
1751
+ isMobile: u,
1752
+ loading: f,
1753
+ isFixedMultiTab: O,
1754
+ siderWidth: S,
1755
+ collapsed: c,
1756
+ onReloadPage: g,
1757
+ onChangeTabs: F
1749
1758
  }, null), n(ra, {
1750
1759
  style: a.style,
1751
1760
  class: [`${i}-content`]
1752
1761
  }, {
1753
1762
  default: () => {
1754
1763
  var I;
1755
- return [m && n(un, null, null), n("div", {
1764
+ return [f && n(dn, null, null), n("div", {
1756
1765
  class: [`${i}-content-spin-container`, o],
1757
1766
  style: {
1758
- opacity: m ? "0" : void 0
1767
+ opacity: f ? "0" : void 0
1759
1768
  }
1760
1769
  }, [(I = t.default) == null ? void 0 : I.call(t)])];
1761
1770
  }
1762
1771
  })]);
1763
1772
  };
1764
- Ae.inheritAttrs = !1;
1765
- Ae.displayName = "wrap-content";
1773
+ Ue.inheritAttrs = !1;
1774
+ Ue.displayName = "wrap-content";
1766
1775
  const sa = (e) => {
1767
1776
  var t, a, o, i;
1768
1777
  return {
@@ -1815,7 +1824,7 @@ const sa = (e) => {
1815
1824
  }
1816
1825
  }
1817
1826
  };
1818
- }, da = (e) => ({
1827
+ }, ua = (e) => ({
1819
1828
  [`${e.proComponentsCls}-header`]: {
1820
1829
  "&-light": {
1821
1830
  [`${e.componentCls}-logo`]: {
@@ -1899,56 +1908,56 @@ const sa = (e) => {
1899
1908
  }
1900
1909
  }
1901
1910
  }), St = {
1902
- ...G,
1903
- ...We
1904
- }, ua = (e, t) => e === !1 ? null : e ? e(t, null) : t, ca = /* @__PURE__ */ W({
1911
+ ..._,
1912
+ ...Ke
1913
+ }, da = (e, t) => e === !1 ? null : e ? e(t, null) : t, ca = /* @__PURE__ */ j({
1905
1914
  props: St,
1906
1915
  setup(e) {
1907
1916
  return () => e.rightContentRender && typeof e.rightContentRender == "function" && n(q, null, [e.rightContentRender({
1908
1917
  ...e
1909
1918
  })]);
1910
1919
  }
1911
- }), ma = /* @__PURE__ */ W({
1920
+ }), ma = /* @__PURE__ */ j({
1912
1921
  props: St,
1913
1922
  inheritAttrs: !1,
1914
1923
  setup(e, {
1915
1924
  slots: t,
1916
1925
  emit: a
1917
1926
  }) {
1918
- const o = Te(), {
1927
+ const o = De(), {
1919
1928
  token: i
1920
- } = Ce(), {
1921
- getPrefixCls: d,
1922
- openKeys: m,
1923
- selectedKeys: u
1924
- } = J(), {
1925
- width: w
1926
- } = rn(), y = d({
1929
+ } = Se(), {
1930
+ getPrefixCls: u,
1931
+ openKeys: f,
1932
+ selectedKeys: c
1933
+ } = Q(), {
1934
+ width: S
1935
+ } = rn(), b = u({
1927
1936
  suffixCls: "global-header",
1928
1937
  isPor: !0
1929
1938
  }), {
1930
- wrapSSR: M,
1931
- hashId: s
1932
- } = Z("ProGlobalHeader", [da], y), T = v(() => ({
1933
- [`${s.value}`]: !0,
1934
- [`${y}`]: !0,
1935
- [`${y}-${e.layout}`]: !0
1936
- })), l = (C) => {
1937
- var h;
1939
+ wrapSSR: O,
1940
+ hashId: g
1941
+ } = J("ProGlobalHeader", [ua], b), F = v(() => ({
1942
+ [`${g.value}`]: !0,
1943
+ [`${b}`]: !0,
1944
+ [`${b}-${e.layout}`]: !0
1945
+ })), l = (x) => {
1946
+ var y;
1938
1947
  if (o.currentRoute) {
1939
- const c = o.currentRoute.value.matched.concat();
1940
- e.onSelect && C === "select" && e.onSelect(c.filter((g) => g.name !== "index").map((g) => g.path)), e.onOpenKeys && C === "openKeys" && ((h = e.onOpenKeys) == null || h.call(e, c.filter((g) => g.path !== o.currentRoute.value.path).map((g) => g.path)));
1948
+ const m = o.currentRoute.value.matched.concat();
1949
+ e.onSelect && x === "select" && e.onSelect(m.filter((h) => h.name !== "index").map((h) => h.path)), e.onOpenKeys && x === "openKeys" && ((y = e.onOpenKeys) == null || y.call(e, m.filter((h) => h.path !== o.currentRoute.value.path).map((h) => h.path)));
1941
1950
  }
1942
- }, x = () => {
1951
+ }, s = () => {
1943
1952
  a("collapse", !e.collapsed);
1944
- }, O = v(() => e.collapsedButtonRender || bt), I = () => {
1945
- var C;
1946
- return n(q, null, [e.layout === "mix" && !e.isMobile && e.splitMenus ? n("div", {
1953
+ }, M = v(() => e.collapsedButtonRender || bt), I = () => {
1954
+ var x;
1955
+ return n(q, null, [e.layout === "mix" && !e.isMobile && e.splitMenus || e.layout === "top" ? n("div", {
1947
1956
  style: {
1948
1957
  flex: 1
1949
1958
  },
1950
- class: [`${y}-menu`, s.value]
1951
- }, [n($e, {
1959
+ class: [`${b}-menu`, g.value]
1960
+ }, [n(Pe, {
1952
1961
  theme: {
1953
1962
  components: {
1954
1963
  Layout: {
@@ -1965,19 +1974,19 @@ const sa = (e) => {
1965
1974
  }
1966
1975
  }
1967
1976
  }, {
1968
- default: () => [n(gt, Y({
1977
+ default: () => [n(gt, X({
1969
1978
  theme: e.theme,
1970
1979
  mode: e.mode,
1971
1980
  collapsed: e.collapsed,
1972
1981
  menuData: e.menuData,
1973
- openKeys: m.value,
1974
- selectedKeys: u.value,
1982
+ openKeys: f.value,
1983
+ selectedKeys: c.value,
1975
1984
  iconfontUrl: e.iconfontUrl,
1976
1985
  menuItemRender: e.menuItemRender,
1977
1986
  subMenuItemRender: e.subMenuItemRender,
1978
1987
  class: {
1979
1988
  "top-nav-menu": e.mode === "horizontal",
1980
- [`${s.value}`]: !0
1989
+ [`${g.value}`]: !0
1981
1990
  }
1982
1991
  }, {
1983
1992
  "onUpdate:openKeys": () => l("openKeys"),
@@ -1987,45 +1996,45 @@ const sa = (e) => {
1987
1996
  style: {
1988
1997
  flex: 1
1989
1998
  }
1990
- }, [(C = t.default) == null ? void 0 : C.call(t)]), e.layout !== "simple" && n(ca, Y(e, {
1999
+ }, [(x = t.default) == null ? void 0 : x.call(t)]), e.layout !== "simple" && n(ca, X(e, {
1991
2000
  extraRightDropdownRender: e.extraRightDropdownRender,
1992
2001
  rightContentRender: e.rightContentRender
1993
2002
  }), null)]);
1994
2003
  };
1995
2004
  return () => {
1996
- const C = n("span", {
2005
+ const x = n("span", {
1997
2006
  key: "logo",
1998
2007
  onClick: () => {
1999
- var h;
2000
- return (h = e.onMenuHeaderClick) == null ? void 0 : h.call(e);
2008
+ var y;
2009
+ return (y = e.onMenuHeaderClick) == null ? void 0 : y.call(e);
2001
2010
  },
2002
- class: [`${y}-logo`, e.isMobile ? "mobile" : "", s.value]
2011
+ class: [`${b}-logo`, e.isMobile ? "mobile" : "", g.value]
2003
2012
  }, [n("a", null, [yt(e.logo)])]);
2004
- return M(n("div", {
2005
- class: T.value
2006
- }, [e.isMobile ? n(q, null, [ua(e.menuHeaderRender, C), e.isMobile && X(O) && n("span", {
2007
- class: `${y}-collapsed-button ${s.value}`,
2008
- onClick: x
2009
- }, [X(O)(e.collapsed)]), I()]) : e.layout === "mix" || e.layout === "wide" ? n(q, null, [n("div", {
2013
+ return O(n("div", {
2014
+ class: F.value
2015
+ }, [e.isMobile ? n(q, null, [da(e.menuHeaderRender, x), e.isMobile && U(M) && n("span", {
2016
+ class: `${b}-collapsed-button ${g.value}`,
2017
+ onClick: s
2018
+ }, [U(M)(e.collapsed)]), I()]) : ["mix", "wide", "top"].includes(e.layout) ? n(q, null, [n("div", {
2010
2019
  style: {
2011
2020
  width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
2012
- padding: e.layout === "wide" && w.value < e.wideWidth ? "0 50px" : void 0
2021
+ padding: e.layout === "wide" && S.value < e.wideWidth ? "0 50px" : void 0
2013
2022
  },
2014
- class: `${y}-main ${s.value}`
2023
+ class: `${b}-main ${g.value}`
2015
2024
  }, [n("div", {
2016
- class: `${y}-main-left ${s.value}`
2017
- }, [n(je, Y(e, {
2025
+ class: `${b}-main-left ${g.value}`
2026
+ }, [n(Ae, X(e, {
2018
2027
  renderKey: "headerTitleRender"
2019
2028
  }), null)]), I()])]) : I()]));
2020
2029
  };
2021
2030
  }
2022
2031
  });
2023
2032
  function fa(e) {
2024
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
2033
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
2025
2034
  }
2026
2035
  const {
2027
2036
  Header: Je
2028
- } = se, Re = /* @__PURE__ */ W({
2037
+ } = ce, $e = /* @__PURE__ */ j({
2029
2038
  inheritAttrs: !1,
2030
2039
  props: vt,
2031
2040
  setup(e) {
@@ -2034,160 +2043,160 @@ const {
2034
2043
  isMobile: a,
2035
2044
  fixedHeader: o,
2036
2045
  headerHeight: i,
2037
- layout: d,
2038
- onCollapse: m,
2039
- splitMenus: u
2040
- } = ve(e), {
2041
- getPrefixCls: w,
2042
- menuData: y
2043
- } = J(), M = w({
2046
+ layout: u,
2047
+ onCollapse: f,
2048
+ splitMenus: c
2049
+ } = Ce(e), {
2050
+ getPrefixCls: S,
2051
+ menuData: b
2052
+ } = Q(), O = S({
2044
2053
  suffixCls: "header",
2045
2054
  isPor: !0
2046
- }), s = w({
2055
+ }), g = S({
2047
2056
  suffixCls: "fixed-header",
2048
2057
  isPor: !0
2049
2058
  }), {
2050
- wrapSSR: T,
2059
+ wrapSSR: F,
2051
2060
  hashId: l
2052
- } = Z("ProLayoutHeader", [sa], M), x = v(() => d.value === "wide"), O = v(() => o.value), I = v(() => d.value === "mix" || x.value), C = v(() => d.value === "side" || d.value === "simple"), h = v(() => C.value && "light" || t.value), c = v(() => ({
2061
+ } = J("ProLayoutHeader", [sa], O), s = v(() => u.value === "wide"), M = v(() => o.value), I = v(() => u.value === "mix" || s.value), x = v(() => u.value === "side" || u.value === "simple"), y = v(() => x.value && "light" || t.value), m = v(() => ({
2053
2062
  [`${l.value}`]: !0,
2054
- [`${M}-${h.value}`]: !0,
2055
- [`${M}`]: !0,
2056
- [`${s}`]: O.value
2057
- })), g = v(() => O.value && !a.value), B = v(() => u.value ? y.value && pn(y.value) || [] : []), b = v(() => C.value && g.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), S = v(() => O.value ? 0 : void 0), F = () => {
2058
- const k = n(ma, Y(e, {
2059
- theme: h.value,
2063
+ [`${O}-${y.value}`]: !0,
2064
+ [`${O}`]: !0,
2065
+ [`${g}`]: M.value
2066
+ })), h = v(() => M.value && !a.value), R = v(() => c.value ? b.value && pn(b.value) || [] : u.value === "top" ? b.value : []), p = v(() => x.value && h.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), w = v(() => M.value ? 0 : void 0), $ = () => {
2067
+ const T = n(ma, X(e, {
2068
+ theme: y.value,
2060
2069
  mode: "horizontal",
2061
- onCollapse: m.value,
2062
- menuData: B.value
2070
+ onCollapse: f.value,
2071
+ menuData: R.value
2063
2072
  }), {
2064
2073
  default: () => [I.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
2065
2074
  });
2066
- return e.headerRender ? e.headerRender(e, k) : k;
2075
+ return e.headerRender ? e.headerRender(e, T) : T;
2067
2076
  };
2068
2077
  return () => {
2069
- let k;
2070
- return T(n(q, null, [O.value && !x.value && n(Je, {
2071
- theme: h.value,
2078
+ let T;
2079
+ return F(n(q, null, [M.value && !s.value && n(Je, {
2080
+ theme: y.value,
2072
2081
  style: {
2073
2082
  height: `${i.value}px`,
2074
2083
  lineHeight: `${i.value}px`,
2075
2084
  background: "transparent"
2076
2085
  }
2077
2086
  }, null), n(Je, {
2078
- theme: h.value,
2079
- class: c.value,
2087
+ theme: y.value,
2088
+ class: m.value,
2080
2089
  style: {
2081
2090
  height: `${i.value}px`,
2082
2091
  lineHeight: `${i.value}px`,
2083
- width: b.value,
2084
- zIndex: C.value ? 100 : 101,
2085
- right: S.value
2092
+ width: p.value,
2093
+ zIndex: x.value ? 100 : 101,
2094
+ right: w.value
2086
2095
  }
2087
- }, fa(k = F()) ? k : {
2088
- default: () => [k]
2096
+ }, fa(T = $()) ? T : {
2097
+ default: () => [T]
2089
2098
  })]));
2090
2099
  };
2091
2100
  }
2092
- }), ga = /* @__PURE__ */ W({
2101
+ }), ga = /* @__PURE__ */ j({
2093
2102
  name: "BaseProLayout",
2094
2103
  inheritAttrs: !1,
2095
2104
  components: {
2096
- GlobalHeader: Re,
2097
- GlobalFooter: Oe,
2098
- SiderMenuWrapper: Me
2105
+ GlobalHeader: $e,
2106
+ GlobalFooter: ke,
2107
+ SiderMenuWrapper: Be
2099
2108
  },
2100
2109
  props: wt,
2101
2110
  emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
2102
2111
  setup(e, {
2103
2112
  slots: t
2104
2113
  }) {
2105
- const a = de({
2114
+ const a = me({
2106
2115
  suffixCls: "basic-layout",
2107
2116
  isPor: !0
2108
2117
  }), {
2109
2118
  wrapSSR: o,
2110
2119
  hashId: i
2111
- } = Z("ProLayout", [Jn, Qn], a), d = on(), {
2112
- token: m
2113
- } = Ce(), u = v(() => {
2114
- var h;
2115
- return (h = m == null ? void 0 : m.value) == null ? void 0 : h.colorPrimary;
2120
+ } = J("ProLayout", [Jn, Qn], a), u = on(), {
2121
+ token: f
2122
+ } = Se(), c = v(() => {
2123
+ var y;
2124
+ return (y = f == null ? void 0 : f.value) == null ? void 0 : y.colorPrimary;
2116
2125
  });
2117
2126
  $t(() => {
2118
- u.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", u.value);
2127
+ c.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", c.value);
2119
2128
  });
2120
- const w = v(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), y = v(() => e.layout === "wide"), M = v(() => w.value), s = v(() => e.collapsed ? e.collapsedWidth : e.siderWidth), T = v(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = v(() => (d.value === "sm" || d.value === "xs") && !e.disableMobile && !y.value), x = lt({
2129
+ const S = v(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), b = v(() => e.layout === "wide"), O = v(() => S.value), g = v(() => e.collapsed ? e.collapsedWidth : e.siderWidth), F = v(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = v(() => (u.value === "sm" || u.value === "xs") && !e.disableMobile && !b.value), s = lt({
2121
2130
  position: "relative"
2122
2131
  });
2123
- (e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (x.minHeight = 0);
2124
- const O = (h, c) => h.headerRender === !1 || h.pure ? null : n(Re, Y(h, {
2125
- matchMenuKeys: c || []
2132
+ (e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (s.minHeight = 0);
2133
+ const M = (y, m) => y.headerRender === !1 || y.pure ? null : n($e, X(y, {
2134
+ matchMenuKeys: m || []
2126
2135
  }), null), I = v(() => ({
2127
2136
  ...e.breadcrumb,
2128
- itemRender: E(t, e, "breadcrumbRender")
2129
- })), C = v(() => M.value && e.selectedKeys ? vn(e.menuData, e.selectedKeys[0]) : []);
2137
+ itemRender: K(t, e, "breadcrumbRender")
2138
+ })), x = v(() => O.value && e.selectedKeys ? vn(e.menuData, e.selectedKeys[0]) : []);
2130
2139
  return Rn({
2131
- getPrefixCls: de,
2132
- ...ae(ve(e), ["layout", "waterMark", "menuData", "openKeys", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader"].concat(Object.keys(ue))),
2133
- theme: T.value,
2134
- hasContentWide: y,
2140
+ getPrefixCls: me,
2141
+ ...le(Ce(e), ["layout", "waterMark", "menuData", "openKeys", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader"].concat(Object.keys(fe))),
2142
+ theme: F.value,
2143
+ hasContentWide: b,
2135
2144
  isMobile: l,
2136
- siderWidth: s,
2145
+ siderWidth: g,
2137
2146
  breadcrumb: I,
2138
- flatMenuData: C,
2139
- hasSide: w,
2140
- flatMenu: M,
2141
- pageHeaderRender: v(() => E(t, e, "pageHeaderRender"))
2147
+ flatMenuData: x,
2148
+ hasSide: S,
2149
+ flatMenu: O,
2150
+ pageHeaderRender: v(() => K(t, e, "pageHeaderRender"))
2142
2151
  }), () => {
2143
- var V;
2144
- const h = E(t, e, "collapsedButtonRender"), c = E(t, e, "headerContentRender"), g = E(t, e, "rightContentRender"), B = E(t, e, "headerRender"), b = E(t, e, "footerRender"), S = E(t, e, "links"), F = E(t, e, "copyrightRender"), k = E(t, e, "extraRightDropdownRender"), D = E(t, e, "menuHeaderRender"), H = E(t, e, "menuExtraRender"), z = E(t, e, "menuContentRender"), N = E(t, e, "menuFooterRender"), f = E(t, e, "menuItemRender"), p = E(t, e, "subMenuItemRender"), $ = {
2145
- menuItemRender: f,
2146
- subMenuItemRender: p
2147
- }, R = v(() => O({
2152
+ var D;
2153
+ const y = K(t, e, "collapsedButtonRender"), m = K(t, e, "headerContentRender"), h = K(t, e, "rightContentRender"), R = K(t, e, "headerRender"), p = K(t, e, "footerRender"), w = K(t, e, "links"), $ = K(t, e, "copyrightRender"), T = K(t, e, "extraRightDropdownRender"), N = K(t, e, "menuHeaderRender"), z = K(t, e, "menuExtraRender"), H = K(t, e, "menuContentRender"), P = K(t, e, "menuFooterRender"), G = K(t, e, "menuItemRender"), E = K(t, e, "subMenuItemRender"), Y = {
2154
+ menuItemRender: G,
2155
+ subMenuItemRender: E
2156
+ }, A = v(() => M({
2148
2157
  ...e,
2149
- ...$,
2150
- hasSiderMenu: w.value,
2158
+ ...Y,
2159
+ hasSiderMenu: S.value,
2151
2160
  menuData: e.menuData,
2152
- isMobile: X(l),
2153
- rightContentRender: g,
2154
- extraRightDropdownRender: k,
2155
- headerTitleRender: D,
2156
- headerContentRender: c,
2157
- headerRender: B,
2158
- theme: T.value
2159
- }, e.matchMenuKeys)), P = v(() => ({
2161
+ isMobile: U(l),
2162
+ rightContentRender: h,
2163
+ extraRightDropdownRender: T,
2164
+ headerTitleRender: N,
2165
+ headerContentRender: m,
2166
+ headerRender: R,
2167
+ theme: F.value
2168
+ }, e.matchMenuKeys)), d = v(() => ({
2160
2169
  [`${i.value}`]: !0,
2161
2170
  [`${a}`]: !0,
2162
2171
  [`${a}-${e.layout}`]: !0
2163
- })), K = v(() => y.value ? {
2172
+ })), C = v(() => b.value ? {
2164
2173
  minWidth: `${e.wideWidth}px`
2165
- } : void 0), U = v(() => y.value ? {
2174
+ } : void 0), B = v(() => b.value ? {
2166
2175
  width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
2167
2176
  paddingTop: `${e.headerHeight + 20}px`,
2168
- margin: y.value ? "0 auto" : void 0
2169
- } : void 0), A = v(() => y.value ? {
2177
+ margin: b.value ? "0 auto" : void 0
2178
+ } : void 0), k = v(() => b.value ? {
2170
2179
  minHeight: "835px"
2171
2180
  } : {});
2172
- return o(n(q, null, [e.pure ? (V = t.default) == null ? void 0 : V.call(t) : n("div", {
2173
- class: P.value,
2174
- style: K.value
2175
- }, [n(se, {
2176
- style: U.value
2181
+ return o(n(q, null, [e.pure ? (D = t.default) == null ? void 0 : D.call(t) : n("div", {
2182
+ class: d.value,
2183
+ style: C.value
2184
+ }, [n(ce, {
2185
+ style: B.value
2177
2186
  }, {
2178
- default: () => [n(Me, Y(Ne(e, ["pure", "theme"]), {
2179
- links: S,
2180
- theme: T.value,
2187
+ default: () => [n(Be, X(Ve(e, ["pure", "theme"]), {
2188
+ links: w,
2189
+ theme: F.value,
2181
2190
  isMobile: l.value,
2182
- menuHeaderRender: D,
2183
- menuContentRender: z,
2184
- menuExtraRender: H,
2185
- menuFooterRender: N,
2186
- collapsedButtonRender: h
2187
- }), null), n(se, {
2188
- style: x
2191
+ menuHeaderRender: N,
2192
+ menuContentRender: H,
2193
+ menuExtraRender: z,
2194
+ menuFooterRender: P,
2195
+ collapsedButtonRender: y
2196
+ }), null), n(ce, {
2197
+ style: s
2189
2198
  }, {
2190
- default: () => [R.value, n(Ae, Y({
2199
+ default: () => [A.value, n(Ue, X({
2191
2200
  hashId: i.value,
2192
2201
  isMobile: l.value,
2193
2202
  prefixCls: a,
@@ -2198,27 +2207,27 @@ const {
2198
2207
  isFixedMultiTab: e.fixedMultiTab,
2199
2208
  siderWidth: e.siderWidth,
2200
2209
  collapsed: e.collapsed,
2201
- style: e.disableContentMargin ? A.value : {
2210
+ style: e.disableContentMargin ? k.value : {
2202
2211
  ...e.contentStyle,
2203
- ...A.value
2212
+ ...k.value
2204
2213
  }
2205
- }, ae(e, ["onReloadPage", "onChangeTabs"])), {
2214
+ }, le(e, ["onReloadPage", "onChangeTabs"])), {
2206
2215
  default: () => {
2207
- var _;
2208
- return [(_ = t.default) == null ? void 0 : _.call(t)];
2216
+ var W;
2217
+ return [(W = t.default) == null ? void 0 : W.call(t)];
2209
2218
  }
2210
- }), b === !1 ? null : b ? b(e) : n(Oe, {
2211
- copyright: F
2219
+ }), p === !1 ? null : p ? p(e) : n(ke, {
2220
+ copyright: $
2212
2221
  }, null)]
2213
2222
  })]
2214
2223
  })])]));
2215
2224
  };
2216
2225
  }
2217
- }), Ni = /* @__PURE__ */ W({
2226
+ }), Ni = /* @__PURE__ */ j({
2218
2227
  components: {
2219
- GlobalHeader: Re,
2220
- GlobalFooter: Oe,
2221
- SiderMenuWrapper: Me
2228
+ GlobalHeader: $e,
2229
+ GlobalFooter: ke,
2230
+ SiderMenuWrapper: Be
2222
2231
  },
2223
2232
  props: wt,
2224
2233
  emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
@@ -2228,34 +2237,34 @@ const {
2228
2237
  }) {
2229
2238
  const o = v(() => e.theme !== void 0 ? {
2230
2239
  dark: e.theme === "realDark"
2231
- } : {}), i = (u) => {
2232
- a("update:collapsed", u), a("collapse", u);
2233
- }, d = (u) => {
2234
- a("update:open-keys", u), a("openKeys", u);
2235
- }, m = (u) => {
2236
- a("update:selected-keys", u), a("select", u);
2240
+ } : {}), i = (c) => {
2241
+ a("update:collapsed", c), a("collapse", c);
2242
+ }, u = (c) => {
2243
+ a("update:open-keys", c), a("openKeys", c);
2244
+ }, f = (c) => {
2245
+ a("update:selected-keys", c), a("select", c);
2237
2246
  };
2238
- return () => n($e, {
2247
+ return () => n(Pe, {
2239
2248
  theme: e.primaryColor ? {
2240
2249
  token: {
2241
2250
  colorPrimary: e.primaryColor
2242
2251
  }
2243
2252
  } : void 0
2244
2253
  }, {
2245
- default: () => [n(Gt, Y({
2254
+ default: () => [n(Gt, X({
2246
2255
  token: e.token
2247
2256
  }, o.value), {
2248
- default: () => [n(ga, Y(Ne(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
2249
- onSelect: m,
2250
- onOpenKeys: d,
2257
+ default: () => [n(ga, X(Ve(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
2258
+ onSelect: f,
2259
+ onOpenKeys: u,
2251
2260
  onCollapse: i
2252
2261
  }), t)]
2253
2262
  })]
2254
2263
  });
2255
2264
  }
2256
2265
  }), It = (e, t, a) => e.map((o, i) => {
2257
- var d;
2258
- return o.meta && (o.meta.key = a ? `${a}-${i}` : `${i}`), o.path = o.path.replace("//", "/"), o.children && o.children.length > 0 && (o.children = It(o.children, t, (d = o.meta) == null ? void 0 : d.key)), t[`${o.path}`] = o, o;
2266
+ var u;
2267
+ return o.meta && (o.meta.key = a ? `${a}-${i}` : `${i}`), o.path = o.path.replace("//", "/"), o.children && o.children.length > 0 && (o.children = It(o.children, t, (u = o.meta) == null ? void 0 : u.key)), t[`${o.path}`] = o, o;
2259
2268
  }), zi = (e) => {
2260
2269
  const t = e.find((i) => i.path === "/"), a = {}, o = It((t == null ? void 0 : t.children) || [], a);
2261
2270
  return {
@@ -2467,7 +2476,7 @@ const {
2467
2476
  }
2468
2477
  }
2469
2478
  }
2470
- }), Qe = /* @__PURE__ */ W({
2479
+ }), Qe = /* @__PURE__ */ j({
2471
2480
  name: "BlockCheckbox",
2472
2481
  props: {
2473
2482
  value: L.string,
@@ -2485,19 +2494,19 @@ const {
2485
2494
  const t = `${e.prefixCls}-block-checkbox`;
2486
2495
  return n("div", {
2487
2496
  class: [t, e.hashId]
2488
- }, [e.list.map((a) => n(xe, {
2497
+ }, [e.list.map((a) => n(we, {
2489
2498
  title: a.title,
2490
2499
  key: a.key
2491
2500
  }, {
2492
2501
  default: () => [n("div", {
2493
- class: ut(e.hashId, `${t}-item`, `${t}-item-${a.key}`, `${t}-${e.configType}-item`),
2502
+ class: dt(e.hashId, `${t}-item`, `${t}-item-${a.key}`, `${t}-${e.configType}-item`),
2494
2503
  onClick: () => {
2495
2504
  var o;
2496
2505
  return (o = e.onChange) == null ? void 0 : o.call(e, a.key);
2497
2506
  }
2498
2507
  }, [a.key === "wide" && n("div", {
2499
2508
  class: [`${t}-item-${a.key}-content`, e.hashId]
2500
- }, null), n(dt, {
2509
+ }, null), n(ut, {
2501
2510
  class: `${t}-selectIcon ${e.hashId}`.trim(),
2502
2511
  style: {
2503
2512
  display: e.value === a.key ? "block" : "none"
@@ -2508,7 +2517,7 @@ const {
2508
2517
  }))]);
2509
2518
  };
2510
2519
  }
2511
- }), ba = /* @__PURE__ */ W({
2520
+ }), ba = /* @__PURE__ */ j({
2512
2521
  name: "ThemeColor",
2513
2522
  inheritAttrs: !1,
2514
2523
  props: {
@@ -2530,25 +2539,25 @@ const {
2530
2539
  }, [(a = e.colorList) == null ? void 0 : a.map(({
2531
2540
  key: o,
2532
2541
  color: i,
2533
- title: d
2534
- }) => o ? n(xe, {
2542
+ title: u
2543
+ }) => o ? n(we, {
2535
2544
  key: i,
2536
- title: d
2545
+ title: u
2537
2546
  }, {
2538
2547
  default: () => {
2539
- var m, u;
2548
+ var f, c;
2540
2549
  return [n("div", {
2541
- class: [`${t}-block ${e.hashId}`.trim(), ((m = e.settingValue) == null ? void 0 : m.primaryColor) === i ? `${t}-block-checked` : ""],
2550
+ class: [`${t}-block ${e.hashId}`.trim(), ((f = e.settingValue) == null ? void 0 : f.primaryColor) === i ? `${t}-block-checked` : ""],
2542
2551
  style: {
2543
2552
  backgroundColor: i
2544
2553
  },
2545
2554
  onClick: () => e.onChange && e.onChange(i)
2546
- }, [((u = e.settingValue) == null ? void 0 : u.primaryColor) === i && n(dt, null, null)])];
2555
+ }, [((c = e.settingValue) == null ? void 0 : c.primaryColor) === i && n(ut, null, null)])];
2547
2556
  }
2548
2557
  }) : null)])]);
2549
2558
  };
2550
2559
  }
2551
- }), fe = /* @__PURE__ */ W({
2560
+ }), he = /* @__PURE__ */ j({
2552
2561
  name: "RegionalChange",
2553
2562
  props: {
2554
2563
  label: L.string,
@@ -2560,17 +2569,17 @@ const {
2560
2569
  onChange: Function
2561
2570
  },
2562
2571
  setup(e) {
2563
- return () => n(te, {
2572
+ return () => n(oe, {
2564
2573
  class: `${e.prefixCls}-list ${e.hashId}`.trim(),
2565
2574
  split: !1,
2566
2575
  size: "small",
2567
2576
  renderItem: ({
2568
2577
  item: t
2569
- }) => n(xe, {
2578
+ }) => n(we, {
2570
2579
  title: t.disabled ? t.disabledReason : "",
2571
2580
  placement: "left"
2572
2581
  }, {
2573
- default: () => [n(te.Item, {
2582
+ default: () => [n(oe.Item, {
2574
2583
  actions: [t.action]
2575
2584
  }, {
2576
2585
  default: () => [n("span", {
@@ -2625,9 +2634,9 @@ const {
2625
2634
  }
2626
2635
  });
2627
2636
  function va(e) {
2628
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
2637
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
2629
2638
  }
2630
- const xa = /* @__PURE__ */ W({
2639
+ const xa = /* @__PURE__ */ j({
2631
2640
  name: "ThemeEditor",
2632
2641
  props: {
2633
2642
  settingValue: Object,
@@ -2636,27 +2645,27 @@ const xa = /* @__PURE__ */ W({
2636
2645
  setup(e) {
2637
2646
  const {
2638
2647
  getPrefixCls: t
2639
- } = J(), [a, o] = ye("header"), i = t({
2648
+ } = Q(), [a, o] = pe("header"), i = t({
2640
2649
  suffixCls: "theme-editor",
2641
2650
  isPor: !0
2642
2651
  }), {
2643
- wrapSSR: d,
2644
- hashId: m
2645
- } = Z("ProThemeEditor", [pa], i), {
2646
- token: u
2647
- } = Ce(), w = v(() => {
2652
+ wrapSSR: u,
2653
+ hashId: f
2654
+ } = J("ProThemeEditor", [pa], i), {
2655
+ token: c
2656
+ } = Se(), S = v(() => {
2648
2657
  var l;
2649
- return (l = u.value) == null ? void 0 : l.layout;
2650
- }), y = v(() => {
2651
- var l, x, O, I, C, h, c, g, B, b, S, F, k, D, H, z, N, f, p, $, R, P, K, U, A;
2658
+ return (l = c.value) == null ? void 0 : l.layout;
2659
+ }), b = v(() => {
2660
+ var l, s, M, I, x, y, m, h, R, p, w, $, T, N, z, H, P, G, E, Y, A, d, C, B, k;
2652
2661
  return [{
2653
2662
  key: "colorBgMenu",
2654
2663
  title: "全部背景",
2655
- disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["mix", "wide"].includes((x = e.settingValue) == null ? void 0 : x.layout)
2664
+ disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["mix", "wide"].includes((s = e.settingValue) == null ? void 0 : s.layout)
2656
2665
  }, {
2657
2666
  key: "colorDarkBgMenu",
2658
2667
  title: "全部背景",
2659
- disabled: ((O = e.settingValue) == null ? void 0 : O.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["side", "simple"].includes((C = e.settingValue) == null ? void 0 : C.layout)
2668
+ disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["side", "simple"].includes((x = e.settingValue) == null ? void 0 : x.layout)
2660
2669
  }, {
2661
2670
  key: "colorSubItemBg",
2662
2671
  title: "子菜单背景",
@@ -2668,130 +2677,130 @@ const xa = /* @__PURE__ */ W({
2668
2677
  }, {
2669
2678
  key: "colorBgMenuItemSelected",
2670
2679
  title: "菜单选中背景",
2671
- disabled: ((h = e.settingValue) == null ? void 0 : h.theme) === "dark" && ["mix", "wide"].includes((c = e.settingValue) == null ? void 0 : c.layout)
2680
+ disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["mix", "wide"].includes((m = e.settingValue) == null ? void 0 : m.layout)
2672
2681
  }, {
2673
2682
  key: "colorDarkBgMenuItemSelected",
2674
2683
  title: "菜单选中背景",
2675
- disabled: ((g = e.settingValue) == null ? void 0 : g.theme) === "light" || ((B = e.settingValue) == null ? void 0 : B.theme) === "dark" && ["side", "simple"].includes((b = e.settingValue) == null ? void 0 : b.layout)
2684
+ disabled: ((h = e.settingValue) == null ? void 0 : h.theme) === "light" || ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["side", "simple"].includes((p = e.settingValue) == null ? void 0 : p.layout)
2676
2685
  }, {
2677
2686
  key: "colorTextMenu",
2678
2687
  title: "菜单文字颜色",
2679
- disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ["mix", "wide"].includes((F = e.settingValue) == null ? void 0 : F.layout)
2688
+ disabled: ((w = e.settingValue) == null ? void 0 : w.theme) === "dark" && ["mix", "wide"].includes(($ = e.settingValue) == null ? void 0 : $.layout)
2680
2689
  }, {
2681
2690
  key: "colorDarkTextMenu",
2682
2691
  title: "菜单文字颜色",
2683
- disabled: ((k = e.settingValue) == null ? void 0 : k.theme) === "light" || ((D = e.settingValue) == null ? void 0 : D.theme) === "dark" && ["side", "simple"].includes((H = e.settingValue) == null ? void 0 : H.layout)
2692
+ disabled: ((T = e.settingValue) == null ? void 0 : T.theme) === "light" || ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["side", "simple"].includes((z = e.settingValue) == null ? void 0 : z.layout)
2684
2693
  }, {
2685
2694
  key: "colorTextMenuHover",
2686
2695
  title: "菜单文字移入颜色",
2687
- disabled: ((z = e.settingValue) == null ? void 0 : z.theme) === "dark" && ["mix", "wide"].includes((N = e.settingValue) == null ? void 0 : N.layout)
2696
+ disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "dark" && ["mix", "wide"].includes((P = e.settingValue) == null ? void 0 : P.layout)
2688
2697
  }, {
2689
2698
  key: "colorDarkTextMenuHover",
2690
2699
  title: "菜单文字移入颜色",
2691
- disabled: ((f = e.settingValue) == null ? void 0 : f.theme) === "light" || ((p = e.settingValue) == null ? void 0 : p.theme) === "dark" && ["side", "simple"].includes(($ = e.settingValue) == null ? void 0 : $.layout)
2700
+ disabled: ((G = e.settingValue) == null ? void 0 : G.theme) === "light" || ((E = e.settingValue) == null ? void 0 : E.theme) === "dark" && ["side", "simple"].includes((Y = e.settingValue) == null ? void 0 : Y.layout)
2692
2701
  }, {
2693
2702
  key: "colorTextMenuSelected",
2694
2703
  title: "菜单文字选中颜色",
2695
- disabled: ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["mix", "wide"].includes((P = e.settingValue) == null ? void 0 : P.layout)
2704
+ disabled: ((A = e.settingValue) == null ? void 0 : A.theme) === "dark" && ["mix", "wide"].includes((d = e.settingValue) == null ? void 0 : d.layout)
2696
2705
  }, {
2697
2706
  key: "colorDarkTextMenuSelected",
2698
2707
  title: "菜单文字选中颜色",
2699
- disabled: ((K = e.settingValue) == null ? void 0 : K.theme) === "light" || ((U = e.settingValue) == null ? void 0 : U.theme) === "dark" && ["side", "simple"].includes((A = e.settingValue) == null ? void 0 : A.layout)
2708
+ disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || ((B = e.settingValue) == null ? void 0 : B.theme) === "dark" && ["side", "simple"].includes((k = e.settingValue) == null ? void 0 : k.layout)
2700
2709
  }];
2701
- }), M = v(() => {
2702
- var l, x, O, I, C, h, c, g, B, b, S, F, k, D, H, z, N, f, p, $, R, P, K, U, A, V, _, ce, Ke, Ue, Ee, Xe;
2710
+ }), O = v(() => {
2711
+ var l, s, M, I, x, y, m, h, R, p, w, $, T, N, z, H, P, G, E, Y, A, d, C, B, k, D, W, ee, ne, Z, Ee, Xe;
2703
2712
  return [{
2704
2713
  key: "colorBgMenu",
2705
2714
  title: "全部背景",
2706
- disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["side", "simple"].includes((x = e.settingValue) == null ? void 0 : x.layout)
2715
+ disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["side", "simple"].includes((s = e.settingValue) == null ? void 0 : s.layout)
2707
2716
  }, {
2708
2717
  key: "colorDarkBgMenu",
2709
2718
  title: "全部背景",
2710
- disabled: ((O = e.settingValue) == null ? void 0 : O.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["mix", "wide"].includes((C = e.settingValue) == null ? void 0 : C.layout)
2719
+ disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["mix", "wide"].includes((x = e.settingValue) == null ? void 0 : x.layout)
2711
2720
  }, {
2712
2721
  key: "colorSubItemBg",
2713
2722
  title: "子菜单背景",
2714
- disabled: ((h = e.settingValue) == null ? void 0 : h.theme) === "dark" && ["side", "simple"].includes((c = e.settingValue) == null ? void 0 : c.layout)
2723
+ disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["side", "simple"].includes((m = e.settingValue) == null ? void 0 : m.layout)
2715
2724
  }, {
2716
2725
  key: "colorDarkSubItemBg",
2717
2726
  title: "子菜单背景",
2718
- disabled: ((g = e.settingValue) == null ? void 0 : g.theme) === "light" || ((B = e.settingValue) == null ? void 0 : B.theme) === "dark" && ["mix", "wide"].includes((b = e.settingValue) == null ? void 0 : b.layout)
2727
+ disabled: ((h = e.settingValue) == null ? void 0 : h.theme) === "light" || ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["mix", "wide"].includes((p = e.settingValue) == null ? void 0 : p.layout)
2719
2728
  }, {
2720
2729
  key: "colorBgMenuItemHover",
2721
2730
  title: "菜单移入背景",
2722
- disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ((F = e.settingValue) == null ? void 0 : F.layout) !== "mix"
2731
+ disabled: ((w = e.settingValue) == null ? void 0 : w.theme) === "dark" && (($ = e.settingValue) == null ? void 0 : $.layout) !== "mix"
2723
2732
  }, {
2724
2733
  key: "colorBgMenuItemSelected",
2725
2734
  title: "菜单选中背景",
2726
- disabled: ((k = e.settingValue) == null ? void 0 : k.theme) === "dark" && ((D = e.settingValue) == null ? void 0 : D.layout) !== "mix"
2735
+ disabled: ((T = e.settingValue) == null ? void 0 : T.theme) === "dark" && ((N = e.settingValue) == null ? void 0 : N.layout) !== "mix"
2727
2736
  }, {
2728
2737
  key: "colorDarkBgMenuItemSelected",
2729
2738
  title: "菜单选中背景",
2730
- disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "light" || ((z = e.settingValue) == null ? void 0 : z.theme) === "dark" && ["mix", "wide"].includes((N = e.settingValue) == null ? void 0 : N.layout)
2739
+ disabled: ((z = e.settingValue) == null ? void 0 : z.theme) === "light" || ((H = e.settingValue) == null ? void 0 : H.theme) === "dark" && ["mix", "wide"].includes((P = e.settingValue) == null ? void 0 : P.layout)
2731
2740
  }, {
2732
2741
  key: "colorTextMenu",
2733
2742
  title: "菜单文字颜色",
2734
- disabled: ((f = e.settingValue) == null ? void 0 : f.theme) === "dark" && ((p = e.settingValue) == null ? void 0 : p.layout) !== "mix"
2743
+ disabled: ((G = e.settingValue) == null ? void 0 : G.theme) === "dark" && ((E = e.settingValue) == null ? void 0 : E.layout) !== "mix"
2735
2744
  }, {
2736
2745
  key: "colorDarkTextMenu",
2737
2746
  title: "菜单文字颜色",
2738
- disabled: (($ = e.settingValue) == null ? void 0 : $.theme) === "light" || ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["mix", "wide"].includes((P = e.settingValue) == null ? void 0 : P.layout)
2747
+ disabled: ((Y = e.settingValue) == null ? void 0 : Y.theme) === "light" || ((A = e.settingValue) == null ? void 0 : A.theme) === "dark" && ["mix", "wide"].includes((d = e.settingValue) == null ? void 0 : d.layout)
2739
2748
  }, {
2740
2749
  key: "colorTextMenuHover",
2741
2750
  title: "菜单文字移入颜色",
2742
- disabled: ((K = e.settingValue) == null ? void 0 : K.theme) === "dark" && ((U = e.settingValue) == null ? void 0 : U.layout) !== "mix"
2751
+ disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "dark" && ((B = e.settingValue) == null ? void 0 : B.layout) !== "mix"
2743
2752
  }, {
2744
2753
  key: "colorDarkTextMenuHover",
2745
2754
  title: "菜单文字移入颜色",
2746
- disabled: ((A = e.settingValue) == null ? void 0 : A.theme) === "light" || ((V = e.settingValue) == null ? void 0 : V.theme) === "dark" && ["mix", "wide"].includes((_ = e.settingValue) == null ? void 0 : _.layout)
2755
+ disabled: ((k = e.settingValue) == null ? void 0 : k.theme) === "light" || ((D = e.settingValue) == null ? void 0 : D.theme) === "dark" && ["mix", "wide"].includes((W = e.settingValue) == null ? void 0 : W.layout)
2747
2756
  }, {
2748
2757
  key: "colorTextMenuSelected",
2749
2758
  title: "菜单文字选中颜色",
2750
- disabled: ((ce = e.settingValue) == null ? void 0 : ce.theme) === "dark" && ((Ke = e.settingValue) == null ? void 0 : Ke.layout) !== "mix"
2759
+ disabled: ((ee = e.settingValue) == null ? void 0 : ee.theme) === "dark" && ((ne = e.settingValue) == null ? void 0 : ne.layout) !== "mix"
2751
2760
  }, {
2752
2761
  key: "colorDarkTextMenuSelected",
2753
2762
  title: "菜单文字选中颜色",
2754
- disabled: ((Ue = e.settingValue) == null ? void 0 : Ue.theme) === "light" || ((Ee = e.settingValue) == null ? void 0 : Ee.theme) === "dark" && ["mix", "wide"].includes((Xe = e.settingValue) == null ? void 0 : Xe.layout)
2763
+ disabled: ((Z = e.settingValue) == null ? void 0 : Z.theme) === "light" || ((Ee = e.settingValue) == null ? void 0 : Ee.theme) === "dark" && ["mix", "wide"].includes((Xe = e.settingValue) == null ? void 0 : Xe.layout)
2755
2764
  }];
2756
- }), s = v(() => a.value === "header" ? y.value : a.value === "sider" ? M.value : []), T = (l) => {
2757
- var x, O;
2758
- return (O = (x = w.value) == null ? void 0 : x[a.value]) == null ? void 0 : O[l];
2765
+ }), g = v(() => a.value === "header" ? b.value : a.value === "sider" ? O.value : []), F = (l) => {
2766
+ var s, M;
2767
+ return (M = (s = S.value) == null ? void 0 : s[a.value]) == null ? void 0 : M[l];
2759
2768
  };
2760
2769
  return () => {
2761
- var x, O, I;
2770
+ var s, M, I;
2762
2771
  let l;
2763
- return d(n("div", {
2764
- class: [i, m.value]
2772
+ return u(n("div", {
2773
+ class: [i, f.value]
2765
2774
  }, [n("h3", {
2766
- class: [`${i}-title`, m.value]
2767
- }, [Q("主题编辑器"), n("div", {
2768
- class: [`${i}-sub-title`, m.value]
2769
- }, [n("span", null, [(x = Mt.find((C) => {
2770
- var h;
2771
- return C.key === ((h = e.settingValue) == null ? void 0 : h.theme);
2772
- })) == null ? void 0 : x.title]), n("span", {
2775
+ class: [`${i}-title`, f.value]
2776
+ }, [te("主题编辑器"), n("div", {
2777
+ class: [`${i}-sub-title`, f.value]
2778
+ }, [n("span", null, [(s = Mt.find((x) => {
2779
+ var y;
2780
+ return x.key === ((y = e.settingValue) == null ? void 0 : y.theme);
2781
+ })) == null ? void 0 : s.title]), n("span", {
2773
2782
  style: {
2774
2783
  marginInline: "8px"
2775
2784
  }
2776
- }, [Q("/")]), n("span", null, [(O = Ot.find((C) => {
2777
- var h;
2778
- return C.key === ((h = e.settingValue) == null ? void 0 : h.layout);
2779
- })) == null ? void 0 : O.title])])]), n("div", {
2780
- class: [`${i}-content`, m.value]
2781
- }, [n(te, {
2782
- class: `${i}-list ${m.value}`.trim(),
2785
+ }, [te("/")]), n("span", null, [(M = Ot.find((x) => {
2786
+ var y;
2787
+ return x.key === ((y = e.settingValue) == null ? void 0 : y.layout);
2788
+ })) == null ? void 0 : M.title])])]), n("div", {
2789
+ class: [`${i}-content`, f.value]
2790
+ }, [n(oe, {
2791
+ class: `${i}-list ${f.value}`.trim(),
2783
2792
  split: !1,
2784
2793
  size: "small",
2785
2794
  renderItem: ({
2786
- item: C
2787
- }) => n(te.Item, {
2788
- actions: [C.action]
2795
+ item: x
2796
+ }) => n(oe.Item, {
2797
+ actions: [x.action]
2789
2798
  }, {
2790
2799
  default: () => [n("span", {
2791
2800
  style: {
2792
- opacity: C.disabled ? 0.5 : 1
2801
+ opacity: x.disabled ? 0.5 : 1
2793
2802
  }
2794
- }, [C.title])]
2803
+ }, [x.title])]
2795
2804
  }),
2796
2805
  dataSource: [{
2797
2806
  title: "自定义主题色",
@@ -2800,39 +2809,39 @@ const xa = /* @__PURE__ */ W({
2800
2809
  actions: ["confirm"],
2801
2810
  modes: ["rgb"],
2802
2811
  size: "small",
2803
- onConfirm: (C) => e.onChange && e.onChange(C, "primaryColor")
2812
+ onConfirm: (x) => e.onChange && e.onChange(x, "primaryColor")
2804
2813
  }, null)
2805
2814
  }]
2806
- }, null), n(Fe, {
2815
+ }, null), n(Le, {
2807
2816
  activeKey: a.value,
2808
2817
  onChange: o
2809
- }, va(l = ha.map((C) => n(Dt, {
2810
- key: C.key,
2811
- tab: C.title
2818
+ }, va(l = ha.map((x) => n(Dt, {
2819
+ key: x.key,
2820
+ tab: x.title
2812
2821
  }, {
2813
- default: () => [n(te, {
2814
- class: `${i}-list ${m.value}`.trim(),
2822
+ default: () => [n(oe, {
2823
+ class: `${i}-list ${f.value}`.trim(),
2815
2824
  split: !1,
2816
2825
  size: "small",
2817
2826
  renderItem: ({
2818
- item: h
2819
- }) => n(te.Item, {
2820
- actions: [h.action]
2827
+ item: y
2828
+ }) => n(oe.Item, {
2829
+ actions: [y.action]
2821
2830
  }, {
2822
2831
  default: () => [n("span", {
2823
2832
  style: {
2824
- opacity: h.disabled ? 0.5 : 1
2833
+ opacity: y.disabled ? 0.5 : 1
2825
2834
  }
2826
- }, [h.title])]
2835
+ }, [y.title])]
2827
2836
  }),
2828
- dataSource: s.value.filter((h) => !h.disabled).map((h) => ({
2829
- ...h,
2837
+ dataSource: g.value.filter((y) => !y.disabled).map((y) => ({
2838
+ ...y,
2830
2839
  action: n(_e, {
2831
- value: T(h.key),
2840
+ value: F(y.key),
2832
2841
  actions: ["confirm"],
2833
2842
  modes: ["rgb"],
2834
2843
  size: "small",
2835
- onConfirm: (c) => e.onChange && e.onChange(c, a.value, h.key)
2844
+ onConfirm: (m) => e.onChange && e.onChange(m, a.value, y.key)
2836
2845
  }, null)
2837
2846
  }))
2838
2847
  }, null)]
@@ -2873,11 +2882,11 @@ const xa = /* @__PURE__ */ W({
2873
2882
  }
2874
2883
  });
2875
2884
  function et(e) {
2876
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
2885
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
2877
2886
  }
2878
2887
  const {
2879
2888
  preset: tt
2880
- } = He, wa = /* @__PURE__ */ W({
2889
+ } = je, wa = /* @__PURE__ */ j({
2881
2890
  name: "OthersChange",
2882
2891
  props: {
2883
2892
  prefixCls: L.string,
@@ -2885,77 +2894,77 @@ const {
2885
2894
  onChange: Function
2886
2895
  },
2887
2896
  setup(e) {
2888
- const t = de({
2897
+ const t = me({
2889
2898
  suffixCls: "others",
2890
2899
  isPor: !0
2891
2900
  }), {
2892
2901
  wrapSSR: a,
2893
2902
  hashId: o
2894
- } = Z("SettingsDrawOthers", [Ca], t);
2903
+ } = J("SettingsDrawOthers", [Ca], t);
2895
2904
  return () => {
2896
- var d, m, u, w, y, M, s, T, l, x, O, I, C, h;
2905
+ var u, f, c, S, b, O, g, F, l, s, M, I, x, y;
2897
2906
  let i;
2898
2907
  return a(n("div", {
2899
2908
  class: [t, o.value]
2900
2909
  }, [n("h3", {
2901
2910
  class: [`${t}-title`, o.value]
2902
- }, [Q("页面动画设置")]), n(te, {
2911
+ }, [te("页面动画设置")]), n(oe, {
2903
2912
  class: `${t}-list ${o.value}`.trim(),
2904
2913
  split: !1,
2905
2914
  size: "small",
2906
2915
  renderItem: ({
2907
- item: c
2908
- }) => n(xe, {
2909
- title: c.disabled ? c.disabledReason : "",
2916
+ item: m
2917
+ }) => n(we, {
2918
+ title: m.disabled ? m.disabledReason : "",
2910
2919
  placement: "left"
2911
2920
  }, {
2912
- default: () => [n(te.Item, {
2913
- actions: [c.action]
2921
+ default: () => [n(oe.Item, {
2922
+ actions: [m.action]
2914
2923
  }, {
2915
2924
  default: () => [n("span", {
2916
2925
  style: {
2917
- opacity: c.disabled ? 0.5 : 1
2926
+ opacity: m.disabled ? 0.5 : 1
2918
2927
  }
2919
- }, [c.title])]
2928
+ }, [m.title])]
2920
2929
  })]
2921
2930
  }),
2922
2931
  dataSource: [{
2923
2932
  title: "禁用动画",
2924
2933
  action: n(rt, {
2925
- checked: !((m = (d = e.settingValue) == null ? void 0 : d.animate) != null && m.disabled),
2934
+ checked: !((f = (u = e.settingValue) == null ? void 0 : u.animate) != null && f.disabled),
2926
2935
  size: "small",
2927
- onChange: (c) => {
2928
- var g;
2929
- return (g = e.onChange) == null ? void 0 : g.call(e, "animate", "disabled", !c);
2936
+ onChange: (m) => {
2937
+ var h;
2938
+ return (h = e.onChange) == null ? void 0 : h.call(e, "animate", "disabled", !m);
2930
2939
  }
2931
2940
  }, null)
2932
2941
  }, {
2933
2942
  title: "动画效果",
2934
- disabled: (w = (u = e.settingValue) == null ? void 0 : u.animate) == null ? void 0 : w.disabled,
2935
- action: n(me, {
2936
- value: (M = (y = e.settingValue) == null ? void 0 : y.animate) == null ? void 0 : M.name,
2943
+ disabled: (S = (c = e.settingValue) == null ? void 0 : c.animate) == null ? void 0 : S.disabled,
2944
+ action: n(ge, {
2945
+ value: (O = (b = e.settingValue) == null ? void 0 : b.animate) == null ? void 0 : O.name,
2937
2946
  style: {
2938
2947
  width: "100px"
2939
2948
  },
2940
2949
  size: "small",
2941
- disabled: (T = (s = e.settingValue) == null ? void 0 : s.animate) == null ? void 0 : T.disabled,
2942
- getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
2943
- onChange: (c) => {
2944
- var g;
2945
- return (g = e.onChange) == null ? void 0 : g.call(e, "animate", "name", c);
2950
+ disabled: (F = (g = e.settingValue) == null ? void 0 : g.animate) == null ? void 0 : F.disabled,
2951
+ getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
2952
+ onChange: (m) => {
2953
+ var h;
2954
+ return (h = e.onChange) == null ? void 0 : h.call(e, "animate", "name", m);
2946
2955
  }
2947
- }, et(i = tt.map((c) => n(me.Option, {
2948
- value: c.name
2956
+ }, et(i = tt.map((m) => n(ge.Option, {
2957
+ value: m.name
2949
2958
  }, {
2950
- default: () => [c.alias]
2959
+ default: () => [m.alias]
2951
2960
  }))) ? i : {
2952
2961
  default: () => [i]
2953
2962
  })
2954
2963
  }, {
2955
2964
  title: "动画方向",
2956
- disabled: (x = (l = e.settingValue) == null ? void 0 : l.animate) == null ? void 0 : x.disabled,
2957
- action: n(me, {
2958
- value: (I = (O = e.settingValue) == null ? void 0 : O.animate) == null ? void 0 : I.direction,
2965
+ disabled: (s = (l = e.settingValue) == null ? void 0 : l.animate) == null ? void 0 : s.disabled,
2966
+ action: n(ge, {
2967
+ value: (I = (M = e.settingValue) == null ? void 0 : M.animate) == null ? void 0 : I.direction,
2959
2968
  style: {
2960
2969
  width: "100px"
2961
2970
  },
@@ -2963,22 +2972,22 @@ const {
2963
2972
  dropdownStyle: {
2964
2973
  minWidth: "120px"
2965
2974
  },
2966
- disabled: (h = (C = e.settingValue) == null ? void 0 : C.animate) == null ? void 0 : h.disabled,
2967
- getPopupContainer: (c) => c && c.parentNode ? c.parentNode : c,
2968
- onChange: (c) => {
2969
- var g;
2970
- return (g = e.onChange) == null ? void 0 : g.call(e, "animate", "direction", c);
2975
+ disabled: (y = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : y.disabled,
2976
+ getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
2977
+ onChange: (m) => {
2978
+ var h;
2979
+ return (h = e.onChange) == null ? void 0 : h.call(e, "animate", "direction", m);
2971
2980
  }
2972
2981
  }, {
2973
2982
  default: () => {
2974
- var c;
2975
- return [(c = tt.find((g) => {
2976
- var B, b;
2977
- return g.name === ((b = (B = e.settingValue) == null ? void 0 : B.animate) == null ? void 0 : b.name);
2978
- })) == null ? void 0 : c.directions.map((g) => n(me.Option, {
2979
- value: g
2980
- }, et(g) ? g : {
2981
- default: () => [g]
2983
+ var m;
2984
+ return [(m = tt.find((h) => {
2985
+ var R, p;
2986
+ return h.name === ((p = (R = e.settingValue) == null ? void 0 : R.animate) == null ? void 0 : p.name);
2987
+ })) == null ? void 0 : m.directions.map((h) => n(ge.Option, {
2988
+ value: h
2989
+ }, et(h) ? h : {
2990
+ default: () => [h]
2982
2991
  }))];
2983
2992
  }
2984
2993
  })
@@ -2988,7 +2997,7 @@ const {
2988
2997
  }
2989
2998
  }), {
2990
2999
  preset: Sa
2991
- } = He, Be = Object.keys(j).filter((e) => e !== "title"), nt = {
3000
+ } = je, Fe = Object.keys(V).filter((e) => e !== "title"), nt = {
2992
3001
  color: "#fff",
2993
3002
  fontSize: 20
2994
3003
  }, Ia = [{
@@ -3007,9 +3016,9 @@ const {
3007
3016
  label: "fixedMultiTab",
3008
3017
  title: "固定多标签"
3009
3018
  }], at = (e) => nn() ? {
3010
- ...ae(j, Be),
3019
+ ...le(V, Fe),
3011
3020
  ...e || {}
3012
- } : De(j), ge = (e, {
3021
+ } : He(V), ye = (e, {
3013
3022
  slots: t
3014
3023
  }) => {
3015
3024
  var a;
@@ -3020,7 +3029,7 @@ const {
3020
3029
  }, [n("h3", {
3021
3030
  class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
3022
3031
  }, [e.title]), (a = t.default) == null ? void 0 : a.call(t)]);
3023
- }, Hi = /* @__PURE__ */ W({
3032
+ }, Hi = /* @__PURE__ */ j({
3024
3033
  name: "SettingDrawer",
3025
3034
  props: {
3026
3035
  themeOnly: Boolean,
@@ -3042,48 +3051,48 @@ const {
3042
3051
  setup(e) {
3043
3052
  const {
3044
3053
  getPrefixCls: t
3045
- } = J(), a = t({
3054
+ } = Q(), a = t({
3046
3055
  suffixCls: "setting-drawer",
3047
3056
  isPor: !0
3048
3057
  }), {
3049
3058
  wrapSSR: o,
3050
3059
  hashId: i
3051
- } = Z("ProSettingDraw", [ya], a), d = Ie(!1), [m, u] = ye(!1), [w, y] = ye(!1), [M, s] = ye(!1), T = v(() => at(ae(e.settings, Be))), [l, x] = ln(() => at(ae(e.settings, Be)), {
3052
- value: T,
3060
+ } = J("ProSettingDraw", [ya], a), u = Re(!1), [f, c] = pe(!1), [S, b] = pe(!1), [O, g] = pe(!1), F = v(() => at(le(e.settings, Fe))), [l, s] = ln(() => at(le(e.settings, Fe)), {
3061
+ value: F,
3053
3062
  onChange: e.onChange
3054
- }), O = v(() => e.colorList && tn(e.colorList) ? e.colorList : []), I = v(() => wn(X(l))), {
3055
- copy: C,
3056
- copied: h,
3057
- isSupported: c
3063
+ }), M = v(() => e.colorList && tn(e.colorList) ? e.colorList : []), I = v(() => wn(U(l))), {
3064
+ copy: x,
3065
+ copied: y,
3066
+ isSupported: m
3058
3067
  } = sn();
3059
- re(m, () => {
3060
- d.value || (d.value = !0);
3068
+ de(f, () => {
3069
+ u.value || (u.value = !0);
3061
3070
  });
3062
- const g = (b, S, F) => {
3063
- var H, z;
3064
- const k = ["header", "sider"], D = {};
3065
- if (F && k.includes(b)) {
3066
- D[b] = {}, D[b][F] = S, e.onChangeLayout && e.onChangeLayout(ae(D, k));
3071
+ const h = (p, w, $) => {
3072
+ var z, H;
3073
+ const T = ["header", "sider"], N = {};
3074
+ if ($ && T.includes(p)) {
3075
+ N[p] = {}, N[p][$] = w, e.onChangeLayout && e.onChangeLayout(le(N, T));
3067
3076
  return;
3068
3077
  } else
3069
- b === "animate" ? (D[b] = {}, D[b][F] = S, F === "name" && (D[b].direction = (z = (H = Sa.find((N) => N.name === S)) == null ? void 0 : H.directions) == null ? void 0 : z[0])) : D[b] = S;
3070
- if (b === "colorWeak") {
3071
- const N = document.querySelector("body");
3072
- N && (N.dataset.prosettingdrawer = S === !0 ? N.style.filter : N.dataset.prosettingdrawer || "none", S === !0 && (N.dataset.prosettingdrawer = N.style.filter), N.style.filter = S === !0 ? "invert(80%)" : N.dataset.prosettingdrawer || "none", S || delete N.dataset.prosettingdrawer);
3078
+ p === "animate" ? (N[p] = {}, N[p][$] = w, $ === "name" && (N[p].direction = (H = (z = Sa.find((P) => P.name === w)) == null ? void 0 : z.directions) == null ? void 0 : H[0])) : N[p] = w;
3079
+ if (p === "colorWeak") {
3080
+ const P = document.querySelector("body");
3081
+ P && (P.dataset.prosettingdrawer = w === !0 ? P.style.filter : P.dataset.prosettingdrawer || "none", w === !0 && (P.dataset.prosettingdrawer = P.style.filter), P.style.filter = w === !0 ? "invert(80%)" : P.dataset.prosettingdrawer || "none", w || delete P.dataset.prosettingdrawer);
3073
3082
  }
3074
- x(an(X(l), {
3075
- ...Cn(Ne(D, k))
3083
+ s(an(U(l), {
3084
+ ...Cn(Ve(N, T))
3076
3085
  }));
3077
- }, B = () => {
3078
- c.value && C(JSON.stringify(X(l)));
3086
+ }, R = () => {
3087
+ m.value && x(JSON.stringify(U(l)));
3079
3088
  };
3080
- return re(h, (b) => {
3081
- b && Nt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
3082
- }), () => o(n(he, {
3089
+ return de(y, (p) => {
3090
+ p && Nt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
3091
+ }), () => o(n(be, {
3083
3092
  width: 300,
3084
3093
  closable: !1,
3085
- open: m.value,
3086
- rootClassName: `${a} ${i.value} ${m.value && `${a}-show`} ${!d.value && `${a}-trantion-none`}`,
3094
+ open: f.value,
3095
+ rootClassName: `${a} ${i.value} ${f.value && `${a}-show`} ${!u.value && `${a}-trantion-none`}`,
3087
3096
  placement: "right",
3088
3097
  rootStyle: {
3089
3098
  zIndex: 999
@@ -3091,11 +3100,11 @@ const {
3091
3100
  bodyStyle: {
3092
3101
  padding: 0
3093
3102
  },
3094
- onClose: () => u(!1),
3103
+ onClose: () => c(!1),
3095
3104
  handle: n("div", {
3096
3105
  class: [`${a}-handle`, i.value],
3097
- onClick: () => u(!m.value)
3098
- }, [m.value ? n(st, {
3106
+ onClick: () => c(!f.value)
3107
+ }, [f.value ? n(st, {
3099
3108
  style: nt
3100
3109
  }, null) : n(Xt, {
3101
3110
  style: nt
@@ -3103,10 +3112,10 @@ const {
3103
3112
  }, {
3104
3113
  default: () => [n("div", {
3105
3114
  class: [`${a}-wrapper`, i.value]
3106
- }, [n(dn, null, {
3115
+ }, [n(un, null, {
3107
3116
  default: () => [n("div", {
3108
3117
  class: [`${a}-content`, i.value]
3109
- }, [n(ge, {
3118
+ }, [n(ye, {
3110
3119
  prefixCls: a,
3111
3120
  hashId: i.value,
3112
3121
  title: "整体风格设置"
@@ -3118,87 +3127,87 @@ const {
3118
3127
  value: l.value.theme,
3119
3128
  configType: "theme",
3120
3129
  key: "navTheme",
3121
- onChange: (b) => g("theme", b)
3130
+ onChange: (p) => h("theme", p)
3122
3131
  }, null)]
3123
- }), n(ge, {
3132
+ }), n(ye, {
3124
3133
  hashId: i.value,
3125
- title: n("span", null, [Q("主题色 "), n("a", {
3134
+ title: n("span", null, [te("主题色 "), n("a", {
3126
3135
  style: {
3127
3136
  fontSize: "12px"
3128
3137
  },
3129
- onClick: () => y(!0)
3130
- }, [Q("更多配置")])]),
3138
+ onClick: () => b(!0)
3139
+ }, [te("更多配置")])]),
3131
3140
  prefixCls: a
3132
3141
  }, {
3133
3142
  default: () => [n(ba, {
3134
3143
  hashId: i.value,
3135
3144
  prefixCls: a,
3136
- colorList: O.value,
3145
+ colorList: M.value,
3137
3146
  settingValue: l.value,
3138
- onChange: (b, S) => g(S || "primaryColor", b)
3147
+ onChange: (p, w) => h(w || "primaryColor", p)
3139
3148
  }, null)]
3140
- }), !e.themeOnly && n(q, null, [n(we, null, null), n(ge, {
3149
+ }), !e.themeOnly && n(q, null, [n(Me, null, null), n(ye, {
3141
3150
  hashId: i.value,
3142
3151
  prefixCls: a,
3143
3152
  title: "导航模式"
3144
3153
  }, {
3145
3154
  default: () => [n(Qe, {
3146
3155
  prefixCls: a,
3147
- value: X(l).layout,
3156
+ value: U(l).layout,
3148
3157
  key: "layout",
3149
3158
  hashId: i.value,
3150
3159
  configType: "layout",
3151
3160
  list: Ot,
3152
- onChange: (b) => g("layout", b)
3161
+ onChange: (p) => h("layout", p)
3153
3162
  }, null)]
3154
3163
  }), Ia.map(({
3155
- label: b,
3156
- title: S
3157
- }) => n(fe, {
3158
- label: S,
3159
- disabled: X(I)[b],
3160
- value: X(l)[b],
3164
+ label: p,
3165
+ title: w
3166
+ }) => n(he, {
3167
+ label: w,
3168
+ disabled: U(I)[p],
3169
+ value: U(l)[p],
3161
3170
  prefixCls: a,
3162
3171
  hashId: i.value,
3163
- valueKey: b,
3164
- onChange: (F, k) => g(F, k)
3165
- }, null)), n(we, null, null), n(ge, {
3172
+ valueKey: p,
3173
+ onChange: ($, T) => h($, T)
3174
+ }, null)), n(Me, null, null), n(ye, {
3166
3175
  hashId: i.value,
3167
3176
  prefixCls: a,
3168
- title: n("span", null, [Q("其他设置 "), n("a", {
3177
+ title: n("span", null, [te("其他设置 "), n("a", {
3169
3178
  style: {
3170
3179
  fontSize: "12px"
3171
3180
  },
3172
- onClick: () => s(!0)
3173
- }, [Q("更多配置")])])
3181
+ onClick: () => g(!0)
3182
+ }, [te("更多配置")])])
3174
3183
  }, {
3175
3184
  default: () => [Ma.map(({
3176
- label: b,
3177
- title: S
3178
- }) => n(fe, {
3179
- label: S,
3180
- disabled: X(I)[b],
3181
- value: X(l)[b],
3185
+ label: p,
3186
+ title: w
3187
+ }) => n(he, {
3188
+ label: w,
3189
+ disabled: U(I)[p],
3190
+ value: U(l)[p],
3182
3191
  prefixCls: a,
3183
3192
  hashId: i.value,
3184
- valueKey: b,
3185
- onChange: (F, k) => g(F, k)
3186
- }, null)), e.weakmode && n(fe, {
3193
+ valueKey: p,
3194
+ onChange: ($, T) => h($, T)
3195
+ }, null)), e.weakmode && n(he, {
3187
3196
  label: "色弱模式",
3188
- value: X(l).colorWeak,
3197
+ value: U(l).colorWeak,
3189
3198
  prefixCls: a,
3190
3199
  hashId: i.value,
3191
3200
  valueKey: "colorWeak",
3192
- onChange: (b, S) => g(b, S)
3193
- }, null), e.showProgress && n(fe, {
3201
+ onChange: (p, w) => h(p, w)
3202
+ }, null), e.showProgress && n(he, {
3194
3203
  label: "顶部进度条",
3195
- value: X(l).showProgressBar,
3204
+ value: U(l).showProgressBar,
3196
3205
  prefixCls: a,
3197
3206
  hashId: i.value,
3198
3207
  valueKey: "showProgressBar",
3199
- onChange: (b, S) => g(b, S)
3208
+ onChange: (p, w) => h(p, w)
3200
3209
  }, null)]
3201
- })]), e.hideHintAlert && e.hideCopyButton ? null : n(we, null, null), e.hideHintAlert ? null : n(zt, {
3210
+ })]), e.hideHintAlert && e.hideCopyButton ? null : n(Me, null, null), e.hideHintAlert ? null : n(zt, {
3202
3211
  type: "warning",
3203
3212
  message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
3204
3213
  icon: n(Yt, null, null),
@@ -3207,38 +3216,38 @@ const {
3207
3216
  marginBottom: "16px"
3208
3217
  }
3209
3218
  }, null), e.hideCopyButton ? null : n(Ht, {
3210
- onClick: () => B(),
3219
+ onClick: () => R(),
3211
3220
  block: !0
3212
3221
  }, {
3213
- default: () => [n(_t, null, null), Q("拷贝设置")]
3222
+ default: () => [n(_t, null, null), te("拷贝设置")]
3214
3223
  })])]
3215
- })]), n(he, {
3224
+ })]), n(be, {
3216
3225
  width: 320,
3217
3226
  closable: !1,
3218
3227
  placement: "right",
3219
- open: w.value,
3228
+ open: S.value,
3220
3229
  bodyStyle: {
3221
3230
  padding: 0
3222
3231
  },
3223
- onClose: () => y(!1)
3232
+ onClose: () => b(!1)
3224
3233
  }, {
3225
3234
  default: () => [n(xa, {
3226
3235
  settingValue: l.value,
3227
- onChange: (b, S, F) => g(S || "primaryColor", b, F)
3236
+ onChange: (p, w, $) => h(w || "primaryColor", p, $)
3228
3237
  }, null)]
3229
- }), n(he, {
3238
+ }), n(be, {
3230
3239
  width: 320,
3231
3240
  closable: !1,
3232
3241
  placement: "right",
3233
- open: M.value,
3242
+ open: O.value,
3234
3243
  bodyStyle: {
3235
3244
  padding: 0
3236
3245
  },
3237
- onClose: () => s(!1)
3246
+ onClose: () => g(!1)
3238
3247
  }, {
3239
3248
  default: () => [n(wa, {
3240
3249
  settingValue: l.value,
3241
- onChange: (b, S, F) => g(b, F, S)
3250
+ onChange: (p, w, $) => h(p, $, w)
3242
3251
  }, null)]
3243
3252
  })]
3244
3253
  }));
@@ -4386,7 +4395,7 @@ const {
4386
4395
  transformOrigin: "center bottom",
4387
4396
  animationName: li
4388
4397
  }
4389
- }), di = new r("slideInDown", {
4398
+ }), ui = new r("slideInDown", {
4390
4399
  from: {
4391
4400
  transform: "translate3d(0, -100%, 0)",
4392
4401
  visibility: "visible"
@@ -4394,7 +4403,7 @@ const {
4394
4403
  to: {
4395
4404
  transform: "translate3d(0, 0, 0)"
4396
4405
  }
4397
- }), ui = new r("slideInLeft", {
4406
+ }), di = new r("slideInLeft", {
4398
4407
  from: {
4399
4408
  transform: "translate3d(-100%, 0, 0)",
4400
4409
  visibility: "visible"
@@ -4453,11 +4462,11 @@ const {
4453
4462
  }), bi = () => ({
4454
4463
  "&.slideInDown": {
4455
4464
  animationFillMode: "both",
4456
- animationName: di
4465
+ animationName: ui
4457
4466
  },
4458
4467
  "&.slideInLeft": {
4459
4468
  animationFillMode: "both",
4460
- animationName: ui
4469
+ animationName: di
4461
4470
  },
4462
4471
  "&.slideInRight": {
4463
4472
  animationFillMode: "both",
@@ -4516,12 +4525,12 @@ const {
4516
4525
  }
4517
4526
  });
4518
4527
  function xi(e) {
4519
- return Pe("LayoutPageTranstion", (t) => {
4520
- const a = Le(t);
4528
+ return Ne("LayoutPageTranstion", (t) => {
4529
+ const a = ze(t);
4521
4530
  return [vi(a)];
4522
4531
  }, e);
4523
4532
  }
4524
- const Vi = /* @__PURE__ */ W({
4533
+ const Vi = /* @__PURE__ */ j({
4525
4534
  name: "PageTranstion",
4526
4535
  props: {
4527
4536
  disabled: {
@@ -4541,35 +4550,35 @@ const Vi = /* @__PURE__ */ W({
4541
4550
  setup(e, {
4542
4551
  slots: t
4543
4552
  }) {
4544
- const a = de({
4553
+ const a = me({
4545
4554
  suffixCls: "page-transtion",
4546
4555
  isPor: !0
4547
4556
  }), {
4548
4557
  wrapSSR: o,
4549
4558
  hashId: i
4550
- } = xi(a), d = v(() => [u(!1), `${a}-enter`, i.value].join(" ")), m = v(() => [u(!0), `${a}-leave`, i.value].join(" ")), u = (y) => {
4551
- const M = He.preset.find((l) => e.name == l.name);
4552
- if (M == null)
4559
+ } = xi(a), u = v(() => [c(!1), `${a}-enter`, i.value].join(" ")), f = v(() => [c(!0), `${a}-leave`, i.value].join(" ")), c = (b) => {
4560
+ const O = je.preset.find((l) => e.name == l.name);
4561
+ if (O == null)
4553
4562
  return "";
4554
- let s = "";
4555
- e.direction == null ? s = M.directions[0] : s = M.directions.find((l) => l == e.direction) || "", s = s == null || s === "default" ? "" : s, s != "" && (s = y && e.reverse ? w(s, M.directions) : s, s = s[0].toUpperCase() + s.substring(1));
4556
- const T = y ? "Out" : "In";
4557
- return M.name + T + s;
4558
- }, w = (y, M) => {
4559
- if (y.length == 0 || y == "x" || y == "y")
4560
- return y;
4561
- let s = M.indexOf(y);
4562
- return s = s % 2 == 1 ? s - 1 : s + 1, M[s];
4563
+ let g = "";
4564
+ e.direction == null ? g = O.directions[0] : g = O.directions.find((l) => l == e.direction) || "", g = g == null || g === "default" ? "" : g, g != "" && (g = b && e.reverse ? S(g, O.directions) : g, g = g[0].toUpperCase() + g.substring(1));
4565
+ const F = b ? "Out" : "In";
4566
+ return O.name + F + g;
4567
+ }, S = (b, O) => {
4568
+ if (b.length == 0 || b == "x" || b == "y")
4569
+ return b;
4570
+ let g = O.indexOf(b);
4571
+ return g = g % 2 == 1 ? g - 1 : g + 1, O[g];
4563
4572
  };
4564
4573
  return () => {
4565
- var y;
4566
- return e.disabled ? (y = t.default) == null ? void 0 : y.call(t) : o(n(Ft, {
4567
- enterActiveClass: d.value,
4568
- leaveActiveClass: m.value
4574
+ var b;
4575
+ return e.disabled ? (b = t.default) == null ? void 0 : b.call(t) : o(n(Ft, {
4576
+ enterActiveClass: u.value,
4577
+ leaveActiveClass: f.value
4569
4578
  }, {
4570
4579
  default: () => {
4571
- var M;
4572
- return [(M = t.default) == null ? void 0 : M.call(t)];
4580
+ var O;
4581
+ return [(O = t.default) == null ? void 0 : O.call(t)];
4573
4582
  }
4574
4583
  }));
4575
4584
  };
@@ -4579,14 +4588,14 @@ export {
4579
4588
  gt as BaseMenu,
4580
4589
  ma as DefaultHeader,
4581
4590
  Ni as GProLayout,
4582
- Oe as GlobalFooter,
4591
+ ke as GlobalFooter,
4583
4592
  Di as PageContainer,
4584
- un as PageLoading,
4593
+ dn as PageLoading,
4585
4594
  Vi as PageTranstion,
4586
4595
  Hi as SettingDrawer,
4587
- Me as SiderMenuWrapper,
4588
- Ae as WrapContent,
4589
- ze as baseMenuProps,
4596
+ Be as SiderMenuWrapper,
4597
+ Ue as WrapContent,
4598
+ Ie as baseMenuProps,
4590
4599
  bn as clearMenuItem,
4591
4600
  In as createContext,
4592
4601
  On as createRouteContext,
@@ -4598,5 +4607,5 @@ export {
4598
4607
  Cn as handleThemeConfig,
4599
4608
  Rn as provideProLayoutContext,
4600
4609
  Mn as useContext,
4601
- J as useProLayoutContext
4610
+ Q as useProLayoutContext
4602
4611
  };