@gx-design-vue/pro-layout 0.1.0-beta.45 → 0.1.0-beta.47

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,36 +1,36 @@
1
- import { defineComponent as j, createVNode as n, mergeProps as q, provide as it, readonly as Rt, inject as kt, resolveComponent as lt, computed as b, isVNode as le, Fragment as ee, toRefs as Se, unref as A, createTextVNode as ae, ref as Re, reactive as rt, watch as ce, withDirectives as Bt, vShow as $t, watchEffect as Ft, Transition as Tt } from "vue";
2
- import { Spin as xe, Menu as oe, ConfigProvider as Te, Layout as me, Drawer as pe, Breadcrumb as Pt, Card as Lt, LayoutFooter as Dt, Tabs as Pe, Dropdown as Ye, Tooltip as Ie, List as ie, Switch as st, TabPane as Nt, Select as he, message as zt, Divider as Oe, Alert as Ht, Button as Vt } from "ant-design-vue";
3
- import { useProAppContext as Le } from "@gx-design-vue/pro-app";
4
- import { useRouter as De, RouterLink as jt } from "vue-router";
1
+ import { defineComponent as W, createVNode as n, mergeProps as G, provide as it, readonly as Rt, inject as kt, resolveComponent as lt, computed as b, isVNode as re, Fragment as Q, toRefs as Ie, unref as U, createTextVNode as oe, ref as ke, reactive as rt, watch as me, withDirectives as Bt, vShow as $t, watchEffect as Ft, Transition as Tt } from "vue";
2
+ import { Spin as Ce, Menu as ie, ConfigProvider as Pe, Layout as fe, Drawer as ve, Breadcrumb as Pt, Card as Lt, LayoutFooter as Dt, Tabs as Le, Dropdown as Ye, Tooltip as Me, List as le, Switch as st, TabPane as Nt, Select as ye, message as zt, Divider as Re, Alert as Ht, Button as Vt } from "ant-design-vue";
3
+ import { useProAppContext as De } from "@gx-design-vue/pro-app";
4
+ import { useRouter as Ne, RouterLink as jt } from "vue-router";
5
5
  import { createFromIconfontCN as Wt, MenuUnfoldOutlined as Kt, MenuFoldOutlined as At, GithubOutlined as Ut, EllipsisOutlined as Et, ReloadOutlined as Xt, CloseOutlined as dt, CheckOutlined as ut, SettingOutlined as Yt, NotificationOutlined as _t, CopyOutlined as Gt } from "@ant-design/icons-vue";
6
- import qt, { themeConfig as V, Keyframe as s, useProStyle as ne, useProConfigContext as ge, useStyle as Ne, mergeToken as ze, colorList as Zt } from "@gx-design-vue/pro-provider";
6
+ import qt, { themeConfig as j, Keyframe as s, useProStyle as ae, useProConfigContext as he, useStyle as ze, mergeToken as He, colorList as Zt } from "@gx-design-vue/pro-provider";
7
7
  import { createTypes as Jt } from "vue-types";
8
- import { cloneDeep as He, pick as re, omit as Ve } from "lodash-es";
8
+ import { cloneDeep as Ve, pick as se, omit as je } from "lodash-es";
9
9
  import { GPorWaterMark as Qt } from "@gx-design-vue/pro-watermark";
10
- import { isBoolean as _e, getSlot as K, getPrefixCls as fe, classNames as ct, getLevelData as en, isArray as tn, isBrowser as nn, merge as an } from "@gx-design-vue/pro-utils";
11
- import { useMediaQuery as on, useState as ve, useMergedState as ln } from "@gx-design-vue/pro-hooks";
10
+ import { isBoolean as _e, getSlot as K, getPrefixCls as ge, classNames as ct, getLevelData as en, isArray as tn, isBrowser as nn, merge as an } from "@gx-design-vue/pro-utils";
11
+ import { useMediaQuery as on, useState as xe, useMergedState as ln } from "@gx-design-vue/pro-hooks";
12
12
  import { useWindowSize as rn, useClipboard as sn } from "@vueuse/core";
13
13
  import dn from "@gx-design-vue/scrollbar";
14
14
  import { GColorPicker as Ge } from "@gx-design-vue/color-picker";
15
- const un = /* @__PURE__ */ j({
15
+ const un = /* @__PURE__ */ W({
16
16
  name: "PageLoading",
17
17
  props: {
18
- ...xe.props
18
+ ...Ce.props
19
19
  },
20
20
  setup(e) {
21
21
  const {
22
22
  indicator: t
23
- } = Le();
23
+ } = De();
24
24
  return n("div", {
25
25
  style: {
26
26
  paddingTop: "100px",
27
27
  textAlign: "center"
28
28
  }
29
- }, [n(xe, q(e, {
29
+ }, [n(Ce, G(e, {
30
30
  indicator: t == null ? void 0 : t.value
31
31
  }), null)]);
32
32
  }
33
- }), D = Jt({
33
+ }), L = Jt({
34
34
  func: void 0,
35
35
  bool: void 0,
36
36
  string: void 0,
@@ -39,7 +39,7 @@ const un = /* @__PURE__ */ j({
39
39
  object: void 0,
40
40
  integer: void 0
41
41
  });
42
- D.extend([{
42
+ L.extend([{
43
43
  name: "looseBool",
44
44
  getter: !0,
45
45
  type: Boolean,
@@ -54,75 +54,75 @@ D.extend([{
54
54
  getter: !0,
55
55
  type: null
56
56
  }]);
57
- const de = {
57
+ const ue = {
58
58
  theme: {
59
59
  type: String,
60
- default: V.theme
60
+ default: j.theme
61
61
  },
62
62
  layout: {
63
63
  type: String,
64
- default: V.layout
64
+ default: j.layout
65
65
  },
66
66
  wideWidth: {
67
67
  type: Number,
68
- default: V.wideWidth
68
+ default: j.wideWidth
69
69
  },
70
70
  splitMenus: {
71
71
  type: Boolean,
72
- default: V.splitMenus
72
+ default: j.splitMenus
73
73
  },
74
74
  fixedMultiTab: {
75
75
  type: Boolean,
76
- default: V.fixedMultiTab
76
+ default: j.fixedMultiTab
77
77
  },
78
78
  showProgressBar: {
79
79
  type: Boolean,
80
- default: V.showProgressBar
80
+ default: j.showProgressBar
81
81
  },
82
82
  fixedHeader: {
83
83
  type: Boolean,
84
- default: V.fixedHeader
84
+ default: j.fixedHeader
85
85
  },
86
86
  fixSiderbar: {
87
87
  type: Boolean,
88
- default: V.fixSiderbar
88
+ default: j.fixSiderbar
89
89
  },
90
90
  showTabsBar: {
91
91
  type: Boolean,
92
- default: V.showTabsBar
92
+ default: j.showTabsBar
93
93
  },
94
94
  showFullScreen: {
95
95
  type: Boolean,
96
- default: V.showFullScreen
96
+ default: j.showFullScreen
97
97
  },
98
98
  autoHideHeader: {
99
99
  type: Boolean,
100
- default: V.autoHideHeader
100
+ default: j.autoHideHeader
101
101
  },
102
102
  headerHeight: {
103
103
  type: Number,
104
- default: V.headerHeight
104
+ default: j.headerHeight
105
105
  },
106
106
  title: {
107
107
  type: String,
108
- default: V.title
108
+ default: j.title
109
109
  },
110
110
  iconfontUrl: {
111
111
  type: String,
112
- default: V.iconfontUrl
112
+ default: j.iconfontUrl
113
113
  },
114
114
  animate: {
115
115
  type: Object,
116
- default: V.animate
116
+ default: j.animate
117
117
  },
118
118
  primaryColor: {
119
119
  type: String,
120
- default: V.primaryColor
120
+ default: j.primaryColor
121
121
  }
122
- }, se = {
123
- renderKey: D.string.def("menuHeaderRender"),
124
- title: de.title,
125
- layout: de.layout,
122
+ }, de = {
123
+ renderKey: L.string.def("menuHeaderRender"),
124
+ title: ue.title,
125
+ layout: ue.layout,
126
126
  logo: {
127
127
  type: [Object, String, Function],
128
128
  default: () => {
@@ -137,16 +137,16 @@ const de = {
137
137
  type: String,
138
138
  default: "horizontal"
139
139
  },
140
- drawer: D.looseBool,
141
- collapsed: D.looseBool,
140
+ drawer: L.looseBool,
141
+ collapsed: L.looseBool,
142
142
  menuHeaderRender: {
143
143
  type: [Object, Function],
144
144
  default: () => {
145
145
  }
146
146
  },
147
147
  onMenuHeaderClick: Function
148
- }, Me = {
149
- ...de,
148
+ }, Oe = {
149
+ ...ue,
150
150
  mode: {
151
151
  type: String,
152
152
  default: "inline"
@@ -197,15 +197,15 @@ const de = {
197
197
  type: Function
198
198
  }
199
199
  }, Z = {
200
- ...de,
201
- ...Me,
202
- menuLoading: D.looseBool,
203
- logo: se.logo,
204
- logoStyle: se.logoStyle,
205
- logoDirection: se.logoDirection,
206
- siderWidth: D.number.def(208),
207
- headerHeight: D.number.def(48),
208
- collapsedWidth: D.number.def(48),
200
+ ...ue,
201
+ ...Oe,
202
+ menuLoading: L.looseBool,
203
+ logo: de.logo,
204
+ logoStyle: de.logoStyle,
205
+ logoDirection: de.logoDirection,
206
+ siderWidth: L.number.def(208),
207
+ headerHeight: L.number.def(48),
208
+ collapsedWidth: L.number.def(48),
209
209
  links: {
210
210
  type: [Function, Object, Array],
211
211
  default: () => {
@@ -237,14 +237,14 @@ const de = {
237
237
  type: [Object, Boolean],
238
238
  default: () => !1
239
239
  },
240
- isMobile: D.looseBool,
240
+ isMobile: L.looseBool,
241
241
  matchMenuKeys: {
242
242
  type: Array,
243
243
  default: () => []
244
244
  },
245
245
  // events
246
- onMenuHeaderClick: D.func,
247
- onMenuClick: D.func,
246
+ onMenuHeaderClick: L.func,
247
+ onMenuClick: L.func,
248
248
  onCollapse: {
249
249
  type: Function
250
250
  }
@@ -252,39 +252,39 @@ const de = {
252
252
  function mn(e) {
253
253
  return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
254
254
  }
255
- function ft(e, t, a, o) {
256
- var d, f, c, w, p, O, h, P, l, r, I, k, x, y, g, C, $, u, S, R, M, L, H, N, F, W, X, U, Y, m, v, B, T, z;
257
- const i = { ...e };
258
- return a === "light" ? (i.colorItemBg = (f = (d = t.layout) == null ? void 0 : d[o]) == null ? void 0 : f.colorBgMenu, i.colorSubItemBg = (w = (c = t.layout) == null ? void 0 : c[o]) == null ? void 0 : w.colorSubItemBg, i.colorItemBgSelected = (O = (p = t.layout) == null ? void 0 : p[o]) == null ? void 0 : O.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (P = (h = t.layout) == null ? void 0 : h[o]) == null ? void 0 : P.colorBgMenuItemSelected, i.colorItemText = (r = (l = t.layout) == null ? void 0 : l[o]) == null ? void 0 : r.colorTextMenu, i.colorItemTextHover = (k = (I = t.layout) == null ? void 0 : I[o]) == null ? void 0 : k.colorTextMenuHover, i.colorItemTextSelected = (y = (x = t.layout) == null ? void 0 : x[o]) == null ? void 0 : y.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (C = (g = t.layout) == null ? void 0 : g[o]) == null ? void 0 : C.colorTextMenuSelected, o === "sider" && (i.colorItemBgHover = (u = ($ = t.layout) == null ? void 0 : $[o]) == null ? void 0 : u.colorBgMenuItemHover)) : a === "dark" && (i.colorItemBg = (R = (S = t.layout) == null ? void 0 : S[o]) == null ? void 0 : R.colorDarkBgMenu, i.colorSubItemBg = (L = (M = t.layout) == null ? void 0 : M[o]) == null ? void 0 : L.colorDarkSubItemBg, i.colorItemBgSelected = (N = (H = t.layout) == null ? void 0 : H[o]) == null ? void 0 : N.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (W = (F = t.layout) == null ? void 0 : F[o]) == null ? void 0 : W.colorDarkBgMenuItemSelected, i.colorItemText = (U = (X = t.layout) == null ? void 0 : X[o]) == null ? void 0 : U.colorDarkTextMenu, i.colorItemTextHover = (m = (Y = t.layout) == null ? void 0 : Y[o]) == null ? void 0 : m.colorDarkTextMenuHover, i.colorItemTextSelected = (B = (v = t.layout) == null ? void 0 : v[o]) == null ? void 0 : B.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (z = (T = t.layout) == null ? void 0 : T[o]) == null ? void 0 : z.colorDarkTextMenuSelected, o === "header" && (i.colorActiveBarHeight = 0)), i;
255
+ function ft(e, t, a, i) {
256
+ var d, g, m, w, p, R, h, F, l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B, T;
257
+ const o = { ...e };
258
+ return a === "light" ? (o.colorItemBg = (g = (d = t.layout) == null ? void 0 : d[i]) == null ? void 0 : g.colorBgMenu, o.colorSubItemBg = (w = (m = t.layout) == null ? void 0 : m[i]) == null ? void 0 : w.colorSubItemBg, o.colorItemBgSelected = (R = (p = t.layout) == null ? void 0 : p[i]) == null ? void 0 : R.colorBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (F = (h = t.layout) == null ? void 0 : h[i]) == null ? void 0 : F.colorBgMenuItemSelected, o.colorItemText = (r = (l = t.layout) == null ? void 0 : l[i]) == null ? void 0 : r.colorTextMenu, o.colorItemTextHover = (k = (I = t.layout) == null ? void 0 : I[i]) == null ? void 0 : k.colorTextMenuHover, o.colorItemTextSelected = (y = (x = t.layout) == null ? void 0 : x[i]) == null ? void 0 : y.colorTextMenuSelected, o.colorItemTextSelectedHorizontal = (C = (f = t.layout) == null ? void 0 : f[i]) == null ? void 0 : C.colorTextMenuSelected, i === "sider" && (o.colorItemBgHover = (u = ($ = t.layout) == null ? void 0 : $[i]) == null ? void 0 : u.colorBgMenuItemHover)) : a === "dark" && (o.colorItemBg = (M = (S = t.layout) == null ? void 0 : S[i]) == null ? void 0 : M.colorDarkBgMenu, o.colorSubItemBg = (P = (O = t.layout) == null ? void 0 : O[i]) == null ? void 0 : P.colorDarkSubItemBg, o.colorItemBgSelected = (N = (H = t.layout) == null ? void 0 : H[i]) == null ? void 0 : N.colorDarkBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (V = (D = t.layout) == null ? void 0 : D[i]) == null ? void 0 : V.colorDarkBgMenuItemSelected, o.colorItemText = (_ = (Y = t.layout) == null ? void 0 : Y[i]) == null ? void 0 : _.colorDarkTextMenu, o.colorItemTextHover = (J = (E = t.layout) == null ? void 0 : E[i]) == null ? void 0 : J.colorDarkTextMenuHover, o.colorItemTextSelected = (v = (c = t.layout) == null ? void 0 : c[i]) == null ? void 0 : v.colorDarkTextMenuSelected, o.colorItemTextSelectedHorizontal = (T = (B = t.layout) == null ? void 0 : B[i]) == null ? void 0 : T.colorDarkTextMenuSelected, i === "header" && (o.colorActiveBarHeight = 0)), o;
259
259
  }
260
- 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
+ const fn = ["left", "right"], ce = ["left", "right", "down", "up"], gn = ["downBig", "upBig", "leftBig", "rightBig"], hn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], yn = ["downLeft", "upRight", "downRight", "upLeft"], We = {
261
261
  preset: [
262
262
  //预设动画配置
263
- { name: "back", alias: "渐近", directions: ue },
264
- { name: "bounce", alias: "弹跳", directions: ue.concat("default") },
263
+ { name: "back", alias: "渐近", directions: ce },
264
+ { name: "bounce", alias: "弹跳", directions: ce.concat("default") },
265
265
  {
266
266
  name: "fade",
267
267
  alias: "淡化",
268
- directions: ue.concat(gn).concat(hn).concat("default")
268
+ directions: ce.concat(gn).concat(hn).concat("default")
269
269
  },
270
270
  { name: "flip", alias: "翻转", directions: ["x", "y"] },
271
271
  { name: "lightSpeed", alias: "光速", directions: fn },
272
272
  { name: "rotate", alias: "旋转", directions: yn.concat("default") },
273
273
  { name: "roll", alias: "翻滚", directions: ["default"] },
274
- { name: "zoom", alias: "缩放", directions: ue.concat("default") },
275
- { name: "slide", alias: "滑动", directions: ue }
274
+ { name: "zoom", alias: "缩放", directions: ce.concat("default") },
275
+ { name: "slide", alias: "滑动", directions: ce }
276
276
  ]
277
277
  };
278
278
  function bn(e) {
279
279
  return e.map((t) => {
280
- var o;
280
+ var i;
281
281
  const a = { ...t };
282
- if ((o = a.meta) != null && o.hideInMenu)
282
+ if ((i = a.meta) != null && i.hideInMenu)
283
283
  return null;
284
284
  if (a && (a != null && a.children)) {
285
- if (a.children.some((i) => {
285
+ if (a.children.some((o) => {
286
286
  var d;
287
- return i && !((d = i.meta) != null && d.hideInMenu);
287
+ return o && !((d = o.meta) != null && d.hideInMenu);
288
288
  }))
289
289
  return {
290
290
  ...a,
@@ -297,39 +297,39 @@ function bn(e) {
297
297
  }
298
298
  function pn(e) {
299
299
  return e.map((t) => {
300
- var o;
300
+ var i;
301
301
  const a = { ...t };
302
- return (o = a.meta) != null && o.hideInMenu ? null : (a.linkPath = xn(a.children || []), a.children && delete a.children, a);
302
+ return (i = a.meta) != null && i.hideInMenu ? null : (a.linkPath = xn(a.children || []), a.children && delete a.children, a);
303
303
  }).filter((t) => t);
304
304
  }
305
305
  function vn(e, t) {
306
- const a = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`, o = e.find((i) => i.path === a);
307
- return t === void 0 ? [] : (o == null ? void 0 : o.children) || [];
306
+ const a = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`, i = e.find((o) => o.path === a);
307
+ return t === void 0 ? [] : (i == null ? void 0 : i.children) || [];
308
308
  }
309
309
  function xn(e) {
310
310
  let t = "";
311
- const a = function(i) {
311
+ const a = function(o) {
312
312
  let d = "";
313
- return i.children && i.children.length > 0 ? d = a(i.children[0]) : d = i.path, d;
314
- }, o = e == null ? void 0 : e.filter((i) => !i.hidden);
315
- if (o.length > 0 && o[0].children && o[0].children.length > 0)
316
- t = a(o[0].children[0]);
313
+ return o.children && o.children.length > 0 ? d = a(o.children[0]) : d = o.path, d;
314
+ }, i = e == null ? void 0 : e.filter((o) => !o.hidden);
315
+ if (i.length > 0 && i[0].children && i[0].children.length > 0)
316
+ t = a(i[0].children[0]);
317
317
  else {
318
- const i = o.length > 0 ? o[0] : void 0;
319
- t = (i == null ? void 0 : i.path) || "";
318
+ const o = i.length > 0 ? i[0] : void 0;
319
+ t = (o == null ? void 0 : o.path) || "";
320
320
  }
321
321
  return t;
322
322
  }
323
323
  function Ii(e, t) {
324
- var o, i;
325
- const a = ((i = (o = e.find((d) => d.path === t)) == null ? void 0 : o.meta) == null ? void 0 : i.key) || "";
324
+ var i, o;
325
+ const a = ((o = (i = e.find((d) => d.path === t)) == null ? void 0 : i.meta) == null ? void 0 : o.key) || "";
326
326
  if (a) {
327
- const d = [], f = a.split("-");
328
- for (let c = 0; c < f.length; c += 1)
329
- d.push(He(f).splice(0, c + 1).join("-"));
330
- return e.filter((c) => d.some((w) => {
327
+ const d = [], g = a.split("-");
328
+ for (let m = 0; m < g.length; m += 1)
329
+ d.push(Ve(g).splice(0, m + 1).join("-"));
330
+ return e.filter((m) => d.some((w) => {
331
331
  var p;
332
- return w === ((p = c == null ? void 0 : c.meta) == null ? void 0 : p.key) || "";
332
+ return w === ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.key) || "";
333
333
  }));
334
334
  }
335
335
  return [];
@@ -339,15 +339,15 @@ function Cn(e) {
339
339
  }
340
340
  function wn(e) {
341
341
  const t = ["showTabsBar", "fixedMultiTab", "fixSiderbar", "fixedHeader", "splitMenus"];
342
- let o = Object.keys(e).reduce((i, d) => (i[d] = !1, i), {});
343
- 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;
342
+ let i = Object.keys(e).reduce((o, d) => (o[d] = !1, o), {});
343
+ return i = Sn(i, t), e.layout === "mix" && (i.fixSiderbar = !0, i.fixedHeader = !0), e.layout === "side" && (i.splitMenus = !0), e.layout === "simple" && (i.splitMenus = !0, i.fixedHeader = !0, i.showTabsBar = !0, i.fixedMultiTab = !0), e.layout === "wide" && (i.splitMenus = !0, i.fixedHeader = !0, i.fixSiderbar = !0, i.showTabsBar = !0, i.fixedMultiTab = !0), i;
344
344
  }
345
345
  function Sn(e, t) {
346
346
  return {
347
- ...t.reduce((a, o) => ({ ...a, [o]: e[o] }), {})
347
+ ...t.reduce((a, i) => ({ ...a, [i]: e[i] }), {})
348
348
  };
349
349
  }
350
- const In = (e = Symbol(), t = "Context.Provider") => j({
350
+ const In = (e = Symbol(), t = "Context.Provider") => W({
351
351
  name: t,
352
352
  props: {
353
353
  value: {
@@ -355,24 +355,24 @@ const In = (e = Symbol(), t = "Context.Provider") => j({
355
355
  required: !0
356
356
  }
357
357
  },
358
- setup(o, { slots: i }) {
359
- return it(e, Rt(o.value)), () => {
358
+ setup(i, { slots: o }) {
359
+ return it(e, Rt(i.value)), () => {
360
360
  var d;
361
- return (d = i.default) == null ? void 0 : d.call(i);
361
+ return (d = o.default) == null ? void 0 : d.call(o);
362
362
  };
363
363
  }
364
- }), Mn = (e = Symbol(), t) => kt(e, t || {}), We = Symbol("pro-layout-context"), On = () => In(We, "ProLayoutContext.Provider"), Rn = (e) => {
365
- it(We, e);
366
- }, te = () => Mn(We);
364
+ }), Mn = (e = Symbol(), t) => kt(e, t || {}), Ke = Symbol("pro-layout-context"), On = () => In(Ke, "ProLayoutContext.Provider"), Rn = (e) => {
365
+ it(Ke, e);
366
+ }, te = () => Mn(Ke);
367
367
  On();
368
368
  function qe(e) {
369
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
369
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
370
370
  }
371
- const Ce = (e) => {
371
+ const we = (e) => {
372
372
  const {
373
373
  icon: t,
374
374
  iconType: a,
375
- iconfontUrl: o
375
+ iconfontUrl: i
376
376
  } = e;
377
377
  if (!t)
378
378
  return null;
@@ -385,21 +385,21 @@ const Ce = (e) => {
385
385
  }, null);
386
386
  if (a === 1) {
387
387
  const d = Wt({
388
- scriptUrl: o || V.iconfontUrl
388
+ scriptUrl: i || j.iconfontUrl
389
389
  });
390
- return o ? n(d, {
390
+ return i ? n(d, {
391
391
  type: t
392
392
  }, null) : n("i", {
393
393
  class: `iconfont ${t} ${e.className}-icon`
394
394
  }, null);
395
395
  }
396
396
  }
397
- if (le(t))
397
+ if (re(t))
398
398
  return t;
399
- const i = lt(t);
400
- return typeof Ce == "function" && n(i, null, null) || null;
399
+ const o = lt(t);
400
+ return typeof we == "function" && n(o, null, null) || null;
401
401
  };
402
- Ce.props = {
402
+ we.props = {
403
403
  icon: {
404
404
  type: [String, Function, Object]
405
405
  },
@@ -407,55 +407,55 @@ Ce.props = {
407
407
  className: String,
408
408
  iconfontUrl: String
409
409
  };
410
- const gt = /* @__PURE__ */ j({
410
+ const gt = /* @__PURE__ */ W({
411
411
  name: "BaseMenu",
412
- props: Me,
412
+ props: Oe,
413
413
  setup(e) {
414
- const t = De(), {
414
+ const t = Ne(), {
415
415
  getPrefixCls: a
416
- } = te(), o = a({
416
+ } = te(), i = a({
417
417
  suffixCls: "menu-item",
418
418
  isPor: !0
419
- }), i = (l) => {
419
+ }), o = (l) => {
420
420
  var r;
421
421
  (r = e.onOpenKeys) == null || r.call(e, l);
422
422
  }, d = (l) => {
423
423
  var r;
424
424
  (r = e.onSelect) == null || r.call(e, l.selectedKeys);
425
- }, f = (l) => {
425
+ }, g = (l) => {
426
426
  var r;
427
427
  (r = e.onClick) == null || r.call(e, ...l);
428
- }, c = (l, r) => {
428
+ }, m = (l, r) => {
429
429
  var x;
430
430
  const I = l.target || "", k = mt(I);
431
431
  ((x = t.currentRoute.value) == null ? void 0 : x.fullPath) !== r.to && k && I && l.targetStatus === 1 && window.open(I);
432
- }, w = lt("router-link"), p = (l = []) => l.map((r) => O(r)).filter((r) => r), O = (l) => {
433
- var k, x, y, g, C, $, u, S, R;
432
+ }, w = lt("router-link"), p = (l = []) => l.map((r) => R(r)).filter((r) => r), R = (l) => {
433
+ var k, x, y, f, C, $, u, S, M;
434
434
  if (Array.isArray(l.children) && l.children.length > 0 && !((k = l == null ? void 0 : l.meta) != null && k.hideInMenu) && !((x = l == null ? void 0 : l.meta) != null && x.hideChildrenInMenu)) {
435
- let M;
435
+ let O;
436
436
  if (e.subMenuItemRender)
437
437
  return e.subMenuItemRender({
438
438
  item: l,
439
439
  children: p(l.children)
440
440
  });
441
- const L = (y = l.meta) == null ? void 0 : y.title, H = (g = l.meta) != null && g.icon ? n("span", {
441
+ const P = (y = l.meta) == null ? void 0 : y.title, H = (f = l.meta) != null && f.icon ? n("span", {
442
442
  class: "gx-pro-sider-menu-item"
443
443
  }, [n("span", {
444
444
  class: "gx-pro-sider-menu-item-title"
445
- }, [L])]) : n("span", {
445
+ }, [P])]) : n("span", {
446
446
  class: "gx-pro-sider-menu-item"
447
- }, [L]), N = ((C = l.meta) == null ? void 0 : C.type) === "group", F = N ? oe.ItemGroup : oe.SubMenu;
448
- return n(F, {
447
+ }, [P]), N = ((C = l.meta) == null ? void 0 : C.type) === "group", D = N ? ie.ItemGroup : ie.SubMenu;
448
+ return n(D, {
449
449
  title: H,
450
450
  key: l.path,
451
- icon: N ? null : n(Ce, {
452
- className: o,
451
+ icon: N ? null : n(we, {
452
+ className: i,
453
453
  icon: ($ = l.meta) == null ? void 0 : $.icon,
454
454
  iconfontUrl: e.iconfontUrl,
455
455
  iconType: (u = l.meta) == null ? void 0 : u.iconType
456
456
  }, null)
457
- }, qe(M = p(l.children)) ? M : {
458
- default: () => [M]
457
+ }, qe(O = p(l.children)) ? O : {
458
+ default: () => [O]
459
459
  });
460
460
  }
461
461
  const [r, I] = h(l);
@@ -463,52 +463,52 @@ const gt = /* @__PURE__ */ j({
463
463
  item: l,
464
464
  title: r,
465
465
  icon: I
466
- }) || n(oe.Item, {
466
+ }) || n(ie.Item, {
467
467
  disabled: (S = l.meta) == null ? void 0 : S.disabled,
468
- danger: (R = l.meta) == null ? void 0 : R.danger,
468
+ danger: (M = l.meta) == null ? void 0 : M.danger,
469
469
  key: l.path,
470
470
  icon: I
471
471
  }, qe(r) ? r : {
472
472
  default: () => [r]
473
473
  });
474
474
  }, h = (l) => {
475
- var C, $, u, S, R;
475
+ var C, $, u, S, M;
476
476
  const r = {
477
477
  ...l.meta
478
478
  }, I = r.targetStatus === 1 && r.target ? "a" : w, k = {
479
479
  to: l.linkPath || l.path || ""
480
- }, x = (C = l.meta) == null ? void 0 : C.title, y = ($ = l.meta) != null && $.icon ? n(I, q(k, {
480
+ }, x = (C = l.meta) == null ? void 0 : C.title, y = ($ = l.meta) != null && $.icon ? n(I, G(k, {
481
481
  class: "gx-pro-sider-menu-item",
482
- onClick: () => c(r, k)
482
+ onClick: () => m(r, k)
483
483
  }), {
484
484
  default: () => [n("span", {
485
485
  class: "gx-pro-sider-menu-item-title"
486
486
  }, [x])]
487
- }) : n(I, q(k, {
487
+ }) : n(I, G(k, {
488
488
  class: "gx-pro-sider-menu-item",
489
- onClick: () => c(r, k)
489
+ onClick: () => m(r, k)
490
490
  }), {
491
491
  default: () => [n("span", null, [x])]
492
- }), g = ((u = l.meta) == null ? void 0 : u.icon) && n(Ce, {
493
- className: o,
492
+ }), f = ((u = l.meta) == null ? void 0 : u.icon) && n(we, {
493
+ className: i,
494
494
  icon: (S = l.meta) == null ? void 0 : S.icon,
495
495
  iconfontUrl: e.iconfontUrl,
496
- iconType: (R = l.meta) == null ? void 0 : R.iconType
496
+ iconType: (M = l.meta) == null ? void 0 : M.iconType
497
497
  }, null) || void 0;
498
- return [y, g];
499
- }, P = b(() => p(e.menuData));
500
- return () => n(oe, q({
498
+ return [y, f];
499
+ }, F = b(() => p(e.menuData));
500
+ return () => n(ie, G({
501
501
  key: "Menu",
502
502
  inlineIndent: 16,
503
503
  mode: e.mode,
504
504
  theme: e.theme,
505
505
  openKeys: e.openKeys === !1 ? [] : e.openKeys,
506
506
  selectedKeys: e.selectedKeys || [],
507
- onOpenChange: i,
507
+ onOpenChange: o,
508
508
  onSelect: d,
509
- onClick: f
509
+ onClick: g
510
510
  }, e.menuProps), {
511
- default: () => [P.value]
511
+ default: () => [F.value]
512
512
  });
513
513
  }
514
514
  }), ht = new s("pro-layout-title-hide", {
@@ -533,7 +533,7 @@ const gt = /* @__PURE__ */ j({
533
533
  }
534
534
  };
535
535
  }, Bn = (e) => {
536
- var t, a, o, i, d, f, c, w, p, O, h, P;
536
+ var t, a, i, o, d, g, m, w, p, R, h, F;
537
537
  return {
538
538
  [`${e.proComponentsCls}-basic-layout`]: {
539
539
  [`&${e.proComponentsCls}-basic-layout-wide`]: {
@@ -563,10 +563,10 @@ const gt = /* @__PURE__ */ j({
563
563
  height: "100%"
564
564
  },
565
565
  "&-light": {
566
- background: (i = (o = e.layout) == null ? void 0 : o.sider) == null ? void 0 : i.colorBgMenu,
566
+ background: (o = (i = e.layout) == null ? void 0 : i.sider) == null ? void 0 : o.colorBgMenu,
567
567
  boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
568
568
  [`${e.componentCls}-footer`]: {
569
- color: (f = (d = e.layout) == null ? void 0 : d.sider) == null ? void 0 : f.colorTextMenu
569
+ color: (g = (d = e.layout) == null ? void 0 : d.sider) == null ? void 0 : g.colorTextMenu
570
570
  }
571
571
  },
572
572
  "&-links": {
@@ -582,7 +582,7 @@ const gt = /* @__PURE__ */ j({
582
582
  background: "transparent"
583
583
  },
584
584
  "&-footer": {
585
- color: (w = (c = e.layout) == null ? void 0 : c.sider) == null ? void 0 : w.colorDarkTextMenu,
585
+ color: (w = (m = e.layout) == null ? void 0 : m.sider) == null ? void 0 : w.colorDarkTextMenu,
586
586
  paddingBlockEnd: 16,
587
587
  fontSize: e.fontSize,
588
588
  animationName: ht,
@@ -597,8 +597,8 @@ const gt = /* @__PURE__ */ j({
597
597
  zIndex: "100",
598
598
  height: "100%",
599
599
  "&-mix": {
600
- height: `calc(100% - ${((O = (p = e.layout) == null ? void 0 : p.header) == null ? void 0 : O.heightLayoutHeader) || V.headerHeight}px)`,
601
- insetBlockStart: `${((P = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : P.heightLayoutHeader) || V.headerHeight}px`
600
+ height: `calc(100% - ${((R = (p = e.layout) == null ? void 0 : p.header) == null ? void 0 : R.heightLayoutHeader) || j.headerHeight}px)`,
601
+ insetBlockStart: `${((F = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : F.heightLayoutHeader) || j.headerHeight}px`
602
602
  }
603
603
  }
604
604
  }
@@ -678,106 +678,106 @@ const gt = /* @__PURE__ */ j({
678
678
  }, null) : typeof e == "function" ? e() : e : null, Tn = (e, t = "menuHeaderRender") => {
679
679
  const {
680
680
  logo: a,
681
- logoStyle: o,
682
- title: i,
681
+ logoStyle: i,
682
+ title: o,
683
683
  layout: d
684
- } = e, f = e[t || ""];
685
- if (f === !1)
684
+ } = e, g = e[t || ""];
685
+ if (g === !1)
686
686
  return null;
687
- const c = yt(a, o), w = i && n("h1", null, [i]);
688
- return typeof f == "function" ? f(c, e.collapsed ? null : w, e) : n(ee, null, [c || null, e.collapsed && d === "side" ? null : w]);
689
- }, Ke = /* @__PURE__ */ j({
687
+ const m = yt(a, i), w = o && n("h1", null, [o]);
688
+ return typeof g == "function" ? g(m, e.collapsed ? null : w, e) : n(Q, null, [m || null, e.collapsed && d === "side" ? null : w]);
689
+ }, Ae = /* @__PURE__ */ W({
690
690
  name: "LogoContent",
691
- props: se,
691
+ props: de,
692
692
  setup(e) {
693
693
  const {
694
694
  getPrefixCls: t
695
- } = te(), a = b(() => e.layout === "side" || e.layout === "simple"), o = b(() => t({
695
+ } = te(), a = b(() => e.layout === "side" || e.layout === "simple"), i = b(() => t({
696
696
  suffixCls: a.value || e.drawer ? "sider" : "global-header",
697
697
  isPor: !0
698
698
  })), {
699
- wrapSSR: i,
699
+ wrapSSR: o,
700
700
  hashId: d
701
- } = ne("ProLayoutLogo", [Fn]), f = b(() => Tn(e, e.renderKey));
702
- return () => i(n("div", {
701
+ } = ae("ProLayoutLogo", [Fn]), g = b(() => Tn(e, e.renderKey));
702
+ return () => o(n("div", {
703
703
  id: "logo",
704
704
  class: {
705
705
  [`${d.value}`]: !0,
706
- [`${o.value}-logo`]: !0,
707
- [`${o.value}-logo-collapsed`]: !!e.collapsed
706
+ [`${i.value}-logo`]: !0,
707
+ [`${i.value}-logo-collapsed`]: !!e.collapsed
708
708
  },
709
709
  onClick: () => {
710
- var c;
711
- return (c = e.onMenuHeaderClick) == null ? void 0 : c.call(e);
710
+ var m;
711
+ return (m = e.onMenuHeaderClick) == null ? void 0 : m.call(e);
712
712
  }
713
- }, [n("a", null, [f.value || null])]));
713
+ }, [n("a", null, [g.value || null])]));
714
714
  }
715
715
  });
716
- Ke.inheritAttrs = !1;
716
+ Ae.inheritAttrs = !1;
717
717
  function Pn(e) {
718
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
718
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
719
719
  }
720
720
  const {
721
721
  Sider: Ln
722
- } = me, {
722
+ } = fe, {
723
723
  Item: Ze
724
- } = oe, bt = (e) => e ? n(Kt, null, null) : n(At, null, null), Je = /* @__PURE__ */ j({
724
+ } = ie, bt = (e) => e ? n(Kt, null, null) : n(At, null, null), Je = /* @__PURE__ */ W({
725
725
  props: Z,
726
726
  inheritAttrs: !1,
727
727
  setup(e) {
728
728
  const {
729
729
  getPrefixCls: t,
730
730
  selectedKeys: a,
731
- flatMenuData: o,
732
- menuData: i,
731
+ flatMenuData: i,
732
+ menuData: o,
733
733
  openKeys: d
734
734
  } = te(), {
735
- indicator: f
736
- } = Le(), {
737
- token: c
738
- } = ge(), {
735
+ indicator: g
736
+ } = De(), {
737
+ token: m
738
+ } = he(), {
739
739
  theme: w,
740
740
  layout: p,
741
- isMobile: O,
741
+ isMobile: R,
742
742
  menuLoading: h,
743
- breakpoint: P,
743
+ breakpoint: F,
744
744
  fixSiderbar: l,
745
745
  collapsed: r,
746
746
  siderWidth: I,
747
747
  collapsedWidth: k,
748
748
  menuExtraRender: x,
749
749
  menuContentRender: y,
750
- menuFooterRender: g,
750
+ menuFooterRender: f,
751
751
  collapsedButtonRender: C,
752
752
  links: $
753
- } = Se(e), u = t({
753
+ } = Ie(e), u = t({
754
754
  suffixCls: "sider",
755
755
  isPor: !0
756
756
  }), {
757
757
  wrapSSR: S,
758
- hashId: R
759
- } = ne("ProLayoutSiderMenu", [kn, Bn, $n], u), M = b(() => e.layout === "wide"), L = b(() => e.layout === "mix" && !e.isMobile && e.splitMenus), H = b(() => p.value === "side" || p.value === "simple"), N = b(() => (e.layout === "mix" || M.value) && "light" || w.value), F = b(() => p.value === "top" ? [] : i.value), W = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), X = b(() => [R.value, u, O.value ? "shadow" : null, `${u}-${N.value}`, l.value && e.layout !== "wide" ? `${u}-fixed` : null]), U = b(() => {
758
+ hashId: M
759
+ } = ae("ProLayoutSiderMenu", [kn, Bn, $n], u), O = b(() => e.layout === "wide"), P = b(() => e.layout === "mix" && !e.isMobile && e.splitMenus), H = b(() => p.value === "side" || p.value === "simple"), N = b(() => (e.layout === "mix" || O.value) && "light" || w.value), D = b(() => p.value === "top" ? [] : o.value), V = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), Y = b(() => [M.value, u, R.value ? "shadow" : null, `${u}-${N.value}`, l.value && e.layout !== "wide" ? `${u}-fixed` : null]), _ = b(() => {
760
+ var c;
761
+ return typeof $.value == "function" ? (c = $.value) == null ? void 0 : c.call($) : $.value;
762
+ }), E = b(() => C.value !== !1 ? C.value || bt : !1), J = (c) => {
760
763
  var v;
761
- return typeof $.value == "function" ? (v = $.value) == null ? void 0 : v.call($) : $.value;
762
- }), Y = b(() => C.value !== !1 ? C.value || bt : !1), m = (v) => {
763
- var B;
764
764
  if (e.onSelect) {
765
- if (A(L)) {
766
- e.onSelect([(B = a == null ? void 0 : a.value) == null ? void 0 : B[0], ...v]);
765
+ if (U(P)) {
766
+ e.onSelect([(v = a == null ? void 0 : a.value) == null ? void 0 : v[0], ...c]);
767
767
  return;
768
768
  }
769
- e.onSelect(v);
769
+ e.onSelect(c);
770
770
  }
771
771
  };
772
772
  return () => {
773
- var z;
774
- const v = H.value ? n(Ke, q({
775
- drawer: O.value
776
- }, e), null) : null, B = x.value && ((z = x.value) == null ? void 0 : z.call(x, e)), T = n(gt, {
777
- class: `${u}-menu ${R.value}`,
773
+ var T;
774
+ const c = H.value ? n(Ae, G({
775
+ drawer: R.value
776
+ }, e), null) : null, v = x.value && ((T = x.value) == null ? void 0 : T.call(x, e)), B = n(gt, {
777
+ class: `${u}-menu ${M.value}`,
778
778
  theme: N.value,
779
779
  mode: "inline",
780
- menuData: L.value ? o.value : F.value,
780
+ menuData: P.value ? i.value : D.value,
781
781
  iconfontUrl: e.iconfontUrl,
782
782
  openKeys: d.value,
783
783
  selectedKeys: a.value,
@@ -787,13 +787,13 @@ const {
787
787
  style: {
788
788
  width: "100%"
789
789
  },
790
- onOpenKeys: (_) => {
791
- var J;
792
- return e.onOpenKeys && ((J = e.onOpenKeys) == null ? void 0 : J.call(e, _));
790
+ onOpenKeys: (z) => {
791
+ var q;
792
+ return e.onOpenKeys && ((q = e.onOpenKeys) == null ? void 0 : q.call(e, z));
793
793
  },
794
- onSelect: m
794
+ onSelect: J
795
795
  }, null);
796
- return L.value && A(o.value).length === 0 || F.value.length === 0 ? null : S(n(Te, {
796
+ return P.value && U(i.value).length === 0 || D.value.length === 0 ? null : S(n(Pe, {
797
797
  theme: {
798
798
  components: {
799
799
  Menu: ft({
@@ -802,92 +802,92 @@ const {
802
802
  colorActiveBarHeight: 0,
803
803
  colorActiveBarBorderSize: 0
804
804
  // 主题颜色
805
- }, (c == null ? void 0 : c.value) || {}, N.value, "sider")
805
+ }, (m == null ? void 0 : m.value) || {}, N.value, "sider")
806
806
  }
807
807
  }
808
808
  }, {
809
809
  default: () => [l.value && n("div", {
810
810
  style: {
811
- width: `${W.value}px`,
811
+ width: `${V.value}px`,
812
812
  overflow: "hidden",
813
- flex: `0 0 ${W.value}px`,
814
- maxWidth: `${W.value}px`,
815
- minWidth: `${W.value}px`,
813
+ flex: `0 0 ${V.value}px`,
814
+ maxWidth: `${V.value}px`,
815
+ minWidth: `${V.value}px`,
816
816
  transition: "background-color 0.2s, min-width 0.2s, max-width 0.2s"
817
817
  }
818
818
  }, null), n(Ln, {
819
819
  collapsible: !0,
820
820
  trigger: null,
821
- class: X.value,
821
+ class: Y.value,
822
822
  style: {
823
823
  overflow: "hidden",
824
824
  zIndex: l.value ? 101 : void 0,
825
- paddingTop: H.value || e.isMobile || M.value ? 0 : `${e.headerHeight}px`,
825
+ paddingTop: H.value || e.isMobile || O.value ? 0 : `${e.headerHeight}px`,
826
826
  top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
827
827
  height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
828
828
  },
829
829
  theme: N.value,
830
- breakpoint: P.value || void 0,
830
+ breakpoint: F.value || void 0,
831
831
  collapsed: r.value,
832
832
  width: I.value,
833
833
  collapsedWidth: k.value
834
834
  }, {
835
835
  default: () => {
836
- var _, J;
836
+ var z, q;
837
837
  return [h.value && n("div", {
838
- class: ["gx-pro-sider-loading", R.value]
839
- }, [n(xe, {
838
+ class: ["gx-pro-sider-loading", M.value]
839
+ }, [n(Ce, {
840
840
  spinning: h.value,
841
- indicator: f == null ? void 0 : f.value
842
- }, null)]), v || null, B && !e.collapsed && n("div", {
841
+ indicator: g == null ? void 0 : g.value
842
+ }, null)]), c || null, v && !e.collapsed && n("div", {
843
843
  class: {
844
- [`${R.value}`]: !0,
844
+ [`${M.value}`]: !0,
845
845
  [`${u}-extra`]: !0,
846
- [`${u}-extra-no-logo`]: !v
846
+ [`${u}-extra-no-logo`]: !c
847
847
  }
848
- }, [B]), n("div", {
848
+ }, [v]), n("div", {
849
849
  style: {
850
850
  flex: "1 1 0%",
851
851
  overflow: "hidden auto"
852
852
  }
853
- }, [y.value && ((_ = y.value) == null ? void 0 : _.call(y, e, T)) || T]), e.layout !== "wide" && n("div", {
854
- class: `${u}-links ${R.value}`
855
- }, [n(oe, {
853
+ }, [y.value && ((z = y.value) == null ? void 0 : z.call(y, e, B)) || B]), e.layout !== "wide" && n("div", {
854
+ class: `${u}-links ${M.value}`
855
+ }, [n(ie, {
856
856
  theme: N.value,
857
857
  inlineIndent: 16,
858
- class: `${u}-link-menu ${R.value}`,
858
+ class: `${u}-link-menu ${M.value}`,
859
859
  selectedKeys: [],
860
860
  openKeys: [],
861
861
  mode: "inline"
862
862
  }, {
863
- default: () => [(U.value || []).map((E, Q) => n(Ze, {
864
- class: `${u}-link ${R.value}`,
865
- key: Q
866
- }, Pn(E) ? E : {
867
- default: () => [E]
868
- })), Y.value && !O.value && n(Ze, {
869
- class: `${u}-collapsed-button ${R.value}`,
863
+ default: () => [(_.value || []).map((X, ne) => n(Ze, {
864
+ class: `${u}-link ${M.value}`,
865
+ key: ne
866
+ }, Pn(X) ? X : {
867
+ default: () => [X]
868
+ })), E.value && !R.value && n(Ze, {
869
+ class: `${u}-collapsed-button ${M.value}`,
870
870
  title: !1,
871
871
  key: "collapsed",
872
872
  onClick: () => {
873
- var E;
874
- e.onCollapse && ((E = e.onCollapse) == null || E.call(e, !r.value));
873
+ var X;
874
+ e.onCollapse && ((X = e.onCollapse) == null || X.call(e, !r.value));
875
875
  }
876
876
  }, {
877
877
  default: () => {
878
- var E;
879
- return [(E = Y.value) == null ? void 0 : E.call(Y, r.value)];
878
+ var X;
879
+ return [(X = E.value) == null ? void 0 : X.call(E, r.value)];
880
880
  }
881
881
  })]
882
- })]), g.value && n("div", {
883
- class: `${u}-footer ${R.value}`
884
- }, [(J = g.value) == null ? void 0 : J.call(g, e)])];
882
+ })]), f.value && n("div", {
883
+ class: `${u}-footer ${M.value}`
884
+ }, [(q = f.value) == null ? void 0 : q.call(f, e)])];
885
885
  }
886
886
  })]
887
887
  }));
888
888
  };
889
889
  }
890
- }), ke = /* @__PURE__ */ j({
890
+ }), Be = /* @__PURE__ */ W({
891
891
  name: "SiderMenuWrapper",
892
892
  inheritAttrs: !1,
893
893
  props: {
@@ -898,7 +898,7 @@ const {
898
898
  }
899
899
  },
900
900
  setup(e) {
901
- return () => n(ee, null, [e.isMobile ? n(pe, {
901
+ return () => n(Q, null, [e.isMobile ? n(ve, {
902
902
  maskClosable: !0,
903
903
  open: !e.collapsed,
904
904
  closable: !1,
@@ -917,7 +917,7 @@ const {
917
917
  flexDirection: "row"
918
918
  }
919
919
  }, {
920
- default: () => [n(Je, q(e, {
920
+ default: () => [n(Je, G(e, {
921
921
  collapsed: e.isMobile ? !1 : e.collapsed
922
922
  }), null)]
923
923
  }) : n(Je, e, null)]);
@@ -929,18 +929,18 @@ const {
929
929
  }
930
930
  },
931
931
  pageCardProps: Object,
932
- pageContentStyle: D.style,
933
- pageChildrenContentStyle: D.style,
932
+ pageContentStyle: L.style,
933
+ pageChildrenContentStyle: L.style,
934
934
  waterMarkProps: {
935
935
  type: Object
936
936
  },
937
- waterMark: D.bool.def(!0),
937
+ waterMark: L.bool.def(!0),
938
938
  pageHeaderRender: {
939
939
  type: [Object, Function, Boolean],
940
940
  default: () => {
941
941
  }
942
942
  }
943
- }, we = {
943
+ }, Se = {
944
944
  pageChildrenExtraRender: {
945
945
  type: [Object, Function, Boolean],
946
946
  default: () => {
@@ -956,8 +956,8 @@ const {
956
956
  default: () => {
957
957
  }
958
958
  },
959
- pageHeaderStyle: D.style,
960
- loading: D.bool.def(!1),
959
+ pageHeaderStyle: L.style,
960
+ loading: L.bool.def(!1),
961
961
  ...pt
962
962
  }, Dn = (e) => ({
963
963
  [e.componentCls]: {
@@ -970,27 +970,27 @@ const {
970
970
  marginTop: "8px"
971
971
  }
972
972
  }
973
- }), Nn = /* @__PURE__ */ j({
973
+ }), Nn = /* @__PURE__ */ W({
974
974
  name: "ProPageHeader",
975
975
  props: {
976
- content: we.contentRender,
977
- breadcrumb: we.breadcrumbRender
976
+ content: Se.contentRender,
977
+ breadcrumb: Se.breadcrumbRender
978
978
  },
979
979
  setup(e) {
980
980
  const {
981
981
  breadcrumb: t,
982
982
  getPrefixCls: a
983
- } = te(), o = a({
983
+ } = te(), i = a({
984
984
  isPor: !0,
985
985
  suffixCls: "page-header"
986
986
  }), {
987
- wrapSSR: i,
987
+ wrapSSR: o,
988
988
  hashId: d
989
- } = ne("ProPageHeader", [Dn], o), f = b(() => {
990
- var c;
989
+ } = ae("ProPageHeader", [Dn], i), g = b(() => {
990
+ var m;
991
991
  return {
992
992
  ...t.value,
993
- itemRender: ((c = t.value) == null ? void 0 : c.itemRender) || (({
993
+ itemRender: ((m = t.value) == null ? void 0 : m.itemRender) || (({
994
994
  route: w
995
995
  }) => w.path ? n(jt, {
996
996
  to: w.path
@@ -1000,21 +1000,21 @@ const {
1000
1000
  };
1001
1001
  });
1002
1002
  return () => {
1003
- var c, w;
1004
- return i(n("div", {
1005
- class: [`${o}`, d.value, `${o}-has-breadcrumb`]
1006
- }, [e.breadcrumb ? (c = e.breadcrumb) == null ? void 0 : c.call(e, f.value) : n(Pt, f.value, null), e.content && n("div", {
1007
- class: [`${o}-content`, d.value]
1003
+ var m, w;
1004
+ return o(n("div", {
1005
+ class: [`${i}`, d.value, `${i}-has-breadcrumb`]
1006
+ }, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, g.value) : n(Pt, g.value, null), e.content && n("div", {
1007
+ class: [`${i}-content`, d.value]
1008
1008
  }, [(w = e.content) == null ? void 0 : w.call(e)])]));
1009
1009
  };
1010
1010
  }
1011
1011
  }), zn = (e) => {
1012
- var t, a, o, i, d, f, c, w;
1012
+ var t, a, i, o, d, g, m, w;
1013
1013
  return {
1014
1014
  [`${e.proComponentsCls}-basic-layout`]: {
1015
1015
  [e.componentCls]: {
1016
1016
  marginInline: -(((a = (t = e.layout) == null ? void 0 : t.pageContainer) == null ? void 0 : a.paddingBlockPageContainerContent) ?? 24),
1017
- marginBlockStart: -(((i = (o = e.layout) == null ? void 0 : o.pageContainer) == null ? void 0 : i.paddingBlockPageContainerContent) ?? 24)
1017
+ marginBlockStart: -(((o = (i = e.layout) == null ? void 0 : i.pageContainer) == null ? void 0 : o.paddingBlockPageContainerContent) ?? 24)
1018
1018
  },
1019
1019
  [e.gridContent]: {
1020
1020
  width: "100%"
@@ -1022,85 +1022,85 @@ const {
1022
1022
  },
1023
1023
  [e.componentCls]: {
1024
1024
  "&-children-content": {
1025
- marginInline: ((f = (d = e.layout) == null ? void 0 : d.pageContainer) == null ? void 0 : f.marginInlinePageContainerContent) ?? 24,
1026
- marginBlockStart: ((w = (c = e.layout) == null ? void 0 : c.pageContainer) == null ? void 0 : w.marginBlockPageContainerContent) ?? 24,
1025
+ marginInline: ((g = (d = e.layout) == null ? void 0 : d.pageContainer) == null ? void 0 : g.marginInlinePageContainerContent) ?? 24,
1026
+ marginBlockStart: ((w = (m = e.layout) == null ? void 0 : m.pageContainer) == null ? void 0 : w.marginBlockPageContainerContent) ?? 24,
1027
1027
  padding: "inherit"
1028
1028
  }
1029
1029
  }
1030
1030
  };
1031
1031
  };
1032
1032
  function Hn(e) {
1033
- return Ne("ProPageContainter", (t) => {
1034
- const a = ze(t, {
1033
+ return ze("ProPageContainter", (t) => {
1034
+ const a = He(t, {
1035
1035
  gridContent: `${t.proComponentsCls}-grid-content`
1036
1036
  });
1037
1037
  return [zn(a)];
1038
1038
  }, e);
1039
1039
  }
1040
1040
  function Vn(e) {
1041
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
1041
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
1042
1042
  }
1043
- const Mi = /* @__PURE__ */ j({
1043
+ const Mi = /* @__PURE__ */ W({
1044
1044
  inheritAttrs: !1,
1045
1045
  name: "GProPageContainer",
1046
- props: we,
1046
+ props: Se,
1047
1047
  setup(e, {
1048
1048
  slots: t,
1049
1049
  attrs: a
1050
1050
  }) {
1051
1051
  const {
1052
- getPrefixCls: o,
1053
- hasContentWide: i,
1052
+ getPrefixCls: i,
1053
+ hasContentWide: o,
1054
1054
  waterMark: d,
1055
- pageHeaderRender: f,
1056
- pageContentStyle: c,
1055
+ pageHeaderRender: g,
1056
+ pageContentStyle: m,
1057
1057
  pageChildrenContentStyle: w,
1058
1058
  pageCardProps: p,
1059
- usePageCard: O,
1059
+ usePageCard: R,
1060
1060
  waterMarkProps: h
1061
1061
  } = te(), {
1062
- indicator: P
1063
- } = Le(), l = ge(), r = o({
1062
+ indicator: F
1063
+ } = De(), l = he(), r = i({
1064
1064
  suffixCls: "page-container",
1065
1065
  isPor: !0
1066
- }), I = o({
1066
+ }), I = i({
1067
1067
  suffixCls: "grid-content",
1068
1068
  isPor: !0
1069
- }), k = b(() => e.pageCardProps || p.value), x = b(() => e.waterMarkProps || h.value || {}), y = b(() => e.pageContentStyle || c.value), g = b(() => e.pageChildrenContentStyle || w.value || {}), C = b(() => _e(e.usePageCard) ? e.usePageCard : _e(O.value) ? O.value : !0), {
1069
+ }), k = b(() => e.pageCardProps || p.value), x = b(() => e.waterMarkProps || h.value || {}), y = b(() => e.pageContentStyle || m.value), f = b(() => e.pageChildrenContentStyle || w.value || {}), C = b(() => _e(e.usePageCard) ? e.usePageCard : _e(R.value) ? R.value : !0), {
1070
1070
  wrapSSR: $,
1071
1071
  hashId: u
1072
1072
  } = Hn(r), S = () => {
1073
- var L, H, N, F, W, X;
1074
- const M = K(t, e, "pageChildrenExtraRender");
1073
+ var P, H, N, D, V, Y;
1074
+ const O = K(t, e, "pageChildrenExtraRender");
1075
1075
  return n("div", {
1076
1076
  class: `${r}-children-content ${u.value}`,
1077
- style: g.value
1078
- }, [M && (M == null ? void 0 : M()), C.value ? n(Lt, q(k.value ? re(k.value, ["loading", "bodyStyle"]) : {}, {
1079
- style: i.value ? {
1077
+ style: f.value
1078
+ }, [O && (O == null ? void 0 : O()), C.value ? n(Lt, G(k.value ? se(k.value, ["loading", "bodyStyle"]) : {}, {
1079
+ style: o.value ? {
1080
1080
  minHeight: "853px"
1081
1081
  } : void 0,
1082
1082
  bordered: !1
1083
1083
  }), {
1084
1084
  default: () => {
1085
- var U;
1086
- return [(U = t.default) == null ? void 0 : U.call(t)];
1085
+ var _;
1086
+ return [(_ = t.default) == null ? void 0 : _.call(t)];
1087
1087
  }
1088
- }) : M ? n("div", {
1088
+ }) : O ? n("div", {
1089
1089
  style: {
1090
- marginBlockStart: `${(F = (N = (H = (L = l == null ? void 0 : l.token) == null ? void 0 : L.value) == null ? void 0 : H.layout) == null ? void 0 : N.pageContainer) == null ? void 0 : F.marginBlockPageContainerContent}px`
1090
+ marginBlockStart: `${(D = (N = (H = (P = l == null ? void 0 : l.token) == null ? void 0 : P.value) == null ? void 0 : H.layout) == null ? void 0 : N.pageContainer) == null ? void 0 : D.marginBlockPageContainerContent}px`
1091
1091
  }
1092
- }, [(W = t.default) == null ? void 0 : W.call(t)]) : (X = t.default) == null ? void 0 : X.call(t)]);
1093
- }, R = () => {
1094
- let M;
1095
- return n(ee, null, [e.waterMark && d.value ? n(Qt, x.value, Vn(M = S()) ? M : {
1096
- default: () => [M]
1092
+ }, [(V = t.default) == null ? void 0 : V.call(t)]) : (Y = t.default) == null ? void 0 : Y.call(t)]);
1093
+ }, M = () => {
1094
+ let O;
1095
+ return n(Q, null, [e.waterMark && d.value ? n(Qt, x.value, Vn(O = S()) ? O : {
1096
+ default: () => [O]
1097
1097
  }) : S()]);
1098
1098
  };
1099
1099
  return () => {
1100
- const M = K(t, e, "pageHeaderRender") || f.value, L = K(t, e, "breadcrumbRender"), H = K(t, e, "contentRender");
1101
- return $(n(xe, {
1100
+ const O = K(t, e, "pageHeaderRender") || g.value, P = K(t, e, "breadcrumbRender"), H = K(t, e, "contentRender");
1101
+ return $(n(Ce, {
1102
1102
  spinning: e.loading,
1103
- indicator: P == null ? void 0 : P.value
1103
+ indicator: F == null ? void 0 : F.value
1104
1104
  }, {
1105
1105
  default: () => [n("div", {
1106
1106
  style: a.style,
@@ -1108,25 +1108,25 @@ const Mi = /* @__PURE__ */ j({
1108
1108
  [`${u.value}`]: !0,
1109
1109
  [`${r}`]: !0
1110
1110
  }
1111
- }, [!i.value && M !== !1 && (M || n(Nn, {
1111
+ }, [!o.value && O !== !1 && (O || n(Nn, {
1112
1112
  style: e.pageHeaderStyle,
1113
- breadcrumb: L,
1113
+ breadcrumb: P,
1114
1114
  content: H
1115
1115
  }, null)), n("div", {
1116
1116
  class: [I, u.value]
1117
1117
  }, [n("div", {
1118
1118
  class: `${I}-children ${u.value}`,
1119
1119
  style: y.value
1120
- }, [R()])])])]
1120
+ }, [M()])])])]
1121
1121
  }));
1122
1122
  };
1123
1123
  }
1124
- }), Ae = {
1125
- ...de,
1126
- ...Me,
1127
- logo: se.logo,
1128
- logoStyle: se.logoStyle,
1129
- logoDirection: se.logoDirection,
1124
+ }), Ue = {
1125
+ ...ue,
1126
+ ...Oe,
1127
+ logo: de.logo,
1128
+ logoStyle: de.logoStyle,
1129
+ logoDirection: de.logoDirection,
1130
1130
  menuLoading: Boolean,
1131
1131
  autoHideHeader: Boolean,
1132
1132
  collapsed: Boolean,
@@ -1162,7 +1162,7 @@ const Mi = /* @__PURE__ */ j({
1162
1162
  onMenuHeaderClick: Function,
1163
1163
  onSelect: Z.onSelect
1164
1164
  }, vt = {
1165
- ...Ae,
1165
+ ...Ue,
1166
1166
  headerTitleRender: {
1167
1167
  type: [Object, Function],
1168
1168
  default: () => {
@@ -1182,12 +1182,12 @@ const Mi = /* @__PURE__ */ j({
1182
1182
  collapsedWidth: Z.collapsedWidth,
1183
1183
  siderWidth: Z.siderWidth
1184
1184
  }, xt = {
1185
- loading: D.looseBool,
1185
+ loading: L.looseBool,
1186
1186
  isMobile: Z.isMobile,
1187
- collapsed: Me.collapsed,
1187
+ collapsed: Oe.collapsed,
1188
1188
  siderWidth: Z.siderWidth,
1189
1189
  collapsedWidth: Z.collapsedWidth,
1190
- isFixedMultiTab: de.fixedMultiTab,
1190
+ isFixedMultiTab: ue.fixedMultiTab,
1191
1191
  onReloadPage: {
1192
1192
  type: Function
1193
1193
  },
@@ -1243,7 +1243,7 @@ const Mi = /* @__PURE__ */ j({
1243
1243
  title: "Ant Design Vue",
1244
1244
  href: "https://next.antdv.com/components/overview-cn/",
1245
1245
  blankTarget: !0
1246
- }], Be = /* @__PURE__ */ j({
1246
+ }], $e = /* @__PURE__ */ W({
1247
1247
  name: "GlobalFooter",
1248
1248
  props: {
1249
1249
  links: {
@@ -1256,41 +1256,41 @@ const Mi = /* @__PURE__ */ j({
1256
1256
  }
1257
1257
  },
1258
1258
  setup(e) {
1259
- const t = fe({
1259
+ const t = ge({
1260
1260
  suffixCls: "global-footer",
1261
1261
  isPor: !0
1262
1262
  }), {
1263
1263
  wrapSSR: a,
1264
- hashId: o
1265
- } = ne("ProLayoutFooter", [jn], t);
1264
+ hashId: i
1265
+ } = ae("ProLayoutFooter", [jn], t);
1266
1266
  return () => a(n(Dt, {
1267
1267
  style: {
1268
1268
  padding: 0
1269
1269
  }
1270
1270
  }, {
1271
1271
  default: () => [n("div", {
1272
- class: [t, o.value]
1272
+ class: [t, i.value]
1273
1273
  }, [e.links && n("div", {
1274
- class: `${t}-links ${o.value}`
1275
- }, [e.links.map((i) => n("a", {
1276
- key: i.key,
1277
- title: i.key,
1278
- target: i.blankTarget ? "_blank" : "_self",
1279
- href: i.href
1280
- }, [i.title]))]), e.copyright && n("div", {
1281
- class: `${t}-copyright ${o.value}`
1282
- }, [ae("Copyright  2022  "), n("a", {
1274
+ class: `${t}-links ${i.value}`
1275
+ }, [e.links.map((o) => n("a", {
1276
+ key: o.key,
1277
+ title: o.key,
1278
+ target: o.blankTarget ? "_blank" : "_self",
1279
+ href: o.href
1280
+ }, [o.title]))]), e.copyright && n("div", {
1281
+ class: `${t}-copyright ${i.value}`
1282
+ }, [oe("Copyright  2022  "), n("a", {
1283
1283
  href: "https://beian.miit.gov.cn/"
1284
1284
  }, [e.copyright])])])]
1285
1285
  }));
1286
1286
  }
1287
1287
  }), wt = {
1288
- ...de,
1289
- ...Ae,
1288
+ ...ue,
1289
+ ...Ue,
1290
1290
  ...Z,
1291
1291
  ...vt,
1292
1292
  ...xt,
1293
- ...we,
1293
+ ...Se,
1294
1294
  pure: Boolean,
1295
1295
  token: Object,
1296
1296
  waterMark: {
@@ -1312,9 +1312,9 @@ const Mi = /* @__PURE__ */ j({
1312
1312
  type: [Object, Function],
1313
1313
  default: () => null
1314
1314
  },
1315
- disableContentMargin: D.looseBool,
1316
- isChildrenLayout: D.looseBool,
1317
- loading: D.looseBool,
1315
+ disableContentMargin: L.looseBool,
1316
+ isChildrenLayout: L.looseBool,
1317
+ loading: L.looseBool,
1318
1318
  footerLinks: {
1319
1319
  type: [Array, Boolean],
1320
1320
  default: Ct
@@ -1337,7 +1337,7 @@ const Mi = /* @__PURE__ */ j({
1337
1337
  type: Array,
1338
1338
  default: () => []
1339
1339
  },
1340
- collapsed: D.looseBool
1340
+ collapsed: L.looseBool
1341
1341
  }, Wn = (e) => ({
1342
1342
  [e.componentCls]: {
1343
1343
  display: "flex",
@@ -1418,7 +1418,7 @@ const Mi = /* @__PURE__ */ j({
1418
1418
  "&-fixed": {
1419
1419
  position: "fixed",
1420
1420
  height: 62,
1421
- top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) || V.headerHeight,
1421
+ top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) || j.headerHeight,
1422
1422
  right: 0,
1423
1423
  zIndex: 9,
1424
1424
  transition: "width .2s"
@@ -1427,8 +1427,8 @@ const Mi = /* @__PURE__ */ j({
1427
1427
  };
1428
1428
  };
1429
1429
  function Un(e) {
1430
- return Ne("ProMultiTabs", (t) => {
1431
- const a = ze(t, {
1430
+ return ze("ProMultiTabs", (t) => {
1431
+ const a = He(t, {
1432
1432
  componentWrapCls: `${t.componentCls}-wrap`
1433
1433
  });
1434
1434
  return [An(a)];
@@ -1453,13 +1453,13 @@ const En = [
1453
1453
  }
1454
1454
  ];
1455
1455
  function Xn(e) {
1456
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
1456
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
1457
1457
  }
1458
- function G(e) {
1458
+ function A(e) {
1459
1459
  var t;
1460
1460
  return ((t = e == null ? void 0 : e.meta) == null ? void 0 : t.currenFulltPath) || e.fullPath || e.path;
1461
1461
  }
1462
- const Yn = Pe.TabPane, _n = oe.Item, Gn = /* @__PURE__ */ j({
1462
+ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
1463
1463
  props: {
1464
1464
  ...xt,
1465
1465
  visible: {
@@ -1472,37 +1472,37 @@ const Yn = Pe.TabPane, _n = oe.Item, Gn = /* @__PURE__ */ j({
1472
1472
  const {
1473
1473
  isMobile: t,
1474
1474
  isFixedMultiTab: a
1475
- } = Se(e), o = Re(!1), i = rt({
1475
+ } = Ie(e), i = ke(!1), o = rt({
1476
1476
  activeKey: "",
1477
1477
  contextMenuActiveKey: ""
1478
- }), d = De(), {
1479
- menuData: f,
1480
- flatMenuData: c,
1478
+ }), d = Ne(), {
1479
+ menuData: g,
1480
+ flatMenuData: m,
1481
1481
  layout: w,
1482
1482
  splitMenus: p,
1483
- getPrefixCls: O
1484
- } = te(), h = O({
1483
+ getPrefixCls: R
1484
+ } = te(), h = R({
1485
1485
  isPor: !0,
1486
1486
  suffixCls: "multi-tab"
1487
1487
  }), {
1488
- wrapSSR: P,
1488
+ wrapSSR: F,
1489
1489
  hashId: l
1490
- } = Un(h), r = Re([]);
1491
- ce(r, () => {
1492
- var m;
1493
- (m = e.onChangeTabs) == null || m.call(e, He(A(r)));
1490
+ } = Un(h), r = ke([]);
1491
+ me(r, () => {
1492
+ var c;
1493
+ (c = e.onChangeTabs) == null || c.call(e, Ve(U(r)));
1494
1494
  }, {
1495
1495
  deep: !0
1496
1496
  });
1497
- const I = b(() => w.value === "mix" && !e.isMobile && p.value), k = b(() => G(d.currentRoute.value)), x = b(() => a.value && !t.value), y = b(() => {
1498
- const m = !(I.value && A(c.value).length === 0 || f.value.length === 0 || w.value === "top");
1499
- return x.value && m ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
1500
- }), g = b(() => ct(`${h}-wrap`, {
1497
+ const I = b(() => w.value === "mix" && !e.isMobile && p.value), k = b(() => A(d.currentRoute.value)), x = b(() => a.value && !t.value), y = b(() => {
1498
+ const c = !(I.value && U(m.value).length === 0 || g.value.length === 0 || w.value === "top");
1499
+ return x.value && c ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
1500
+ }), f = b(() => ct(`${h}-wrap`, {
1501
1501
  [`${l.value}`]: !0,
1502
1502
  [`${h}-wrap-fixed`]: e.isFixedMultiTab,
1503
1503
  [`${h}-wrap-loading`]: e.loading
1504
1504
  })), C = b(() => {
1505
- const m = {
1505
+ const c = {
1506
1506
  display: e.visible ? void 0 : "none"
1507
1507
  };
1508
1508
  return e.isFixedMultiTab ? {
@@ -1510,169 +1510,177 @@ const Yn = Pe.TabPane, _n = oe.Item, Gn = /* @__PURE__ */ j({
1510
1510
  width: y.value,
1511
1511
  paddingTop: "6px",
1512
1512
  zIndex: 99,
1513
- ...m
1514
- } : m;
1515
- }), $ = (m) => G(m) === k.value, u = (m) => {
1516
- if (m.name && m.meta && m.meta.tagHidden !== !0) {
1517
- const v = G(m), B = r.value.find((z) => G(z) === v), T = {
1518
- path: m.path,
1513
+ ...c
1514
+ } : c;
1515
+ }), $ = (c) => A(c) === k.value, u = (c) => {
1516
+ if (c.name && c.meta && c.meta.tagHidden !== !0) {
1517
+ const v = A(c), B = r.value.find((z) => A(z) === v), T = {
1518
+ path: c.path,
1519
1519
  fullPath: v,
1520
- query: m.query,
1521
- params: m.params,
1522
- name: m.name,
1520
+ query: c.query,
1521
+ params: c.params,
1522
+ name: c.name,
1523
1523
  meta: {
1524
- ...m.meta
1524
+ ...c.meta,
1525
+ originTagPath: c.fullPath
1525
1526
  }
1526
1527
  };
1527
- B ? Object.assign(B, T) : m.meta.tagFixed ? r.value.unshift(T) : r.value.push(T), $(m) && (i.activeKey = v);
1528
+ B ? Object.assign(B, T) : c.meta.tagFixed ? r.value.unshift(T) : r.value.push(T), $(c) && (o.activeKey = v);
1528
1529
  }
1529
- }, S = (m) => {
1530
- m.forEach((v) => {
1530
+ }, S = (c) => {
1531
+ c.forEach((v) => {
1531
1532
  v.meta && v.meta.tagFixed && u(v), v.children && S(v.children);
1532
1533
  });
1533
1534
  };
1534
- ce(() => f.value, (m) => {
1535
- S(m);
1535
+ me(() => g.value, (c) => {
1536
+ S(c);
1536
1537
  }, {
1537
1538
  deep: !0,
1538
1539
  immediate: !0
1539
- }), ce(() => d.currentRoute.value, (m) => {
1540
- u(m);
1540
+ }), me(() => d.currentRoute.value, (c) => {
1541
+ u(c);
1541
1542
  }, {
1542
1543
  deep: !0,
1543
1544
  immediate: !0
1544
1545
  });
1545
- const R = () => {
1546
- const m = r.value.slice(-1)[0];
1547
- m ? d.push(m) : d.push("/");
1548
- }, M = async (m) => {
1549
- const v = r.value.find((B) => m === G(B));
1550
- r.value = r.value.filter((B) => G(B) !== m), v && $(v) && R();
1551
- }, L = (m) => {
1552
- const v = r.value.find((B) => G(B) === m);
1553
- v && i.activeKey !== G(v) && v.fullPath && d.push(v.fullPath);
1554
- }, H = () => {
1555
- var m;
1556
- o.value = !0, e.onReloadPage && ((m = e.onReloadPage) == null || m.call(e)), setTimeout(() => {
1557
- o.value = !1;
1546
+ const M = (c) => {
1547
+ var v, B;
1548
+ return ((B = (v = r.value.find((T) => (c || o.activeKey) === A(T))) == null ? void 0 : v.meta) == null ? void 0 : B.originTagPath) || c || o.activeKey;
1549
+ }, O = () => {
1550
+ const c = r.value.slice(-1)[0];
1551
+ c ? d.push({
1552
+ path: M(A(c))
1553
+ }) : d.push("/");
1554
+ }, P = async (c) => {
1555
+ const v = r.value.find((B) => c === A(B));
1556
+ r.value = r.value.filter((B) => A(B) !== c), v && $(v) && O();
1557
+ }, H = (c) => {
1558
+ const v = r.value.find((B) => A(B) === c);
1559
+ v && o.activeKey !== A(v) && d.push({
1560
+ path: M(A(v))
1561
+ });
1562
+ }, N = () => {
1563
+ var c;
1564
+ i.value = !0, e.onReloadPage && ((c = e.onReloadPage) == null || c.call(e)), setTimeout(() => {
1565
+ i.value = !1;
1558
1566
  }, 500);
1559
- }, N = (m) => m.meta && m.meta.tagFixed, F = (m) => i[m], W = (m, v) => {
1560
- const B = r.value.findIndex((T) => G(T) === F(v));
1561
- switch (m) {
1567
+ }, D = (c) => c.meta && c.meta.tagFixed, V = (c) => o[c], Y = (c, v) => {
1568
+ const B = r.value.findIndex((T) => A(T) === V(v));
1569
+ switch (c) {
1562
1570
  case "closeOthersTabs":
1563
1571
  r.value = r.value.filter((T) => {
1564
1572
  var z;
1565
- return G(T) === F(v) || ((z = T.meta) == null ? void 0 : z.tagFixed);
1573
+ return A(T) === V(v) || ((z = T.meta) == null ? void 0 : z.tagFixed);
1566
1574
  });
1567
1575
  break;
1568
1576
  case "closeLeftTabs":
1569
1577
  B && (r.value = r.value.filter((T, z) => {
1570
- var _;
1571
- return z >= B || ((_ = T.meta) == null ? void 0 : _.tagFixed);
1578
+ var q;
1579
+ return z >= B || ((q = T.meta) == null ? void 0 : q.tagFixed);
1572
1580
  }));
1573
1581
  break;
1574
1582
  case "closeRightTabs":
1575
1583
  B && (r.value = r.value.filter((T, z) => {
1576
- var _;
1577
- return z <= B || ((_ = T.meta) == null ? void 0 : _.tagFixed);
1584
+ var q;
1585
+ return z <= B || ((q = T.meta) == null ? void 0 : q.tagFixed);
1578
1586
  }));
1579
1587
  break;
1580
1588
  case "reloadPage":
1581
- (B === 0 || B) && i.activeKey === F(v) && H();
1589
+ (B === 0 || B) && o.activeKey === V(v) && N();
1582
1590
  break;
1583
1591
  }
1584
- i.activeKey !== F(v) && d.push(F(v));
1585
- }, X = (m, v) => {
1586
- const B = r.value.findIndex((T) => G(T) === v);
1587
- switch (m) {
1592
+ o.activeKey !== V(v) && d.push(M(V(v)));
1593
+ }, _ = (c, v) => {
1594
+ const B = r.value.findIndex((T) => A(T) === v);
1595
+ switch (c) {
1588
1596
  case "closeOthersTabs":
1589
- return r.value.filter((J, E) => {
1590
- var Q;
1591
- return E !== B && !((Q = J.meta) != null && Q.tagFixed);
1597
+ return r.value.filter((X, ne) => {
1598
+ var ee;
1599
+ return ne !== B && !((ee = X.meta) != null && ee.tagFixed);
1592
1600
  }).length === 0;
1593
1601
  case "closeLeftTabs":
1594
- return r.value.filter((J, E) => {
1595
- var Q;
1596
- return E < B && !((Q = J.meta) != null && Q.tagFixed);
1602
+ return r.value.filter((X, ne) => {
1603
+ var ee;
1604
+ return ne < B && !((ee = X.meta) != null && ee.tagFixed);
1597
1605
  }).length === 0;
1598
1606
  case "closeRightTabs":
1599
- return r.value.filter((J, E) => {
1600
- var Q;
1601
- return E > B && !((Q = J.meta) != null && Q.tagFixed);
1607
+ return r.value.filter((X, ne) => {
1608
+ var ee;
1609
+ return ne > B && !((ee = X.meta) != null && ee.tagFixed);
1602
1610
  }).length === 0;
1603
1611
  }
1604
- }, U = (m) => {
1612
+ }, E = (c) => {
1605
1613
  let v;
1606
1614
  const {
1607
1615
  path: B,
1608
1616
  stateType: T
1609
- } = m;
1610
- return n(oe, {
1617
+ } = c;
1618
+ return n(ie, {
1611
1619
  selectedKeys: [],
1612
1620
  onClick: ({
1613
1621
  key: z
1614
- }) => W(z, T)
1622
+ }) => Y(z, T)
1615
1623
  }, Xn(v = En.map((z) => n(_n, {
1616
1624
  key: z.key,
1617
- disabled: X(z.key, B)
1625
+ disabled: _(z.key, B)
1618
1626
  }, {
1619
1627
  default: () => [z.label]
1620
1628
  }))) ? v : {
1621
1629
  default: () => [v]
1622
1630
  });
1623
- }, Y = (m) => {
1631
+ }, J = (c) => {
1624
1632
  const {
1625
1633
  router: v
1626
- } = m;
1634
+ } = c;
1627
1635
  return n(Ye, {
1628
1636
  trigger: "contextmenu",
1629
- overlay: n(U, {
1630
- path: G(v) || "",
1637
+ overlay: n(E, {
1638
+ path: A(v) || "",
1631
1639
  stateType: "contextMenuActiveKey"
1632
1640
  }, null),
1633
1641
  onOpenChange: (B) => {
1634
- i.contextMenuActiveKey = B && G(v) || "";
1642
+ o.contextMenuActiveKey = B && A(v) || "";
1635
1643
  }
1636
1644
  }, {
1637
1645
  default: () => {
1638
1646
  var B;
1639
1647
  return [n("div", {
1640
1648
  class: [`${h}-title`, l.value]
1641
- }, [(B = v.meta) == null ? void 0 : B.title, i.activeKey === G(v) && n(Xt, {
1649
+ }, [(B = v.meta) == null ? void 0 : B.title, o.activeKey === A(v) && n(Xt, {
1642
1650
  class: [`${h}-reload-btn`, l.value],
1643
- spin: o.value,
1651
+ spin: i.value,
1644
1652
  onClick: (T) => {
1645
- T.stopPropagation(), !o.value && H();
1653
+ T.stopPropagation(), !i.value && N();
1646
1654
  }
1647
- }, null), r.value.length > 1 && !N(v) && n(dt, {
1655
+ }, null), r.value.length > 1 && !D(v) && n(dt, {
1648
1656
  class: [`${h}-close-btn`, l.value],
1649
1657
  onClick: (T) => {
1650
- T.stopPropagation(), !o.value && M(G(v) || "");
1658
+ T.stopPropagation(), !i.value && P(A(v) || "");
1651
1659
  }
1652
1660
  }, null)])];
1653
1661
  }
1654
1662
  });
1655
1663
  };
1656
- return () => P(n(ee, null, [!!e.isFixedMultiTab && Bt(n("div", {
1664
+ return () => F(n(Q, null, [!!e.isFixedMultiTab && Bt(n("div", {
1657
1665
  class: [`${h}-fixed`, l.value]
1658
- }, null), [[$t, e.visible]]), n(Pe, {
1666
+ }, null), [[$t, e.visible]]), n(Le, {
1659
1667
  hideAdd: !0,
1660
1668
  type: "editable-card",
1661
1669
  style: C.value,
1662
- class: g.value,
1663
- activeKey: i.activeKey,
1664
- onTabClick: L
1670
+ class: f.value,
1671
+ activeKey: o.activeKey,
1672
+ onTabClick: H
1665
1673
  }, {
1666
- default: () => [r.value.map((m) => n(Yn, {
1667
- key: G(m),
1674
+ default: () => [r.value.map((c) => n(Yn, {
1675
+ key: A(c),
1668
1676
  closable: !1,
1669
- tab: n(Y, {
1670
- router: m
1677
+ tab: n(J, {
1678
+ router: c
1671
1679
  }, null)
1672
1680
  }, null))],
1673
1681
  rightExtra: () => n(Ye, {
1674
- overlay: n(U, {
1675
- path: i.activeKey,
1682
+ overlay: n(E, {
1683
+ path: o.activeKey,
1676
1684
  stateType: "activeKey"
1677
1685
  }, null)
1678
1686
  }, {
@@ -1685,22 +1693,22 @@ const Yn = Pe.TabPane, _n = oe.Item, Gn = /* @__PURE__ */ j({
1685
1693
  }
1686
1694
  }), {
1687
1695
  Content: qn
1688
- } = me, Ue = (e, {
1696
+ } = fe, Ee = (e, {
1689
1697
  slots: t,
1690
1698
  attrs: a
1691
1699
  }) => {
1692
1700
  var I;
1693
1701
  const {
1694
- hashId: o,
1695
- prefixCls: i,
1702
+ hashId: i,
1703
+ prefixCls: o,
1696
1704
  isMobile: d,
1697
- loading: f,
1698
- collapsed: c,
1705
+ loading: g,
1706
+ collapsed: m,
1699
1707
  siderWidth: w,
1700
1708
  isShowTabsBar: p,
1701
- isFixedMultiTab: O,
1709
+ isFixedMultiTab: R,
1702
1710
  onReloadPage: h,
1703
- onChangeTabs: P
1711
+ onChangeTabs: F
1704
1712
  } = e;
1705
1713
  if (e.isChildrenLayout)
1706
1714
  return (I = t.default) == null ? void 0 : I.call(t);
@@ -1708,41 +1716,41 @@ const Yn = Pe.TabPane, _n = oe.Item, Gn = /* @__PURE__ */ j({
1708
1716
  flatMenuData: l,
1709
1717
  layout: r
1710
1718
  } = te();
1711
- return n(ee, null, [n(Gn, {
1712
- visible: (A(r) === "mix" ? A(l).length > 0 : !0) && p,
1719
+ return n(Q, null, [n(Gn, {
1720
+ visible: (U(r) === "mix" ? U(l).length > 0 : !0) && p,
1713
1721
  isMobile: d,
1714
- loading: f,
1715
- isFixedMultiTab: O,
1722
+ loading: g,
1723
+ isFixedMultiTab: R,
1716
1724
  siderWidth: w,
1717
- collapsed: c,
1725
+ collapsed: m,
1718
1726
  onReloadPage: h,
1719
- onChangeTabs: P
1727
+ onChangeTabs: F
1720
1728
  }, null), n(qn, {
1721
1729
  style: a.style,
1722
- class: [`${i}-content`]
1730
+ class: [`${o}-content`]
1723
1731
  }, {
1724
1732
  default: () => {
1725
1733
  var k;
1726
- return [f && n(un, null, null), n("div", {
1727
- class: [`${i}-content-spin-container`, o],
1734
+ return [g && n(un, null, null), n("div", {
1735
+ class: [`${o}-content-spin-container`, i],
1728
1736
  style: {
1729
- opacity: f ? "0" : void 0
1737
+ opacity: g ? "0" : void 0
1730
1738
  }
1731
1739
  }, [(k = t.default) == null ? void 0 : k.call(t)])];
1732
1740
  }
1733
1741
  })]);
1734
1742
  };
1735
- Ue.inheritAttrs = !1;
1736
- Ue.displayName = "wrap-content";
1743
+ Ee.inheritAttrs = !1;
1744
+ Ee.displayName = "wrap-content";
1737
1745
  const Zn = (e) => {
1738
- var t, a, o, i;
1746
+ var t, a, i, o;
1739
1747
  return {
1740
1748
  [`${e.proComponentsCls}-basic-layout`]: {
1741
1749
  [`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]: {
1742
1750
  backgroundColor: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.colorBgMenu) || e.colorBgElevated
1743
1751
  },
1744
1752
  [`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]: {
1745
- backgroundColor: (i = (o = e.layout) == null ? void 0 : o.header) == null ? void 0 : i.colorDarkBgMenu,
1753
+ backgroundColor: (o = (i = e.layout) == null ? void 0 : i.header) == null ? void 0 : o.colorDarkBgMenu,
1746
1754
  [`${e.proComponentsCls}-global-header-collapsed-button`]: {
1747
1755
  color: "#fff"
1748
1756
  }
@@ -1871,55 +1879,55 @@ const Zn = (e) => {
1871
1879
  }
1872
1880
  }), St = {
1873
1881
  ...Z,
1874
- ...Ae
1875
- }, Qn = (e, t) => e === !1 ? null : e ? e(t, null) : t, ea = /* @__PURE__ */ j({
1882
+ ...Ue
1883
+ }, Qn = (e, t) => e === !1 ? null : e ? e(t, null) : t, ea = /* @__PURE__ */ W({
1876
1884
  props: St,
1877
1885
  setup(e) {
1878
- return () => e.rightContentRender && typeof e.rightContentRender == "function" && n(ee, null, [e.rightContentRender({
1886
+ return () => e.rightContentRender && typeof e.rightContentRender == "function" && n(Q, null, [e.rightContentRender({
1879
1887
  ...e
1880
1888
  })]);
1881
1889
  }
1882
- }), ta = /* @__PURE__ */ j({
1890
+ }), ta = /* @__PURE__ */ W({
1883
1891
  props: St,
1884
1892
  inheritAttrs: !1,
1885
1893
  setup(e, {
1886
1894
  slots: t,
1887
1895
  emit: a
1888
1896
  }) {
1889
- const o = De(), {
1890
- token: i
1891
- } = ge(), {
1897
+ const i = Ne(), {
1898
+ token: o
1899
+ } = he(), {
1892
1900
  getPrefixCls: d,
1893
- openKeys: f,
1894
- selectedKeys: c
1901
+ openKeys: g,
1902
+ selectedKeys: m
1895
1903
  } = te(), {
1896
1904
  width: w
1897
1905
  } = rn(), p = d({
1898
1906
  suffixCls: "global-header",
1899
1907
  isPor: !0
1900
1908
  }), {
1901
- wrapSSR: O,
1909
+ wrapSSR: R,
1902
1910
  hashId: h
1903
- } = ne("ProGlobalHeader", [Jn], p), P = b(() => !e.isMobile || e.layout === "top" || e.layout === "mix" && e.splitMenus), l = b(() => ({
1911
+ } = ae("ProGlobalHeader", [Jn], p), F = b(() => e.isMobile ? !1 : e.layout === "top" || e.layout === "mix" && e.splitMenus), l = b(() => ({
1904
1912
  [`${h.value}`]: !0,
1905
1913
  [`${p}`]: !0,
1906
1914
  [`${p}-${e.layout}`]: !0
1907
1915
  })), r = (y) => {
1908
- var g;
1909
- if (o.currentRoute) {
1910
- const C = o.currentRoute.value.matched.concat();
1911
- e.onSelect && y === "select" && e.onSelect(C.filter(($) => $.name !== "index").map(($) => $.path)), e.onOpenKeys && y === "openKeys" && ((g = e.onOpenKeys) == null || g.call(e, C.filter(($) => $.path !== o.currentRoute.value.path).map(($) => $.path)));
1916
+ var f;
1917
+ if (i.currentRoute) {
1918
+ const C = i.currentRoute.value.matched.concat();
1919
+ e.onSelect && y === "select" && e.onSelect(C.filter(($) => $.name !== "index").map(($) => $.path)), e.onOpenKeys && y === "openKeys" && ((f = e.onOpenKeys) == null || f.call(e, C.filter(($) => $.path !== i.currentRoute.value.path).map(($) => $.path)));
1912
1920
  }
1913
1921
  }, I = () => {
1914
1922
  a("collapse", !e.collapsed);
1915
1923
  }, k = b(() => e.collapsedButtonRender || bt), x = () => {
1916
- var y;
1917
- return n(ee, null, [P.value ? n("div", {
1924
+ var y, f;
1925
+ return n(Q, null, [F.value ? n("div", {
1918
1926
  style: {
1919
1927
  flex: 1
1920
1928
  },
1921
1929
  class: [`${p}-menu`, h.value]
1922
- }, [n(Te, {
1930
+ }, [((y = e.menuData) == null ? void 0 : y.length) > 0 && n(Pe, {
1923
1931
  theme: {
1924
1932
  components: {
1925
1933
  Layout: {
@@ -1932,17 +1940,17 @@ const Zn = (e) => {
1932
1940
  colorActiveBarHeight: 2,
1933
1941
  colorActiveBarBorderSize: 0,
1934
1942
  horizontalItemBorderRadius: 4
1935
- }, i.value || {}, e.theme, "header")
1943
+ }, o.value || {}, e.theme, "header")
1936
1944
  }
1937
1945
  }
1938
1946
  }, {
1939
- default: () => [n(gt, q({
1947
+ default: () => [n(gt, G({
1940
1948
  theme: e.theme,
1941
1949
  mode: e.mode,
1942
1950
  collapsed: e.collapsed,
1943
1951
  menuData: e.menuData,
1944
- openKeys: f.value,
1945
- selectedKeys: c.value,
1952
+ openKeys: g.value,
1953
+ selectedKeys: m.value,
1946
1954
  iconfontUrl: e.iconfontUrl,
1947
1955
  menuItemRender: e.menuItemRender,
1948
1956
  subMenuItemRender: e.subMenuItemRender,
@@ -1958,26 +1966,27 @@ const Zn = (e) => {
1958
1966
  style: {
1959
1967
  flex: 1
1960
1968
  }
1961
- }, [(y = t.default) == null ? void 0 : y.call(t)]), e.layout !== "simple" && n(ea, q(e, {
1969
+ }, [(f = t.default) == null ? void 0 : f.call(t)]), e.layout !== "simple" && n(ea, G(e, {
1962
1970
  extraRightDropdownRender: e.extraRightDropdownRender,
1963
1971
  rightContentRender: e.rightContentRender
1964
1972
  }), null)]);
1965
1973
  };
1966
1974
  return () => {
1975
+ console.log(F.value);
1967
1976
  const y = n("span", {
1968
1977
  key: "logo",
1969
1978
  onClick: () => {
1970
- var g;
1971
- return (g = e.onMenuHeaderClick) == null ? void 0 : g.call(e);
1979
+ var f;
1980
+ return (f = e.onMenuHeaderClick) == null ? void 0 : f.call(e);
1972
1981
  },
1973
1982
  class: [`${p}-logo`, e.isMobile ? "mobile" : "", h.value]
1974
1983
  }, [n("a", null, [yt(e.logo)])]);
1975
- return O(n("div", {
1984
+ return R(n("div", {
1976
1985
  class: l.value
1977
- }, [e.isMobile ? n(ee, null, [Qn(e.menuHeaderRender, y), e.isMobile && A(k) && n("span", {
1986
+ }, [e.isMobile ? n(Q, null, [Qn(e.menuHeaderRender, y), e.isMobile && U(k) && n("span", {
1978
1987
  class: `${p}-collapsed-button ${h.value}`,
1979
1988
  onClick: I
1980
- }, [A(k)(e.collapsed)]), x()]) : ["mix", "wide", "top"].includes(e.layout) ? n(ee, null, [n("div", {
1989
+ }, [U(k)(e.collapsed)]), x()]) : ["mix", "wide", "top"].includes(e.layout) ? n(Q, null, [n("div", {
1981
1990
  style: {
1982
1991
  width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
1983
1992
  padding: e.layout === "wide" && w.value < e.wideWidth ? "0 50px" : void 0
@@ -1985,181 +1994,181 @@ const Zn = (e) => {
1985
1994
  class: `${p}-main ${h.value}`
1986
1995
  }, [n("div", {
1987
1996
  class: `${p}-main-left ${h.value}`
1988
- }, [n(Ke, q(e, {
1997
+ }, [n(Ae, G(e, {
1989
1998
  renderKey: "headerTitleRender"
1990
1999
  }), null)]), x()])]) : x()]));
1991
2000
  };
1992
2001
  }
1993
2002
  });
1994
2003
  function na(e) {
1995
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
2004
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
1996
2005
  }
1997
2006
  const {
1998
2007
  Header: Qe
1999
- } = me, $e = /* @__PURE__ */ j({
2008
+ } = fe, Fe = /* @__PURE__ */ W({
2000
2009
  inheritAttrs: !1,
2001
2010
  props: vt,
2002
2011
  setup(e) {
2003
2012
  const {
2004
2013
  theme: t,
2005
2014
  isMobile: a,
2006
- fixedHeader: o,
2007
- headerHeight: i,
2015
+ fixedHeader: i,
2016
+ headerHeight: o,
2008
2017
  layout: d,
2009
- onCollapse: f,
2010
- splitMenus: c
2011
- } = Se(e), {
2018
+ onCollapse: g,
2019
+ splitMenus: m
2020
+ } = Ie(e), {
2012
2021
  getPrefixCls: w,
2013
2022
  menuData: p
2014
- } = te(), O = w({
2023
+ } = te(), R = w({
2015
2024
  suffixCls: "header",
2016
2025
  isPor: !0
2017
2026
  }), h = w({
2018
2027
  suffixCls: "fixed-header",
2019
2028
  isPor: !0
2020
2029
  }), {
2021
- wrapSSR: P,
2030
+ wrapSSR: F,
2022
2031
  hashId: l
2023
- } = ne("ProLayoutHeader", [Zn], O), r = b(() => d.value === "wide"), I = b(() => o.value), k = b(() => d.value === "mix" || r.value), x = b(() => d.value === "side" || d.value === "simple"), y = b(() => x.value && "light" || t.value), g = b(() => ({
2032
+ } = ae("ProLayoutHeader", [Zn], R), r = b(() => d.value === "wide"), I = b(() => i.value), k = b(() => d.value === "mix" || r.value), x = b(() => d.value === "side" || d.value === "simple"), y = b(() => x.value && "light" || t.value), f = b(() => ({
2024
2033
  [`${l.value}`]: !0,
2025
- [`${O}-${y.value}`]: !0,
2026
- [`${O}`]: !0,
2034
+ [`${R}-${y.value}`]: !0,
2035
+ [`${R}`]: !0,
2027
2036
  [`${h}`]: I.value
2028
- })), C = b(() => I.value && !a.value), $ = b(() => c.value ? p.value && pn(p.value) || [] : d.value === "top" ? p.value : []), u = b(() => x.value && C.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), S = b(() => I.value ? 0 : void 0), R = () => {
2029
- const M = n(ta, q(e, {
2037
+ })), C = b(() => I.value && !a.value), $ = b(() => m.value ? p.value && pn(p.value) || [] : d.value === "top" ? p.value : []), u = b(() => x.value && C.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), S = b(() => I.value ? 0 : void 0), M = () => {
2038
+ const O = n(ta, G(e, {
2030
2039
  theme: y.value,
2031
2040
  mode: "horizontal",
2032
- onCollapse: f.value,
2041
+ onCollapse: g.value,
2033
2042
  menuData: $.value
2034
2043
  }), {
2035
2044
  default: () => [k.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
2036
2045
  });
2037
- return e.headerRender ? e.headerRender(e, M) : M;
2046
+ return e.headerRender ? e.headerRender(e, O) : O;
2038
2047
  };
2039
2048
  return () => {
2040
- let M;
2041
- return P(n(ee, null, [I.value && !r.value && n(Qe, {
2049
+ let O;
2050
+ return F(n(Q, null, [I.value && !r.value && n(Qe, {
2042
2051
  theme: y.value,
2043
2052
  style: {
2044
- height: `${i.value}px`,
2045
- lineHeight: `${i.value}px`,
2053
+ height: `${o.value}px`,
2054
+ lineHeight: `${o.value}px`,
2046
2055
  background: "transparent"
2047
2056
  }
2048
2057
  }, null), n(Qe, {
2049
2058
  theme: y.value,
2050
- class: g.value,
2059
+ class: f.value,
2051
2060
  style: {
2052
- height: `${i.value}px`,
2053
- lineHeight: `${i.value}px`,
2061
+ height: `${o.value}px`,
2062
+ lineHeight: `${o.value}px`,
2054
2063
  width: u.value,
2055
2064
  zIndex: x.value ? 100 : 101,
2056
2065
  right: S.value
2057
2066
  }
2058
- }, na(M = R()) ? M : {
2059
- default: () => [M]
2067
+ }, na(O = M()) ? O : {
2068
+ default: () => [O]
2060
2069
  })]));
2061
2070
  };
2062
2071
  }
2063
- }), aa = /* @__PURE__ */ j({
2072
+ }), aa = /* @__PURE__ */ W({
2064
2073
  name: "BaseProLayout",
2065
2074
  inheritAttrs: !1,
2066
2075
  components: {
2067
- GlobalHeader: $e,
2068
- GlobalFooter: Be,
2069
- SiderMenuWrapper: ke
2076
+ GlobalHeader: Fe,
2077
+ GlobalFooter: $e,
2078
+ SiderMenuWrapper: Be
2070
2079
  },
2071
2080
  props: wt,
2072
2081
  emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
2073
2082
  setup(e, {
2074
2083
  slots: t
2075
2084
  }) {
2076
- const a = fe({
2085
+ const a = ge({
2077
2086
  suffixCls: "basic-layout",
2078
2087
  isPor: !0
2079
2088
  }), {
2080
- wrapSSR: o,
2081
- hashId: i
2082
- } = ne("ProLayout", [Wn, Kn], a), d = on(), {
2083
- token: f
2084
- } = ge(), c = b(() => {
2089
+ wrapSSR: i,
2090
+ hashId: o
2091
+ } = ae("ProLayout", [Wn, Kn], a), d = on(), {
2092
+ token: g
2093
+ } = he(), m = b(() => {
2085
2094
  var y;
2086
- return (y = f == null ? void 0 : f.value) == null ? void 0 : y.colorPrimary;
2095
+ return (y = g == null ? void 0 : g.value) == null ? void 0 : y.colorPrimary;
2087
2096
  });
2088
2097
  Ft(() => {
2089
- c.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", c.value);
2098
+ m.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", m.value);
2090
2099
  });
2091
- const w = b(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = b(() => e.layout === "wide"), O = b(() => w.value), h = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), P = b(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = b(() => (d.value === "sm" || d.value === "xs") && !e.disableMobile && !p.value), r = rt({
2100
+ const w = b(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = b(() => e.layout === "wide"), R = b(() => w.value), h = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), F = b(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = b(() => (d.value === "sm" || d.value === "xs") && !e.disableMobile && !p.value), r = rt({
2092
2101
  position: "relative"
2093
2102
  });
2094
2103
  (e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (r.minHeight = 0);
2095
- const I = (y, g) => y.headerRender === !1 || y.pure ? null : n($e, q(y, {
2096
- matchMenuKeys: g || []
2104
+ const I = (y, f) => y.headerRender === !1 || y.pure ? null : n(Fe, G(y, {
2105
+ matchMenuKeys: f || []
2097
2106
  }), null), k = b(() => ({
2098
2107
  ...e.breadcrumb,
2099
2108
  itemRender: K(t, e, "breadcrumbRender")
2100
- })), x = b(() => O.value && e.selectedKeys ? vn(e.menuData, e.selectedKeys[0]) : []);
2109
+ })), x = b(() => R.value && e.selectedKeys ? vn(e.menuData, e.selectedKeys[0]) : []);
2101
2110
  return Rn({
2102
- getPrefixCls: fe,
2103
- ...re(Se(e), ["layout", "waterMark", "menuData", "openKeys", "splitMenus", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps"].concat(Object.keys(pt))),
2104
- theme: P.value,
2111
+ getPrefixCls: ge,
2112
+ ...se(Ie(e), ["layout", "waterMark", "menuData", "openKeys", "splitMenus", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps"].concat(Object.keys(pt))),
2113
+ theme: F.value,
2105
2114
  hasContentWide: p,
2106
2115
  isMobile: l,
2107
2116
  siderWidth: h,
2108
2117
  breadcrumb: k,
2109
2118
  flatMenuData: x,
2110
2119
  hasSide: w,
2111
- flatMenu: O,
2120
+ flatMenu: R,
2112
2121
  pageHeaderRender: b(() => K(t, e, "pageHeaderRender"))
2113
2122
  }), () => {
2114
- var z;
2115
- const y = K(t, e, "collapsedButtonRender"), g = K(t, e, "headerContentRender"), C = K(t, e, "rightContentRender"), $ = K(t, e, "headerRender"), u = K(t, e, "footerRender"), S = K(t, e, "links"), R = K(t, e, "copyrightRender"), M = K(t, e, "extraRightDropdownRender"), L = K(t, e, "menuHeaderRender"), H = K(t, e, "menuExtraRender"), N = K(t, e, "menuContentRender"), F = K(t, e, "menuFooterRender"), W = K(t, e, "menuItemRender"), X = K(t, e, "subMenuItemRender"), U = {
2116
- menuItemRender: W,
2117
- subMenuItemRender: X
2118
- }, Y = b(() => I({
2123
+ var T;
2124
+ const y = K(t, e, "collapsedButtonRender"), f = K(t, e, "headerContentRender"), C = K(t, e, "rightContentRender"), $ = K(t, e, "headerRender"), u = K(t, e, "footerRender"), S = K(t, e, "links"), M = K(t, e, "copyrightRender"), O = K(t, e, "extraRightDropdownRender"), P = K(t, e, "menuHeaderRender"), H = K(t, e, "menuExtraRender"), N = K(t, e, "menuContentRender"), D = K(t, e, "menuFooterRender"), V = K(t, e, "menuItemRender"), Y = K(t, e, "subMenuItemRender"), _ = {
2125
+ menuItemRender: V,
2126
+ subMenuItemRender: Y
2127
+ }, E = b(() => I({
2119
2128
  ...e,
2120
- ...U,
2129
+ ..._,
2121
2130
  hasSiderMenu: w.value,
2122
2131
  menuData: e.menuData,
2123
- isMobile: A(l),
2132
+ isMobile: U(l),
2124
2133
  rightContentRender: C,
2125
- extraRightDropdownRender: M,
2126
- headerTitleRender: L,
2127
- headerContentRender: g,
2134
+ extraRightDropdownRender: O,
2135
+ headerTitleRender: P,
2136
+ headerContentRender: f,
2128
2137
  headerRender: $,
2129
- theme: P.value
2130
- }, e.matchMenuKeys)), m = b(() => ({
2131
- [`${i.value}`]: !0,
2138
+ theme: F.value
2139
+ }, e.matchMenuKeys)), J = b(() => ({
2140
+ [`${o.value}`]: !0,
2132
2141
  [`${a}`]: !0,
2133
2142
  [`${a}-${e.layout}`]: !0
2134
- })), v = b(() => p.value ? {
2143
+ })), c = b(() => p.value ? {
2135
2144
  minWidth: `${e.wideWidth}px`
2136
- } : void 0), B = b(() => p.value ? {
2145
+ } : void 0), v = b(() => p.value ? {
2137
2146
  width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
2138
2147
  paddingTop: `${e.headerHeight + 20}px`,
2139
2148
  margin: p.value ? "0 auto" : void 0
2140
- } : void 0), T = b(() => p.value ? {
2149
+ } : void 0), B = b(() => p.value ? {
2141
2150
  minHeight: "835px"
2142
2151
  } : {});
2143
- return o(n(ee, null, [e.pure ? (z = t.default) == null ? void 0 : z.call(t) : n("div", {
2144
- class: m.value,
2152
+ return i(n(Q, null, [e.pure ? (T = t.default) == null ? void 0 : T.call(t) : n("div", {
2153
+ class: J.value,
2154
+ style: c.value
2155
+ }, [n(fe, {
2145
2156
  style: v.value
2146
- }, [n(me, {
2147
- style: B.value
2148
2157
  }, {
2149
- default: () => [n(ke, q(Ve(e, ["pure", "theme"]), {
2158
+ default: () => [n(Be, G(je(e, ["pure", "theme"]), {
2150
2159
  links: S,
2151
- theme: P.value,
2160
+ theme: F.value,
2152
2161
  isMobile: l.value,
2153
- menuHeaderRender: L,
2162
+ menuHeaderRender: P,
2154
2163
  menuContentRender: N,
2155
2164
  menuExtraRender: H,
2156
- menuFooterRender: F,
2165
+ menuFooterRender: D,
2157
2166
  collapsedButtonRender: y
2158
- }), null), n(me, {
2167
+ }), null), n(fe, {
2159
2168
  style: r
2160
2169
  }, {
2161
- default: () => [Y.value, n(Ue, q({
2162
- hashId: i.value,
2170
+ default: () => [E.value, n(Ee, G({
2171
+ hashId: o.value,
2163
2172
  isMobile: l.value,
2164
2173
  prefixCls: a,
2165
2174
  collapsedWidth: e.collapsedWidth,
@@ -2169,27 +2178,27 @@ const {
2169
2178
  isFixedMultiTab: e.fixedMultiTab,
2170
2179
  siderWidth: e.siderWidth,
2171
2180
  collapsed: e.collapsed,
2172
- style: e.disableContentMargin ? T.value : {
2181
+ style: e.disableContentMargin ? B.value : {
2173
2182
  ...e.contentStyle,
2174
- ...T.value
2183
+ ...B.value
2175
2184
  }
2176
- }, re(e, ["onReloadPage", "onChangeTabs"])), {
2185
+ }, se(e, ["onReloadPage", "onChangeTabs"])), {
2177
2186
  default: () => {
2178
- var _;
2179
- return [(_ = t.default) == null ? void 0 : _.call(t)];
2187
+ var z;
2188
+ return [(z = t.default) == null ? void 0 : z.call(t)];
2180
2189
  }
2181
- }), u === !1 ? null : u ? u(e) : n(Be, {
2182
- copyright: R
2190
+ }), u === !1 ? null : u ? u(e) : n($e, {
2191
+ copyright: M
2183
2192
  }, null)]
2184
2193
  })]
2185
2194
  })])]));
2186
2195
  };
2187
2196
  }
2188
- }), Oi = /* @__PURE__ */ j({
2197
+ }), Oi = /* @__PURE__ */ W({
2189
2198
  components: {
2190
- GlobalHeader: $e,
2191
- GlobalFooter: Be,
2192
- SiderMenuWrapper: ke
2199
+ GlobalHeader: Fe,
2200
+ GlobalFooter: $e,
2201
+ SiderMenuWrapper: Be
2193
2202
  },
2194
2203
  props: wt,
2195
2204
  emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
@@ -2197,42 +2206,42 @@ const {
2197
2206
  slots: t,
2198
2207
  emit: a
2199
2208
  }) {
2200
- const o = b(() => e.theme !== void 0 ? {
2209
+ const i = b(() => e.theme !== void 0 ? {
2201
2210
  dark: e.theme === "realDark"
2202
- } : {}), i = (c) => {
2203
- a("update:collapsed", c), a("collapse", c);
2204
- }, d = (c) => {
2205
- a("update:open-keys", c), a("openKeys", c);
2206
- }, f = (c) => {
2207
- a("update:selected-keys", c), a("select", c);
2211
+ } : {}), o = (m) => {
2212
+ a("update:collapsed", m), a("collapse", m);
2213
+ }, d = (m) => {
2214
+ a("update:open-keys", m), a("openKeys", m);
2215
+ }, g = (m) => {
2216
+ a("update:selected-keys", m), a("select", m);
2208
2217
  };
2209
- return () => n(Te, {
2218
+ return () => n(Pe, {
2210
2219
  theme: e.primaryColor ? {
2211
2220
  token: {
2212
2221
  colorPrimary: e.primaryColor
2213
2222
  }
2214
2223
  } : void 0
2215
2224
  }, {
2216
- default: () => [n(qt, q({
2225
+ default: () => [n(qt, G({
2217
2226
  token: e.token
2218
- }, o.value), {
2219
- default: () => [n(aa, q(Ve(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
2220
- onSelect: f,
2227
+ }, i.value), {
2228
+ default: () => [n(aa, G(je(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
2229
+ onSelect: g,
2221
2230
  onOpenKeys: d,
2222
- onCollapse: i
2231
+ onCollapse: o
2223
2232
  }), t)]
2224
2233
  })]
2225
2234
  });
2226
2235
  }
2227
- }), It = (e, t, a) => e.map((o, i) => {
2236
+ }), It = (e, t, a) => e.map((i, o) => {
2228
2237
  var d;
2229
- 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;
2238
+ return i.meta && (i.meta.key = a ? `${a}-${o}` : `${o}`), i.path = i.path.replace("//", "/"), i.children && i.children.length > 0 && (i.children = It(i.children, t, (d = i.meta) == null ? void 0 : d.key)), t[`${i.path}`] = i, i;
2230
2239
  }), Ri = (e) => {
2231
- const t = e.find((i) => i.path === "/"), a = {}, o = It((t == null ? void 0 : t.children) || [], a);
2240
+ const t = e.find((o) => o.path === "/"), a = {}, i = It((t == null ? void 0 : t.children) || [], a);
2232
2241
  return {
2233
- menuData: o,
2242
+ menuData: i,
2234
2243
  breadcrumb: a,
2235
- levelMenuData: en(o)
2244
+ levelMenuData: en(i)
2236
2245
  };
2237
2246
  }, Mt = [
2238
2247
  {
@@ -2438,17 +2447,17 @@ const {
2438
2447
  }
2439
2448
  }
2440
2449
  }
2441
- }), et = /* @__PURE__ */ j({
2450
+ }), et = /* @__PURE__ */ W({
2442
2451
  name: "BlockCheckbox",
2443
2452
  props: {
2444
- value: D.string,
2453
+ value: L.string,
2445
2454
  list: {
2446
2455
  type: Array,
2447
2456
  default: () => []
2448
2457
  },
2449
- configType: D.string,
2450
- prefixCls: D.string,
2451
- hashId: D.string,
2458
+ configType: L.string,
2459
+ prefixCls: L.string,
2460
+ hashId: L.string,
2452
2461
  onChange: Function
2453
2462
  },
2454
2463
  setup(e) {
@@ -2456,15 +2465,15 @@ const {
2456
2465
  const t = `${e.prefixCls}-block-checkbox`;
2457
2466
  return n("div", {
2458
2467
  class: [t, e.hashId]
2459
- }, [e.list.map((a) => n(Ie, {
2468
+ }, [e.list.map((a) => n(Me, {
2460
2469
  title: a.title,
2461
2470
  key: a.key
2462
2471
  }, {
2463
2472
  default: () => [n("div", {
2464
2473
  class: ct(e.hashId, `${t}-item`, `${t}-item-${a.key}`, `${t}-${e.configType}-item`),
2465
2474
  onClick: () => {
2466
- var o;
2467
- return (o = e.onChange) == null ? void 0 : o.call(e, a.key);
2475
+ var i;
2476
+ return (i = e.onChange) == null ? void 0 : i.call(e, a.key);
2468
2477
  }
2469
2478
  }, [a.key === "wide" && n("div", {
2470
2479
  class: [`${t}-item-${a.key}-content`, e.hashId]
@@ -2479,7 +2488,7 @@ const {
2479
2488
  }))]);
2480
2489
  };
2481
2490
  }
2482
- }), la = /* @__PURE__ */ j({
2491
+ }), la = /* @__PURE__ */ W({
2483
2492
  name: "ThemeColor",
2484
2493
  inheritAttrs: !1,
2485
2494
  props: {
@@ -2488,60 +2497,60 @@ const {
2488
2497
  type: Array,
2489
2498
  default: () => []
2490
2499
  },
2491
- prefixCls: D.string,
2492
- hashId: D.string,
2500
+ prefixCls: L.string,
2501
+ hashId: L.string,
2493
2502
  onChange: Function
2494
2503
  },
2495
2504
  setup(e) {
2496
2505
  return () => {
2497
2506
  var a;
2498
2507
  const t = `${e.prefixCls}-theme-color`;
2499
- return n(ee, null, [n("div", {
2508
+ return n(Q, null, [n("div", {
2500
2509
  class: `${t} ${e.hashId}`.trim()
2501
2510
  }, [(a = e.colorList) == null ? void 0 : a.map(({
2502
- key: o,
2503
- color: i,
2504
- title: d
2505
- }) => o ? n(Ie, {
2506
2511
  key: i,
2512
+ color: o,
2513
+ title: d
2514
+ }) => i ? n(Me, {
2515
+ key: o,
2507
2516
  title: d
2508
2517
  }, {
2509
2518
  default: () => {
2510
- var f, c;
2519
+ var g, m;
2511
2520
  return [n("div", {
2512
- class: [`${t}-block ${e.hashId}`.trim(), ((f = e.settingValue) == null ? void 0 : f.primaryColor) === i ? `${t}-block-checked` : ""],
2521
+ class: [`${t}-block ${e.hashId}`.trim(), ((g = e.settingValue) == null ? void 0 : g.primaryColor) === o ? `${t}-block-checked` : ""],
2513
2522
  style: {
2514
- backgroundColor: i
2523
+ backgroundColor: o
2515
2524
  },
2516
- onClick: () => e.onChange && e.onChange(i)
2517
- }, [((c = e.settingValue) == null ? void 0 : c.primaryColor) === i && n(ut, null, null)])];
2525
+ onClick: () => e.onChange && e.onChange(o)
2526
+ }, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === o && n(ut, null, null)])];
2518
2527
  }
2519
2528
  }) : null)])]);
2520
2529
  };
2521
2530
  }
2522
- }), ye = /* @__PURE__ */ j({
2531
+ }), be = /* @__PURE__ */ W({
2523
2532
  name: "RegionalChange",
2524
2533
  props: {
2525
- label: D.string,
2526
- value: D.bool,
2527
- prefixCls: D.string,
2534
+ label: L.string,
2535
+ value: L.bool,
2536
+ prefixCls: L.string,
2528
2537
  valueKey: String,
2529
- hashId: D.string,
2530
- disabled: D.bool,
2538
+ hashId: L.string,
2539
+ disabled: L.bool,
2531
2540
  onChange: Function
2532
2541
  },
2533
2542
  setup(e) {
2534
- return () => n(ie, {
2543
+ return () => n(le, {
2535
2544
  class: `${e.prefixCls}-list ${e.hashId}`.trim(),
2536
2545
  split: !1,
2537
2546
  size: "small",
2538
2547
  renderItem: ({
2539
2548
  item: t
2540
- }) => n(Ie, {
2549
+ }) => n(Me, {
2541
2550
  title: t.disabled ? t.disabledReason : "",
2542
2551
  placement: "left"
2543
2552
  }, {
2544
- default: () => [n(ie.Item, {
2553
+ default: () => [n(le.Item, {
2545
2554
  actions: [t.action]
2546
2555
  }, {
2547
2556
  default: () => [n("span", {
@@ -2596,9 +2605,9 @@ const {
2596
2605
  }
2597
2606
  });
2598
2607
  function sa(e) {
2599
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
2608
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
2600
2609
  }
2601
- const da = /* @__PURE__ */ j({
2610
+ const da = /* @__PURE__ */ W({
2602
2611
  name: "ThemeEditor",
2603
2612
  props: {
2604
2613
  settingValue: Object,
@@ -2607,19 +2616,19 @@ const da = /* @__PURE__ */ j({
2607
2616
  setup(e) {
2608
2617
  const {
2609
2618
  getPrefixCls: t
2610
- } = te(), [a, o] = ve("header"), i = t({
2619
+ } = te(), [a, i] = xe("header"), o = t({
2611
2620
  suffixCls: "theme-editor",
2612
2621
  isPor: !0
2613
2622
  }), {
2614
2623
  wrapSSR: d,
2615
- hashId: f
2616
- } = ne("ProThemeEditor", [ra], i), {
2617
- token: c
2618
- } = ge(), w = b(() => {
2624
+ hashId: g
2625
+ } = ae("ProThemeEditor", [ra], o), {
2626
+ token: m
2627
+ } = he(), w = b(() => {
2619
2628
  var l;
2620
- return (l = c.value) == null ? void 0 : l.layout;
2629
+ return (l = m.value) == null ? void 0 : l.layout;
2621
2630
  }), p = b(() => {
2622
- var l, r, I, k, x, y, g, C, $, u, S, R, M, L, H, N, F, W, X, U, Y, m, v, B, T;
2631
+ var l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B;
2623
2632
  return [{
2624
2633
  key: "colorBgMenu",
2625
2634
  title: "全部背景",
@@ -2639,7 +2648,7 @@ const da = /* @__PURE__ */ j({
2639
2648
  }, {
2640
2649
  key: "colorBgMenuItemSelected",
2641
2650
  title: "菜单选中背景",
2642
- disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["mix", "wide"].includes((g = e.settingValue) == null ? void 0 : g.layout)
2651
+ disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["mix", "wide"].includes((f = e.settingValue) == null ? void 0 : f.layout)
2643
2652
  }, {
2644
2653
  key: "colorDarkBgMenuItemSelected",
2645
2654
  title: "菜单选中背景",
@@ -2647,30 +2656,30 @@ const da = /* @__PURE__ */ j({
2647
2656
  }, {
2648
2657
  key: "colorTextMenu",
2649
2658
  title: "菜单文字颜色",
2650
- disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ["mix", "wide"].includes((R = e.settingValue) == null ? void 0 : R.layout)
2659
+ disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ["mix", "wide"].includes((M = e.settingValue) == null ? void 0 : M.layout)
2651
2660
  }, {
2652
2661
  key: "colorDarkTextMenu",
2653
2662
  title: "菜单文字颜色",
2654
- disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "light" || ((L = e.settingValue) == null ? void 0 : L.theme) === "dark" && ["side", "simple"].includes((H = e.settingValue) == null ? void 0 : H.layout)
2663
+ disabled: ((O = e.settingValue) == null ? void 0 : O.theme) === "light" || ((P = e.settingValue) == null ? void 0 : P.theme) === "dark" && ["side", "simple"].includes((H = e.settingValue) == null ? void 0 : H.layout)
2655
2664
  }, {
2656
2665
  key: "colorTextMenuHover",
2657
2666
  title: "菜单文字移入颜色",
2658
- disabled: ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((F = e.settingValue) == null ? void 0 : F.layout)
2667
+ disabled: ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
2659
2668
  }, {
2660
2669
  key: "colorDarkTextMenuHover",
2661
2670
  title: "菜单文字移入颜色",
2662
- disabled: ((W = e.settingValue) == null ? void 0 : W.theme) === "light" || ((X = e.settingValue) == null ? void 0 : X.theme) === "dark" && ["side", "simple"].includes((U = e.settingValue) == null ? void 0 : U.layout)
2671
+ disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "light" || ((Y = e.settingValue) == null ? void 0 : Y.theme) === "dark" && ["side", "simple"].includes((_ = e.settingValue) == null ? void 0 : _.layout)
2663
2672
  }, {
2664
2673
  key: "colorTextMenuSelected",
2665
2674
  title: "菜单文字选中颜色",
2666
- disabled: ((Y = e.settingValue) == null ? void 0 : Y.theme) === "dark" && ["mix", "wide"].includes((m = e.settingValue) == null ? void 0 : m.layout)
2675
+ disabled: ((E = e.settingValue) == null ? void 0 : E.theme) === "dark" && ["mix", "wide"].includes((J = e.settingValue) == null ? void 0 : J.layout)
2667
2676
  }, {
2668
2677
  key: "colorDarkTextMenuSelected",
2669
2678
  title: "菜单文字选中颜色",
2670
- disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "light" || ((B = e.settingValue) == null ? void 0 : B.theme) === "dark" && ["side", "simple"].includes((T = e.settingValue) == null ? void 0 : T.layout)
2679
+ disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "light" || ((v = e.settingValue) == null ? void 0 : v.theme) === "dark" && ["side", "simple"].includes((B = e.settingValue) == null ? void 0 : B.layout)
2671
2680
  }];
2672
- }), O = b(() => {
2673
- var l, r, I, k, x, y, g, C, $, u, S, R, M, L, H, N, F, W, X, U, Y, m, v, B, T, z, _, J, E, Q, Ee, Xe;
2681
+ }), R = b(() => {
2682
+ var l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B, T, z, q, X, ne, ee, Xe;
2674
2683
  return [{
2675
2684
  key: "colorBgMenu",
2676
2685
  title: "全部背景",
@@ -2682,7 +2691,7 @@ const da = /* @__PURE__ */ j({
2682
2691
  }, {
2683
2692
  key: "colorSubItemBg",
2684
2693
  title: "子菜单背景",
2685
- disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["side", "simple"].includes((g = e.settingValue) == null ? void 0 : g.layout)
2694
+ disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["side", "simple"].includes((f = e.settingValue) == null ? void 0 : f.layout)
2686
2695
  }, {
2687
2696
  key: "colorDarkSubItemBg",
2688
2697
  title: "子菜单背景",
@@ -2690,41 +2699,41 @@ const da = /* @__PURE__ */ j({
2690
2699
  }, {
2691
2700
  key: "colorBgMenuItemHover",
2692
2701
  title: "菜单移入背景",
2693
- disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ((R = e.settingValue) == null ? void 0 : R.layout) !== "mix"
2702
+ disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ((M = e.settingValue) == null ? void 0 : M.layout) !== "mix"
2694
2703
  }, {
2695
2704
  key: "colorBgMenuItemSelected",
2696
2705
  title: "菜单选中背景",
2697
- disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "dark" && ((L = e.settingValue) == null ? void 0 : L.layout) !== "mix"
2706
+ disabled: ((O = e.settingValue) == null ? void 0 : O.theme) === "dark" && ((P = e.settingValue) == null ? void 0 : P.layout) !== "mix"
2698
2707
  }, {
2699
2708
  key: "colorDarkBgMenuItemSelected",
2700
2709
  title: "菜单选中背景",
2701
- disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "light" || ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((F = e.settingValue) == null ? void 0 : F.layout)
2710
+ disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "light" || ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
2702
2711
  }, {
2703
2712
  key: "colorTextMenu",
2704
2713
  title: "菜单文字颜色",
2705
- disabled: ((W = e.settingValue) == null ? void 0 : W.theme) === "dark" && ((X = e.settingValue) == null ? void 0 : X.layout) !== "mix"
2714
+ disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "dark" && ((Y = e.settingValue) == null ? void 0 : Y.layout) !== "mix"
2706
2715
  }, {
2707
2716
  key: "colorDarkTextMenu",
2708
2717
  title: "菜单文字颜色",
2709
- disabled: ((U = e.settingValue) == null ? void 0 : U.theme) === "light" || ((Y = e.settingValue) == null ? void 0 : Y.theme) === "dark" && ["mix", "wide"].includes((m = e.settingValue) == null ? void 0 : m.layout)
2718
+ disabled: ((_ = e.settingValue) == null ? void 0 : _.theme) === "light" || ((E = e.settingValue) == null ? void 0 : E.theme) === "dark" && ["mix", "wide"].includes((J = e.settingValue) == null ? void 0 : J.layout)
2710
2719
  }, {
2711
2720
  key: "colorTextMenuHover",
2712
2721
  title: "菜单文字移入颜色",
2713
- disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "dark" && ((B = e.settingValue) == null ? void 0 : B.layout) !== "mix"
2722
+ disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ((v = e.settingValue) == null ? void 0 : v.layout) !== "mix"
2714
2723
  }, {
2715
2724
  key: "colorDarkTextMenuHover",
2716
2725
  title: "菜单文字移入颜色",
2717
- disabled: ((T = e.settingValue) == null ? void 0 : T.theme) === "light" || ((z = e.settingValue) == null ? void 0 : z.theme) === "dark" && ["mix", "wide"].includes((_ = e.settingValue) == null ? void 0 : _.layout)
2726
+ disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "light" || ((T = e.settingValue) == null ? void 0 : T.theme) === "dark" && ["mix", "wide"].includes((z = e.settingValue) == null ? void 0 : z.layout)
2718
2727
  }, {
2719
2728
  key: "colorTextMenuSelected",
2720
2729
  title: "菜单文字选中颜色",
2721
- disabled: ((J = e.settingValue) == null ? void 0 : J.theme) === "dark" && ((E = e.settingValue) == null ? void 0 : E.layout) !== "mix"
2730
+ disabled: ((q = e.settingValue) == null ? void 0 : q.theme) === "dark" && ((X = e.settingValue) == null ? void 0 : X.layout) !== "mix"
2722
2731
  }, {
2723
2732
  key: "colorDarkTextMenuSelected",
2724
2733
  title: "菜单文字选中颜色",
2725
- disabled: ((Q = e.settingValue) == null ? void 0 : Q.theme) === "light" || ((Ee = e.settingValue) == null ? void 0 : Ee.theme) === "dark" && ["mix", "wide"].includes((Xe = e.settingValue) == null ? void 0 : Xe.layout)
2734
+ disabled: ((ne = e.settingValue) == null ? void 0 : ne.theme) === "light" || ((ee = e.settingValue) == null ? void 0 : ee.theme) === "dark" && ["mix", "wide"].includes((Xe = e.settingValue) == null ? void 0 : Xe.layout)
2726
2735
  }];
2727
- }), h = b(() => a.value === "header" ? p.value : a.value === "sider" ? O.value : []), P = (l) => {
2736
+ }), h = b(() => a.value === "header" ? p.value : a.value === "sider" ? R.value : []), F = (l) => {
2728
2737
  var r, I;
2729
2738
  return (I = (r = w.value) == null ? void 0 : r[a.value]) == null ? void 0 : I[l];
2730
2739
  };
@@ -2732,11 +2741,11 @@ const da = /* @__PURE__ */ j({
2732
2741
  var r, I, k;
2733
2742
  let l;
2734
2743
  return d(n("div", {
2735
- class: [i, f.value]
2744
+ class: [o, g.value]
2736
2745
  }, [n("h3", {
2737
- class: [`${i}-title`, f.value]
2738
- }, [ae("主题编辑器"), n("div", {
2739
- class: [`${i}-sub-title`, f.value]
2746
+ class: [`${o}-title`, g.value]
2747
+ }, [oe("主题编辑器"), n("div", {
2748
+ class: [`${o}-sub-title`, g.value]
2740
2749
  }, [n("span", null, [(r = Mt.find((x) => {
2741
2750
  var y;
2742
2751
  return x.key === ((y = e.settingValue) == null ? void 0 : y.theme);
@@ -2744,18 +2753,18 @@ const da = /* @__PURE__ */ j({
2744
2753
  style: {
2745
2754
  marginInline: "8px"
2746
2755
  }
2747
- }, [ae("/")]), n("span", null, [(I = Ot.find((x) => {
2756
+ }, [oe("/")]), n("span", null, [(I = Ot.find((x) => {
2748
2757
  var y;
2749
2758
  return x.key === ((y = e.settingValue) == null ? void 0 : y.layout);
2750
2759
  })) == null ? void 0 : I.title])])]), n("div", {
2751
- class: [`${i}-content`, f.value]
2752
- }, [n(ie, {
2753
- class: `${i}-list ${f.value}`.trim(),
2760
+ class: [`${o}-content`, g.value]
2761
+ }, [n(le, {
2762
+ class: `${o}-list ${g.value}`.trim(),
2754
2763
  split: !1,
2755
2764
  size: "small",
2756
2765
  renderItem: ({
2757
2766
  item: x
2758
- }) => n(ie.Item, {
2767
+ }) => n(le.Item, {
2759
2768
  actions: [x.action]
2760
2769
  }, {
2761
2770
  default: () => [n("span", {
@@ -2774,20 +2783,20 @@ const da = /* @__PURE__ */ j({
2774
2783
  onConfirm: (x) => e.onChange && e.onChange(x, "primaryColor")
2775
2784
  }, null)
2776
2785
  }]
2777
- }, null), n(Pe, {
2786
+ }, null), n(Le, {
2778
2787
  activeKey: a.value,
2779
- onChange: o
2788
+ onChange: i
2780
2789
  }, sa(l = oa.map((x) => n(Nt, {
2781
2790
  key: x.key,
2782
2791
  tab: x.title
2783
2792
  }, {
2784
- default: () => [n(ie, {
2785
- class: `${i}-list ${f.value}`.trim(),
2793
+ default: () => [n(le, {
2794
+ class: `${o}-list ${g.value}`.trim(),
2786
2795
  split: !1,
2787
2796
  size: "small",
2788
2797
  renderItem: ({
2789
2798
  item: y
2790
- }) => n(ie.Item, {
2799
+ }) => n(le.Item, {
2791
2800
  actions: [y.action]
2792
2801
  }, {
2793
2802
  default: () => [n("span", {
@@ -2799,11 +2808,11 @@ const da = /* @__PURE__ */ j({
2799
2808
  dataSource: h.value.filter((y) => !y.disabled).map((y) => ({
2800
2809
  ...y,
2801
2810
  action: n(Ge, {
2802
- value: P(y.key),
2811
+ value: F(y.key),
2803
2812
  actions: ["confirm"],
2804
2813
  modes: ["rgb"],
2805
2814
  size: "small",
2806
- onConfirm: (g) => e.onChange && e.onChange(g, a.value, y.key)
2815
+ onConfirm: (f) => e.onChange && e.onChange(f, a.value, y.key)
2807
2816
  }, null)
2808
2817
  }))
2809
2818
  }, null)]
@@ -2844,88 +2853,88 @@ const da = /* @__PURE__ */ j({
2844
2853
  }
2845
2854
  });
2846
2855
  function tt(e) {
2847
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !le(e);
2856
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
2848
2857
  }
2849
2858
  const {
2850
2859
  preset: nt
2851
- } = je, ca = /* @__PURE__ */ j({
2860
+ } = We, ca = /* @__PURE__ */ W({
2852
2861
  name: "OthersChange",
2853
2862
  props: {
2854
- prefixCls: D.string,
2863
+ prefixCls: L.string,
2855
2864
  settingValue: Object,
2856
2865
  onChange: Function
2857
2866
  },
2858
2867
  setup(e) {
2859
- const t = fe({
2868
+ const t = ge({
2860
2869
  suffixCls: "others",
2861
2870
  isPor: !0
2862
2871
  }), {
2863
2872
  wrapSSR: a,
2864
- hashId: o
2865
- } = ne("SettingsDrawOthers", [ua], t);
2873
+ hashId: i
2874
+ } = ae("SettingsDrawOthers", [ua], t);
2866
2875
  return () => {
2867
- var d, f, c, w, p, O, h, P, l, r, I, k, x, y;
2868
- let i;
2876
+ var d, g, m, w, p, R, h, F, l, r, I, k, x, y;
2877
+ let o;
2869
2878
  return a(n("div", {
2870
- class: [t, o.value]
2879
+ class: [t, i.value]
2871
2880
  }, [n("h3", {
2872
- class: [`${t}-title`, o.value]
2873
- }, [ae("页面动画设置")]), n(ie, {
2874
- class: `${t}-list ${o.value}`.trim(),
2881
+ class: [`${t}-title`, i.value]
2882
+ }, [oe("页面动画设置")]), n(le, {
2883
+ class: `${t}-list ${i.value}`.trim(),
2875
2884
  split: !1,
2876
2885
  size: "small",
2877
2886
  renderItem: ({
2878
- item: g
2879
- }) => n(Ie, {
2880
- title: g.disabled ? g.disabledReason : "",
2887
+ item: f
2888
+ }) => n(Me, {
2889
+ title: f.disabled ? f.disabledReason : "",
2881
2890
  placement: "left"
2882
2891
  }, {
2883
- default: () => [n(ie.Item, {
2884
- actions: [g.action]
2892
+ default: () => [n(le.Item, {
2893
+ actions: [f.action]
2885
2894
  }, {
2886
2895
  default: () => [n("span", {
2887
2896
  style: {
2888
- opacity: g.disabled ? 0.5 : 1
2897
+ opacity: f.disabled ? 0.5 : 1
2889
2898
  }
2890
- }, [g.title])]
2899
+ }, [f.title])]
2891
2900
  })]
2892
2901
  }),
2893
2902
  dataSource: [{
2894
2903
  title: "禁用动画",
2895
2904
  action: n(st, {
2896
- checked: !((f = (d = e.settingValue) == null ? void 0 : d.animate) != null && f.disabled),
2905
+ checked: !((g = (d = e.settingValue) == null ? void 0 : d.animate) != null && g.disabled),
2897
2906
  size: "small",
2898
- onChange: (g) => {
2907
+ onChange: (f) => {
2899
2908
  var C;
2900
- return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "disabled", !g);
2909
+ return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "disabled", !f);
2901
2910
  }
2902
2911
  }, null)
2903
2912
  }, {
2904
2913
  title: "动画效果",
2905
- disabled: (w = (c = e.settingValue) == null ? void 0 : c.animate) == null ? void 0 : w.disabled,
2906
- action: n(he, {
2907
- value: (O = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : O.name,
2914
+ disabled: (w = (m = e.settingValue) == null ? void 0 : m.animate) == null ? void 0 : w.disabled,
2915
+ action: n(ye, {
2916
+ value: (R = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : R.name,
2908
2917
  style: {
2909
2918
  width: "100px"
2910
2919
  },
2911
2920
  size: "small",
2912
- disabled: (P = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : P.disabled,
2913
- getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
2914
- onChange: (g) => {
2921
+ disabled: (F = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : F.disabled,
2922
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
2923
+ onChange: (f) => {
2915
2924
  var C;
2916
- return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "name", g);
2925
+ return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "name", f);
2917
2926
  }
2918
- }, tt(i = nt.map((g) => n(he.Option, {
2919
- value: g.name
2927
+ }, tt(o = nt.map((f) => n(ye.Option, {
2928
+ value: f.name
2920
2929
  }, {
2921
- default: () => [g.alias]
2922
- }))) ? i : {
2923
- default: () => [i]
2930
+ default: () => [f.alias]
2931
+ }))) ? o : {
2932
+ default: () => [o]
2924
2933
  })
2925
2934
  }, {
2926
2935
  title: "动画方向",
2927
2936
  disabled: (r = (l = e.settingValue) == null ? void 0 : l.animate) == null ? void 0 : r.disabled,
2928
- action: n(he, {
2937
+ action: n(ye, {
2929
2938
  value: (k = (I = e.settingValue) == null ? void 0 : I.animate) == null ? void 0 : k.direction,
2930
2939
  style: {
2931
2940
  width: "100px"
@@ -2935,18 +2944,18 @@ const {
2935
2944
  minWidth: "120px"
2936
2945
  },
2937
2946
  disabled: (y = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : y.disabled,
2938
- getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
2939
- onChange: (g) => {
2947
+ getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
2948
+ onChange: (f) => {
2940
2949
  var C;
2941
- return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "direction", g);
2950
+ return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "direction", f);
2942
2951
  }
2943
2952
  }, {
2944
2953
  default: () => {
2945
- var g;
2946
- return [(g = nt.find((C) => {
2954
+ var f;
2955
+ return [(f = nt.find((C) => {
2947
2956
  var $, u;
2948
2957
  return C.name === ((u = ($ = e.settingValue) == null ? void 0 : $.animate) == null ? void 0 : u.name);
2949
- })) == null ? void 0 : g.directions.map((C) => n(he.Option, {
2958
+ })) == null ? void 0 : f.directions.map((C) => n(ye.Option, {
2950
2959
  value: C
2951
2960
  }, tt(C) ? C : {
2952
2961
  default: () => [C]
@@ -2959,7 +2968,7 @@ const {
2959
2968
  }
2960
2969
  }), {
2961
2970
  preset: ma
2962
- } = je, Fe = Object.keys(V).filter((e) => e !== "title"), at = {
2971
+ } = We, Te = Object.keys(j).filter((e) => e !== "title"), at = {
2963
2972
  color: "#fff",
2964
2973
  fontSize: 20
2965
2974
  }, fa = [{
@@ -2978,9 +2987,9 @@ const {
2978
2987
  label: "fixedMultiTab",
2979
2988
  title: "固定多标签"
2980
2989
  }], ot = (e) => nn() ? {
2981
- ...re(V, Fe),
2990
+ ...se(j, Te),
2982
2991
  ...e || {}
2983
- } : He(V), be = (e, {
2992
+ } : Ve(j), pe = (e, {
2984
2993
  slots: t
2985
2994
  }) => {
2986
2995
  var a;
@@ -2991,7 +3000,7 @@ const {
2991
3000
  }, [n("h3", {
2992
3001
  class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
2993
3002
  }, [e.title]), (a = t.default) == null ? void 0 : a.call(t)]);
2994
- }, ki = /* @__PURE__ */ j({
3003
+ }, ki = /* @__PURE__ */ W({
2995
3004
  name: "SettingDrawer",
2996
3005
  props: {
2997
3006
  themeOnly: Boolean,
@@ -3017,44 +3026,44 @@ const {
3017
3026
  suffixCls: "setting-drawer",
3018
3027
  isPor: !0
3019
3028
  }), {
3020
- wrapSSR: o,
3021
- hashId: i
3022
- } = ne("ProSettingDraw", [ia], a), d = Re(!1), [f, c] = ve(!1), [w, p] = ve(!1), [O, h] = ve(!1), P = b(() => ot(re(e.settings, Fe))), [l, r] = ln(() => ot(re(e.settings, Fe)), {
3023
- value: P,
3029
+ wrapSSR: i,
3030
+ hashId: o
3031
+ } = ae("ProSettingDraw", [ia], a), d = ke(!1), [g, m] = xe(!1), [w, p] = xe(!1), [R, h] = xe(!1), F = b(() => ot(se(e.settings, Te))), [l, r] = ln(() => ot(se(e.settings, Te)), {
3032
+ value: F,
3024
3033
  onChange: e.onChange
3025
- }), I = b(() => e.colorList && tn(e.colorList) ? e.colorList : []), k = b(() => wn(A(l))), {
3034
+ }), I = b(() => e.colorList && tn(e.colorList) ? e.colorList : []), k = b(() => wn(U(l))), {
3026
3035
  copy: x,
3027
3036
  copied: y,
3028
- isSupported: g
3037
+ isSupported: f
3029
3038
  } = sn();
3030
- ce(f, () => {
3039
+ me(g, () => {
3031
3040
  d.value || (d.value = !0);
3032
3041
  });
3033
- const C = (u, S, R) => {
3042
+ const C = (u, S, M) => {
3034
3043
  var H, N;
3035
- const M = ["header", "sider"], L = {};
3036
- if (R && M.includes(u)) {
3037
- L[u] = {}, L[u][R] = S, e.onChangeLayout && e.onChangeLayout(re(L, M));
3044
+ const O = ["header", "sider"], P = {};
3045
+ if (M && O.includes(u)) {
3046
+ P[u] = {}, P[u][M] = S, e.onChangeLayout && e.onChangeLayout(se(P, O));
3038
3047
  return;
3039
3048
  } else
3040
- u === "animate" ? (L[u] = {}, L[u][R] = S, R === "name" && (L[u].direction = (N = (H = ma.find((F) => F.name === S)) == null ? void 0 : H.directions) == null ? void 0 : N[0])) : L[u] = S;
3049
+ u === "animate" ? (P[u] = {}, P[u][M] = S, M === "name" && (P[u].direction = (N = (H = ma.find((D) => D.name === S)) == null ? void 0 : H.directions) == null ? void 0 : N[0])) : P[u] = S;
3041
3050
  if (u === "colorWeak") {
3042
- const F = document.querySelector("body");
3043
- F && (F.dataset.prosettingdrawer = S === !0 ? F.style.filter : F.dataset.prosettingdrawer || "none", S === !0 && (F.dataset.prosettingdrawer = F.style.filter), F.style.filter = S === !0 ? "invert(80%)" : F.dataset.prosettingdrawer || "none", S || delete F.dataset.prosettingdrawer);
3051
+ const D = document.querySelector("body");
3052
+ D && (D.dataset.prosettingdrawer = S === !0 ? D.style.filter : D.dataset.prosettingdrawer || "none", S === !0 && (D.dataset.prosettingdrawer = D.style.filter), D.style.filter = S === !0 ? "invert(80%)" : D.dataset.prosettingdrawer || "none", S || delete D.dataset.prosettingdrawer);
3044
3053
  }
3045
- r(an(A(l), {
3046
- ...Cn(Ve(L, M))
3054
+ r(an(U(l), {
3055
+ ...Cn(je(P, O))
3047
3056
  }));
3048
3057
  }, $ = () => {
3049
- g.value && x(JSON.stringify(A(l)));
3058
+ f.value && x(JSON.stringify(U(l)));
3050
3059
  };
3051
- return ce(y, (u) => {
3060
+ return me(y, (u) => {
3052
3061
  u && zt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
3053
- }), () => o(n(pe, {
3062
+ }), () => i(n(ve, {
3054
3063
  width: 300,
3055
3064
  closable: !1,
3056
- open: f.value,
3057
- rootClassName: `${a} ${i.value} ${f.value && `${a}-show`} ${!d.value && `${a}-trantion-none`}`,
3065
+ open: g.value,
3066
+ rootClassName: `${a} ${o.value} ${g.value && `${a}-show`} ${!d.value && `${a}-trantion-none`}`,
3058
3067
  placement: "right",
3059
3068
  rootStyle: {
3060
3069
  zIndex: 999
@@ -3062,28 +3071,28 @@ const {
3062
3071
  bodyStyle: {
3063
3072
  padding: 0
3064
3073
  },
3065
- onClose: () => c(!1),
3074
+ onClose: () => m(!1),
3066
3075
  handle: n("div", {
3067
- class: [`${a}-handle`, i.value],
3068
- onClick: () => c(!f.value)
3069
- }, [f.value ? n(dt, {
3076
+ class: [`${a}-handle`, o.value],
3077
+ onClick: () => m(!g.value)
3078
+ }, [g.value ? n(dt, {
3070
3079
  style: at
3071
3080
  }, null) : n(Yt, {
3072
3081
  style: at
3073
3082
  }, null)])
3074
3083
  }, {
3075
3084
  default: () => [n("div", {
3076
- class: [`${a}-wrapper`, i.value]
3085
+ class: [`${a}-wrapper`, o.value]
3077
3086
  }, [n(dn, null, {
3078
3087
  default: () => [n("div", {
3079
- class: [`${a}-content`, i.value]
3080
- }, [n(be, {
3088
+ class: [`${a}-content`, o.value]
3089
+ }, [n(pe, {
3081
3090
  prefixCls: a,
3082
- hashId: i.value,
3091
+ hashId: o.value,
3083
3092
  title: "整体风格设置"
3084
3093
  }, {
3085
3094
  default: () => [n(et, {
3086
- hashId: i.value,
3095
+ hashId: o.value,
3087
3096
  prefixCls: a,
3088
3097
  list: Mt,
3089
3098
  value: l.value.theme,
@@ -3091,33 +3100,33 @@ const {
3091
3100
  key: "navTheme",
3092
3101
  onChange: (u) => C("theme", u)
3093
3102
  }, null)]
3094
- }), n(be, {
3095
- hashId: i.value,
3096
- title: n("span", null, [ae("主题色 "), n("a", {
3103
+ }), n(pe, {
3104
+ hashId: o.value,
3105
+ title: n("span", null, [oe("主题色 "), n("a", {
3097
3106
  style: {
3098
3107
  fontSize: "12px"
3099
3108
  },
3100
3109
  onClick: () => p(!0)
3101
- }, [ae("更多配置")])]),
3110
+ }, [oe("更多配置")])]),
3102
3111
  prefixCls: a
3103
3112
  }, {
3104
3113
  default: () => [n(la, {
3105
- hashId: i.value,
3114
+ hashId: o.value,
3106
3115
  prefixCls: a,
3107
3116
  colorList: I.value,
3108
3117
  settingValue: l.value,
3109
3118
  onChange: (u, S) => C(S || "primaryColor", u)
3110
3119
  }, null)]
3111
- }), !e.themeOnly && n(ee, null, [n(Oe, null, null), n(be, {
3112
- hashId: i.value,
3120
+ }), !e.themeOnly && n(Q, null, [n(Re, null, null), n(pe, {
3121
+ hashId: o.value,
3113
3122
  prefixCls: a,
3114
3123
  title: "导航模式"
3115
3124
  }, {
3116
3125
  default: () => [n(et, {
3117
3126
  prefixCls: a,
3118
- value: A(l).layout,
3127
+ value: U(l).layout,
3119
3128
  key: "layout",
3120
- hashId: i.value,
3129
+ hashId: o.value,
3121
3130
  configType: "layout",
3122
3131
  list: Ot,
3123
3132
  onChange: (u) => C("layout", u)
@@ -3125,51 +3134,51 @@ const {
3125
3134
  }), fa.map(({
3126
3135
  label: u,
3127
3136
  title: S
3128
- }) => n(ye, {
3137
+ }) => n(be, {
3129
3138
  label: S,
3130
- disabled: A(k)[u],
3131
- value: A(l)[u],
3139
+ disabled: U(k)[u],
3140
+ value: U(l)[u],
3132
3141
  prefixCls: a,
3133
- hashId: i.value,
3142
+ hashId: o.value,
3134
3143
  valueKey: u,
3135
- onChange: (R, M) => C(R, M)
3136
- }, null)), n(Oe, null, null), n(be, {
3137
- hashId: i.value,
3144
+ onChange: (M, O) => C(M, O)
3145
+ }, null)), n(Re, null, null), n(pe, {
3146
+ hashId: o.value,
3138
3147
  prefixCls: a,
3139
- title: n("span", null, [ae("其他设置 "), n("a", {
3148
+ title: n("span", null, [oe("其他设置 "), n("a", {
3140
3149
  style: {
3141
3150
  fontSize: "12px"
3142
3151
  },
3143
3152
  onClick: () => h(!0)
3144
- }, [ae("更多配置")])])
3153
+ }, [oe("更多配置")])])
3145
3154
  }, {
3146
3155
  default: () => [ga.map(({
3147
3156
  label: u,
3148
3157
  title: S
3149
- }) => n(ye, {
3158
+ }) => n(be, {
3150
3159
  label: S,
3151
- disabled: A(k)[u],
3152
- value: A(l)[u],
3160
+ disabled: U(k)[u],
3161
+ value: U(l)[u],
3153
3162
  prefixCls: a,
3154
- hashId: i.value,
3163
+ hashId: o.value,
3155
3164
  valueKey: u,
3156
- onChange: (R, M) => C(R, M)
3157
- }, null)), e.weakmode && n(ye, {
3165
+ onChange: (M, O) => C(M, O)
3166
+ }, null)), e.weakmode && n(be, {
3158
3167
  label: "色弱模式",
3159
- value: A(l).colorWeak,
3168
+ value: U(l).colorWeak,
3160
3169
  prefixCls: a,
3161
- hashId: i.value,
3170
+ hashId: o.value,
3162
3171
  valueKey: "colorWeak",
3163
3172
  onChange: (u, S) => C(u, S)
3164
- }, null), e.showProgress && n(ye, {
3173
+ }, null), e.showProgress && n(be, {
3165
3174
  label: "顶部进度条",
3166
- value: A(l).showProgressBar,
3175
+ value: U(l).showProgressBar,
3167
3176
  prefixCls: a,
3168
- hashId: i.value,
3177
+ hashId: o.value,
3169
3178
  valueKey: "showProgressBar",
3170
3179
  onChange: (u, S) => C(u, S)
3171
3180
  }, null)]
3172
- })]), e.hideHintAlert && e.hideCopyButton ? null : n(Oe, null, null), e.hideHintAlert ? null : n(Ht, {
3181
+ })]), e.hideHintAlert && e.hideCopyButton ? null : n(Re, null, null), e.hideHintAlert ? null : n(Ht, {
3173
3182
  type: "warning",
3174
3183
  message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
3175
3184
  icon: n(_t, null, null),
@@ -3181,9 +3190,9 @@ const {
3181
3190
  onClick: () => $(),
3182
3191
  block: !0
3183
3192
  }, {
3184
- default: () => [n(Gt, null, null), ae("拷贝设置")]
3193
+ default: () => [n(Gt, null, null), oe("拷贝设置")]
3185
3194
  })])]
3186
- })]), n(pe, {
3195
+ })]), n(ve, {
3187
3196
  width: 320,
3188
3197
  closable: !1,
3189
3198
  placement: "right",
@@ -3195,13 +3204,13 @@ const {
3195
3204
  }, {
3196
3205
  default: () => [n(da, {
3197
3206
  settingValue: l.value,
3198
- onChange: (u, S, R) => C(S || "primaryColor", u, R)
3207
+ onChange: (u, S, M) => C(S || "primaryColor", u, M)
3199
3208
  }, null)]
3200
- }), n(pe, {
3209
+ }), n(ve, {
3201
3210
  width: 320,
3202
3211
  closable: !1,
3203
3212
  placement: "right",
3204
- open: O.value,
3213
+ open: R.value,
3205
3214
  bodyStyle: {
3206
3215
  padding: 0
3207
3216
  },
@@ -3209,7 +3218,7 @@ const {
3209
3218
  }, {
3210
3219
  default: () => [n(ca, {
3211
3220
  settingValue: l.value,
3212
- onChange: (u, S, R) => C(u, R, S)
3221
+ onChange: (u, S, M) => C(u, M, S)
3213
3222
  }, null)]
3214
3223
  })]
3215
3224
  }));
@@ -4487,12 +4496,12 @@ const {
4487
4496
  }
4488
4497
  });
4489
4498
  function di(e) {
4490
- return Ne("LayoutPageTranstion", (t) => {
4491
- const a = ze(t);
4499
+ return ze("LayoutPageTranstion", (t) => {
4500
+ const a = He(t);
4492
4501
  return [si(a)];
4493
4502
  }, e);
4494
4503
  }
4495
- const Bi = /* @__PURE__ */ j({
4504
+ const Bi = /* @__PURE__ */ W({
4496
4505
  name: "PageTranstion",
4497
4506
  props: {
4498
4507
  disabled: {
@@ -4512,35 +4521,35 @@ const Bi = /* @__PURE__ */ j({
4512
4521
  setup(e, {
4513
4522
  slots: t
4514
4523
  }) {
4515
- const a = fe({
4524
+ const a = ge({
4516
4525
  suffixCls: "page-transtion",
4517
4526
  isPor: !0
4518
4527
  }), {
4519
- wrapSSR: o,
4520
- hashId: i
4521
- } = di(a), d = b(() => [c(!1), `${a}-enter`, i.value].join(" ")), f = b(() => [c(!0), `${a}-leave`, i.value].join(" ")), c = (p) => {
4522
- const O = je.preset.find((l) => e.name == l.name);
4523
- if (O == null)
4528
+ wrapSSR: i,
4529
+ hashId: o
4530
+ } = di(a), d = b(() => [m(!1), `${a}-enter`, o.value].join(" ")), g = b(() => [m(!0), `${a}-leave`, o.value].join(" ")), m = (p) => {
4531
+ const R = We.preset.find((l) => e.name == l.name);
4532
+ if (R == null)
4524
4533
  return "";
4525
4534
  let h = "";
4526
- e.direction == null ? h = O.directions[0] : h = O.directions.find((l) => l == e.direction) || "", h = h == null || h === "default" ? "" : h, h != "" && (h = p && e.reverse ? w(h, O.directions) : h, h = h[0].toUpperCase() + h.substring(1));
4527
- const P = p ? "Out" : "In";
4528
- return O.name + P + h;
4529
- }, w = (p, O) => {
4535
+ e.direction == null ? h = R.directions[0] : h = R.directions.find((l) => l == e.direction) || "", h = h == null || h === "default" ? "" : h, h != "" && (h = p && e.reverse ? w(h, R.directions) : h, h = h[0].toUpperCase() + h.substring(1));
4536
+ const F = p ? "Out" : "In";
4537
+ return R.name + F + h;
4538
+ }, w = (p, R) => {
4530
4539
  if (p.length == 0 || p == "x" || p == "y")
4531
4540
  return p;
4532
- let h = O.indexOf(p);
4533
- return h = h % 2 == 1 ? h - 1 : h + 1, O[h];
4541
+ let h = R.indexOf(p);
4542
+ return h = h % 2 == 1 ? h - 1 : h + 1, R[h];
4534
4543
  };
4535
4544
  return () => {
4536
4545
  var p;
4537
- return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) : o(n(Tt, {
4546
+ return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) : i(n(Tt, {
4538
4547
  enterActiveClass: d.value,
4539
- leaveActiveClass: f.value
4548
+ leaveActiveClass: g.value
4540
4549
  }, {
4541
4550
  default: () => {
4542
- var O;
4543
- return [(O = t.default) == null ? void 0 : O.call(t)];
4551
+ var R;
4552
+ return [(R = t.default) == null ? void 0 : R.call(t)];
4544
4553
  }
4545
4554
  }));
4546
4555
  };
@@ -4550,14 +4559,14 @@ export {
4550
4559
  gt as BaseMenu,
4551
4560
  ta as DefaultHeader,
4552
4561
  Oi as GProLayout,
4553
- Be as GlobalFooter,
4562
+ $e as GlobalFooter,
4554
4563
  Mi as PageContainer,
4555
4564
  un as PageLoading,
4556
4565
  Bi as PageTranstion,
4557
4566
  ki as SettingDrawer,
4558
- ke as SiderMenuWrapper,
4559
- Ue as WrapContent,
4560
- Me as baseMenuProps,
4567
+ Be as SiderMenuWrapper,
4568
+ Ee as WrapContent,
4569
+ Oe as baseMenuProps,
4561
4570
  bn as clearMenuItem,
4562
4571
  In as createContext,
4563
4572
  On as createRouteContext,
@@ -4567,7 +4576,7 @@ export {
4567
4576
  vn as getMenuFirstChildren,
4568
4577
  xn as getMenuFirstLastChildPath,
4569
4578
  Cn as handleThemeConfig,
4570
- G as hanlePathKey,
4579
+ A as hanlePathKey,
4571
4580
  Rn as provideProLayoutContext,
4572
4581
  Mn as useContext,
4573
4582
  te as useProLayoutContext