@gx-design-vue/pro-layout 0.1.0-beta.204 → 0.1.0-beta.206
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.
- package/dist/Context/expose.d.ts +2 -0
- package/dist/{Context.d.ts → Context/index.d.ts} +5 -6
- package/dist/components/TabsRoute/index.d.ts +2 -2
- package/dist/hooks/layout/use-layout-expose.d.ts +11 -0
- package/dist/hooks/menu/index.d.ts +3 -2
- package/dist/index.d.ts +2 -1
- package/dist/pro-layout.js +1356 -1362
- package/dist/pro-layout.umd.cjs +8 -8
- package/dist/types/typings.d.ts +7 -4
- package/dist/utils/menu.d.ts +4 -8
- package/package.json +2 -2
- package/dist/hooks/layout/index.d.ts +0 -16
package/dist/pro-layout.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Gx Design Pro
|
|
3
|
-
* Version: 0.1.0-beta.
|
|
3
|
+
* Version: 0.1.0-beta.205
|
|
4
4
|
* Author: gx12358
|
|
5
5
|
* Copyright (C) 2024 gx12358
|
|
6
6
|
* License: MIT License
|
|
7
7
|
* Description: Gx Design Pro Layout
|
|
8
|
-
* Date Created:
|
|
8
|
+
* Date Created: 2026-01-03
|
|
9
9
|
* Homepage:
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
12
|
-
import { defineComponent as
|
|
13
|
-
import { createFromIconfontCN as
|
|
14
|
-
import { useState as
|
|
15
|
-
import { unit as
|
|
16
|
-
import { isString as
|
|
17
|
-
import { useStyleTag as
|
|
18
|
-
import { Menu as be, Layout as Te, ConfigProvider as
|
|
19
|
-
import { pick as Fe, omit as
|
|
20
|
-
import { useRouter as Le, RouterLink as
|
|
21
|
-
import { useContext as
|
|
22
|
-
import { useProAppContext as
|
|
23
|
-
import { GIcon as
|
|
24
|
-
import { GPorWaterMark as
|
|
25
|
-
import { GScrollbars as
|
|
26
|
-
function
|
|
12
|
+
import { defineComponent as G, computed as v, watch as k, createVNode as o, mergeProps as oe, isVNode as Ce, cloneVNode as en, resolveComponent as tn, ref as Q, toRefs as Ee, Fragment as _, reactive as Me, toRaw as _e, onMounted as Ze, unref as Qe, inject as nn, onUnmounted as an, Teleport as on, Transition as ln, isRef as ct } from "vue";
|
|
13
|
+
import { createFromIconfontCN as Je, MenuUnfoldOutlined as rn, MenuFoldOutlined as sn, GithubOutlined as un, HomeOutlined as cn, CloseOutlined as je, FullscreenExitOutlined as Rt, FullscreenOutlined as $t, ReloadOutlined as wt, ExportOutlined as dn, VerticalRightOutlined as mn, VerticalLeftOutlined as fn, VerticalAlignMiddleOutlined as pn, SwapOutlined as gn, DownOutlined as hn } from "@ant-design/icons-vue";
|
|
14
|
+
import { useState as Be, useMemo as Oe, useMediaQuery as yn, useSlotsProps as bn, onMountedOrActivated as vn } from "@gx-design-vue/pro-hooks";
|
|
15
|
+
import { unit as W, useProConfigContext as Ne, useProStyle as le, Keyframe as h, useStyle as xe, mergeToken as et, GProConfigProvider as Cn, setAlpha as xn, getAlphaColor as In } from "@gx-design-vue/pro-provider";
|
|
16
|
+
import { isString as ke, getPrefixCls as ae, classNames as w, isUrl as he, isImg as Ae, convertValueBoolean as Sn, isArray as Rn, getSlotVNode as ie, cloneDeep as Mt, arrayRepeat as $n, isBoolean as re, deepMerge as de, isNumber as dt, getRandomNumber as mt, getLevelData as wn, getSlot as Pe, getSlotsProps as ge, isFunction as Mn, isBrowser as Bn } from "@gx-design-vue/pro-utils";
|
|
17
|
+
import { useStyleTag as Bt, useMouse as On, watchThrottled as Pn, useElementBounding as Tn, useLocalStorage as Fn, useThrottleFn as Nn, useDark as Ot } from "@vueuse/core";
|
|
18
|
+
import { Menu as be, Layout as Te, ConfigProvider as tt, Spin as Pt, Drawer as Ln, LayoutFooter as Hn, Breadcrumb as Dn, Tabs as Tt, Dropdown as ft, Card as zn } from "ant-design-vue";
|
|
19
|
+
import { pick as Fe, omit as ve, cloneDeep as qe } from "lodash-es";
|
|
20
|
+
import { useRouter as Le, RouterLink as pt, useRoute as Wn } from "vue-router";
|
|
21
|
+
import { useContext as Xe, useThemeContext as Ft, ThemeContext as jn } from "@gx-design-vue/context";
|
|
22
|
+
import { useProAppContext as Nt, proAppProps as An, proAppSlots as Kn, GProApp as Un } from "@gx-design-vue/pro-app";
|
|
23
|
+
import { GIcon as Ke } from "@gx-design-vue/icon";
|
|
24
|
+
import { GPorWaterMark as En } from "@gx-design-vue/pro-watermark";
|
|
25
|
+
import { GScrollbars as kn } from "@gx-design-vue/scrollbar";
|
|
26
|
+
function Ie(e) {
|
|
27
27
|
const n = e.layout?.key?.split(":") || [];
|
|
28
28
|
return {
|
|
29
29
|
theme: n[0],
|
|
30
30
|
layout: n[1]
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const X = {
|
|
34
34
|
// 布局模式 side/mix/simple/wide/top
|
|
35
35
|
layout: "mix",
|
|
36
36
|
// 标题
|
|
@@ -56,37 +56,43 @@ const k = {
|
|
|
56
56
|
name: "fade",
|
|
57
57
|
direction: "default"
|
|
58
58
|
}
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
}, Xn = [
|
|
60
|
+
"styles",
|
|
61
|
+
"waterMarkProps",
|
|
62
|
+
"classNames",
|
|
63
|
+
"openKeys",
|
|
64
|
+
"selectedKeys",
|
|
65
|
+
"disableMobile",
|
|
66
|
+
"shortcutKey",
|
|
67
|
+
"pageContainer"
|
|
68
|
+
], { provideContext: Vn, useInjectContext: q } = Xe("pro-layout");
|
|
69
|
+
function Gn(e) {
|
|
64
70
|
const n = document.documentElement;
|
|
65
71
|
return getComputedStyle(n).getPropertyValue(e);
|
|
66
72
|
}
|
|
67
|
-
function Nt(e) {
|
|
68
|
-
return Number.parseFloat(_n(e));
|
|
69
|
-
}
|
|
70
73
|
function Lt(e) {
|
|
74
|
+
return Number.parseFloat(Gn(e));
|
|
75
|
+
}
|
|
76
|
+
function Ht(e) {
|
|
71
77
|
const n = /var\((--[\w-]+)\)/, t = e.match(n);
|
|
72
78
|
return t ? t[1] : (/^--[\w-]+$/.test(e), e);
|
|
73
79
|
}
|
|
74
80
|
function se(e) {
|
|
75
|
-
return e || e === 0 ?
|
|
81
|
+
return e || e === 0 ? ke(e) && e.includes("--") ? `var(${e})` : W(e) : "";
|
|
76
82
|
}
|
|
77
|
-
function
|
|
83
|
+
function Yn(e, n) {
|
|
78
84
|
let t = e;
|
|
79
|
-
if (typeof e == "string" && e.includes("--") && (t =
|
|
85
|
+
if (typeof e == "string" && e.includes("--") && (t = Lt(Ht(e))), typeof t == "string") {
|
|
80
86
|
const a = Number.parseFloat(t);
|
|
81
87
|
Number.isNaN(a) || (t = a);
|
|
82
88
|
}
|
|
83
|
-
return
|
|
89
|
+
return W(t + n);
|
|
84
90
|
}
|
|
85
|
-
function
|
|
86
|
-
if (
|
|
87
|
-
const n =
|
|
91
|
+
function _n(e) {
|
|
92
|
+
if (ke(e)) {
|
|
93
|
+
const n = Ht(e);
|
|
88
94
|
if (n.startsWith("--"))
|
|
89
|
-
return
|
|
95
|
+
return Lt(n);
|
|
90
96
|
const t = Number(e);
|
|
91
97
|
if (!Number.isNaN(t))
|
|
92
98
|
return t;
|
|
@@ -96,10 +102,10 @@ function Zn(e) {
|
|
|
96
102
|
}
|
|
97
103
|
return e || 0;
|
|
98
104
|
}
|
|
99
|
-
function
|
|
105
|
+
function gt(e) {
|
|
100
106
|
return e ? Object.entries(e).map(([n, t]) => `${n.replace(/([A-Z])/g, (r) => `-${r.toLowerCase()}`)}: ${t};`).join(" ") : "";
|
|
101
107
|
}
|
|
102
|
-
const
|
|
108
|
+
const qn = `::view-transition-old(root),
|
|
103
109
|
::view-transition-new(root) {
|
|
104
110
|
animation: none;
|
|
105
111
|
mix-blend-mode: normal;
|
|
@@ -122,35 +128,35 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
122
128
|
}`, nt = {
|
|
123
129
|
layout: {
|
|
124
130
|
type: String,
|
|
125
|
-
default:
|
|
131
|
+
default: X.layout
|
|
126
132
|
},
|
|
127
133
|
wideWidth: {
|
|
128
134
|
type: [Number, String],
|
|
129
|
-
default:
|
|
135
|
+
default: X.wideWidth
|
|
130
136
|
},
|
|
131
137
|
splitMenus: {
|
|
132
138
|
type: Boolean,
|
|
133
|
-
default:
|
|
139
|
+
default: X.splitMenus
|
|
134
140
|
},
|
|
135
141
|
fixedTabsBar: {
|
|
136
142
|
type: Boolean,
|
|
137
|
-
default:
|
|
143
|
+
default: X.fixedTabsBar
|
|
138
144
|
},
|
|
139
145
|
fixedHeader: {
|
|
140
146
|
type: Boolean,
|
|
141
|
-
default:
|
|
147
|
+
default: X.fixedHeader
|
|
142
148
|
},
|
|
143
149
|
fixSiderbar: {
|
|
144
150
|
type: Boolean,
|
|
145
|
-
default:
|
|
151
|
+
default: X.fixSiderbar
|
|
146
152
|
},
|
|
147
153
|
showTabsBar: {
|
|
148
154
|
type: Boolean,
|
|
149
|
-
default:
|
|
155
|
+
default: X.showTabsBar
|
|
150
156
|
},
|
|
151
157
|
headerHeight: {
|
|
152
158
|
type: [Number, String],
|
|
153
|
-
default:
|
|
159
|
+
default: X.headerHeight
|
|
154
160
|
},
|
|
155
161
|
siderWidth: {
|
|
156
162
|
type: [Number, String],
|
|
@@ -158,20 +164,20 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
158
164
|
},
|
|
159
165
|
title: {
|
|
160
166
|
type: String,
|
|
161
|
-
default:
|
|
167
|
+
default: X.title
|
|
162
168
|
},
|
|
163
169
|
iconfontUrl: {
|
|
164
170
|
type: String,
|
|
165
|
-
default:
|
|
171
|
+
default: X.iconfontUrl
|
|
166
172
|
},
|
|
167
173
|
animate: {
|
|
168
174
|
type: Object,
|
|
169
|
-
default:
|
|
175
|
+
default: X.animate
|
|
170
176
|
}
|
|
171
|
-
},
|
|
177
|
+
}, Zn = {
|
|
172
178
|
mode: "inline",
|
|
173
179
|
menuProps: null
|
|
174
|
-
},
|
|
180
|
+
}, Dt = {
|
|
175
181
|
openKeys: {
|
|
176
182
|
type: Array,
|
|
177
183
|
default: () => []
|
|
@@ -180,7 +186,7 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
180
186
|
type: Array,
|
|
181
187
|
default: () => []
|
|
182
188
|
}
|
|
183
|
-
},
|
|
189
|
+
}, Ve = {
|
|
184
190
|
onOpenKeys: {
|
|
185
191
|
type: Function
|
|
186
192
|
},
|
|
@@ -202,9 +208,9 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
202
208
|
default: () => {
|
|
203
209
|
}
|
|
204
210
|
}
|
|
205
|
-
},
|
|
206
|
-
...
|
|
207
|
-
...Fe(
|
|
211
|
+
}, Qn = {
|
|
212
|
+
...Dt,
|
|
213
|
+
...Fe(Ve, ["menuItemRender", "subMenuItemRender", "menuTextRender"]),
|
|
208
214
|
class: {
|
|
209
215
|
type: String
|
|
210
216
|
},
|
|
@@ -246,8 +252,8 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
246
252
|
onSelect: {
|
|
247
253
|
type: Function
|
|
248
254
|
}
|
|
249
|
-
},
|
|
250
|
-
const n =
|
|
255
|
+
}, Jn = (e) => {
|
|
256
|
+
const n = W(e.layout?.menuItemIconSize || e.fontSize), t = W((e.layout?.menuItemIconSize || e.fontSize) + 2), a = e.layout?.sider, r = e.layout?.header;
|
|
251
257
|
return {
|
|
252
258
|
[`${e.antCls}-menu`]: {
|
|
253
259
|
[`&${e.componentCls}`]: {
|
|
@@ -255,6 +261,13 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
255
261
|
border: "none",
|
|
256
262
|
[`&${e.componentCls}-inline`]: {
|
|
257
263
|
color: a?.colorTextMenu,
|
|
264
|
+
[`${e.componentCls}-item-right-content`]: {
|
|
265
|
+
position: "absolute",
|
|
266
|
+
right: 0,
|
|
267
|
+
top: "50%",
|
|
268
|
+
transform: "translateY(-50%)",
|
|
269
|
+
lineHeight: "normal"
|
|
270
|
+
},
|
|
258
271
|
[`${e.antCls}-menu-submenu`]: {
|
|
259
272
|
"&-selected": {
|
|
260
273
|
[`>${e.antCls}-menu-submenu-title`]: {
|
|
@@ -268,6 +281,7 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
268
281
|
},
|
|
269
282
|
[`&${e.componentCls}-horizontal`]: {
|
|
270
283
|
color: r?.colorTextMenu,
|
|
284
|
+
[`${e.componentCls}-item-right-content`]: {},
|
|
271
285
|
[`${e.antCls}-menu-submenu`]: {
|
|
272
286
|
"&-selected": {
|
|
273
287
|
[`>${e.antCls}-menu-submenu-title`]: {
|
|
@@ -343,13 +357,6 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
343
357
|
flexDirection: "row",
|
|
344
358
|
alignItems: "center",
|
|
345
359
|
gap: e.marginXS,
|
|
346
|
-
[`${e.componentCls}-item-right-content`]: {
|
|
347
|
-
position: "absolute",
|
|
348
|
-
right: 0,
|
|
349
|
-
top: "50%",
|
|
350
|
-
transform: "translateY(-50%)",
|
|
351
|
-
lineHeight: "normal"
|
|
352
|
-
},
|
|
353
360
|
[`${e.componentCls}-item-icon`]: {
|
|
354
361
|
[`${e.componentCls}-item-image`]: {
|
|
355
362
|
width: t
|
|
@@ -452,47 +459,47 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
452
459
|
iconfontUrl: a,
|
|
453
460
|
hashId: r,
|
|
454
461
|
style: l
|
|
455
|
-
} = e, i =
|
|
456
|
-
class:
|
|
462
|
+
} = e, i = w(e.className, t, r), m = o("span", {
|
|
463
|
+
class: w(i),
|
|
457
464
|
style: {
|
|
458
465
|
display: "none"
|
|
459
466
|
}
|
|
460
467
|
}, [o("span", {
|
|
461
468
|
class: "anticon"
|
|
462
469
|
}, null)]);
|
|
463
|
-
if (!n) return
|
|
464
|
-
const
|
|
465
|
-
src:
|
|
470
|
+
if (!n) return m;
|
|
471
|
+
const s = (p) => o("img", {
|
|
472
|
+
src: p,
|
|
466
473
|
alt: "icon",
|
|
467
|
-
class:
|
|
474
|
+
class: w(e.className ? `${e.className}-image` : "", i),
|
|
468
475
|
style: l
|
|
469
|
-
}, null),
|
|
470
|
-
const I =
|
|
471
|
-
scriptUrl: a ||
|
|
476
|
+
}, null), c = (p) => {
|
|
477
|
+
const I = Je({
|
|
478
|
+
scriptUrl: a || X.iconfontUrl
|
|
472
479
|
});
|
|
473
480
|
return a ? o(I, {
|
|
474
|
-
type:
|
|
481
|
+
type: p,
|
|
475
482
|
class: i,
|
|
476
483
|
style: l
|
|
477
484
|
}, null) : o("span", {
|
|
478
485
|
class: i,
|
|
479
486
|
style: l
|
|
480
487
|
}, null);
|
|
481
|
-
},
|
|
488
|
+
}, g = () => en(n, {
|
|
482
489
|
class: i,
|
|
483
490
|
style: l
|
|
484
|
-
}), u = (
|
|
485
|
-
if (he(
|
|
486
|
-
if (t === "iconfont") return
|
|
487
|
-
const I =
|
|
488
|
-
return typeof I == "function" && o(I, null, null) ||
|
|
491
|
+
}), u = (p) => {
|
|
492
|
+
if (he(p) || Ae(p)) return s(p);
|
|
493
|
+
if (t === "iconfont") return c(p);
|
|
494
|
+
const I = tn(p);
|
|
495
|
+
return typeof I == "function" && o(I, null, null) || m;
|
|
489
496
|
};
|
|
490
|
-
return typeof n == "string" ? n !== "" ? u(n) :
|
|
497
|
+
return typeof n == "string" ? n !== "" ? u(n) : m : Ce(n) ? g() : m;
|
|
491
498
|
};
|
|
492
|
-
let
|
|
493
|
-
scriptUrl:
|
|
499
|
+
let zt = Je({
|
|
500
|
+
scriptUrl: X.iconfontUrl
|
|
494
501
|
});
|
|
495
|
-
const
|
|
502
|
+
const ht = ({
|
|
496
503
|
icon: e,
|
|
497
504
|
style: n,
|
|
498
505
|
iconPrefixes: t = "icon-",
|
|
@@ -500,100 +507,100 @@ const gt = ({
|
|
|
500
507
|
hashId: r
|
|
501
508
|
}) => {
|
|
502
509
|
if (typeof e == "string" && e !== "") {
|
|
503
|
-
if (he(e) ||
|
|
510
|
+
if (he(e) || Ae(e))
|
|
504
511
|
return o("img", {
|
|
505
512
|
key: e,
|
|
506
513
|
src: e,
|
|
507
514
|
alt: "icon",
|
|
508
515
|
style: n,
|
|
509
|
-
class:
|
|
516
|
+
class: w(`${a}-image`, r)
|
|
510
517
|
}, null);
|
|
511
518
|
if (e.startsWith(t))
|
|
512
|
-
return o(
|
|
519
|
+
return o(zt, {
|
|
513
520
|
type: e,
|
|
514
521
|
style: n
|
|
515
522
|
}, null);
|
|
516
523
|
}
|
|
517
524
|
return e;
|
|
518
|
-
},
|
|
519
|
-
class
|
|
525
|
+
}, yt = (e) => e && typeof e == "string" ? e.substring(0, 1).toUpperCase() : null;
|
|
526
|
+
class ea {
|
|
520
527
|
constructor(n) {
|
|
521
528
|
this.getNavMenuItems = (t = [], a, r) => t.filter((l) => !l.meta?.hideInMenu).map((l) => this.getSubMenuOrItem(l, a, r)).filter((l) => l).flat(1), this.getSubMenuOrItem = (t, a, r) => {
|
|
522
529
|
const {
|
|
523
530
|
menuRenderType: l,
|
|
524
531
|
subMenuItemRender: i,
|
|
525
|
-
baseClassName:
|
|
526
|
-
collapsed:
|
|
527
|
-
iconPrefixes:
|
|
528
|
-
styles:
|
|
532
|
+
baseClassName: m,
|
|
533
|
+
collapsed: s,
|
|
534
|
+
iconPrefixes: c,
|
|
535
|
+
styles: g,
|
|
529
536
|
classNames: u
|
|
530
|
-
} = this.props,
|
|
531
|
-
if (
|
|
532
|
-
const
|
|
537
|
+
} = this.props, p = this.getIntlName(t), I = l === "sider" ? t.meta?.inlineIndent ?? a * (this.props.extraInlineIndent ?? 10) : 0, M = t?.children, y = t?.meta?.hideInMenu, f = t?.meta?.rightContent, x = t?.meta?.divider, C = Array.isArray(M) && M.length > 0 && !y, P = M?.every(($) => $.meta?.hideInMenu);
|
|
538
|
+
if (C && !P) {
|
|
539
|
+
const $ = t.meta?.icon || a === 1, b = typeof t.meta?.icon == "string" ? he(t.meta?.icon) || Ae(t.meta?.icon) : !1, T = ht({
|
|
533
540
|
icon: t.meta?.icon,
|
|
534
541
|
style: t.meta?.styles?.itemIcon,
|
|
535
|
-
iconPrefixes:
|
|
536
|
-
className:
|
|
542
|
+
iconPrefixes: c,
|
|
543
|
+
className: w(`${m}-item`, t.meta?.classNames?.itemIcon),
|
|
537
544
|
hashId: this.props?.hashId
|
|
538
|
-
}),
|
|
539
|
-
class:
|
|
540
|
-
[`${
|
|
541
|
-
[`${
|
|
545
|
+
}), Y = s && $ ? yt(p) : null, K = o("div", {
|
|
546
|
+
class: w(u?.menuItemTitle, `${m}-item-title`, this.props?.hashId, {
|
|
547
|
+
[`${m}-item-title-collapsed`]: s,
|
|
548
|
+
[`${m}-item-title-collapsed-level-${r}`]: s
|
|
542
549
|
}, t.meta?.classNames?.itemTitle),
|
|
543
550
|
style: {
|
|
544
|
-
paddingInlineStart: this.props.collapsed ? 0 :
|
|
545
|
-
...
|
|
551
|
+
paddingInlineStart: this.props.collapsed ? 0 : W(I),
|
|
552
|
+
...g?.menuItemTitle || {},
|
|
546
553
|
...t.meta?.styles?.itemTitle || {}
|
|
547
554
|
}
|
|
548
|
-
}, [
|
|
549
|
-
class:
|
|
555
|
+
}, [s ? null : $ && T ? o("span", {
|
|
556
|
+
class: w(`${m}-item-icon`, this.props?.hashId, u?.menuItemIcon, t.meta?.classNames?.itemIcon),
|
|
550
557
|
style: {
|
|
551
|
-
...
|
|
552
|
-
...
|
|
558
|
+
...g?.menuItemIcon,
|
|
559
|
+
...b ? {} : t.meta?.styles?.itemIcon || {}
|
|
553
560
|
}
|
|
554
|
-
}, [
|
|
555
|
-
class:
|
|
556
|
-
[`${
|
|
561
|
+
}, [T]) : Y, o("span", {
|
|
562
|
+
class: w(`${m}-item-text`, this.props?.hashId, {
|
|
563
|
+
[`${m}-item-text-has-icon`]: $ && (T || Y)
|
|
557
564
|
}, u?.menuItemTitleText, t.meta?.classNames?.itemTitle),
|
|
558
565
|
style: {
|
|
559
|
-
...
|
|
566
|
+
...g?.menuItemTitleText || {},
|
|
560
567
|
...t.meta?.styles?.itemTitle || {}
|
|
561
568
|
}
|
|
562
|
-
}, [
|
|
563
|
-
class:
|
|
569
|
+
}, [p]), f && typeof f == "function" ? o("div", {
|
|
570
|
+
class: w(`${m}-item-right-content`, this.props.hashId, t.meta?.classNames?.itemRight),
|
|
564
571
|
style: t.meta?.styles?.itemRight
|
|
565
|
-
}, [
|
|
572
|
+
}, [f(t.meta)]) : null]), U = i ? i({
|
|
566
573
|
item: t,
|
|
567
|
-
children:
|
|
574
|
+
children: K,
|
|
568
575
|
menuProps: this.props
|
|
569
|
-
}) :
|
|
576
|
+
}) : K;
|
|
570
577
|
if (a === 0 && this.props.collapsed)
|
|
571
|
-
return this.getNavMenuItems(
|
|
572
|
-
const
|
|
573
|
-
return [
|
|
578
|
+
return this.getNavMenuItems(M, a + 1, a);
|
|
579
|
+
const V = this.getNavMenuItems(M, a + 1, a === 0 && this.props.collapsed ? a : a + 1);
|
|
580
|
+
return [x && l === "sider" ? {
|
|
574
581
|
type: "divider"
|
|
575
582
|
} : void 0, {
|
|
576
583
|
key: t.name,
|
|
577
|
-
label:
|
|
578
|
-
children:
|
|
584
|
+
label: U,
|
|
585
|
+
children: V,
|
|
579
586
|
style: {
|
|
580
|
-
...
|
|
587
|
+
...g?.subMenu || {},
|
|
581
588
|
...t.meta?.styles?.subMenu || {}
|
|
582
589
|
},
|
|
583
590
|
disabled: t.meta?.disabled,
|
|
584
|
-
class:
|
|
585
|
-
[`${
|
|
586
|
-
[`${
|
|
591
|
+
class: w(u?.subMenu, {
|
|
592
|
+
[`${m}-submenu`]: !0,
|
|
593
|
+
[`${m}-submenu-has-icon`]: $ && T
|
|
587
594
|
}, t.meta?.classNames?.subMenu),
|
|
588
|
-
popupClassName:
|
|
595
|
+
popupClassName: w(u?.subMenuPopup, `${m}-submenu-popup`, `${m}-submenu-popup-${this.props?.menuRenderType}`, this.props?.hashId, t.meta?.classNames?.subMenuPopup)
|
|
589
596
|
}].filter(Boolean);
|
|
590
597
|
}
|
|
591
|
-
return [
|
|
598
|
+
return [x && l === "sider" ? {
|
|
592
599
|
type: "divider"
|
|
593
600
|
} : void 0, {
|
|
594
|
-
class:
|
|
601
|
+
class: w(`${m}-item`, u?.menuItem, t.meta?.classNames?.item),
|
|
595
602
|
style: {
|
|
596
|
-
...
|
|
603
|
+
...g?.menuItem || {},
|
|
597
604
|
...t.meta?.styles?.item || {}
|
|
598
605
|
},
|
|
599
606
|
key: t.name,
|
|
@@ -612,88 +619,88 @@ class na {
|
|
|
612
619
|
}, this.getMenuItemPath = (t, a, r) => {
|
|
613
620
|
const l = this.conversionPath(t.path || "/"), {
|
|
614
621
|
isMobile: i,
|
|
615
|
-
menuRenderType:
|
|
616
|
-
onCollapse:
|
|
617
|
-
menuItemRender:
|
|
618
|
-
iconPrefixes:
|
|
622
|
+
menuRenderType: m,
|
|
623
|
+
onCollapse: s,
|
|
624
|
+
menuItemRender: c,
|
|
625
|
+
iconPrefixes: g,
|
|
619
626
|
classNames: u,
|
|
620
|
-
styles:
|
|
627
|
+
styles: p
|
|
621
628
|
} = this.props, I = this.getIntlName(t), {
|
|
622
|
-
baseClassName:
|
|
623
|
-
collapsed:
|
|
624
|
-
} = this.props,
|
|
629
|
+
baseClassName: M,
|
|
630
|
+
collapsed: y
|
|
631
|
+
} = this.props, f = t.meta?.icon || a === 1, x = t.meta?.rightContent, C = typeof t.meta?.icon == "string" ? he(t.meta?.icon) || Ae(t.meta?.icon) : !1, P = m === "sider" ? t.meta?.inlineIndent ?? a * (this.props.extraInlineIndent ?? 10) : 0, $ = f ? ht({
|
|
625
632
|
icon: t.meta?.icon,
|
|
626
633
|
style: t.meta?.styles?.itemIcon,
|
|
627
|
-
iconPrefixes:
|
|
628
|
-
className: `${
|
|
634
|
+
iconPrefixes: g,
|
|
635
|
+
className: `${M}-item`,
|
|
629
636
|
hashId: this.props?.hashId
|
|
630
|
-
}) : null,
|
|
637
|
+
}) : null, b = y && f ? yt(I) : null, T = t.meta?.linkStatus === 1 && he(t.meta?.link), Y = o("div", {
|
|
631
638
|
key: l,
|
|
632
|
-
class:
|
|
633
|
-
[`${
|
|
634
|
-
[`${
|
|
635
|
-
[`${
|
|
639
|
+
class: w(u?.menuItemTitle, `${M}-item-title`, this.props?.hashId, {
|
|
640
|
+
[`${M}-item-link`]: T,
|
|
641
|
+
[`${M}-item-title-collapsed`]: y,
|
|
642
|
+
[`${M}-item-title-collapsed-level-${r}`]: y
|
|
636
643
|
}, t.meta?.classNames?.itemTitle),
|
|
637
644
|
style: {
|
|
638
|
-
paddingInlineStart: this.props.collapsed ? 0 :
|
|
639
|
-
...
|
|
645
|
+
paddingInlineStart: this.props.collapsed ? 0 : W(P),
|
|
646
|
+
...p?.menuItemTitle || {},
|
|
640
647
|
...t.meta?.styles?.itemTitle || {}
|
|
641
648
|
}
|
|
642
649
|
}, [o("span", {
|
|
643
|
-
class:
|
|
650
|
+
class: w(`${M}-item-icon ${this.props?.hashId}`, u?.menuItemIcon),
|
|
644
651
|
style: {
|
|
645
|
-
display:
|
|
646
|
-
...
|
|
647
|
-
...
|
|
652
|
+
display: b === null && !$ ? "none" : "",
|
|
653
|
+
...p?.menuItemIcon,
|
|
654
|
+
...C ? {} : t.meta?.styles?.itemIcon || {}
|
|
648
655
|
}
|
|
649
|
-
}, [
|
|
656
|
+
}, [$ || o("span", {
|
|
650
657
|
class: "anticon"
|
|
651
|
-
}, [
|
|
652
|
-
class:
|
|
653
|
-
[`${
|
|
658
|
+
}, [b])]), o("span", {
|
|
659
|
+
class: w(u?.menuItemTitleText, `${M}-item-text`, this.props?.hashId, {
|
|
660
|
+
[`${M}-item-text-has-icon`]: f && ($ || b)
|
|
654
661
|
}, t.meta?.classNames?.itemTitleText),
|
|
655
662
|
style: {
|
|
656
|
-
...
|
|
663
|
+
...p?.menuItemTitleText || {},
|
|
657
664
|
...t.meta?.styles?.itemTitleText || {}
|
|
658
665
|
}
|
|
659
|
-
}, [I]),
|
|
660
|
-
class:
|
|
666
|
+
}, [I]), x && typeof x == "function" ? o("div", {
|
|
667
|
+
class: w(`${M}-item-right-content`, this.props.hashId, t.meta?.classNames?.itemRight),
|
|
661
668
|
style: t.meta?.styles?.itemRight
|
|
662
|
-
}, [
|
|
663
|
-
if (
|
|
664
|
-
const
|
|
669
|
+
}, [x(t.meta)]) : null]);
|
|
670
|
+
if (c) {
|
|
671
|
+
const K = {
|
|
665
672
|
...t,
|
|
666
|
-
isUrl:
|
|
673
|
+
isUrl: T,
|
|
667
674
|
itemPath: l,
|
|
668
675
|
isMobile: i,
|
|
669
676
|
replace: l === location.pathname,
|
|
670
|
-
onClick: () =>
|
|
677
|
+
onClick: () => s && s(!0),
|
|
671
678
|
children: void 0
|
|
672
679
|
};
|
|
673
|
-
return
|
|
674
|
-
item:
|
|
675
|
-
defaultDom:
|
|
680
|
+
return c({
|
|
681
|
+
item: K,
|
|
682
|
+
defaultDom: Y,
|
|
676
683
|
menuProps: this.props
|
|
677
684
|
});
|
|
678
685
|
}
|
|
679
|
-
return
|
|
686
|
+
return Y;
|
|
680
687
|
}, this.conversionPath = (t) => t && t.indexOf("http") === 0 ? t : `/${t || ""}`.replace(/\/+/g, "/"), this.props = n;
|
|
681
688
|
}
|
|
682
689
|
}
|
|
683
|
-
const
|
|
690
|
+
const Wt = /* @__PURE__ */ G({
|
|
684
691
|
name: "BaseMenu",
|
|
685
|
-
props:
|
|
692
|
+
props: Qn,
|
|
686
693
|
setup(e) {
|
|
687
694
|
const n = Le(), {
|
|
688
695
|
dark: t,
|
|
689
696
|
token: a
|
|
690
|
-
} = Ne(), r =
|
|
697
|
+
} = Ne(), r = q(), i = (r?.getPrefixCls || ae)({
|
|
691
698
|
isPor: !0,
|
|
692
699
|
suffixCls: "base-menu"
|
|
693
700
|
}), {
|
|
694
|
-
wrapSSR:
|
|
695
|
-
hashId:
|
|
696
|
-
} = le("ProBaseMenu", [
|
|
701
|
+
wrapSSR: m,
|
|
702
|
+
hashId: s
|
|
703
|
+
} = le("ProBaseMenu", [Jn], i), [c, g] = Be(e.openKeys || []), [u, p] = Be(e.selectedKeys || []), I = Oe(() => new ea({
|
|
697
704
|
...e,
|
|
698
705
|
layout: r?.settings?.value?.layout,
|
|
699
706
|
isMobile: r?.isMobile?.value,
|
|
@@ -704,61 +711,61 @@ const zt = /* @__PURE__ */ X({
|
|
|
704
711
|
inlineIndent: e.menuProps?.inlineIndent,
|
|
705
712
|
extraInlineIndent: e.menuProps?.extraInlineIndent,
|
|
706
713
|
iconfontUrl: e.iconfontUrl,
|
|
707
|
-
hashId:
|
|
708
|
-
onCollapse: (
|
|
709
|
-
r && (r.collapsed.value =
|
|
714
|
+
hashId: s.value,
|
|
715
|
+
onCollapse: (y) => {
|
|
716
|
+
r && (r.collapsed.value = y);
|
|
710
717
|
}
|
|
711
|
-
}), [() =>
|
|
712
|
-
const
|
|
718
|
+
}), [() => s.value, () => a.value, () => e.menuData, () => e.iconfontUrl, () => e.styles, () => e.classNames, () => e.menuProps?.inlineIndent, () => e.menuProps?.extraInlineIndent, () => r?.isMobile?.value, () => r?.collapsedEffect?.value, () => r?.settings?.value?.layout]), M = v(() => {
|
|
719
|
+
const y = `.${i}`, f = `.${i}-item`, x = `.${i}-submenu`, C = `${a.value.antCls}-menu-item-selected`, P = `${a.value.antCls}-menu-submenu-title`;
|
|
713
720
|
return `
|
|
714
|
-
${
|
|
715
|
-
${
|
|
721
|
+
${y} ${x}>${P} {
|
|
722
|
+
${gt(e.styles.subMenuTitle)}
|
|
716
723
|
}
|
|
717
|
-
${
|
|
718
|
-
${
|
|
724
|
+
${y} ${f}${C} {
|
|
725
|
+
${gt(e.styles.menuItemSelect)}
|
|
719
726
|
}
|
|
720
727
|
`;
|
|
721
728
|
});
|
|
722
|
-
return
|
|
723
|
-
e.iconfontUrl && (
|
|
729
|
+
return Bt(M), k(() => e.openKeys, (y) => g(y)), k(() => e.selectedKeys, (y) => p(y)), k(() => e.iconfontUrl, () => {
|
|
730
|
+
e.iconfontUrl && (zt = Je({
|
|
724
731
|
scriptUrl: e.iconfontUrl
|
|
725
732
|
}));
|
|
726
733
|
}, {
|
|
727
734
|
immediate: !0
|
|
728
|
-
}), () => e.menuData && e.menuData?.length < 1 ? null :
|
|
735
|
+
}), () => e.menuData && e.menuData?.length < 1 ? null : m(o(be, oe({
|
|
729
736
|
key: "Menu",
|
|
730
737
|
mode: e.mode,
|
|
731
738
|
inlineIndent: 16,
|
|
732
739
|
theme: t.value ? "dark" : "light",
|
|
733
|
-
openKeys:
|
|
740
|
+
openKeys: c.value,
|
|
734
741
|
selectedKeys: u.value,
|
|
735
742
|
style: {
|
|
736
743
|
backgroundColor: "transparent",
|
|
737
744
|
border: "none",
|
|
738
745
|
...e.style
|
|
739
746
|
},
|
|
740
|
-
class:
|
|
747
|
+
class: w(e.class, s, i, {
|
|
741
748
|
[`${i}-inline`]: e.mode === "inline",
|
|
742
749
|
[`${i}-horizontal`]: e.mode === "horizontal",
|
|
743
750
|
[`${i}-collapsed`]: r?.collapsedEffect?.value
|
|
744
751
|
}),
|
|
745
752
|
items: I.value.getNavMenuItems(e.menuData, 0, 0)
|
|
746
|
-
},
|
|
747
|
-
onOpenChange: (
|
|
748
|
-
|
|
753
|
+
}, ve(e.menuProps, ["onOpenChange", "onSelect", "onClick"]), {
|
|
754
|
+
onOpenChange: (y) => {
|
|
755
|
+
g(y), e.onOpenKeys && e.onOpenKeys(y);
|
|
749
756
|
},
|
|
750
|
-
onSelect: (
|
|
751
|
-
e.onSelect && e.onSelect(
|
|
757
|
+
onSelect: (y) => {
|
|
758
|
+
e.onSelect && e.onSelect(y), p(y.selectedKeys);
|
|
752
759
|
},
|
|
753
|
-
onClick: (
|
|
760
|
+
onClick: (y) => {
|
|
754
761
|
if (e.onClick)
|
|
755
|
-
e.onClick(
|
|
762
|
+
e.onClick(y);
|
|
756
763
|
else {
|
|
757
|
-
const
|
|
758
|
-
if (
|
|
759
|
-
const
|
|
760
|
-
n.currentRoute.value?.fullPath !==
|
|
761
|
-
path:
|
|
764
|
+
const f = r?.menu?.value?.flatMenus?.find((x) => x.name === y.key);
|
|
765
|
+
if (f) {
|
|
766
|
+
const x = ke(f.redirect) ? f.redirect : f.path || "", C = f.meta?.link || "", P = he(C);
|
|
767
|
+
n.currentRoute.value?.fullPath !== x && (P && C && f.meta?.linkStatus === 1 ? window.open(C) : n.push({
|
|
768
|
+
path: x
|
|
762
769
|
}));
|
|
763
770
|
}
|
|
764
771
|
}
|
|
@@ -776,23 +783,23 @@ const zt = /* @__PURE__ */ X({
|
|
|
776
783
|
default: () => {
|
|
777
784
|
}
|
|
778
785
|
}
|
|
779
|
-
},
|
|
786
|
+
}, ta = {
|
|
780
787
|
...He
|
|
781
|
-
},
|
|
788
|
+
}, jt = (e, { breadcrumb: n, parentRoute: t, menuMap: a, flatMenus: r }) => e.map((l, i) => (l.meta = l.meta || {}, l.meta.order = l.meta.order ?? i + 1, l.key = t?.key ? `${t?.key}-${i}` : `${i}`, l.redirect = l.redirect ? l.redirect : l.children?.length ? at(l.children || []) : void 0, t?.meta?.hidden && (l.meta.hidden = !0), t?.meta?.hideChildren && (l.meta.hidden = !0), t?.meta?.hideInMenu && (l.meta.hideInMenu = !0), t?.meta?.hideChildrenInMenu && (l.meta.hideInMenu = !0), l.path = l.path.replace("//", "/"), r.every((m) => m.name !== l.name) && r.push(l), a.has(l.name) || a.set(l.name, ve(l, "children")), l.children && l.children.length > 0 && (l.children = jt(l.children, {
|
|
782
789
|
breadcrumb: n,
|
|
783
790
|
flatMenus: r,
|
|
784
791
|
parentRoute: l,
|
|
785
792
|
menuMap: a
|
|
786
|
-
})),
|
|
787
|
-
const
|
|
788
|
-
return
|
|
793
|
+
})), n[`${l.path}`] = l, ve(l, "component"))).sort((l, i) => {
|
|
794
|
+
const m = l.meta?.order || 0, s = i.meta?.order || 0;
|
|
795
|
+
return m - s > 0 ? 1 : -1;
|
|
789
796
|
});
|
|
790
|
-
function
|
|
797
|
+
function Ti(e) {
|
|
791
798
|
const { menuSelectKey: n } = e?.meta || {};
|
|
792
799
|
return n || e?.fullPath || e?.path;
|
|
793
800
|
}
|
|
794
|
-
const
|
|
795
|
-
const n = e.find((i) => (i.name === "root" || i.path === "/") && i.children?.length), t = {}, a = [], r = /* @__PURE__ */ new Map(), l =
|
|
801
|
+
const na = (e) => {
|
|
802
|
+
const n = e.find((i) => (i.name === "root" || i.path === "/") && i.children?.length), t = {}, a = [], r = /* @__PURE__ */ new Map(), l = jt(n?.children || [], {
|
|
796
803
|
menuMap: r,
|
|
797
804
|
flatMenus: a,
|
|
798
805
|
breadcrumb: t
|
|
@@ -804,14 +811,14 @@ const oa = (e) => {
|
|
|
804
811
|
flatMenus: a
|
|
805
812
|
};
|
|
806
813
|
};
|
|
807
|
-
function
|
|
814
|
+
function aa(e) {
|
|
808
815
|
const n = /* @__PURE__ */ new Map(), t = [];
|
|
809
816
|
function a(l) {
|
|
810
817
|
return l.map((i) => {
|
|
811
|
-
const
|
|
812
|
-
if (i?.meta?.hidden || !
|
|
813
|
-
return (!
|
|
814
|
-
if (n.set(
|
|
818
|
+
const m = i.path, s = i.name, c = n.has(s) && n.get(s) !== m;
|
|
819
|
+
if (i?.meta?.hidden || !s || c)
|
|
820
|
+
return (!s || c) && (t.some((g) => g.name === s && m === i.path) || t.push({ ...i })), null;
|
|
821
|
+
if (n.set(s, m), i && i?.children)
|
|
815
822
|
if (i?.meta?.hideChildren)
|
|
816
823
|
i.children = [];
|
|
817
824
|
else
|
|
@@ -825,14 +832,14 @@ function la(e) {
|
|
|
825
832
|
const r = a(e);
|
|
826
833
|
return t.length > 0 && console.warn("The menu contains duplicate names or name undefined: ", t), r;
|
|
827
834
|
}
|
|
828
|
-
function
|
|
829
|
-
return e.map((n) => n?.meta?.hidden ? null : (n.redirect = n.redirect === void 0 ?
|
|
835
|
+
function oa(e) {
|
|
836
|
+
return e.map((n) => n?.meta?.hidden ? null : (n.redirect = n.redirect === void 0 ? at(n.children || []) || void 0 : n.redirect, n.children && delete n.children, n)).filter((n) => n);
|
|
830
837
|
}
|
|
831
|
-
function
|
|
838
|
+
function la(e, n) {
|
|
832
839
|
const t = e.find((a) => a.name === n);
|
|
833
840
|
return n === void 0 ? [] : t?.children || [];
|
|
834
841
|
}
|
|
835
|
-
function
|
|
842
|
+
function at(e) {
|
|
836
843
|
const n = e?.filter((l) => !l?.meta?.hidden && !l.meta?.hideInMenu), t = n[0];
|
|
837
844
|
let a = "";
|
|
838
845
|
const r = function(l) {
|
|
@@ -847,51 +854,36 @@ function At(e) {
|
|
|
847
854
|
}
|
|
848
855
|
return a;
|
|
849
856
|
}
|
|
850
|
-
function
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
if (a.meta?.hideInMenu)
|
|
856
|
-
return a.key;
|
|
857
|
-
a = a.children[0];
|
|
858
|
-
}
|
|
859
|
-
return a.key;
|
|
860
|
-
}
|
|
861
|
-
if (t.children) {
|
|
862
|
-
const a = Kt(t.children, n);
|
|
863
|
-
if (a)
|
|
864
|
-
return a;
|
|
865
|
-
}
|
|
866
|
-
}
|
|
857
|
+
function ia(e) {
|
|
858
|
+
const n = e.split("-"), t = [];
|
|
859
|
+
for (let a = 0; a < n.length; a++)
|
|
860
|
+
t.push(n.slice(0, a + 1).join("-"));
|
|
861
|
+
return t;
|
|
867
862
|
}
|
|
868
|
-
function
|
|
869
|
-
const
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
const
|
|
874
|
-
|
|
875
|
-
R.push(Ue(s).splice(0, b + 1).join("-"));
|
|
876
|
-
const y = i === d || f ? [] : n.filter((b) => i === b.key);
|
|
877
|
-
return n.filter((b) => R.some((S) => S === b?.key || "")).concat(y);
|
|
863
|
+
function At(e, n) {
|
|
864
|
+
const t = e.menuMap.get(n);
|
|
865
|
+
if (t) {
|
|
866
|
+
if (t.meta?.hidden)
|
|
867
|
+
return [];
|
|
868
|
+
const a = t.meta?.menuSelectKey || t.key || "", r = ia(a);
|
|
869
|
+
return e.flatMenus.filter((i) => r.includes(i.key || "")).filter((i) => !i.meta?.hideInMenu);
|
|
878
870
|
}
|
|
879
871
|
return [];
|
|
880
872
|
}
|
|
881
|
-
function
|
|
873
|
+
function ra(e, n) {
|
|
882
874
|
return e.map((t) => {
|
|
883
|
-
const a = t.children ?
|
|
875
|
+
const a = t.children ? ra(t.children, n) : [];
|
|
884
876
|
return n(t) || a.length > 0 ? {
|
|
885
877
|
...t,
|
|
886
878
|
children: a.length > 0 ? a : void 0
|
|
887
879
|
} : null;
|
|
888
880
|
}).filter((t) => t !== null);
|
|
889
881
|
}
|
|
890
|
-
function
|
|
882
|
+
function sa(e, n) {
|
|
891
883
|
const t = /* @__PURE__ */ new Set();
|
|
892
884
|
return e.filter((a) => t.has(a[n]) ? !1 : (t.add(a[n]), !0));
|
|
893
885
|
}
|
|
894
|
-
const
|
|
886
|
+
const Ge = {
|
|
895
887
|
class: String,
|
|
896
888
|
style: Object,
|
|
897
889
|
logo: {
|
|
@@ -910,12 +902,12 @@ const Ye = {
|
|
|
910
902
|
}
|
|
911
903
|
},
|
|
912
904
|
onLogoClick: Function
|
|
913
|
-
},
|
|
905
|
+
}, ua = {
|
|
914
906
|
...Fe(nt, ["title", "layout"]),
|
|
915
|
-
...
|
|
916
|
-
},
|
|
917
|
-
...Ye,
|
|
907
|
+
...Ge
|
|
908
|
+
}, ot = {
|
|
918
909
|
...Ge,
|
|
910
|
+
...Ve,
|
|
919
911
|
suppressSiderWhenMenuEmpty: {
|
|
920
912
|
type: Boolean,
|
|
921
913
|
default: !0
|
|
@@ -956,46 +948,46 @@ const Ye = {
|
|
|
956
948
|
}
|
|
957
949
|
}
|
|
958
950
|
};
|
|
959
|
-
function
|
|
960
|
-
const { x: t, y: a } =
|
|
951
|
+
function ca(e, n) {
|
|
952
|
+
const { x: t, y: a } = On(), [r, l] = Be(!1);
|
|
961
953
|
if (!n?.disabled) {
|
|
962
|
-
let
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
}, { throttle: 60 }) : (
|
|
954
|
+
let c;
|
|
955
|
+
k(() => e.value, (g) => {
|
|
956
|
+
g ? c = Pn([() => t.value, () => a.value], ([u, p]) => {
|
|
957
|
+
s(u, p);
|
|
958
|
+
}, { throttle: 60 }) : (c?.(), l(!1));
|
|
967
959
|
}, { immediate: !0 });
|
|
968
960
|
}
|
|
969
|
-
function i(
|
|
970
|
-
return
|
|
961
|
+
function i(c, g, u) {
|
|
962
|
+
return c >= u.left && c <= u.right && g >= u.top && g <= u.bottom;
|
|
971
963
|
}
|
|
972
|
-
function
|
|
973
|
-
return u.some((
|
|
974
|
-
if (!
|
|
964
|
+
function m(c, g, u) {
|
|
965
|
+
return u.some((p) => {
|
|
966
|
+
if (!p)
|
|
975
967
|
return !1;
|
|
976
|
-
const I =
|
|
977
|
-
return i(
|
|
968
|
+
const I = p.getBoundingClientRect();
|
|
969
|
+
return i(c, g, I);
|
|
978
970
|
});
|
|
979
971
|
}
|
|
980
|
-
function c
|
|
981
|
-
const u = n?.rectEl?.value,
|
|
972
|
+
function s(c, g) {
|
|
973
|
+
const u = n?.rectEl?.value, p = n?.footEl?.value;
|
|
982
974
|
if (!u)
|
|
983
975
|
return;
|
|
984
976
|
const I = n?.distance || 50;
|
|
985
|
-
if (
|
|
977
|
+
if (c <= I && !r.value) {
|
|
986
978
|
l(!0);
|
|
987
979
|
return;
|
|
988
980
|
}
|
|
989
|
-
if (!r.value ||
|
|
981
|
+
if (!r.value || c <= I)
|
|
990
982
|
return;
|
|
991
|
-
|
|
983
|
+
m(c, g, [u, p]) || l(!1);
|
|
992
984
|
}
|
|
993
985
|
return {
|
|
994
986
|
innerCollapsed: r,
|
|
995
987
|
setInnerCollapsed: l
|
|
996
988
|
};
|
|
997
989
|
}
|
|
998
|
-
function
|
|
990
|
+
function da() {
|
|
999
991
|
return o("svg", {
|
|
1000
992
|
width: "1em",
|
|
1001
993
|
height: "1em",
|
|
@@ -1006,7 +998,7 @@ function ma() {
|
|
|
1006
998
|
d: "M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"
|
|
1007
999
|
}, null)]);
|
|
1008
1000
|
}
|
|
1009
|
-
const
|
|
1001
|
+
const ma = (e) => ({
|
|
1010
1002
|
[e.componentCls]: {
|
|
1011
1003
|
position: "absolute",
|
|
1012
1004
|
insetBlockStart: "18px",
|
|
@@ -1042,48 +1034,48 @@ const fa = (e) => ({
|
|
|
1042
1034
|
}
|
|
1043
1035
|
}
|
|
1044
1036
|
}
|
|
1045
|
-
}),
|
|
1037
|
+
}), Kt = (e, n, t) => e !== !1 ? typeof e == "function" ? e(n, t) : e || t : t, lt = (e) => e.iconRender ? typeof e?.iconRender == "function" ? e?.iconRender() : e.iconRender : e.collapsed ? o(rn, null, null) : o(sn, null, null), fa = /* @__PURE__ */ G({
|
|
1046
1038
|
name: "CollapsedIcon",
|
|
1047
1039
|
inheritAttrs: !1,
|
|
1048
1040
|
props: {
|
|
1049
1041
|
isMobile: Boolean,
|
|
1050
1042
|
collapsed: Boolean,
|
|
1051
1043
|
onClick: Function,
|
|
1052
|
-
iconRender:
|
|
1044
|
+
iconRender: ta.collapsedIconRender
|
|
1053
1045
|
},
|
|
1054
1046
|
setup(e) {
|
|
1055
1047
|
const {
|
|
1056
1048
|
getPrefixCls: n
|
|
1057
|
-
} =
|
|
1049
|
+
} = q(), t = n({
|
|
1058
1050
|
suffixCls: "collapsed-button",
|
|
1059
1051
|
isPor: !0
|
|
1060
1052
|
}), {
|
|
1061
1053
|
wrapSSR: a,
|
|
1062
1054
|
hashId: r
|
|
1063
|
-
} = le("SiderMenuCollapsedIcon", [
|
|
1055
|
+
} = le("SiderMenuCollapsedIcon", [ma], t);
|
|
1064
1056
|
return () => a(o("div", {
|
|
1065
|
-
class:
|
|
1057
|
+
class: w(t, r.value, {
|
|
1066
1058
|
[`${t}-collapsed`]: e.collapsed,
|
|
1067
1059
|
[`${t}-is-mobile`]: e.isMobile
|
|
1068
1060
|
}),
|
|
1069
1061
|
onClick: (l) => e.onClick?.(l)
|
|
1070
|
-
}, [
|
|
1062
|
+
}, [lt({
|
|
1071
1063
|
collapsed: e.collapsed,
|
|
1072
|
-
iconRender: e.iconRender ? e.iconRender : () => o(
|
|
1064
|
+
iconRender: e.iconRender ? e.iconRender : () => o(da, null, null)
|
|
1073
1065
|
})]));
|
|
1074
1066
|
}
|
|
1075
|
-
}),
|
|
1067
|
+
}), Ut = (e, n) => e === !1 ? null : typeof e == "string" ? o("img", {
|
|
1076
1068
|
src: e,
|
|
1077
1069
|
alt: "logo",
|
|
1078
1070
|
style: n
|
|
1079
|
-
}, null) : typeof e == "function" ? e() : e,
|
|
1071
|
+
}, null) : typeof e == "function" ? e() : e, pa = (e, n) => o("span", {
|
|
1080
1072
|
key: "logo",
|
|
1081
1073
|
onClick: () => n.onLogoClick?.(),
|
|
1082
1074
|
class: e
|
|
1083
|
-
}, [o("a", null, [
|
|
1075
|
+
}, [o("a", null, [Ut(n.logo, n.logoStyle)])]), ga = (e, n) => e === !1 ? null : e ? e({
|
|
1084
1076
|
logo: n,
|
|
1085
1077
|
title: null
|
|
1086
|
-
}) : n,
|
|
1078
|
+
}) : n, ha = (e) => {
|
|
1087
1079
|
const {
|
|
1088
1080
|
logo: n,
|
|
1089
1081
|
logoStyle: t,
|
|
@@ -1091,21 +1083,21 @@ const fa = (e) => ({
|
|
|
1091
1083
|
layout: r,
|
|
1092
1084
|
collapsed: l,
|
|
1093
1085
|
collapsedWidth: i
|
|
1094
|
-
} = e,
|
|
1095
|
-
if (
|
|
1096
|
-
const
|
|
1097
|
-
return typeof
|
|
1098
|
-
logo:
|
|
1099
|
-
title: e.collapsed ? null :
|
|
1086
|
+
} = e, m = e.logoRender;
|
|
1087
|
+
if (m === !1) return null;
|
|
1088
|
+
const s = Ut(n, t), c = a && o("h1", null, [a]);
|
|
1089
|
+
return typeof m == "function" ? m({
|
|
1090
|
+
logo: s,
|
|
1091
|
+
title: e.collapsed ? null : c,
|
|
1100
1092
|
props: e
|
|
1101
|
-
}) :
|
|
1093
|
+
}) : m || o("a", {
|
|
1102
1094
|
key: "title",
|
|
1103
1095
|
onClick: () => e.onLogoClick?.()
|
|
1104
|
-
}, [(l && i || !l) && (
|
|
1105
|
-
},
|
|
1096
|
+
}, [(l && i || !l) && (s || null), e.collapsed && (r === "side" || r === "simple") ? null : c]);
|
|
1097
|
+
}, it = /* @__PURE__ */ G({
|
|
1106
1098
|
name: "LogoContent",
|
|
1107
1099
|
props: {
|
|
1108
|
-
...
|
|
1100
|
+
...ua,
|
|
1109
1101
|
hashId: String,
|
|
1110
1102
|
baseClassName: String
|
|
1111
1103
|
},
|
|
@@ -1118,29 +1110,29 @@ const fa = (e) => ({
|
|
|
1118
1110
|
settings: r,
|
|
1119
1111
|
collapsedProps: l,
|
|
1120
1112
|
styles: i,
|
|
1121
|
-
classNames:
|
|
1122
|
-
isMobile:
|
|
1123
|
-
} =
|
|
1124
|
-
height:
|
|
1125
|
-
} =
|
|
1113
|
+
classNames: m,
|
|
1114
|
+
isMobile: s
|
|
1115
|
+
} = q(), c = Q(), {
|
|
1116
|
+
height: g
|
|
1117
|
+
} = Tn(c);
|
|
1126
1118
|
return t({
|
|
1127
|
-
getHeight: () =>
|
|
1119
|
+
getHeight: () => g.value
|
|
1128
1120
|
}), () => o("div", {
|
|
1129
1121
|
id: "logo",
|
|
1130
|
-
ref:
|
|
1122
|
+
ref: c,
|
|
1131
1123
|
class: {
|
|
1132
1124
|
[`${e.class}`]: e.class,
|
|
1133
1125
|
[`${e.hashId}`]: !0,
|
|
1134
1126
|
[`${e.baseClassName}-logo`]: !0,
|
|
1135
|
-
[`${e.baseClassName}-logo-mobile`]:
|
|
1127
|
+
[`${e.baseClassName}-logo-mobile`]: s.value,
|
|
1136
1128
|
[`${e.baseClassName}-logo-collapsed`]: !!a.value,
|
|
1137
|
-
[`${
|
|
1129
|
+
[`${m.value?.logo}`]: !!m.value?.logo
|
|
1138
1130
|
},
|
|
1139
1131
|
style: {
|
|
1140
1132
|
...e.style || {},
|
|
1141
1133
|
...i.value.logo || {}
|
|
1142
1134
|
}
|
|
1143
|
-
}, [
|
|
1135
|
+
}, [ha({
|
|
1144
1136
|
...e,
|
|
1145
1137
|
title: e.title || r.value.title,
|
|
1146
1138
|
collapsed: a.value,
|
|
@@ -1148,8 +1140,8 @@ const fa = (e) => ({
|
|
|
1148
1140
|
}) || null, n.default?.()]);
|
|
1149
1141
|
}
|
|
1150
1142
|
});
|
|
1151
|
-
|
|
1152
|
-
const
|
|
1143
|
+
it.inheritAttrs = !1;
|
|
1144
|
+
const Ue = (e) => ({
|
|
1153
1145
|
paddingInline: 6,
|
|
1154
1146
|
paddingBlock: 6,
|
|
1155
1147
|
lineHeight: "16px",
|
|
@@ -1162,15 +1154,15 @@ const Ee = (e) => ({
|
|
|
1162
1154
|
color: e.layout?.header?.colorTextRightActionsItemHover,
|
|
1163
1155
|
backgroundColor: e.layout?.header?.colorBgRightActionsItemHover
|
|
1164
1156
|
}
|
|
1165
|
-
}),
|
|
1157
|
+
}), ya = (e) => ({
|
|
1166
1158
|
[e.componentCls]: {
|
|
1167
1159
|
display: "flex",
|
|
1168
1160
|
flexDirection: "column",
|
|
1169
1161
|
width: "100%",
|
|
1170
1162
|
minHeight: "100vh"
|
|
1171
1163
|
}
|
|
1172
|
-
}),
|
|
1173
|
-
const { layout: n } =
|
|
1164
|
+
}), ba = (e) => {
|
|
1165
|
+
const { layout: n } = Ie(e), t = e.layout?.pageContainer;
|
|
1174
1166
|
return {
|
|
1175
1167
|
[`${e.antCls}-layout`]: {
|
|
1176
1168
|
background: "transparent !important"
|
|
@@ -1207,7 +1199,7 @@ const Ee = (e) => ({
|
|
|
1207
1199
|
}
|
|
1208
1200
|
}
|
|
1209
1201
|
};
|
|
1210
|
-
},
|
|
1202
|
+
}, Et = new h("antBadgeLoadingCircle", {
|
|
1211
1203
|
"0%": { display: "none", opacity: 0, overflow: "hidden" },
|
|
1212
1204
|
"80%": {
|
|
1213
1205
|
overflow: "hidden"
|
|
@@ -1216,15 +1208,15 @@ const Ee = (e) => ({
|
|
|
1216
1208
|
display: "unset",
|
|
1217
1209
|
opacity: 1
|
|
1218
1210
|
}
|
|
1219
|
-
}),
|
|
1211
|
+
}), bt = () => ({
|
|
1220
1212
|
display: "flex",
|
|
1221
1213
|
alignItems: "center",
|
|
1222
1214
|
justifyContent: "space-between",
|
|
1223
1215
|
paddingBlock: 4,
|
|
1224
1216
|
paddingInline: 8,
|
|
1225
1217
|
marginInline: 0
|
|
1226
|
-
}),
|
|
1227
|
-
const { layout: t } =
|
|
1218
|
+
}), va = (e, { siderChildren: n = {} }) => {
|
|
1219
|
+
const { layout: t } = Ie(e), a = e.layout?.pageContainer;
|
|
1228
1220
|
return {
|
|
1229
1221
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1230
1222
|
[`${e.antCls}-layout-sider${e.componentCls}`]: {
|
|
@@ -1252,7 +1244,7 @@ const Ee = (e) => ({
|
|
|
1252
1244
|
flexDirection: "column",
|
|
1253
1245
|
borderInlineEnd: `1px solid ${e.colorSplit}`,
|
|
1254
1246
|
paddingBlock: 0,
|
|
1255
|
-
paddingBlockStart: t === "simple" ?
|
|
1247
|
+
paddingBlockStart: t === "simple" ? W(e.layout?.header?.heightLayoutHeader) : 0,
|
|
1256
1248
|
background: "transparent",
|
|
1257
1249
|
transition: `transform ${e.motionDurationMid} ${e.motionEaseOut}`,
|
|
1258
1250
|
...n
|
|
@@ -1349,23 +1341,23 @@ const Ee = (e) => ({
|
|
|
1349
1341
|
background: "transparent"
|
|
1350
1342
|
},
|
|
1351
1343
|
"&-actions": {
|
|
1352
|
-
...
|
|
1344
|
+
...bt(),
|
|
1353
1345
|
color: e.layout?.sider?.colorTextMenu,
|
|
1354
|
-
"&-item":
|
|
1346
|
+
"&-item": Ue(e)
|
|
1355
1347
|
},
|
|
1356
1348
|
"&-collapsed-button": {
|
|
1357
1349
|
flexDirection: "row-reverse",
|
|
1358
|
-
...
|
|
1350
|
+
...bt(),
|
|
1359
1351
|
"&.collapsed": {
|
|
1360
1352
|
flexDirection: "none",
|
|
1361
1353
|
justifyContent: "center"
|
|
1362
1354
|
},
|
|
1363
|
-
"&>:first-child":
|
|
1355
|
+
"&>:first-child": Ue(e)
|
|
1364
1356
|
},
|
|
1365
1357
|
"&-footer": {
|
|
1366
1358
|
paddingBlockEnd: 16,
|
|
1367
1359
|
fontSize: e.fontSize,
|
|
1368
|
-
animationName:
|
|
1360
|
+
animationName: Et,
|
|
1369
1361
|
animationDuration: ".4s",
|
|
1370
1362
|
animationTimingFunction: "ease",
|
|
1371
1363
|
[`&>${e.antCls}-menu`]: {
|
|
@@ -1382,8 +1374,8 @@ const Ee = (e) => ({
|
|
|
1382
1374
|
}
|
|
1383
1375
|
}
|
|
1384
1376
|
};
|
|
1385
|
-
},
|
|
1386
|
-
const { layout: n } =
|
|
1377
|
+
}, kt = (e) => {
|
|
1378
|
+
const { layout: n } = Ie(e);
|
|
1387
1379
|
return {
|
|
1388
1380
|
[`${e.componentCls}-logo`]: {
|
|
1389
1381
|
position: "relative",
|
|
@@ -1417,7 +1409,7 @@ const Ee = (e) => ({
|
|
|
1417
1409
|
marginInlineEnd: 0,
|
|
1418
1410
|
marginInlineStart: 6,
|
|
1419
1411
|
color: e.layout?.sider?.colorTextMenuTitle,
|
|
1420
|
-
animationName:
|
|
1412
|
+
animationName: Et,
|
|
1421
1413
|
animationDuration: ".4s",
|
|
1422
1414
|
animationTimingFunction: "ease",
|
|
1423
1415
|
fontWeight: 600,
|
|
@@ -1444,14 +1436,14 @@ const Ee = (e) => ({
|
|
|
1444
1436
|
}
|
|
1445
1437
|
};
|
|
1446
1438
|
};
|
|
1447
|
-
function
|
|
1448
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1439
|
+
function vt(e) {
|
|
1440
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
|
|
1449
1441
|
}
|
|
1450
1442
|
const {
|
|
1451
|
-
Sider:
|
|
1452
|
-
} = Te,
|
|
1443
|
+
Sider: Ca
|
|
1444
|
+
} = Te, Ct = /* @__PURE__ */ G({
|
|
1453
1445
|
props: {
|
|
1454
|
-
...
|
|
1446
|
+
...ot,
|
|
1455
1447
|
...He
|
|
1456
1448
|
},
|
|
1457
1449
|
inheritAttrs: !1,
|
|
@@ -1463,219 +1455,219 @@ const {
|
|
|
1463
1455
|
collapsedEffect: r,
|
|
1464
1456
|
collapsedProps: l,
|
|
1465
1457
|
layoutProps: i,
|
|
1466
|
-
selectedKeys:
|
|
1467
|
-
settings:
|
|
1468
|
-
openKeys:
|
|
1469
|
-
menu:
|
|
1458
|
+
selectedKeys: m,
|
|
1459
|
+
settings: s,
|
|
1460
|
+
openKeys: c,
|
|
1461
|
+
menu: g,
|
|
1470
1462
|
styles: u,
|
|
1471
|
-
classNames:
|
|
1463
|
+
classNames: p,
|
|
1472
1464
|
contentFullScreen: I
|
|
1473
|
-
} =
|
|
1474
|
-
token:
|
|
1465
|
+
} = q(), M = Nt(), {
|
|
1466
|
+
token: y
|
|
1475
1467
|
} = Ne(), {
|
|
1476
|
-
breakpoint:
|
|
1477
|
-
} =
|
|
1468
|
+
breakpoint: f
|
|
1469
|
+
} = Ee(e), x = n({
|
|
1478
1470
|
suffixCls: "sider",
|
|
1479
1471
|
isPor: !0
|
|
1480
|
-
}),
|
|
1472
|
+
}), C = Q(), P = Q(), $ = Q(), b = v(() => t.value ? !1 : r.value), T = v(() => s.value.layout === "mix" && !t.value && s.value.splitMenus), Y = v(() => s.value.layout === "side" || s.value.layout === "simple"), K = v(() => t.value || i.value.isWide ? !1 : s.value.fixSiderbar), U = v(() => (s.value.layout === "mix" || i.value.isWide) && "light" || g.value.baseTheme), V = v(() => l.value?.width ? {} : {
|
|
1481
1473
|
transform: `translateX(${a.value ? "-100%" : "0"})`,
|
|
1482
1474
|
pointerEvents: a.value ? "none" : void 0
|
|
1483
1475
|
}), {
|
|
1484
|
-
wrapSSR:
|
|
1485
|
-
hashId:
|
|
1486
|
-
} = le("ProLayoutSiderMenu", [(
|
|
1476
|
+
wrapSSR: Z,
|
|
1477
|
+
hashId: z
|
|
1478
|
+
} = le("ProLayoutSiderMenu", [(A) => va(A, {
|
|
1487
1479
|
siderChildren: u.value?.siderChildren
|
|
1488
|
-
}),
|
|
1480
|
+
}), kt], x), R = v(() => s.value.layout === "top" ? [] : g.value.menuData), D = v(() => T.value ? g.value.mixSiderMenus : R.value), B = v(() => D.value.filter((A) => !A.meta?.fixed)), O = v(() => D.value.filter((A) => A.meta?.fixed)), ee = v(() => l.value?.width ? b.value ? l.value?.width : i.value.siderWidth : a.value ? 0 : i.value.siderWidth), {
|
|
1489
1481
|
innerCollapsed: ue
|
|
1490
|
-
} =
|
|
1491
|
-
rectEl:
|
|
1492
|
-
footEl:
|
|
1482
|
+
} = ca(v(() => l.value?.width === 0 && a.value), {
|
|
1483
|
+
rectEl: $,
|
|
1484
|
+
footEl: v(() => e.menuFooterRender || O.value.length > 0 ? P.value : void 0),
|
|
1493
1485
|
disabled: l.value?.disabledInnerCollapse ?? l.value?.width !== 0
|
|
1494
|
-
}), De =
|
|
1495
|
-
const
|
|
1496
|
-
return (
|
|
1497
|
-
}),
|
|
1498
|
-
function
|
|
1486
|
+
}), De = v(() => w(a.value && `${x}-collapsed`, ue.value && `${x}-inner-collapsed`, (e.menuFooterRender || O.value.length > 0) && `${x}-has-footer`, [z.value, x, p?.value?.sider, t.value ? "shadow" : null, `${x}-${g.value.baseTheme}`, K.value ? `${x}-fixed` : null])), me = v(() => {
|
|
1487
|
+
const A = y.value?.layout?.pageContainer;
|
|
1488
|
+
return (A?.padding || A?.margin || "").split(" ")?.[0] || W(20);
|
|
1489
|
+
}), Se = Oe(() => s.value.layout === "simple" || !e.appsLogoComponents ? null : typeof e.appsLogoComponents == "function" ? e.appsLogoComponents?.() : e.appsLogoComponents, [() => e.appsLogoComponents]);
|
|
1490
|
+
function Re() {
|
|
1499
1491
|
a.value = !a.value;
|
|
1500
1492
|
}
|
|
1501
|
-
const
|
|
1493
|
+
const ze = Oe(() => {
|
|
1502
1494
|
if (l.value?.collapsedButtonRender === !1) return null;
|
|
1503
|
-
const
|
|
1504
|
-
iconRender:
|
|
1495
|
+
const A = e.collapsedButtonRender || l.value?.collapsedButtonRender, J = e.collapsedIconRender || l.value?.collapsedIconRender, te = o(fa, {
|
|
1496
|
+
iconRender: J,
|
|
1505
1497
|
isMobile: t.value,
|
|
1506
|
-
collapsed:
|
|
1507
|
-
onClick: () =>
|
|
1498
|
+
collapsed: b.value,
|
|
1499
|
+
onClick: () => Re()
|
|
1508
1500
|
}, null);
|
|
1509
|
-
return
|
|
1510
|
-
}, [() => l.value?.collapsedButtonRender, () => t.value, () =>
|
|
1501
|
+
return A ? A?.(!!b.value, te) : te;
|
|
1502
|
+
}, [() => l.value?.collapsedButtonRender, () => t.value, () => b.value]), Ye = (A) => {
|
|
1511
1503
|
if (e.onSelect) {
|
|
1512
|
-
const
|
|
1513
|
-
if (
|
|
1514
|
-
e.onSelect([
|
|
1504
|
+
const J = A.selectedKeys;
|
|
1505
|
+
if (T.value) {
|
|
1506
|
+
e.onSelect([m?.value?.[0], ...J]);
|
|
1515
1507
|
return;
|
|
1516
1508
|
}
|
|
1517
|
-
e.onSelect(
|
|
1509
|
+
e.onSelect(J);
|
|
1518
1510
|
}
|
|
1519
|
-
}, fe = (
|
|
1511
|
+
}, fe = (A, J) => o(Wt, {
|
|
1520
1512
|
key: "sider-base-menu",
|
|
1521
|
-
class:
|
|
1513
|
+
class: w(`${x}-menu ${z.value}`, J?.class),
|
|
1522
1514
|
styles: u.value,
|
|
1523
|
-
classNames:
|
|
1524
|
-
type:
|
|
1525
|
-
mode:
|
|
1515
|
+
classNames: p.value,
|
|
1516
|
+
type: g.value?.type,
|
|
1517
|
+
mode: b.value && !t.value ? "vertical" : "inline",
|
|
1526
1518
|
menuRenderType: "sider",
|
|
1527
|
-
menuProps:
|
|
1528
|
-
menuData:
|
|
1529
|
-
iconfontUrl:
|
|
1530
|
-
openKeys:
|
|
1531
|
-
selectedKeys:
|
|
1519
|
+
menuProps: g.value?.menuProps,
|
|
1520
|
+
menuData: A,
|
|
1521
|
+
iconfontUrl: s.value.iconfontUrl,
|
|
1522
|
+
openKeys: c.value,
|
|
1523
|
+
selectedKeys: m.value,
|
|
1532
1524
|
menuTextRender: e.menuTextRender,
|
|
1533
1525
|
menuItemRender: e.menuItemRender,
|
|
1534
1526
|
subMenuItemRender: e.subMenuItemRender,
|
|
1535
1527
|
style: {
|
|
1536
1528
|
width: "100%",
|
|
1537
1529
|
minHeight: ue.value ? "unset" : "",
|
|
1538
|
-
backgroundColor: ue.value ?
|
|
1539
|
-
...
|
|
1530
|
+
backgroundColor: ue.value ? y.value.layout?.sider?.colorMenuBackground : "",
|
|
1531
|
+
...J?.style || {}
|
|
1540
1532
|
},
|
|
1541
|
-
onClick:
|
|
1533
|
+
onClick: g.value?.menuProps?.onClick,
|
|
1542
1534
|
onOpenKeys: (ne) => e.onOpenKeys && e.onOpenKeys?.(ne),
|
|
1543
|
-
onSelect:
|
|
1535
|
+
onSelect: Ye
|
|
1544
1536
|
}, null);
|
|
1545
1537
|
return () => {
|
|
1546
|
-
let
|
|
1547
|
-
const
|
|
1548
|
-
ref:
|
|
1549
|
-
title:
|
|
1550
|
-
hashId:
|
|
1551
|
-
layout:
|
|
1538
|
+
let A;
|
|
1539
|
+
const J = Y.value && s.value.layout !== "simple" && o(it, oe({
|
|
1540
|
+
ref: C,
|
|
1541
|
+
title: s.value.title,
|
|
1542
|
+
hashId: z.value,
|
|
1543
|
+
layout: s.value.layout,
|
|
1552
1544
|
style: a.value && l.value.width === 0 ? {
|
|
1553
1545
|
opacity: 0
|
|
1554
1546
|
} : void 0,
|
|
1555
|
-
baseClassName:
|
|
1556
|
-
}, Fe(e, Object.keys(
|
|
1557
|
-
default: () => [
|
|
1558
|
-
}),
|
|
1559
|
-
return
|
|
1547
|
+
baseClassName: x
|
|
1548
|
+
}, Fe(e, Object.keys(Ge))), {
|
|
1549
|
+
default: () => [Se.value]
|
|
1550
|
+
}), te = e.menuHeaderRender && e.menuHeaderRender?.(e), ne = e.menuLinksRender, pe = e.siderActionsRender;
|
|
1551
|
+
return T.value && g.value.mixSiderMenus.length === 0 && e.suppressSiderWhenMenuEmpty || R.value.length === 0 && e.suppressSiderWhenMenuEmpty ? null : Z(o(tt, {
|
|
1560
1552
|
theme: {
|
|
1561
1553
|
components: {
|
|
1562
1554
|
Menu: {
|
|
1563
|
-
itemMarginInline:
|
|
1564
|
-
colorItemBg:
|
|
1565
|
-
colorSubItemBg:
|
|
1566
|
-
radiusItem:
|
|
1567
|
-
colorItemBgSelected:
|
|
1568
|
-
colorItemBgHover:
|
|
1569
|
-
colorItemBgActive:
|
|
1570
|
-
colorItemText:
|
|
1571
|
-
colorItemTextHover:
|
|
1555
|
+
itemMarginInline: y.value.layout?.sider?.menuItemMarginInline,
|
|
1556
|
+
colorItemBg: y.value.layout?.sider?.colorMenuBackground || "transparent",
|
|
1557
|
+
colorSubItemBg: y.value.layout?.sider?.colorMenuBackground || "transparent",
|
|
1558
|
+
radiusItem: y.value.layout?.sider?.borderRadius || y.value.borderRadius,
|
|
1559
|
+
colorItemBgSelected: y.value.layout?.sider?.colorBgMenuItemSelected || y.value?.colorBgTextHover,
|
|
1560
|
+
colorItemBgHover: y.value.layout?.sider?.colorBgMenuItemHover || y.value?.colorBgTextHover,
|
|
1561
|
+
colorItemBgActive: y.value.layout?.sider?.colorBgMenuItemActive || y.value?.colorBgTextActive,
|
|
1562
|
+
colorItemText: y.value.layout?.sider?.colorTextMenu || y.value?.colorTextSecondary,
|
|
1563
|
+
colorItemTextHover: y.value.layout?.sider?.colorTextMenuItemHover || "rgba(0, 0, 0, 0.85)",
|
|
1572
1564
|
// 悬浮态
|
|
1573
|
-
colorItemTextSelected:
|
|
1565
|
+
colorItemTextSelected: y.value.layout?.sider?.colorTextMenuSelected || "rgba(0, 0, 0, 1)"
|
|
1574
1566
|
}
|
|
1575
1567
|
}
|
|
1576
1568
|
}
|
|
1577
1569
|
}, {
|
|
1578
|
-
default: () => [
|
|
1570
|
+
default: () => [K.value && o("div", {
|
|
1579
1571
|
style: {
|
|
1580
|
-
width: `${
|
|
1572
|
+
width: `${W(ee.value)}`,
|
|
1581
1573
|
overflow: "hidden",
|
|
1582
|
-
flex: `0 0 ${
|
|
1583
|
-
maxWidth: `${
|
|
1584
|
-
minWidth: `${
|
|
1574
|
+
flex: `0 0 ${W(ee.value)}`,
|
|
1575
|
+
maxWidth: `${W(ee.value)}`,
|
|
1576
|
+
minWidth: `${W(ee.value)}`,
|
|
1585
1577
|
transition: "all 0.2s ease 0s",
|
|
1586
|
-
...
|
|
1578
|
+
...V.value
|
|
1587
1579
|
}
|
|
1588
|
-
}, null), o(
|
|
1580
|
+
}, null), o(Ca, {
|
|
1589
1581
|
collapsible: !0,
|
|
1590
1582
|
trigger: null,
|
|
1591
1583
|
class: De.value,
|
|
1592
1584
|
style: {
|
|
1593
|
-
zIndex:
|
|
1594
|
-
paddingTop:
|
|
1595
|
-
top:
|
|
1596
|
-
height:
|
|
1585
|
+
zIndex: K.value ? 101 : void 0,
|
|
1586
|
+
paddingTop: K.value && s.value.fixedHeader && s.value.layout === "mix" ? i.value.headerHeight : 0,
|
|
1587
|
+
top: s.value.layout === "wide" ? `calc(${i.value.headerHeight} + ${me.value})` : void 0,
|
|
1588
|
+
height: s.value.layout === "wide" ? `calc(100vh - ${i.value.headerHeight} - (${me.value}) * 2)` : void 0,
|
|
1597
1589
|
...u.value?.sider || {},
|
|
1598
|
-
...
|
|
1590
|
+
...V.value
|
|
1599
1591
|
},
|
|
1600
|
-
theme:
|
|
1601
|
-
breakpoint:
|
|
1602
|
-
collapsed:
|
|
1603
|
-
width:
|
|
1592
|
+
theme: U.value,
|
|
1593
|
+
breakpoint: f.value || void 0,
|
|
1594
|
+
collapsed: b.value,
|
|
1595
|
+
width: ee.value,
|
|
1604
1596
|
collapsedWidth: l.value?.width
|
|
1605
1597
|
}, {
|
|
1606
|
-
default: () => [
|
|
1607
|
-
class: [`${
|
|
1608
|
-
}, [o(
|
|
1609
|
-
spinning:
|
|
1610
|
-
indicator:
|
|
1611
|
-
}, null)]),
|
|
1612
|
-
ref:
|
|
1613
|
-
class: `${
|
|
1598
|
+
default: () => [g.value.loading && o("div", {
|
|
1599
|
+
class: [`${x}-loading`, z.value]
|
|
1600
|
+
}, [o(Pt, {
|
|
1601
|
+
spinning: g.value.loading,
|
|
1602
|
+
indicator: M?.indicator?.value
|
|
1603
|
+
}, null)]), J || null, o("div", {
|
|
1604
|
+
ref: $,
|
|
1605
|
+
class: `${x}-content`,
|
|
1614
1606
|
style: {
|
|
1615
1607
|
flex: "1 1 0%",
|
|
1616
1608
|
overflow: "hidden",
|
|
1617
|
-
maxHeight: a.value && l.value?.width === 0 ? `calc(100% - ${
|
|
1609
|
+
maxHeight: a.value && l.value?.width === 0 ? `calc(100% - ${C.value?.getHeight?.() * 2}px)` : ""
|
|
1618
1610
|
}
|
|
1619
|
-
}, [
|
|
1620
|
-
class:
|
|
1611
|
+
}, [Sn(e.menuHeaderRender) && o("div", {
|
|
1612
|
+
class: w(p.value?.siderHeader, [z.value, `${x}-header`, !J && `${x}-header-only`]),
|
|
1621
1613
|
style: u.value?.siderHeader
|
|
1622
|
-
}, [
|
|
1614
|
+
}, [te]), o("div", {
|
|
1623
1615
|
style: {
|
|
1624
1616
|
flex: "1 1 0%",
|
|
1625
1617
|
overflow: "hidden auto"
|
|
1626
1618
|
},
|
|
1627
|
-
class:
|
|
1619
|
+
class: w(`${x}-menu-container`)
|
|
1628
1620
|
}, [e.menuContentRender && e.menuContentRender?.({
|
|
1629
1621
|
props: e,
|
|
1630
|
-
defaultDom: fe(
|
|
1622
|
+
defaultDom: fe(B.value, {
|
|
1631
1623
|
style: u.value?.menu,
|
|
1632
|
-
class:
|
|
1624
|
+
class: p.value?.menu
|
|
1633
1625
|
})
|
|
1634
|
-
}) || fe(
|
|
1626
|
+
}) || fe(B.value, {
|
|
1635
1627
|
style: u.value?.menu,
|
|
1636
|
-
class:
|
|
1637
|
-
})])]),
|
|
1638
|
-
class: `${
|
|
1628
|
+
class: p.value?.menu
|
|
1629
|
+
})])]), s.value.layout !== "wide" && o(_, null, [ne && Rn(ne) && ne.length > 0 && o("div", {
|
|
1630
|
+
class: `${x}-links ${z.value}`
|
|
1639
1631
|
}, [o(be, {
|
|
1640
|
-
theme:
|
|
1632
|
+
theme: U.value,
|
|
1641
1633
|
inlineIndent: 16,
|
|
1642
|
-
class: `${
|
|
1634
|
+
class: `${x}-link-menu ${z.value}`,
|
|
1643
1635
|
selectedKeys: [],
|
|
1644
1636
|
openKeys: [],
|
|
1645
1637
|
mode: "inline"
|
|
1646
|
-
},
|
|
1647
|
-
class: `${
|
|
1648
|
-
key:
|
|
1649
|
-
},
|
|
1650
|
-
default: () => [
|
|
1651
|
-
}))) ?
|
|
1652
|
-
default: () => [
|
|
1638
|
+
}, vt(A = (ne || []).map(($e, We) => o(be.Item, {
|
|
1639
|
+
class: `${x}-link ${z.value}`,
|
|
1640
|
+
key: We
|
|
1641
|
+
}, vt($e) ? $e : {
|
|
1642
|
+
default: () => [$e]
|
|
1643
|
+
}))) ? A : {
|
|
1644
|
+
default: () => [A]
|
|
1653
1645
|
})]), t.value ? null : pe && o("div", {
|
|
1654
|
-
class:
|
|
1655
|
-
}, [pe]), l.value?.position === "sider" && !t.value && l.value.collapsedButtonRender !== !1 && o(
|
|
1656
|
-
class:
|
|
1646
|
+
class: w(`${x}-actions`, z.value)
|
|
1647
|
+
}, [pe]), l.value?.position === "sider" && !t.value && l.value.collapsedButtonRender !== !1 && o(_, null, [o("div", {
|
|
1648
|
+
class: w(`${x}-collapsed-button`, b.value && "collapsed", z.value)
|
|
1657
1649
|
}, [o("span", {
|
|
1658
|
-
onClick: () =>
|
|
1659
|
-
}, [
|
|
1660
|
-
collapsed:
|
|
1650
|
+
onClick: () => Re()
|
|
1651
|
+
}, [Kt(e.collapsedButtonRender || l.value?.collapsedButtonRender, b.value, lt({
|
|
1652
|
+
collapsed: b.value,
|
|
1661
1653
|
iconRender: e.collapsedIconRender || l.value?.collapsedIconRender
|
|
1662
|
-
}))])])])]), (e.menuFooterRender ||
|
|
1663
|
-
ref:
|
|
1664
|
-
class:
|
|
1654
|
+
}))])])])]), (e.menuFooterRender || O.value.length > 0) && o("div", {
|
|
1655
|
+
ref: P,
|
|
1656
|
+
class: w(`${x}-footer ${z.value}`, p.value?.siderFooter),
|
|
1665
1657
|
style: u.value?.siderFooter
|
|
1666
|
-
}, [fe(
|
|
1658
|
+
}, [fe(O.value, {
|
|
1667
1659
|
style: u.value?.footerMenu,
|
|
1668
|
-
class:
|
|
1669
|
-
}), e.menuFooterRender && e.menuFooterRender?.(e)]), I.value ||
|
|
1660
|
+
class: p.value?.footerMenu
|
|
1661
|
+
}), e.menuFooterRender && e.menuFooterRender?.(e)]), I.value || s.value.layout === "wide" || t.value ? null : l.value?.position === "fixed" && ze.value]
|
|
1670
1662
|
})]
|
|
1671
1663
|
}));
|
|
1672
1664
|
};
|
|
1673
1665
|
}
|
|
1674
|
-
}),
|
|
1666
|
+
}), xa = /* @__PURE__ */ G({
|
|
1675
1667
|
name: "SiderMenuWrapper",
|
|
1676
1668
|
inheritAttrs: !1,
|
|
1677
1669
|
props: {
|
|
1678
|
-
...
|
|
1670
|
+
...ot,
|
|
1679
1671
|
...He,
|
|
1680
1672
|
isMobile: Boolean,
|
|
1681
1673
|
siderWidth: nt.siderWidth
|
|
@@ -1683,10 +1675,10 @@ const {
|
|
|
1683
1675
|
setup(e) {
|
|
1684
1676
|
const {
|
|
1685
1677
|
collapsed: n
|
|
1686
|
-
} =
|
|
1678
|
+
} = q();
|
|
1687
1679
|
return () => {
|
|
1688
|
-
const t =
|
|
1689
|
-
return o(
|
|
1680
|
+
const t = ve(e, ["siderWidth", "isMobile"]);
|
|
1681
|
+
return o(_, null, [e.isMobile ? o(Ln, {
|
|
1690
1682
|
maskClosable: !0,
|
|
1691
1683
|
open: !n.value,
|
|
1692
1684
|
closable: !1,
|
|
@@ -1697,7 +1689,7 @@ const {
|
|
|
1697
1689
|
},
|
|
1698
1690
|
getContainer: !1,
|
|
1699
1691
|
onClose: () => n.value = !0,
|
|
1700
|
-
width:
|
|
1692
|
+
width: _n(e.siderWidth),
|
|
1701
1693
|
bodyStyle: {
|
|
1702
1694
|
height: "100vh",
|
|
1703
1695
|
padding: 0,
|
|
@@ -1705,25 +1697,25 @@ const {
|
|
|
1705
1697
|
flexDirection: "row"
|
|
1706
1698
|
}
|
|
1707
1699
|
}, {
|
|
1708
|
-
default: () => [o(
|
|
1709
|
-
}) : o(
|
|
1700
|
+
default: () => [o(Ct, t, null)]
|
|
1701
|
+
}) : o(Ct, t, null)]);
|
|
1710
1702
|
};
|
|
1711
1703
|
}
|
|
1712
1704
|
});
|
|
1713
|
-
function
|
|
1714
|
-
const { token: n } = Ne(), { settings: t } =
|
|
1715
|
-
return
|
|
1716
|
-
const r = n.value?.layout?.header?.heightLayoutHeader ?? t.value?.headerHeight ?? 48, l = n.value?.layout?.pageContainer?.margin || "", i = n.value?.layout?.pageContainer?.padding || "",
|
|
1705
|
+
function Ia(e = 0) {
|
|
1706
|
+
const { token: n } = Ne(), { settings: t } = q();
|
|
1707
|
+
return v(() => {
|
|
1708
|
+
const r = n.value?.layout?.header?.heightLayoutHeader ?? t.value?.headerHeight ?? 48, l = n.value?.layout?.pageContainer?.margin || "", i = n.value?.layout?.pageContainer?.padding || "", m = l?.split(" ")?.[0], s = i?.split(" ")?.[0], c = m ? `(${m} * 2)` : 0, g = s ? `(${s} * 2)` : 0;
|
|
1717
1709
|
return `calc(100vh - ${[
|
|
1718
1710
|
r,
|
|
1719
1711
|
t.value?.showTabsBar ? 40 : 0,
|
|
1720
|
-
|
|
1721
|
-
|
|
1712
|
+
c,
|
|
1713
|
+
g,
|
|
1722
1714
|
e
|
|
1723
|
-
].filter(Boolean).map((
|
|
1715
|
+
].filter(Boolean).map((p) => W(p)).join(" - ")})`;
|
|
1724
1716
|
});
|
|
1725
1717
|
}
|
|
1726
|
-
const { provideContext:
|
|
1718
|
+
const { provideContext: Sa, useInjectContext: rt } = Xe("pro-layout-menu"), Ra = (e) => ({
|
|
1727
1719
|
[e.componentCls]: {
|
|
1728
1720
|
marginBlock: 0,
|
|
1729
1721
|
marginBlockStart: 48,
|
|
@@ -1748,14 +1740,14 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
1748
1740
|
},
|
|
1749
1741
|
"&-copyright": { fontSize: "14px", color: e.colorText }
|
|
1750
1742
|
}
|
|
1751
|
-
}),
|
|
1743
|
+
}), Xt = [{
|
|
1752
1744
|
key: "Ant Design Pro",
|
|
1753
1745
|
title: "Ant Design Pro",
|
|
1754
1746
|
href: "https://pro.ant.design",
|
|
1755
1747
|
blankTarget: !0
|
|
1756
1748
|
}, {
|
|
1757
1749
|
key: "github",
|
|
1758
|
-
title: o(
|
|
1750
|
+
title: o(un, null, null),
|
|
1759
1751
|
href: "https://github.com/gx12358/vue3-antd-admin",
|
|
1760
1752
|
blankTarget: !0
|
|
1761
1753
|
}, {
|
|
@@ -1763,12 +1755,12 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
1763
1755
|
title: "Ant Design Vue",
|
|
1764
1756
|
href: "https://next.antdv.com/components/overview-cn/",
|
|
1765
1757
|
blankTarget: !0
|
|
1766
|
-
}],
|
|
1758
|
+
}], $a = /* @__PURE__ */ G({
|
|
1767
1759
|
name: "GlobalFooter",
|
|
1768
1760
|
props: {
|
|
1769
1761
|
links: {
|
|
1770
1762
|
type: [Array, Boolean],
|
|
1771
|
-
default:
|
|
1763
|
+
default: Xt
|
|
1772
1764
|
},
|
|
1773
1765
|
copyright: {
|
|
1774
1766
|
type: [Object, Function, Boolean, String]
|
|
@@ -1778,20 +1770,20 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
1778
1770
|
setup(e, {
|
|
1779
1771
|
slots: n
|
|
1780
1772
|
}) {
|
|
1781
|
-
const t =
|
|
1773
|
+
const t = q(), r = (t?.getPrefixCls || ae)({
|
|
1782
1774
|
suffixCls: "global-footer",
|
|
1783
1775
|
isPor: !0
|
|
1784
1776
|
}), {
|
|
1785
1777
|
wrapSSR: l,
|
|
1786
1778
|
hashId: i
|
|
1787
|
-
} = le("ProLayoutFooter", [
|
|
1779
|
+
} = le("ProLayoutFooter", [Ra], r);
|
|
1788
1780
|
return () => {
|
|
1789
|
-
const
|
|
1781
|
+
const m = ie({
|
|
1790
1782
|
slots: n,
|
|
1791
1783
|
props: e,
|
|
1792
1784
|
key: "copyright"
|
|
1793
1785
|
});
|
|
1794
|
-
return l(o(
|
|
1786
|
+
return l(o(Hn, {
|
|
1795
1787
|
style: {
|
|
1796
1788
|
padding: 0,
|
|
1797
1789
|
background: "none",
|
|
@@ -1803,19 +1795,19 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
1803
1795
|
class: [r, i.value]
|
|
1804
1796
|
}, [e.links && o("div", {
|
|
1805
1797
|
class: `${r}-list ${i.value}`
|
|
1806
|
-
}, [e.links.map((
|
|
1798
|
+
}, [e.links.map((s) => o("a", {
|
|
1807
1799
|
class: `${r}-list-link ${i.value}`.trim(),
|
|
1808
|
-
key:
|
|
1809
|
-
title:
|
|
1810
|
-
target:
|
|
1811
|
-
href:
|
|
1812
|
-
}, [
|
|
1800
|
+
key: s.key,
|
|
1801
|
+
title: s.key,
|
|
1802
|
+
target: s.blankTarget ? "_blank" : "_self",
|
|
1803
|
+
href: s.href
|
|
1804
|
+
}, [s.title]))]), m !== !1 && o("div", {
|
|
1813
1805
|
class: `${r}-copyright ${i.value}`
|
|
1814
|
-
}, [
|
|
1806
|
+
}, [m])])]
|
|
1815
1807
|
}));
|
|
1816
1808
|
};
|
|
1817
1809
|
}
|
|
1818
|
-
}),
|
|
1810
|
+
}), wa = {
|
|
1819
1811
|
usePageCard: {
|
|
1820
1812
|
type: Boolean,
|
|
1821
1813
|
default: () => {
|
|
@@ -1895,69 +1887,69 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
1895
1887
|
default: () => {
|
|
1896
1888
|
}
|
|
1897
1889
|
},
|
|
1898
|
-
...
|
|
1899
|
-
},
|
|
1890
|
+
...wa
|
|
1891
|
+
}, Ma = (e) => ({
|
|
1900
1892
|
[e.componentCls]: {
|
|
1901
1893
|
[`&${e.componentCls}-header`]: {
|
|
1902
1894
|
marginInline: e.margin
|
|
1903
1895
|
}
|
|
1904
1896
|
}
|
|
1905
|
-
}),
|
|
1897
|
+
}), Vt = /* @__PURE__ */ G({
|
|
1906
1898
|
name: "BreadCrumb",
|
|
1907
1899
|
props: {
|
|
1908
1900
|
breadcrumb: ye.breadcrumbRender
|
|
1909
1901
|
},
|
|
1910
1902
|
setup(e) {
|
|
1911
|
-
const n =
|
|
1903
|
+
const n = q(), a = (n?.getPrefixCls || ae)({
|
|
1912
1904
|
isPor: !0,
|
|
1913
1905
|
suffixCls: "breadCrumb"
|
|
1914
1906
|
}), {
|
|
1915
1907
|
wrapSSR: r,
|
|
1916
1908
|
hashId: l
|
|
1917
|
-
} = le("ProBreadCrumb", [
|
|
1918
|
-
const
|
|
1919
|
-
|
|
1909
|
+
} = le("ProBreadCrumb", [Ma], a), i = v(() => {
|
|
1910
|
+
const m = n?.breadcrumb?.value || {}, s = m.showHome ?? !0, c = qe(m.routes || []);
|
|
1911
|
+
c.length && s && c.unshift({
|
|
1920
1912
|
path: "/",
|
|
1921
1913
|
name: "首页",
|
|
1922
1914
|
breadcrumbName: "首页"
|
|
1923
1915
|
});
|
|
1924
|
-
function p
|
|
1916
|
+
function g(p) {
|
|
1925
1917
|
return {
|
|
1926
|
-
...
|
|
1927
|
-
link:
|
|
1918
|
+
...p,
|
|
1919
|
+
link: p.path
|
|
1928
1920
|
};
|
|
1929
1921
|
}
|
|
1930
|
-
const u =
|
|
1931
|
-
...
|
|
1932
|
-
path:
|
|
1933
|
-
children:
|
|
1934
|
-
isFirst:
|
|
1935
|
-
isLast:
|
|
1936
|
-
link:
|
|
1922
|
+
const u = c.map((p, I) => ({
|
|
1923
|
+
...p,
|
|
1924
|
+
path: p.name,
|
|
1925
|
+
children: p.children ? p.children?.map((M) => g(M)) : [],
|
|
1926
|
+
isFirst: s && I === 0,
|
|
1927
|
+
isLast: p.path && I === c.length - 1,
|
|
1928
|
+
link: p.path
|
|
1937
1929
|
}));
|
|
1938
1930
|
return {
|
|
1939
|
-
...
|
|
1931
|
+
...m,
|
|
1940
1932
|
routes: u,
|
|
1941
|
-
itemRender:
|
|
1942
|
-
route:
|
|
1943
|
-
}) =>
|
|
1944
|
-
to:
|
|
1933
|
+
itemRender: m?.itemRender || (({
|
|
1934
|
+
route: p
|
|
1935
|
+
}) => p.isFirst ? o(pt, {
|
|
1936
|
+
to: p.link
|
|
1945
1937
|
}, {
|
|
1946
|
-
default: () => [o(
|
|
1947
|
-
}) :
|
|
1948
|
-
to:
|
|
1938
|
+
default: () => [o(cn, null, null)]
|
|
1939
|
+
}) : p.isLast ? p.breadcrumbName : o(pt, {
|
|
1940
|
+
to: p.link
|
|
1949
1941
|
}, {
|
|
1950
|
-
default: () => [
|
|
1942
|
+
default: () => [p.breadcrumbName]
|
|
1951
1943
|
}))
|
|
1952
1944
|
};
|
|
1953
1945
|
});
|
|
1954
1946
|
return () => r(o("div", {
|
|
1955
|
-
class:
|
|
1956
|
-
}, [e.breadcrumb === !1 ? o("span", null, null) : e.breadcrumb ? e.breadcrumb?.(i.value) : o(
|
|
1947
|
+
class: w(a, l.value, n?.breadcrumb?.value?.position === "header" && `${a}-header`)
|
|
1948
|
+
}, [e.breadcrumb === !1 ? o("span", null, null) : e.breadcrumb ? e.breadcrumb?.(i.value) : o(Dn, i.value, null)]));
|
|
1957
1949
|
}
|
|
1958
|
-
}),
|
|
1959
|
-
...Ye,
|
|
1950
|
+
}), st = {
|
|
1960
1951
|
...Ge,
|
|
1952
|
+
...Ve,
|
|
1961
1953
|
autoHideHeader: Boolean,
|
|
1962
1954
|
headerMainWidth: {
|
|
1963
1955
|
type: [Number, String],
|
|
@@ -1990,7 +1982,7 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
1990
1982
|
}
|
|
1991
1983
|
}
|
|
1992
1984
|
}, Ba = (e) => {
|
|
1993
|
-
const { layout: n, theme: t } =
|
|
1985
|
+
const { layout: n, theme: t } = Ie(e), a = e.lineWidth, r = e?.layout?.header;
|
|
1994
1986
|
return {
|
|
1995
1987
|
[`${e.proComponentsCls}-header`]: {
|
|
1996
1988
|
"&-light": {
|
|
@@ -2030,7 +2022,7 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
2030
2022
|
marginInlineEnd: 16
|
|
2031
2023
|
},
|
|
2032
2024
|
[`${e.componentCls}-collapsed-button`]: {
|
|
2033
|
-
...
|
|
2025
|
+
...Ue(e)
|
|
2034
2026
|
}
|
|
2035
2027
|
}
|
|
2036
2028
|
},
|
|
@@ -2040,7 +2032,7 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
2040
2032
|
alignItems: "center",
|
|
2041
2033
|
paddingInline: 6,
|
|
2042
2034
|
paddingBlock: 6,
|
|
2043
|
-
lineHeight: `calc(${
|
|
2035
|
+
lineHeight: `calc(${W(e.layout?.header?.heightLayoutHeader)} - ${W(12)})`,
|
|
2044
2036
|
[`${e.antCls}-menu-${t}${e.antCls}-menu-horizontal`]: {
|
|
2045
2037
|
width: "100%",
|
|
2046
2038
|
color: r?.colorTextMenu,
|
|
@@ -2116,56 +2108,53 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
2116
2108
|
}
|
|
2117
2109
|
}
|
|
2118
2110
|
};
|
|
2119
|
-
},
|
|
2111
|
+
}, Oa = ["mix", "top", "wide"], Pa = /* @__PURE__ */ G({
|
|
2120
2112
|
name: "DefaultHeader",
|
|
2121
2113
|
props: {
|
|
2122
|
-
...
|
|
2114
|
+
...st,
|
|
2123
2115
|
...He
|
|
2124
2116
|
},
|
|
2125
2117
|
inheritAttrs: !1,
|
|
2126
2118
|
setup(e) {
|
|
2127
|
-
const n = Le(), t =
|
|
2119
|
+
const n = Le(), t = rt(), {
|
|
2128
2120
|
token: a
|
|
2129
2121
|
} = Ne(), {
|
|
2130
2122
|
styles: r,
|
|
2131
2123
|
classNames: l,
|
|
2132
2124
|
getPrefixCls: i,
|
|
2133
|
-
collapsed:
|
|
2134
|
-
collapsedProps:
|
|
2135
|
-
settings:
|
|
2136
|
-
isMobile:
|
|
2125
|
+
collapsed: m,
|
|
2126
|
+
collapsedProps: s,
|
|
2127
|
+
settings: c,
|
|
2128
|
+
isMobile: g,
|
|
2137
2129
|
openKeys: u,
|
|
2138
|
-
selectedKeys:
|
|
2130
|
+
selectedKeys: p,
|
|
2139
2131
|
menu: I,
|
|
2140
|
-
breadcrumb:
|
|
2141
|
-
breadcrumbRender:
|
|
2142
|
-
} =
|
|
2132
|
+
breadcrumb: M,
|
|
2133
|
+
breadcrumbRender: y
|
|
2134
|
+
} = q(), f = i({
|
|
2143
2135
|
suffixCls: "global-header",
|
|
2144
2136
|
isPor: !0
|
|
2145
2137
|
}), {
|
|
2146
|
-
wrapSSR:
|
|
2147
|
-
hashId:
|
|
2148
|
-
} = le("ProDefaultHeader", [Ba,
|
|
2149
|
-
[`${
|
|
2150
|
-
[`${
|
|
2151
|
-
[`${
|
|
2152
|
-
})),
|
|
2153
|
-
const
|
|
2154
|
-
|
|
2138
|
+
wrapSSR: x,
|
|
2139
|
+
hashId: C
|
|
2140
|
+
} = le("ProDefaultHeader", [Ba, kt], f), P = v(() => c.value.layout === "side" || c.value.layout === "simple"), $ = v(() => ({
|
|
2141
|
+
[`${C.value}`]: !0,
|
|
2142
|
+
[`${f}`]: !0,
|
|
2143
|
+
[`${f}-${c.value.layout}`]: !0
|
|
2144
|
+
})), b = v(() => c.value.splitMenus && c.value.layout === "mix" ? oa(Mt(I.value.menuData)) : c.value.layout === "top" ? I.value.menuData : []), T = (U, V, Z) => {
|
|
2145
|
+
const z = n?.currentRoute?.value, R = c.value.layout === "mix", D = t?.matchedMenu?.value || At({
|
|
2146
|
+
menuMap: t.menuMap.value,
|
|
2155
2147
|
flatMenus: I.value.flatMenus
|
|
2156
|
-
},
|
|
2157
|
-
|
|
2158
|
-
name
|
|
2159
|
-
|
|
2160
|
-
if (e.onSelect && A === "select") {
|
|
2161
|
-
const C = v.value.find(($) => $.name === Y)?.redirect;
|
|
2162
|
-
e.onSelect(te && C ? _.map(($) => $.name) : E);
|
|
2148
|
+
}, z?.name);
|
|
2149
|
+
if (e.onSelect && U === "select") {
|
|
2150
|
+
const B = b.value.find((O) => O.name === Z)?.redirect;
|
|
2151
|
+
e.onSelect(R && B ? D.map((O) => O.name) : V);
|
|
2163
2152
|
}
|
|
2164
|
-
e.onOpenKeys &&
|
|
2165
|
-
},
|
|
2166
|
-
|
|
2167
|
-
},
|
|
2168
|
-
const
|
|
2153
|
+
e.onOpenKeys && U === "openKeys" && e.onOpenKeys(R ? D.filter((B) => B.name !== z?.name).map((B) => B.name) : V);
|
|
2154
|
+
}, Y = () => {
|
|
2155
|
+
m.value = !m.value;
|
|
2156
|
+
}, K = () => {
|
|
2157
|
+
const U = e.headerContentRender !== !1 && typeof e.headerContentRender == "function" ? o("div", {
|
|
2169
2158
|
style: {
|
|
2170
2159
|
flex: 1
|
|
2171
2160
|
}
|
|
@@ -2173,8 +2162,8 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
2173
2162
|
style: {
|
|
2174
2163
|
flex: 1
|
|
2175
2164
|
},
|
|
2176
|
-
class: [`${
|
|
2177
|
-
}, [
|
|
2165
|
+
class: [`${f}-menu`, C.value]
|
|
2166
|
+
}, [b.value?.length > 0 && o(tt, {
|
|
2178
2167
|
theme: {
|
|
2179
2168
|
components: {
|
|
2180
2169
|
Layout: {
|
|
@@ -2196,9 +2185,9 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
2196
2185
|
}
|
|
2197
2186
|
}
|
|
2198
2187
|
}, {
|
|
2199
|
-
default: () => [o(
|
|
2188
|
+
default: () => [o(Wt, {
|
|
2200
2189
|
key: "header-base-menu",
|
|
2201
|
-
class:
|
|
2190
|
+
class: w(`${f}-menu ${C.value}`, l.value?.menu),
|
|
2202
2191
|
styles: r.value,
|
|
2203
2192
|
classNames: l.value,
|
|
2204
2193
|
type: I.value?.type,
|
|
@@ -2206,55 +2195,55 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
2206
2195
|
menuRenderType: "header",
|
|
2207
2196
|
style: r.value?.menu,
|
|
2208
2197
|
menuProps: I.value?.menuProps,
|
|
2209
|
-
menuData:
|
|
2210
|
-
iconfontUrl:
|
|
2198
|
+
menuData: b.value,
|
|
2199
|
+
iconfontUrl: c.value?.iconfontUrl,
|
|
2211
2200
|
openKeys: u.value,
|
|
2212
|
-
selectedKeys:
|
|
2201
|
+
selectedKeys: p.value,
|
|
2213
2202
|
menuTextRender: e.menuTextRender,
|
|
2214
2203
|
menuItemRender: e.menuItemRender,
|
|
2215
2204
|
subMenuItemRender: e.subMenuItemRender,
|
|
2216
2205
|
onClick: I.value?.menuProps?.onClick,
|
|
2217
|
-
onSelect: (
|
|
2218
|
-
onOpenKeys: (
|
|
2206
|
+
onSelect: (V) => T("select", V.selectedKeys, V.key),
|
|
2207
|
+
onOpenKeys: (V) => T("openKeys", V)
|
|
2219
2208
|
}, null)]
|
|
2220
2209
|
})]);
|
|
2221
|
-
return o(
|
|
2210
|
+
return o(_, null, [U, c.value.layout !== "simple" && (e.rightContentRender && typeof e.rightContentRender == "function" ? e.rightContentRender(e) : o(_, null, null))]);
|
|
2222
2211
|
};
|
|
2223
2212
|
return () => {
|
|
2224
|
-
const
|
|
2225
|
-
collapsed:
|
|
2226
|
-
iconRender: e.collapsedIconRender ||
|
|
2213
|
+
const U = Kt(e.collapsedButtonRender || s.value?.collapsedButtonRender, m.value, lt({
|
|
2214
|
+
collapsed: m.value,
|
|
2215
|
+
iconRender: e.collapsedIconRender || s.value?.collapsedIconRender
|
|
2227
2216
|
}));
|
|
2228
|
-
return
|
|
2229
|
-
class:
|
|
2230
|
-
}, [
|
|
2231
|
-
class: `${
|
|
2232
|
-
onClick:
|
|
2233
|
-
}, [
|
|
2234
|
-
class: `${
|
|
2217
|
+
return x(o("div", {
|
|
2218
|
+
class: $.value
|
|
2219
|
+
}, [g.value ? o(_, null, [ga(e.logoRender, pa(w([`${f}-logo`, g.value && `${f}-logo-mobile`, C.value]), e)), s.value?.collapsedButtonRender !== !1 && o("span", {
|
|
2220
|
+
class: `${f}-collapsed-button ${C.value}`,
|
|
2221
|
+
onClick: Y
|
|
2222
|
+
}, [U]), K()]) : o("div", {
|
|
2223
|
+
class: `${f}-main ${C.value}`,
|
|
2235
2224
|
style: {
|
|
2236
|
-
width: e.headerMainWidth || e.headerMainWidth === 0 ?
|
|
2225
|
+
width: e.headerMainWidth || e.headerMainWidth === 0 ? W(e.headerMainWidth) : c.value.layout === "wide" ? se(c.value.wideWidth) : void 0
|
|
2237
2226
|
}
|
|
2238
2227
|
}, [o("div", {
|
|
2239
|
-
class: `${
|
|
2240
|
-
}, [
|
|
2241
|
-
class: `${
|
|
2242
|
-
onClick:
|
|
2243
|
-
}, [
|
|
2244
|
-
hashId:
|
|
2245
|
-
baseClassName:
|
|
2228
|
+
class: `${f}-main-left ${C.value}`
|
|
2229
|
+
}, [s.value?.position === "header" && s.value?.collapsedButtonRender !== !1 && P.value && (c.value.layout !== "mix" ? I.value.menuData : I.value.mixSiderMenus).length > 0 && o("div", {
|
|
2230
|
+
class: `${f}-collapsed-button ${C.value}`,
|
|
2231
|
+
onClick: Y
|
|
2232
|
+
}, [U]), Oa.includes(c.value.layout) && o(_, null, [c.value.layout !== "wide" && e.appsLogoComponents && o(_, null, [typeof e.appsLogoComponents == "function" ? e.appsLogoComponents?.() : e.appsLogoComponents]), o(it, oe({
|
|
2233
|
+
hashId: C.value,
|
|
2234
|
+
baseClassName: f
|
|
2246
2235
|
}, e, {
|
|
2247
|
-
title:
|
|
2248
|
-
}), null)]),
|
|
2249
|
-
breadcrumb:
|
|
2250
|
-
}, null)]),
|
|
2236
|
+
title: c.value.title
|
|
2237
|
+
}), null)]), M.value?.position === "header" && M.value?.visible && o(Vt, {
|
|
2238
|
+
breadcrumb: y.value
|
|
2239
|
+
}, null)]), K()])]));
|
|
2251
2240
|
};
|
|
2252
2241
|
}
|
|
2253
|
-
}),
|
|
2242
|
+
}), Ta = (e) => ({
|
|
2254
2243
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
2255
2244
|
[`${e.antCls}-layout-header${e.componentCls}`]: {
|
|
2256
|
-
height:
|
|
2257
|
-
lineHeight:
|
|
2245
|
+
height: W(e.layout?.header?.heightLayoutHeader || 56),
|
|
2246
|
+
lineHeight: W(e.layout?.header?.heightLayoutHeader || 56),
|
|
2258
2247
|
// hitu 用了这个属性,不能删除哦 @南取
|
|
2259
2248
|
zIndex: 19,
|
|
2260
2249
|
width: "100%",
|
|
@@ -2295,16 +2284,16 @@ const { provideContext: Ra, useInjectContext: it } = tt("pro-layout-menu"), $a =
|
|
|
2295
2284
|
}
|
|
2296
2285
|
}
|
|
2297
2286
|
});
|
|
2298
|
-
function
|
|
2299
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2287
|
+
function Fa(e) {
|
|
2288
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
|
|
2300
2289
|
}
|
|
2301
2290
|
const {
|
|
2302
|
-
Header:
|
|
2303
|
-
} = Te,
|
|
2291
|
+
Header: xt
|
|
2292
|
+
} = Te, Na = /* @__PURE__ */ G({
|
|
2304
2293
|
name: "GlobalHeader",
|
|
2305
2294
|
inheritAttrs: !1,
|
|
2306
2295
|
props: {
|
|
2307
|
-
...
|
|
2296
|
+
...st,
|
|
2308
2297
|
...He
|
|
2309
2298
|
},
|
|
2310
2299
|
setup(e) {
|
|
@@ -2315,59 +2304,59 @@ const {
|
|
|
2315
2304
|
collapsedEffect: r,
|
|
2316
2305
|
collapsedProps: l,
|
|
2317
2306
|
getPrefixCls: i,
|
|
2318
|
-
contentFullScreen:
|
|
2319
|
-
settings:
|
|
2320
|
-
isMobile:
|
|
2321
|
-
layoutProps:
|
|
2322
|
-
} =
|
|
2307
|
+
contentFullScreen: m,
|
|
2308
|
+
settings: s,
|
|
2309
|
+
isMobile: c,
|
|
2310
|
+
layoutProps: g
|
|
2311
|
+
} = q(), u = i({
|
|
2323
2312
|
suffixCls: "layout-header",
|
|
2324
2313
|
isPor: !0
|
|
2325
|
-
}),
|
|
2326
|
-
wrapSSR:
|
|
2327
|
-
hashId:
|
|
2328
|
-
} = le("ProLayoutHeader", [
|
|
2329
|
-
[`${
|
|
2314
|
+
}), p = v(() => s.value.fixedHeader), I = v(() => s.value.layout === "side" || s.value.layout === "simple"), {
|
|
2315
|
+
wrapSSR: M,
|
|
2316
|
+
hashId: y
|
|
2317
|
+
} = le("ProLayoutHeader", [Ta], u), f = v(() => ({
|
|
2318
|
+
[`${y.value}`]: !0,
|
|
2330
2319
|
[`${u}`]: !0,
|
|
2331
2320
|
[`${t.value.header}`]: t.value.header,
|
|
2332
|
-
[`${u}-fixed-header`]:
|
|
2333
|
-
})),
|
|
2321
|
+
[`${u}-fixed-header`]: p.value
|
|
2322
|
+
})), x = v(() => p.value && !c.value), C = v(() => {
|
|
2334
2323
|
if (l.value?.width === 0 && a.value)
|
|
2335
2324
|
return "100%";
|
|
2336
|
-
const
|
|
2337
|
-
return I.value &&
|
|
2338
|
-
}),
|
|
2339
|
-
const
|
|
2325
|
+
const b = r.value ? l.value?.width : g.value.siderWidth;
|
|
2326
|
+
return I.value && x.value ? r.value ? b ? `calc(100% - ${W(b)})` : "100%" : b ? `calc(100% - ${W(b)})` : "100%" : "100%";
|
|
2327
|
+
}), P = v(() => p.value ? 0 : void 0), $ = () => {
|
|
2328
|
+
const b = o(Pa, e, null);
|
|
2340
2329
|
return e.headerRender ? e.headerRender({
|
|
2341
2330
|
props: e,
|
|
2342
|
-
defaultDom:
|
|
2343
|
-
}) :
|
|
2331
|
+
defaultDom: b
|
|
2332
|
+
}) : b;
|
|
2344
2333
|
};
|
|
2345
2334
|
return () => {
|
|
2346
|
-
let
|
|
2347
|
-
return
|
|
2335
|
+
let b;
|
|
2336
|
+
return M(o(_, null, [p.value && o(xt, {
|
|
2348
2337
|
style: {
|
|
2349
|
-
height: `${
|
|
2350
|
-
lineHeight: `${
|
|
2338
|
+
height: `${g.value.headerHeight}`,
|
|
2339
|
+
lineHeight: `${g.value.headerHeight}`,
|
|
2351
2340
|
background: "transparent",
|
|
2352
|
-
marginTop:
|
|
2341
|
+
marginTop: m.value ? `-${g.value.headerHeight}` : void 0
|
|
2353
2342
|
}
|
|
2354
|
-
}, null), o(
|
|
2355
|
-
class:
|
|
2343
|
+
}, null), o(xt, {
|
|
2344
|
+
class: f.value,
|
|
2356
2345
|
style: {
|
|
2357
|
-
height: `${
|
|
2358
|
-
lineHeight: `${
|
|
2359
|
-
width:
|
|
2346
|
+
height: `${g.value.headerHeight}`,
|
|
2347
|
+
lineHeight: `${g.value.headerHeight}`,
|
|
2348
|
+
width: C.value,
|
|
2360
2349
|
zIndex: I.value ? 100 : 101,
|
|
2361
|
-
right:
|
|
2362
|
-
marginTop:
|
|
2350
|
+
right: P.value,
|
|
2351
|
+
marginTop: m.value ? `-${g.value.headerHeight}` : void 0,
|
|
2363
2352
|
...n.value?.header || {}
|
|
2364
2353
|
}
|
|
2365
|
-
},
|
|
2366
|
-
default: () => [
|
|
2354
|
+
}, Fa(b = $()) ? b : {
|
|
2355
|
+
default: () => [b]
|
|
2367
2356
|
})]));
|
|
2368
2357
|
};
|
|
2369
2358
|
}
|
|
2370
|
-
}), Ha = {
|
|
2359
|
+
}), { provideContext: La, useInjectContext: Gt } = Xe("pro-layout-expose"), Ha = {
|
|
2371
2360
|
visible: {
|
|
2372
2361
|
type: Boolean,
|
|
2373
2362
|
default: void 0
|
|
@@ -2389,7 +2378,7 @@ const {
|
|
|
2389
2378
|
default: () => {
|
|
2390
2379
|
}
|
|
2391
2380
|
}
|
|
2392
|
-
},
|
|
2381
|
+
}, Yt = {
|
|
2393
2382
|
onReloadPage: {
|
|
2394
2383
|
type: Function
|
|
2395
2384
|
},
|
|
@@ -2400,13 +2389,13 @@ const {
|
|
|
2400
2389
|
"onUpdate:tabs": {
|
|
2401
2390
|
type: Function
|
|
2402
2391
|
}
|
|
2403
|
-
},
|
|
2392
|
+
}, _t = {
|
|
2404
2393
|
...Ha,
|
|
2405
2394
|
loading: {
|
|
2406
2395
|
type: Boolean,
|
|
2407
2396
|
default: void 0
|
|
2408
2397
|
},
|
|
2409
|
-
...
|
|
2398
|
+
...Yt
|
|
2410
2399
|
}, Da = {
|
|
2411
2400
|
theme: {
|
|
2412
2401
|
type: [String]
|
|
@@ -2421,14 +2410,14 @@ const {
|
|
|
2421
2410
|
type: Object,
|
|
2422
2411
|
default: () => ({})
|
|
2423
2412
|
}
|
|
2424
|
-
},
|
|
2413
|
+
}, ut = {
|
|
2425
2414
|
...za,
|
|
2426
2415
|
...Da,
|
|
2427
|
-
...
|
|
2428
|
-
...
|
|
2429
|
-
...
|
|
2430
|
-
...
|
|
2431
|
-
...
|
|
2416
|
+
...ot,
|
|
2417
|
+
...st,
|
|
2418
|
+
...Yt,
|
|
2419
|
+
...Ve,
|
|
2420
|
+
...Dt,
|
|
2432
2421
|
styles: {
|
|
2433
2422
|
type: Object,
|
|
2434
2423
|
default: () => ({})
|
|
@@ -2442,11 +2431,11 @@ const {
|
|
|
2442
2431
|
},
|
|
2443
2432
|
settings: {
|
|
2444
2433
|
type: Object,
|
|
2445
|
-
default: () =>
|
|
2434
|
+
default: () => X
|
|
2446
2435
|
},
|
|
2447
2436
|
menu: {
|
|
2448
2437
|
type: Object,
|
|
2449
|
-
default: () =>
|
|
2438
|
+
default: () => Zn
|
|
2450
2439
|
},
|
|
2451
2440
|
route: {
|
|
2452
2441
|
type: Object,
|
|
@@ -2485,7 +2474,7 @@ const {
|
|
|
2485
2474
|
loading: Boolean,
|
|
2486
2475
|
footerLinks: {
|
|
2487
2476
|
type: [Array, Boolean],
|
|
2488
|
-
default:
|
|
2477
|
+
default: Xt
|
|
2489
2478
|
},
|
|
2490
2479
|
pageLockRender: {
|
|
2491
2480
|
type: [Object, Function, Boolean, String],
|
|
@@ -2502,9 +2491,9 @@ const {
|
|
|
2502
2491
|
}
|
|
2503
2492
|
},
|
|
2504
2493
|
onContentFullScreenChange: ye.onContentFullScreenChange
|
|
2505
|
-
},
|
|
2506
|
-
...Qt,
|
|
2494
|
+
}, qt = ["menuLinksRender", "appsLogoComponents", "siderActionsRender"], Zt = ["appsLogoComponents", "extraRightDropdownRender"], Qt = $n([
|
|
2507
2495
|
...Zt,
|
|
2496
|
+
...qt,
|
|
2508
2497
|
"pageHeaderRender",
|
|
2509
2498
|
"copyrightRender"
|
|
2510
2499
|
]), Wa = [
|
|
@@ -2520,9 +2509,9 @@ const {
|
|
|
2520
2509
|
"breadcrumbRender",
|
|
2521
2510
|
"collapsedButtonRender"
|
|
2522
2511
|
];
|
|
2523
|
-
[...
|
|
2524
|
-
const
|
|
2525
|
-
const { theme: n } =
|
|
2512
|
+
[...Qt, ...Wa];
|
|
2513
|
+
const It = 40, ja = (e) => {
|
|
2514
|
+
const { theme: n } = Ie(e);
|
|
2526
2515
|
return {
|
|
2527
2516
|
[`${e.componentTitleCls}`]: {
|
|
2528
2517
|
display: "flex",
|
|
@@ -2537,7 +2526,7 @@ const xt = 40, ja = (e) => {
|
|
|
2537
2526
|
[`${e.componentCls}`]: {
|
|
2538
2527
|
"&-fixed": {
|
|
2539
2528
|
width: "100%",
|
|
2540
|
-
height:
|
|
2529
|
+
height: It,
|
|
2541
2530
|
background: "transparent"
|
|
2542
2531
|
}
|
|
2543
2532
|
},
|
|
@@ -2648,7 +2637,7 @@ const xt = 40, ja = (e) => {
|
|
|
2648
2637
|
[`${e.componentCls}-dropdown-menu-btn`]: {
|
|
2649
2638
|
fontWeight: e.fontWeightStrong,
|
|
2650
2639
|
textDecoration: "none",
|
|
2651
|
-
...
|
|
2640
|
+
...Ue(e),
|
|
2652
2641
|
"&:active": {
|
|
2653
2642
|
backgroundColor: e.wireframe ? "transparent" : e.colorFillContentHover
|
|
2654
2643
|
}
|
|
@@ -2660,8 +2649,8 @@ const xt = 40, ja = (e) => {
|
|
|
2660
2649
|
},
|
|
2661
2650
|
"&-fixed": {
|
|
2662
2651
|
position: "fixed",
|
|
2663
|
-
height:
|
|
2664
|
-
top: se(e.layout?.header?.heightLayoutHeader ||
|
|
2652
|
+
height: It,
|
|
2653
|
+
top: se(e.layout?.header?.heightLayoutHeader || X.headerHeight),
|
|
2665
2654
|
right: 0,
|
|
2666
2655
|
zIndex: 9,
|
|
2667
2656
|
transition: "width .2s"
|
|
@@ -2670,8 +2659,8 @@ const xt = 40, ja = (e) => {
|
|
|
2670
2659
|
};
|
|
2671
2660
|
};
|
|
2672
2661
|
function Aa(e) {
|
|
2673
|
-
return
|
|
2674
|
-
const t =
|
|
2662
|
+
return xe("ProMultiTabs", (n) => {
|
|
2663
|
+
const t = et(n, {
|
|
2675
2664
|
componentWrapCls: `${n.componentCls}-wrap`,
|
|
2676
2665
|
componentTitleCls: `${n.componentCls}-title`
|
|
2677
2666
|
});
|
|
@@ -2681,13 +2670,13 @@ function Aa(e) {
|
|
|
2681
2670
|
const Ka = [{
|
|
2682
2671
|
key: "fixed",
|
|
2683
2672
|
label: "置顶",
|
|
2684
|
-
icon: (e) => o(
|
|
2673
|
+
icon: (e) => o(Ke, {
|
|
2685
2674
|
type: e ? "unpin" : "pin"
|
|
2686
2675
|
}, null)
|
|
2687
2676
|
}, {
|
|
2688
2677
|
key: "close",
|
|
2689
2678
|
label: "关闭",
|
|
2690
|
-
icon: o(
|
|
2679
|
+
icon: o(je, null, null)
|
|
2691
2680
|
}, {
|
|
2692
2681
|
key: "fullScreen",
|
|
2693
2682
|
icon: (e) => e ? o(Rt, null, null) : o($t, null, null)
|
|
@@ -2698,29 +2687,29 @@ const Ka = [{
|
|
|
2698
2687
|
}, {
|
|
2699
2688
|
key: "newBlank",
|
|
2700
2689
|
label: "新窗口打开",
|
|
2701
|
-
icon: o(
|
|
2690
|
+
icon: o(dn, null, null)
|
|
2702
2691
|
}, {
|
|
2703
2692
|
key: "divider"
|
|
2704
2693
|
}, {
|
|
2705
2694
|
key: "closeLeftTabs",
|
|
2706
2695
|
label: "关闭左侧",
|
|
2707
|
-
icon: o(
|
|
2696
|
+
icon: o(mn, null, null)
|
|
2708
2697
|
}, {
|
|
2709
2698
|
key: "closeRightTabs",
|
|
2710
2699
|
label: "关闭右侧",
|
|
2711
|
-
icon: o(
|
|
2700
|
+
icon: o(fn, null, null)
|
|
2712
2701
|
}, {
|
|
2713
2702
|
key: "divider"
|
|
2714
2703
|
}, {
|
|
2715
2704
|
key: "closeOthersTabs",
|
|
2716
2705
|
label: "关闭其他",
|
|
2717
|
-
icon: o(
|
|
2706
|
+
icon: o(pn, {
|
|
2718
2707
|
rotate: 90
|
|
2719
2708
|
}, null)
|
|
2720
2709
|
}, {
|
|
2721
2710
|
key: "closeAllTabs",
|
|
2722
2711
|
label: "关闭全部",
|
|
2723
|
-
icon: o(
|
|
2712
|
+
icon: o(gn, null, null)
|
|
2724
2713
|
}];
|
|
2725
2714
|
function Ua(e, n) {
|
|
2726
2715
|
const {
|
|
@@ -2728,434 +2717,437 @@ function Ua(e, n) {
|
|
|
2728
2717
|
} = n.tabs, a = re(t) ? t : t === 0;
|
|
2729
2718
|
return e.key === "fixed" ? a ? "取消置顶" : "置顶" : e.key === "fullScreen" ? n.fullScreen ? "还原" : "最大化" : e.label;
|
|
2730
2719
|
}
|
|
2731
|
-
function
|
|
2732
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2720
|
+
function Ea(e) {
|
|
2721
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
|
|
2733
2722
|
}
|
|
2734
|
-
const
|
|
2735
|
-
function
|
|
2723
|
+
const ka = Tt.TabPane, Xa = be.Item;
|
|
2724
|
+
function H(e) {
|
|
2736
2725
|
return e.name;
|
|
2737
2726
|
}
|
|
2738
|
-
const Va = /* @__PURE__ */
|
|
2739
|
-
|
|
2727
|
+
const Va = /* @__PURE__ */ G({
|
|
2728
|
+
name: "TabsRoute",
|
|
2729
|
+
props: _t,
|
|
2740
2730
|
inheritAttrs: !1,
|
|
2741
|
-
setup(e
|
|
2742
|
-
expose: n
|
|
2743
|
-
}) {
|
|
2731
|
+
setup(e) {
|
|
2744
2732
|
const {
|
|
2745
|
-
storage:
|
|
2746
|
-
} =
|
|
2733
|
+
storage: n
|
|
2734
|
+
} = Ee(e), t = Q(!1), a = Me({
|
|
2747
2735
|
activeKey: "",
|
|
2748
2736
|
contextMenuActiveKey: ""
|
|
2749
|
-
}),
|
|
2737
|
+
}), r = Le(), {
|
|
2738
|
+
tabsRouteRef: l
|
|
2739
|
+
} = Gt(), {
|
|
2750
2740
|
isMobile: i,
|
|
2751
|
-
collapsedEffect:
|
|
2752
|
-
collapsedProps:
|
|
2753
|
-
layoutProps:
|
|
2754
|
-
contentFullScreen:
|
|
2741
|
+
collapsedEffect: m,
|
|
2742
|
+
collapsedProps: s,
|
|
2743
|
+
layoutProps: c,
|
|
2744
|
+
contentFullScreen: g,
|
|
2755
2745
|
settings: u,
|
|
2756
|
-
menu:
|
|
2746
|
+
menu: p,
|
|
2757
2747
|
renderRouterView: I,
|
|
2758
|
-
getPrefixCls:
|
|
2759
|
-
} =
|
|
2748
|
+
getPrefixCls: M
|
|
2749
|
+
} = q(), y = rt(), f = M({
|
|
2760
2750
|
isPor: !0,
|
|
2761
2751
|
suffixCls: "layout-tabs"
|
|
2762
2752
|
}), {
|
|
2763
|
-
wrapSSR:
|
|
2764
|
-
hashId:
|
|
2765
|
-
} = Aa(
|
|
2753
|
+
wrapSSR: x,
|
|
2754
|
+
hashId: C
|
|
2755
|
+
} = Aa(f), P = Fn(f, {
|
|
2766
2756
|
fixed: [],
|
|
2767
2757
|
normal: []
|
|
2768
2758
|
});
|
|
2769
|
-
function
|
|
2770
|
-
return
|
|
2759
|
+
function $(d) {
|
|
2760
|
+
return y?.menuMap?.value?.get(d.name);
|
|
2771
2761
|
}
|
|
2772
|
-
const
|
|
2773
|
-
fixed:
|
|
2774
|
-
normal:
|
|
2762
|
+
const b = Me({
|
|
2763
|
+
fixed: n.value && P.value?.fixed ? P.value?.fixed : [],
|
|
2764
|
+
normal: n.value && P.value?.normal ? P.value?.normal : []
|
|
2775
2765
|
});
|
|
2776
|
-
|
|
2777
|
-
|
|
2766
|
+
k(() => p.value.flatMenus, () => {
|
|
2767
|
+
b.fixed.length && (b.fixed = b.fixed.filter((d) => $(d))), b.normal.length && (b.normal = b.normal.filter((d) => $(d)));
|
|
2778
2768
|
}, {
|
|
2779
2769
|
immediate: !0,
|
|
2780
2770
|
deep: !0
|
|
2781
|
-
}),
|
|
2782
|
-
|
|
2771
|
+
}), k(n, (d) => {
|
|
2772
|
+
P.value = d ? qe(_e(b)) : {
|
|
2783
2773
|
fixed: [],
|
|
2784
2774
|
normal: []
|
|
2785
2775
|
};
|
|
2786
2776
|
}, {
|
|
2787
2777
|
immediate: !0
|
|
2788
2778
|
});
|
|
2789
|
-
const
|
|
2790
|
-
const
|
|
2791
|
-
return
|
|
2792
|
-
}),
|
|
2793
|
-
[`${
|
|
2794
|
-
[`${
|
|
2795
|
-
[`${
|
|
2796
|
-
[`${
|
|
2797
|
-
})),
|
|
2798
|
-
const
|
|
2799
|
-
display:
|
|
2779
|
+
const T = v(() => b.fixed.concat(b.normal)), Y = v(() => u.value.layout === "mix" && !i.value && u.value.splitMenus), K = v(() => H(r?.currentRoute?.value)), U = v(() => u.value.fixedTabsBar && !i.value), V = v(() => {
|
|
2780
|
+
const d = !(Y.value && p.value.mixSiderMenus.length === 0 || p.value.menuData.length === 0 || u.value.layout === "top");
|
|
2781
|
+
return U.value && d ? g.value ? "100%" : `calc(100% - ${m.value ? W(s.value?.width) : c.value.siderWidth})` : "100%";
|
|
2782
|
+
}), Z = v(() => w(`${f}-wrap`, {
|
|
2783
|
+
[`${C.value}`]: !0,
|
|
2784
|
+
[`${f}-wrap-${e.type}`]: e.type,
|
|
2785
|
+
[`${f}-wrap-fixed`]: u.value.fixedTabsBar,
|
|
2786
|
+
[`${f}-wrap-loading`]: e.loading
|
|
2787
|
+
})), z = v(() => e.destroyOnHide === !1 && e.visible), R = v(() => {
|
|
2788
|
+
const d = {
|
|
2789
|
+
display: z.value ? void 0 : "none"
|
|
2800
2790
|
};
|
|
2801
2791
|
return u.value.fixedTabsBar ? {
|
|
2802
2792
|
margin: 0,
|
|
2803
|
-
width:
|
|
2793
|
+
width: V.value,
|
|
2804
2794
|
paddingTop: "6px",
|
|
2805
2795
|
zIndex: 99,
|
|
2806
|
-
top:
|
|
2807
|
-
...
|
|
2808
|
-
} :
|
|
2796
|
+
top: g.value ? 0 : void 0,
|
|
2797
|
+
...d
|
|
2798
|
+
} : d;
|
|
2809
2799
|
});
|
|
2810
|
-
|
|
2811
|
-
|
|
2800
|
+
k(() => b, (d) => {
|
|
2801
|
+
n.value && (P.value = qe(d)), e.onTabsChange?.([...b.fixed, ...b.normal]);
|
|
2812
2802
|
}, {
|
|
2813
2803
|
deep: !0
|
|
2814
2804
|
});
|
|
2815
|
-
const
|
|
2805
|
+
const D = (d) => T.value.find((S) => H(S) === d), B = (d) => H(d) === K.value, O = (d) => {
|
|
2816
2806
|
const {
|
|
2817
|
-
fixed:
|
|
2818
|
-
} =
|
|
2819
|
-
return
|
|
2820
|
-
},
|
|
2807
|
+
fixed: S
|
|
2808
|
+
} = d?.meta?.tabState || {};
|
|
2809
|
+
return d?.meta ? re(S) ? S : S === 0 : !1;
|
|
2810
|
+
}, ee = (d) => {
|
|
2821
2811
|
const {
|
|
2822
|
-
hidden:
|
|
2823
|
-
} =
|
|
2824
|
-
if (
|
|
2825
|
-
const
|
|
2826
|
-
name:
|
|
2827
|
-
path:
|
|
2828
|
-
fullPath:
|
|
2829
|
-
query:
|
|
2830
|
-
params:
|
|
2831
|
-
meta:
|
|
2832
|
-
tabState:
|
|
2812
|
+
hidden: S
|
|
2813
|
+
} = d?.meta?.tabState || {};
|
|
2814
|
+
if (d.name && d.meta && S !== !0) {
|
|
2815
|
+
const N = O(d), L = H(d), F = {
|
|
2816
|
+
name: L,
|
|
2817
|
+
path: d.path,
|
|
2818
|
+
fullPath: d.fullPath,
|
|
2819
|
+
query: d.query,
|
|
2820
|
+
params: d.params,
|
|
2821
|
+
meta: de(d.meta, {
|
|
2822
|
+
tabState: d.meta?.tabState
|
|
2833
2823
|
})
|
|
2834
2824
|
};
|
|
2835
|
-
|
|
2825
|
+
T.value.some((j) => H(j) === L) ? Se(d, {
|
|
2826
|
+
type: "merge",
|
|
2827
|
+
params: F
|
|
2828
|
+
}) : N ? b.fixed.push(F) : b.normal.push(F), B(d) && (a.activeKey = L);
|
|
2836
2829
|
}
|
|
2837
|
-
}, ue = (
|
|
2838
|
-
|
|
2839
|
-
|
|
2830
|
+
}, ue = (d) => {
|
|
2831
|
+
d.forEach((S) => {
|
|
2832
|
+
O(S) && ee(Qe(S));
|
|
2840
2833
|
});
|
|
2841
2834
|
};
|
|
2842
|
-
|
|
2843
|
-
ue(
|
|
2835
|
+
k(() => p.value.flatMenus, (d) => {
|
|
2836
|
+
ue(d);
|
|
2844
2837
|
}, {
|
|
2845
2838
|
deep: !0,
|
|
2846
2839
|
immediate: !0
|
|
2847
|
-
}),
|
|
2848
|
-
|
|
2840
|
+
}), k(() => r?.currentRoute?.value, (d) => {
|
|
2841
|
+
d && ee(d);
|
|
2849
2842
|
}, {
|
|
2850
2843
|
deep: !0,
|
|
2851
2844
|
immediate: !0
|
|
2852
2845
|
});
|
|
2853
|
-
const De = (
|
|
2854
|
-
const
|
|
2855
|
-
return
|
|
2846
|
+
const De = (d) => {
|
|
2847
|
+
const S = T.value.find((N) => (d || a.activeKey) === H(N));
|
|
2848
|
+
return S?.redirect || S?.fullPath || S?.path || "";
|
|
2856
2849
|
};
|
|
2857
|
-
function me(
|
|
2858
|
-
const
|
|
2859
|
-
return
|
|
2850
|
+
function me(d) {
|
|
2851
|
+
const S = {};
|
|
2852
|
+
return d.query && (S.query = d.query), d.params && (S.params = d.params), S;
|
|
2860
2853
|
}
|
|
2861
|
-
|
|
2862
|
-
type:
|
|
2863
|
-
addType:
|
|
2864
|
-
params:
|
|
2865
|
-
})
|
|
2866
|
-
const
|
|
2867
|
-
|
|
2868
|
-
}
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2854
|
+
function Se(d, {
|
|
2855
|
+
type: S,
|
|
2856
|
+
addType: N,
|
|
2857
|
+
params: L
|
|
2858
|
+
}) {
|
|
2859
|
+
const F = O(d) ? "fixed" : "normal";
|
|
2860
|
+
S === "add" && N ? b[F][N](L) : S === "merge" ? b[F] = b[F].map((j) => H(j) === H(d) ? de(j, L) : j) : S === "remove" && (b[F] = b[F].filter((j) => H(j) !== H(d)));
|
|
2861
|
+
}
|
|
2862
|
+
const Re = () => {
|
|
2863
|
+
const d = T.value.slice(-1)[0];
|
|
2864
|
+
d ? r.push({
|
|
2865
|
+
path: De(H(d)),
|
|
2866
|
+
...me(d)
|
|
2867
|
+
}) : r.push("/");
|
|
2868
|
+
}, ze = (d, S) => {
|
|
2869
|
+
const N = T.value.find((L) => d === H(L));
|
|
2870
|
+
N && (Se(N, {
|
|
2877
2871
|
type: "remove",
|
|
2878
|
-
params:
|
|
2879
|
-
}),
|
|
2880
|
-
},
|
|
2881
|
-
|
|
2882
|
-
}, fe = async (
|
|
2883
|
-
|
|
2884
|
-
|
|
2872
|
+
params: N
|
|
2873
|
+
}), S?.(N));
|
|
2874
|
+
}, Ye = () => {
|
|
2875
|
+
b.fixed = [], b.normal = [];
|
|
2876
|
+
}, fe = async (d) => {
|
|
2877
|
+
ze(d, (S) => {
|
|
2878
|
+
B(S) && Re();
|
|
2885
2879
|
});
|
|
2886
|
-
},
|
|
2887
|
-
const
|
|
2888
|
-
|
|
2889
|
-
path: De(
|
|
2890
|
-
...me(
|
|
2880
|
+
}, A = (d) => {
|
|
2881
|
+
const S = T.value.find((N) => H(N) === d);
|
|
2882
|
+
S && a.activeKey !== H(S) && r.push({
|
|
2883
|
+
path: De(H(S)),
|
|
2884
|
+
...me(S)
|
|
2891
2885
|
});
|
|
2892
|
-
},
|
|
2893
|
-
I.value = !1,
|
|
2886
|
+
}, J = Nn(() => {
|
|
2887
|
+
I.value = !1, t.value = !0, e.onReloadPage && e.onReloadPage?.(), setTimeout(() => {
|
|
2894
2888
|
I.value = !0;
|
|
2895
2889
|
}, 200), setTimeout(() => {
|
|
2896
|
-
|
|
2890
|
+
t.value = !1;
|
|
2897
2891
|
}, 500);
|
|
2898
|
-
}, 500),
|
|
2899
|
-
|
|
2900
|
-
path:
|
|
2901
|
-
...me(
|
|
2892
|
+
}, 500), te = (d) => a[d], ne = (d) => {
|
|
2893
|
+
r.push({
|
|
2894
|
+
path: d.path,
|
|
2895
|
+
...me(d)
|
|
2902
2896
|
});
|
|
2903
|
-
}, pe = (
|
|
2904
|
-
let
|
|
2905
|
-
const
|
|
2906
|
-
let
|
|
2907
|
-
switch (
|
|
2897
|
+
}, pe = (d, S) => {
|
|
2898
|
+
let N = b.normal.findIndex((E) => H(E) === te(S));
|
|
2899
|
+
const L = T.value.find((E) => H(E) === te(S)), F = O(L);
|
|
2900
|
+
let j = !1;
|
|
2901
|
+
switch (d) {
|
|
2908
2902
|
case "fixed":
|
|
2909
|
-
|
|
2903
|
+
F ? (N = b.fixed.findIndex((E) => H(E) === te(S)), b.normal.unshift(de(L, {
|
|
2910
2904
|
meta: {
|
|
2911
2905
|
tabState: {
|
|
2912
|
-
fixed: !
|
|
2906
|
+
fixed: !F
|
|
2913
2907
|
}
|
|
2914
2908
|
}
|
|
2915
|
-
})),
|
|
2909
|
+
})), b.fixed = b.fixed.filter((E, ce) => ce !== N)) : (b.fixed.push(de(L, {
|
|
2916
2910
|
meta: {
|
|
2917
2911
|
tabState: {
|
|
2918
|
-
fixed: !
|
|
2912
|
+
fixed: !F
|
|
2919
2913
|
}
|
|
2920
2914
|
}
|
|
2921
|
-
})),
|
|
2915
|
+
})), b.normal = b.normal.filter((E, ce) => ce !== N));
|
|
2922
2916
|
break;
|
|
2923
2917
|
case "close":
|
|
2924
|
-
fe(
|
|
2918
|
+
fe(H(L) || "");
|
|
2925
2919
|
break;
|
|
2926
2920
|
case "closeOthersTabs":
|
|
2927
|
-
|
|
2921
|
+
b.normal = b.normal.filter((E) => H(E) === te(S) || O(E)), j = a[S] !== a.activeKey, j && ne(L);
|
|
2928
2922
|
break;
|
|
2929
2923
|
case "closeLeftTabs":
|
|
2930
|
-
|
|
2924
|
+
dt(N) && (b.normal = b.normal.filter((E, ce) => ce >= N || O(E)), j = !T.value.some((E) => H(E) === a.activeKey), j && ne(L));
|
|
2931
2925
|
break;
|
|
2932
2926
|
case "closeRightTabs":
|
|
2933
|
-
|
|
2927
|
+
dt(N) && (b.normal = b.normal.filter((E, ce) => ce <= N || O(E))), j = !T.value.some((E) => H(E) === a.activeKey), j && ne(L);
|
|
2934
2928
|
break;
|
|
2935
2929
|
case "closeAllTabs":
|
|
2936
|
-
|
|
2930
|
+
b.normal = b.normal.filter((E) => O(E)), Re();
|
|
2937
2931
|
break;
|
|
2938
2932
|
case "reloadPage":
|
|
2939
|
-
(
|
|
2933
|
+
(N === 0 || N) && a.activeKey === te(S) && J();
|
|
2940
2934
|
break;
|
|
2941
2935
|
case "newBlank":
|
|
2942
2936
|
window.open(location.href);
|
|
2943
2937
|
break;
|
|
2944
2938
|
case "fullScreen":
|
|
2945
|
-
|
|
2939
|
+
g.value = !g.value;
|
|
2946
2940
|
break;
|
|
2947
2941
|
}
|
|
2948
|
-
},
|
|
2949
|
-
const
|
|
2950
|
-
if (
|
|
2951
|
-
return
|
|
2952
|
-
if (
|
|
2953
|
-
return
|
|
2954
|
-
if (
|
|
2955
|
-
return
|
|
2956
|
-
},
|
|
2957
|
-
let
|
|
2942
|
+
}, $e = (d, S) => {
|
|
2943
|
+
const N = T.value.findIndex((L) => H(L) === S);
|
|
2944
|
+
if (d === "closeOthersTabs")
|
|
2945
|
+
return T.value.filter((F, j) => j !== N && !O(F)).length === 0;
|
|
2946
|
+
if (d === "closeLeftTabs")
|
|
2947
|
+
return T.value.filter((F, j) => j < N && !O(F)).length === 0;
|
|
2948
|
+
if (d === "closeRightTabs")
|
|
2949
|
+
return T.value.filter((F, j) => j > N && !O(F)).length === 0;
|
|
2950
|
+
}, We = (d) => {
|
|
2951
|
+
let S;
|
|
2958
2952
|
const {
|
|
2959
|
-
name:
|
|
2960
|
-
stateType:
|
|
2961
|
-
} =
|
|
2953
|
+
name: N,
|
|
2954
|
+
stateType: L
|
|
2955
|
+
} = d;
|
|
2962
2956
|
return o(be, {
|
|
2963
2957
|
selectedKeys: [],
|
|
2964
|
-
onClick: (
|
|
2965
|
-
},
|
|
2966
|
-
if (
|
|
2967
|
-
key:
|
|
2958
|
+
onClick: (F) => pe(F.key, L)
|
|
2959
|
+
}, Ea(S = Ka.map((F) => {
|
|
2960
|
+
if (F.key === "divider") return o(be.Divider, {
|
|
2961
|
+
key: F.key
|
|
2968
2962
|
}, null);
|
|
2969
|
-
const
|
|
2970
|
-
return
|
|
2971
|
-
key:
|
|
2972
|
-
disabled:
|
|
2963
|
+
const j = F.icon;
|
|
2964
|
+
return F.key === "close" && O(D(N)) ? null : o(Xa, {
|
|
2965
|
+
key: F.key,
|
|
2966
|
+
disabled: $e(F.key, N)
|
|
2973
2967
|
}, {
|
|
2974
|
-
default: () => [
|
|
2968
|
+
default: () => [F.icon && typeof F.icon == "function" ? F.key === "fullScreen" ? F.icon(g.value) : F.key === "fixed" ? F.icon(O(D(N))) : null : o(j, null, null), o("span", {
|
|
2975
2969
|
style: {
|
|
2976
2970
|
marginInlineStart: "8px"
|
|
2977
2971
|
}
|
|
2978
|
-
}, [Ua(
|
|
2979
|
-
tabs:
|
|
2980
|
-
fullScreen:
|
|
2972
|
+
}, [Ua(F, {
|
|
2973
|
+
tabs: D(N)?.meta?.tabState || {},
|
|
2974
|
+
fullScreen: g.value
|
|
2981
2975
|
})])]
|
|
2982
2976
|
});
|
|
2983
|
-
})) ?
|
|
2984
|
-
default: () => [
|
|
2977
|
+
})) ? S : {
|
|
2978
|
+
default: () => [S]
|
|
2985
2979
|
});
|
|
2986
|
-
},
|
|
2987
|
-
router:
|
|
2980
|
+
}, Jt = ({
|
|
2981
|
+
router: d
|
|
2988
2982
|
}) => {
|
|
2989
|
-
const
|
|
2990
|
-
return o(
|
|
2983
|
+
const S = e.itemRender ? e.itemRender(d) : null, N = O(d);
|
|
2984
|
+
return o(ft, {
|
|
2991
2985
|
trigger: "contextmenu",
|
|
2992
|
-
overlay: o(
|
|
2993
|
-
name:
|
|
2986
|
+
overlay: o(We, {
|
|
2987
|
+
name: H(d) || "",
|
|
2994
2988
|
stateType: "contextMenuActiveKey"
|
|
2995
2989
|
}, null),
|
|
2996
|
-
onOpenChange: (
|
|
2997
|
-
|
|
2990
|
+
onOpenChange: (L) => {
|
|
2991
|
+
a.contextMenuActiveKey = L && H(d) || "";
|
|
2998
2992
|
}
|
|
2999
2993
|
}, {
|
|
3000
|
-
default: () => [
|
|
3001
|
-
class: [`${
|
|
3002
|
-
}, [
|
|
2994
|
+
default: () => [S || o("div", {
|
|
2995
|
+
class: [`${f}-title`, C.value]
|
|
2996
|
+
}, [d.meta?.title, N && o(Ke, {
|
|
3003
2997
|
type: "pin",
|
|
3004
|
-
class: [`${
|
|
3005
|
-
}, null),
|
|
3006
|
-
class: [`${
|
|
3007
|
-
onClick: (
|
|
3008
|
-
|
|
2998
|
+
class: [`${f}-icon`, C.value]
|
|
2999
|
+
}, null), T.value.length > 1 && !O(d) && o(je, {
|
|
3000
|
+
class: [`${f}-close-btn`, C.value],
|
|
3001
|
+
onClick: (L) => {
|
|
3002
|
+
L.stopPropagation(), fe(H(d) || "");
|
|
3009
3003
|
}
|
|
3010
3004
|
}, null)])]
|
|
3011
3005
|
});
|
|
3012
3006
|
};
|
|
3013
|
-
return
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3007
|
+
return Ze(() => {
|
|
3008
|
+
l.value = {
|
|
3009
|
+
clean: Ye,
|
|
3010
|
+
close: ze,
|
|
3011
|
+
update: Se
|
|
3012
|
+
};
|
|
3017
3013
|
}), () => {
|
|
3018
|
-
const
|
|
3019
|
-
return
|
|
3014
|
+
const d = g.value ? Rt : $t;
|
|
3015
|
+
return x(o(_, null, [u.value.fixedTabsBar && o("div", {
|
|
3020
3016
|
style: {
|
|
3021
|
-
display:
|
|
3017
|
+
display: z.value ? void 0 : "none"
|
|
3022
3018
|
},
|
|
3023
|
-
class: [`${
|
|
3024
|
-
}, null), o(
|
|
3019
|
+
class: [`${f}-fixed`, C.value]
|
|
3020
|
+
}, null), o(Tt, {
|
|
3025
3021
|
hideAdd: !0,
|
|
3026
|
-
style:
|
|
3027
|
-
class:
|
|
3028
|
-
activeKey:
|
|
3029
|
-
onTabClick:
|
|
3022
|
+
style: R.value,
|
|
3023
|
+
class: Z.value,
|
|
3024
|
+
activeKey: a.activeKey,
|
|
3025
|
+
onTabClick: A
|
|
3030
3026
|
}, {
|
|
3031
|
-
default: () => [
|
|
3032
|
-
key:
|
|
3027
|
+
default: () => [T.value.map((S) => o(ka, {
|
|
3028
|
+
key: H(S),
|
|
3033
3029
|
closable: !1,
|
|
3034
|
-
tab: o(
|
|
3035
|
-
router:
|
|
3030
|
+
tab: o(Jt, {
|
|
3031
|
+
router: S
|
|
3036
3032
|
}, null)
|
|
3037
3033
|
}, null))],
|
|
3038
3034
|
rightExtra: () => o("div", {
|
|
3039
|
-
class:
|
|
3035
|
+
class: w(`${f}-dropdown-menu`, C.value)
|
|
3040
3036
|
}, [o(wt, {
|
|
3041
|
-
class: [`${
|
|
3037
|
+
class: [`${f}-dropdown-menu-btn`, C.value],
|
|
3042
3038
|
onClick: () => pe("reloadPage", "activeKey")
|
|
3043
|
-
}, null), o(
|
|
3044
|
-
overlay: o(
|
|
3045
|
-
name:
|
|
3039
|
+
}, null), o(ft, {
|
|
3040
|
+
overlay: o(We, {
|
|
3041
|
+
name: a.activeKey,
|
|
3046
3042
|
stateType: "activeKey"
|
|
3047
3043
|
}, null)
|
|
3048
3044
|
}, {
|
|
3049
|
-
default: () => [o(
|
|
3050
|
-
class: [`${
|
|
3045
|
+
default: () => [o(hn, {
|
|
3046
|
+
class: [`${f}-dropdown-menu-btn`, C.value]
|
|
3051
3047
|
}, null)]
|
|
3052
|
-
}), o(
|
|
3053
|
-
class: [`${
|
|
3048
|
+
}), o(d, {
|
|
3049
|
+
class: [`${f}-dropdown-menu-btn`, C.value],
|
|
3054
3050
|
onClick: () => pe("fullScreen", "activeKey")
|
|
3055
3051
|
}, null)])
|
|
3056
3052
|
})]));
|
|
3057
3053
|
};
|
|
3058
3054
|
}
|
|
3059
|
-
}), Ga = ["isChildrenLayout", "loading", "onTabsChange", "onReloadPage"], Ya = /* @__PURE__ */
|
|
3055
|
+
}), Ga = ["isChildrenLayout", "loading", "onTabsChange", "onReloadPage"], Ya = /* @__PURE__ */ G({
|
|
3060
3056
|
inheritAttrs: !1,
|
|
3061
3057
|
displayName: "wrap-content",
|
|
3062
3058
|
props: {
|
|
3063
|
-
...
|
|
3059
|
+
...ve(_t, ["visible", "destroyOnHide", "storage", "itemRender"]),
|
|
3064
3060
|
hashId: String,
|
|
3065
3061
|
prefixCls: String,
|
|
3066
3062
|
isChildrenLayout: Boolean,
|
|
3067
|
-
tabsRoute:
|
|
3063
|
+
tabsRoute: ut.tabsRoute
|
|
3068
3064
|
},
|
|
3069
3065
|
setup(e, {
|
|
3070
3066
|
slots: n
|
|
3071
3067
|
}) {
|
|
3072
3068
|
const {
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
} = Z(), f = x(() => re(e.tabsRoute?.visible) ? e.tabsRoute?.visible : !(a.value && i.value));
|
|
3069
|
+
contentFullScreen: t,
|
|
3070
|
+
layoutProps: a,
|
|
3071
|
+
settings: r,
|
|
3072
|
+
fullScreenOnTabsHide: l
|
|
3073
|
+
} = q(), i = v(() => re(e.tabsRoute?.visible) ? e.tabsRoute?.visible : !(t.value && l.value));
|
|
3079
3074
|
return () => {
|
|
3080
3075
|
const {
|
|
3081
|
-
prefixCls:
|
|
3082
|
-
hashId:
|
|
3083
|
-
tabsRoute:
|
|
3084
|
-
...
|
|
3076
|
+
prefixCls: m,
|
|
3077
|
+
hashId: s,
|
|
3078
|
+
tabsRoute: c,
|
|
3079
|
+
...g
|
|
3085
3080
|
} = e;
|
|
3086
3081
|
return e.isChildrenLayout ? n.default?.() : o("div", {
|
|
3087
|
-
class:
|
|
3088
|
-
}, [!
|
|
3089
|
-
|
|
3090
|
-
}, u, e.tabsRoute, {
|
|
3091
|
-
visible: f.value
|
|
3082
|
+
class: w(`${m}-container`, s, a.value.siderWidth && `${m}-container-has-silder`)
|
|
3083
|
+
}, [!r.value.showTabsBar || a.value.isWide || r.value.layout === "simple" ? null : o(Va, oe(g, e.tabsRoute, {
|
|
3084
|
+
visible: i.value
|
|
3092
3085
|
}), null), n.default?.()]);
|
|
3093
3086
|
};
|
|
3094
3087
|
}
|
|
3095
3088
|
}), {
|
|
3096
3089
|
Content: _a
|
|
3097
|
-
} = Te, qa = /* @__PURE__ */
|
|
3090
|
+
} = Te, qa = /* @__PURE__ */ G({
|
|
3098
3091
|
name: "BaseProLayout",
|
|
3099
3092
|
inheritAttrs: !1,
|
|
3100
3093
|
props: {
|
|
3101
|
-
...
|
|
3094
|
+
...ut,
|
|
3102
3095
|
onCollapse: Function
|
|
3103
3096
|
},
|
|
3104
3097
|
slots: Object,
|
|
3105
3098
|
setup(e, {
|
|
3106
|
-
slots: n
|
|
3107
|
-
expose: t
|
|
3099
|
+
slots: n
|
|
3108
3100
|
}) {
|
|
3109
|
-
const
|
|
3101
|
+
const t = ae({
|
|
3110
3102
|
suffixCls: "basic-layout",
|
|
3111
3103
|
isPor: !0
|
|
3112
3104
|
}), {
|
|
3113
|
-
wrapSSR:
|
|
3114
|
-
hashId:
|
|
3115
|
-
} = le("ProLayout", [
|
|
3116
|
-
theme:
|
|
3117
|
-
resolvedTheme:
|
|
3118
|
-
} =
|
|
3105
|
+
wrapSSR: a,
|
|
3106
|
+
hashId: r
|
|
3107
|
+
} = le("ProLayout", [ya, ba], t), {
|
|
3108
|
+
theme: l,
|
|
3109
|
+
resolvedTheme: i
|
|
3110
|
+
} = Ft(), [m, s] = Be(!1), c = yn(), g = rt(), u = bn({
|
|
3119
3111
|
slots: n,
|
|
3120
3112
|
props: e,
|
|
3121
|
-
keys:
|
|
3113
|
+
keys: Qt,
|
|
3122
3114
|
render: !0
|
|
3123
3115
|
}), {
|
|
3124
|
-
token:
|
|
3125
|
-
} = Ne(),
|
|
3116
|
+
token: p
|
|
3117
|
+
} = Ne(), I = Q(!!e.collapsedProps?.value), M = Q(!0), y = Q(!1), f = Q(!1), x = Q(), C = Q(mt().uuid(10)), P = Me({
|
|
3126
3118
|
position: "relative"
|
|
3127
|
-
}),
|
|
3128
|
-
let
|
|
3129
|
-
if (
|
|
3130
|
-
|
|
3119
|
+
}), $ = v(() => {
|
|
3120
|
+
let R = 0;
|
|
3121
|
+
if (f.value)
|
|
3122
|
+
R = 0;
|
|
3131
3123
|
else if (e.settings.siderWidth === 0)
|
|
3132
|
-
|
|
3124
|
+
R = 0;
|
|
3133
3125
|
else {
|
|
3134
|
-
const
|
|
3135
|
-
|
|
3126
|
+
const D = e.settings.layout === "wide" ? 208 : X.siderWidth;
|
|
3127
|
+
R = se(e.settings.siderWidth || D);
|
|
3136
3128
|
}
|
|
3137
3129
|
return {
|
|
3138
3130
|
isWide: e.settings.layout === "wide",
|
|
3139
|
-
headerHeight: e.settings.headerHeight === 0 ? 0 : se(e.settings.headerHeight ||
|
|
3140
|
-
siderWidth:
|
|
3131
|
+
headerHeight: e.settings.headerHeight === 0 ? 0 : se(e.settings.headerHeight || X.headerHeight),
|
|
3132
|
+
siderWidth: R,
|
|
3141
3133
|
hasSilder: e.settings.layout === "mix" || e.settings.layout === "side" || e.settings.layout === "wide" || !1
|
|
3142
3134
|
};
|
|
3143
|
-
}),
|
|
3135
|
+
}), b = v(() => de({
|
|
3144
3136
|
position: "fixed",
|
|
3145
3137
|
width: 64
|
|
3146
|
-
}, e.collapsedProps || {})),
|
|
3147
|
-
const
|
|
3138
|
+
}, e.collapsedProps || {})), T = v(() => {
|
|
3139
|
+
const R = e.route || g?.menuData?.value || [], D = g?.flatMenus?.value ?? wn(R);
|
|
3148
3140
|
return {
|
|
3149
3141
|
...e.menu,
|
|
3150
|
-
menuData:
|
|
3151
|
-
flatMenus:
|
|
3152
|
-
key:
|
|
3153
|
-
baseTheme:
|
|
3154
|
-
mixSiderMenus:
|
|
3142
|
+
menuData: R,
|
|
3143
|
+
flatMenus: D,
|
|
3144
|
+
key: l.value,
|
|
3145
|
+
baseTheme: i.value,
|
|
3146
|
+
mixSiderMenus: $.value.hasSilder && e?.selectedKeys ? la(R, e.selectedKeys[0]) : []
|
|
3155
3147
|
};
|
|
3156
|
-
}),
|
|
3148
|
+
}), Y = v(() => (c.value === "sm" || c.value === "xs") && !e.disableMobile && !$.value.isWide), K = v(() => ({
|
|
3157
3149
|
...e.breadcrumb,
|
|
3158
|
-
position: e.breadcrumb?.position &&
|
|
3150
|
+
position: e.breadcrumb?.position && ke(e.breadcrumb?.position) ? e.breadcrumb?.position : e.settings.layout === "side" ? "header" : "pageHeader",
|
|
3159
3151
|
visible: e.breadcrumb?.visible ?? !0,
|
|
3160
3152
|
itemRender: Pe({
|
|
3161
3153
|
slots: n,
|
|
@@ -3165,171 +3157,168 @@ const Va = /* @__PURE__ */ X({
|
|
|
3165
3157
|
key: "breadcrumbRender"
|
|
3166
3158
|
})
|
|
3167
3159
|
}));
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
}),
|
|
3171
|
-
e.onCollapse?.(
|
|
3172
|
-
}),
|
|
3173
|
-
(
|
|
3174
|
-
}),
|
|
3175
|
-
if (
|
|
3176
|
-
const
|
|
3177
|
-
|
|
3160
|
+
k(() => e.collapsedProps?.value, (R) => {
|
|
3161
|
+
I.value = !!R;
|
|
3162
|
+
}), k(() => I.value, (R) => {
|
|
3163
|
+
e.onCollapse?.(R);
|
|
3164
|
+
}), k([() => e.settings.layout], ([R]) => {
|
|
3165
|
+
(R === "wide" || R === "simple") && (f.value = !1), C.value = mt().uuid(10);
|
|
3166
|
+
}), k(() => $.value.isWide, (R) => {
|
|
3167
|
+
if (R) {
|
|
3168
|
+
const D = document.querySelector('meta[name="viewport"]');
|
|
3169
|
+
D && (D.content = "");
|
|
3178
3170
|
}
|
|
3179
3171
|
}, {
|
|
3180
3172
|
immediate: !0
|
|
3181
|
-
}),
|
|
3182
|
-
e.onContentFullScreenChange?.(
|
|
3183
|
-
}),
|
|
3184
|
-
const
|
|
3185
|
-
(e.isChildrenLayout ||
|
|
3173
|
+
}), k(f, (R) => {
|
|
3174
|
+
e.onContentFullScreenChange?.(R);
|
|
3175
|
+
}), k([() => e.isChildrenLayout], () => {
|
|
3176
|
+
const R = e.styles?.content;
|
|
3177
|
+
(e.isChildrenLayout || R && R.minHeight) && (P.minHeight = 0);
|
|
3186
3178
|
}, {
|
|
3187
3179
|
immediate: !0,
|
|
3188
3180
|
deep: !0
|
|
3189
3181
|
});
|
|
3190
|
-
function
|
|
3182
|
+
function U() {
|
|
3191
3183
|
return ge({
|
|
3192
3184
|
slots: n,
|
|
3193
3185
|
props: e,
|
|
3194
3186
|
keys: ["menuItemRender", "menuTextRender", "subMenuItemRender", "collapsedIconRender", "collapsedButtonRender"]
|
|
3195
3187
|
});
|
|
3196
3188
|
}
|
|
3197
|
-
const
|
|
3198
|
-
if (e.headerRender === !1 || e.pure || e.settings.layout === "simple" ||
|
|
3189
|
+
const V = () => {
|
|
3190
|
+
if (e.headerRender === !1 || e.pure || e.settings.layout === "simple" || !$.value.headerHeight || $.value.headerHeight === 0)
|
|
3199
3191
|
return null;
|
|
3200
|
-
const
|
|
3192
|
+
const R = ge({
|
|
3201
3193
|
slots: n,
|
|
3202
3194
|
props: e,
|
|
3203
3195
|
keys: ["logoRender", "headerRender", "headerContentRender", "rightContentRender"]
|
|
3204
|
-
}),
|
|
3196
|
+
}), D = ge({
|
|
3205
3197
|
slots: n,
|
|
3206
3198
|
props: e,
|
|
3207
|
-
keys:
|
|
3199
|
+
keys: Zt,
|
|
3208
3200
|
render: !0
|
|
3209
3201
|
});
|
|
3210
|
-
return o(
|
|
3211
|
-
logoRender:
|
|
3212
|
-
headerRender:
|
|
3213
|
-
rightContentRender:
|
|
3214
|
-
headerContentRender:
|
|
3202
|
+
return o(Na, oe(e, D, U(), {
|
|
3203
|
+
logoRender: R.logoRender,
|
|
3204
|
+
headerRender: R.headerRender,
|
|
3205
|
+
rightContentRender: R.rightContentRender,
|
|
3206
|
+
headerContentRender: R.headerContentRender
|
|
3215
3207
|
}), null);
|
|
3216
|
-
},
|
|
3217
|
-
if (
|
|
3218
|
-
const
|
|
3208
|
+
}, Z = () => {
|
|
3209
|
+
if (!$.value.siderWidth || $.value.siderWidth === 0) return null;
|
|
3210
|
+
const R = ge({
|
|
3219
3211
|
slots: n,
|
|
3220
3212
|
props: e,
|
|
3221
|
-
keys:
|
|
3213
|
+
keys: qt,
|
|
3222
3214
|
render: !0
|
|
3223
|
-
}),
|
|
3215
|
+
}), D = ge({
|
|
3224
3216
|
slots: n,
|
|
3225
3217
|
props: e,
|
|
3226
3218
|
keys: ["logoRender", "menuHeaderRender", "menuFooterRender", "menuContentRender"]
|
|
3227
3219
|
});
|
|
3228
|
-
return o(
|
|
3229
|
-
isMobile:
|
|
3230
|
-
logoRender:
|
|
3231
|
-
siderWidth:
|
|
3232
|
-
menuHeaderRender:
|
|
3233
|
-
menuFooterRender:
|
|
3234
|
-
menuContentRender:
|
|
3220
|
+
return o(xa, oe(e, R, U(), {
|
|
3221
|
+
isMobile: Y.value,
|
|
3222
|
+
logoRender: D.logoRender,
|
|
3223
|
+
siderWidth: $.value.siderWidth,
|
|
3224
|
+
menuHeaderRender: D.menuHeaderRender,
|
|
3225
|
+
menuFooterRender: D.menuFooterRender,
|
|
3226
|
+
menuContentRender: D.menuContentRender
|
|
3235
3227
|
}), null);
|
|
3236
|
-
},
|
|
3237
|
-
const
|
|
3228
|
+
}, z = () => {
|
|
3229
|
+
const R = Pe({
|
|
3238
3230
|
slots: n,
|
|
3239
3231
|
props: e,
|
|
3240
3232
|
key: "footerRender",
|
|
3241
3233
|
render: !1
|
|
3242
3234
|
});
|
|
3243
|
-
return o(
|
|
3244
|
-
copyright:
|
|
3235
|
+
return o(_, null, [R === !1 ? null : typeof R == "function" ? R(e) : R || o($a, {
|
|
3236
|
+
copyright: u.value.copyrightRender,
|
|
3245
3237
|
links: e.footerLinks
|
|
3246
|
-
}, null),
|
|
3247
|
-
class: `${
|
|
3238
|
+
}, null), m.value && o("div", {
|
|
3239
|
+
class: `${t}-has-footer`,
|
|
3248
3240
|
style: {
|
|
3249
3241
|
height: "64px",
|
|
3250
|
-
marginBlockStart:
|
|
3242
|
+
marginBlockStart: p.value.marginMD
|
|
3251
3243
|
}
|
|
3252
3244
|
}, null)]);
|
|
3253
3245
|
};
|
|
3254
|
-
return
|
|
3255
|
-
...Fe(
|
|
3256
|
-
collapsedProps:
|
|
3246
|
+
return Vn({
|
|
3247
|
+
...Fe(Ee(e), Xn),
|
|
3248
|
+
collapsedProps: b,
|
|
3257
3249
|
getPrefixCls: ae,
|
|
3258
|
-
collapsed:
|
|
3259
|
-
collapsedEffect:
|
|
3260
|
-
settings:
|
|
3261
|
-
menu:
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
pageHeaderRender: x(() => ie({
|
|
3250
|
+
collapsed: I,
|
|
3251
|
+
collapsedEffect: v(() => b.value?.width ? I.value : !1),
|
|
3252
|
+
settings: v(() => e.settings),
|
|
3253
|
+
menu: T,
|
|
3254
|
+
contentFullScreen: f,
|
|
3255
|
+
layoutProps: $,
|
|
3256
|
+
isMobile: Y,
|
|
3257
|
+
renderRouterView: M,
|
|
3258
|
+
breadcrumb: K,
|
|
3259
|
+
fullScreenOnTabsHide: y,
|
|
3260
|
+
breadcrumbRender: x,
|
|
3261
|
+
hasFooterToolbar: m,
|
|
3262
|
+
setHasFooterToolbar: s,
|
|
3263
|
+
pageHeaderRender: v(() => ie({
|
|
3273
3264
|
slots: n,
|
|
3274
3265
|
props: {
|
|
3275
3266
|
pageHeaderRender: e.pageContainer?.pageHeaderRender
|
|
3276
3267
|
},
|
|
3277
3268
|
key: "pageHeaderRender"
|
|
3278
3269
|
}))
|
|
3279
|
-
}), t({
|
|
3280
|
-
tabsComRef: () => R.value
|
|
3281
3270
|
}), () => {
|
|
3282
|
-
const
|
|
3283
|
-
minWidth:
|
|
3271
|
+
const R = {
|
|
3272
|
+
minWidth: $.value.isWide ? se(e.settings.wideWidth) : void 0,
|
|
3284
3273
|
minHeight: e.settings.layout === "simple" ? `calc(100vh - ${se(e.settings.headerHeight)})` : void 0,
|
|
3285
3274
|
...e.styles?.root || {}
|
|
3286
3275
|
};
|
|
3287
|
-
return
|
|
3276
|
+
return a(o(_, null, [e.pure ? n.default?.() : o("div", {
|
|
3288
3277
|
id: e.id,
|
|
3289
|
-
class:
|
|
3290
|
-
[`${
|
|
3278
|
+
class: w({
|
|
3279
|
+
[`${r.value}`]: !0,
|
|
3291
3280
|
[`${e.classNames?.root}`]: !!e.classNames?.root,
|
|
3292
|
-
[`${
|
|
3293
|
-
[`${
|
|
3281
|
+
[`${t}`]: !0,
|
|
3282
|
+
[`${t}-${e.settings.layout}`]: !0
|
|
3294
3283
|
}),
|
|
3295
|
-
style:
|
|
3296
|
-
}, [
|
|
3297
|
-
class:
|
|
3284
|
+
style: R
|
|
3285
|
+
}, [p.value.layout?.bgLayout ? o("div", {
|
|
3286
|
+
class: w(`${t}-bg-list`, r.value)
|
|
3298
3287
|
}, null) : null, o(Te, {
|
|
3299
|
-
style:
|
|
3288
|
+
style: $.value.isWide ? {
|
|
3300
3289
|
width: se(e.settings.wideWidth),
|
|
3301
|
-
paddingTop:
|
|
3302
|
-
margin:
|
|
3290
|
+
paddingTop: Yn($.value.headerHeight, 20),
|
|
3291
|
+
margin: $.value.isWide ? "0 auto" : void 0
|
|
3303
3292
|
} : void 0
|
|
3304
3293
|
}, {
|
|
3305
|
-
default: () => [
|
|
3306
|
-
style:
|
|
3294
|
+
default: () => [Z(), o(Te, {
|
|
3295
|
+
style: P
|
|
3307
3296
|
}, {
|
|
3308
|
-
default: () => [
|
|
3297
|
+
default: () => [V(), o(Ya, oe(Fe(e, Ga), {
|
|
3309
3298
|
tabsRoute: {
|
|
3310
3299
|
...e.tabsRoute,
|
|
3311
3300
|
itemRender: n.tabsRouteItemRender || e.tabsRoute?.itemRender
|
|
3312
3301
|
},
|
|
3313
|
-
hashId:
|
|
3314
|
-
prefixCls:
|
|
3302
|
+
hashId: r.value,
|
|
3303
|
+
prefixCls: t
|
|
3315
3304
|
}), {
|
|
3316
3305
|
default: () => [o(_a, {
|
|
3317
|
-
class:
|
|
3306
|
+
class: w(`${t}-content`, r.value)
|
|
3318
3307
|
}, {
|
|
3319
3308
|
default: () => [n.default?.()]
|
|
3320
3309
|
})]
|
|
3321
|
-
}),
|
|
3310
|
+
}), !$.value.isWide && z()]
|
|
3322
3311
|
})]
|
|
3323
|
-
}),
|
|
3312
|
+
}), $.value.isWide && z()])]));
|
|
3324
3313
|
};
|
|
3325
3314
|
}
|
|
3326
|
-
}),
|
|
3315
|
+
}), Fi = /* @__PURE__ */ G({
|
|
3327
3316
|
name: "GProLayout",
|
|
3328
3317
|
compatConfig: {
|
|
3329
3318
|
MODE: 3
|
|
3330
3319
|
},
|
|
3331
3320
|
inheritAttrs: !1,
|
|
3332
|
-
props:
|
|
3321
|
+
props: ut,
|
|
3333
3322
|
emits: {
|
|
3334
3323
|
select: (e) => !0,
|
|
3335
3324
|
"update:selected-keys": (e) => !0,
|
|
@@ -3351,77 +3340,77 @@ const Va = /* @__PURE__ */ X({
|
|
|
3351
3340
|
emit: t,
|
|
3352
3341
|
expose: a
|
|
3353
3342
|
}) {
|
|
3354
|
-
const r =
|
|
3355
|
-
|
|
3356
|
-
|
|
3343
|
+
const r = Ft(), l = Q(), [i, m] = Be(e.theme ?? r?.theme?.value ?? "system");
|
|
3344
|
+
k(() => e.theme, (y) => {
|
|
3345
|
+
y && (i.value = y);
|
|
3357
3346
|
});
|
|
3358
|
-
const
|
|
3359
|
-
let
|
|
3360
|
-
if (!
|
|
3361
|
-
const
|
|
3362
|
-
|
|
3347
|
+
const s = Ot(), c = v(() => {
|
|
3348
|
+
let y = e.token || {};
|
|
3349
|
+
if (!y.layout?.header?.heightLayoutHeader) {
|
|
3350
|
+
const f = e.settings.headerHeight === 0 ? X.headerHeight : se(e.settings.headerHeight || X.headerHeight);
|
|
3351
|
+
y = de(y, {
|
|
3363
3352
|
layout: {
|
|
3364
3353
|
header: {
|
|
3365
|
-
heightLayoutHeader:
|
|
3354
|
+
heightLayoutHeader: f
|
|
3366
3355
|
}
|
|
3367
3356
|
}
|
|
3368
3357
|
});
|
|
3369
3358
|
}
|
|
3370
|
-
return
|
|
3359
|
+
return de(y, {
|
|
3371
3360
|
layout: {
|
|
3372
|
-
key: `${
|
|
3361
|
+
key: `${s.value ? "dark" : "light"}:${e.settings.layout}`
|
|
3373
3362
|
}
|
|
3374
3363
|
});
|
|
3375
|
-
}),
|
|
3376
|
-
t("collapse",
|
|
3377
|
-
}, u = (
|
|
3378
|
-
t("update:open-keys",
|
|
3379
|
-
},
|
|
3380
|
-
t("update:selected-keys",
|
|
3381
|
-
}, I = (
|
|
3382
|
-
t("update:tabs",
|
|
3383
|
-
},
|
|
3384
|
-
t("contentFullScreenChange",
|
|
3364
|
+
}), g = (y) => {
|
|
3365
|
+
t("collapse", y), e.collapsedProps?.onCollapse && e.collapsedProps.onCollapse(y);
|
|
3366
|
+
}, u = (y) => {
|
|
3367
|
+
t("update:open-keys", y), t("openKeys", y);
|
|
3368
|
+
}, p = (y) => {
|
|
3369
|
+
t("update:selected-keys", y), t("select", y);
|
|
3370
|
+
}, I = (y) => {
|
|
3371
|
+
t("update:tabs", y), t("tabsChange", y);
|
|
3372
|
+
}, M = (y) => {
|
|
3373
|
+
t("contentFullScreenChange", y);
|
|
3385
3374
|
};
|
|
3386
|
-
return
|
|
3387
|
-
|
|
3375
|
+
return La({
|
|
3376
|
+
tabsRouteRef: l
|
|
3377
|
+
}), a({
|
|
3378
|
+
tabsRouteRef: l
|
|
3388
3379
|
}), () => {
|
|
3389
|
-
const
|
|
3390
|
-
return o(
|
|
3391
|
-
default: () => [o(
|
|
3392
|
-
token:
|
|
3393
|
-
dark:
|
|
3380
|
+
const y = ["onSelect", "onOpenKeys", "onCollapse", "onTabsChange", "onDarkChange", "theme", "onContentFullScreenChange", "onThemeChange"];
|
|
3381
|
+
return o(tt, null, {
|
|
3382
|
+
default: () => [o(Cn, {
|
|
3383
|
+
token: c.value,
|
|
3384
|
+
dark: s.value,
|
|
3394
3385
|
cssVar: e.cssVar
|
|
3395
3386
|
}, {
|
|
3396
|
-
default: () => [o(
|
|
3387
|
+
default: () => [o(jn, {
|
|
3397
3388
|
theme: i.value,
|
|
3398
|
-
onChange: (
|
|
3399
|
-
f
|
|
3389
|
+
onChange: (f) => {
|
|
3390
|
+
m(f), t("themeChange", f), t("update:theme", f);
|
|
3400
3391
|
},
|
|
3401
3392
|
onChangeBase: () => {
|
|
3402
|
-
e.onDarkChange?.(
|
|
3393
|
+
e.onDarkChange?.(s.value);
|
|
3403
3394
|
}
|
|
3404
3395
|
}, {
|
|
3405
|
-
default: () => [o(qa, oe({
|
|
3406
|
-
|
|
3407
|
-
}, de(e, s), {
|
|
3408
|
-
onSelect: h,
|
|
3396
|
+
default: () => [o(qa, oe(ve(e, y), {
|
|
3397
|
+
onSelect: p,
|
|
3409
3398
|
onOpenKeys: u,
|
|
3410
|
-
onCollapse:
|
|
3399
|
+
onCollapse: g,
|
|
3411
3400
|
onTabsChange: I,
|
|
3412
|
-
onContentFullScreenChange:
|
|
3401
|
+
onContentFullScreenChange: M
|
|
3413
3402
|
}), n)]
|
|
3414
3403
|
})]
|
|
3415
3404
|
})]
|
|
3416
3405
|
});
|
|
3417
3406
|
};
|
|
3418
3407
|
}
|
|
3419
|
-
}), { useInjectContext: Za, provideContext: Qa } =
|
|
3408
|
+
}), { useInjectContext: Za, provideContext: Qa } = Xe("pro-page"), Ja = "anticon", eo = /* @__PURE__ */ Symbol("configProvider"), to = {
|
|
3420
3409
|
getPrefixCls: (e, n) => n || (e ? `ant-${e}` : "ant"),
|
|
3421
|
-
iconPrefixCls:
|
|
3422
|
-
getPopupContainer:
|
|
3423
|
-
direction:
|
|
3424
|
-
}, no = () =>
|
|
3410
|
+
iconPrefixCls: v(() => Ja),
|
|
3411
|
+
getPopupContainer: v(() => () => document.body),
|
|
3412
|
+
direction: v(() => "ltr")
|
|
3413
|
+
}, no = () => nn(eo, to), ao = () => ({
|
|
3425
3414
|
extra: {
|
|
3426
3415
|
type: [Object, String, Number, Function, Object, Array],
|
|
3427
3416
|
default: void 0
|
|
@@ -3451,7 +3440,7 @@ const Va = /* @__PURE__ */ X({
|
|
|
3451
3440
|
boxSizing: "border-box",
|
|
3452
3441
|
lineHeight: "64px",
|
|
3453
3442
|
/* A way to reset the style of the component. */
|
|
3454
|
-
backgroundColor:
|
|
3443
|
+
backgroundColor: xn(e.colorBgElevated, 0.6),
|
|
3455
3444
|
borderBlockStart: `1px solid ${e.colorSplit}`,
|
|
3456
3445
|
"-webkit-backdrop-filter": "blur(8px)",
|
|
3457
3446
|
backdropFilter: "blur(8px)",
|
|
@@ -3474,7 +3463,7 @@ const Va = /* @__PURE__ */ X({
|
|
|
3474
3463
|
}
|
|
3475
3464
|
});
|
|
3476
3465
|
function lo(e) {
|
|
3477
|
-
return
|
|
3466
|
+
return xe("ProLayoutFooterToolbar", (n) => {
|
|
3478
3467
|
const t = {
|
|
3479
3468
|
...n,
|
|
3480
3469
|
componentCls: `.${e}`
|
|
@@ -3483,7 +3472,7 @@ function lo(e) {
|
|
|
3483
3472
|
});
|
|
3484
3473
|
}
|
|
3485
3474
|
function io(e, { stylish: n }) {
|
|
3486
|
-
return
|
|
3475
|
+
return xe("ProLayoutFooterToolbarStylish", (t) => {
|
|
3487
3476
|
const a = {
|
|
3488
3477
|
...t,
|
|
3489
3478
|
componentCls: `.${e}`
|
|
@@ -3496,9 +3485,9 @@ function io(e, { stylish: n }) {
|
|
|
3496
3485
|
});
|
|
3497
3486
|
}
|
|
3498
3487
|
function ro(e) {
|
|
3499
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
3488
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
|
|
3500
3489
|
}
|
|
3501
|
-
const so = /* @__PURE__ */
|
|
3490
|
+
const so = /* @__PURE__ */ G({
|
|
3502
3491
|
name: "FooterToolbar",
|
|
3503
3492
|
props: ao(),
|
|
3504
3493
|
inheritAttrs: !1,
|
|
@@ -3506,7 +3495,7 @@ const so = /* @__PURE__ */ X({
|
|
|
3506
3495
|
setup(e, {
|
|
3507
3496
|
slots: n
|
|
3508
3497
|
}) {
|
|
3509
|
-
const t =
|
|
3498
|
+
const t = q(), a = (t.getPrefixCls || ae)({
|
|
3510
3499
|
suffixCls: "footer-toolbar",
|
|
3511
3500
|
isPor: !0
|
|
3512
3501
|
}), {
|
|
@@ -3514,50 +3503,50 @@ const so = /* @__PURE__ */ X({
|
|
|
3514
3503
|
} = no(), {
|
|
3515
3504
|
wrapSSR: l,
|
|
3516
3505
|
hashId: i
|
|
3517
|
-
} = lo(a),
|
|
3518
|
-
if (
|
|
3519
|
-
return
|
|
3520
|
-
}, [() => t?.collapsed?.value, () => t?.layoutProps?.value?.hasSilder, () => t?.isMobile, () => t?.layoutProps?.value?.siderWidth]), I =
|
|
3506
|
+
} = lo(a), m = v(() => t?.collapsed?.value), s = v(() => t?.layoutProps?.value), c = v(() => t?.collapsedProps?.value), g = v(() => t?.isMobile.value ? !1 : t?.collapsedEffect?.value), u = v(() => c?.value?.width ? g.value ? c.value?.width : s.value.siderWidth : m.value ? 0 : s.value.siderWidth), p = Oe(() => {
|
|
3507
|
+
if (s.value?.hasSilder)
|
|
3508
|
+
return s.value?.siderWidth ? t?.isMobile?.value ? "100%" : `calc(100% - ${W(u.value)})` : "100%";
|
|
3509
|
+
}, [() => t?.collapsed?.value, () => t?.layoutProps?.value?.hasSilder, () => t?.isMobile, () => t?.layoutProps?.value?.siderWidth]), I = Oe(() => typeof window > "u" || typeof document > "u" ? null : r?.value?.() || document.body, []), M = io(`${a}.${a}-stylish`, {
|
|
3521
3510
|
stylish: e.stylish
|
|
3522
3511
|
});
|
|
3523
|
-
return
|
|
3512
|
+
return Ze(() => {
|
|
3524
3513
|
!t || !t?.setHasFooterToolbar || t?.setHasFooterToolbar(!0);
|
|
3525
|
-
}),
|
|
3514
|
+
}), an(() => {
|
|
3526
3515
|
t?.setHasFooterToolbar?.(!1);
|
|
3527
3516
|
}), () => {
|
|
3528
|
-
const
|
|
3517
|
+
const y = ie({
|
|
3529
3518
|
slots: n,
|
|
3530
3519
|
props: e,
|
|
3531
3520
|
key: "extra"
|
|
3532
|
-
}),
|
|
3521
|
+
}), f = Pe({
|
|
3533
3522
|
slots: n,
|
|
3534
3523
|
props: e,
|
|
3535
3524
|
key: "renderContent"
|
|
3536
|
-
}),
|
|
3525
|
+
}), x = o(_, null, [o("div", {
|
|
3537
3526
|
class: `${a}-left ${i.value}`.trim()
|
|
3538
|
-
}, [
|
|
3527
|
+
}, [y]), o("div", {
|
|
3539
3528
|
class: `${a}-right ${i.value}`.trim()
|
|
3540
|
-
}, [n.default?.()])]),
|
|
3541
|
-
class:
|
|
3529
|
+
}, [n.default?.()])]), C = o("div", {
|
|
3530
|
+
class: w(e.class, i.value, a, {
|
|
3542
3531
|
[`${a}-stylish`]: !!e.stylish
|
|
3543
3532
|
}),
|
|
3544
3533
|
style: {
|
|
3545
|
-
width:
|
|
3534
|
+
width: p.value,
|
|
3546
3535
|
...e.style
|
|
3547
3536
|
}
|
|
3548
|
-
}, [
|
|
3537
|
+
}, [f && Mn(f) ? f({
|
|
3549
3538
|
props: {
|
|
3550
3539
|
...e,
|
|
3551
3540
|
...t,
|
|
3552
|
-
leftWidth:
|
|
3541
|
+
leftWidth: p.value
|
|
3553
3542
|
},
|
|
3554
|
-
dom:
|
|
3555
|
-
}) :
|
|
3543
|
+
dom: x
|
|
3544
|
+
}) : x]), P = !Bn() || !e.portalDom || !I.value ? C : o(on, {
|
|
3556
3545
|
to: I.value
|
|
3557
|
-
}, ro(
|
|
3558
|
-
default: () => [
|
|
3546
|
+
}, ro(C) ? C : {
|
|
3547
|
+
default: () => [C]
|
|
3559
3548
|
});
|
|
3560
|
-
return
|
|
3549
|
+
return M.wrapSSR(l(o(_, null, [P])));
|
|
3561
3550
|
};
|
|
3562
3551
|
}
|
|
3563
3552
|
}), uo = (e) => ({
|
|
@@ -3607,7 +3596,7 @@ const so = /* @__PURE__ */ X({
|
|
|
3607
3596
|
}
|
|
3608
3597
|
}
|
|
3609
3598
|
}
|
|
3610
|
-
}), co = /* @__PURE__ */
|
|
3599
|
+
}), co = /* @__PURE__ */ G({
|
|
3611
3600
|
name: "ProPageHeader",
|
|
3612
3601
|
props: {
|
|
3613
3602
|
close: {
|
|
@@ -3619,7 +3608,7 @@ const so = /* @__PURE__ */ X({
|
|
|
3619
3608
|
breadcrumb: ye.breadcrumbRender
|
|
3620
3609
|
},
|
|
3621
3610
|
setup(e) {
|
|
3622
|
-
const n =
|
|
3611
|
+
const n = q(), a = (n?.getPrefixCls || ae)({
|
|
3623
3612
|
isPor: !0,
|
|
3624
3613
|
suffixCls: "page-header"
|
|
3625
3614
|
}), {
|
|
@@ -3632,15 +3621,15 @@ const so = /* @__PURE__ */ X({
|
|
|
3632
3621
|
class: [`${a}`, l.value, i && `${a}-has-breadcrumb`],
|
|
3633
3622
|
style: e.style
|
|
3634
3623
|
}, [n?.breadcrumb?.value?.position === "pageHeader" && n?.breadcrumb?.value?.visible && o("div", {
|
|
3635
|
-
class:
|
|
3636
|
-
}, [o(
|
|
3624
|
+
class: w(`${a}-top`, l.value)
|
|
3625
|
+
}, [o(Vt, {
|
|
3637
3626
|
breadcrumb: e.breadcrumb
|
|
3638
3627
|
}, null), n?.contentFullScreen?.value && e.close && o("div", {
|
|
3639
3628
|
class: [`${a}-close`, l.value],
|
|
3640
3629
|
onClick: () => {
|
|
3641
3630
|
n && (n.contentFullScreen.value = !1);
|
|
3642
3631
|
}
|
|
3643
|
-
}, [o(
|
|
3632
|
+
}, [o(je, {
|
|
3644
3633
|
class: [`${a}-close-x`, l.value]
|
|
3645
3634
|
}, null)])]), e.content && o("div", {
|
|
3646
3635
|
class: [`${a}-content`, l.value]
|
|
@@ -3649,13 +3638,13 @@ const so = /* @__PURE__ */ X({
|
|
|
3649
3638
|
onClick: () => {
|
|
3650
3639
|
n && (n.contentFullScreen.value = !1);
|
|
3651
3640
|
}
|
|
3652
|
-
}, [o(
|
|
3641
|
+
}, [o(je, {
|
|
3653
3642
|
class: [`${a}-close-x`, l.value]
|
|
3654
3643
|
}, null)])])]));
|
|
3655
3644
|
};
|
|
3656
3645
|
}
|
|
3657
3646
|
}), mo = (e) => {
|
|
3658
|
-
const { layout: n } =
|
|
3647
|
+
const { layout: n } = Ie(e), t = e.layout?.pageContainer, a = t?.borderRadius || e.borderRadiusLG, r = `${e.proComponentsCls}-basic-layout-content`;
|
|
3659
3648
|
return {
|
|
3660
3649
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
3661
3650
|
[`&-content${r}-width`]: {
|
|
@@ -3706,19 +3695,19 @@ const so = /* @__PURE__ */ X({
|
|
|
3706
3695
|
};
|
|
3707
3696
|
};
|
|
3708
3697
|
function fo(e) {
|
|
3709
|
-
return
|
|
3710
|
-
const t =
|
|
3698
|
+
return xe("ProPageContainer", (n) => {
|
|
3699
|
+
const t = et(n, {
|
|
3711
3700
|
gridContent: `${n.proComponentsCls}-grid-content`
|
|
3712
3701
|
});
|
|
3713
3702
|
return [mo(t)];
|
|
3714
3703
|
}, e);
|
|
3715
3704
|
}
|
|
3716
|
-
function
|
|
3717
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
3705
|
+
function St(e) {
|
|
3706
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
|
|
3718
3707
|
}
|
|
3719
3708
|
const po = {
|
|
3720
3709
|
type: "default"
|
|
3721
|
-
},
|
|
3710
|
+
}, Ni = /* @__PURE__ */ G({
|
|
3722
3711
|
inheritAttrs: !1,
|
|
3723
3712
|
name: "GProPageContainer",
|
|
3724
3713
|
props: ye,
|
|
@@ -3729,91 +3718,91 @@ const po = {
|
|
|
3729
3718
|
attrs: t,
|
|
3730
3719
|
expose: a
|
|
3731
3720
|
}) {
|
|
3732
|
-
const r =
|
|
3721
|
+
const r = Nt(), l = Za(), i = q(), m = Ia(), s = i?.getPrefixCls || ae, c = s({
|
|
3733
3722
|
suffixCls: "page-container",
|
|
3734
3723
|
isPor: !0
|
|
3735
|
-
}),
|
|
3724
|
+
}), g = s({
|
|
3736
3725
|
suffixCls: "grid-content",
|
|
3737
3726
|
isPor: !0
|
|
3738
|
-
}), u =
|
|
3739
|
-
const
|
|
3727
|
+
}), u = v(() => i?.pageContainer?.value || {}), p = v(() => {
|
|
3728
|
+
const B = re(e.waterMarkProps) ? {} : e.waterMarkProps || {};
|
|
3740
3729
|
return {
|
|
3741
3730
|
...re(i?.waterMarkProps?.value) ? {} : i?.waterMarkProps?.value || {},
|
|
3742
|
-
...
|
|
3731
|
+
...B
|
|
3743
3732
|
};
|
|
3744
|
-
}), I =
|
|
3745
|
-
const
|
|
3746
|
-
return
|
|
3747
|
-
}),
|
|
3748
|
-
const
|
|
3749
|
-
return l?.spinning?.value ? !1 :
|
|
3750
|
-
}),
|
|
3751
|
-
const
|
|
3752
|
-
return typeof e.loading == "boolean" ?
|
|
3753
|
-
...
|
|
3733
|
+
}), I = v(() => e.pageCardProps || u.value?.pageCardProps), M = v(() => e.pageHeaderStyle || u.value?.pageHeaderStyle), y = v(() => e.pageContentStyle || u.value?.pageContentStyle), f = v(() => e.pageChildrenContentClass || u.value?.pageChildrenContentClass || ""), x = v(() => e.pageChildrenContentStyle || u.value?.pageChildrenContentStyle || {}), C = v(() => i?.layoutProps?.value?.isWide), P = v(() => re(e.usePageCard) ? e.usePageCard : re(u.value?.usePageCard) ? u.value?.usePageCard : !0), $ = v(() => {
|
|
3734
|
+
const B = e.contentWidth ?? u.value?.contentWidth;
|
|
3735
|
+
return W(B);
|
|
3736
|
+
}), b = v(() => {
|
|
3737
|
+
const B = re(e.loading) ? e.loading : !!e.loading?.spinning;
|
|
3738
|
+
return l?.spinning?.value ? !1 : B;
|
|
3739
|
+
}), T = v(() => {
|
|
3740
|
+
const B = u.value?.loadingProps;
|
|
3741
|
+
return typeof e.loading == "boolean" ? B ?? po : {
|
|
3742
|
+
...B,
|
|
3754
3743
|
...e.loading
|
|
3755
3744
|
};
|
|
3756
|
-
}),
|
|
3757
|
-
const
|
|
3745
|
+
}), Y = v(() => {
|
|
3746
|
+
const B = ie({
|
|
3758
3747
|
slots: n,
|
|
3759
3748
|
props: e,
|
|
3760
3749
|
key: "pageHeaderContentRender"
|
|
3761
|
-
}),
|
|
3762
|
-
return
|
|
3763
|
-
}),
|
|
3764
|
-
[e.height === "min" ? "min-height" : e.height === "max" ? "max-height" : "height"]:
|
|
3750
|
+
}), O = i?.breadcrumb?.value || {}, ee = O.routes || [];
|
|
3751
|
+
return C.value ? !1 : O?.position === "pageHeader" && ee.length > 0 || B;
|
|
3752
|
+
}), K = v(() => e.height ? {
|
|
3753
|
+
[e.height === "min" ? "min-height" : e.height === "max" ? "max-height" : "height"]: m.value,
|
|
3765
3754
|
overflow: e.height !== "min" ? "hidden" : void 0
|
|
3766
3755
|
} : {});
|
|
3767
|
-
|
|
3768
|
-
|
|
3756
|
+
k([() => e.breadcrumbRender, () => i?.breadcrumb?.value?.position], () => {
|
|
3757
|
+
U();
|
|
3769
3758
|
}, {
|
|
3770
3759
|
deep: !0
|
|
3771
|
-
}),
|
|
3772
|
-
i && i.fullScreenOnTabsHide && (i.fullScreenOnTabsHide.value = !!e.fullScreenOnTabsHide),
|
|
3760
|
+
}), vn(() => {
|
|
3761
|
+
i && i.fullScreenOnTabsHide && (i.fullScreenOnTabsHide.value = !!e.fullScreenOnTabsHide), U();
|
|
3773
3762
|
});
|
|
3774
|
-
function
|
|
3775
|
-
const
|
|
3763
|
+
function U() {
|
|
3764
|
+
const B = Pe({
|
|
3776
3765
|
slots: n,
|
|
3777
3766
|
props: e,
|
|
3778
3767
|
key: "breadcrumbRender"
|
|
3779
3768
|
});
|
|
3780
|
-
i && (i.breadcrumbRender.value = i?.breadcrumb?.value?.position === "header" ?
|
|
3769
|
+
i && (i.breadcrumbRender.value = i?.breadcrumb?.value?.position === "header" ? B : void 0);
|
|
3781
3770
|
}
|
|
3782
3771
|
const {
|
|
3783
|
-
wrapSSR:
|
|
3784
|
-
hashId:
|
|
3785
|
-
} = fo(
|
|
3786
|
-
|
|
3787
|
-
e.onContentFullScreenChange?.(
|
|
3772
|
+
wrapSSR: V,
|
|
3773
|
+
hashId: Z
|
|
3774
|
+
} = fo(c);
|
|
3775
|
+
k(() => i?.contentFullScreen?.value, (B) => {
|
|
3776
|
+
e.onContentFullScreenChange?.(B);
|
|
3788
3777
|
});
|
|
3789
|
-
const
|
|
3790
|
-
const
|
|
3778
|
+
const z = () => {
|
|
3779
|
+
const B = ie({
|
|
3791
3780
|
slots: n,
|
|
3792
3781
|
props: e,
|
|
3793
3782
|
key: "pageChildrenExtraRender"
|
|
3794
|
-
}),
|
|
3783
|
+
}), O = w(`${c}-children-container`, Z.value, f.value);
|
|
3795
3784
|
return o("div", {
|
|
3796
|
-
class:
|
|
3785
|
+
class: O,
|
|
3797
3786
|
style: {
|
|
3798
|
-
...
|
|
3787
|
+
...x.value
|
|
3799
3788
|
}
|
|
3800
|
-
}, [
|
|
3801
|
-
class:
|
|
3802
|
-
}, [o(
|
|
3789
|
+
}, [b.value && o("div", {
|
|
3790
|
+
class: w(`${c}-spinning`, Z.value)
|
|
3791
|
+
}, [o(Pt, {
|
|
3803
3792
|
indicator: r?.indicator?.value,
|
|
3804
|
-
tip:
|
|
3793
|
+
tip: T.value?.tip
|
|
3805
3794
|
}, null)]), o("div", {
|
|
3806
|
-
class:
|
|
3807
|
-
}, [
|
|
3795
|
+
class: w(`${c}-spinning-content`, Z.value, b.value && T.value.type ? `${c}-spinning-content-${T.value.type}` : "")
|
|
3796
|
+
}, [B, P.value ? o(zn, oe({
|
|
3808
3797
|
bordered: !1
|
|
3809
3798
|
}, I.value || {}, {
|
|
3810
3799
|
style: {
|
|
3811
3800
|
...I.value?.style || {},
|
|
3812
|
-
...
|
|
3801
|
+
...K.value
|
|
3813
3802
|
},
|
|
3814
3803
|
bodyStyle: {
|
|
3815
3804
|
...I.value?.bodyStyle || {},
|
|
3816
|
-
...
|
|
3805
|
+
...K.value
|
|
3817
3806
|
}
|
|
3818
3807
|
}), {
|
|
3819
3808
|
default: () => [n.default?.()]
|
|
@@ -3821,41 +3810,41 @@ const po = {
|
|
|
3821
3810
|
class: I.value?.class,
|
|
3822
3811
|
style: {
|
|
3823
3812
|
...I.value?.style || {},
|
|
3824
|
-
...
|
|
3813
|
+
...K.value
|
|
3825
3814
|
}
|
|
3826
3815
|
}, [n.default?.()])])]);
|
|
3827
|
-
},
|
|
3816
|
+
}, R = () => {
|
|
3828
3817
|
if (e.waterMarkProps !== !1 && i?.waterMarkProps?.value !== !1) {
|
|
3829
|
-
let
|
|
3830
|
-
return o(
|
|
3831
|
-
default: () => [
|
|
3818
|
+
let O;
|
|
3819
|
+
return o(En, Qe(p.value), St(O = z()) ? O : {
|
|
3820
|
+
default: () => [O]
|
|
3832
3821
|
});
|
|
3833
3822
|
}
|
|
3834
|
-
return
|
|
3835
|
-
},
|
|
3836
|
-
class: [
|
|
3823
|
+
return z();
|
|
3824
|
+
}, D = () => o(_, null, [o("div", {
|
|
3825
|
+
class: [g, Z.value],
|
|
3837
3826
|
style: {
|
|
3838
|
-
width:
|
|
3839
|
-
marginInline:
|
|
3827
|
+
width: $.value,
|
|
3828
|
+
marginInline: $.value && "auto"
|
|
3840
3829
|
}
|
|
3841
3830
|
}, [o("div", {
|
|
3842
|
-
class: `${
|
|
3843
|
-
style:
|
|
3844
|
-
}, [
|
|
3831
|
+
class: `${g}-children ${Z.value}`,
|
|
3832
|
+
style: y.value
|
|
3833
|
+
}, [R()])])]);
|
|
3845
3834
|
return a({
|
|
3846
|
-
changeContentFullScreen: (
|
|
3847
|
-
i && (i.contentFullScreen.value =
|
|
3835
|
+
changeContentFullScreen: (B) => {
|
|
3836
|
+
i && (i.contentFullScreen.value = B);
|
|
3848
3837
|
}
|
|
3849
3838
|
}), () => {
|
|
3850
|
-
const
|
|
3839
|
+
const B = ie({
|
|
3851
3840
|
slots: n,
|
|
3852
3841
|
props: e,
|
|
3853
3842
|
key: "footer"
|
|
3854
|
-
}),
|
|
3843
|
+
}), O = ie({
|
|
3855
3844
|
slots: n,
|
|
3856
3845
|
props: e,
|
|
3857
3846
|
key: "pageHeaderRender"
|
|
3858
|
-
}) || i?.pageHeaderRender?.value,
|
|
3847
|
+
}) || i?.pageHeaderRender?.value, ee = ie({
|
|
3859
3848
|
slots: n,
|
|
3860
3849
|
props: e,
|
|
3861
3850
|
key: "pageHeaderContentRender"
|
|
@@ -3864,19 +3853,19 @@ const po = {
|
|
|
3864
3853
|
props: e,
|
|
3865
3854
|
key: "breadcrumbRender"
|
|
3866
3855
|
});
|
|
3867
|
-
return
|
|
3868
|
-
class:
|
|
3856
|
+
return V(o("div", {
|
|
3857
|
+
class: w(i?.classNames?.value?.content, Z.value, c, t.class),
|
|
3869
3858
|
style: {
|
|
3870
3859
|
...t.style || {},
|
|
3871
3860
|
...i?.styles?.value?.content || {}
|
|
3872
3861
|
}
|
|
3873
|
-
}, [o(
|
|
3874
|
-
style:
|
|
3862
|
+
}, [o(_, null, [O !== !1 && Y.value && (O || o(co, {
|
|
3863
|
+
style: M?.value,
|
|
3875
3864
|
breadcrumb: ue,
|
|
3876
|
-
content:
|
|
3865
|
+
content: ee,
|
|
3877
3866
|
close: e.fullScreenOnTabsHide
|
|
3878
|
-
}, null)),
|
|
3879
|
-
default: () => [
|
|
3867
|
+
}, null)), D()]), B && o(so, e.footerToolBarProps || {}, St(B) ? B : {
|
|
3868
|
+
default: () => [B]
|
|
3880
3869
|
})]));
|
|
3881
3870
|
};
|
|
3882
3871
|
}
|
|
@@ -3895,7 +3884,7 @@ const po = {
|
|
|
3895
3884
|
width: "100%",
|
|
3896
3885
|
height: "100%",
|
|
3897
3886
|
zIndex: 200,
|
|
3898
|
-
backgroundColor:
|
|
3887
|
+
backgroundColor: In(e.colorBgContainer, 0.5),
|
|
3899
3888
|
[`& > ${e.componentCls}-spin`]: {
|
|
3900
3889
|
position: "absolute",
|
|
3901
3890
|
top: "50%",
|
|
@@ -3915,12 +3904,12 @@ const po = {
|
|
|
3915
3904
|
}
|
|
3916
3905
|
});
|
|
3917
3906
|
function ho(e) {
|
|
3918
|
-
return
|
|
3907
|
+
return xe("PageLoading", (n) => [go(n)], e);
|
|
3919
3908
|
}
|
|
3920
|
-
const
|
|
3909
|
+
const Li = /* @__PURE__ */ G({
|
|
3921
3910
|
name: "GProAppPage",
|
|
3922
3911
|
props: {
|
|
3923
|
-
...
|
|
3912
|
+
...An,
|
|
3924
3913
|
spinning: {
|
|
3925
3914
|
type: Object,
|
|
3926
3915
|
default: () => ({})
|
|
@@ -3932,7 +3921,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
3932
3921
|
slots: n,
|
|
3933
3922
|
attrs: t
|
|
3934
3923
|
}) {
|
|
3935
|
-
|
|
3924
|
+
Bt(qn);
|
|
3936
3925
|
const a = ae({
|
|
3937
3926
|
isPor: !0,
|
|
3938
3927
|
suffixCls: "app-page"
|
|
@@ -3941,25 +3930,25 @@ const Ni = /* @__PURE__ */ X({
|
|
|
3941
3930
|
wrapSSR: l
|
|
3942
3931
|
} = ho(a);
|
|
3943
3932
|
return Qa({
|
|
3944
|
-
spinning:
|
|
3933
|
+
spinning: v(() => e.spinning?.loading)
|
|
3945
3934
|
}), () => {
|
|
3946
3935
|
const i = ge({
|
|
3947
3936
|
slots: n,
|
|
3948
3937
|
props: e,
|
|
3949
|
-
keys:
|
|
3938
|
+
keys: Kn,
|
|
3950
3939
|
render: !0
|
|
3951
3940
|
});
|
|
3952
|
-
return l(o(
|
|
3941
|
+
return l(o(Un, {
|
|
3953
3942
|
style: t.style,
|
|
3954
|
-
class:
|
|
3955
|
-
indicator: i.indicator ?? o(
|
|
3943
|
+
class: w(t.class, e.spinning?.loading && `${a}-loading`, a, r.value),
|
|
3944
|
+
indicator: i.indicator ?? o(Ke, {
|
|
3956
3945
|
type: "spinning",
|
|
3957
3946
|
spin: !0,
|
|
3958
3947
|
class: `${a}-spin-dot ${r.value}`
|
|
3959
3948
|
}, null),
|
|
3960
3949
|
emptyText: i.emptyText
|
|
3961
3950
|
}, {
|
|
3962
|
-
default: () => [o(
|
|
3951
|
+
default: () => [o(kn, {
|
|
3963
3952
|
barStyle: {
|
|
3964
3953
|
x: {
|
|
3965
3954
|
zIndex: 110
|
|
@@ -3974,14 +3963,14 @@ const Ni = /* @__PURE__ */ X({
|
|
|
3974
3963
|
}, {
|
|
3975
3964
|
default: () => [n.default?.()]
|
|
3976
3965
|
}), e.spinning?.loading && o("div", {
|
|
3977
|
-
class:
|
|
3966
|
+
class: w(`${a}-blur`, r.value),
|
|
3978
3967
|
style: {
|
|
3979
3968
|
backgroundColor: e.spinning?.blur ? void 0 : "unset",
|
|
3980
3969
|
...e.spinning?.style || {}
|
|
3981
3970
|
}
|
|
3982
3971
|
}, [o("div", {
|
|
3983
|
-
class:
|
|
3984
|
-
}, [i.indicator ?? o(
|
|
3972
|
+
class: w(`${a}-spin`)
|
|
3973
|
+
}, [i.indicator ?? o(Ke, {
|
|
3985
3974
|
type: "spinning",
|
|
3986
3975
|
spin: !0,
|
|
3987
3976
|
class: `${a}-spin-dot ${r.value}`
|
|
@@ -3989,24 +3978,24 @@ const Ni = /* @__PURE__ */ X({
|
|
|
3989
3978
|
}));
|
|
3990
3979
|
};
|
|
3991
3980
|
}
|
|
3992
|
-
}), yo = ["left", "right"],
|
|
3981
|
+
}), yo = ["left", "right"], we = ["left", "right", "down", "up"], bo = ["downBig", "upBig", "leftBig", "rightBig"], vo = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Co = ["downLeft", "upRight", "downRight", "upLeft"], xo = {
|
|
3993
3982
|
preset: [
|
|
3994
3983
|
// 预设动画配置
|
|
3995
|
-
{ name: "back", alias: "渐近", directions:
|
|
3996
|
-
{ name: "bounce", alias: "弹跳", directions:
|
|
3984
|
+
{ name: "back", alias: "渐近", directions: we },
|
|
3985
|
+
{ name: "bounce", alias: "弹跳", directions: we.concat("default") },
|
|
3997
3986
|
{
|
|
3998
3987
|
name: "fade",
|
|
3999
3988
|
alias: "淡化",
|
|
4000
|
-
directions:
|
|
3989
|
+
directions: we.concat(bo).concat(vo).concat("default")
|
|
4001
3990
|
},
|
|
4002
3991
|
{ name: "flip", alias: "翻转", directions: ["x", "y"] },
|
|
4003
3992
|
{ name: "lightSpeed", alias: "光速", directions: yo },
|
|
4004
3993
|
{ name: "rotate", alias: "旋转", directions: Co.concat("default") },
|
|
4005
3994
|
{ name: "roll", alias: "翻滚", directions: ["default"] },
|
|
4006
|
-
{ name: "zoom", alias: "缩放", directions:
|
|
4007
|
-
{ name: "slide", alias: "滑动", directions:
|
|
3995
|
+
{ name: "zoom", alias: "缩放", directions: we.concat("default") },
|
|
3996
|
+
{ name: "slide", alias: "滑动", directions: we }
|
|
4008
3997
|
]
|
|
4009
|
-
}, Io = new
|
|
3998
|
+
}, Io = new h("backInLeft", {
|
|
4010
3999
|
"0%": {
|
|
4011
4000
|
opacity: 0.7,
|
|
4012
4001
|
transform: "translateX(-2000px) scale(0.7)"
|
|
@@ -4019,7 +4008,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4019
4008
|
opacity: 1,
|
|
4020
4009
|
transform: "scale(1)"
|
|
4021
4010
|
}
|
|
4022
|
-
}), So = new
|
|
4011
|
+
}), So = new h("backInRight", {
|
|
4023
4012
|
"0%": {
|
|
4024
4013
|
opacity: 0.7,
|
|
4025
4014
|
transform: "translateX(2000px) scale(0.7)"
|
|
@@ -4032,7 +4021,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4032
4021
|
opacity: 1,
|
|
4033
4022
|
transform: "scale(1)"
|
|
4034
4023
|
}
|
|
4035
|
-
}), Ro = new
|
|
4024
|
+
}), Ro = new h("backInUp", {
|
|
4036
4025
|
"0%": {
|
|
4037
4026
|
opacity: 0.7,
|
|
4038
4027
|
transform: "translateY(1200px) scale(0.7)"
|
|
@@ -4045,7 +4034,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4045
4034
|
opacity: 1,
|
|
4046
4035
|
transform: "scale(1)"
|
|
4047
4036
|
}
|
|
4048
|
-
}), $o = new
|
|
4037
|
+
}), $o = new h("backInDown", {
|
|
4049
4038
|
"0%": {
|
|
4050
4039
|
opacity: 0.7,
|
|
4051
4040
|
transform: "translateY(-1200px) scale(0.7)"
|
|
@@ -4058,7 +4047,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4058
4047
|
opacity: 1,
|
|
4059
4048
|
transform: "scale(1)"
|
|
4060
4049
|
}
|
|
4061
|
-
}), wo = new
|
|
4050
|
+
}), wo = new h("backOutLeft", {
|
|
4062
4051
|
"0%": {
|
|
4063
4052
|
opacity: 1,
|
|
4064
4053
|
transform: "scale(1)"
|
|
@@ -4071,7 +4060,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4071
4060
|
opacity: 0.7,
|
|
4072
4061
|
transform: "translateX(-2000px) scale(0.7)"
|
|
4073
4062
|
}
|
|
4074
|
-
}), Mo = new
|
|
4063
|
+
}), Mo = new h("backOutRight", {
|
|
4075
4064
|
"0%": {
|
|
4076
4065
|
opacity: 1,
|
|
4077
4066
|
transform: "scale(1)"
|
|
@@ -4084,7 +4073,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4084
4073
|
opacity: 0.7,
|
|
4085
4074
|
transform: "translateX(2000px) scale(0.7)"
|
|
4086
4075
|
}
|
|
4087
|
-
}),
|
|
4076
|
+
}), Bo = new h("backOutUp", {
|
|
4088
4077
|
"0%": {
|
|
4089
4078
|
opacity: 1,
|
|
4090
4079
|
transform: "scale(1)"
|
|
@@ -4097,7 +4086,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4097
4086
|
opacity: 0.7,
|
|
4098
4087
|
transform: "translateY(-700px) scale(0.7)"
|
|
4099
4088
|
}
|
|
4100
|
-
}),
|
|
4089
|
+
}), Oo = new h("backOutDown", {
|
|
4101
4090
|
"0%": {
|
|
4102
4091
|
opacity: 1,
|
|
4103
4092
|
transform: "scale(1)"
|
|
@@ -4138,13 +4127,13 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4138
4127
|
},
|
|
4139
4128
|
"&.backOutUp": {
|
|
4140
4129
|
animationFillMode: "both",
|
|
4141
|
-
animationName:
|
|
4130
|
+
animationName: Bo
|
|
4142
4131
|
},
|
|
4143
4132
|
"&.backOutDown": {
|
|
4144
4133
|
animationFillMode: "both",
|
|
4145
|
-
animationName:
|
|
4134
|
+
animationName: Oo
|
|
4146
4135
|
}
|
|
4147
|
-
}), Fo = new
|
|
4136
|
+
}), Fo = new h("bounceIn", {
|
|
4148
4137
|
"from,20%,40%,60%,80%,to": {
|
|
4149
4138
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
4150
4139
|
},
|
|
@@ -4168,7 +4157,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4168
4157
|
opacity: 1,
|
|
4169
4158
|
transform: "scale3d(1, 1, 1)"
|
|
4170
4159
|
}
|
|
4171
|
-
}), No = new
|
|
4160
|
+
}), No = new h("bounceInLeft", {
|
|
4172
4161
|
"from,60%,75%,90%,to": {
|
|
4173
4162
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
4174
4163
|
},
|
|
@@ -4189,7 +4178,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4189
4178
|
to: {
|
|
4190
4179
|
transform: "translate3d(0, 0, 0)"
|
|
4191
4180
|
}
|
|
4192
|
-
}), Lo = new
|
|
4181
|
+
}), Lo = new h("bounceInRight", {
|
|
4193
4182
|
"from,60%,75%,90%,to": {
|
|
4194
4183
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
4195
4184
|
},
|
|
@@ -4210,7 +4199,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4210
4199
|
to: {
|
|
4211
4200
|
transform: "translate3d(0, 0, 0)"
|
|
4212
4201
|
}
|
|
4213
|
-
}), Ho = new
|
|
4202
|
+
}), Ho = new h("bounceInDown", {
|
|
4214
4203
|
"from,60%,75%,90%,to": {
|
|
4215
4204
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
4216
4205
|
},
|
|
@@ -4231,7 +4220,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4231
4220
|
to: {
|
|
4232
4221
|
transform: "translate3d(0, 0, 0)"
|
|
4233
4222
|
}
|
|
4234
|
-
}), Do = new
|
|
4223
|
+
}), Do = new h("bounceInUp", {
|
|
4235
4224
|
"from,60%,75%,90%,to": {
|
|
4236
4225
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
4237
4226
|
},
|
|
@@ -4252,7 +4241,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4252
4241
|
to: {
|
|
4253
4242
|
transform: "translate3d(0, 0, 0)"
|
|
4254
4243
|
}
|
|
4255
|
-
}), zo = new
|
|
4244
|
+
}), zo = new h("bounceOut", {
|
|
4256
4245
|
"20%": {
|
|
4257
4246
|
transform: "scale3d(0.9, 0.9, 0.9)"
|
|
4258
4247
|
},
|
|
@@ -4266,7 +4255,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4266
4255
|
opacity: 0,
|
|
4267
4256
|
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
4268
4257
|
}
|
|
4269
|
-
}), Wo = new
|
|
4258
|
+
}), Wo = new h("bounceOutLeft", {
|
|
4270
4259
|
"20%": {
|
|
4271
4260
|
opacity: 1,
|
|
4272
4261
|
transform: "translate3d(20px, 0, 0) scaleX(0.9)"
|
|
@@ -4275,7 +4264,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4275
4264
|
opacity: 0,
|
|
4276
4265
|
transform: "translate3d(-2000px, 0, 0) scaleX(2)"
|
|
4277
4266
|
}
|
|
4278
|
-
}), jo = new
|
|
4267
|
+
}), jo = new h("bounceOutRight", {
|
|
4279
4268
|
"20%": {
|
|
4280
4269
|
opacity: 1,
|
|
4281
4270
|
transform: "translate3d(-20px, 0, 0) scaleX(0.9)"
|
|
@@ -4284,7 +4273,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4284
4273
|
opacity: 0,
|
|
4285
4274
|
transform: "translate3d(2000px, 0, 0) scaleX(2)"
|
|
4286
4275
|
}
|
|
4287
|
-
}), Ao = new
|
|
4276
|
+
}), Ao = new h("bounceOutDown", {
|
|
4288
4277
|
"20%": {
|
|
4289
4278
|
transform: "translate3d(0, 10px, 0) scaleY(0.985)"
|
|
4290
4279
|
},
|
|
@@ -4296,7 +4285,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4296
4285
|
opacity: 0,
|
|
4297
4286
|
transform: "translate3d(0, 2000px, 0) scaleY(3)"
|
|
4298
4287
|
}
|
|
4299
|
-
}), Ko = new
|
|
4288
|
+
}), Ko = new h("bounceOutUp", {
|
|
4300
4289
|
"20%": {
|
|
4301
4290
|
transform: "translate3d(0, -10px, 0) scaleY(0.985)"
|
|
4302
4291
|
},
|
|
@@ -4330,7 +4319,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4330
4319
|
animationFillMode: "both",
|
|
4331
4320
|
animationName: Do
|
|
4332
4321
|
}
|
|
4333
|
-
}),
|
|
4322
|
+
}), Eo = () => ({
|
|
4334
4323
|
"&.bounceOut": {
|
|
4335
4324
|
animationFillMode: "both",
|
|
4336
4325
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
@@ -4352,14 +4341,14 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4352
4341
|
animationFillMode: "both",
|
|
4353
4342
|
animationName: Ko
|
|
4354
4343
|
}
|
|
4355
|
-
}),
|
|
4344
|
+
}), ko = new h("fadeIn", {
|
|
4356
4345
|
from: {
|
|
4357
4346
|
opacity: 0
|
|
4358
4347
|
},
|
|
4359
4348
|
to: {
|
|
4360
4349
|
opacity: 1
|
|
4361
4350
|
}
|
|
4362
|
-
}), Xo = new
|
|
4351
|
+
}), Xo = new h("fadeInLeft", {
|
|
4363
4352
|
from: {
|
|
4364
4353
|
opacity: 0,
|
|
4365
4354
|
transform: "translate3d(-100%, 0, 0)"
|
|
@@ -4368,7 +4357,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4368
4357
|
opacity: 1,
|
|
4369
4358
|
transform: "translate3d(0, 0, 0)"
|
|
4370
4359
|
}
|
|
4371
|
-
}), Vo = new
|
|
4360
|
+
}), Vo = new h("fadeInRight", {
|
|
4372
4361
|
from: {
|
|
4373
4362
|
opacity: 0,
|
|
4374
4363
|
transform: "translate3d(100%, 0, 0)"
|
|
@@ -4377,7 +4366,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4377
4366
|
opacity: 1,
|
|
4378
4367
|
transform: "translate3d(0, 0, 0)"
|
|
4379
4368
|
}
|
|
4380
|
-
}), Go = new
|
|
4369
|
+
}), Go = new h("fadeInDown", {
|
|
4381
4370
|
from: {
|
|
4382
4371
|
opacity: 0,
|
|
4383
4372
|
transform: "translate3d(0, -100%, 0)"
|
|
@@ -4386,7 +4375,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4386
4375
|
opacity: 1,
|
|
4387
4376
|
transform: "translate3d(0, 0, 0)"
|
|
4388
4377
|
}
|
|
4389
|
-
}), Yo = new
|
|
4378
|
+
}), Yo = new h("fadeInUp", {
|
|
4390
4379
|
from: {
|
|
4391
4380
|
opacity: 0,
|
|
4392
4381
|
transform: "translate3d(0, 100%, 0)"
|
|
@@ -4395,7 +4384,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4395
4384
|
opacity: 1,
|
|
4396
4385
|
transform: "translate3d(0, 0, 0)"
|
|
4397
4386
|
}
|
|
4398
|
-
}), _o = new
|
|
4387
|
+
}), _o = new h("fadeInDownBig", {
|
|
4399
4388
|
from: {
|
|
4400
4389
|
opacity: 0,
|
|
4401
4390
|
transform: "translate3d(0, -2000px, 0)"
|
|
@@ -4404,7 +4393,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4404
4393
|
opacity: 1,
|
|
4405
4394
|
transform: "translate3d(0, 0, 0)"
|
|
4406
4395
|
}
|
|
4407
|
-
}), qo = new
|
|
4396
|
+
}), qo = new h("fadeInUpBig", {
|
|
4408
4397
|
from: {
|
|
4409
4398
|
opacity: 0,
|
|
4410
4399
|
transform: "translate3d(0, 2000px, 0)"
|
|
@@ -4413,7 +4402,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4413
4402
|
opacity: 1,
|
|
4414
4403
|
transform: "translate3d(0, 0, 0)"
|
|
4415
4404
|
}
|
|
4416
|
-
}), Zo = new
|
|
4405
|
+
}), Zo = new h("fadeInLeftBig", {
|
|
4417
4406
|
from: {
|
|
4418
4407
|
opacity: 0,
|
|
4419
4408
|
transform: "translate3d(-2000px, 0, 0)"
|
|
@@ -4422,7 +4411,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4422
4411
|
opacity: 1,
|
|
4423
4412
|
transform: "translate3d(0, 0, 0)"
|
|
4424
4413
|
}
|
|
4425
|
-
}), Qo = new
|
|
4414
|
+
}), Qo = new h("fadeInRightBig", {
|
|
4426
4415
|
from: {
|
|
4427
4416
|
opacity: 0,
|
|
4428
4417
|
transform: "translate3d(2000px, 0, 0)"
|
|
@@ -4431,7 +4420,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4431
4420
|
opacity: 1,
|
|
4432
4421
|
transform: "translate3d(0, 0, 0)"
|
|
4433
4422
|
}
|
|
4434
|
-
}), Jo = new
|
|
4423
|
+
}), Jo = new h("fadeInTopLeft", {
|
|
4435
4424
|
from: {
|
|
4436
4425
|
opacity: 0,
|
|
4437
4426
|
transform: "translate3d(-100%, -100%, 0)"
|
|
@@ -4440,7 +4429,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4440
4429
|
opacity: 1,
|
|
4441
4430
|
transform: "translate3d(0, 0, 0)"
|
|
4442
4431
|
}
|
|
4443
|
-
}), el = new
|
|
4432
|
+
}), el = new h("fadeInBottomRight", {
|
|
4444
4433
|
from: {
|
|
4445
4434
|
opacity: 0,
|
|
4446
4435
|
transform: "translate3d(100%, 100%, 0)"
|
|
@@ -4449,7 +4438,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4449
4438
|
opacity: 1,
|
|
4450
4439
|
transform: "translate3d(0, 0, 0)"
|
|
4451
4440
|
}
|
|
4452
|
-
}), tl = new
|
|
4441
|
+
}), tl = new h("fadeInTopRight", {
|
|
4453
4442
|
from: {
|
|
4454
4443
|
opacity: 0,
|
|
4455
4444
|
transform: "translate3d(100%, -100%, 0)"
|
|
@@ -4458,7 +4447,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4458
4447
|
opacity: 1,
|
|
4459
4448
|
transform: "translate3d(0, 0, 0)"
|
|
4460
4449
|
}
|
|
4461
|
-
}), nl = new
|
|
4450
|
+
}), nl = new h("fadeInBottomLeft", {
|
|
4462
4451
|
from: {
|
|
4463
4452
|
opacity: 0,
|
|
4464
4453
|
transform: "translate3d(-100%, 100%, 0)"
|
|
@@ -4467,14 +4456,14 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4467
4456
|
opacity: 1,
|
|
4468
4457
|
transform: "translate3d(0, 0, 0)"
|
|
4469
4458
|
}
|
|
4470
|
-
}), al = new
|
|
4459
|
+
}), al = new h("fadeOut", {
|
|
4471
4460
|
from: {
|
|
4472
4461
|
opacity: 1
|
|
4473
4462
|
},
|
|
4474
4463
|
to: {
|
|
4475
4464
|
opacity: 0
|
|
4476
4465
|
}
|
|
4477
|
-
}), ol = new
|
|
4466
|
+
}), ol = new h("fadeOutLeft", {
|
|
4478
4467
|
from: {
|
|
4479
4468
|
opacity: 1
|
|
4480
4469
|
},
|
|
@@ -4482,7 +4471,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4482
4471
|
opacity: 0,
|
|
4483
4472
|
transform: "translate3d(-100%, 0, 0)"
|
|
4484
4473
|
}
|
|
4485
|
-
}), ll = new
|
|
4474
|
+
}), ll = new h("fadeOutRight", {
|
|
4486
4475
|
from: {
|
|
4487
4476
|
opacity: 1
|
|
4488
4477
|
},
|
|
@@ -4490,7 +4479,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4490
4479
|
opacity: 0,
|
|
4491
4480
|
transform: "translate3d(100%, 0, 0)"
|
|
4492
4481
|
}
|
|
4493
|
-
}), il = new
|
|
4482
|
+
}), il = new h("fadeOutDown", {
|
|
4494
4483
|
from: {
|
|
4495
4484
|
opacity: 1
|
|
4496
4485
|
},
|
|
@@ -4498,7 +4487,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4498
4487
|
opacity: 0,
|
|
4499
4488
|
transform: "translate3d(0, 100%, 0)"
|
|
4500
4489
|
}
|
|
4501
|
-
}), rl = new
|
|
4490
|
+
}), rl = new h("fadeOutUp", {
|
|
4502
4491
|
from: {
|
|
4503
4492
|
opacity: 1
|
|
4504
4493
|
},
|
|
@@ -4506,7 +4495,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4506
4495
|
opacity: 0,
|
|
4507
4496
|
transform: "translate3d(0, -100%, 0)"
|
|
4508
4497
|
}
|
|
4509
|
-
}), sl = new
|
|
4498
|
+
}), sl = new h("fadeOutDownBig", {
|
|
4510
4499
|
from: {
|
|
4511
4500
|
opacity: 1
|
|
4512
4501
|
},
|
|
@@ -4514,7 +4503,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4514
4503
|
opacity: 0,
|
|
4515
4504
|
transform: "translate3d(0, 2000px, 0)"
|
|
4516
4505
|
}
|
|
4517
|
-
}), ul = new
|
|
4506
|
+
}), ul = new h("fadeOutUpBig", {
|
|
4518
4507
|
from: {
|
|
4519
4508
|
opacity: 1
|
|
4520
4509
|
},
|
|
@@ -4522,7 +4511,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4522
4511
|
opacity: 0,
|
|
4523
4512
|
transform: "translate3d(0, -2000px, 0)"
|
|
4524
4513
|
}
|
|
4525
|
-
}), cl = new
|
|
4514
|
+
}), cl = new h("fadeOutLeftBig", {
|
|
4526
4515
|
from: {
|
|
4527
4516
|
opacity: 1
|
|
4528
4517
|
},
|
|
@@ -4530,7 +4519,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4530
4519
|
opacity: 0,
|
|
4531
4520
|
transform: "translate3d(-2000px, 0, 0)"
|
|
4532
4521
|
}
|
|
4533
|
-
}), dl = new
|
|
4522
|
+
}), dl = new h("fadeOutRightBig", {
|
|
4534
4523
|
from: {
|
|
4535
4524
|
opacity: 1
|
|
4536
4525
|
},
|
|
@@ -4538,7 +4527,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4538
4527
|
opacity: 0,
|
|
4539
4528
|
transform: "translate3d(2000px, 0, 0)"
|
|
4540
4529
|
}
|
|
4541
|
-
}), ml = new
|
|
4530
|
+
}), ml = new h("fadeOutTopLeft", {
|
|
4542
4531
|
from: {
|
|
4543
4532
|
opacity: 1,
|
|
4544
4533
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -4547,7 +4536,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4547
4536
|
opacity: 0,
|
|
4548
4537
|
transform: "translate3d(-100%, -100%, 0)"
|
|
4549
4538
|
}
|
|
4550
|
-
}), fl = new
|
|
4539
|
+
}), fl = new h("fadeOutBottomRight", {
|
|
4551
4540
|
from: {
|
|
4552
4541
|
opacity: 1,
|
|
4553
4542
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -4556,7 +4545,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4556
4545
|
opacity: 0,
|
|
4557
4546
|
transform: "translate3d(100%, 100%, 0)"
|
|
4558
4547
|
}
|
|
4559
|
-
}), pl = new
|
|
4548
|
+
}), pl = new h("fadeOutTopRight", {
|
|
4560
4549
|
from: {
|
|
4561
4550
|
opacity: 1,
|
|
4562
4551
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -4565,7 +4554,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4565
4554
|
opacity: 0,
|
|
4566
4555
|
transform: "translate3d(100%, -100%, 0)"
|
|
4567
4556
|
}
|
|
4568
|
-
}), gl = new
|
|
4557
|
+
}), gl = new h("fadeOutBottomLeft", {
|
|
4569
4558
|
from: {
|
|
4570
4559
|
opacity: 1,
|
|
4571
4560
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -4577,7 +4566,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4577
4566
|
}), hl = () => ({
|
|
4578
4567
|
"&.fadeIn": {
|
|
4579
4568
|
animationFillMode: "both",
|
|
4580
|
-
animationName:
|
|
4569
|
+
animationName: ko
|
|
4581
4570
|
},
|
|
4582
4571
|
"&.fadeInLeft": {
|
|
4583
4572
|
animationFillMode: "both",
|
|
@@ -4680,7 +4669,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4680
4669
|
animationFillMode: "both",
|
|
4681
4670
|
animationName: gl
|
|
4682
4671
|
}
|
|
4683
|
-
}), bl = new
|
|
4672
|
+
}), bl = new h("flipInX", {
|
|
4684
4673
|
from: {
|
|
4685
4674
|
opacity: 0,
|
|
4686
4675
|
animationTimingFunction: "ease-in",
|
|
@@ -4700,7 +4689,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4700
4689
|
to: {
|
|
4701
4690
|
transform: "perspective(400px)"
|
|
4702
4691
|
}
|
|
4703
|
-
}), vl = new
|
|
4692
|
+
}), vl = new h("flipInY", {
|
|
4704
4693
|
from: {
|
|
4705
4694
|
opacity: 0,
|
|
4706
4695
|
animationTimingFunction: "ease-in",
|
|
@@ -4720,7 +4709,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4720
4709
|
to: {
|
|
4721
4710
|
transform: "perspective(400px)"
|
|
4722
4711
|
}
|
|
4723
|
-
}), Cl = new
|
|
4712
|
+
}), Cl = new h("flipOutX", {
|
|
4724
4713
|
from: {
|
|
4725
4714
|
transform: "perspective(400px)"
|
|
4726
4715
|
},
|
|
@@ -4732,7 +4721,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4732
4721
|
opacity: 0,
|
|
4733
4722
|
transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
|
|
4734
4723
|
}
|
|
4735
|
-
}), xl = new
|
|
4724
|
+
}), xl = new h("flipOutY", {
|
|
4736
4725
|
from: {
|
|
4737
4726
|
transform: "perspective(400px)"
|
|
4738
4727
|
},
|
|
@@ -4768,7 +4757,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4768
4757
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
4769
4758
|
animationName: xl
|
|
4770
4759
|
}
|
|
4771
|
-
}), Rl = new
|
|
4760
|
+
}), Rl = new h("lightSpeedInLeft", {
|
|
4772
4761
|
from: {
|
|
4773
4762
|
opacity: 0,
|
|
4774
4763
|
transform: "translate3d(-100%, 0, 0) skewX(30deg)"
|
|
@@ -4783,7 +4772,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4783
4772
|
to: {
|
|
4784
4773
|
transform: "translate3d(0, 0, 0)"
|
|
4785
4774
|
}
|
|
4786
|
-
}), $l = new
|
|
4775
|
+
}), $l = new h("lightSpeedInRight", {
|
|
4787
4776
|
from: {
|
|
4788
4777
|
opacity: 0,
|
|
4789
4778
|
transform: "translate3d(100%, 0, 0) skewX(-30deg)"
|
|
@@ -4798,7 +4787,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4798
4787
|
to: {
|
|
4799
4788
|
transform: "translate3d(0, 0, 0)"
|
|
4800
4789
|
}
|
|
4801
|
-
}), wl = new
|
|
4790
|
+
}), wl = new h("lightSpeedOutLeft", {
|
|
4802
4791
|
from: {
|
|
4803
4792
|
opacity: 1
|
|
4804
4793
|
},
|
|
@@ -4806,7 +4795,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4806
4795
|
opacity: 0,
|
|
4807
4796
|
transform: "translate3d(-100%, 0, 0) skewX(-30deg)"
|
|
4808
4797
|
}
|
|
4809
|
-
}), Ml = new
|
|
4798
|
+
}), Ml = new h("lightSpeedOutRight", {
|
|
4810
4799
|
from: {
|
|
4811
4800
|
opacity: 1
|
|
4812
4801
|
},
|
|
@@ -4814,7 +4803,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4814
4803
|
opacity: 0,
|
|
4815
4804
|
transform: "translate3d(100%, 0, 0) skewX(30deg)"
|
|
4816
4805
|
}
|
|
4817
|
-
}),
|
|
4806
|
+
}), Bl = () => ({
|
|
4818
4807
|
"&.lightSpeedInLeft": {
|
|
4819
4808
|
animationFillMode: "both",
|
|
4820
4809
|
animationTimingFunction: "ease-out",
|
|
@@ -4825,7 +4814,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4825
4814
|
animationTimingFunction: "ease-out",
|
|
4826
4815
|
animationName: $l
|
|
4827
4816
|
}
|
|
4828
|
-
}),
|
|
4817
|
+
}), Ol = () => ({
|
|
4829
4818
|
"&.lightSpeedOutLeft": {
|
|
4830
4819
|
animationFillMode: "both",
|
|
4831
4820
|
animationTimingFunction: "ease-in",
|
|
@@ -4836,7 +4825,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4836
4825
|
animationTimingFunction: "ease-in",
|
|
4837
4826
|
animationName: Ml
|
|
4838
4827
|
}
|
|
4839
|
-
}), Pl = new
|
|
4828
|
+
}), Pl = new h("rollIn", {
|
|
4840
4829
|
from: {
|
|
4841
4830
|
opacity: 0,
|
|
4842
4831
|
transform: "translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"
|
|
@@ -4845,7 +4834,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4845
4834
|
opacity: 1,
|
|
4846
4835
|
transform: "translate3d(0, 0, 0)"
|
|
4847
4836
|
}
|
|
4848
|
-
}), Tl = new
|
|
4837
|
+
}), Tl = new h("rollOut", {
|
|
4849
4838
|
from: {
|
|
4850
4839
|
opacity: 1
|
|
4851
4840
|
},
|
|
@@ -4863,7 +4852,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4863
4852
|
animationFillMode: "both",
|
|
4864
4853
|
animationName: Tl
|
|
4865
4854
|
}
|
|
4866
|
-
}), Ll = new
|
|
4855
|
+
}), Ll = new h("rotateIn", {
|
|
4867
4856
|
from: {
|
|
4868
4857
|
opacity: 0,
|
|
4869
4858
|
transform: "rotate3d(0, 0, 1, -200deg)"
|
|
@@ -4872,7 +4861,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4872
4861
|
opacity: 1,
|
|
4873
4862
|
transform: "translate3d(0, 0, 0)"
|
|
4874
4863
|
}
|
|
4875
|
-
}), Hl = new
|
|
4864
|
+
}), Hl = new h("rotateInDownLeft", {
|
|
4876
4865
|
from: {
|
|
4877
4866
|
opacity: 0,
|
|
4878
4867
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
@@ -4881,7 +4870,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4881
4870
|
opacity: 1,
|
|
4882
4871
|
transform: "translate3d(0, 0, 0)"
|
|
4883
4872
|
}
|
|
4884
|
-
}), Dl = new
|
|
4873
|
+
}), Dl = new h("rotateInDownRight", {
|
|
4885
4874
|
from: {
|
|
4886
4875
|
opacity: 0,
|
|
4887
4876
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
@@ -4890,7 +4879,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4890
4879
|
opacity: 1,
|
|
4891
4880
|
transform: "translate3d(0, 0, 0)"
|
|
4892
4881
|
}
|
|
4893
|
-
}), zl = new
|
|
4882
|
+
}), zl = new h("rotateInUpLeft", {
|
|
4894
4883
|
from: {
|
|
4895
4884
|
opacity: 0,
|
|
4896
4885
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
@@ -4899,7 +4888,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4899
4888
|
opacity: 1,
|
|
4900
4889
|
transform: "translate3d(0, 0, 0)"
|
|
4901
4890
|
}
|
|
4902
|
-
}), Wl = new
|
|
4891
|
+
}), Wl = new h("rotateInUpRight", {
|
|
4903
4892
|
from: {
|
|
4904
4893
|
opacity: 0,
|
|
4905
4894
|
transform: "rotate3d(0, 0, 1, -90deg)"
|
|
@@ -4908,7 +4897,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4908
4897
|
opacity: 1,
|
|
4909
4898
|
transform: "translate3d(0, 0, 0)"
|
|
4910
4899
|
}
|
|
4911
|
-
}), jl = new
|
|
4900
|
+
}), jl = new h("rotateOut", {
|
|
4912
4901
|
from: {
|
|
4913
4902
|
opacity: 1
|
|
4914
4903
|
},
|
|
@@ -4916,7 +4905,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4916
4905
|
opacity: 0,
|
|
4917
4906
|
transform: "rotate3d(0, 0, 1, 200deg)"
|
|
4918
4907
|
}
|
|
4919
|
-
}), Al = new
|
|
4908
|
+
}), Al = new h("rotateOutDownLeft", {
|
|
4920
4909
|
from: {
|
|
4921
4910
|
opacity: 1
|
|
4922
4911
|
},
|
|
@@ -4924,7 +4913,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4924
4913
|
opacity: 0,
|
|
4925
4914
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
4926
4915
|
}
|
|
4927
|
-
}), Kl = new
|
|
4916
|
+
}), Kl = new h("rotateOutDownRight", {
|
|
4928
4917
|
from: {
|
|
4929
4918
|
opacity: 1
|
|
4930
4919
|
},
|
|
@@ -4932,7 +4921,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4932
4921
|
opacity: 0,
|
|
4933
4922
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4934
4923
|
}
|
|
4935
|
-
}), Ul = new
|
|
4924
|
+
}), Ul = new h("rotateOutUpLeft", {
|
|
4936
4925
|
from: {
|
|
4937
4926
|
opacity: 1
|
|
4938
4927
|
},
|
|
@@ -4940,7 +4929,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4940
4929
|
opacity: 0,
|
|
4941
4930
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4942
4931
|
}
|
|
4943
|
-
}),
|
|
4932
|
+
}), El = new h("rotateOutUpRight", {
|
|
4944
4933
|
from: {
|
|
4945
4934
|
opacity: 1
|
|
4946
4935
|
},
|
|
@@ -4948,7 +4937,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4948
4937
|
opacity: 0,
|
|
4949
4938
|
transform: "rotate3d(0, 0, 1, 90deg)"
|
|
4950
4939
|
}
|
|
4951
|
-
}),
|
|
4940
|
+
}), kl = () => ({
|
|
4952
4941
|
"&.rotateIn": {
|
|
4953
4942
|
animationFillMode: "both",
|
|
4954
4943
|
transformOrigin: "center",
|
|
@@ -4998,9 +4987,9 @@ const Ni = /* @__PURE__ */ X({
|
|
|
4998
4987
|
"&.rotateOutUpRight": {
|
|
4999
4988
|
animationFillMode: "both",
|
|
5000
4989
|
transformOrigin: "right bottom",
|
|
5001
|
-
animationName:
|
|
4990
|
+
animationName: El
|
|
5002
4991
|
}
|
|
5003
|
-
}), Vl = new
|
|
4992
|
+
}), Vl = new h("slideInDown", {
|
|
5004
4993
|
from: {
|
|
5005
4994
|
transform: "translate3d(0, -100%, 0)",
|
|
5006
4995
|
visibility: "visible"
|
|
@@ -5008,7 +4997,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5008
4997
|
to: {
|
|
5009
4998
|
transform: "translate3d(0, 0, 0)"
|
|
5010
4999
|
}
|
|
5011
|
-
}), Gl = new
|
|
5000
|
+
}), Gl = new h("slideInLeft", {
|
|
5012
5001
|
from: {
|
|
5013
5002
|
transform: "translate3d(-100%, 0, 0)",
|
|
5014
5003
|
visibility: "visible"
|
|
@@ -5016,7 +5005,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5016
5005
|
to: {
|
|
5017
5006
|
transform: "translate3d(0, 0, 0)"
|
|
5018
5007
|
}
|
|
5019
|
-
}), Yl = new
|
|
5008
|
+
}), Yl = new h("slideInRight", {
|
|
5020
5009
|
from: {
|
|
5021
5010
|
transform: "translate3d(100%, 0, 0)",
|
|
5022
5011
|
visibility: "visible"
|
|
@@ -5024,7 +5013,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5024
5013
|
to: {
|
|
5025
5014
|
transform: "translate3d(0, 0, 0)"
|
|
5026
5015
|
}
|
|
5027
|
-
}), _l = new
|
|
5016
|
+
}), _l = new h("slideInUp", {
|
|
5028
5017
|
from: {
|
|
5029
5018
|
transform: "translate3d(0, 100%, 0)",
|
|
5030
5019
|
visibility: "visible"
|
|
@@ -5032,7 +5021,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5032
5021
|
to: {
|
|
5033
5022
|
transform: "translate3d(0, 0, 0)"
|
|
5034
5023
|
}
|
|
5035
|
-
}), ql = new
|
|
5024
|
+
}), ql = new h("slideOutDown", {
|
|
5036
5025
|
from: {
|
|
5037
5026
|
transform: "translate3d(0, 0, 0)"
|
|
5038
5027
|
},
|
|
@@ -5040,7 +5029,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5040
5029
|
transform: "translate3d(0, 100%, 0)",
|
|
5041
5030
|
visibility: "hidden"
|
|
5042
5031
|
}
|
|
5043
|
-
}), Zl = new
|
|
5032
|
+
}), Zl = new h("slideOutLeft", {
|
|
5044
5033
|
from: {
|
|
5045
5034
|
transform: "translate3d(0, 0, 0)"
|
|
5046
5035
|
},
|
|
@@ -5048,7 +5037,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5048
5037
|
transform: "translate3d(-100%, 0, 0)",
|
|
5049
5038
|
visibility: "hidden"
|
|
5050
5039
|
}
|
|
5051
|
-
}), Ql = new
|
|
5040
|
+
}), Ql = new h("slideOutRight", {
|
|
5052
5041
|
from: {
|
|
5053
5042
|
transform: "translate3d(0, 0, 0)"
|
|
5054
5043
|
},
|
|
@@ -5056,7 +5045,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5056
5045
|
transform: "translate3d(100%, 0, 0)",
|
|
5057
5046
|
visibility: "hidden"
|
|
5058
5047
|
}
|
|
5059
|
-
}), Jl = new
|
|
5048
|
+
}), Jl = new h("slideOutUp", {
|
|
5060
5049
|
from: {
|
|
5061
5050
|
transform: "translate3d(0, 0, 0)"
|
|
5062
5051
|
},
|
|
@@ -5098,7 +5087,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5098
5087
|
animationFillMode: "both",
|
|
5099
5088
|
animationName: Jl
|
|
5100
5089
|
}
|
|
5101
|
-
}), ni = new
|
|
5090
|
+
}), ni = new h("zoomIn", {
|
|
5102
5091
|
from: {
|
|
5103
5092
|
opacity: 0,
|
|
5104
5093
|
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
@@ -5106,7 +5095,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5106
5095
|
"50%": {
|
|
5107
5096
|
opacity: 1
|
|
5108
5097
|
}
|
|
5109
|
-
}), ai = new
|
|
5098
|
+
}), ai = new h("zoomInDown", {
|
|
5110
5099
|
from: {
|
|
5111
5100
|
opacity: 0,
|
|
5112
5101
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",
|
|
@@ -5117,7 +5106,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5117
5106
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
5118
5107
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
5119
5108
|
}
|
|
5120
|
-
}), oi = new
|
|
5109
|
+
}), oi = new h("zoomInLeft", {
|
|
5121
5110
|
from: {
|
|
5122
5111
|
opacity: 0,
|
|
5123
5112
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",
|
|
@@ -5128,7 +5117,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5128
5117
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",
|
|
5129
5118
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
5130
5119
|
}
|
|
5131
|
-
}), li = new
|
|
5120
|
+
}), li = new h("zoomInRight", {
|
|
5132
5121
|
from: {
|
|
5133
5122
|
opacity: 0,
|
|
5134
5123
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",
|
|
@@ -5139,7 +5128,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5139
5128
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",
|
|
5140
5129
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
5141
5130
|
}
|
|
5142
|
-
}), ii = new
|
|
5131
|
+
}), ii = new h("zoomInUp", {
|
|
5143
5132
|
from: {
|
|
5144
5133
|
opacity: 0,
|
|
5145
5134
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",
|
|
@@ -5150,7 +5139,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5150
5139
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
5151
5140
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
5152
5141
|
}
|
|
5153
|
-
}), ri = new
|
|
5142
|
+
}), ri = new h("zoomOut", {
|
|
5154
5143
|
from: {
|
|
5155
5144
|
opacity: 1
|
|
5156
5145
|
},
|
|
@@ -5161,7 +5150,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5161
5150
|
to: {
|
|
5162
5151
|
opacity: 0
|
|
5163
5152
|
}
|
|
5164
|
-
}), si = new
|
|
5153
|
+
}), si = new h("zoomOutDown", {
|
|
5165
5154
|
"40%": {
|
|
5166
5155
|
opacity: 1,
|
|
5167
5156
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
@@ -5172,7 +5161,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5172
5161
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
|
|
5173
5162
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
5174
5163
|
}
|
|
5175
|
-
}), ui = new
|
|
5164
|
+
}), ui = new h("zoomOutLeft", {
|
|
5176
5165
|
"40%": {
|
|
5177
5166
|
opacity: 1,
|
|
5178
5167
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
|
|
@@ -5181,7 +5170,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5181
5170
|
opacity: 0,
|
|
5182
5171
|
transform: "scale(0.1) translate3d(-2000px, 0, 0)"
|
|
5183
5172
|
}
|
|
5184
|
-
}), ci = new
|
|
5173
|
+
}), ci = new h("zoomOutRight", {
|
|
5185
5174
|
"40%": {
|
|
5186
5175
|
opacity: 1,
|
|
5187
5176
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
|
|
@@ -5190,7 +5179,7 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5190
5179
|
opacity: 0,
|
|
5191
5180
|
transform: "scale(0.1) translate3d(2000px, 0, 0)"
|
|
5192
5181
|
}
|
|
5193
|
-
}), di = new
|
|
5182
|
+
}), di = new h("zoomOutUp", {
|
|
5194
5183
|
"40%": {
|
|
5195
5184
|
opacity: 1,
|
|
5196
5185
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
@@ -5256,8 +5245,8 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5256
5245
|
...Uo(),
|
|
5257
5246
|
...hl(),
|
|
5258
5247
|
...Il(),
|
|
5259
|
-
...
|
|
5260
|
-
...
|
|
5248
|
+
...Bl(),
|
|
5249
|
+
...kl(),
|
|
5261
5250
|
...Fl(),
|
|
5262
5251
|
...mi(),
|
|
5263
5252
|
...ei()
|
|
@@ -5267,10 +5256,10 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5267
5256
|
background: "transparent",
|
|
5268
5257
|
animationDuration: ".3s !important",
|
|
5269
5258
|
...To(),
|
|
5270
|
-
...
|
|
5259
|
+
...Eo(),
|
|
5271
5260
|
...yl(),
|
|
5272
5261
|
...Sl(),
|
|
5273
|
-
...
|
|
5262
|
+
...Ol(),
|
|
5274
5263
|
...Xl(),
|
|
5275
5264
|
...Nl(),
|
|
5276
5265
|
...fi(),
|
|
@@ -5279,12 +5268,12 @@ const Ni = /* @__PURE__ */ X({
|
|
|
5279
5268
|
}
|
|
5280
5269
|
});
|
|
5281
5270
|
function gi(e) {
|
|
5282
|
-
return
|
|
5283
|
-
const t =
|
|
5271
|
+
return xe("LayoutPageTranstion", (n) => {
|
|
5272
|
+
const t = et(n);
|
|
5284
5273
|
return [pi(t)];
|
|
5285
5274
|
}, e);
|
|
5286
5275
|
}
|
|
5287
|
-
const
|
|
5276
|
+
const Hi = /* @__PURE__ */ G({
|
|
5288
5277
|
name: "PageTransition",
|
|
5289
5278
|
props: {
|
|
5290
5279
|
disabled: {
|
|
@@ -5310,155 +5299,160 @@ const Li = /* @__PURE__ */ X({
|
|
|
5310
5299
|
}), {
|
|
5311
5300
|
wrapSSR: a,
|
|
5312
5301
|
hashId: r
|
|
5313
|
-
} = gi(t), l = (
|
|
5314
|
-
if (
|
|
5315
|
-
return
|
|
5316
|
-
let u =
|
|
5317
|
-
return u = u % 2 === 1 ? u - 1 : u + 1,
|
|
5318
|
-
}, i = (
|
|
5319
|
-
const
|
|
5320
|
-
if (
|
|
5302
|
+
} = gi(t), l = (c, g) => {
|
|
5303
|
+
if (c.length === 0 || c === "x" || c === "y")
|
|
5304
|
+
return c;
|
|
5305
|
+
let u = g.indexOf(c);
|
|
5306
|
+
return u = u % 2 === 1 ? u - 1 : u + 1, g[u];
|
|
5307
|
+
}, i = (c) => {
|
|
5308
|
+
const g = xo.preset.find((I) => e.name === I.name);
|
|
5309
|
+
if (g === void 0)
|
|
5321
5310
|
return "";
|
|
5322
5311
|
let u = "";
|
|
5323
|
-
e.direction === void 0 ? u =
|
|
5324
|
-
const
|
|
5325
|
-
return
|
|
5326
|
-
},
|
|
5327
|
-
return () => e.disabled ? n.default?.() : a(o(
|
|
5328
|
-
enterActiveClass:
|
|
5329
|
-
leaveActiveClass:
|
|
5312
|
+
e.direction === void 0 ? u = g.directions[0] : u = g.directions.find((I) => I === e.direction) || "", u = u === void 0 || u === "default" ? "" : u, u !== "" && (u = c && e.reverse ? l(u, g.directions) : u, u = u[0].toUpperCase() + u.substring(1));
|
|
5313
|
+
const p = c ? "Out" : "In";
|
|
5314
|
+
return g.name + p + u;
|
|
5315
|
+
}, m = v(() => [i(!1), `${t}-enter`, r.value].join(" ")), s = v(() => [i(!0), `${t}-leave`, r.value].join(" "));
|
|
5316
|
+
return () => e.disabled ? n.default?.() : a(o(ln, {
|
|
5317
|
+
enterActiveClass: m.value,
|
|
5318
|
+
leaveActiveClass: s.value
|
|
5330
5319
|
}, {
|
|
5331
5320
|
default: () => [n.default?.()]
|
|
5332
5321
|
}));
|
|
5333
5322
|
}
|
|
5334
5323
|
});
|
|
5335
|
-
function
|
|
5336
|
-
const
|
|
5324
|
+
function Di() {
|
|
5325
|
+
const e = Wn(), n = Le(), { tabsRouteRef: t } = Gt();
|
|
5337
5326
|
return {
|
|
5338
5327
|
tabsRouter: {
|
|
5339
|
-
clean: () =>
|
|
5340
|
-
close: (
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5328
|
+
clean: () => t.value?.clean(),
|
|
5329
|
+
close: (a) => t.value?.close(a?.name || e.name, a?.callback),
|
|
5330
|
+
update: (a, r) => {
|
|
5331
|
+
t.value?.update(r || n.currentRoute.value, {
|
|
5332
|
+
type: "merge",
|
|
5333
|
+
params: a
|
|
5334
|
+
});
|
|
5335
|
+
}
|
|
5345
5336
|
}
|
|
5346
5337
|
};
|
|
5347
5338
|
}
|
|
5348
|
-
function
|
|
5349
|
-
const n = Le(), t = e?.defaultOpen ?? !0, a = e?.autoClose ?? !0, r = n.getRoutes(), l =
|
|
5339
|
+
function zi(e) {
|
|
5340
|
+
const n = Le(), t = e?.defaultOpen ?? !0, a = e?.autoClose ?? !0, r = n.getRoutes(), l = Q([]), i = Me({
|
|
5350
5341
|
menuMap: /* @__PURE__ */ new Map(),
|
|
5351
5342
|
flatMenus: [],
|
|
5352
5343
|
names: []
|
|
5353
|
-
}),
|
|
5344
|
+
}), m = Me({
|
|
5354
5345
|
openKeys: [],
|
|
5355
5346
|
selectedKeys: []
|
|
5356
|
-
}),
|
|
5357
|
-
function
|
|
5358
|
-
for (const
|
|
5359
|
-
|
|
5347
|
+
}), s = v(() => n.currentRoute.value), c = v(() => e?.currentName?.value ?? s.value?.name);
|
|
5348
|
+
function g(f, x = [], C = /* @__PURE__ */ new Map()) {
|
|
5349
|
+
for (const P of f)
|
|
5350
|
+
x.push(_e(P)), C.set(P.name, _e(P)), P.children?.length && g(P.children, x, C);
|
|
5360
5351
|
return {
|
|
5361
|
-
flatMenus:
|
|
5362
|
-
map:
|
|
5352
|
+
flatMenus: x,
|
|
5353
|
+
map: C
|
|
5363
5354
|
};
|
|
5364
5355
|
}
|
|
5365
|
-
const
|
|
5366
|
-
const
|
|
5367
|
-
l.value =
|
|
5356
|
+
const u = (f) => {
|
|
5357
|
+
const x = na(aa(f));
|
|
5358
|
+
l.value = Mt(x.menuData), i.menuMap = x.menuMap, i.flatMenus = x.flatMenus, i.names = x.flatMenus.map((C) => C.name);
|
|
5368
5359
|
};
|
|
5369
|
-
e?.menuData &&
|
|
5370
|
-
|
|
5371
|
-
|
|
5360
|
+
e?.menuData && k(() => ct(e.menuData) ? e.menuData.value : e.menuData, (f) => {
|
|
5361
|
+
u(f || []);
|
|
5362
|
+
}, { deep: !0 }), u(e?.menuData ? ct(e.menuData) ? e.menuData.value : e.menuData : r);
|
|
5363
|
+
const p = v(() => At({
|
|
5372
5364
|
menuMap: i.menuMap,
|
|
5373
5365
|
flatMenus: i.flatMenus
|
|
5374
|
-
},
|
|
5375
|
-
function
|
|
5376
|
-
const
|
|
5366
|
+
}, c.value)), I = v(() => {
|
|
5367
|
+
function f(C) {
|
|
5368
|
+
const P = at(C.meta?.hideChildrenInMenu ? [] : C.children || []);
|
|
5377
5369
|
return {
|
|
5378
|
-
name:
|
|
5379
|
-
icon:
|
|
5380
|
-
path:
|
|
5381
|
-
breadcrumbName:
|
|
5382
|
-
children:
|
|
5370
|
+
name: C.name,
|
|
5371
|
+
icon: C.meta?.icon || "",
|
|
5372
|
+
path: C.redirect || P || C.path || "",
|
|
5373
|
+
breadcrumbName: C.meta?.title || "",
|
|
5374
|
+
children: C.children && C.children?.length > 1 ? C.children?.map(($) => f($)).filter(($) => $.breadcrumbName) : []
|
|
5383
5375
|
};
|
|
5384
5376
|
}
|
|
5385
|
-
const
|
|
5386
|
-
return
|
|
5387
|
-
}),
|
|
5388
|
-
const { flatMenus:
|
|
5389
|
-
i.flatMenus =
|
|
5390
|
-
},
|
|
5391
|
-
|
|
5377
|
+
const x = p.value.map((C) => f(C)).filter((C) => C.breadcrumbName);
|
|
5378
|
+
return sa(x, "breadcrumbName");
|
|
5379
|
+
}), M = () => {
|
|
5380
|
+
const { flatMenus: f, map: x } = g(Qe(l));
|
|
5381
|
+
i.flatMenus = f, i.menuMap = x, i.names = f.map((C) => C.name);
|
|
5382
|
+
}, y = () => {
|
|
5383
|
+
m.openKeys = p.value.filter((f) => f.name !== c.value).map((f) => f.name);
|
|
5392
5384
|
};
|
|
5393
|
-
return
|
|
5394
|
-
|
|
5395
|
-
}, { immediate: !0, deep: !0 }),
|
|
5396
|
-
t &&
|
|
5397
|
-
}),
|
|
5398
|
-
...
|
|
5399
|
-
syncMatchedKeys: (
|
|
5385
|
+
return k(() => s.value, (f) => {
|
|
5386
|
+
f && (m.selectedKeys = p.value.map((x) => x.name), a && y());
|
|
5387
|
+
}, { immediate: !0, deep: !0 }), Ze(() => {
|
|
5388
|
+
t && y();
|
|
5389
|
+
}), Sa({
|
|
5390
|
+
...Ee(i),
|
|
5391
|
+
syncMatchedKeys: (f = 60) => {
|
|
5400
5392
|
setTimeout(() => {
|
|
5401
|
-
|
|
5402
|
-
},
|
|
5393
|
+
m.selectedKeys = p.value.map((x) => x.name), y();
|
|
5394
|
+
}, f);
|
|
5403
5395
|
},
|
|
5404
|
-
update:
|
|
5396
|
+
update: M,
|
|
5405
5397
|
menuData: l,
|
|
5406
|
-
matchedMenu:
|
|
5407
|
-
matchedKeys:
|
|
5398
|
+
matchedMenu: p,
|
|
5399
|
+
matchedKeys: m
|
|
5408
5400
|
}), {
|
|
5409
|
-
update:
|
|
5401
|
+
update: M,
|
|
5410
5402
|
menuState: i,
|
|
5411
5403
|
menuData: l,
|
|
5412
|
-
matchedKeys:
|
|
5413
|
-
matchedMenu:
|
|
5414
|
-
breadcrumbRouters:
|
|
5404
|
+
matchedKeys: m,
|
|
5405
|
+
matchedMenu: p,
|
|
5406
|
+
breadcrumbRouters: I
|
|
5415
5407
|
};
|
|
5416
5408
|
}
|
|
5417
|
-
function
|
|
5418
|
-
const n =
|
|
5409
|
+
function Wi(e) {
|
|
5410
|
+
const n = Q(e ?? "system"), t = Ot();
|
|
5419
5411
|
return {
|
|
5420
5412
|
theme: n,
|
|
5421
5413
|
isDark: t
|
|
5422
5414
|
};
|
|
5423
5415
|
}
|
|
5424
5416
|
export {
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5417
|
+
Wt as GBaseMenu,
|
|
5418
|
+
Hi as GPageTransition,
|
|
5419
|
+
Li as GProAppPage,
|
|
5420
|
+
Fi as GProLayout,
|
|
5421
|
+
Ni as GProPageContainer,
|
|
5422
|
+
$a as GlobalFooter,
|
|
5431
5423
|
Pi as LazyIcon,
|
|
5432
|
-
|
|
5424
|
+
xa as SiderMenuWrapper,
|
|
5433
5425
|
xo as animateSetting,
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
ia as flatMap,
|
|
5426
|
+
Qn as baseMenuProps,
|
|
5427
|
+
Yn as calculateCss,
|
|
5428
|
+
aa as clearMenuItem,
|
|
5429
|
+
gt as convertCSSPropertiesToString,
|
|
5430
|
+
_n as cssValueToNumber,
|
|
5431
|
+
Xn as defaultContextKey,
|
|
5432
|
+
X as defaultSettings,
|
|
5433
|
+
Ht as extractCSSVariableName,
|
|
5434
|
+
ra as filterTree,
|
|
5435
|
+
oa as flatMap,
|
|
5445
5436
|
se as getCssVarOrUnit,
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5437
|
+
Gn as getCssVarValue,
|
|
5438
|
+
Lt as getCssVariableValue,
|
|
5439
|
+
at as getLastPath,
|
|
5440
|
+
At as getMatchedList,
|
|
5441
|
+
na as getMenuData,
|
|
5442
|
+
la as getMenuFirstChildren,
|
|
5443
|
+
ia as getParentKeys,
|
|
5444
|
+
Ie as getTokenLayoutTheme,
|
|
5445
|
+
Ti as handlePathKey,
|
|
5446
|
+
Ue as iconStyle,
|
|
5447
|
+
qn as layout,
|
|
5448
|
+
Vn as provideProLayoutContext,
|
|
5449
|
+
La as provideProLayoutExposeContext,
|
|
5450
|
+
sa as removeDuplicatesByName,
|
|
5451
|
+
Di as useLayoutExpose,
|
|
5452
|
+
zi as useLayoutMenu,
|
|
5453
|
+
Ia as usePageContent,
|
|
5454
|
+
q as useProLayoutContext,
|
|
5455
|
+
Gt as useProLayoutExposeContext,
|
|
5456
|
+
rt as useProLayoutMenuContext,
|
|
5457
|
+
Wi as useThemeState
|
|
5464
5458
|
};
|