@gx-design-vue/pro-layout 0.1.0-beta.20 → 0.1.0-beta.201

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.
Files changed (101) hide show
  1. package/README.md +3 -3
  2. package/dist/Context.d.ts +33 -50
  3. package/dist/ProLayout.d.ts +418 -512
  4. package/dist/WrapContent.d.ts +87 -9
  5. package/dist/_utils/ant-design-vue/badge.d.ts +1 -0
  6. package/dist/_utils/ant-design-vue/breadcrumb.d.ts +2 -0
  7. package/dist/_utils/ant-design-vue/dropdown.d.ts +1 -0
  8. package/dist/_utils/ant-design-vue/index.d.ts +5 -2
  9. package/dist/_utils/ant-design-vue/menu.d.ts +3 -0
  10. package/dist/_utils/ant-design-vue/spin.d.ts +1 -0
  11. package/dist/_utils/ant-design-vue/theme.d.ts +2 -0
  12. package/dist/components/AppPage/context.d.ts +5 -0
  13. package/dist/components/AppPage/index.d.ts +49 -0
  14. package/dist/components/AppPage/style.d.ts +4 -0
  15. package/dist/components/BaseMenu/index.d.ts +243 -0
  16. package/dist/components/BaseMenu/props.d.ts +99 -0
  17. package/dist/components/{SettingDrawer/style/index.d.ts → BaseMenu/style.d.ts} +2 -2
  18. package/dist/components/BreadCrumb/index.d.ts +15 -0
  19. package/dist/components/{SettingDrawer/style/others.d.ts → BreadCrumb/style.d.ts} +2 -2
  20. package/dist/components/CollapsedIcon/index.d.ts +28 -0
  21. package/dist/components/CollapsedIcon/style.d.ts +6 -0
  22. package/dist/components/FooterToolbar/index.d.ts +71 -0
  23. package/dist/components/FooterToolbar/props.d.ts +43 -0
  24. package/dist/components/FooterToolbar/style/index.d.ts +8 -0
  25. package/dist/components/FooterToolbar/style/stylish.d.ts +11 -0
  26. package/dist/components/GlobalFooter/index.d.ts +16 -17
  27. package/dist/components/GlobalFooter/style.d.ts +1 -1
  28. package/dist/components/GlobalHeader/DefaultHeader.d.ts +98 -577
  29. package/dist/components/GlobalHeader/index.d.ts +102 -277
  30. package/dist/components/GlobalHeader/props.d.ts +30 -249
  31. package/dist/components/GlobalHeader/style/{index.d.ts → defaultHeader.d.ts} +2 -2
  32. package/dist/components/GlobalHeader/style/{globalHeader.d.ts → header.d.ts} +2 -2
  33. package/dist/components/LogoContent/index.d.ts +46 -55
  34. package/dist/components/LogoContent/props.d.ts +38 -24
  35. package/dist/components/LogoContent/style.d.ts +1 -1
  36. package/dist/components/PageContainer/PageHeader.d.ts +29 -10
  37. package/dist/components/PageContainer/index.d.ts +174 -49
  38. package/dist/components/PageContainer/props.d.ts +107 -23
  39. package/dist/components/PageContainer/style/index.d.ts +1 -1
  40. package/dist/components/PageContainer/style/pageHeader.d.ts +1 -1
  41. package/dist/components/PageTranstion/index.d.ts +5 -5
  42. package/dist/components/SiderMenu/Arrow.d.ts +2 -0
  43. package/dist/components/SiderMenu/SiderMenu.d.ts +110 -370
  44. package/dist/components/SiderMenu/index.d.ts +117 -364
  45. package/dist/components/SiderMenu/props.d.ts +40 -276
  46. package/dist/components/SiderMenu/style/index.d.ts +7 -0
  47. package/dist/components/SiderMenu/typings.d.ts +7 -7
  48. package/dist/components/TabsRoute/index.d.ts +89 -0
  49. package/dist/components/TabsRoute/props.d.ts +75 -0
  50. package/dist/components/{MultiTab → TabsRoute}/style.d.ts +1 -0
  51. package/dist/components/TabsRoute/utils/config.d.ts +14 -0
  52. package/dist/{utils → config}/animate.d.ts +1 -1
  53. package/dist/config/index.d.ts +30 -0
  54. package/dist/hooks/collapsed/index.d.ts +12 -0
  55. package/dist/hooks/layout/index.d.ts +16 -0
  56. package/dist/hooks/menu/context.d.ts +16 -0
  57. package/dist/hooks/menu/index.d.ts +22 -0
  58. package/dist/hooks/theme/index.d.ts +5 -0
  59. package/dist/index.d.ts +23 -24
  60. package/dist/pro-layout.js +5397 -0
  61. package/dist/pro-layout.umd.cjs +45 -0
  62. package/dist/props/collapsedProps.d.ts +36 -0
  63. package/dist/props/defaultSettings.d.ts +57 -0
  64. package/dist/props/index.d.ts +215 -0
  65. package/dist/props/themeProps.d.ts +10 -0
  66. package/dist/style/index.d.ts +15 -8
  67. package/dist/types/Breadcrumb.d.ts +31 -0
  68. package/dist/types/MenuTypings.d.ts +41 -0
  69. package/dist/types/RouteTypings.d.ts +85 -0
  70. package/dist/types/SlotsTypings.d.ts +127 -0
  71. package/dist/types/typings.d.ts +65 -0
  72. package/dist/utils/index.d.ts +3 -41
  73. package/dist/utils/menu.d.ts +24 -0
  74. package/dist/utils/style/index.d.ts +40 -0
  75. package/package.json +37 -53
  76. package/dist/PageLoading.d.ts +0 -6
  77. package/dist/RenderTypings.d.ts +0 -29
  78. package/dist/components/MultiTab/index.d.ts +0 -80
  79. package/dist/components/MultiTab/props.d.ts +0 -34
  80. package/dist/components/MultiTab/utils/config.d.ts +0 -4
  81. package/dist/components/SettingDrawer/BlockCheckbox.d.ts +0 -58
  82. package/dist/components/SettingDrawer/OthersChange.d.ts +0 -18
  83. package/dist/components/SettingDrawer/RegionalChange.d.ts +0 -46
  84. package/dist/components/SettingDrawer/ThemeColor.d.ts +0 -46
  85. package/dist/components/SettingDrawer/ThemeEditor.d.ts +0 -10
  86. package/dist/components/SettingDrawer/index.d.ts +0 -64
  87. package/dist/components/SettingDrawer/style/theme.d.ts +0 -3
  88. package/dist/components/SettingDrawer/utils/config.d.ts +0 -12
  89. package/dist/components/SiderMenu/BaseMenu.d.ts +0 -284
  90. package/dist/components/SiderMenu/style.d.ts +0 -6
  91. package/dist/defaultSettings.d.ts +0 -84
  92. package/dist/hooks/context/index.d.ts +0 -5
  93. package/dist/pro-layout.mjs +0 -5008
  94. package/dist/pro-layout.umd.js +0 -1
  95. package/dist/props.d.ts +0 -293
  96. package/dist/route.d.ts +0 -63
  97. package/dist/typings.d.ts +0 -1
  98. package/dist/utils/coverToNewToken.d.ts +0 -4
  99. package/dist/utils/getMenuData.d.ts +0 -8
  100. package/dist/utils/isImg/index.d.ts +0 -3
  101. package/dist/utils/isUrl/index.d.ts +0 -2
@@ -1,5008 +0,0 @@
1
- import { defineComponent as E, createVNode as o, mergeProps as X, provide as _e, readonly as Xt, inject as gt, resolveComponent as yt, computed as w, isVNode as ne, Fragment as q, toRefs as Be, unref as U, createTextVNode as Q, ref as ce, reactive as Ee, watch as le, withDirectives as Gt, vShow as Yt, getCurrentInstance as qt, onMounted as bt, onUpdated as Zt, onUnmounted as Jt, watchEffect as Qt, onBeforeUnmount as en, Transition as tn } from "vue";
2
- import { Spin as Ie, Menu as ee, ConfigProvider as Ve, Layout as me, Drawer as we, Breadcrumb as nn, Card as an, LayoutFooter as on, Tabs as Ae, Dropdown as nt, Tooltip as ke, List as te, Switch as pt, TabPane as ln, Select as ve, message as rn, Divider as Fe, Alert as sn, Button as un } from "ant-design-vue";
3
- import { useRouter as je, RouterLink as dn } from "vue-router";
4
- import { createFromIconfontCN as cn, MenuUnfoldOutlined as mn, MenuFoldOutlined as fn, GithubOutlined as hn, EllipsisOutlined as gn, ReloadOutlined as yn, CloseOutlined as vt, CheckOutlined as xt, SettingOutlined as bn, NotificationOutlined as pn, CopyOutlined as vn } from "@ant-design/icons-vue";
5
- import xn, { themeConfig as A, Keyframe as u, useProStyle as Z, useProConfigContext as $e, useStyle as We, mergeToken as Ke, colorList as Cn } from "@gx-design-vue/pro-provider";
6
- import { createTypes as wn } from "vue-types";
7
- import { pick as ue, cloneDeep as Ct, omit as Ue } from "lodash-es";
8
- import { GPorWaterMark as Sn } from "@gx-design-vue/pro-watermark";
9
- import { getSlot as K, isBoolean as In, getPrefixCls as fe, classNames as wt, isArray as On, isBrowser as Mn, merge as Rn } from "@gx-design-vue/pro-utils";
10
- import { useMediaQuery as at, useState as Se, useMergedState as Bn } from "@gx-design-vue/pro-hooks";
11
- import { useWindowSize as kn, useClipboard as $n } from "@vueuse/core";
12
- import Tn from "@gx-design-vue/scrollbar";
13
- import { GColorPicker as ot } from "@gx-design-vue/color-picker";
14
- const Fn = /* @__PURE__ */ E({
15
- name: "PageLoading",
16
- props: {
17
- ...Ie.props
18
- },
19
- setup(e) {
20
- return o("div", {
21
- style: {
22
- paddingTop: "100px",
23
- textAlign: "center"
24
- }
25
- }, [o(Ie, X(e, {
26
- indicator: o("i", {
27
- class: "toolsfont create-spin toolsfont tools-icon-jiazaizhong",
28
- style: {
29
- fontSize: "30px"
30
- }
31
- }, null)
32
- }), null)]);
33
- }
34
- }), St = wn({
35
- func: void 0,
36
- bool: void 0,
37
- string: void 0,
38
- number: void 0,
39
- array: void 0,
40
- object: void 0,
41
- integer: void 0
42
- });
43
- St.extend([{
44
- name: "looseBool",
45
- getter: !0,
46
- type: Boolean,
47
- default: void 0
48
- }, {
49
- name: "style",
50
- getter: !0,
51
- type: [String, Object],
52
- default: void 0
53
- }, {
54
- name: "VueNode",
55
- getter: !0,
56
- type: null
57
- }]);
58
- const z = St, oe = {
59
- theme: {
60
- type: String,
61
- default: A.theme
62
- },
63
- layout: {
64
- type: String,
65
- default: A.layout
66
- },
67
- wideWidth: {
68
- type: Number,
69
- default: A.wideWidth
70
- },
71
- splitMenus: {
72
- type: Boolean,
73
- default: A.splitMenus
74
- },
75
- fixedMultiTab: {
76
- type: Boolean,
77
- default: A.fixedMultiTab
78
- },
79
- showProgressBar: {
80
- type: Boolean,
81
- default: A.showProgressBar
82
- },
83
- fixedHeader: {
84
- type: Boolean,
85
- default: A.fixedHeader
86
- },
87
- fixSiderbar: {
88
- type: Boolean,
89
- default: A.fixSiderbar
90
- },
91
- showTabsBar: {
92
- type: Boolean,
93
- default: A.showTabsBar
94
- },
95
- showFullScreen: {
96
- type: Boolean,
97
- default: A.showFullScreen
98
- },
99
- autoHideHeader: {
100
- type: Boolean,
101
- default: A.autoHideHeader
102
- },
103
- headerHeight: {
104
- type: Number,
105
- default: A.headerHeight
106
- },
107
- title: {
108
- type: String,
109
- default: A.title
110
- },
111
- iconfontUrl: {
112
- type: String,
113
- default: A.iconfontUrl
114
- },
115
- animate: {
116
- type: Object,
117
- default: A.animate
118
- },
119
- primaryColor: {
120
- type: String,
121
- default: A.primaryColor
122
- }
123
- }, ae = {
124
- renderKey: z.string.def("menuHeaderRender"),
125
- title: oe.title,
126
- layout: oe.layout,
127
- logo: {
128
- type: [Object, String, Function],
129
- default: () => {
130
- }
131
- },
132
- logoStyle: {
133
- type: Object,
134
- default: () => {
135
- }
136
- },
137
- logoDirection: {
138
- type: String,
139
- default: "horizontal"
140
- },
141
- drawer: z.looseBool,
142
- collapsed: z.looseBool,
143
- menuHeaderRender: {
144
- type: [Object, Function],
145
- default: () => {
146
- }
147
- },
148
- onMenuHeaderClick: Function
149
- }, Xe = {
150
- ...oe,
151
- mode: {
152
- type: String,
153
- default: "inline"
154
- },
155
- menuData: {
156
- type: Array,
157
- default: () => []
158
- },
159
- theme: {
160
- type: String,
161
- default: "dark"
162
- },
163
- layout: {
164
- type: String,
165
- default: "mix"
166
- },
167
- collapsed: {
168
- type: Boolean,
169
- default: () => !1
170
- },
171
- openKeys: {
172
- type: [Array, Boolean],
173
- default: () => []
174
- },
175
- selectedKeys: {
176
- type: Array,
177
- default: () => []
178
- },
179
- menuProps: {
180
- type: Object,
181
- default: () => null
182
- },
183
- menuItemRender: {
184
- type: [Function, Boolean],
185
- default: () => !1
186
- },
187
- subMenuItemRender: {
188
- type: [Function, Boolean],
189
- default: () => !1
190
- },
191
- onClick: [Function, Object]
192
- }, G = {
193
- ...oe,
194
- ...Xe,
195
- menuLoading: z.looseBool,
196
- logo: ae.logo,
197
- logoStyle: ae.logoStyle,
198
- logoDirection: ae.logoDirection,
199
- siderWidth: z.number.def(208),
200
- headerHeight: z.number.def(48),
201
- collapsedWidth: z.number.def(48),
202
- links: {
203
- type: [Function, Object, Array],
204
- default: () => {
205
- }
206
- },
207
- menuHeaderRender: {
208
- type: [Function, Object],
209
- default: () => {
210
- }
211
- },
212
- menuFooterRender: {
213
- type: [Function, Object, Boolean],
214
- default: () => !1
215
- },
216
- menuContentRender: {
217
- type: [Function, Object, Boolean],
218
- default: () => !1
219
- },
220
- menuExtraRender: {
221
- type: [Function, Object, Boolean],
222
- default: () => !1
223
- },
224
- collapsedButtonRender: {
225
- type: [Function, Object, Boolean],
226
- default: () => {
227
- }
228
- },
229
- breakpoint: {
230
- type: [Object, Boolean],
231
- default: () => !1
232
- },
233
- isMobile: z.looseBool,
234
- matchMenuKeys: {
235
- type: Array,
236
- default: () => []
237
- },
238
- // events
239
- onMenuHeaderClick: z.func,
240
- onMenuClick: z.func,
241
- onCollapse: {
242
- type: Function
243
- },
244
- onOpenKeys: {
245
- type: Function
246
- },
247
- onSelect: {
248
- type: Function
249
- }
250
- }, Pn = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/, It = (e) => Pn.test(e);
251
- function Ln(e) {
252
- return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
253
- }
254
- function Ot(e, t, n, a) {
255
- var l, d, m, y, p, x, r, T, S, R, s, I, g, c, f, v, P, C, O, L, B, N, H, M, F, h, b, k, $, D, j, W, V, _;
256
- const i = { ...e };
257
- return n === "light" ? (i.colorItemBg = (d = (l = t.layout) == null ? void 0 : l[a]) == null ? void 0 : d.colorBgMenu, i.colorSubItemBg = (y = (m = t.layout) == null ? void 0 : m[a]) == null ? void 0 : y.colorSubItemBg, i.colorItemBgSelected = (x = (p = t.layout) == null ? void 0 : p[a]) == null ? void 0 : x.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (T = (r = t.layout) == null ? void 0 : r[a]) == null ? void 0 : T.colorBgMenuItemSelected, i.colorItemText = (R = (S = t.layout) == null ? void 0 : S[a]) == null ? void 0 : R.colorTextMenu, i.colorItemTextHover = (I = (s = t.layout) == null ? void 0 : s[a]) == null ? void 0 : I.colorTextMenuHover, i.colorItemTextSelected = (c = (g = t.layout) == null ? void 0 : g[a]) == null ? void 0 : c.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (v = (f = t.layout) == null ? void 0 : f[a]) == null ? void 0 : v.colorTextMenuSelected, a === "sider" && (i.colorItemBgHover = (C = (P = t.layout) == null ? void 0 : P[a]) == null ? void 0 : C.colorBgMenuItemHover)) : n === "dark" && (i.colorItemBg = (L = (O = t.layout) == null ? void 0 : O[a]) == null ? void 0 : L.colorDarkBgMenu, i.colorSubItemBg = (N = (B = t.layout) == null ? void 0 : B[a]) == null ? void 0 : N.colorDarkSubItemBg, i.colorItemBgSelected = (M = (H = t.layout) == null ? void 0 : H[a]) == null ? void 0 : M.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (h = (F = t.layout) == null ? void 0 : F[a]) == null ? void 0 : h.colorDarkBgMenuItemSelected, i.colorItemText = (k = (b = t.layout) == null ? void 0 : b[a]) == null ? void 0 : k.colorDarkTextMenu, i.colorItemTextHover = (D = ($ = t.layout) == null ? void 0 : $[a]) == null ? void 0 : D.colorDarkTextMenuHover, i.colorItemTextSelected = (W = (j = t.layout) == null ? void 0 : j[a]) == null ? void 0 : W.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (_ = (V = t.layout) == null ? void 0 : V[a]) == null ? void 0 : _.colorDarkTextMenuSelected, a === "header" && (i.colorActiveBarHeight = 0)), i;
258
- }
259
- const Dn = ["left", "right"], se = ["left", "right", "down", "up"], zn = ["downBig", "upBig", "leftBig", "rightBig"], Nn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Hn = ["downLeft", "upRight", "downRight", "upLeft"], Ge = {
260
- preset: [
261
- //预设动画配置
262
- { name: "back", alias: "渐近", directions: se },
263
- { name: "bounce", alias: "弹跳", directions: se.concat("default") },
264
- {
265
- name: "fade",
266
- alias: "淡化",
267
- directions: se.concat(zn).concat(Nn).concat("default")
268
- },
269
- { name: "flip", alias: "翻转", directions: ["x", "y"] },
270
- { name: "lightSpeed", alias: "光速", directions: Dn },
271
- { name: "rotate", alias: "旋转", directions: Hn.concat("default") },
272
- { name: "roll", alias: "翻滚", directions: ["default"] },
273
- { name: "zoom", alias: "缩放", directions: se.concat("default") },
274
- { name: "slide", alias: "滑动", directions: se }
275
- ]
276
- };
277
- function _n(e) {
278
- return e.map((t) => {
279
- var a;
280
- const n = { ...t };
281
- if (!n.name || (a = n.meta) != null && a.hideInMenu)
282
- return null;
283
- if (n && (n != null && n.children)) {
284
- if (n.children.some((i) => {
285
- var l;
286
- return i && i.name && !((l = i.meta) != null && l.hideInMenu);
287
- }))
288
- return {
289
- ...t,
290
- children: _n(n.children)
291
- };
292
- delete n.children;
293
- }
294
- return n;
295
- }).filter((t) => t);
296
- }
297
- function En(e) {
298
- return e.map((t) => {
299
- var a;
300
- const n = { ...t };
301
- return !n.name || (a = n.meta) != null && a.hideInMenu ? null : (n.linkPath = An(n.children || []), n.children && delete n.children, n);
302
- }).filter((t) => t);
303
- }
304
- function Vn(e, t) {
305
- const n = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`;
306
- return t === void 0 ? [] : (e[e.findIndex((a) => a.path === n)] || {}).children || [];
307
- }
308
- function An(e) {
309
- let t = "";
310
- const n = function(a) {
311
- let i = "";
312
- return a.children && a.children.length > 0 ? i = n(a.children[0]) : i = `${a.path}`, i;
313
- };
314
- return e.length > 0 && e[0].children && e[0].children.length > 0 ? t = n(e[0].children[0]) : t = e.length > 0 ? e[0].path : "", t;
315
- }
316
- function jn(e) {
317
- return e.layout === "mix" && (e.fixSiderbar = !0, e.fixedHeader = !0, e.splitMenus = !0), e.layout === "simple" && (e.splitMenus = !1, e.showTabsBar = !1), e.layout === "side" && (e.splitMenus = !1), e.layout === "wide" && (e.splitMenus = !1, e.fixSiderbar = !1, e.fixedHeader = !0, e.showTabsBar = !1, e.fixedMultiTab = !1), { ...e };
318
- }
319
- function Wn(e) {
320
- const t = ["showTabsBar", "fixedMultiTab", "fixSiderbar", "fixedHeader", "splitMenus"];
321
- let a = Object.keys(e).reduce((i, l) => (i[l] = !1, i), {});
322
- return a = Mt(a, t), e.layout === "mix" && (a.fixSiderbar = !0, a.fixedHeader = !0), e.layout === "side" && (a.splitMenus = !0), e.layout === "simple" && (a.splitMenus = !0, a.fixedHeader = !0, a.showTabsBar = !0, a.fixedMultiTab = !0), e.layout === "wide" && (a.splitMenus = !0, a.fixedHeader = !0, a.fixSiderbar = !0, a.showTabsBar = !0, a.fixedMultiTab = !0), a;
323
- }
324
- function Mt(e, t) {
325
- return {
326
- ...t.reduce((n, a) => ({ ...n, [a]: e[a] }), {})
327
- };
328
- }
329
- const Kn = (e = Symbol(), t = "Context.Provider") => E({
330
- name: t,
331
- props: {
332
- value: {
333
- type: Object,
334
- required: !0
335
- }
336
- },
337
- setup(a, { slots: i }) {
338
- return _e(e, Xt(a.value)), () => {
339
- var l;
340
- return (l = i.default) == null ? void 0 : l.call(i);
341
- };
342
- }
343
- }), Un = (e = Symbol(), t) => gt(e, t || {}), Ye = Symbol("pro-layout-context"), Xn = () => Kn(Ye, "ProLayoutContext.Provider"), Gn = (e) => {
344
- _e(Ye, e);
345
- }, J = () => Un(Ye);
346
- Xn();
347
- function it(e) {
348
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
349
- }
350
- const Oe = (e) => {
351
- const {
352
- icon: t,
353
- iconType: n,
354
- iconfontUrl: a
355
- } = e;
356
- if (!t)
357
- return null;
358
- if (typeof t == "string" && t !== "") {
359
- if (It(t) || Ln(t))
360
- return o("img", {
361
- src: t,
362
- alt: "icon",
363
- class: `${e.className}-icon-image`
364
- }, null);
365
- if (n === 1) {
366
- const l = cn({
367
- scriptUrl: a || A.iconfontUrl
368
- });
369
- return a ? o(l, {
370
- type: t
371
- }, null) : o("i", {
372
- class: `iconfont ${t} ${e.className}-icon`
373
- }, null);
374
- }
375
- }
376
- if (ne(t))
377
- return t;
378
- const i = yt(t);
379
- return typeof Oe == "function" && o(i, null, null) || null;
380
- };
381
- Oe.props = {
382
- icon: {
383
- type: [String, Function, Object]
384
- },
385
- iconType: Number,
386
- className: String,
387
- iconfontUrl: String
388
- };
389
- const Rt = /* @__PURE__ */ E({
390
- name: "BaseMenu",
391
- props: Xe,
392
- emits: ["update:openKeys", "update:selectedKeys", "click"],
393
- setup(e, {
394
- attrs: t,
395
- emit: n
396
- }) {
397
- const a = je(), {
398
- getPrefixCls: i
399
- } = J(), l = i({
400
- suffixCls: "menu-item",
401
- isPor: !0
402
- }), d = (s) => {
403
- n("update:openKeys", s);
404
- }, m = (s) => {
405
- n("update:selectedKeys", s.selectedKeys);
406
- }, y = (s) => {
407
- n("click", s);
408
- }, p = (s, I) => {
409
- var f;
410
- const g = s.target || "", c = It(g);
411
- ((f = a.currentRoute.value) == null ? void 0 : f.fullPath) !== I.to && c && g && s.targetStatus === 1 && window.open(g);
412
- }, x = yt("router-link"), r = (s = []) => s.map((I) => T(I)).filter((I) => I), T = (s) => {
413
- var c, f, v, P, C, O, L, B, N;
414
- if (Array.isArray(s.children) && s.children.length > 0 && !((c = s == null ? void 0 : s.meta) != null && c.hideInMenu) && !((f = s == null ? void 0 : s.meta) != null && f.hideChildrenInMenu)) {
415
- let H;
416
- if (e.subMenuItemRender)
417
- return e.subMenuItemRender({
418
- item: s,
419
- children: r(s.children)
420
- });
421
- const M = (v = s.meta) == null ? void 0 : v.title, F = (P = s.meta) != null && P.icon ? o("span", {
422
- class: "gx-pro-sider-menu-item"
423
- }, [o("span", {
424
- class: "gx-pro-sider-menu-item-title"
425
- }, [M])]) : o("span", {
426
- class: "gx-pro-sider-menu-item"
427
- }, [M]), h = ((C = s.meta) == null ? void 0 : C.type) === "group", b = h ? ee.ItemGroup : ee.SubMenu;
428
- return o(b, {
429
- title: F,
430
- key: s.path,
431
- icon: h ? null : o(Oe, {
432
- className: l,
433
- icon: (O = s.meta) == null ? void 0 : O.icon,
434
- iconfontUrl: e.iconfontUrl,
435
- iconType: (L = s.meta) == null ? void 0 : L.iconType
436
- }, null)
437
- }, it(H = r(s.children)) ? H : {
438
- default: () => [H]
439
- });
440
- }
441
- const [I, g] = S(s);
442
- return e.menuItemRender && e.menuItemRender({
443
- item: s,
444
- title: I,
445
- icon: g
446
- }) || o(ee.Item, {
447
- disabled: (B = s.meta) == null ? void 0 : B.disabled,
448
- danger: (N = s.meta) == null ? void 0 : N.danger,
449
- key: s.path,
450
- icon: g
451
- }, it(I) ? I : {
452
- default: () => [I]
453
- });
454
- }, S = (s) => {
455
- var C, O, L, B, N;
456
- const I = {
457
- ...s.meta
458
- }, g = I.targetStatus === 1 && I.target ? "a" : x, c = {
459
- to: s.linkPath || s.path || ""
460
- };
461
- c.to === "/live/list/operation/:id" && (c.to = "/live/list/operation/add");
462
- const f = (C = s.meta) == null ? void 0 : C.title, v = (O = s.meta) != null && O.icon ? o(g, X(c, {
463
- class: "gx-pro-sider-menu-item",
464
- onClick: () => p(I, c)
465
- }), {
466
- default: () => [o("span", {
467
- class: "gx-pro-sider-menu-item-title"
468
- }, [f])]
469
- }) : o(g, X(c, {
470
- class: "gx-pro-sider-menu-item",
471
- onClick: () => p(I, c)
472
- }), {
473
- default: () => [o("span", null, [f])]
474
- }), P = ((L = s.meta) == null ? void 0 : L.icon) && o(Oe, {
475
- className: l,
476
- icon: (B = s.meta) == null ? void 0 : B.icon,
477
- iconfontUrl: e.iconfontUrl,
478
- iconType: (N = s.meta) == null ? void 0 : N.iconType
479
- }, null) || void 0;
480
- return [v, P];
481
- }, R = w(() => r(e.menuData));
482
- return () => o(ee, X({
483
- key: "Menu",
484
- inlineIndent: 16,
485
- mode: e.mode,
486
- theme: e.theme,
487
- openKeys: e.openKeys === !1 ? [] : e.openKeys,
488
- selectedKeys: e.selectedKeys || [],
489
- style: t.style,
490
- class: `${t.class}`,
491
- onOpenChange: d,
492
- onSelect: m,
493
- onClick: y
494
- }, e.menuProps), {
495
- default: () => [R.value]
496
- });
497
- }
498
- }), Bt = new u("pro-layout-title-hide", {
499
- "0%": { display: "none", opacity: 0 },
500
- "90%": {
501
- display: "none",
502
- opacity: 0
503
- },
504
- "100%": {
505
- display: "unset",
506
- opacity: 1
507
- }
508
- }), Yn = (e) => {
509
- const t = `${e.antCls}-menu`;
510
- return {
511
- [`${e.proComponentsCls}-basic-layout`]: {
512
- [`${t}${t}-root`]: {
513
- [`${t}-item a`]: {
514
- transition: "none"
515
- }
516
- }
517
- }
518
- };
519
- }, qn = (e) => {
520
- var t, n, a, i, l, d, m, y, p, x, r, T;
521
- return {
522
- [`${e.proComponentsCls}-basic-layout`]: {
523
- [`&${e.proComponentsCls}-basic-layout-wide`]: {
524
- [e.componentCls]: {
525
- position: "sticky",
526
- zIndex: 100,
527
- borderRadius: e.borderRadiusSM
528
- }
529
- },
530
- [e.componentCls]: {
531
- position: "relative",
532
- borderRight: 0,
533
- background: (n = (t = e.layout) == null ? void 0 : t.sider) == null ? void 0 : n.colorDarkBgMenu,
534
- zIndex: 9,
535
- "&-menu": {
536
- position: "relative",
537
- zIndex: 10,
538
- minHeight: "100%",
539
- "&-icon": {
540
- verticalAlign: "unset"
541
- }
542
- },
543
- [`& ${e.antCls}-layout-sider-children`]: {
544
- position: "relative",
545
- display: "flex",
546
- flexDirection: "column",
547
- height: "100%"
548
- },
549
- "&-light": {
550
- background: (i = (a = e.layout) == null ? void 0 : a.sider) == null ? void 0 : i.colorBgMenu,
551
- boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
552
- [`${e.componentCls}-footer`]: {
553
- color: (d = (l = e.layout) == null ? void 0 : l.sider) == null ? void 0 : d.colorTextMenu
554
- }
555
- },
556
- "&-links": {
557
- width: "100%",
558
- borderTop: "1px solid rgba(0,0,0,.06)",
559
- ul: {
560
- height: "auto",
561
- [`${e.antCls}-menu-item`]: {
562
- width: "calc(100% + 1px)"
563
- }
564
- }
565
- },
566
- "&-link-menu": {
567
- border: "none",
568
- boxShadow: "none",
569
- background: "transparent"
570
- },
571
- "&-footer": {
572
- color: (y = (m = e.layout) == null ? void 0 : m.sider) == null ? void 0 : y.colorDarkTextMenu,
573
- paddingBlockEnd: 16,
574
- fontSize: e.fontSize,
575
- animationName: Bt,
576
- animationDuration: ".4s",
577
- animationTimingFunction: "ease"
578
- }
579
- },
580
- [`${e.componentCls}${e.componentCls}-fixed`]: {
581
- position: "fixed",
582
- insetBlockStart: 0,
583
- insetInlineStart: 0,
584
- zIndex: "100",
585
- height: "100%",
586
- "&-mix": {
587
- height: `calc(100% - ${((x = (p = e.layout) == null ? void 0 : p.header) == null ? void 0 : x.heightLayoutHeader) || A.headerHeight}px)`,
588
- insetBlockStart: `${((T = (r = e.layout) == null ? void 0 : r.header) == null ? void 0 : T.heightLayoutHeader) || A.headerHeight}px`
589
- }
590
- }
591
- }
592
- };
593
- }, Zn = (e) => ({
594
- [`${e.proComponentsCls}-basic-layout`]: {
595
- [`${e.antCls}-menu`]: {
596
- [`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]: {
597
- verticalAlign: "unset",
598
- lineHeight: 1
599
- }
600
- }
601
- }
602
- }), Jn = (e) => ({
603
- [`${e.proComponentsCls}-sider`]: {
604
- "&-light": {
605
- [`${e.proComponentsCls}-sider-logo`]: {
606
- h1: {
607
- color: e.colorPrimary
608
- }
609
- }
610
- },
611
- "&-logo": {
612
- position: "relative",
613
- display: "flex",
614
- alignItems: "center",
615
- justifyContent: "space-between",
616
- padding: "16px 8px",
617
- cursor: "pointer",
618
- transition: "padding .3s cubic-bezier(.645,.045,.355,1)",
619
- "> a": {
620
- display: "flex",
621
- alignItems: "center",
622
- justifyContent: "center",
623
- maxHeight: 32,
624
- "> img": {
625
- display: "inline-block",
626
- height: 32,
627
- verticalAlign: "middle"
628
- },
629
- "> h1": {
630
- display: "inline-block",
631
- lineHeight: "32px",
632
- marginBlock: 0,
633
- marginInlineEnd: 0,
634
- marginInlineStart: 12,
635
- color: e.colorWhite,
636
- animationName: Bt,
637
- animationDuration: ".3s",
638
- animationTimingFunction: "ease",
639
- fontWeight: 600,
640
- fontSize: 18,
641
- verticalAlign: "middle"
642
- }
643
- },
644
- "&-collapsed": {
645
- flexDirection: "column-reverse",
646
- margin: 0,
647
- padding: 12,
648
- [`${e.proComponentsCls}-layout-apps-icon`]: {
649
- marginBlockEnd: 8,
650
- fontSize: 16,
651
- transition: "font-size 0.2s ease-in-out,color 0.2s ease-in-out"
652
- }
653
- }
654
- },
655
- [`&${e.antCls}-layout-sider-collapsed`]: {
656
- [`${e.proComponentsCls}-sider-logo`]: {
657
- padding: "16px 8px"
658
- }
659
- }
660
- }
661
- }), kt = (e, t) => e ? typeof e == "string" ? o("img", {
662
- src: e,
663
- alt: "logo",
664
- style: t
665
- }, null) : typeof e == "function" ? e() : e : null, Qn = (e, t = "menuHeaderRender") => {
666
- const {
667
- logo: n,
668
- logoStyle: a,
669
- title: i,
670
- layout: l
671
- } = e, d = e[t || ""];
672
- if (d === !1)
673
- return null;
674
- const m = kt(n, a), y = i && o("h1", null, [i]);
675
- return typeof d == "function" ? d(m, e.collapsed ? null : y, e) : o(q, null, [m || null, e.collapsed && l === "side" ? null : y]);
676
- }, qe = /* @__PURE__ */ E({
677
- name: "LogoContent",
678
- props: ae,
679
- setup(e) {
680
- const {
681
- getPrefixCls: t
682
- } = J(), n = w(() => e.layout === "side" || e.layout === "simple"), a = w(() => t({
683
- suffixCls: n.value || e.drawer ? "sider" : "global-header",
684
- isPor: !0
685
- })), {
686
- wrapSSR: i,
687
- hashId: l
688
- } = Z("ProLayoutLogo", [Jn]), d = w(() => Qn(e, e.renderKey));
689
- return () => i(o("div", {
690
- id: "logo",
691
- class: {
692
- [`${l.value}`]: !0,
693
- [`${a.value}-logo`]: !0,
694
- [`${a.value}-logo-collapsed`]: !!e.collapsed
695
- },
696
- onClick: () => {
697
- var m;
698
- return (m = e.onMenuHeaderClick) == null ? void 0 : m.call(e);
699
- }
700
- }, [o("a", null, [d.value || null])]));
701
- }
702
- });
703
- qe.inheritAttrs = !1;
704
- function ea(e) {
705
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
706
- }
707
- const {
708
- Sider: ta
709
- } = me, {
710
- Item: lt
711
- } = ee, $t = (e) => e ? o(mn, null, null) : o(fn, null, null), rt = /* @__PURE__ */ E({
712
- props: G,
713
- inheritAttrs: !1,
714
- setup(e) {
715
- const {
716
- getPrefixCls: t,
717
- selectedKeys: n,
718
- flatMenuData: a,
719
- menuData: i,
720
- openKeys: l
721
- } = J(), {
722
- token: d
723
- } = $e(), {
724
- theme: m,
725
- layout: y,
726
- isMobile: p,
727
- menuLoading: x,
728
- breakpoint: r,
729
- fixSiderbar: T,
730
- collapsed: S,
731
- siderWidth: R,
732
- collapsedWidth: s,
733
- menuExtraRender: I,
734
- menuContentRender: g,
735
- menuFooterRender: c,
736
- collapsedButtonRender: f,
737
- links: v
738
- } = Be(e), P = t({
739
- suffixCls: "sider",
740
- isPor: !0
741
- }), {
742
- wrapSSR: C,
743
- hashId: O
744
- } = Z("ProLayoutSiderMenu", [Yn, qn, Zn], P), L = w(() => e.layout === "wide"), B = w(() => e.layout === "mix" && !e.isMobile && e.splitMenus), N = w(() => y.value === "side" || y.value === "simple"), H = w(() => (e.layout === "mix" || L.value) && "light" || m.value), M = w(() => e.collapsed ? e.collapsedWidth : e.siderWidth), F = w(() => [O.value, P, p.value ? "shadow" : null, `${P}-${H.value}`, T.value && e.layout !== "wide" ? `${P}-fixed` : null]), h = w(() => {
745
- var $;
746
- return typeof v.value == "function" ? ($ = v.value) == null ? void 0 : $.call(v) : v.value;
747
- }), b = w(() => f.value || $t), k = ($) => {
748
- var D;
749
- if (e.onSelect) {
750
- if (U(B)) {
751
- e.onSelect([(D = n == null ? void 0 : n.value) == null ? void 0 : D[0], ...$]);
752
- return;
753
- }
754
- e.onSelect($);
755
- }
756
- };
757
- return () => {
758
- var W;
759
- const $ = N.value ? o(qe, X({
760
- drawer: p.value
761
- }, e), null) : null, D = I.value && ((W = I.value) == null ? void 0 : W.call(I, e)), j = o(Rt, X({
762
- class: `${P}-menu ${O.value}`,
763
- theme: H.value,
764
- mode: "inline",
765
- menuData: B.value ? a.value : i.value,
766
- collapsed: e.collapsed,
767
- iconfontUrl: e.iconfontUrl,
768
- openKeys: l.value,
769
- selectedKeys: n.value,
770
- menuItemRender: e.menuItemRender,
771
- subMenuItemRender: e.subMenuItemRender,
772
- onClick: e.onMenuClick,
773
- style: {
774
- width: "100%"
775
- }
776
- }, {
777
- "onUpdate:openKeys": (V) => {
778
- var _;
779
- return e.onOpenKeys && ((_ = e.onOpenKeys) == null ? void 0 : _.call(e, V));
780
- },
781
- "onUpdate:selectedKeys": k
782
- }), null);
783
- return B.value && U(a.value).length === 0 || i.value.length === 0 ? null : C(o(Ve, {
784
- theme: {
785
- components: {
786
- Menu: Ot({
787
- radiusItem: 4,
788
- colorActiveBarWidth: 0,
789
- colorActiveBarHeight: 0,
790
- colorActiveBarBorderSize: 0
791
- // 主题颜色
792
- }, d.value || {}, H.value, "sider")
793
- }
794
- }
795
- }, {
796
- default: () => [T.value && o("div", {
797
- style: {
798
- width: `${M.value}px`,
799
- overflow: "hidden",
800
- flex: `0 0 ${M.value}px`,
801
- maxWidth: `${M.value}px`,
802
- minWidth: `${M.value}px`,
803
- transition: "background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"
804
- }
805
- }, null), o(ta, {
806
- collapsible: !0,
807
- trigger: null,
808
- class: F.value,
809
- style: {
810
- overflow: "hidden",
811
- zIndex: T.value ? 101 : void 0,
812
- paddingTop: N.value || e.isMobile || L.value ? 0 : `${e.headerHeight}px`,
813
- top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
814
- height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
815
- },
816
- theme: H.value,
817
- breakpoint: r.value || void 0,
818
- collapsed: S.value,
819
- width: R.value,
820
- collapsedWidth: s.value,
821
- onCollapse: (V) => {
822
- var _;
823
- e.isMobile || (_ = e.onCollapse) == null || _.call(e, V);
824
- }
825
- }, {
826
- default: () => {
827
- var V, _;
828
- return [x.value && o("div", {
829
- class: ["gx-pro-sider-loading", O.value]
830
- }, [o(Ie, {
831
- spinning: x.value
832
- }, null)]), $ || null, D && !e.collapsed && o("div", {
833
- class: {
834
- [`${O.value}`]: !0,
835
- [`${P}-extra`]: !0,
836
- [`${P}-extra-no-logo`]: !$
837
- }
838
- }, [D]), o("div", {
839
- style: {
840
- flex: "1 1 0%",
841
- overflow: "hidden auto"
842
- }
843
- }, [g.value && ((V = g.value) == null ? void 0 : V.call(g, e, j)) || j]), e.layout !== "wide" && o("div", {
844
- class: `${P}-links ${O.value}`
845
- }, [o(ee, {
846
- theme: H.value,
847
- inlineIndent: 16,
848
- class: `${P}-link-menu ${O.value}`,
849
- selectedKeys: [],
850
- openKeys: [],
851
- mode: "inline"
852
- }, {
853
- default: () => [(h.value || []).map((Y, ie) => o(lt, {
854
- class: `${P}-link ${O.value}`,
855
- key: ie
856
- }, ea(Y) ? Y : {
857
- default: () => [Y]
858
- })), b.value && !p.value && o(lt, {
859
- class: `${P}-collapsed-button ${O.value}`,
860
- title: !1,
861
- key: "collapsed",
862
- onClick: () => {
863
- var Y;
864
- e.onCollapse && ((Y = e.onCollapse) == null || Y.call(e, !S.value));
865
- }
866
- }, {
867
- default: () => {
868
- var Y;
869
- return [(Y = b.value) == null ? void 0 : Y.call(b, S.value)];
870
- }
871
- })]
872
- })]), c.value && o("div", {
873
- class: `${P}-footer ${O.value}`
874
- }, [(_ = c.value) == null ? void 0 : _.call(c, e)])];
875
- }
876
- })]
877
- }));
878
- };
879
- }
880
- }), Le = /* @__PURE__ */ E({
881
- name: "SiderMenuWrapper",
882
- inheritAttrs: !1,
883
- props: {
884
- ...G,
885
- matchMenuKeys: {
886
- type: Array,
887
- default: () => []
888
- }
889
- },
890
- setup(e, {
891
- attrs: t
892
- }) {
893
- return () => o(q, null, [e.isMobile ? o(we, {
894
- maskClosable: !0,
895
- open: !e.collapsed,
896
- closable: !1,
897
- placement: "left",
898
- style: {
899
- padding: 0,
900
- height: "100vh"
901
- },
902
- getContainer: !1,
903
- onClose: () => e.onCollapse && e.onCollapse(!0),
904
- width: e.siderWidth,
905
- bodyStyle: {
906
- height: "100vh",
907
- padding: 0,
908
- display: "flex",
909
- flexDirection: "row"
910
- // backgroundColor: token?.value?.layout?.sider?.colorMenuBackground
911
- }
912
- }, {
913
- default: () => [o(rt, X(t, e, {
914
- collapsed: e.isMobile ? !1 : e.collapsed
915
- }), null)]
916
- }) : o(rt, X(t, e), null)]);
917
- }
918
- }), Tt = Symbol("pro-app-context"), na = (e = Symbol(), t) => gt(e, t || {}), aa = (e) => {
919
- _e(Tt, e);
920
- }, oa = () => na(Tt, []);
921
- process.env.NODE_ENV !== "production" && Object.freeze({});
922
- process.env.NODE_ENV !== "production" && Object.freeze([]);
923
- const ia = Object.prototype.toString;
924
- function la(e, t) {
925
- return ia.call(e) === `[object ${t}]`;
926
- }
927
- function ra(e) {
928
- return la(e, "Boolean");
929
- }
930
- typeof process < "u" && process.versions != null && process.versions.node != null;
931
- function sa(e, t, n = "default") {
932
- var a, i;
933
- return t[n] === !1 ? !1 : ra(t[n]) && t[n] ? ((a = e == null ? void 0 : e[n]) == null ? void 0 : a.call(e)) || t[n] : t[n] || ((i = e[n]) == null ? void 0 : i.call(e));
934
- }
935
- function ua(e, t, n) {
936
- const a = {};
937
- return e.forEach((i) => {
938
- a[i] = sa(t, n, i);
939
- }), a;
940
- }
941
- const da = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: a }) => {
942
- const i = a || (n ? "gx-pro" : "gx");
943
- return t || (e ? `${i}-${e}` : i);
944
- }, ca = (e) => {
945
- const { componentCls: t, colorText: n, fontSize: a, lineHeight: i, fontFamily: l } = e;
946
- return {
947
- [t]: {
948
- color: n,
949
- fontSize: a,
950
- lineHeight: i,
951
- fontFamily: l
952
- }
953
- };
954
- }, ma = ["emptyText", "indicator"], Pe = /* @__PURE__ */ E({
955
- name: "GProApp",
956
- props: {
957
- rootClassName: String,
958
- emptyText: Object,
959
- indicator: Object
960
- },
961
- setup(e, {
962
- slots: t
963
- }) {
964
- const n = da({
965
- suffixCls: "app",
966
- isPor: !0
967
- }), {
968
- wrapSSR: a,
969
- hashId: i
970
- } = Z("BaseApp", [ca], n), l = w(() => ua(ma, t, e)), d = w(() => [i.value, n, e.rootClassName]);
971
- return aa({
972
- emptyText: w(() => l.value.emptyText),
973
- indicator: w(() => l.value.indicator)
974
- }), () => {
975
- var m;
976
- return a(o("div", {
977
- class: d.value
978
- }, [(m = t.default) == null ? void 0 : m.call(t)]));
979
- };
980
- }
981
- });
982
- Pe.install = (e) => (e.component(Pe.name, Pe), e);
983
- const he = {
984
- pageHeaderRender: {
985
- type: [Object, Function, Boolean],
986
- default: () => {
987
- }
988
- },
989
- contentRender: {
990
- type: [Object, Function, Boolean],
991
- default: () => {
992
- }
993
- },
994
- breadcrumbRender: {
995
- type: [Object, Function, Boolean],
996
- default: () => {
997
- }
998
- },
999
- pageContentStyle: z.style,
1000
- loading: z.bool.def(!1),
1001
- usePageCard: z.bool.def(!0),
1002
- waterMark: z.bool.def(!0),
1003
- pageCardProps: Object
1004
- }, fa = (e) => ({
1005
- [e.componentCls]: {
1006
- background: e.colorBgContainer,
1007
- padding: `${e.paddingLG}px`,
1008
- "&-has-breadcrumb": {
1009
- paddingBlock: `${e.paddingSM}px`
1010
- },
1011
- "&-content": {
1012
- marginTop: "8px"
1013
- }
1014
- }
1015
- }), ha = /* @__PURE__ */ E({
1016
- name: "ProPageHeader",
1017
- props: {
1018
- content: he.contentRender,
1019
- breadcrumb: he.breadcrumbRender
1020
- },
1021
- setup(e) {
1022
- const {
1023
- breadcrumb: t,
1024
- getPrefixCls: n
1025
- } = J(), a = n({
1026
- isPor: !0,
1027
- suffixCls: "page-header"
1028
- }), {
1029
- wrapSSR: i,
1030
- hashId: l
1031
- } = Z("ProPageHeader", [fa], a), d = w(() => {
1032
- var m;
1033
- return {
1034
- ...t.value,
1035
- itemRender: ((m = t.value) == null ? void 0 : m.itemRender) || (({
1036
- route: y
1037
- }) => o(dn, {
1038
- to: y.path
1039
- }, {
1040
- default: () => [y.breadcrumbName]
1041
- }))
1042
- };
1043
- });
1044
- return () => {
1045
- var m, y;
1046
- return i(o("div", {
1047
- class: [`${a}`, l.value, `${a}-has-breadcrumb`]
1048
- }, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, d.value) : o(nn, d.value, null), e.content && o("div", {
1049
- class: [`${a}-content`, l.value]
1050
- }, [(y = e.content) == null ? void 0 : y.call(e)])]));
1051
- };
1052
- }
1053
- }), ga = (e) => {
1054
- var t, n, a, i, l, d, m, y;
1055
- return {
1056
- [`${e.proComponentsCls}-basic-layout`]: {
1057
- [e.componentCls]: {
1058
- marginInline: -(((n = (t = e.layout) == null ? void 0 : t.pageContainer) == null ? void 0 : n.paddingBlockPageContainerContent) ?? 24),
1059
- marginBlockStart: -(((i = (a = e.layout) == null ? void 0 : a.pageContainer) == null ? void 0 : i.paddingBlockPageContainerContent) ?? 24)
1060
- },
1061
- [e.gridContent]: {
1062
- width: "100%"
1063
- }
1064
- },
1065
- [e.componentCls]: {
1066
- ["&-children-content"]: {
1067
- marginInline: ((d = (l = e.layout) == null ? void 0 : l.pageContainer) == null ? void 0 : d.paddingBlockPageContainerContent) ?? 24,
1068
- marginBlockStart: ((y = (m = e.layout) == null ? void 0 : m.pageContainer) == null ? void 0 : y.paddingBlockPageContainerContent) ?? 24,
1069
- padding: "inherit"
1070
- }
1071
- }
1072
- };
1073
- };
1074
- function ya(e) {
1075
- return We("ProPageContainter", (t) => {
1076
- const n = Ke(t, {
1077
- gridContent: `${t.proComponentsCls}-grid-content`
1078
- });
1079
- return [ga(n)];
1080
- }, e);
1081
- }
1082
- function ba(e) {
1083
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
1084
- }
1085
- const Cl = /* @__PURE__ */ E({
1086
- inheritAttrs: !1,
1087
- name: "GProPageContainer",
1088
- props: he,
1089
- setup(e, {
1090
- slots: t
1091
- }) {
1092
- const {
1093
- getPrefixCls: n,
1094
- hasContentWide: a,
1095
- waterMark: i,
1096
- pageHeaderRender: l,
1097
- pageContentStyle: d,
1098
- pageCardProps: m,
1099
- usePageCard: y
1100
- } = J(), {
1101
- indicator: p
1102
- } = oa(), x = n({
1103
- suffixCls: "page-container",
1104
- isPor: !0
1105
- }), r = n({
1106
- suffixCls: "grid-content",
1107
- isPor: !0
1108
- }), T = w(() => e.pageCardProps || m.value), S = w(() => e.pageContentStyle || d.value), {
1109
- wrapSSR: R,
1110
- hashId: s
1111
- } = ya(x), I = () => {
1112
- var c;
1113
- return o("div", {
1114
- class: `${x}-children-content ${s.value}`
1115
- }, [(In(e.usePageCard) ? e.usePageCard : y.value) ? o(an, X(T.value ? ue(T.value, ["loading", "bodyStyle"]) : {}, {
1116
- style: a.value ? {
1117
- minHeight: "853px"
1118
- } : void 0,
1119
- bordered: !1
1120
- }), {
1121
- default: () => {
1122
- var f;
1123
- return [(f = t.default) == null ? void 0 : f.call(t)];
1124
- }
1125
- }) : (c = t.default) == null ? void 0 : c.call(t)]);
1126
- }, g = () => {
1127
- let c;
1128
- return o(q, null, [e.waterMark || i.value ? o(Sn, null, ba(c = I()) ? c : {
1129
- default: () => [c]
1130
- }) : I()]);
1131
- };
1132
- return () => {
1133
- const c = K(t, e, "pageHeaderRender") || l.value, f = K(t, e, "breadcrumbRender"), v = K(t, e, "contentRender");
1134
- return R(o(Ie, {
1135
- spinning: e.loading,
1136
- indicator: p == null ? void 0 : p.value
1137
- }, {
1138
- default: () => [o("div", {
1139
- class: {
1140
- [`${s.value}`]: !0,
1141
- [`${x}`]: !0
1142
- }
1143
- }, [!a.value && c !== !1 && (c ? c == null ? void 0 : c() : o(ha, {
1144
- breadcrumb: f,
1145
- content: v
1146
- }, null)), o("div", {
1147
- class: [r, s.value]
1148
- }, [o("div", {
1149
- class: `${r}-children ${s.value}`,
1150
- style: S.value
1151
- }, [g()])])])]
1152
- }));
1153
- };
1154
- }
1155
- }), Ze = {
1156
- ...oe,
1157
- logo: ae.logo,
1158
- logoStyle: ae.logoStyle,
1159
- logoDirection: ae.logoDirection,
1160
- menuLoading: Boolean,
1161
- autoHideHeader: Boolean,
1162
- collapsed: Boolean,
1163
- isMobile: Boolean,
1164
- siderWidth: G.siderWidth,
1165
- headerTheme: {
1166
- type: String,
1167
- default: "dark"
1168
- },
1169
- menuData: {
1170
- type: Array,
1171
- default: () => []
1172
- },
1173
- menuRender: {
1174
- type: [Object, Function],
1175
- default: () => {
1176
- }
1177
- },
1178
- extraRightDropdownRender: {
1179
- type: [Object, Function],
1180
- default: () => {
1181
- }
1182
- },
1183
- rightContentRender: {
1184
- type: [Object, Function],
1185
- default: () => {
1186
- }
1187
- },
1188
- collapsedButtonRender: G.collapsedButtonRender,
1189
- matchMenuKeys: G.matchMenuKeys,
1190
- onCollapse: G.onCollapse,
1191
- onOpenKeys: G.onOpenKeys,
1192
- onMenuHeaderClick: Function,
1193
- onSelect: G.onSelect
1194
- }, Ft = {
1195
- ...Ze,
1196
- headerTitleRender: {
1197
- type: [Object, Function],
1198
- default: () => {
1199
- }
1200
- },
1201
- headerRender: {
1202
- type: [Object, Function],
1203
- default: () => {
1204
- }
1205
- },
1206
- headerContentRender: {
1207
- type: [Object, Function],
1208
- default: () => {
1209
- }
1210
- },
1211
- hasSiderMenu: Boolean,
1212
- collapsedWidth: G.collapsedWidth,
1213
- siderWidth: G.siderWidth
1214
- }, Pt = {
1215
- loading: z.looseBool,
1216
- isMobile: G.isMobile,
1217
- collapsed: Xe.collapsed,
1218
- siderWidth: G.siderWidth,
1219
- collapsedWidth: G.collapsedWidth,
1220
- isFixedMultiTab: oe.fixedMultiTab,
1221
- onReloadPage: {
1222
- type: Function
1223
- },
1224
- onChangeTabs: {
1225
- type: Function
1226
- },
1227
- "onUpdate:tabs": {
1228
- type: Function
1229
- }
1230
- }, pa = (e) => ({
1231
- [e.componentCls]: {
1232
- marginBlock: 0,
1233
- marginBlockStart: 48,
1234
- marginBlockEnd: 24,
1235
- marginInline: 0,
1236
- paddingBlock: 0,
1237
- paddingInline: 16,
1238
- textAlign: "center",
1239
- "&-links": {
1240
- marginBottom: 8,
1241
- a: {
1242
- color: e.colorTextSecondary,
1243
- textDecoration: e.linkDecoration,
1244
- "&:hover": {
1245
- color: e.colorPrimary
1246
- }
1247
- },
1248
- "a:not(:last-child)": {
1249
- marginInlineEnd: 40
1250
- }
1251
- },
1252
- "&-copyright": {
1253
- fontSize: "14px",
1254
- color: e.colorTextSecondary,
1255
- a: {
1256
- color: e.colorTextSecondary,
1257
- textDecoration: e.linkDecoration
1258
- }
1259
- }
1260
- }
1261
- }), Lt = [{
1262
- key: "Ant Design Pro",
1263
- title: "Ant Design Pro",
1264
- href: "https://pro.ant.design",
1265
- blankTarget: !0
1266
- }, {
1267
- key: "gitee",
1268
- title: o(hn, null, null),
1269
- href: "https://gitee.com/gx12358/vue-antd-admin",
1270
- blankTarget: !0
1271
- }, {
1272
- key: "Ant Design Vue",
1273
- title: "Ant Design Vue",
1274
- href: "https://next.antdv.com/components/overview-cn/",
1275
- blankTarget: !0
1276
- }], De = /* @__PURE__ */ E({
1277
- name: "GlobalFooter",
1278
- props: {
1279
- links: {
1280
- type: [Array, Boolean],
1281
- default: Lt
1282
- },
1283
- copyright: {
1284
- type: [Object, Function, Boolean, String],
1285
- default: "皖ICP备2022010510号-1"
1286
- }
1287
- },
1288
- setup(e) {
1289
- const t = fe({
1290
- suffixCls: "global-footer",
1291
- isPor: !0
1292
- }), {
1293
- wrapSSR: n,
1294
- hashId: a
1295
- } = Z("ProLayoutFooter", [pa], t);
1296
- return () => n(o(on, {
1297
- style: {
1298
- padding: 0
1299
- }
1300
- }, {
1301
- default: () => [o("div", {
1302
- class: [t, a.value]
1303
- }, [e.links && o("div", {
1304
- class: `${t}-links ${a.value}`
1305
- }, [e.links.map((i) => o("a", {
1306
- key: i.key,
1307
- title: i.key,
1308
- target: i.blankTarget ? "_blank" : "_self",
1309
- href: i.href
1310
- }, [i.title]))]), e.copyright && o("div", {
1311
- class: `${t}-copyright ${a.value}`
1312
- }, [Q("Copyright  2022  "), o("a", {
1313
- href: "https://beian.miit.gov.cn/"
1314
- }, [e.copyright])])])]
1315
- }));
1316
- }
1317
- }), Dt = {
1318
- ...oe,
1319
- ...Ze,
1320
- ...G,
1321
- ...Ft,
1322
- ...Pt,
1323
- ...he,
1324
- pure: Boolean,
1325
- token: Object,
1326
- waterMark: {
1327
- type: Boolean,
1328
- default: !0
1329
- },
1330
- /**
1331
- * 是否禁用移动端模式,有的管理系统不需要移动端模式,此属性设置为true即可
1332
- */
1333
- disableMobile: {
1334
- type: Boolean,
1335
- required: !1
1336
- },
1337
- contentStyle: {
1338
- type: [String, Object],
1339
- default: () => null
1340
- },
1341
- breadcrumb: {
1342
- type: [Object, Function],
1343
- default: () => null
1344
- },
1345
- disableContentMargin: z.looseBool,
1346
- isChildrenLayout: z.looseBool,
1347
- loading: z.looseBool,
1348
- footerLinks: {
1349
- type: [Array, Boolean],
1350
- default: Lt
1351
- },
1352
- copyrightRender: {
1353
- type: [Object, Function, Boolean, String],
1354
- default: () => {
1355
- }
1356
- },
1357
- footerRender: {
1358
- type: [Object, Function, Boolean],
1359
- default: () => {
1360
- }
1361
- },
1362
- menuData: {
1363
- type: Array,
1364
- default: () => []
1365
- },
1366
- collapsed: z.looseBool
1367
- }, va = (e) => ({
1368
- [e.componentCls]: {
1369
- display: "flex",
1370
- flexDirection: "column",
1371
- width: "100%",
1372
- minHeight: "100vh"
1373
- }
1374
- }), xa = (e) => {
1375
- var t, n;
1376
- return {
1377
- [e.componentCls]: {
1378
- a: {
1379
- color: e.colorPrimary,
1380
- "&:hover": {
1381
- color: e.colorPrimaryHover
1382
- }
1383
- },
1384
- [`&${e.componentCls}-wide`]: {
1385
- backgroundColor: e.colorBgLayout,
1386
- [`${e.componentCls}-content`]: {
1387
- margin: 0,
1388
- marginInlineStart: 20
1389
- }
1390
- },
1391
- [`${e.componentCls}-content`]: {
1392
- position: "relative",
1393
- margin: (n = (t = e.layout) == null ? void 0 : t.pageContainer) == null ? void 0 : n.paddingBlockPageContainerContent
1394
- },
1395
- [`${e.componentCls}-container`]: {
1396
- width: "100%",
1397
- display: "flex",
1398
- flexDirection: "column",
1399
- minWidth: 0,
1400
- minHeight: 0,
1401
- backgroundColor: "transparent"
1402
- }
1403
- }
1404
- };
1405
- }, Ca = (e) => {
1406
- var t, n;
1407
- return {
1408
- [`${e.componentCls}`]: {
1409
- "&-fixed": {
1410
- width: "100%",
1411
- height: 62,
1412
- background: "transparent"
1413
- }
1414
- },
1415
- [`${e.componentWrapCls}`]: {
1416
- background: e.colorBgContainer,
1417
- [`${e.antCls}-tabs-nav`]: {
1418
- paddingLeft: 16,
1419
- [`${e.antCls}-tabs-tab:not(${e.antCls}-tabs-tab-active)`]: {
1420
- borderBottomColor: "transparent"
1421
- },
1422
- [`${e.componentCls}-title`]: {
1423
- display: "flex",
1424
- alignItems: "center",
1425
- gap: 8,
1426
- [`${e.componentCls}-reload-btn,${e.componentCls}-close-btn`]: {
1427
- color: e.colorTextSecondary,
1428
- fontSize: 12,
1429
- margin: 0,
1430
- cursor: "pointer",
1431
- transition: "color .3s",
1432
- "&:hover": {
1433
- color: e.colorPrimary
1434
- }
1435
- }
1436
- },
1437
- [`${e.componentCls}-dropdown-menu-btn`]: {
1438
- marginInlineEnd: 8,
1439
- padding: 12,
1440
- fontSize: 16,
1441
- cursor: "pointer"
1442
- }
1443
- },
1444
- "&-fixed": {
1445
- position: "fixed",
1446
- height: 62,
1447
- top: ((n = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : n.heightLayoutHeader) || A.headerHeight,
1448
- right: 0,
1449
- zIndex: 9,
1450
- transition: "width .2s"
1451
- }
1452
- }
1453
- };
1454
- };
1455
- function wa(e) {
1456
- return We("ProMultiTabs", (t) => {
1457
- const n = Ke(t, {
1458
- componentWrapCls: `${t.componentCls}-wrap`
1459
- });
1460
- return [Ca(n)];
1461
- }, e);
1462
- }
1463
- const Sa = [
1464
- {
1465
- key: "closeOthersTabs",
1466
- label: "关闭其他"
1467
- },
1468
- {
1469
- key: "closeLeftTabs",
1470
- label: "关闭左侧"
1471
- },
1472
- {
1473
- key: "closeRightTabs",
1474
- label: "关闭右侧"
1475
- },
1476
- {
1477
- key: "reloadPage",
1478
- label: "刷新当前页"
1479
- }
1480
- ];
1481
- function Ia(e) {
1482
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
1483
- }
1484
- const Oa = Ae.TabPane, Ma = ee.Item, Ra = /* @__PURE__ */ E({
1485
- props: {
1486
- ...Pt,
1487
- visible: {
1488
- type: Boolean,
1489
- default: !0
1490
- }
1491
- },
1492
- inheritAttrs: !1,
1493
- setup(e) {
1494
- const {
1495
- isMobile: t,
1496
- isFixedMultiTab: n
1497
- } = Be(e), a = ce(!1), i = Ee({
1498
- activeKey: "",
1499
- contextMenuActiveKey: ""
1500
- }), l = je(), {
1501
- menuData: d,
1502
- getPrefixCls: m
1503
- } = J(), y = m({
1504
- isPor: !0,
1505
- suffixCls: "multi-tab"
1506
- }), {
1507
- wrapSSR: p,
1508
- hashId: x
1509
- } = wa(y), r = ce([]);
1510
- le(r, () => {
1511
- var h;
1512
- (h = e.onChangeTabs) == null || h.call(e, Ct(U(r)));
1513
- }, {
1514
- deep: !0
1515
- });
1516
- const T = w(() => l.currentRoute.value.path), S = w(() => n.value && !t.value), R = w(() => S.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), s = w(() => wt(`${y}-wrap`, {
1517
- [`${x.value}`]: !0,
1518
- [`${y}-wrap-fixed`]: e.isFixedMultiTab,
1519
- [`${y}-wrap-loading`]: e.loading
1520
- })), I = w(() => {
1521
- const h = {
1522
- display: e.visible ? void 0 : "none"
1523
- };
1524
- return e.isFixedMultiTab ? {
1525
- margin: 0,
1526
- width: R.value,
1527
- paddingTop: "6px",
1528
- zIndex: 100,
1529
- ...h
1530
- } : h;
1531
- }), g = (h) => h.fullPath === T.value, c = (h) => {
1532
- if (h.name && h.meta && h.meta.tagHidden !== !0) {
1533
- const b = h.fullPath || h.path, k = r.value.find((D) => D.fullPath === b), $ = {
1534
- path: h.path,
1535
- fullPath: b,
1536
- query: h.query,
1537
- params: h.params,
1538
- name: h.name,
1539
- meta: {
1540
- ...h.meta
1541
- }
1542
- };
1543
- k ? Object.assign(k, $) : h.meta.tagFixed ? r.value.unshift($) : r.value.push($), g(h) && (i.activeKey = b);
1544
- }
1545
- }, f = (h) => {
1546
- h.forEach((b) => {
1547
- b.meta && b.meta.tagFixed && c(b), b.children && f(b.children);
1548
- });
1549
- };
1550
- le(() => d.value, (h) => {
1551
- f(h);
1552
- }, {
1553
- deep: !0,
1554
- immediate: !0
1555
- }), le(() => l.currentRoute.value, (h) => {
1556
- c(h);
1557
- }, {
1558
- deep: !0,
1559
- immediate: !0
1560
- });
1561
- const v = () => {
1562
- const h = r.value.slice(-1)[0];
1563
- h ? l.push(h) : l.push("/");
1564
- }, P = async (h) => {
1565
- const b = r.value.find((k) => h === k.fullPath);
1566
- r.value = r.value.filter((k) => k.fullPath !== h), b && g(b) && v();
1567
- }, C = (h) => {
1568
- const b = r.value.find((k) => k.path === h);
1569
- i.activeKey !== (b == null ? void 0 : b.fullPath) && (b != null && b.fullPath) && l.push(b == null ? void 0 : b.fullPath);
1570
- }, O = () => {
1571
- var h;
1572
- a.value = !0, e.onReloadPage && ((h = e.onReloadPage) == null || h.call(e)), setTimeout(() => {
1573
- a.value = !1;
1574
- }, 500);
1575
- }, L = (h) => h.meta && h.meta.tagFixed, B = (h) => i[h], N = (h, b) => {
1576
- const k = r.value.findIndex(($) => $.fullPath === B(b));
1577
- switch (h) {
1578
- case "closeOthersTabs":
1579
- r.value = r.value.filter(($) => {
1580
- var D;
1581
- return $.fullPath === B(b) || ((D = $.meta) == null ? void 0 : D.tagFixed);
1582
- });
1583
- break;
1584
- case "closeLeftTabs":
1585
- k && (r.value = r.value.filter(($, D) => {
1586
- var j;
1587
- return D >= k || ((j = $.meta) == null ? void 0 : j.tagFixed);
1588
- }));
1589
- break;
1590
- case "closeRightTabs":
1591
- k && (r.value = r.value.filter(($, D) => {
1592
- var j;
1593
- return D <= k || ((j = $.meta) == null ? void 0 : j.tagFixed);
1594
- }));
1595
- break;
1596
- case "reloadPage":
1597
- (k === 0 || k) && i.activeKey === B(b) && O();
1598
- break;
1599
- }
1600
- i.activeKey !== B(b) && l.push(B(b));
1601
- }, H = (h, b) => {
1602
- const k = r.value.findIndex(($) => $.fullPath === b);
1603
- switch (h) {
1604
- case "closeOthersTabs":
1605
- return r.value.filter((W, V) => {
1606
- var _;
1607
- return V !== k && !((_ = W.meta) != null && _.tagFixed);
1608
- }).length === 0;
1609
- case "closeLeftTabs":
1610
- return r.value.filter((W, V) => {
1611
- var _;
1612
- return V < k && !((_ = W.meta) != null && _.tagFixed);
1613
- }).length === 0;
1614
- case "closeRightTabs":
1615
- return r.value.filter((W, V) => {
1616
- var _;
1617
- return V > k && !((_ = W.meta) != null && _.tagFixed);
1618
- }).length === 0;
1619
- }
1620
- }, M = (h) => {
1621
- let b;
1622
- const {
1623
- path: k,
1624
- stateType: $
1625
- } = h;
1626
- return o(ee, {
1627
- selectedKeys: [],
1628
- onClick: ({
1629
- key: D
1630
- }) => N(D, $)
1631
- }, Ia(b = Sa.map((D) => o(Ma, {
1632
- key: D.key,
1633
- disabled: H(D.key, k)
1634
- }, {
1635
- default: () => [D.label]
1636
- }))) ? b : {
1637
- default: () => [b]
1638
- });
1639
- }, F = (h) => {
1640
- const {
1641
- router: b
1642
- } = h;
1643
- return o(nt, {
1644
- trigger: "contextmenu",
1645
- overlay: o(M, {
1646
- path: (b == null ? void 0 : b.fullPath) || "",
1647
- stateType: "contextMenuActiveKey"
1648
- }, null),
1649
- onOpenChange: (k) => {
1650
- i.contextMenuActiveKey = k && b.fullPath || "";
1651
- }
1652
- }, {
1653
- default: () => {
1654
- var k;
1655
- return [o("div", {
1656
- class: [`${y}-title`, x.value]
1657
- }, [(k = b.meta) == null ? void 0 : k.title, i.activeKey === b.fullPath && o(yn, {
1658
- class: [`${y}-reload-btn`, x.value],
1659
- spin: a.value,
1660
- onClick: ($) => {
1661
- $.stopPropagation(), !a.value && O();
1662
- }
1663
- }, null), r.value.length > 1 && !L(b) && o(vt, {
1664
- class: [`${y}-close-btn`, x.value],
1665
- onClick: ($) => {
1666
- $.stopPropagation(), !a.value && P((b == null ? void 0 : b.fullPath) || "");
1667
- }
1668
- }, null)])];
1669
- }
1670
- });
1671
- };
1672
- return () => p(o(q, null, [!!e.isFixedMultiTab && Gt(o("div", {
1673
- class: [`${y}-fixed`, x.value]
1674
- }, null), [[Yt, e.visible]]), o(Ae, {
1675
- hideAdd: !0,
1676
- type: "editable-card",
1677
- style: I.value,
1678
- class: s.value,
1679
- activeKey: i.activeKey,
1680
- onTabClick: C
1681
- }, {
1682
- default: () => [r.value.map((h) => o(Oa, {
1683
- key: h.fullPath,
1684
- closable: !1,
1685
- tab: o(F, {
1686
- router: h
1687
- }, null)
1688
- }, null))],
1689
- rightExtra: () => o(nt, {
1690
- overlay: o(M, {
1691
- path: i.activeKey,
1692
- stateType: "activeKey"
1693
- }, null)
1694
- }, {
1695
- default: () => [o(gn, {
1696
- class: [`${y}-dropdown-menu-btn`, x.value],
1697
- rotate: 90
1698
- }, null)]
1699
- })
1700
- })]));
1701
- }
1702
- }), {
1703
- Content: Ba
1704
- } = me, Je = (e, {
1705
- slots: t,
1706
- attrs: n
1707
- }) => {
1708
- var R;
1709
- const {
1710
- hashId: a,
1711
- prefixCls: i,
1712
- isMobile: l,
1713
- loading: d,
1714
- collapsed: m,
1715
- siderWidth: y,
1716
- isShowTabsBar: p,
1717
- isFixedMultiTab: x,
1718
- onReloadPage: r,
1719
- onChangeTabs: T
1720
- } = e;
1721
- if (e.isChildrenLayout)
1722
- return (R = t.default) == null ? void 0 : R.call(t);
1723
- const {
1724
- flatMenuData: S
1725
- } = J();
1726
- return o(q, null, [o(Ra, {
1727
- visible: U(S).length > 0 && p,
1728
- isMobile: l,
1729
- loading: d,
1730
- isFixedMultiTab: x,
1731
- siderWidth: y,
1732
- collapsed: m,
1733
- onReloadPage: r,
1734
- onChangeTabs: T
1735
- }, null), o(Ba, {
1736
- style: n.style,
1737
- class: [`${i}-content`]
1738
- }, {
1739
- default: () => {
1740
- var s;
1741
- return [d && o(Fn, null, null), o("div", {
1742
- class: [`${i}-content-spin-container`, a],
1743
- style: {
1744
- opacity: d ? "0" : void 0
1745
- }
1746
- }, [(s = t.default) == null ? void 0 : s.call(t)])];
1747
- }
1748
- })]);
1749
- };
1750
- Je.inheritAttrs = !1;
1751
- Je.displayName = "wrap-content";
1752
- const ka = (e) => {
1753
- var t, n, a, i;
1754
- return {
1755
- [`${e.proComponentsCls}-basic-layout`]: {
1756
- [`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]: {
1757
- background: ((n = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : n.colorBgMenu) || e.colorBgElevated
1758
- },
1759
- [`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]: {
1760
- background: (i = (a = e.layout) == null ? void 0 : a.header) == null ? void 0 : i.colorDarkBgMenu,
1761
- [`${e.proComponentsCls}-global-header-collapsed-button`]: {
1762
- color: "#fff"
1763
- }
1764
- },
1765
- [`${e.antCls}-layout-header${e.componentCls}`]: {
1766
- zIndex: 19,
1767
- paddingBlock: 0,
1768
- paddingInline: 0,
1769
- WebkitBackdropFilter: "blur(8px)",
1770
- backdropFilter: "blur(8px)",
1771
- transition: "background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)",
1772
- [`&${e.proComponentsCls}`]: {
1773
- "&-fixed-header": {
1774
- position: "fixed",
1775
- width: "100%",
1776
- zIndex: 9,
1777
- top: 0,
1778
- "&-action": {
1779
- transition: "width .3s cubic-bezier(.645,.045,.355,1)"
1780
- }
1781
- },
1782
- "&-header-actions": {
1783
- display: "flex",
1784
- alignItems: "center",
1785
- fontSize: "16",
1786
- cursor: "pointer",
1787
- "& &-item": {
1788
- paddingBlock: 0,
1789
- paddingInline: 8,
1790
- "&:hover": {
1791
- color: e.colorText
1792
- }
1793
- }
1794
- },
1795
- "&-header-realDark": { boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 65%)" },
1796
- "&-header-actions-header-action": {
1797
- transition: "width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"
1798
- }
1799
- }
1800
- }
1801
- }
1802
- };
1803
- };
1804
- function de() {
1805
- return de = Object.assign ? Object.assign.bind() : function(e) {
1806
- for (var t = 1; t < arguments.length; t++) {
1807
- var n = arguments[t];
1808
- for (var a in n)
1809
- Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
1810
- }
1811
- return e;
1812
- }, de.apply(this, arguments);
1813
- }
1814
- var zt = function() {
1815
- if (typeof Map < "u")
1816
- return Map;
1817
- function e(t, n) {
1818
- var a = -1;
1819
- return t.some(function(i, l) {
1820
- return i[0] === n ? (a = l, !0) : !1;
1821
- }), a;
1822
- }
1823
- return (
1824
- /** @class */
1825
- function() {
1826
- function t() {
1827
- this.__entries__ = [];
1828
- }
1829
- return Object.defineProperty(t.prototype, "size", {
1830
- /**
1831
- * @returns {boolean}
1832
- */
1833
- get: function() {
1834
- return this.__entries__.length;
1835
- },
1836
- enumerable: !0,
1837
- configurable: !0
1838
- }), t.prototype.get = function(n) {
1839
- var a = e(this.__entries__, n), i = this.__entries__[a];
1840
- return i && i[1];
1841
- }, t.prototype.set = function(n, a) {
1842
- var i = e(this.__entries__, n);
1843
- ~i ? this.__entries__[i][1] = a : this.__entries__.push([n, a]);
1844
- }, t.prototype.delete = function(n) {
1845
- var a = this.__entries__, i = e(a, n);
1846
- ~i && a.splice(i, 1);
1847
- }, t.prototype.has = function(n) {
1848
- return !!~e(this.__entries__, n);
1849
- }, t.prototype.clear = function() {
1850
- this.__entries__.splice(0);
1851
- }, t.prototype.forEach = function(n, a) {
1852
- a === void 0 && (a = null);
1853
- for (var i = 0, l = this.__entries__; i < l.length; i++) {
1854
- var d = l[i];
1855
- n.call(a, d[1], d[0]);
1856
- }
1857
- }, t;
1858
- }()
1859
- );
1860
- }(), ze = typeof window < "u" && typeof document < "u" && window.document === document, Me = function() {
1861
- return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
1862
- }(), $a = function() {
1863
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Me) : function(e) {
1864
- return setTimeout(function() {
1865
- return e(Date.now());
1866
- }, 1e3 / 60);
1867
- };
1868
- }(), Ta = 2;
1869
- function Fa(e, t) {
1870
- var n = !1, a = !1, i = 0;
1871
- function l() {
1872
- n && (n = !1, e()), a && m();
1873
- }
1874
- function d() {
1875
- $a(l);
1876
- }
1877
- function m() {
1878
- var y = Date.now();
1879
- if (n) {
1880
- if (y - i < Ta)
1881
- return;
1882
- a = !0;
1883
- } else
1884
- n = !0, a = !1, setTimeout(d, t);
1885
- i = y;
1886
- }
1887
- return m;
1888
- }
1889
- var Pa = 20, La = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Da = typeof MutationObserver < "u", za = (
1890
- /** @class */
1891
- function() {
1892
- function e() {
1893
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Fa(this.refresh.bind(this), Pa);
1894
- }
1895
- return e.prototype.addObserver = function(t) {
1896
- ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
1897
- }, e.prototype.removeObserver = function(t) {
1898
- var n = this.observers_, a = n.indexOf(t);
1899
- ~a && n.splice(a, 1), !n.length && this.connected_ && this.disconnect_();
1900
- }, e.prototype.refresh = function() {
1901
- var t = this.updateObservers_();
1902
- t && this.refresh();
1903
- }, e.prototype.updateObservers_ = function() {
1904
- var t = this.observers_.filter(function(n) {
1905
- return n.gatherActive(), n.hasActive();
1906
- });
1907
- return t.forEach(function(n) {
1908
- return n.broadcastActive();
1909
- }), t.length > 0;
1910
- }, e.prototype.connect_ = function() {
1911
- !ze || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Da ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
1912
- attributes: !0,
1913
- childList: !0,
1914
- characterData: !0,
1915
- subtree: !0
1916
- })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
1917
- }, e.prototype.disconnect_ = function() {
1918
- !ze || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
1919
- }, e.prototype.onTransitionEnd_ = function(t) {
1920
- var n = t.propertyName, a = n === void 0 ? "" : n, i = La.some(function(l) {
1921
- return !!~a.indexOf(l);
1922
- });
1923
- i && this.refresh();
1924
- }, e.getInstance = function() {
1925
- return this.instance_ || (this.instance_ = new e()), this.instance_;
1926
- }, e.instance_ = null, e;
1927
- }()
1928
- ), Nt = function(e, t) {
1929
- for (var n = 0, a = Object.keys(t); n < a.length; n++) {
1930
- var i = a[n];
1931
- Object.defineProperty(e, i, {
1932
- value: t[i],
1933
- enumerable: !1,
1934
- writable: !1,
1935
- configurable: !0
1936
- });
1937
- }
1938
- return e;
1939
- }, re = function(e) {
1940
- var t = e && e.ownerDocument && e.ownerDocument.defaultView;
1941
- return t || Me;
1942
- }, Ht = Te(0, 0, 0, 0);
1943
- function Re(e) {
1944
- return parseFloat(e) || 0;
1945
- }
1946
- function st(e) {
1947
- for (var t = [], n = 1; n < arguments.length; n++)
1948
- t[n - 1] = arguments[n];
1949
- return t.reduce(function(a, i) {
1950
- var l = e["border-" + i + "-width"];
1951
- return a + Re(l);
1952
- }, 0);
1953
- }
1954
- function Na(e) {
1955
- for (var t = ["top", "right", "bottom", "left"], n = {}, a = 0, i = t; a < i.length; a++) {
1956
- var l = i[a], d = e["padding-" + l];
1957
- n[l] = Re(d);
1958
- }
1959
- return n;
1960
- }
1961
- function Ha(e) {
1962
- var t = e.getBBox();
1963
- return Te(0, 0, t.width, t.height);
1964
- }
1965
- function _a(e) {
1966
- var t = e.clientWidth, n = e.clientHeight;
1967
- if (!t && !n)
1968
- return Ht;
1969
- var a = re(e).getComputedStyle(e), i = Na(a), l = i.left + i.right, d = i.top + i.bottom, m = Re(a.width), y = Re(a.height);
1970
- if (a.boxSizing === "border-box" && (Math.round(m + l) !== t && (m -= st(a, "left", "right") + l), Math.round(y + d) !== n && (y -= st(a, "top", "bottom") + d)), !Va(e)) {
1971
- var p = Math.round(m + l) - t, x = Math.round(y + d) - n;
1972
- Math.abs(p) !== 1 && (m -= p), Math.abs(x) !== 1 && (y -= x);
1973
- }
1974
- return Te(i.left, i.top, m, y);
1975
- }
1976
- var Ea = function() {
1977
- return typeof SVGGraphicsElement < "u" ? function(e) {
1978
- return e instanceof re(e).SVGGraphicsElement;
1979
- } : function(e) {
1980
- return e instanceof re(e).SVGElement && typeof e.getBBox == "function";
1981
- };
1982
- }();
1983
- function Va(e) {
1984
- return e === re(e).document.documentElement;
1985
- }
1986
- function Aa(e) {
1987
- return ze ? Ea(e) ? Ha(e) : _a(e) : Ht;
1988
- }
1989
- function ja(e) {
1990
- var t = e.x, n = e.y, a = e.width, i = e.height, l = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, d = Object.create(l.prototype);
1991
- return Nt(d, {
1992
- x: t,
1993
- y: n,
1994
- width: a,
1995
- height: i,
1996
- top: n,
1997
- right: t + a,
1998
- bottom: i + n,
1999
- left: t
2000
- }), d;
2001
- }
2002
- function Te(e, t, n, a) {
2003
- return { x: e, y: t, width: n, height: a };
2004
- }
2005
- var Wa = (
2006
- /** @class */
2007
- function() {
2008
- function e(t) {
2009
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Te(0, 0, 0, 0), this.target = t;
2010
- }
2011
- return e.prototype.isActive = function() {
2012
- var t = Aa(this.target);
2013
- return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
2014
- }, e.prototype.broadcastRect = function() {
2015
- var t = this.contentRect_;
2016
- return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
2017
- }, e;
2018
- }()
2019
- ), Ka = (
2020
- /** @class */
2021
- function() {
2022
- function e(t, n) {
2023
- var a = ja(n);
2024
- Nt(this, { target: t, contentRect: a });
2025
- }
2026
- return e;
2027
- }()
2028
- ), Ua = (
2029
- /** @class */
2030
- function() {
2031
- function e(t, n, a) {
2032
- if (this.activeObservations_ = [], this.observations_ = new zt(), typeof t != "function")
2033
- throw new TypeError("The callback provided as parameter 1 is not a function.");
2034
- this.callback_ = t, this.controller_ = n, this.callbackCtx_ = a;
2035
- }
2036
- return e.prototype.observe = function(t) {
2037
- if (!arguments.length)
2038
- throw new TypeError("1 argument required, but only 0 present.");
2039
- if (!(typeof Element > "u" || !(Element instanceof Object))) {
2040
- if (!(t instanceof re(t).Element))
2041
- throw new TypeError('parameter 1 is not of type "Element".');
2042
- var n = this.observations_;
2043
- n.has(t) || (n.set(t, new Wa(t)), this.controller_.addObserver(this), this.controller_.refresh());
2044
- }
2045
- }, e.prototype.unobserve = function(t) {
2046
- if (!arguments.length)
2047
- throw new TypeError("1 argument required, but only 0 present.");
2048
- if (!(typeof Element > "u" || !(Element instanceof Object))) {
2049
- if (!(t instanceof re(t).Element))
2050
- throw new TypeError('parameter 1 is not of type "Element".');
2051
- var n = this.observations_;
2052
- n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
2053
- }
2054
- }, e.prototype.disconnect = function() {
2055
- this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
2056
- }, e.prototype.gatherActive = function() {
2057
- var t = this;
2058
- this.clearActive(), this.observations_.forEach(function(n) {
2059
- n.isActive() && t.activeObservations_.push(n);
2060
- });
2061
- }, e.prototype.broadcastActive = function() {
2062
- if (this.hasActive()) {
2063
- var t = this.callbackCtx_, n = this.activeObservations_.map(function(a) {
2064
- return new Ka(a.target, a.broadcastRect());
2065
- });
2066
- this.callback_.call(t, n, t), this.clearActive();
2067
- }
2068
- }, e.prototype.clearActive = function() {
2069
- this.activeObservations_.splice(0);
2070
- }, e.prototype.hasActive = function() {
2071
- return this.activeObservations_.length > 0;
2072
- }, e;
2073
- }()
2074
- ), _t = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new zt(), Et = (
2075
- /** @class */
2076
- function() {
2077
- function e(t) {
2078
- if (!(this instanceof e))
2079
- throw new TypeError("Cannot call a class as a function.");
2080
- if (!arguments.length)
2081
- throw new TypeError("1 argument required, but only 0 present.");
2082
- var n = za.getInstance(), a = new Ua(t, n, this);
2083
- _t.set(this, a);
2084
- }
2085
- return e;
2086
- }()
2087
- );
2088
- [
2089
- "observe",
2090
- "unobserve",
2091
- "disconnect"
2092
- ].forEach(function(e) {
2093
- Et.prototype[e] = function() {
2094
- var t;
2095
- return (t = _t.get(this))[e].apply(t, arguments);
2096
- };
2097
- });
2098
- var Xa = function() {
2099
- return typeof Me.ResizeObserver < "u" ? Me.ResizeObserver : Et;
2100
- }();
2101
- const Ga = (e) => {
2102
- var t;
2103
- let n = ((t = e == null ? void 0 : e.vnode) === null || t === void 0 ? void 0 : t.el) || e && (e.$el || e);
2104
- for (; n && !n.tagName; )
2105
- n = n.nextSibling;
2106
- return n;
2107
- }, Ya = E({
2108
- compatConfig: {
2109
- MODE: 3
2110
- },
2111
- name: "ResizeObserver",
2112
- props: {
2113
- disabled: Boolean,
2114
- onResize: Function
2115
- },
2116
- emits: ["resize"],
2117
- setup(e, t) {
2118
- let {
2119
- slots: n
2120
- } = t;
2121
- const a = Ee({
2122
- width: 0,
2123
- height: 0,
2124
- offsetHeight: 0,
2125
- offsetWidth: 0
2126
- });
2127
- let i = null, l = null;
2128
- const d = () => {
2129
- l && (l.disconnect(), l = null);
2130
- }, m = (x) => {
2131
- const {
2132
- onResize: r
2133
- } = e, T = x[0].target, {
2134
- width: S,
2135
- height: R
2136
- } = T.getBoundingClientRect(), {
2137
- offsetWidth: s,
2138
- offsetHeight: I
2139
- } = T, g = Math.floor(S), c = Math.floor(R);
2140
- if (a.width !== g || a.height !== c || a.offsetWidth !== s || a.offsetHeight !== I) {
2141
- const f = {
2142
- width: g,
2143
- height: c,
2144
- offsetWidth: s,
2145
- offsetHeight: I
2146
- };
2147
- de(a, f), r && Promise.resolve().then(() => {
2148
- r(de(de({}, f), {
2149
- offsetWidth: s,
2150
- offsetHeight: I
2151
- }), T);
2152
- });
2153
- }
2154
- }, y = qt(), p = () => {
2155
- const {
2156
- disabled: x
2157
- } = e;
2158
- if (x) {
2159
- d();
2160
- return;
2161
- }
2162
- const r = Ga(y);
2163
- r !== i && (d(), i = r), !l && r && (l = new Xa(m), l.observe(r));
2164
- };
2165
- return bt(() => {
2166
- p();
2167
- }), Zt(() => {
2168
- p();
2169
- }), Jt(() => {
2170
- d();
2171
- }), le(() => e.disabled, () => {
2172
- p();
2173
- }, {
2174
- flush: "post"
2175
- }), () => {
2176
- var x;
2177
- return (x = n.default) === null || x === void 0 ? void 0 : x.call(n)[0];
2178
- };
2179
- }
2180
- }), qa = (e) => ({
2181
- [`${e.proComponentsCls}-header`]: {
2182
- "&-light": {
2183
- [`${e.componentCls}-logo`]: {
2184
- h1: {
2185
- color: e.colorBgSpotlight
2186
- }
2187
- }
2188
- }
2189
- },
2190
- [e.componentCls]: {
2191
- position: "relative",
2192
- background: "transparent",
2193
- display: "flex",
2194
- marginBlock: 0,
2195
- paddingInline: 16,
2196
- width: "100%",
2197
- height: "100%",
2198
- boxShadow: "0 1px 4px rgba(0,21,41,.08)",
2199
- boxSizing: "border-box",
2200
- "&-mix": {
2201
- boxShadow: "0 1px 4px 0 rgba(0,21,41,.12)"
2202
- },
2203
- "&-wide": {
2204
- boxShadow: "0 1px 4px 0 rgba(0,21,41,.12)",
2205
- padding: 0,
2206
- [`${e.componentCls}-main`]: {
2207
- margin: "0 auto"
2208
- }
2209
- },
2210
- ["&-main"]: {
2211
- display: "flex",
2212
- width: "100%",
2213
- height: "100%",
2214
- "&-left": {
2215
- display: "flex",
2216
- minWidth: 192
2217
- }
2218
- },
2219
- "> a": {
2220
- height: "100%"
2221
- },
2222
- "> *": {
2223
- height: "100%"
2224
- },
2225
- [`${e.proComponentsCls}-layout-apps-icon`]: {
2226
- marginInlineEnd: 16
2227
- },
2228
- "&-collapsed-button": {
2229
- display: "flex",
2230
- alignItems: "center",
2231
- fontSize: "20px",
2232
- marginInlineEnd: "16px"
2233
- },
2234
- "&-logo": {
2235
- position: "relative",
2236
- marginInlineEnd: "16px",
2237
- a: {
2238
- display: "flex",
2239
- alignItems: "center",
2240
- height: "100%",
2241
- minHeight: "22px",
2242
- fontSize: "20px"
2243
- },
2244
- img: { height: "28px" },
2245
- h1: {
2246
- marginBlock: 0,
2247
- marginInline: 0,
2248
- marginInlineStart: 12,
2249
- fontWeight: "500",
2250
- color: e.colorWhite,
2251
- fontSize: 16
2252
- },
2253
- "&-mix": {
2254
- display: "flex",
2255
- alignItems: "center"
2256
- }
2257
- },
2258
- "&-logo-mobile": {
2259
- minWidth: "24px",
2260
- marginInlineEnd: 0
2261
- }
2262
- }
2263
- }), Vt = {
2264
- ...G,
2265
- ...Ze
2266
- }, Za = (e, t) => e === !1 ? null : e ? e(t, null) : t, Ja = /* @__PURE__ */ E({
2267
- props: Vt,
2268
- setup(e) {
2269
- const t = ce("auto"), n = ({
2270
- width: a
2271
- }) => {
2272
- t.value = a;
2273
- };
2274
- return () => o("div", {
2275
- style: {
2276
- minWidth: typeof t.value == "string" ? t.value : `${t.value}px`
2277
- }
2278
- }, [o("div", {
2279
- style: {
2280
- paddingRight: "8px"
2281
- }
2282
- }, [o(Ya, {
2283
- onResize: n
2284
- }, {
2285
- default: () => [e.rightContentRender && typeof e.rightContentRender == "function" ? o("div", null, [e.rightContentRender({
2286
- ...e
2287
- })]) : o("div", null, null)]
2288
- })])]);
2289
- }
2290
- }), Qa = /* @__PURE__ */ E({
2291
- props: Vt,
2292
- inheritAttrs: !1,
2293
- setup(e, {
2294
- slots: t,
2295
- emit: n
2296
- }) {
2297
- const a = je(), {
2298
- token: i
2299
- } = $e(), {
2300
- getPrefixCls: l,
2301
- openKeys: d,
2302
- selectedKeys: m
2303
- } = J(), {
2304
- width: y
2305
- } = kn(), p = l({
2306
- suffixCls: "global-header",
2307
- isPor: !0
2308
- }), {
2309
- wrapSSR: x,
2310
- hashId: r
2311
- } = Z("ProGlobalHeader", [qa], p), T = w(() => ({
2312
- [`${r.value}`]: !0,
2313
- [`${p}`]: !0,
2314
- [`${p}-${e.layout}`]: !0
2315
- })), S = (g) => {
2316
- var c;
2317
- if (a.currentRoute) {
2318
- const f = a.currentRoute.value.matched.concat();
2319
- e.onSelect && g === "select" && e.onSelect(f.filter((v) => v.name !== "index").map((v) => v.path)), e.onOpenKeys && g === "openKeys" && ((c = e.onOpenKeys) == null || c.call(e, f.filter((v) => v.path !== a.currentRoute.value.path).map((v) => v.path)));
2320
- }
2321
- }, R = () => {
2322
- n("collapse", !e.collapsed);
2323
- }, s = w(() => e.collapsedButtonRender || $t), I = () => {
2324
- var g;
2325
- return o(q, null, [e.layout === "mix" && !e.isMobile && e.splitMenus ? o("div", {
2326
- style: {
2327
- flex: 1
2328
- },
2329
- class: [`${p}-menu`, r.value]
2330
- }, [o(Ve, {
2331
- theme: {
2332
- components: {
2333
- Layout: {
2334
- headerBg: "transparent",
2335
- bodyBg: "transparent"
2336
- },
2337
- Menu: Ot({
2338
- radiusItem: 4,
2339
- colorActiveBarWidth: 0,
2340
- colorActiveBarHeight: 2,
2341
- colorActiveBarBorderSize: 0,
2342
- horizontalItemBorderRadius: 4
2343
- }, i.value || {}, e.theme, "header")
2344
- }
2345
- }
2346
- }, {
2347
- default: () => [o(Rt, X({
2348
- theme: e.theme,
2349
- mode: e.mode,
2350
- collapsed: e.collapsed,
2351
- menuData: e.menuData,
2352
- openKeys: d.value,
2353
- selectedKeys: m.value,
2354
- iconfontUrl: e.iconfontUrl,
2355
- menuItemRender: e.menuItemRender,
2356
- subMenuItemRender: e.subMenuItemRender,
2357
- class: {
2358
- "top-nav-menu": e.mode === "horizontal",
2359
- [`${r.value}`]: !0
2360
- }
2361
- }, {
2362
- "onUpdate:openKeys": () => S("openKeys"),
2363
- "onUpdate:selectedKeys": () => S("select")
2364
- }), null)]
2365
- })]) : o("div", {
2366
- style: {
2367
- flex: 1
2368
- }
2369
- }, [(g = t.default) == null ? void 0 : g.call(t)]), e.layout !== "simple" && o(Ja, X(e, {
2370
- extraRightDropdownRender: e.extraRightDropdownRender,
2371
- rightContentRender: e.rightContentRender
2372
- }), null)]);
2373
- };
2374
- return () => {
2375
- const g = o("span", {
2376
- key: "logo",
2377
- onClick: () => {
2378
- var c;
2379
- return (c = e.onMenuHeaderClick) == null ? void 0 : c.call(e);
2380
- },
2381
- class: [`${p}-logo`, e.isMobile ? "mobile" : "", r.value]
2382
- }, [o("a", null, [kt(e.logo)])]);
2383
- return x(o("div", {
2384
- class: T.value
2385
- }, [e.isMobile ? o(q, null, [Za(e.menuHeaderRender, g), e.isMobile && U(s) && o("span", {
2386
- class: `${p}-collapsed-button ${r.value}`,
2387
- onClick: R
2388
- }, [U(s)(e.collapsed)]), I()]) : e.layout === "mix" || e.layout === "wide" ? o(q, null, [o("div", {
2389
- style: {
2390
- width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
2391
- padding: e.layout === "wide" && y.value < e.wideWidth ? "0 50px" : void 0
2392
- },
2393
- class: `${p}-main ${r.value}`
2394
- }, [o("div", {
2395
- class: `${p}-main-left ${r.value}`
2396
- }, [o(qe, X(e, {
2397
- renderKey: "headerTitleRender"
2398
- }), null)]), I()])]) : I()]));
2399
- };
2400
- }
2401
- });
2402
- function eo(e) {
2403
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
2404
- }
2405
- const {
2406
- Header: ut
2407
- } = me, Ne = /* @__PURE__ */ E({
2408
- inheritAttrs: !1,
2409
- props: Ft,
2410
- setup(e) {
2411
- const {
2412
- theme: t,
2413
- isMobile: n,
2414
- fixedHeader: a,
2415
- headerHeight: i,
2416
- layout: l,
2417
- onCollapse: d,
2418
- splitMenus: m
2419
- } = Be(e), {
2420
- getPrefixCls: y,
2421
- menuData: p
2422
- } = J(), x = y({
2423
- suffixCls: "header",
2424
- isPor: !0
2425
- }), r = y({
2426
- suffixCls: "fixed-header",
2427
- isPor: !0
2428
- }), {
2429
- wrapSSR: T,
2430
- hashId: S
2431
- } = Z("ProLayoutHeader", [ka], x), R = w(() => l.value === "wide"), s = w(() => a.value), I = w(() => l.value === "mix" || R.value), g = w(() => l.value === "side" || l.value === "simple"), c = w(() => g.value && "light" || t.value), f = w(() => ({
2432
- [`${S.value}`]: !0,
2433
- [`${x}-${c.value}`]: !0,
2434
- [`${x}`]: !0,
2435
- [`${r}`]: s.value
2436
- })), v = w(() => s.value && !n.value), P = w(() => m.value ? p.value && En(p.value) || [] : []), C = w(() => g.value && v.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), O = w(() => s.value ? 0 : void 0), L = () => {
2437
- const B = o(Qa, X(e, {
2438
- theme: c.value,
2439
- mode: "horizontal",
2440
- onCollapse: d.value,
2441
- menuData: P.value
2442
- }), {
2443
- default: () => [I.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
2444
- });
2445
- return e.headerRender ? e.headerRender(e, B) : B;
2446
- };
2447
- return () => {
2448
- let B;
2449
- return T(o(q, null, [s.value && !R.value && o(ut, {
2450
- theme: c.value,
2451
- style: {
2452
- height: `${i.value}px`,
2453
- lineHeight: `${i.value}px`,
2454
- background: "transparent"
2455
- }
2456
- }, null), o(ut, {
2457
- theme: c.value,
2458
- class: f.value,
2459
- style: {
2460
- height: `${i.value}px`,
2461
- lineHeight: `${i.value}px`,
2462
- width: C.value,
2463
- zIndex: g.value ? 100 : 101,
2464
- right: O.value
2465
- }
2466
- }, eo(B = L()) ? B : {
2467
- default: () => [B]
2468
- })]));
2469
- };
2470
- }
2471
- }), to = /* @__PURE__ */ E({
2472
- name: "BaseProLayout",
2473
- inheritAttrs: !1,
2474
- components: {
2475
- GlobalHeader: Ne,
2476
- GlobalFooter: De,
2477
- SiderMenuWrapper: Le
2478
- },
2479
- props: Dt,
2480
- emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
2481
- setup(e, {
2482
- emit: t,
2483
- slots: n
2484
- }) {
2485
- const a = fe({
2486
- suffixCls: "basic-layout",
2487
- isPor: !0
2488
- }), {
2489
- wrapSSR: i,
2490
- hashId: l
2491
- } = Z("ProLayout", [va, xa], a), d = at(), {
2492
- token: m
2493
- } = $e(), y = w(() => {
2494
- var M;
2495
- return (M = m.value) == null ? void 0 : M.colorPrimary;
2496
- });
2497
- Qt(() => {
2498
- y.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", y.value);
2499
- });
2500
- const p = ce(document.body.getBoundingClientRect().width), x = w(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), r = w(() => e.layout === "wide"), T = w(() => x.value), S = w(() => e.collapsed ? e.collapsedWidth : e.siderWidth), R = w(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light");
2501
- bt(() => {
2502
- window.addEventListener("resize", g), g();
2503
- }), en(() => {
2504
- window.removeEventListener("resize", g);
2505
- });
2506
- const s = w(() => (d.value === "sm" || d.value === "xs") && !e.disableMobile && !r.value), I = Ee({
2507
- position: "relative"
2508
- });
2509
- (e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (I.minHeight = 0);
2510
- const g = () => {
2511
- const M = document.body.getBoundingClientRect().width;
2512
- p.value !== M && (d.value = at().value, p.value = M);
2513
- }, c = (M, F) => M.headerRender === !1 || M.pure ? null : o(Ne, X(M, {
2514
- matchMenuKeys: F || []
2515
- }), null), f = w(() => ({
2516
- ...e.breadcrumb,
2517
- itemRender: K(n, e, "breadcrumbRender")
2518
- })), v = w(() => T.value && e.selectedKeys ? Vn(e.menuData, e.selectedKeys[0]) : []), P = (M) => {
2519
- var F;
2520
- (F = e.onCollapse) == null || F.call(e, M);
2521
- }, C = (M) => {
2522
- var F;
2523
- (F = e.onOpenKeys) == null || F.call(e, M);
2524
- }, O = (M) => {
2525
- var F;
2526
- (F = e.onSelect) == null || F.call(e, M);
2527
- }, L = (M) => {
2528
- t("menuHeaderClick", M);
2529
- }, B = (M) => {
2530
- t("menuClick", M);
2531
- }, N = (M) => {
2532
- t("changeTabs", M);
2533
- }, H = () => {
2534
- t("reloadPage");
2535
- };
2536
- return Gn({
2537
- getPrefixCls: fe,
2538
- ...Mt(Be(e), ["layout", "waterMark", "menuData", "openKeys", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader"].concat(Object.keys(he))),
2539
- theme: R.value,
2540
- hasContentWide: r,
2541
- isMobile: s,
2542
- siderWidth: S,
2543
- breadcrumb: f,
2544
- flatMenuData: v,
2545
- hasSide: x,
2546
- flatMenu: T
2547
- }), () => {
2548
- var et;
2549
- const M = K(n, e, "collapsedButtonRender"), F = K(n, e, "headerContentRender"), h = K(n, e, "rightContentRender"), b = K(n, e, "headerRender"), k = K(n, e, "footerRender"), $ = K(n, e, "links"), D = K(n, e, "copyrightRender"), j = K(n, e, "extraRightDropdownRender"), W = K(n, e, "menuHeaderRender"), V = K(n, e, "menuExtraRender"), _ = K(n, e, "menuContentRender"), Y = K(n, e, "menuFooterRender"), ie = K(n, e, "menuItemRender"), ge = K(n, e, "subMenuItemRender"), ye = {
2550
- menuItemRender: ie,
2551
- subMenuItemRender: ge
2552
- }, be = w(() => c({
2553
- ...e,
2554
- ...ye,
2555
- hasSiderMenu: x.value,
2556
- menuData: e.menuData,
2557
- isMobile: U(s),
2558
- onCollapse: P,
2559
- onOpenKeys: C,
2560
- onSelect: O,
2561
- onMenuHeaderClick: L,
2562
- rightContentRender: h,
2563
- extraRightDropdownRender: j,
2564
- headerTitleRender: W,
2565
- headerContentRender: F,
2566
- headerRender: b,
2567
- theme: R.value
2568
- }, e.matchMenuKeys)), pe = w(() => ({
2569
- [`${l.value}`]: !0,
2570
- [`${a}`]: !0,
2571
- [`${a}-${e.layout}`]: !0
2572
- })), Kt = w(() => r.value ? {
2573
- minWidth: `${e.wideWidth}px`
2574
- } : void 0), Ut = w(() => r.value ? {
2575
- width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
2576
- paddingTop: `${e.headerHeight + 20}px`,
2577
- margin: r.value ? "0 auto" : void 0
2578
- } : void 0), Qe = w(() => r.value ? {
2579
- minHeight: "835px"
2580
- } : {});
2581
- return i(o(q, null, [e.pure ? (et = n.default) == null ? void 0 : et.call(n) : o("div", {
2582
- class: pe.value,
2583
- style: Kt.value
2584
- }, [o(me, {
2585
- style: Ut.value
2586
- }, {
2587
- default: () => [o(Le, X(Ue(e, ["pure", "onCollapse", "onSelect", "onOpenKeys", "onMenuClick", "theme"]), {
2588
- links: $,
2589
- theme: R.value,
2590
- isMobile: s.value,
2591
- menuHeaderRender: W,
2592
- menuContentRender: _,
2593
- menuExtraRender: V,
2594
- menuFooterRender: Y,
2595
- collapsedButtonRender: M,
2596
- onCollapse: P,
2597
- onSelect: O,
2598
- onOpenKeys: C,
2599
- onMenuClick: B
2600
- }), null), o(me, {
2601
- style: I
2602
- }, {
2603
- default: () => [be.value, o(Je, {
2604
- hashId: l.value,
2605
- isMobile: s.value,
2606
- prefixCls: a,
2607
- collapsedWidth: e.collapsedWidth,
2608
- isChildrenLayout: e.isChildrenLayout,
2609
- loading: e.loading,
2610
- isShowTabsBar: e.showTabsBar,
2611
- isFixedMultiTab: e.fixedMultiTab,
2612
- siderWidth: e.siderWidth,
2613
- collapsed: e.collapsed,
2614
- style: e.disableContentMargin ? Qe.value : {
2615
- ...e.contentStyle,
2616
- ...Qe.value
2617
- },
2618
- onReloadPage: H,
2619
- onChangeTabs: N
2620
- }, {
2621
- default: () => {
2622
- var tt;
2623
- return [(tt = n.default) == null ? void 0 : tt.call(n)];
2624
- }
2625
- }), k === !1 ? null : k ? k(e) : o(De, {
2626
- copyright: D
2627
- }, null)]
2628
- })]
2629
- })])]));
2630
- };
2631
- }
2632
- }), wl = /* @__PURE__ */ E({
2633
- components: {
2634
- GlobalHeader: Ne,
2635
- GlobalFooter: De,
2636
- SiderMenuWrapper: Le
2637
- },
2638
- props: Dt,
2639
- emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
2640
- setup(e, {
2641
- slots: t,
2642
- emit: n
2643
- }) {
2644
- const a = w(() => e.theme !== void 0 ? {
2645
- dark: e.theme === "realDark"
2646
- } : {}), i = (m) => {
2647
- n("update:collapsed", m), n("collapse", m);
2648
- }, l = (m) => {
2649
- n("update:open-keys", m), n("openKeys", m);
2650
- }, d = (m) => {
2651
- n("update:selected-keys", m), n("select", m);
2652
- };
2653
- return () => o(Ve, {
2654
- theme: e.primaryColor ? {
2655
- token: {
2656
- colorPrimary: e.primaryColor
2657
- }
2658
- } : void 0
2659
- }, {
2660
- default: () => [o(xn, X({
2661
- token: e.token
2662
- }, a.value), {
2663
- default: () => [o(to, X(Ue(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
2664
- onSelect: d,
2665
- onOpenKeys: l,
2666
- onCollapse: i
2667
- }), t)]
2668
- })]
2669
- });
2670
- }
2671
- }), At = (e, t) => e.map((n) => (n.path = n.path.replace("//", "/"), n.children && n.children.length > 0 && (n.children = At(n.children, t)), t[`${n.path}`] = n, n)), Sl = (e) => {
2672
- const t = e.find((a) => a.path === "/"), n = {};
2673
- return {
2674
- menuData: At((t == null ? void 0 : t.children) || [], n),
2675
- breadcrumb: n
2676
- };
2677
- }, jt = [
2678
- {
2679
- key: "light",
2680
- title: "亮色菜单风格"
2681
- },
2682
- {
2683
- key: "dark",
2684
- title: "暗色菜单风格"
2685
- },
2686
- {
2687
- key: "realDark",
2688
- title: "暗黑模式"
2689
- }
2690
- ], Wt = [
2691
- {
2692
- key: "side",
2693
- title: "侧边菜单布局"
2694
- },
2695
- {
2696
- key: "mix",
2697
- title: "混合菜单布局"
2698
- },
2699
- {
2700
- key: "wide",
2701
- title: "定宽菜单布局"
2702
- },
2703
- {
2704
- key: "simple",
2705
- title: "简单菜单布局"
2706
- }
2707
- ], no = [
2708
- {
2709
- key: "header",
2710
- title: "顶部主题"
2711
- },
2712
- {
2713
- key: "sider",
2714
- title: "左侧主题"
2715
- }
2716
- ], ao = (e) => ({
2717
- [e.componentCls]: {
2718
- [`${e.antCls}-drawer-content-wrapper`]: {
2719
- transform: "translate(100%)",
2720
- display: "block !important"
2721
- },
2722
- "&-show": {
2723
- [`${e.antCls}-drawer-content-wrapper`]: {
2724
- transform: "translate(0%)"
2725
- }
2726
- },
2727
- "&-trantion-none": {
2728
- [`${e.antCls}-drawer-content-wrapper`]: {
2729
- transition: "none !important;"
2730
- }
2731
- },
2732
- ["&-handle"]: {
2733
- position: "absolute",
2734
- top: 240,
2735
- right: 300,
2736
- zIndex: 0,
2737
- display: "flex",
2738
- alignItems: "center",
2739
- justifyContent: "center",
2740
- width: "48px",
2741
- height: "48px",
2742
- fontSize: "16px",
2743
- textAlign: "center",
2744
- backgroundColor: e.colorPrimary,
2745
- borderEndStartRadius: e.borderRadiusLG,
2746
- borderStartStartRadius: e.borderRadiusLG,
2747
- "-webkit-backdropilter": "saturate(180%) blur(20px)",
2748
- backdropFilter: "saturate(180%) blur(20px)",
2749
- cursor: "pointer",
2750
- pointerEvents: "auto"
2751
- },
2752
- "&-wrapper": {
2753
- position: "relative",
2754
- height: `calc(100vh - ${e.marginLG * 2}px)`
2755
- },
2756
- "&-content": {
2757
- padding: e.marginLG
2758
- },
2759
- "&-body-title": {
2760
- margin: 0,
2761
- marginBlockEnd: e.marginSM,
2762
- fontSize: "14px",
2763
- lineHeight: "22px",
2764
- color: e.colorBgSpotlight
2765
- },
2766
- "&-block-checkbox": {
2767
- display: "flex",
2768
- minHeight: 42,
2769
- gap: e.marginSM,
2770
- "& &-item": {
2771
- position: "relative",
2772
- width: "44px",
2773
- height: "36px",
2774
- overflow: "hidden",
2775
- borderRadius: "4px",
2776
- boxShadow: "0 1px 2.5px rgba(0,0,0,.18)",
2777
- cursor: "pointer",
2778
- fontSize: 56,
2779
- lineHeight: "56px",
2780
- "&::before": {
2781
- position: "absolute",
2782
- insetBlockStart: 0,
2783
- insetInlineStart: 0,
2784
- width: "33%",
2785
- height: "100%",
2786
- content: "''"
2787
- },
2788
- "&::after": {
2789
- position: "absolute",
2790
- insetBlockStart: 0,
2791
- insetInlineStart: 0,
2792
- width: "100%",
2793
- height: "25%",
2794
- content: "''"
2795
- },
2796
- "&-dark": {
2797
- backgroundColor: "rgba(0, 21, 41, 0.85)",
2798
- "&::before": { backgroundColor: "rgba(0, 0, 0, 0.65)" },
2799
- "&::after": { backgroundColor: "rgba(0, 0, 0, 0.85)" }
2800
- },
2801
- "&-light": {
2802
- backgroundColor: "#f7f8fa",
2803
- "&::before": { backgroundColor: "#fff" },
2804
- "&::after": { backgroundColor: "#fff" }
2805
- },
2806
- "&-realDark": {
2807
- backgroundColor: "rgba(0, 21, 41, 0.85)",
2808
- "&::before": { backgroundColor: "rgba(0, 0, 0, 0.65)" },
2809
- "&::after": { backgroundColor: "rgba(0, 0, 0, 0.85)" }
2810
- },
2811
- "&-dark,&-side": {
2812
- backgroundColor: "#f7f8fa",
2813
- "&::before": { zIndex: "1", backgroundColor: "#001529" },
2814
- "&::after": { backgroundColor: "#fff" }
2815
- },
2816
- "&-wide": {
2817
- backgroundColor: "#f7f8fa",
2818
- "&::before": { backgroundColor: "#fff", left: "15%", width: "15%", height: "calc(100% - 38%)", top: "38%" },
2819
- "&::after": { backgroundColor: "#fff" },
2820
- "&-content": {
2821
- position: "absolute",
2822
- height: "calc(100% - 38%)",
2823
- top: "38%",
2824
- right: "15%",
2825
- width: "calc(100% - 15% - 15% - 10% - 15%)",
2826
- backgroundColor: "#fff"
2827
- }
2828
- },
2829
- "&-simple": {
2830
- backgroundColor: "#f7f8fa",
2831
- "&::before": { backgroundColor: "#fff" },
2832
- "&::after": { display: "none" }
2833
- },
2834
- "&-mix": {
2835
- backgroundColor: "#f7f8fa",
2836
- "&::before": { backgroundColor: "#fff" },
2837
- "&::after": { backgroundColor: "#001529" }
2838
- }
2839
- },
2840
- "& &-selectIcon": {
2841
- position: "absolute",
2842
- insetInlineEnd: "6px",
2843
- bottom: "4px",
2844
- color: e.colorPrimary,
2845
- fontWeight: "bold",
2846
- fontSize: "14px",
2847
- pointerEvents: "none",
2848
- ".action": { color: e.colorPrimary }
2849
- },
2850
- "& &-icon": {
2851
- fontSize: 56,
2852
- lineHeight: "56px"
2853
- }
2854
- },
2855
- "&-theme-color": {
2856
- marginBlockStart: "16px",
2857
- display: "flex",
2858
- gap: 8,
2859
- "&-label": {
2860
- marginBlock: "16px"
2861
- },
2862
- "&-block": {
2863
- display: "flex",
2864
- alignItems: "center",
2865
- justifyContent: "center",
2866
- width: "20px",
2867
- height: "20px",
2868
- color: "#fff",
2869
- fontWeight: "bold",
2870
- textAlign: "center",
2871
- borderRadius: "2px",
2872
- cursor: "pointer"
2873
- }
2874
- },
2875
- "&-list": {
2876
- [`&${e.antCls}-list-sm ${e.antCls}-list-item`]: {
2877
- paddingInline: 0
2878
- }
2879
- }
2880
- }
2881
- }), dt = /* @__PURE__ */ E({
2882
- name: "BlockCheckbox",
2883
- props: {
2884
- value: z.string,
2885
- list: {
2886
- type: Array,
2887
- default: () => []
2888
- },
2889
- configType: z.string,
2890
- prefixCls: z.string,
2891
- hashId: z.string,
2892
- onChange: Function
2893
- },
2894
- setup(e) {
2895
- return () => {
2896
- const t = `${e.prefixCls}-block-checkbox`;
2897
- return o("div", {
2898
- class: [t, e.hashId]
2899
- }, [e.list.map((n) => o(ke, {
2900
- title: n.title,
2901
- key: n.key
2902
- }, {
2903
- default: () => [o("div", {
2904
- class: wt(e.hashId, `${t}-item`, `${t}-item-${n.key}`, `${t}-${e.configType}-item`),
2905
- onClick: () => {
2906
- var a;
2907
- return (a = e.onChange) == null ? void 0 : a.call(e, n.key);
2908
- }
2909
- }, [n.key === "wide" && o("div", {
2910
- class: [`${t}-item-${n.key}-content`, e.hashId]
2911
- }, null), o(xt, {
2912
- class: `${t}-selectIcon ${e.hashId}`.trim(),
2913
- style: {
2914
- display: e.value === n.key ? "block" : "none"
2915
- }
2916
- }, null), n != null && n.icon ? o("div", {
2917
- class: `${t}-icon ${e.hashId}`.trim()
2918
- }, [n.icon]) : null])]
2919
- }))]);
2920
- };
2921
- }
2922
- }), oo = /* @__PURE__ */ E({
2923
- name: "ThemeColor",
2924
- inheritAttrs: !1,
2925
- props: {
2926
- settingValue: Object,
2927
- colorList: {
2928
- type: Array,
2929
- default: () => []
2930
- },
2931
- prefixCls: z.string,
2932
- hashId: z.string,
2933
- onChange: Function
2934
- },
2935
- setup(e) {
2936
- return () => {
2937
- var n;
2938
- const t = `${e.prefixCls}-theme-color`;
2939
- return o(q, null, [o("div", {
2940
- class: `${t} ${e.hashId}`.trim()
2941
- }, [(n = e.colorList) == null ? void 0 : n.map(({
2942
- key: a,
2943
- color: i,
2944
- title: l
2945
- }) => a ? o(ke, {
2946
- key: i,
2947
- title: l
2948
- }, {
2949
- default: () => {
2950
- var d, m;
2951
- return [o("div", {
2952
- class: [`${t}-block ${e.hashId}`.trim(), ((d = e.settingValue) == null ? void 0 : d.primaryColor) === i ? `${t}-block-checked` : ""],
2953
- style: {
2954
- backgroundColor: i
2955
- },
2956
- onClick: () => e.onChange && e.onChange(i)
2957
- }, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === i && o(xt, null, null)])];
2958
- }
2959
- }) : null)])]);
2960
- };
2961
- }
2962
- }), xe = /* @__PURE__ */ E({
2963
- name: "RegionalChange",
2964
- props: {
2965
- label: z.string,
2966
- value: z.bool,
2967
- prefixCls: z.string,
2968
- valueKey: String,
2969
- hashId: z.string,
2970
- disabled: z.bool,
2971
- onChange: Function
2972
- },
2973
- setup(e) {
2974
- return () => o(te, {
2975
- class: `${e.prefixCls}-list ${e.hashId}`.trim(),
2976
- split: !1,
2977
- size: "small",
2978
- renderItem: ({
2979
- item: t
2980
- }) => o(ke, {
2981
- title: t.disabled ? t.disabledReason : "",
2982
- placement: "left"
2983
- }, {
2984
- default: () => [o(te.Item, {
2985
- actions: [t.action]
2986
- }, {
2987
- default: () => [o("span", {
2988
- style: {
2989
- opacity: t.disabled ? 0.5 : 1
2990
- }
2991
- }, [t.title])]
2992
- })]
2993
- }),
2994
- dataSource: [{
2995
- title: e.label,
2996
- action: o(pt, {
2997
- size: "small",
2998
- disabled: e.disabled,
2999
- checked: !!e.value,
3000
- onChange: (t) => {
3001
- e.onChange && e.onChange(e.valueKey, t);
3002
- }
3003
- }, null)
3004
- }]
3005
- }, null);
3006
- }
3007
- }), io = (e) => ({
3008
- [e.componentCls]: {
3009
- padding: e.marginLG,
3010
- "&-title": {
3011
- display: "flex",
3012
- alignItems: "center",
3013
- margin: 0,
3014
- gap: 10,
3015
- marginBlockEnd: e.marginSM,
3016
- fontSize: "14px",
3017
- lineHeight: "22px",
3018
- color: e.colorBgSpotlight
3019
- },
3020
- "&-sub-title": {
3021
- margin: 0,
3022
- display: "flex",
3023
- alignItems: "center",
3024
- fontSize: 12,
3025
- fontWeight: "normal",
3026
- color: e.colorTextDescription
3027
- },
3028
- "&-list": {
3029
- [`&${e.antCls}-list-sm ${e.antCls}-list-item`]: {
3030
- paddingInline: 0,
3031
- [`${e.antCls}-list-item-action`]: {
3032
- marginInlineStart: 10
3033
- }
3034
- }
3035
- }
3036
- }
3037
- });
3038
- function lo(e) {
3039
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
3040
- }
3041
- const ro = /* @__PURE__ */ E({
3042
- name: "ThemeEditor",
3043
- props: {
3044
- settingValue: Object,
3045
- onChange: Function
3046
- },
3047
- setup(e) {
3048
- const {
3049
- getPrefixCls: t
3050
- } = J(), [n, a] = Se("header"), i = t({
3051
- suffixCls: "theme-editor",
3052
- isPor: !0
3053
- }), {
3054
- wrapSSR: l,
3055
- hashId: d
3056
- } = Z("ProThemeEditor", [io], i), {
3057
- token: m
3058
- } = $e(), y = w(() => {
3059
- var S;
3060
- return (S = m.value) == null ? void 0 : S.layout;
3061
- }), p = w(() => {
3062
- var S, R, s, I, g, c, f, v, P, C, O, L, B, N, H, M, F, h, b, k, $, D, j, W, V;
3063
- return [{
3064
- key: "colorBgMenu",
3065
- title: "全部背景",
3066
- disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ["mix", "wide"].includes((R = e.settingValue) == null ? void 0 : R.layout)
3067
- }, {
3068
- key: "colorDarkBgMenu",
3069
- title: "全部背景",
3070
- disabled: ((s = e.settingValue) == null ? void 0 : s.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["side", "simple"].includes((g = e.settingValue) == null ? void 0 : g.layout)
3071
- }, {
3072
- key: "colorSubItemBg",
3073
- title: "子菜单背景",
3074
- disabled: !0
3075
- }, {
3076
- key: "colorDarkSubItemBg",
3077
- title: "子菜单背景",
3078
- disabled: !0
3079
- }, {
3080
- key: "colorBgMenuItemSelected",
3081
- title: "菜单选中背景",
3082
- disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ["mix", "wide"].includes((f = e.settingValue) == null ? void 0 : f.layout)
3083
- }, {
3084
- key: "colorDarkBgMenuItemSelected",
3085
- title: "菜单选中背景",
3086
- disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "light" || ((P = e.settingValue) == null ? void 0 : P.theme) === "dark" && ["side", "simple"].includes((C = e.settingValue) == null ? void 0 : C.layout)
3087
- }, {
3088
- key: "colorTextMenu",
3089
- title: "菜单文字颜色",
3090
- disabled: ((O = e.settingValue) == null ? void 0 : O.theme) === "dark" && ["mix", "wide"].includes((L = e.settingValue) == null ? void 0 : L.layout)
3091
- }, {
3092
- key: "colorDarkTextMenu",
3093
- title: "菜单文字颜色",
3094
- disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "light" || ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["side", "simple"].includes((H = e.settingValue) == null ? void 0 : H.layout)
3095
- }, {
3096
- key: "colorTextMenuHover",
3097
- title: "菜单文字移入颜色",
3098
- disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "dark" && ["mix", "wide"].includes((F = e.settingValue) == null ? void 0 : F.layout)
3099
- }, {
3100
- key: "colorDarkTextMenuHover",
3101
- title: "菜单文字移入颜色",
3102
- disabled: ((h = e.settingValue) == null ? void 0 : h.theme) === "light" || ((b = e.settingValue) == null ? void 0 : b.theme) === "dark" && ["side", "simple"].includes((k = e.settingValue) == null ? void 0 : k.layout)
3103
- }, {
3104
- key: "colorTextMenuSelected",
3105
- title: "菜单文字选中颜色",
3106
- disabled: (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
3107
- }, {
3108
- key: "colorDarkTextMenuSelected",
3109
- title: "菜单文字选中颜色",
3110
- disabled: ((j = e.settingValue) == null ? void 0 : j.theme) === "light" || ((W = e.settingValue) == null ? void 0 : W.theme) === "dark" && ["side", "simple"].includes((V = e.settingValue) == null ? void 0 : V.layout)
3111
- }];
3112
- }), x = w(() => {
3113
- var S, R, s, I, g, c, f, v, P, C, O, L, B, N, H, M, F, h, b, k, $, D, j, W, V, _, Y, ie, ge, ye, be, pe;
3114
- return [{
3115
- key: "colorBgMenu",
3116
- title: "全部背景",
3117
- disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ["side", "simple"].includes((R = e.settingValue) == null ? void 0 : R.layout)
3118
- }, {
3119
- key: "colorDarkBgMenu",
3120
- title: "全部背景",
3121
- disabled: ((s = e.settingValue) == null ? void 0 : s.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["mix", "wide"].includes((g = e.settingValue) == null ? void 0 : g.layout)
3122
- }, {
3123
- key: "colorSubItemBg",
3124
- title: "子菜单背景",
3125
- disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ["side", "simple"].includes((f = e.settingValue) == null ? void 0 : f.layout)
3126
- }, {
3127
- key: "colorDarkSubItemBg",
3128
- title: "子菜单背景",
3129
- disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "light" || ((P = e.settingValue) == null ? void 0 : P.theme) === "dark" && ["mix", "wide"].includes((C = e.settingValue) == null ? void 0 : C.layout)
3130
- }, {
3131
- key: "colorBgMenuItemHover",
3132
- title: "菜单移入背景",
3133
- disabled: ((O = e.settingValue) == null ? void 0 : O.theme) === "dark" && ((L = e.settingValue) == null ? void 0 : L.layout) !== "mix"
3134
- }, {
3135
- key: "colorBgMenuItemSelected",
3136
- title: "菜单选中背景",
3137
- disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "dark" && ((N = e.settingValue) == null ? void 0 : N.layout) !== "mix"
3138
- }, {
3139
- key: "colorDarkBgMenuItemSelected",
3140
- title: "菜单选中背景",
3141
- disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "light" || ((M = e.settingValue) == null ? void 0 : M.theme) === "dark" && ["mix", "wide"].includes((F = e.settingValue) == null ? void 0 : F.layout)
3142
- }, {
3143
- key: "colorTextMenu",
3144
- title: "菜单文字颜色",
3145
- disabled: ((h = e.settingValue) == null ? void 0 : h.theme) === "dark" && ((b = e.settingValue) == null ? void 0 : b.layout) !== "mix"
3146
- }, {
3147
- key: "colorDarkTextMenu",
3148
- title: "菜单文字颜色",
3149
- disabled: ((k = e.settingValue) == null ? void 0 : k.theme) === "light" || (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
3150
- }, {
3151
- key: "colorTextMenuHover",
3152
- title: "菜单文字移入颜色",
3153
- disabled: ((j = e.settingValue) == null ? void 0 : j.theme) === "dark" && ((W = e.settingValue) == null ? void 0 : W.layout) !== "mix"
3154
- }, {
3155
- key: "colorDarkTextMenuHover",
3156
- title: "菜单文字移入颜色",
3157
- disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "light" || ((_ = e.settingValue) == null ? void 0 : _.theme) === "dark" && ["mix", "wide"].includes((Y = e.settingValue) == null ? void 0 : Y.layout)
3158
- }, {
3159
- key: "colorTextMenuSelected",
3160
- title: "菜单文字选中颜色",
3161
- disabled: ((ie = e.settingValue) == null ? void 0 : ie.theme) === "dark" && ((ge = e.settingValue) == null ? void 0 : ge.layout) !== "mix"
3162
- }, {
3163
- key: "colorDarkTextMenuSelected",
3164
- title: "菜单文字选中颜色",
3165
- disabled: ((ye = e.settingValue) == null ? void 0 : ye.theme) === "light" || ((be = e.settingValue) == null ? void 0 : be.theme) === "dark" && ["mix", "wide"].includes((pe = e.settingValue) == null ? void 0 : pe.layout)
3166
- }];
3167
- }), r = w(() => n.value === "header" ? p.value : n.value === "sider" ? x.value : []), T = (S) => {
3168
- var R, s;
3169
- return (s = (R = y.value) == null ? void 0 : R[n.value]) == null ? void 0 : s[S];
3170
- };
3171
- return () => {
3172
- var R, s, I;
3173
- let S;
3174
- return l(o("div", {
3175
- class: [i, d.value]
3176
- }, [o("h3", {
3177
- class: [`${i}-title`, d.value]
3178
- }, [Q("主题编辑器"), o("div", {
3179
- class: [`${i}-sub-title`, d.value]
3180
- }, [o("span", null, [(R = jt.find((g) => {
3181
- var c;
3182
- return g.key === ((c = e.settingValue) == null ? void 0 : c.theme);
3183
- })) == null ? void 0 : R.title]), o("span", {
3184
- style: {
3185
- marginInline: "8px"
3186
- }
3187
- }, [Q("/")]), o("span", null, [(s = Wt.find((g) => {
3188
- var c;
3189
- return g.key === ((c = e.settingValue) == null ? void 0 : c.layout);
3190
- })) == null ? void 0 : s.title])])]), o("div", {
3191
- class: [`${i}-content`, d.value]
3192
- }, [o(te, {
3193
- class: `${i}-list ${d.value}`.trim(),
3194
- split: !1,
3195
- size: "small",
3196
- renderItem: ({
3197
- item: g
3198
- }) => o(te.Item, {
3199
- actions: [g.action]
3200
- }, {
3201
- default: () => [o("span", {
3202
- style: {
3203
- opacity: g.disabled ? 0.5 : 1
3204
- }
3205
- }, [g.title])]
3206
- }),
3207
- dataSource: [{
3208
- title: "自定义主题色",
3209
- action: o(ot, {
3210
- value: (I = e.settingValue) == null ? void 0 : I.primaryColor,
3211
- actions: ["confirm"],
3212
- modes: ["rgb"],
3213
- size: "small",
3214
- onConfirm: (g) => e.onChange && e.onChange(g, "primaryColor")
3215
- }, null)
3216
- }]
3217
- }, null), o(Ae, {
3218
- activeKey: n.value,
3219
- onChange: a
3220
- }, lo(S = no.map((g) => o(ln, {
3221
- key: g.key,
3222
- tab: g.title
3223
- }, {
3224
- default: () => [o(te, {
3225
- class: `${i}-list ${d.value}`.trim(),
3226
- split: !1,
3227
- size: "small",
3228
- renderItem: ({
3229
- item: c
3230
- }) => o(te.Item, {
3231
- actions: [c.action]
3232
- }, {
3233
- default: () => [o("span", {
3234
- style: {
3235
- opacity: c.disabled ? 0.5 : 1
3236
- }
3237
- }, [c.title])]
3238
- }),
3239
- dataSource: r.value.filter((c) => !c.disabled).map((c) => ({
3240
- ...c,
3241
- action: o(ot, {
3242
- value: T(c.key),
3243
- actions: ["confirm"],
3244
- modes: ["rgb"],
3245
- size: "small",
3246
- onConfirm: (f) => e.onChange && e.onChange(f, n.value, c.key)
3247
- }, null)
3248
- }))
3249
- }, null)]
3250
- }))) ? S : {
3251
- default: () => [S]
3252
- })])]));
3253
- };
3254
- }
3255
- }), so = (e) => ({
3256
- [e.componentCls]: {
3257
- padding: e.marginLG,
3258
- "&-title": {
3259
- display: "flex",
3260
- alignItems: "center",
3261
- margin: 0,
3262
- gap: 10,
3263
- marginBlockEnd: e.marginSM,
3264
- fontSize: "14px",
3265
- lineHeight: "22px",
3266
- color: e.colorBgSpotlight
3267
- },
3268
- "&-sub-title": {
3269
- margin: 0,
3270
- display: "flex",
3271
- alignItems: "center",
3272
- fontSize: 12,
3273
- fontWeight: "normal",
3274
- color: e.colorTextDescription
3275
- },
3276
- "&-list": {
3277
- [`&${e.antCls}-list-sm ${e.antCls}-list-item`]: {
3278
- paddingInline: 0,
3279
- [`${e.antCls}-list-item-action`]: {
3280
- marginInlineStart: 10
3281
- }
3282
- }
3283
- }
3284
- }
3285
- });
3286
- function ct(e) {
3287
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
3288
- }
3289
- const {
3290
- preset: mt
3291
- } = Ge, uo = /* @__PURE__ */ E({
3292
- name: "OthersChange",
3293
- props: {
3294
- prefixCls: z.string,
3295
- settingValue: Object,
3296
- onChange: Function
3297
- },
3298
- setup(e) {
3299
- const t = fe({
3300
- suffixCls: "others",
3301
- isPor: !0
3302
- }), {
3303
- wrapSSR: n,
3304
- hashId: a
3305
- } = Z("SettingsDrawOthers", [so], t);
3306
- return () => {
3307
- var l, d, m, y, p, x, r, T, S, R, s, I, g, c;
3308
- let i;
3309
- return n(o("div", {
3310
- class: [t, a.value]
3311
- }, [o("h3", {
3312
- class: [`${t}-title`, a.value]
3313
- }, [Q("页面动画设置")]), o(te, {
3314
- class: `${t}-list ${a.value}`.trim(),
3315
- split: !1,
3316
- size: "small",
3317
- renderItem: ({
3318
- item: f
3319
- }) => o(ke, {
3320
- title: f.disabled ? f.disabledReason : "",
3321
- placement: "left"
3322
- }, {
3323
- default: () => [o(te.Item, {
3324
- actions: [f.action]
3325
- }, {
3326
- default: () => [o("span", {
3327
- style: {
3328
- opacity: f.disabled ? 0.5 : 1
3329
- }
3330
- }, [f.title])]
3331
- })]
3332
- }),
3333
- dataSource: [{
3334
- title: "禁用动画",
3335
- action: o(pt, {
3336
- checked: !((d = (l = e.settingValue) == null ? void 0 : l.animate) != null && d.disabled),
3337
- size: "small",
3338
- onChange: (f) => {
3339
- var v;
3340
- return (v = e.onChange) == null ? void 0 : v.call(e, "animate", "disabled", !f);
3341
- }
3342
- }, null)
3343
- }, {
3344
- title: "动画效果",
3345
- disabled: (y = (m = e.settingValue) == null ? void 0 : m.animate) == null ? void 0 : y.disabled,
3346
- action: o(ve, {
3347
- value: (x = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : x.name,
3348
- style: {
3349
- width: "100px"
3350
- },
3351
- size: "small",
3352
- disabled: (T = (r = e.settingValue) == null ? void 0 : r.animate) == null ? void 0 : T.disabled,
3353
- getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
3354
- onChange: (f) => {
3355
- var v;
3356
- return (v = e.onChange) == null ? void 0 : v.call(e, "animate", "name", f);
3357
- }
3358
- }, ct(i = mt.map((f) => o(ve.Option, {
3359
- value: f.name
3360
- }, {
3361
- default: () => [f.alias]
3362
- }))) ? i : {
3363
- default: () => [i]
3364
- })
3365
- }, {
3366
- title: "动画方向",
3367
- disabled: (R = (S = e.settingValue) == null ? void 0 : S.animate) == null ? void 0 : R.disabled,
3368
- action: o(ve, {
3369
- value: (I = (s = e.settingValue) == null ? void 0 : s.animate) == null ? void 0 : I.direction,
3370
- style: {
3371
- width: "100px"
3372
- },
3373
- size: "small",
3374
- dropdownStyle: {
3375
- minWidth: "120px"
3376
- },
3377
- disabled: (c = (g = e.settingValue) == null ? void 0 : g.animate) == null ? void 0 : c.disabled,
3378
- getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
3379
- onChange: (f) => {
3380
- var v;
3381
- return (v = e.onChange) == null ? void 0 : v.call(e, "animate", "direction", f);
3382
- }
3383
- }, {
3384
- default: () => {
3385
- var f;
3386
- return [(f = mt.find((v) => {
3387
- var P, C;
3388
- return v.name === ((C = (P = e.settingValue) == null ? void 0 : P.animate) == null ? void 0 : C.name);
3389
- })) == null ? void 0 : f.directions.map((v) => o(ve.Option, {
3390
- value: v
3391
- }, ct(v) ? v : {
3392
- default: () => [v]
3393
- }))];
3394
- }
3395
- })
3396
- }]
3397
- }, null)]));
3398
- };
3399
- }
3400
- }), {
3401
- preset: co
3402
- } = Ge, He = Object.keys(A).filter((e) => e !== "title"), ft = {
3403
- color: "#fff",
3404
- fontSize: 20
3405
- }, mo = [{
3406
- label: "fixedHeader",
3407
- title: "固定 Header"
3408
- }, {
3409
- label: "fixSiderbar",
3410
- title: "固定侧边菜单"
3411
- }, {
3412
- label: "splitMenus",
3413
- title: "自动分割菜单"
3414
- }], fo = [{
3415
- label: "showTabsBar",
3416
- title: "多标签"
3417
- }, {
3418
- label: "fixedMultiTab",
3419
- title: "固定多标签"
3420
- }], ht = (e) => Mn() ? {
3421
- ...ue(A, He),
3422
- ...e || {}
3423
- } : Ct(A), Ce = (e, {
3424
- slots: t
3425
- }) => {
3426
- var n;
3427
- return o("div", {
3428
- style: {
3429
- marginBottom: "24px"
3430
- }
3431
- }, [o("h3", {
3432
- class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
3433
- }, [e.title]), (n = t.default) == null ? void 0 : n.call(t)]);
3434
- }, Il = /* @__PURE__ */ E({
3435
- name: "SettingDrawer",
3436
- props: {
3437
- themeOnly: Boolean,
3438
- hideHintAlert: Boolean,
3439
- hideCopyButton: Boolean,
3440
- weakmode: Boolean,
3441
- showProgress: Boolean,
3442
- settings: {
3443
- type: Object
3444
- },
3445
- colorList: {
3446
- type: [Boolean, Array],
3447
- default: () => Cn
3448
- },
3449
- onChange: Function,
3450
- onChangeLayout: Function
3451
- },
3452
- emits: ["change", "changeLayout"],
3453
- setup(e) {
3454
- const {
3455
- getPrefixCls: t
3456
- } = J(), n = t({
3457
- suffixCls: "setting-drawer",
3458
- isPor: !0
3459
- }), {
3460
- wrapSSR: a,
3461
- hashId: i
3462
- } = Z("ProSettingDraw", [ao], n), l = ce(!1), [d, m] = Se(!1), [y, p] = Se(!1), [x, r] = Se(!1), T = w(() => ht(ue(e.settings, He))), [S, R] = Bn(() => ht(ue(e.settings, He)), {
3463
- value: T,
3464
- onChange: e.onChange
3465
- }), s = w(() => e.colorList && On(e.colorList) ? e.colorList : []), I = w(() => Wn(U(S))), {
3466
- copy: g,
3467
- copied: c,
3468
- isSupported: f
3469
- } = $n();
3470
- le(d, () => {
3471
- l.value || (l.value = !0);
3472
- });
3473
- const v = (C, O, L) => {
3474
- var H, M;
3475
- const B = ["header", "sider"], N = {};
3476
- if (L && B.includes(C)) {
3477
- N[C] = {}, N[C][L] = O, e.onChangeLayout && e.onChangeLayout(ue(N, B));
3478
- return;
3479
- } else
3480
- C === "animate" ? (N[C] = {}, N[C][L] = O, L === "name" && (N[C].direction = (M = (H = co.find((F) => F.name === O)) == null ? void 0 : H.directions) == null ? void 0 : M[0])) : N[C] = O;
3481
- if (C === "colorWeak") {
3482
- const F = document.querySelector("body");
3483
- F && (F.dataset.prosettingdrawer = O === !0 ? F.style.filter : F.dataset.prosettingdrawer || "none", O === !0 && (F.dataset.prosettingdrawer = F.style.filter), F.style.filter = O === !0 ? "invert(80%)" : F.dataset.prosettingdrawer || "none", O || delete F.dataset.prosettingdrawer);
3484
- }
3485
- R(Rn(U(S), {
3486
- ...jn(Ue(N, B))
3487
- }));
3488
- }, P = () => {
3489
- f.value && g(JSON.stringify(U(S)));
3490
- };
3491
- return le(c, (C) => {
3492
- C && rn.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
3493
- }), () => a(o(we, {
3494
- width: 300,
3495
- closable: !1,
3496
- open: d.value,
3497
- rootClassName: `${n} ${i.value} ${d.value && `${n}-show`} ${!l.value && `${n}-trantion-none`}`,
3498
- placement: "right",
3499
- rootStyle: {
3500
- zIndex: 999
3501
- },
3502
- bodyStyle: {
3503
- padding: 0
3504
- },
3505
- onClose: () => m(!1),
3506
- handle: o("div", {
3507
- class: [`${n}-handle`, i.value],
3508
- onClick: () => m(!d.value)
3509
- }, [d.value ? o(vt, {
3510
- style: ft
3511
- }, null) : o(bn, {
3512
- style: ft
3513
- }, null)])
3514
- }, {
3515
- default: () => [o("div", {
3516
- class: [`${n}-wrapper`, i.value]
3517
- }, [o(Tn, null, {
3518
- default: () => [o("div", {
3519
- class: [`${n}-content`, i.value]
3520
- }, [o(Ce, {
3521
- prefixCls: n,
3522
- hashId: i.value,
3523
- title: "整体风格设置"
3524
- }, {
3525
- default: () => [o(dt, {
3526
- hashId: i.value,
3527
- prefixCls: n,
3528
- list: jt,
3529
- value: S.value.theme,
3530
- configType: "theme",
3531
- key: "navTheme",
3532
- onChange: (C) => v("theme", C)
3533
- }, null)]
3534
- }), o(Ce, {
3535
- hashId: i.value,
3536
- title: o("span", null, [Q("主题色 "), o("a", {
3537
- style: {
3538
- fontSize: "12px"
3539
- },
3540
- onClick: () => p(!0)
3541
- }, [Q("更多配置")])]),
3542
- prefixCls: n
3543
- }, {
3544
- default: () => [o(oo, {
3545
- hashId: i.value,
3546
- prefixCls: n,
3547
- colorList: s.value,
3548
- settingValue: S.value,
3549
- onChange: (C, O) => v(O || "primaryColor", C)
3550
- }, null)]
3551
- }), !e.themeOnly && o(q, null, [o(Fe, null, null), o(Ce, {
3552
- hashId: i.value,
3553
- prefixCls: n,
3554
- title: "导航模式"
3555
- }, {
3556
- default: () => [o(dt, {
3557
- prefixCls: n,
3558
- value: U(S).layout,
3559
- key: "layout",
3560
- hashId: i.value,
3561
- configType: "layout",
3562
- list: Wt,
3563
- onChange: (C) => v("layout", C)
3564
- }, null)]
3565
- }), mo.map(({
3566
- label: C,
3567
- title: O
3568
- }) => o(xe, {
3569
- label: O,
3570
- disabled: U(I)[C],
3571
- value: U(S)[C],
3572
- prefixCls: n,
3573
- hashId: i.value,
3574
- valueKey: C,
3575
- onChange: (L, B) => v(L, B)
3576
- }, null)), o(Fe, null, null), o(Ce, {
3577
- hashId: i.value,
3578
- prefixCls: n,
3579
- title: o("span", null, [Q("其他设置 "), o("a", {
3580
- style: {
3581
- fontSize: "12px"
3582
- },
3583
- onClick: () => r(!0)
3584
- }, [Q("更多配置")])])
3585
- }, {
3586
- default: () => [fo.map(({
3587
- label: C,
3588
- title: O
3589
- }) => o(xe, {
3590
- label: O,
3591
- disabled: U(I)[C],
3592
- value: U(S)[C],
3593
- prefixCls: n,
3594
- hashId: i.value,
3595
- valueKey: C,
3596
- onChange: (L, B) => v(L, B)
3597
- }, null)), e.weakmode && o(xe, {
3598
- label: "色弱模式",
3599
- value: U(S).colorWeak,
3600
- prefixCls: n,
3601
- hashId: i.value,
3602
- valueKey: "colorWeak",
3603
- onChange: (C, O) => v(C, O)
3604
- }, null), e.showProgress && o(xe, {
3605
- label: "顶部进度条",
3606
- value: U(S).showProgressBar,
3607
- prefixCls: n,
3608
- hashId: i.value,
3609
- valueKey: "showProgressBar",
3610
- onChange: (C, O) => v(C, O)
3611
- }, null)]
3612
- })]), e.hideHintAlert && e.hideCopyButton ? null : o(Fe, null, null), e.hideHintAlert ? null : o(sn, {
3613
- type: "warning",
3614
- message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
3615
- icon: o(pn, null, null),
3616
- showIcon: !0,
3617
- style: {
3618
- marginBottom: "16px"
3619
- }
3620
- }, null), e.hideCopyButton ? null : o(un, {
3621
- onClick: () => P(),
3622
- block: !0
3623
- }, {
3624
- default: () => [o(vn, null, null), Q("拷贝设置")]
3625
- })])]
3626
- })]), o(we, {
3627
- width: 320,
3628
- closable: !1,
3629
- placement: "right",
3630
- open: y.value,
3631
- bodyStyle: {
3632
- padding: 0
3633
- },
3634
- onClose: () => p(!1)
3635
- }, {
3636
- default: () => [o(ro, {
3637
- settingValue: S.value,
3638
- onChange: (C, O, L) => v(O || "primaryColor", C, L)
3639
- }, null)]
3640
- }), o(we, {
3641
- width: 320,
3642
- closable: !1,
3643
- placement: "right",
3644
- open: x.value,
3645
- bodyStyle: {
3646
- padding: 0
3647
- },
3648
- onClose: () => r(!1)
3649
- }, {
3650
- default: () => [o(uo, {
3651
- settingValue: S.value,
3652
- onChange: (C, O, L) => v(C, L, O)
3653
- }, null)]
3654
- })]
3655
- }));
3656
- }
3657
- }), ho = new u("backInLeft", {
3658
- "0%": {
3659
- opacity: 0.7,
3660
- transform: "translateX(-2000px) scale(0.7)"
3661
- },
3662
- "80%": {
3663
- opacity: 0.7,
3664
- transform: "translateX(0px) scale(0.7)"
3665
- },
3666
- "100%": {
3667
- opacity: 1,
3668
- transform: "scale(1)"
3669
- }
3670
- }), go = new u("backInRight", {
3671
- "0%": {
3672
- opacity: 0.7,
3673
- transform: "translateX(2000px) scale(0.7)"
3674
- },
3675
- "80%": {
3676
- opacity: 0.7,
3677
- transform: "translateX(0px) scale(0.7)"
3678
- },
3679
- "100%": {
3680
- opacity: 1,
3681
- transform: "scale(1)"
3682
- }
3683
- }), yo = new u("backInUp", {
3684
- "0%": {
3685
- opacity: 0.7,
3686
- transform: "translateY(1200px) scale(0.7)"
3687
- },
3688
- "80%": {
3689
- opacity: 0.7,
3690
- transform: "translateY(0px) scale(0.7)"
3691
- },
3692
- "100%": {
3693
- opacity: 1,
3694
- transform: "scale(1)"
3695
- }
3696
- }), bo = new u("backInDown", {
3697
- "0%": {
3698
- opacity: 0.7,
3699
- transform: "translateY(-1200px) scale(0.7)"
3700
- },
3701
- "80%": {
3702
- opacity: 0.7,
3703
- transform: "translateY(0px) scale(0.7)"
3704
- },
3705
- "100%": {
3706
- opacity: 1,
3707
- transform: "scale(1)"
3708
- }
3709
- }), po = new u("backOutLeft", {
3710
- "0%": {
3711
- opacity: 1,
3712
- transform: "scale(1)"
3713
- },
3714
- "20%": {
3715
- opacity: 0.7,
3716
- transform: "translateX(0px) scale(0.7)"
3717
- },
3718
- "100%": {
3719
- opacity: 0.7,
3720
- transform: "translateX(-2000px) scale(0.7)"
3721
- }
3722
- }), vo = new u("backOutRight", {
3723
- "0%": {
3724
- opacity: 1,
3725
- transform: "scale(1)"
3726
- },
3727
- "20%": {
3728
- opacity: 0.7,
3729
- transform: "translateX(0px) scale(0.7)"
3730
- },
3731
- "100%": {
3732
- opacity: 0.7,
3733
- transform: "translateX(2000px) scale(0.7)"
3734
- }
3735
- }), xo = new u("backOutUp", {
3736
- "0%": {
3737
- opacity: 1,
3738
- transform: "scale(1)"
3739
- },
3740
- "20%": {
3741
- opacity: 0.7,
3742
- transform: "translateY(0px) scale(0.7)"
3743
- },
3744
- "100%": {
3745
- opacity: 0.7,
3746
- transform: "translateY(-700px) scale(0.7)"
3747
- }
3748
- }), Co = new u("backOutDown", {
3749
- "0%": {
3750
- opacity: 1,
3751
- transform: "scale(1)"
3752
- },
3753
- "20%": {
3754
- opacity: 0.7,
3755
- transform: "translateY(0px) scale(0.7)"
3756
- },
3757
- "100%": {
3758
- opacity: 0.7,
3759
- transform: "translateY(700px) scale(0.7)"
3760
- }
3761
- }), wo = () => ({
3762
- "&.backInLeft": {
3763
- animationFillMode: "both",
3764
- animationName: ho
3765
- },
3766
- "&.backInRight": {
3767
- animationFillMode: "both",
3768
- animationName: go
3769
- },
3770
- "&.backInUp": {
3771
- animationFillMode: "both",
3772
- animationName: yo
3773
- },
3774
- "&.backInDown": {
3775
- animationFillMode: "both",
3776
- animationName: bo
3777
- }
3778
- }), So = () => ({
3779
- "&.backOutLeft": {
3780
- animationFillMode: "both",
3781
- animationName: po
3782
- },
3783
- "&.backOutRight": {
3784
- animationFillMode: "both",
3785
- animationName: vo
3786
- },
3787
- "&.backOutUp": {
3788
- animationFillMode: "both",
3789
- animationName: xo
3790
- },
3791
- "&.backOutDown": {
3792
- animationFillMode: "both",
3793
- animationName: Co
3794
- }
3795
- }), Io = new u("bounceIn", {
3796
- "from,20%,40%,60%,80%,to": {
3797
- animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
3798
- },
3799
- "0%": {
3800
- opacity: 0,
3801
- transform: "scale3d(0.3, 0.3, 0.3)"
3802
- },
3803
- "20%": {
3804
- transform: "scale3d(1.1, 1.1, 1.1)"
3805
- },
3806
- "40%": {
3807
- transform: "scale3d(0.9, 0.9, 0.9)"
3808
- },
3809
- "60%": {
3810
- transform: "scale3d(1.03, 1.03, 1.03)"
3811
- },
3812
- "80%": {
3813
- transform: "scale3d(0.97, 0.97, 0.97)"
3814
- },
3815
- to: {
3816
- opacity: 1,
3817
- transform: "scale3d(1, 1, 1)"
3818
- }
3819
- }), Oo = new u("bounceInLeft", {
3820
- "from,60%,75%,90%,to": {
3821
- animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
3822
- },
3823
- "0%": {
3824
- opacity: 0,
3825
- transform: "translate3d(-3000px, 0, 0) scaleX(3)"
3826
- },
3827
- "60%": {
3828
- opacity: 1,
3829
- transform: "translate3d(25px, 0, 0) scaleX(1)"
3830
- },
3831
- "75%": {
3832
- transform: "translate3d(-10px, 0, 0) scaleX(0.98)"
3833
- },
3834
- "90%": {
3835
- transform: "translate3d(5px, 0, 0) scaleX(0.995)"
3836
- },
3837
- to: {
3838
- transform: "translate3d(0, 0, 0)"
3839
- }
3840
- }), Mo = new u("bounceInRight", {
3841
- "from,60%,75%,90%,to": {
3842
- animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
3843
- },
3844
- from: {
3845
- opacity: 0,
3846
- transform: "translate3d(3000px, 0, 0) scaleX(3)"
3847
- },
3848
- "60%": {
3849
- opacity: 1,
3850
- transform: "translate3d(-25px, 0, 0) scaleX(1)"
3851
- },
3852
- "75%": {
3853
- transform: "translate3d(10px, 0, 0) scaleX(0.98)"
3854
- },
3855
- "90%": {
3856
- transform: "translate3d(-5px, 0, 0) scaleX(0.995)"
3857
- },
3858
- to: {
3859
- transform: "translate3d(0, 0, 0)"
3860
- }
3861
- }), Ro = new u("bounceInDown", {
3862
- "from,60%,75%,90%,to": {
3863
- animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
3864
- },
3865
- "0%": {
3866
- opacity: 0,
3867
- transform: "translate3d(0, -3000px, 0) scaleY(3)"
3868
- },
3869
- "60%": {
3870
- opacity: 1,
3871
- transform: "translate3d(0, 25px, 0) scaleY(0.9)"
3872
- },
3873
- "75%": {
3874
- transform: "translate3d(0, -10px, 0) scaleY(0.95)"
3875
- },
3876
- "90%": {
3877
- transform: "translate3d(0, 5px, 0) scaleY(0.985)"
3878
- },
3879
- to: {
3880
- transform: "translate3d(0, 0, 0)"
3881
- }
3882
- }), Bo = new u("bounceInUp", {
3883
- "from,60%,75%,90%,to": {
3884
- animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
3885
- },
3886
- from: {
3887
- opacity: 0,
3888
- transform: "translate3d(0, 3000px, 0) scaleY(5)"
3889
- },
3890
- "60%": {
3891
- opacity: 1,
3892
- transform: "translate3d(0, -20px, 0) scaleY(0.9)"
3893
- },
3894
- "75%": {
3895
- transform: "translate3d(0, 10px, 0) scaleY(0.95)"
3896
- },
3897
- "90%": {
3898
- transform: "translate3d(0, -5px, 0) scaleY(0.985)"
3899
- },
3900
- to: {
3901
- transform: "translate3d(0, 0, 0)"
3902
- }
3903
- }), ko = new u("bounceOut", {
3904
- "20%": {
3905
- transform: "scale3d(0.9, 0.9, 0.9)"
3906
- },
3907
- "50%,55%": {
3908
- transform: "scale3d(1.1, 1.1, 1.1)"
3909
- },
3910
- "60%": {
3911
- transform: "scale3d(1.03, 1.03, 1.03)"
3912
- },
3913
- to: {
3914
- opacity: 0,
3915
- transform: "scale3d(0.3, 0.3, 0.3)"
3916
- }
3917
- }), $o = new u("bounceOutLeft", {
3918
- "20%": {
3919
- opacity: 1,
3920
- transform: "translate3d(20px, 0, 0) scaleX(0.9)"
3921
- },
3922
- to: {
3923
- opacity: 0,
3924
- transform: "translate3d(-2000px, 0, 0) scaleX(2)"
3925
- }
3926
- }), To = new u("bounceOutRight", {
3927
- "20%": {
3928
- opacity: 1,
3929
- transform: "translate3d(-20px, 0, 0) scaleX(0.9)"
3930
- },
3931
- to: {
3932
- opacity: 0,
3933
- transform: "translate3d(2000px, 0, 0) scaleX(2)"
3934
- }
3935
- }), Fo = new u("bounceOutDown", {
3936
- "20%": {
3937
- transform: "translate3d(0, 10px, 0) scaleY(0.985)"
3938
- },
3939
- "40%,45%": {
3940
- opacity: 1,
3941
- transform: "translate3d(0, -20px, 0) scaleY(0.9)"
3942
- },
3943
- to: {
3944
- opacity: 0,
3945
- transform: "translate3d(0, 2000px, 0) scaleY(3)"
3946
- }
3947
- }), Po = new u("bounceOutUp", {
3948
- "20%": {
3949
- transform: "translate3d(0, -10px, 0) scaleY(0.985)"
3950
- },
3951
- "40%,45%": {
3952
- opacity: 1,
3953
- transform: "translate3d(0, 20px, 0) scaleY(0.9)"
3954
- },
3955
- to: {
3956
- opacity: 0,
3957
- transform: "translate3d(0, -2000px, 0) scaleY(3)"
3958
- }
3959
- }), Lo = () => ({
3960
- "&.bounceIn": {
3961
- animationFillMode: "both",
3962
- animationDuration: `${0.3 * 0.75}s !important`,
3963
- animationName: Io
3964
- },
3965
- "&.bounceInLeft": {
3966
- animationFillMode: "both",
3967
- animationName: Oo
3968
- },
3969
- "&.bounceInRight": {
3970
- animationFillMode: "both",
3971
- animationName: Mo
3972
- },
3973
- "&.bounceInDown": {
3974
- animationFillMode: "both",
3975
- animationName: Ro
3976
- },
3977
- "&.bounceInUp": {
3978
- animationFillMode: "both",
3979
- animationName: Bo
3980
- }
3981
- }), Do = () => ({
3982
- "&.bounceOut": {
3983
- animationFillMode: "both",
3984
- animationDuration: `${0.3 * 0.75}s !important`,
3985
- animationName: ko
3986
- },
3987
- "&.bounceOutLeft": {
3988
- animationFillMode: "both",
3989
- animationName: $o
3990
- },
3991
- "&.bounceOutRight": {
3992
- animationFillMode: "both",
3993
- animationName: To
3994
- },
3995
- "&.bounceOutDown": {
3996
- animationFillMode: "both",
3997
- animationName: Fo
3998
- },
3999
- "&.bounceOutUp": {
4000
- animationFillMode: "both",
4001
- animationName: Po
4002
- }
4003
- }), zo = new u("fadeIn", {
4004
- from: {
4005
- opacity: 0
4006
- },
4007
- to: {
4008
- opacity: 1
4009
- }
4010
- }), No = new u("fadeInLeft", {
4011
- from: {
4012
- opacity: 0,
4013
- transform: "translate3d(-100%, 0, 0)"
4014
- },
4015
- to: {
4016
- opacity: 1,
4017
- transform: "translate3d(0, 0, 0)"
4018
- }
4019
- }), Ho = new u("fadeInRight", {
4020
- from: {
4021
- opacity: 0,
4022
- transform: "translate3d(100%, 0, 0)"
4023
- },
4024
- to: {
4025
- opacity: 1,
4026
- transform: "translate3d(0, 0, 0)"
4027
- }
4028
- }), _o = new u("fadeInDown", {
4029
- from: {
4030
- opacity: 0,
4031
- transform: "translate3d(0, -100%, 0)"
4032
- },
4033
- to: {
4034
- opacity: 1,
4035
- transform: "translate3d(0, 0, 0)"
4036
- }
4037
- }), Eo = new u("fadeInUp", {
4038
- from: {
4039
- opacity: 0,
4040
- transform: "translate3d(0, 100%, 0)"
4041
- },
4042
- to: {
4043
- opacity: 1,
4044
- transform: "translate3d(0, 0, 0)"
4045
- }
4046
- }), Vo = new u("fadeInDownBig", {
4047
- from: {
4048
- opacity: 0,
4049
- transform: "translate3d(0, -2000px, 0)"
4050
- },
4051
- to: {
4052
- opacity: 1,
4053
- transform: "translate3d(0, 0, 0)"
4054
- }
4055
- }), Ao = new u("fadeInUpBig", {
4056
- from: {
4057
- opacity: 0,
4058
- transform: "translate3d(0, 2000px, 0)"
4059
- },
4060
- to: {
4061
- opacity: 1,
4062
- transform: "translate3d(0, 0, 0)"
4063
- }
4064
- }), jo = new u("fadeInLeftBig", {
4065
- from: {
4066
- opacity: 0,
4067
- transform: "translate3d(-2000px, 0, 0)"
4068
- },
4069
- to: {
4070
- opacity: 1,
4071
- transform: "translate3d(0, 0, 0)"
4072
- }
4073
- }), Wo = new u("fadeInRightBig", {
4074
- from: {
4075
- opacity: 0,
4076
- transform: "translate3d(2000px, 0, 0)"
4077
- },
4078
- to: {
4079
- opacity: 1,
4080
- transform: "translate3d(0, 0, 0)"
4081
- }
4082
- }), Ko = new u("fadeInTopLeft", {
4083
- from: {
4084
- opacity: 0,
4085
- transform: "translate3d(-100%, -100%, 0)"
4086
- },
4087
- to: {
4088
- opacity: 1,
4089
- transform: "translate3d(0, 0, 0)"
4090
- }
4091
- }), Uo = new u("fadeInBottomRight", {
4092
- from: {
4093
- opacity: 0,
4094
- transform: "translate3d(100%, 100%, 0)"
4095
- },
4096
- to: {
4097
- opacity: 1,
4098
- transform: "translate3d(0, 0, 0)"
4099
- }
4100
- }), Xo = new u("fadeInTopRight", {
4101
- from: {
4102
- opacity: 0,
4103
- transform: "translate3d(100%, -100%, 0)"
4104
- },
4105
- to: {
4106
- opacity: 1,
4107
- transform: "translate3d(0, 0, 0)"
4108
- }
4109
- }), Go = new u("fadeInBottomLeft", {
4110
- from: {
4111
- opacity: 0,
4112
- transform: "translate3d(-100%, 100%, 0)"
4113
- },
4114
- to: {
4115
- opacity: 1,
4116
- transform: "translate3d(0, 0, 0)"
4117
- }
4118
- }), Yo = new u("fadeOut", {
4119
- from: {
4120
- opacity: 1
4121
- },
4122
- to: {
4123
- opacity: 0
4124
- }
4125
- }), qo = new u("fadeOutLeft", {
4126
- from: {
4127
- opacity: 1
4128
- },
4129
- to: {
4130
- opacity: 0,
4131
- transform: "translate3d(-100%, 0, 0)"
4132
- }
4133
- }), Zo = new u("fadeOutRight", {
4134
- from: {
4135
- opacity: 1
4136
- },
4137
- to: {
4138
- opacity: 0,
4139
- transform: "translate3d(100%, 0, 0)"
4140
- }
4141
- }), Jo = new u("fadeOutDown", {
4142
- from: {
4143
- opacity: 1
4144
- },
4145
- to: {
4146
- opacity: 0,
4147
- transform: "translate3d(0, 100%, 0)"
4148
- }
4149
- }), Qo = new u("fadeOutUp", {
4150
- from: {
4151
- opacity: 1
4152
- },
4153
- to: {
4154
- opacity: 0,
4155
- transform: "translate3d(0, -100%, 0)"
4156
- }
4157
- }), ei = new u("fadeOutDownBig", {
4158
- from: {
4159
- opacity: 1
4160
- },
4161
- to: {
4162
- opacity: 0,
4163
- transform: "translate3d(0, 2000px, 0)"
4164
- }
4165
- }), ti = new u("fadeOutUpBig", {
4166
- from: {
4167
- opacity: 1
4168
- },
4169
- to: {
4170
- opacity: 0,
4171
- transform: "translate3d(0, -2000px, 0)"
4172
- }
4173
- }), ni = new u("fadeOutLeftBig", {
4174
- from: {
4175
- opacity: 1
4176
- },
4177
- to: {
4178
- opacity: 0,
4179
- transform: "translate3d(-2000px, 0, 0)"
4180
- }
4181
- }), ai = new u("fadeOutRightBig", {
4182
- from: {
4183
- opacity: 1
4184
- },
4185
- to: {
4186
- opacity: 0,
4187
- transform: "translate3d(2000px, 0, 0)"
4188
- }
4189
- }), oi = new u("fadeOutTopLeft", {
4190
- from: {
4191
- opacity: 1,
4192
- transform: "translate3d(0, 0, 0)"
4193
- },
4194
- to: {
4195
- opacity: 0,
4196
- transform: "translate3d(-100%, -100%, 0)"
4197
- }
4198
- }), ii = new u("fadeOutBottomRight", {
4199
- from: {
4200
- opacity: 1,
4201
- transform: "translate3d(0, 0, 0)"
4202
- },
4203
- to: {
4204
- opacity: 0,
4205
- transform: "translate3d(100%, 100%, 0)"
4206
- }
4207
- }), li = new u("fadeOutTopRight", {
4208
- from: {
4209
- opacity: 1,
4210
- transform: "translate3d(0, 0, 0)"
4211
- },
4212
- to: {
4213
- opacity: 0,
4214
- transform: "translate3d(100%, -100%, 0)"
4215
- }
4216
- }), ri = new u("fadeOutBottomLeft", {
4217
- from: {
4218
- opacity: 1,
4219
- transform: "translate3d(0, 0, 0)"
4220
- },
4221
- to: {
4222
- opacity: 0,
4223
- transform: "translate3d(-100%, 100%, 0)"
4224
- }
4225
- }), si = () => ({
4226
- "&.fadeIn": {
4227
- animationFillMode: "both",
4228
- animationName: zo
4229
- },
4230
- "&.fadeInLeft": {
4231
- animationFillMode: "both",
4232
- animationName: No
4233
- },
4234
- "&.fadeInRight": {
4235
- animationFillMode: "both",
4236
- animationName: Ho
4237
- },
4238
- "&.fadeInDown": {
4239
- animationFillMode: "both",
4240
- animationName: _o
4241
- },
4242
- "&.fadeInUp": {
4243
- animationFillMode: "both",
4244
- animationName: Eo
4245
- },
4246
- "&.fadeInLeftBig": {
4247
- animationFillMode: "both",
4248
- animationName: jo
4249
- },
4250
- "&.fadeInRightBig": {
4251
- animationFillMode: "both",
4252
- animationName: Wo
4253
- },
4254
- "&.fadeInUpBig": {
4255
- animationFillMode: "both",
4256
- animationName: Ao
4257
- },
4258
- "&.fadeInDownBig": {
4259
- animationFillMode: "both",
4260
- animationName: Vo
4261
- },
4262
- "&.fadeInTopLeft": {
4263
- animationFillMode: "both",
4264
- animationName: Ko
4265
- },
4266
- "&.fadeInBottomRight": {
4267
- animationFillMode: "both",
4268
- animationName: Uo
4269
- },
4270
- "&.fadeInTopRight": {
4271
- animationFillMode: "both",
4272
- animationName: Xo
4273
- },
4274
- "&.fadeInBottomLeft": {
4275
- animationFillMode: "both",
4276
- animationName: Go
4277
- }
4278
- }), ui = () => ({
4279
- "&.fadeOut": {
4280
- animationFillMode: "both",
4281
- animationName: Yo
4282
- },
4283
- "&.fadeOutLeft": {
4284
- animationFillMode: "both",
4285
- animationName: qo
4286
- },
4287
- "&.fadeOutRight": {
4288
- animationFillMode: "both",
4289
- animationName: Zo
4290
- },
4291
- "&.fadeOutDown": {
4292
- animationFillMode: "both",
4293
- animationName: Jo
4294
- },
4295
- "&.fadeOutUp": {
4296
- animationFillMode: "both",
4297
- animationName: Qo
4298
- },
4299
- "&.fadeOutDownBig": {
4300
- animationFillMode: "both",
4301
- animationName: ei
4302
- },
4303
- "&.fadeOutUpBig": {
4304
- animationFillMode: "both",
4305
- animationName: ti
4306
- },
4307
- "&.fadeOutLeftBig": {
4308
- animationFillMode: "both",
4309
- animationName: ni
4310
- },
4311
- "&.fadeOutRightBig": {
4312
- animationFillMode: "both",
4313
- animationName: ai
4314
- },
4315
- "&.fadeOutTopLeft": {
4316
- animationFillMode: "both",
4317
- animationName: oi
4318
- },
4319
- "&.fadeOutBottomRight": {
4320
- animationFillMode: "both",
4321
- animationName: ii
4322
- },
4323
- "&.fadeOutTopRight": {
4324
- animationFillMode: "both",
4325
- animationName: li
4326
- },
4327
- "&.fadeOutBottomLeft": {
4328
- animationFillMode: "both",
4329
- animationName: ri
4330
- }
4331
- }), di = new u("flipInX", {
4332
- from: {
4333
- opacity: 0,
4334
- animationTimingFunction: "ease-in",
4335
- transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
4336
- },
4337
- "40%": {
4338
- animationTimingFunction: "ease-in",
4339
- transform: "perspective(400px) rotate3d(1, 0, 0, -20deg)"
4340
- },
4341
- "60%": {
4342
- opacity: 1,
4343
- transform: "perspective(400px) rotate3d(1, 0, 0, 10deg)"
4344
- },
4345
- "80%": {
4346
- transform: "perspective(400px) rotate3d(1, 0, 0, -5deg)"
4347
- },
4348
- to: {
4349
- transform: "perspective(400px)"
4350
- }
4351
- }), ci = new u("flipInY", {
4352
- from: {
4353
- opacity: 0,
4354
- animationTimingFunction: "ease-in",
4355
- transform: "perspective(400px) rotate3d(0, 1, 0, 90deg)"
4356
- },
4357
- "40%": {
4358
- animationTimingFunction: "ease-in",
4359
- transform: "perspective(400px) rotate3d(0, 1, 0, -20deg)"
4360
- },
4361
- "60%": {
4362
- opacity: 1,
4363
- transform: "perspective(400px) rotate3d(0, 1, 0, 10deg)"
4364
- },
4365
- "80%": {
4366
- transform: "perspective(400px) rotate3d(0, 1, 0, -5deg)"
4367
- },
4368
- to: {
4369
- transform: "perspective(400px)"
4370
- }
4371
- }), mi = new u("flipOutX", {
4372
- from: {
4373
- transform: "perspective(400px)"
4374
- },
4375
- "40%": {
4376
- opacity: 1,
4377
- transform: "perspective(400px) rotate3d(1, 0, 0, -20deg)"
4378
- },
4379
- to: {
4380
- opacity: 0,
4381
- transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
4382
- }
4383
- }), fi = new u("flipOutY", {
4384
- from: {
4385
- transform: "perspective(400px)"
4386
- },
4387
- "40%": {
4388
- opacity: 1,
4389
- transform: "perspective(400px) rotate3d(0, 1, 0, -15deg)"
4390
- },
4391
- to: {
4392
- opacity: 0,
4393
- transform: "perspective(400px) rotate3d(0, 1, 0, 90deg)"
4394
- }
4395
- }), hi = () => ({
4396
- "&.flipInX": {
4397
- animationFillMode: "both",
4398
- backfaceVisibility: "visible !important",
4399
- animationName: di
4400
- },
4401
- "&.flipInY": {
4402
- animationFillMode: "both",
4403
- backfaceVisibility: "visible !important",
4404
- animationName: ci
4405
- }
4406
- }), gi = () => ({
4407
- "&.flipOutX": {
4408
- animationFillMode: "both",
4409
- backfaceVisibility: "visible !important",
4410
- animationDuration: `${0.3 * 0.75}s !important`,
4411
- animationName: mi
4412
- },
4413
- "&.flipOutY": {
4414
- animationFillMode: "both",
4415
- backfaceVisibility: "visible !important",
4416
- animationDuration: `${0.3 * 0.75}s !important`,
4417
- animationName: fi
4418
- }
4419
- }), yi = new u("lightSpeedInLeft", {
4420
- from: {
4421
- opacity: 0,
4422
- transform: "translate3d(-100%, 0, 0) skewX(30deg)"
4423
- },
4424
- "60%": {
4425
- opacity: 1,
4426
- transform: "skewX(-20deg)"
4427
- },
4428
- "80%": {
4429
- transform: "skewX(5deg)"
4430
- },
4431
- to: {
4432
- transform: "translate3d(0, 0, 0)"
4433
- }
4434
- }), bi = new u("lightSpeedInRight", {
4435
- from: {
4436
- opacity: 0,
4437
- transform: "translate3d(100%, 0, 0) skewX(-30deg)"
4438
- },
4439
- "60%": {
4440
- opacity: 1,
4441
- transform: "skewX(20deg)"
4442
- },
4443
- "80%": {
4444
- transform: "skewX(-5deg)"
4445
- },
4446
- to: {
4447
- transform: "translate3d(0, 0, 0)"
4448
- }
4449
- }), pi = new u("lightSpeedOutLeft", {
4450
- from: {
4451
- opacity: 1
4452
- },
4453
- to: {
4454
- opacity: 0,
4455
- transform: "translate3d(-100%, 0, 0) skewX(-30deg)"
4456
- }
4457
- }), vi = new u("lightSpeedOutRight", {
4458
- from: {
4459
- opacity: 1
4460
- },
4461
- to: {
4462
- opacity: 0,
4463
- transform: "translate3d(100%, 0, 0) skewX(30deg)"
4464
- }
4465
- }), xi = () => ({
4466
- "&.lightSpeedInLeft": {
4467
- animationFillMode: "both",
4468
- animationTimingFunction: "ease-out",
4469
- animationName: yi
4470
- },
4471
- "&.lightSpeedInRight": {
4472
- animationFillMode: "both",
4473
- animationTimingFunction: "ease-out",
4474
- animationName: bi
4475
- }
4476
- }), Ci = () => ({
4477
- "&.lightSpeedOutLeft": {
4478
- animationFillMode: "both",
4479
- animationTimingFunction: "ease-in",
4480
- animationName: pi
4481
- },
4482
- "&.lightSpeedOutRight": {
4483
- animationFillMode: "both",
4484
- animationTimingFunction: "ease-in",
4485
- animationName: vi
4486
- }
4487
- }), wi = new u("rotateIn", {
4488
- from: {
4489
- opacity: 0,
4490
- transform: "rotate3d(0, 0, 1, -200deg)"
4491
- },
4492
- to: {
4493
- opacity: 1,
4494
- transform: "translate3d(0, 0, 0)"
4495
- }
4496
- }), Si = new u("rotateInDownLeft", {
4497
- from: {
4498
- opacity: 0,
4499
- transform: "rotate3d(0, 0, 1, -45deg)"
4500
- },
4501
- to: {
4502
- opacity: 1,
4503
- transform: "translate3d(0, 0, 0)"
4504
- }
4505
- }), Ii = new u("rotateInDownRight", {
4506
- from: {
4507
- opacity: 0,
4508
- transform: "rotate3d(0, 0, 1, 45deg)"
4509
- },
4510
- to: {
4511
- opacity: 1,
4512
- transform: "translate3d(0, 0, 0)"
4513
- }
4514
- }), Oi = new u("rotateInUpLeft", {
4515
- from: {
4516
- opacity: 0,
4517
- transform: "rotate3d(0, 0, 1, 45deg)"
4518
- },
4519
- to: {
4520
- opacity: 1,
4521
- transform: "translate3d(0, 0, 0)"
4522
- }
4523
- }), Mi = new u("rotateInUpRight", {
4524
- from: {
4525
- opacity: 0,
4526
- transform: "rotate3d(0, 0, 1, -90deg)"
4527
- },
4528
- to: {
4529
- opacity: 1,
4530
- transform: "translate3d(0, 0, 0)"
4531
- }
4532
- }), Ri = new u("rotateOut", {
4533
- from: {
4534
- opacity: 1
4535
- },
4536
- to: {
4537
- opacity: 0,
4538
- transform: "rotate3d(0, 0, 1, 200deg)"
4539
- }
4540
- }), Bi = new u("rotateOutDownLeft", {
4541
- from: {
4542
- opacity: 1
4543
- },
4544
- to: {
4545
- opacity: 0,
4546
- transform: "rotate3d(0, 0, 1, 45deg)"
4547
- }
4548
- }), ki = new u("rotateOutDownRight", {
4549
- from: {
4550
- opacity: 1
4551
- },
4552
- to: {
4553
- opacity: 0,
4554
- transform: "rotate3d(0, 0, 1, -45deg)"
4555
- }
4556
- }), $i = new u("rotateOutUpLeft", {
4557
- from: {
4558
- opacity: 1
4559
- },
4560
- to: {
4561
- opacity: 0,
4562
- transform: "rotate3d(0, 0, 1, -45deg)"
4563
- }
4564
- }), Ti = new u("rotateOutUpRight", {
4565
- from: {
4566
- opacity: 1
4567
- },
4568
- to: {
4569
- opacity: 0,
4570
- transform: "rotate3d(0, 0, 1, 90deg)"
4571
- }
4572
- }), Fi = () => ({
4573
- "&.rotateIn": {
4574
- animationFillMode: "both",
4575
- transformOrigin: "center",
4576
- animationName: wi
4577
- },
4578
- "&.rotateInDownLeft": {
4579
- animationFillMode: "both",
4580
- transformOrigin: "left bottom",
4581
- animationName: Si
4582
- },
4583
- "&.rotateInDownRight": {
4584
- animationFillMode: "both",
4585
- transformOrigin: "right bottom",
4586
- animationName: Ii
4587
- },
4588
- "&.rotateInUpLeft": {
4589
- animationFillMode: "both",
4590
- transformOrigin: "left bottom",
4591
- animationName: Oi
4592
- },
4593
- "&.rotateInUpRight": {
4594
- animationFillMode: "both",
4595
- transformOrigin: "right bottom",
4596
- animationName: Mi
4597
- }
4598
- }), Pi = () => ({
4599
- "&.rotateOut": {
4600
- animationFillMode: "both",
4601
- transformOrigin: "center",
4602
- animationName: Ri
4603
- },
4604
- "&.rotateOutDownLeft": {
4605
- animationFillMode: "both",
4606
- transformOrigin: "left bottom",
4607
- animationName: Bi
4608
- },
4609
- "&.rotateOutDownRight": {
4610
- animationFillMode: "both",
4611
- transformOrigin: "right bottom",
4612
- animationName: ki
4613
- },
4614
- "&.rotateOutUpLeft": {
4615
- animationFillMode: "both",
4616
- transformOrigin: "left bottom",
4617
- animationName: $i
4618
- },
4619
- "&.rotateOutUpRight": {
4620
- animationFillMode: "both",
4621
- transformOrigin: "right bottom",
4622
- animationName: Ti
4623
- }
4624
- }), Li = new u("rollIn", {
4625
- from: {
4626
- opacity: 0,
4627
- transform: "translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"
4628
- },
4629
- to: {
4630
- opacity: 1,
4631
- transform: "translate3d(0, 0, 0)"
4632
- }
4633
- }), Di = new u("rollOut", {
4634
- from: {
4635
- opacity: 1
4636
- },
4637
- to: {
4638
- opacity: 0,
4639
- transform: "translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"
4640
- }
4641
- }), zi = () => ({
4642
- "&.rollIn": {
4643
- animationFillMode: "both",
4644
- animationName: Li
4645
- }
4646
- }), Ni = () => ({
4647
- "&.rollOut": {
4648
- animationFillMode: "both",
4649
- animationName: Di
4650
- }
4651
- }), Hi = new u("zoomIn", {
4652
- from: {
4653
- opacity: 0,
4654
- transform: "scale3d(0.3, 0.3, 0.3)"
4655
- },
4656
- "50%": {
4657
- opacity: 1
4658
- }
4659
- }), _i = new u("zoomInDown", {
4660
- from: {
4661
- opacity: 0,
4662
- transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",
4663
- animationTimingFunction: "cubic-bezier(0.55, 0.055, 0.675, 0.19)"
4664
- },
4665
- "60%": {
4666
- opacity: 1,
4667
- transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
4668
- animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4669
- }
4670
- }), Ei = new u("zoomInLeft", {
4671
- from: {
4672
- opacity: 0,
4673
- transform: "scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",
4674
- animationTimingFunction: "cubic-bezier(0.55, 0.055, 0.675, 0.19)"
4675
- },
4676
- "60%": {
4677
- opacity: 1,
4678
- transform: "scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",
4679
- animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4680
- }
4681
- }), Vi = new u("zoomInRight", {
4682
- from: {
4683
- opacity: 0,
4684
- transform: "scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",
4685
- animationTimingFunction: "cubic-bezier(0.55, 0.055, 0.675, 0.19)"
4686
- },
4687
- "60%": {
4688
- opacity: 1,
4689
- transform: "scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",
4690
- animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4691
- }
4692
- }), Ai = new u("zoomInUp", {
4693
- from: {
4694
- opacity: 0,
4695
- transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",
4696
- animationTimingFunction: "cubic-bezier(0.55, 0.055, 0.675, 0.19)"
4697
- },
4698
- "60%": {
4699
- opacity: 1,
4700
- transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
4701
- animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4702
- }
4703
- }), ji = new u("zoomOut", {
4704
- from: {
4705
- opacity: 1
4706
- },
4707
- "50%": {
4708
- opacity: 0,
4709
- transform: "scale3d(0.3, 0.3, 0.3)"
4710
- },
4711
- to: {
4712
- opacity: 0
4713
- }
4714
- }), Wi = new u("zoomOutDown", {
4715
- "40%": {
4716
- opacity: 1,
4717
- transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
4718
- animationTimingFunction: "cubic-bezier(0.55, 0.055, 0.675, 0.19)"
4719
- },
4720
- to: {
4721
- opacity: 0,
4722
- transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
4723
- animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4724
- }
4725
- }), Ki = new u("zoomOutLeft", {
4726
- "40%": {
4727
- opacity: 1,
4728
- transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
4729
- },
4730
- to: {
4731
- opacity: 0,
4732
- transform: "scale(0.1) translate3d(-2000px, 0, 0)"
4733
- }
4734
- }), Ui = new u("zoomOutRight", {
4735
- "40%": {
4736
- opacity: 1,
4737
- transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
4738
- },
4739
- to: {
4740
- opacity: 0,
4741
- transform: "scale(0.1) translate3d(2000px, 0, 0)"
4742
- }
4743
- }), Xi = new u("zoomOutUp", {
4744
- "40%": {
4745
- opacity: 1,
4746
- transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
4747
- animationTimingFunction: "cubic-bezier(0.55, 0.055, 0.675, 0.19)"
4748
- },
4749
- to: {
4750
- opacity: 0,
4751
- transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",
4752
- animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
4753
- }
4754
- }), Gi = () => ({
4755
- "&.zoomIn": {
4756
- animationFillMode: "both",
4757
- animationName: Hi
4758
- },
4759
- "&.zoomInDown": {
4760
- animationFillMode: "both",
4761
- animationName: _i
4762
- },
4763
- "&.zoomInLeft": {
4764
- animationFillMode: "both",
4765
- animationName: Ei
4766
- },
4767
- "&.zoomInRight": {
4768
- animationFillMode: "both",
4769
- animationName: Vi
4770
- },
4771
- "&.zoomInUp": {
4772
- animationFillMode: "both",
4773
- animationName: Ai
4774
- }
4775
- }), Yi = () => ({
4776
- "&.zoomOut": {
4777
- animationFillMode: "both",
4778
- animationName: ji
4779
- },
4780
- "&.zoomOutDown": {
4781
- animationFillMode: "both",
4782
- transformOrigin: "center bottom",
4783
- animationName: Wi
4784
- },
4785
- "&.zoomOutLeft": {
4786
- animationFillMode: "both",
4787
- transformOrigin: "left center",
4788
- animationName: Ki
4789
- },
4790
- "&.zoomOutRight": {
4791
- animationFillMode: "both",
4792
- transformOrigin: "right center",
4793
- animationName: Ui
4794
- },
4795
- "&.zoomOutUp": {
4796
- animationFillMode: "both",
4797
- transformOrigin: "center bottom",
4798
- animationName: Xi
4799
- }
4800
- }), qi = new u("slideInDown", {
4801
- from: {
4802
- transform: "translate3d(0, -100%, 0)",
4803
- visibility: "visible"
4804
- },
4805
- to: {
4806
- transform: "translate3d(0, 0, 0)"
4807
- }
4808
- }), Zi = new u("slideInLeft", {
4809
- from: {
4810
- transform: "translate3d(-100%, 0, 0)",
4811
- visibility: "visible"
4812
- },
4813
- to: {
4814
- transform: "translate3d(0, 0, 0)"
4815
- }
4816
- }), Ji = new u("slideInRight", {
4817
- from: {
4818
- transform: "translate3d(100%, 0, 0)",
4819
- visibility: "visible"
4820
- },
4821
- to: {
4822
- transform: "translate3d(0, 0, 0)"
4823
- }
4824
- }), Qi = new u("slideInUp", {
4825
- from: {
4826
- transform: "translate3d(0, 100%, 0)",
4827
- visibility: "visible"
4828
- },
4829
- to: {
4830
- transform: "translate3d(0, 0, 0)"
4831
- }
4832
- }), el = new u("slideOutDown", {
4833
- from: {
4834
- transform: "translate3d(0, 0, 0)"
4835
- },
4836
- to: {
4837
- transform: "translate3d(0, 100%, 0)",
4838
- visibility: "hidden"
4839
- }
4840
- }), tl = new u("slideOutLeft", {
4841
- from: {
4842
- transform: "translate3d(0, 0, 0)"
4843
- },
4844
- to: {
4845
- transform: "translate3d(-100%, 0, 0)",
4846
- visibility: "hidden"
4847
- }
4848
- }), nl = new u("slideOutRight", {
4849
- from: {
4850
- transform: "translate3d(0, 0, 0)"
4851
- },
4852
- to: {
4853
- transform: "translate3d(100%, 0, 0)",
4854
- visibility: "hidden"
4855
- }
4856
- }), al = new u("slideOutUp", {
4857
- from: {
4858
- transform: "translate3d(0, 0, 0)"
4859
- },
4860
- to: {
4861
- transform: "translate3d(0, -100%, 0)",
4862
- visibility: "hidden"
4863
- }
4864
- }), ol = () => ({
4865
- "&.slideInDown": {
4866
- animationFillMode: "both",
4867
- animationName: qi
4868
- },
4869
- "&.slideInLeft": {
4870
- animationFillMode: "both",
4871
- animationName: Zi
4872
- },
4873
- "&.slideInRight": {
4874
- animationFillMode: "both",
4875
- animationName: Ji
4876
- },
4877
- "&.slideInUp": {
4878
- animationFillMode: "both",
4879
- animationName: Qi
4880
- }
4881
- }), il = () => ({
4882
- "&.slideOutDown": {
4883
- animationFillMode: "both",
4884
- animationName: el
4885
- },
4886
- "&.slideOutLeft": {
4887
- animationFillMode: "both",
4888
- animationName: tl
4889
- },
4890
- "&.slideOutRight": {
4891
- animationFillMode: "both",
4892
- animationName: nl
4893
- },
4894
- "&.slideOutUp": {
4895
- animationFillMode: "both",
4896
- animationName: al
4897
- }
4898
- }), ll = (e) => ({
4899
- [e.componentCls]: {
4900
- "&-enter": {
4901
- background: "transparent",
4902
- animationDuration: ".3s !important",
4903
- ...wo(),
4904
- ...Lo(),
4905
- ...si(),
4906
- ...hi(),
4907
- ...xi(),
4908
- ...Fi(),
4909
- ...zi(),
4910
- ...Gi(),
4911
- ...ol()
4912
- },
4913
- "&-leave": {
4914
- display: "none",
4915
- background: "transparent",
4916
- animationDuration: ".3s !important",
4917
- ...So(),
4918
- ...Do(),
4919
- ...ui(),
4920
- ...gi(),
4921
- ...Ci(),
4922
- ...Pi(),
4923
- ...Ni(),
4924
- ...Yi(),
4925
- ...il()
4926
- }
4927
- }
4928
- });
4929
- function rl(e) {
4930
- return We("LayoutPageTranstion", (t) => {
4931
- const n = Ke(t);
4932
- return [ll(n)];
4933
- }, e);
4934
- }
4935
- const Ol = /* @__PURE__ */ E({
4936
- name: "PageTranstion",
4937
- props: {
4938
- disabled: {
4939
- type: Boolean,
4940
- default: !1
4941
- },
4942
- reverse: {
4943
- type: Boolean,
4944
- default: !0
4945
- },
4946
- name: {
4947
- type: String,
4948
- default: "bounce"
4949
- },
4950
- direction: String
4951
- },
4952
- setup(e, {
4953
- slots: t
4954
- }) {
4955
- const n = fe({
4956
- suffixCls: "page-transtion",
4957
- isPor: !0
4958
- }), {
4959
- wrapSSR: a,
4960
- hashId: i
4961
- } = rl(n), l = w(() => [m(!1), `${n}-enter`, i.value].join(" ")), d = w(() => [m(!0), `${n}-leave`, i.value].join(" ")), m = (p) => {
4962
- const x = Ge.preset.find((S) => e.name == S.name);
4963
- if (x == null)
4964
- return "";
4965
- let r = "";
4966
- e.direction == null ? r = x.directions[0] : r = x.directions.find((S) => S == e.direction) || "", r = r == null || r === "default" ? "" : r, r != "" && (r = p && e.reverse ? y(r, x.directions) : r, r = r[0].toUpperCase() + r.substring(1));
4967
- const T = p ? "Out" : "In";
4968
- return x.name + T + r;
4969
- }, y = (p, x) => {
4970
- if (p.length == 0 || p == "x" || p == "y")
4971
- return p;
4972
- let r = x.indexOf(p);
4973
- return r = r % 2 == 1 ? r - 1 : r + 1, x[r];
4974
- };
4975
- return () => e.disabled ? null : a(o(tn, {
4976
- enterActiveClass: l.value,
4977
- leaveActiveClass: d.value
4978
- }, {
4979
- default: () => {
4980
- var p;
4981
- return [(p = t.default) == null ? void 0 : p.call(t)];
4982
- }
4983
- }));
4984
- }
4985
- });
4986
- export {
4987
- Rt as BaseMenu,
4988
- Qa as DefaultHeader,
4989
- wl as GProLayout,
4990
- De as GlobalFooter,
4991
- Cl as PageContainer,
4992
- Fn as PageLoading,
4993
- Ol as PageTranstion,
4994
- Il as SettingDrawer,
4995
- Le as SiderMenuWrapper,
4996
- Je as WrapContent,
4997
- Xe as baseMenuProps,
4998
- _n as clearMenuItem,
4999
- Kn as createContext,
5000
- Xn as createRouteContext,
5001
- En as flatMap,
5002
- Sl as getMenuData,
5003
- Vn as getMenuFirstChildren,
5004
- jn as handleThemeConfig,
5005
- Gn as provideProLayoutContext,
5006
- Un as useContext,
5007
- J as useProLayoutContext
5008
- };