@gx-design-vue/pro-layout 0.1.0-beta.201 → 0.1.0-beta.203
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/components/BaseMenu/index.d.ts +1 -1
- package/dist/components/PageContainer/index.d.ts +27 -14
- package/dist/components/PageContainer/props.d.ts +8 -0
- package/dist/hooks/layout/use-page-content.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/pro-layout.js +1053 -1019
- package/dist/pro-layout.umd.cjs +7 -7
- package/dist/types/RouteTypings.d.ts +2 -0
- package/package.json +1 -1
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.202
|
|
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: 2025-12-
|
|
8
|
+
* Date Created: 2025-12-26
|
|
9
9
|
* Homepage:
|
|
10
10
|
* Contact: gx12358@gmail.com
|
|
11
11
|
*/
|
|
12
|
-
import { defineComponent as
|
|
13
|
-
import { createFromIconfontCN as Ze, MenuUnfoldOutlined as un, MenuFoldOutlined as cn, GithubOutlined as dn, HomeOutlined as mn, CloseOutlined as Ke, FullscreenExitOutlined as St, FullscreenOutlined as
|
|
14
|
-
import { useState as
|
|
15
|
-
import { unit as z, useProConfigContext as
|
|
16
|
-
import { isString as Ve, getPrefixCls as ae, classNames as O, isUrl as
|
|
12
|
+
import { defineComponent as X, computed as v, watch as U, createVNode as o, mergeProps as oe, isVNode as ve, cloneVNode as tn, resolveComponent as nn, ref as q, toRefs as Xe, unref as Ae, Fragment as G, reactive as we, toRaw as an, inject as on, onMounted as It, onUnmounted as ln, Teleport as rn, Transition as sn, isRef as st } from "vue";
|
|
13
|
+
import { createFromIconfontCN as Ze, MenuUnfoldOutlined as un, MenuFoldOutlined as cn, GithubOutlined as dn, HomeOutlined as mn, CloseOutlined as Ke, FullscreenExitOutlined as St, FullscreenOutlined as $t, ReloadOutlined as Rt, ExportOutlined as fn, VerticalRightOutlined as pn, VerticalLeftOutlined as gn, VerticalAlignMiddleOutlined as hn, SwapOutlined as yn, DownOutlined as bn } from "@ant-design/icons-vue";
|
|
14
|
+
import { useState as Me, useMemo as Oe, useMediaQuery as vn, useSlotsProps as Cn, onMountedOrActivated as xn } from "@gx-design-vue/pro-hooks";
|
|
15
|
+
import { unit as z, useProConfigContext as Le, useProStyle as le, Keyframe as h, useStyle as Ce, mergeToken as Qe, GProConfigProvider as In, setAlpha as Sn, getAlphaColor as $n } from "@gx-design-vue/pro-provider";
|
|
16
|
+
import { isString as Ve, getPrefixCls as ae, classNames as O, isUrl as ge, isImg as Ue, getLevelData as wt, convertValueBoolean as Rn, isArray as wn, getSlotVNode as ie, arrayRepeat as Mn, isBoolean as re, merge as $e, isNumber as ut, deepMerge as qe, getRandomNumber as ct, getSlot as Be, getSlotsProps as pe, isFunction as On, isBrowser as Bn } from "@gx-design-vue/pro-utils";
|
|
17
17
|
import { useStyleTag as Mt, useMouse as Pn, watchThrottled as Tn, useElementBounding as Fn, useLocalStorage as Ln, useThrottleFn as Nn, useDark as Ot } from "@vueuse/core";
|
|
18
|
-
import { Menu as
|
|
19
|
-
import { pick as
|
|
20
|
-
import { useRouter as
|
|
18
|
+
import { Menu as ye, Layout as Pe, ConfigProvider as Je, Spin as Bt, Drawer as Hn, LayoutFooter as Dn, Breadcrumb as zn, Tabs as Pt, Dropdown as dt, Card as Wn } from "ant-design-vue";
|
|
19
|
+
import { pick as Te, omit as be, cloneDeep as Fe } from "lodash-es";
|
|
20
|
+
import { useRouter as Ne, RouterLink as mt, useRoute as jn } from "vue-router";
|
|
21
21
|
import { useContext as et, useThemeContext as Tt, ThemeContext as An } from "@gx-design-vue/context";
|
|
22
22
|
import { useProAppContext as Ft, proAppProps as Kn, proAppSlots as Un, GProApp as kn } from "@gx-design-vue/pro-app";
|
|
23
23
|
import { GIcon as ke } from "@gx-design-vue/icon";
|
|
24
24
|
import { GPorWaterMark as En } from "@gx-design-vue/pro-watermark";
|
|
25
25
|
import { GScrollbars as Xn } from "@gx-design-vue/scrollbar";
|
|
26
|
-
function
|
|
26
|
+
function xe(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 k = {
|
|
34
34
|
// 布局模式 side/mix/simple/wide/top
|
|
35
35
|
layout: "mix",
|
|
36
36
|
// 标题
|
|
@@ -58,7 +58,7 @@ const E = {
|
|
|
58
58
|
}
|
|
59
59
|
}, Vn = ["styles", "waterMarkProps", "classNames", "openKeys", "selectedKeys", "disableMobile", "shortcutKey", "pageContainer"], {
|
|
60
60
|
provideContext: Gn,
|
|
61
|
-
useInjectContext:
|
|
61
|
+
useInjectContext: Z
|
|
62
62
|
} = et("pro-layout");
|
|
63
63
|
function Yn(e) {
|
|
64
64
|
const n = document.documentElement;
|
|
@@ -71,7 +71,7 @@ function Nt(e) {
|
|
|
71
71
|
const n = /var\((--[\w-]+)\)/, t = e.match(n);
|
|
72
72
|
return t ? t[1] : (/^--[\w-]+$/.test(e), e);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function se(e) {
|
|
75
75
|
return e || e === 0 ? Ve(e) && e.includes("--") ? `var(${e})` : z(e) : "";
|
|
76
76
|
}
|
|
77
77
|
function _n(e, n) {
|
|
@@ -122,35 +122,35 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
122
122
|
}`, tt = {
|
|
123
123
|
layout: {
|
|
124
124
|
type: String,
|
|
125
|
-
default:
|
|
125
|
+
default: k.layout
|
|
126
126
|
},
|
|
127
127
|
wideWidth: {
|
|
128
128
|
type: [Number, String],
|
|
129
|
-
default:
|
|
129
|
+
default: k.wideWidth
|
|
130
130
|
},
|
|
131
131
|
splitMenus: {
|
|
132
132
|
type: Boolean,
|
|
133
|
-
default:
|
|
133
|
+
default: k.splitMenus
|
|
134
134
|
},
|
|
135
135
|
fixedTabsBar: {
|
|
136
136
|
type: Boolean,
|
|
137
|
-
default:
|
|
137
|
+
default: k.fixedTabsBar
|
|
138
138
|
},
|
|
139
139
|
fixedHeader: {
|
|
140
140
|
type: Boolean,
|
|
141
|
-
default:
|
|
141
|
+
default: k.fixedHeader
|
|
142
142
|
},
|
|
143
143
|
fixSiderbar: {
|
|
144
144
|
type: Boolean,
|
|
145
|
-
default:
|
|
145
|
+
default: k.fixSiderbar
|
|
146
146
|
},
|
|
147
147
|
showTabsBar: {
|
|
148
148
|
type: Boolean,
|
|
149
|
-
default:
|
|
149
|
+
default: k.showTabsBar
|
|
150
150
|
},
|
|
151
151
|
headerHeight: {
|
|
152
152
|
type: [Number, String],
|
|
153
|
-
default:
|
|
153
|
+
default: k.headerHeight
|
|
154
154
|
},
|
|
155
155
|
siderWidth: {
|
|
156
156
|
type: [Number, String],
|
|
@@ -158,15 +158,15 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
158
158
|
},
|
|
159
159
|
title: {
|
|
160
160
|
type: String,
|
|
161
|
-
default:
|
|
161
|
+
default: k.title
|
|
162
162
|
},
|
|
163
163
|
iconfontUrl: {
|
|
164
164
|
type: String,
|
|
165
|
-
default:
|
|
165
|
+
default: k.iconfontUrl
|
|
166
166
|
},
|
|
167
167
|
animate: {
|
|
168
168
|
type: Object,
|
|
169
|
-
default:
|
|
169
|
+
default: k.animate
|
|
170
170
|
}
|
|
171
171
|
}, Qn = {
|
|
172
172
|
mode: "inline",
|
|
@@ -204,7 +204,7 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
204
204
|
}
|
|
205
205
|
}, Jn = {
|
|
206
206
|
...Ht,
|
|
207
|
-
...
|
|
207
|
+
...Te(Ge, ["menuItemRender", "subMenuItemRender", "menuTextRender"]),
|
|
208
208
|
class: {
|
|
209
209
|
type: String
|
|
210
210
|
},
|
|
@@ -445,14 +445,14 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
|
-
},
|
|
448
|
+
}, Bi = (e) => {
|
|
449
449
|
const {
|
|
450
450
|
icon: n,
|
|
451
451
|
iconPrefix: t = "",
|
|
452
452
|
iconfontUrl: a,
|
|
453
453
|
hashId: l,
|
|
454
454
|
style: i
|
|
455
|
-
} = e, r = O(e.className, t, l),
|
|
455
|
+
} = e, r = O(e.className, t, l), g = o("span", {
|
|
456
456
|
class: O(r),
|
|
457
457
|
style: {
|
|
458
458
|
display: "none"
|
|
@@ -460,18 +460,18 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
460
460
|
}, [o("span", {
|
|
461
461
|
class: "anticon"
|
|
462
462
|
}, null)]);
|
|
463
|
-
if (!n) return
|
|
464
|
-
const
|
|
465
|
-
src:
|
|
463
|
+
if (!n) return g;
|
|
464
|
+
const u = (p) => o("img", {
|
|
465
|
+
src: p,
|
|
466
466
|
alt: "icon",
|
|
467
467
|
class: O(e.className ? `${e.className}-image` : "", r),
|
|
468
468
|
style: i
|
|
469
|
-
}, null), d = (
|
|
470
|
-
const
|
|
471
|
-
scriptUrl: a ||
|
|
469
|
+
}, null), d = (p) => {
|
|
470
|
+
const C = Ze({
|
|
471
|
+
scriptUrl: a || k.iconfontUrl
|
|
472
472
|
});
|
|
473
|
-
return a ? o(
|
|
474
|
-
type:
|
|
473
|
+
return a ? o(C, {
|
|
474
|
+
type: p,
|
|
475
475
|
class: r,
|
|
476
476
|
style: i
|
|
477
477
|
}, null) : o("span", {
|
|
@@ -481,16 +481,16 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
481
481
|
}, m = () => tn(n, {
|
|
482
482
|
class: r,
|
|
483
483
|
style: i
|
|
484
|
-
}),
|
|
485
|
-
if (
|
|
486
|
-
if (t === "iconfont") return d(
|
|
487
|
-
const
|
|
488
|
-
return typeof
|
|
484
|
+
}), c = (p) => {
|
|
485
|
+
if (ge(p) || Ue(p)) return u(p);
|
|
486
|
+
if (t === "iconfont") return d(p);
|
|
487
|
+
const C = nn(p);
|
|
488
|
+
return typeof C == "function" && o(C, null, null) || g;
|
|
489
489
|
};
|
|
490
|
-
return typeof n == "string" ? n !== "" ?
|
|
490
|
+
return typeof n == "string" ? n !== "" ? c(n) : g : ve(n) ? m() : g;
|
|
491
491
|
};
|
|
492
492
|
let Dt = Ze({
|
|
493
|
-
scriptUrl:
|
|
493
|
+
scriptUrl: k.iconfontUrl
|
|
494
494
|
});
|
|
495
495
|
const pt = ({
|
|
496
496
|
icon: e,
|
|
@@ -500,7 +500,7 @@ const pt = ({
|
|
|
500
500
|
hashId: l
|
|
501
501
|
}) => {
|
|
502
502
|
if (typeof e == "string" && e !== "") {
|
|
503
|
-
if (
|
|
503
|
+
if (ge(e) || Ue(e))
|
|
504
504
|
return o("img", {
|
|
505
505
|
key: e,
|
|
506
506
|
src: e,
|
|
@@ -522,68 +522,68 @@ class ta {
|
|
|
522
522
|
const {
|
|
523
523
|
menuRenderType: i,
|
|
524
524
|
subMenuItemRender: r,
|
|
525
|
-
baseClassName:
|
|
526
|
-
collapsed:
|
|
525
|
+
baseClassName: g,
|
|
526
|
+
collapsed: u,
|
|
527
527
|
iconPrefixes: d,
|
|
528
528
|
styles: m,
|
|
529
|
-
classNames:
|
|
530
|
-
} = this.props,
|
|
531
|
-
if (
|
|
532
|
-
const N = t.meta?.icon || a === 1, y = typeof t.meta?.icon == "string" ?
|
|
529
|
+
classNames: c
|
|
530
|
+
} = this.props, p = this.getIntlName(t), C = i === "sider" ? t.meta?.inlineIndent ?? a * (this.props.extraInlineIndent ?? 10) : 0, S = t?.children, s = t?.meta?.hideInMenu, x = t?.meta?.rightContent, I = t?.meta?.divider, M = Array.isArray(S) && S.length > 0 && !s, T = S?.every((N) => N.meta?.hideInMenu);
|
|
531
|
+
if (M && !T) {
|
|
532
|
+
const N = t.meta?.icon || a === 1, y = typeof t.meta?.icon == "string" ? ge(t.meta?.icon) || Ue(t.meta?.icon) : !1, w = pt({
|
|
533
533
|
icon: t.meta?.icon,
|
|
534
534
|
iconStyle: t.meta?.iconStyle,
|
|
535
535
|
iconPrefixes: d,
|
|
536
|
-
className: `${
|
|
536
|
+
className: `${g}-item`,
|
|
537
537
|
hashId: this.props?.hashId
|
|
538
|
-
}),
|
|
539
|
-
class: O(
|
|
540
|
-
[`${
|
|
541
|
-
[`${
|
|
538
|
+
}), V = u && N ? gt(p) : null, j = o("div", {
|
|
539
|
+
class: O(c?.menuItemTitle, `${g}-item-title`, this.props?.hashId, {
|
|
540
|
+
[`${g}-item-title-collapsed`]: u,
|
|
541
|
+
[`${g}-item-title-collapsed-level-${l}`]: u
|
|
542
542
|
}),
|
|
543
543
|
style: {
|
|
544
|
-
paddingInlineStart: this.props.collapsed ? 0 : z(
|
|
544
|
+
paddingInlineStart: this.props.collapsed ? 0 : z(C),
|
|
545
545
|
...m?.menuItemTitle
|
|
546
546
|
}
|
|
547
|
-
}, [
|
|
548
|
-
class: O(`${
|
|
547
|
+
}, [u ? null : N && w ? o("span", {
|
|
548
|
+
class: O(`${g}-item-icon`, this.props?.hashId, c?.menuItemIcon),
|
|
549
549
|
style: {
|
|
550
550
|
...m?.menuItemIcon,
|
|
551
551
|
...y ? {} : t.meta?.iconStyle || {}
|
|
552
552
|
}
|
|
553
|
-
}, [
|
|
554
|
-
class: O(
|
|
555
|
-
[`${
|
|
553
|
+
}, [w]) : V, o("span", {
|
|
554
|
+
class: O(c?.menuItemTitleText, `${g}-item-text`, this.props?.hashId, {
|
|
555
|
+
[`${g}-item-text-has-icon`]: N && (w || V)
|
|
556
556
|
}),
|
|
557
557
|
style: m?.menuItemTitleText
|
|
558
|
-
}, [
|
|
559
|
-
class: O(`${
|
|
560
|
-
}, [
|
|
558
|
+
}, [p]), x && typeof x == "function" ? o("div", {
|
|
559
|
+
class: O(`${g}-item-right-content`, this.props.hashId)
|
|
560
|
+
}, [x(t.meta)]) : null]), A = r ? r({
|
|
561
561
|
item: t,
|
|
562
|
-
children:
|
|
562
|
+
children: j,
|
|
563
563
|
menuProps: this.props
|
|
564
|
-
}) :
|
|
564
|
+
}) : j;
|
|
565
565
|
if (a === 0 && this.props.collapsed)
|
|
566
566
|
return this.getNavMenuItems(S, a + 1, a);
|
|
567
|
-
const
|
|
567
|
+
const E = this.getNavMenuItems(S, a + 1, a === 0 && this.props.collapsed ? a : a + 1);
|
|
568
568
|
return [I ? {
|
|
569
569
|
type: "divider"
|
|
570
570
|
} : void 0, {
|
|
571
571
|
key: t.name,
|
|
572
572
|
label: A,
|
|
573
|
-
children:
|
|
573
|
+
children: E,
|
|
574
574
|
style: m?.subMenu,
|
|
575
575
|
disabled: t.meta?.disabled,
|
|
576
|
-
class: O(
|
|
577
|
-
[`${
|
|
578
|
-
[`${
|
|
576
|
+
class: O(c?.subMenu, {
|
|
577
|
+
[`${g}-submenu`]: !0,
|
|
578
|
+
[`${g}-submenu-has-icon`]: N && w
|
|
579
579
|
}),
|
|
580
|
-
popupClassName: O(
|
|
580
|
+
popupClassName: O(c?.subMenuPopup, `${g}-submenu-popup`, `${g}-submenu-popup-${this.props?.menuRenderType}`, this.props?.hashId)
|
|
581
581
|
}].filter(Boolean);
|
|
582
582
|
}
|
|
583
583
|
return [I ? {
|
|
584
584
|
type: "divider"
|
|
585
585
|
} : void 0, {
|
|
586
|
-
class: O(`${
|
|
586
|
+
class: O(`${g}-item`, c?.menuItem),
|
|
587
587
|
style: m?.menuItem,
|
|
588
588
|
key: t.name,
|
|
589
589
|
disabled: t.meta?.disabled,
|
|
@@ -601,83 +601,83 @@ class ta {
|
|
|
601
601
|
}, this.getMenuItemPath = (t, a, l) => {
|
|
602
602
|
const i = this.conversionPath(t.path || "/"), {
|
|
603
603
|
isMobile: r,
|
|
604
|
-
menuRenderType:
|
|
605
|
-
onCollapse:
|
|
604
|
+
menuRenderType: g,
|
|
605
|
+
onCollapse: u,
|
|
606
606
|
menuItemRender: d,
|
|
607
607
|
iconPrefixes: m,
|
|
608
|
-
classNames:
|
|
609
|
-
styles:
|
|
610
|
-
} = this.props,
|
|
608
|
+
classNames: c,
|
|
609
|
+
styles: p
|
|
610
|
+
} = this.props, C = this.getIntlName(t), {
|
|
611
611
|
baseClassName: S,
|
|
612
612
|
collapsed: s
|
|
613
|
-
} = this.props,
|
|
613
|
+
} = this.props, x = t.meta?.icon || a === 1, I = t.meta?.rightContent, M = typeof t.meta?.icon == "string" ? ge(t.meta?.icon) || Ue(t.meta?.icon) : !1, T = g === "sider" ? t.meta?.inlineIndent ?? a * (this.props.extraInlineIndent ?? 10) : 0, N = x ? pt({
|
|
614
614
|
icon: t.meta?.icon,
|
|
615
615
|
iconStyle: t.meta?.iconStyle,
|
|
616
616
|
iconPrefixes: m,
|
|
617
617
|
className: `${S}-item`,
|
|
618
618
|
hashId: this.props?.hashId
|
|
619
|
-
}) : null, y = s &&
|
|
619
|
+
}) : null, y = s && x ? gt(C) : null, w = t.meta?.linkStatus === 1 && ge(t.meta?.link), V = o("div", {
|
|
620
620
|
key: i,
|
|
621
|
-
class: O(
|
|
622
|
-
[`${S}-item-link`]:
|
|
621
|
+
class: O(c?.menuItemTitle, `${S}-item-title`, this.props?.hashId, {
|
|
622
|
+
[`${S}-item-link`]: w,
|
|
623
623
|
[`${S}-item-title-collapsed`]: s,
|
|
624
624
|
[`${S}-item-title-collapsed-level-${l}`]: s
|
|
625
625
|
}),
|
|
626
626
|
style: {
|
|
627
627
|
paddingInlineStart: this.props.collapsed ? 0 : z(T),
|
|
628
|
-
...
|
|
628
|
+
...p?.menuItemTitle
|
|
629
629
|
}
|
|
630
630
|
}, [o("span", {
|
|
631
|
-
class: O(`${S}-item-icon ${this.props?.hashId}`,
|
|
631
|
+
class: O(`${S}-item-icon ${this.props?.hashId}`, c?.menuItemIcon),
|
|
632
632
|
style: {
|
|
633
633
|
display: y === null && !N ? "none" : "",
|
|
634
|
-
...
|
|
635
|
-
...
|
|
634
|
+
...p?.menuItemIcon,
|
|
635
|
+
...M ? {} : t.meta?.iconStyle || {}
|
|
636
636
|
}
|
|
637
637
|
}, [N || o("span", {
|
|
638
638
|
class: "anticon"
|
|
639
639
|
}, [y])]), o("span", {
|
|
640
|
-
class: O(
|
|
641
|
-
[`${S}-item-text-has-icon`]:
|
|
640
|
+
class: O(c?.menuItemTitleText, `${S}-item-text`, this.props?.hashId, {
|
|
641
|
+
[`${S}-item-text-has-icon`]: x && (N || y)
|
|
642
642
|
}),
|
|
643
|
-
style:
|
|
644
|
-
}, [
|
|
643
|
+
style: p?.menuItemTitleText
|
|
644
|
+
}, [C]), I && typeof I == "function" ? o("div", {
|
|
645
645
|
class: O(`${S}-item-right-content`, this.props.hashId)
|
|
646
646
|
}, [I(t.meta)]) : null]);
|
|
647
647
|
if (d) {
|
|
648
|
-
const
|
|
648
|
+
const j = {
|
|
649
649
|
...t,
|
|
650
|
-
isUrl:
|
|
650
|
+
isUrl: w,
|
|
651
651
|
itemPath: i,
|
|
652
652
|
isMobile: r,
|
|
653
653
|
replace: i === location.pathname,
|
|
654
|
-
onClick: () =>
|
|
654
|
+
onClick: () => u && u(!0),
|
|
655
655
|
children: void 0
|
|
656
656
|
};
|
|
657
657
|
return d({
|
|
658
|
-
item:
|
|
659
|
-
defaultDom:
|
|
658
|
+
item: j,
|
|
659
|
+
defaultDom: V,
|
|
660
660
|
menuProps: this.props
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
|
-
return
|
|
663
|
+
return V;
|
|
664
664
|
}, this.conversionPath = (t) => t && t.indexOf("http") === 0 ? t : `/${t || ""}`.replace(/\/+/g, "/"), this.props = n;
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
|
-
const zt = /* @__PURE__ */
|
|
667
|
+
const zt = /* @__PURE__ */ X({
|
|
668
668
|
name: "BaseMenu",
|
|
669
669
|
props: Jn,
|
|
670
670
|
setup(e) {
|
|
671
|
-
const n =
|
|
671
|
+
const n = Ne(), {
|
|
672
672
|
dark: t,
|
|
673
673
|
token: a
|
|
674
|
-
} =
|
|
674
|
+
} = Le(), l = Z(), r = (l?.getPrefixCls || ae)({
|
|
675
675
|
isPor: !0,
|
|
676
676
|
suffixCls: "base-menu"
|
|
677
677
|
}), {
|
|
678
|
-
wrapSSR:
|
|
679
|
-
hashId:
|
|
680
|
-
} =
|
|
678
|
+
wrapSSR: g,
|
|
679
|
+
hashId: u
|
|
680
|
+
} = le("ProBaseMenu", [ea], r), [d, m] = Me(e.openKeys || []), [c, p] = Me(e.selectedKeys || []), C = Oe(() => new ta({
|
|
681
681
|
...e,
|
|
682
682
|
layout: l?.settings?.value?.layout,
|
|
683
683
|
isMobile: l?.isMobile?.value,
|
|
@@ -688,60 +688,60 @@ const zt = /* @__PURE__ */ G({
|
|
|
688
688
|
inlineIndent: e.menuProps?.inlineIndent,
|
|
689
689
|
extraInlineIndent: e.menuProps?.extraInlineIndent,
|
|
690
690
|
iconfontUrl: e.iconfontUrl,
|
|
691
|
-
hashId:
|
|
691
|
+
hashId: u.value,
|
|
692
692
|
onCollapse: (s) => {
|
|
693
693
|
l && (l.collapsed.value = s);
|
|
694
694
|
}
|
|
695
|
-
}), [() =>
|
|
696
|
-
const s = `.${r}`,
|
|
695
|
+
}), [() => u.value, () => a.value, () => e.menuData, () => e.iconfontUrl, () => e.styles, () => e.classNames, () => e.menuProps?.inlineIndent, () => e.menuProps?.extraInlineIndent, () => l?.isMobile?.value, () => l?.collapsedEffect?.value, () => l?.settings?.value?.layout]), S = v(() => {
|
|
696
|
+
const s = `.${r}`, x = `.${r}-item`, I = `.${r}-submenu`, M = `${a.value.antCls}-menu-item-selected`, T = `${a.value.antCls}-menu-submenu-title`;
|
|
697
697
|
return `
|
|
698
698
|
${s} ${I}>${T} {
|
|
699
699
|
${ft(e.styles.subMenuTitle)}
|
|
700
700
|
}
|
|
701
|
-
${s} ${
|
|
701
|
+
${s} ${x}${M} {
|
|
702
702
|
${ft(e.styles.menuItemSelect)}
|
|
703
703
|
}
|
|
704
704
|
`;
|
|
705
705
|
});
|
|
706
|
-
return Mt(S), U(() => e.openKeys, (s) => m(s)), U(() => e.selectedKeys, (s) =>
|
|
706
|
+
return Mt(S), U(() => e.openKeys, (s) => m(s)), U(() => e.selectedKeys, (s) => p(s)), U(() => e.iconfontUrl, () => {
|
|
707
707
|
e.iconfontUrl && (Dt = Ze({
|
|
708
708
|
scriptUrl: e.iconfontUrl
|
|
709
709
|
}));
|
|
710
710
|
}, {
|
|
711
711
|
immediate: !0
|
|
712
|
-
}), () => e.menuData && e.menuData?.length < 1 ? null :
|
|
712
|
+
}), () => e.menuData && e.menuData?.length < 1 ? null : g(o(ye, oe({
|
|
713
713
|
key: "Menu",
|
|
714
714
|
mode: e.mode,
|
|
715
715
|
inlineIndent: 16,
|
|
716
716
|
theme: t.value ? "dark" : "light",
|
|
717
717
|
openKeys: d.value,
|
|
718
|
-
selectedKeys:
|
|
718
|
+
selectedKeys: c.value,
|
|
719
719
|
style: {
|
|
720
720
|
backgroundColor: "transparent",
|
|
721
721
|
border: "none",
|
|
722
722
|
...e.style
|
|
723
723
|
},
|
|
724
|
-
class: O(e.class,
|
|
724
|
+
class: O(e.class, u, r, {
|
|
725
725
|
[`${r}-inline`]: e.mode === "inline",
|
|
726
726
|
[`${r}-horizontal`]: e.mode === "horizontal",
|
|
727
727
|
[`${r}-collapsed`]: l?.collapsedEffect?.value
|
|
728
728
|
}),
|
|
729
|
-
items:
|
|
730
|
-
},
|
|
729
|
+
items: C.value.getNavMenuItems(e.menuData, 0, 0)
|
|
730
|
+
}, be(e.menuProps, ["onOpenChange", "onSelect", "onClick"]), {
|
|
731
731
|
onOpenChange: (s) => {
|
|
732
732
|
m(s), e.onOpenKeys && e.onOpenKeys(s);
|
|
733
733
|
},
|
|
734
734
|
onSelect: (s) => {
|
|
735
|
-
e.onSelect && e.onSelect(s),
|
|
735
|
+
e.onSelect && e.onSelect(s), p(s.selectedKeys);
|
|
736
736
|
},
|
|
737
737
|
onClick: (s) => {
|
|
738
738
|
if (e.onClick)
|
|
739
739
|
e.onClick(s);
|
|
740
740
|
else {
|
|
741
|
-
const
|
|
742
|
-
if (
|
|
743
|
-
const I = Ve(
|
|
744
|
-
n.currentRoute.value?.fullPath !== I && (T &&
|
|
741
|
+
const x = l?.menu?.value?.flatMenus?.find((I) => I.name === s.key);
|
|
742
|
+
if (x) {
|
|
743
|
+
const I = Ve(x.redirect) ? x.redirect : x.path || "", M = x.meta?.link || "", T = ge(M);
|
|
744
|
+
n.currentRoute.value?.fullPath !== I && (T && M && x.meta?.linkStatus === 1 ? window.open(M) : n.push({
|
|
745
745
|
path: I
|
|
746
746
|
}));
|
|
747
747
|
}
|
|
@@ -749,7 +749,7 @@ const zt = /* @__PURE__ */ G({
|
|
|
749
749
|
}
|
|
750
750
|
}), null));
|
|
751
751
|
}
|
|
752
|
-
}),
|
|
752
|
+
}), He = {
|
|
753
753
|
collapsedButtonRender: {
|
|
754
754
|
type: [Function, Object, Boolean, Array, String, Number],
|
|
755
755
|
default: () => {
|
|
@@ -761,14 +761,14 @@ const zt = /* @__PURE__ */ G({
|
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
}, na = {
|
|
764
|
-
...
|
|
764
|
+
...He
|
|
765
765
|
}, Wt = (e, { breadcrumb: n, parentRoute: t, menuMap: a }) => e.map((l, i) => (l.meta = l.meta || {}, l.meta.order = l.meta.order ?? i + 1, l.key = t?.key ? `${t?.key}-${i}` : `${i}`, 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("//", "/"), l.children && l.children.length > 0 && (l.children = Wt(l.children, {
|
|
766
766
|
breadcrumb: n,
|
|
767
767
|
parentRoute: l,
|
|
768
768
|
menuMap: a
|
|
769
|
-
})), a.has(l.name) || a.set(l.name,
|
|
770
|
-
const r = l.meta?.order || 0,
|
|
771
|
-
return r -
|
|
769
|
+
})), a.has(l.name) || a.set(l.name, be(l, "children")), n[`${l.path}`] = l, be(l, "component"))).sort((l, i) => {
|
|
770
|
+
const r = l.meta?.order || 0, g = i.meta?.order || 0;
|
|
771
|
+
return r - g > 0 ? 1 : -1;
|
|
772
772
|
});
|
|
773
773
|
function jt(e) {
|
|
774
774
|
const { menuSelectKey: n } = e?.meta || {};
|
|
@@ -790,10 +790,10 @@ function oa(e) {
|
|
|
790
790
|
const n = /* @__PURE__ */ new Map(), t = [];
|
|
791
791
|
function a(i) {
|
|
792
792
|
return i.map((r) => {
|
|
793
|
-
const
|
|
794
|
-
if (r?.meta?.hidden || !
|
|
795
|
-
return (!
|
|
796
|
-
if (n.set(
|
|
793
|
+
const g = r.path, u = r.name, d = n.has(u) && n.get(u) !== g;
|
|
794
|
+
if (r?.meta?.hidden || !u || d)
|
|
795
|
+
return (!u || d) && (t.some((m) => m.name === u && g === r.path) || t.push({ ...r })), null;
|
|
796
|
+
if (n.set(u, g), r && r?.children)
|
|
797
797
|
if (r?.meta?.hideChildren)
|
|
798
798
|
r.children = [];
|
|
799
799
|
else
|
|
@@ -848,15 +848,15 @@ function Kt(e, n) {
|
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
850
|
function Ut({ menuData: e, flatMenus: n, menuMap: t }, { path: a, name: l }) {
|
|
851
|
-
const i = t && t.size > 0 ? t.get(l) : n.find((S) => S.name === l), r = i?.key || "",
|
|
851
|
+
const i = t && t.size > 0 ? t.get(l) : n.find((S) => S.name === l), r = i?.key || "", g = i?.meta?.hidden, u = i?.meta?.hideInMenu;
|
|
852
852
|
let d = n.find((S) => S.path === a)?.key || "";
|
|
853
|
-
const m = !d ||
|
|
854
|
-
if (d = m ? i?.meta?.menuSelectKey &&
|
|
853
|
+
const m = !d || u, c = r.split("-").slice(0, -1).join("-"), p = Kt(e, c) || d, C = i ? n.find((S) => S.name === i?.meta?.menuSelectKey || S.path === jt(i))?.key : void 0;
|
|
854
|
+
if (d = m ? i?.meta?.menuSelectKey && C || p : d, d) {
|
|
855
855
|
const S = [], s = d.split("-");
|
|
856
856
|
for (let I = 0; I < s.length; I += 1)
|
|
857
|
-
S.push(
|
|
858
|
-
const
|
|
859
|
-
return n.filter((I) => S.some((
|
|
857
|
+
S.push(Fe(s).splice(0, I + 1).join("-"));
|
|
858
|
+
const x = r === d || g ? [] : n.filter((I) => r === I.key);
|
|
859
|
+
return n.filter((I) => S.some((M) => M === I?.key || "")).concat(x);
|
|
860
860
|
}
|
|
861
861
|
return [];
|
|
862
862
|
}
|
|
@@ -893,7 +893,7 @@ const Ye = {
|
|
|
893
893
|
},
|
|
894
894
|
onLogoClick: Function
|
|
895
895
|
}, ua = {
|
|
896
|
-
...
|
|
896
|
+
...Te(tt, ["title", "layout"]),
|
|
897
897
|
...Ye
|
|
898
898
|
}, nt = {
|
|
899
899
|
...Ye,
|
|
@@ -939,38 +939,38 @@ const Ye = {
|
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
941
|
function ca(e, n) {
|
|
942
|
-
const { x: t, y: a } = Pn(), [l, i] =
|
|
942
|
+
const { x: t, y: a } = Pn(), [l, i] = Me(!1);
|
|
943
943
|
if (!n?.disabled) {
|
|
944
944
|
let d;
|
|
945
945
|
U(() => e.value, (m) => {
|
|
946
|
-
m ? d = Tn([() => t.value, () => a.value], ([
|
|
947
|
-
c
|
|
946
|
+
m ? d = Tn([() => t.value, () => a.value], ([c, p]) => {
|
|
947
|
+
u(c, p);
|
|
948
948
|
}, { throttle: 60 }) : (d?.(), i(!1));
|
|
949
949
|
}, { immediate: !0 });
|
|
950
950
|
}
|
|
951
|
-
function r(d, m,
|
|
952
|
-
return d >=
|
|
951
|
+
function r(d, m, c) {
|
|
952
|
+
return d >= c.left && d <= c.right && m >= c.top && m <= c.bottom;
|
|
953
953
|
}
|
|
954
|
-
function
|
|
955
|
-
return
|
|
956
|
-
if (!
|
|
954
|
+
function g(d, m, c) {
|
|
955
|
+
return c.some((p) => {
|
|
956
|
+
if (!p)
|
|
957
957
|
return !1;
|
|
958
|
-
const
|
|
959
|
-
return r(d, m,
|
|
958
|
+
const C = p.getBoundingClientRect();
|
|
959
|
+
return r(d, m, C);
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
|
-
function
|
|
963
|
-
const
|
|
964
|
-
if (!
|
|
962
|
+
function u(d, m) {
|
|
963
|
+
const c = n?.rectEl?.value, p = n?.footEl?.value;
|
|
964
|
+
if (!c)
|
|
965
965
|
return;
|
|
966
|
-
const
|
|
967
|
-
if (d <=
|
|
966
|
+
const C = n?.distance || 50;
|
|
967
|
+
if (d <= C && !l.value) {
|
|
968
968
|
i(!0);
|
|
969
969
|
return;
|
|
970
970
|
}
|
|
971
|
-
if (!l.value || d <=
|
|
971
|
+
if (!l.value || d <= C)
|
|
972
972
|
return;
|
|
973
|
-
|
|
973
|
+
g(d, m, [c, p]) || i(!1);
|
|
974
974
|
}
|
|
975
975
|
return {
|
|
976
976
|
innerCollapsed: l,
|
|
@@ -1024,7 +1024,7 @@ const ma = (e) => ({
|
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
}), kt = (e, n, t) => e !== !1 ? typeof e == "function" ? e(n, t) : e || t : t, at = (e) => e.iconRender ? typeof e?.iconRender == "function" ? e?.iconRender() : e.iconRender : e.collapsed ? o(un, null, null) : o(cn, null, null), fa = /* @__PURE__ */
|
|
1027
|
+
}), kt = (e, n, t) => e !== !1 ? typeof e == "function" ? e(n, t) : e || t : t, at = (e) => e.iconRender ? typeof e?.iconRender == "function" ? e?.iconRender() : e.iconRender : e.collapsed ? o(un, null, null) : o(cn, null, null), fa = /* @__PURE__ */ X({
|
|
1028
1028
|
name: "CollapsedIcon",
|
|
1029
1029
|
inheritAttrs: !1,
|
|
1030
1030
|
props: {
|
|
@@ -1036,13 +1036,13 @@ const ma = (e) => ({
|
|
|
1036
1036
|
setup(e) {
|
|
1037
1037
|
const {
|
|
1038
1038
|
getPrefixCls: n
|
|
1039
|
-
} =
|
|
1039
|
+
} = Z(), t = n({
|
|
1040
1040
|
suffixCls: "collapsed-button",
|
|
1041
1041
|
isPor: !0
|
|
1042
1042
|
}), {
|
|
1043
1043
|
wrapSSR: a,
|
|
1044
1044
|
hashId: l
|
|
1045
|
-
} =
|
|
1045
|
+
} = le("SiderMenuCollapsedIcon", [ma], t);
|
|
1046
1046
|
return () => a(o("div", {
|
|
1047
1047
|
class: O(t, l.value, {
|
|
1048
1048
|
[`${t}-collapsed`]: e.collapsed,
|
|
@@ -1073,18 +1073,18 @@ const ma = (e) => ({
|
|
|
1073
1073
|
layout: l,
|
|
1074
1074
|
collapsed: i,
|
|
1075
1075
|
collapsedWidth: r
|
|
1076
|
-
} = e,
|
|
1077
|
-
if (
|
|
1078
|
-
const
|
|
1079
|
-
return typeof
|
|
1080
|
-
logo:
|
|
1076
|
+
} = e, g = e.logoRender;
|
|
1077
|
+
if (g === !1) return null;
|
|
1078
|
+
const u = Et(n, t), d = a && o("h1", null, [a]);
|
|
1079
|
+
return typeof g == "function" ? g({
|
|
1080
|
+
logo: u,
|
|
1081
1081
|
title: e.collapsed ? null : d,
|
|
1082
1082
|
props: e
|
|
1083
|
-
}) :
|
|
1083
|
+
}) : g || o("a", {
|
|
1084
1084
|
key: "title",
|
|
1085
1085
|
onClick: () => e.onLogoClick?.()
|
|
1086
|
-
}, [(i && r || !i) && (
|
|
1087
|
-
}, ot = /* @__PURE__ */
|
|
1086
|
+
}, [(i && r || !i) && (u || null), e.collapsed && (l === "side" || l === "simple") ? null : d]);
|
|
1087
|
+
}, ot = /* @__PURE__ */ X({
|
|
1088
1088
|
name: "LogoContent",
|
|
1089
1089
|
props: {
|
|
1090
1090
|
...ua,
|
|
@@ -1100,9 +1100,9 @@ const ma = (e) => ({
|
|
|
1100
1100
|
settings: l,
|
|
1101
1101
|
collapsedProps: i,
|
|
1102
1102
|
styles: r,
|
|
1103
|
-
classNames:
|
|
1104
|
-
isMobile:
|
|
1105
|
-
} =
|
|
1103
|
+
classNames: g,
|
|
1104
|
+
isMobile: u
|
|
1105
|
+
} = Z(), d = q(), {
|
|
1106
1106
|
height: m
|
|
1107
1107
|
} = Fn(d);
|
|
1108
1108
|
return t({
|
|
@@ -1114,9 +1114,9 @@ const ma = (e) => ({
|
|
|
1114
1114
|
[`${e.class}`]: e.class,
|
|
1115
1115
|
[`${e.hashId}`]: !0,
|
|
1116
1116
|
[`${e.baseClassName}-logo`]: !0,
|
|
1117
|
-
[`${e.baseClassName}-logo-mobile`]:
|
|
1117
|
+
[`${e.baseClassName}-logo-mobile`]: u.value,
|
|
1118
1118
|
[`${e.baseClassName}-logo-collapsed`]: !!a.value,
|
|
1119
|
-
[`${
|
|
1119
|
+
[`${g.value?.logo}`]: !!g.value?.logo
|
|
1120
1120
|
},
|
|
1121
1121
|
style: {
|
|
1122
1122
|
...e.style || {},
|
|
@@ -1152,7 +1152,7 @@ const Ee = (e) => ({
|
|
|
1152
1152
|
minHeight: "100vh"
|
|
1153
1153
|
}
|
|
1154
1154
|
}), ba = (e) => {
|
|
1155
|
-
const { layout: n } =
|
|
1155
|
+
const { layout: n } = xe(e), t = e.layout?.pageContainer;
|
|
1156
1156
|
return {
|
|
1157
1157
|
[`${e.antCls}-layout`]: {
|
|
1158
1158
|
background: "transparent !important"
|
|
@@ -1189,7 +1189,7 @@ const Ee = (e) => ({
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
};
|
|
1192
|
-
}, Xt = new
|
|
1192
|
+
}, Xt = new h("antBadgeLoadingCircle", {
|
|
1193
1193
|
"0%": { display: "none", opacity: 0, overflow: "hidden" },
|
|
1194
1194
|
"80%": {
|
|
1195
1195
|
overflow: "hidden"
|
|
@@ -1206,7 +1206,7 @@ const Ee = (e) => ({
|
|
|
1206
1206
|
paddingInline: 8,
|
|
1207
1207
|
marginInline: 0
|
|
1208
1208
|
}), va = (e, { siderChildren: n = {} }) => {
|
|
1209
|
-
const { layout: t } =
|
|
1209
|
+
const { layout: t } = xe(e), a = e.layout?.pageContainer;
|
|
1210
1210
|
return {
|
|
1211
1211
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1212
1212
|
[`${e.antCls}-layout-sider${e.componentCls}`]: {
|
|
@@ -1365,7 +1365,7 @@ const Ee = (e) => ({
|
|
|
1365
1365
|
}
|
|
1366
1366
|
};
|
|
1367
1367
|
}, Vt = (e) => {
|
|
1368
|
-
const { layout: n } =
|
|
1368
|
+
const { layout: n } = xe(e);
|
|
1369
1369
|
return {
|
|
1370
1370
|
[`${e.componentCls}-logo`]: {
|
|
1371
1371
|
position: "relative",
|
|
@@ -1427,14 +1427,14 @@ const Ee = (e) => ({
|
|
|
1427
1427
|
};
|
|
1428
1428
|
};
|
|
1429
1429
|
function yt(e) {
|
|
1430
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1430
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ve(e);
|
|
1431
1431
|
}
|
|
1432
1432
|
const {
|
|
1433
1433
|
Sider: Ca
|
|
1434
|
-
} =
|
|
1434
|
+
} = Pe, bt = /* @__PURE__ */ X({
|
|
1435
1435
|
props: {
|
|
1436
1436
|
...nt,
|
|
1437
|
-
...
|
|
1437
|
+
...He
|
|
1438
1438
|
},
|
|
1439
1439
|
inheritAttrs: !1,
|
|
1440
1440
|
setup(e) {
|
|
@@ -1445,100 +1445,100 @@ const {
|
|
|
1445
1445
|
collapsedEffect: l,
|
|
1446
1446
|
collapsedProps: i,
|
|
1447
1447
|
layoutProps: r,
|
|
1448
|
-
selectedKeys:
|
|
1449
|
-
settings:
|
|
1448
|
+
selectedKeys: g,
|
|
1449
|
+
settings: u,
|
|
1450
1450
|
openKeys: d,
|
|
1451
1451
|
menu: m,
|
|
1452
|
-
styles:
|
|
1453
|
-
classNames:
|
|
1454
|
-
contentFullScreen:
|
|
1455
|
-
} =
|
|
1452
|
+
styles: c,
|
|
1453
|
+
classNames: p,
|
|
1454
|
+
contentFullScreen: C
|
|
1455
|
+
} = Z(), S = Ft(), {
|
|
1456
1456
|
token: s
|
|
1457
|
-
} =
|
|
1458
|
-
breakpoint:
|
|
1457
|
+
} = Le(), {
|
|
1458
|
+
breakpoint: x
|
|
1459
1459
|
} = Xe(e), I = n({
|
|
1460
1460
|
suffixCls: "sider",
|
|
1461
1461
|
isPor: !0
|
|
1462
|
-
}),
|
|
1462
|
+
}), M = q(), T = q(), N = q(), y = v(() => t.value ? !1 : l.value), w = v(() => u.value.layout === "mix" && !t.value && u.value.splitMenus), V = v(() => u.value.layout === "side" || u.value.layout === "simple"), j = v(() => t.value || r.value.isWide ? !1 : u.value.fixSiderbar), A = v(() => (u.value.layout === "mix" || r.value.isWide) && "light" || m.value.baseTheme), E = v(() => i.value?.width ? {} : {
|
|
1463
1463
|
transform: `translateX(${a.value ? "-100%" : "0"})`,
|
|
1464
1464
|
pointerEvents: a.value ? "none" : void 0
|
|
1465
1465
|
}), {
|
|
1466
|
-
wrapSSR:
|
|
1466
|
+
wrapSSR: Y,
|
|
1467
1467
|
hashId: D
|
|
1468
|
-
} =
|
|
1469
|
-
siderChildren:
|
|
1470
|
-
}), Vt], I),
|
|
1471
|
-
innerCollapsed:
|
|
1472
|
-
} = ca(
|
|
1468
|
+
} = le("ProLayoutSiderMenu", [(W) => va(W, {
|
|
1469
|
+
siderChildren: c.value?.siderChildren
|
|
1470
|
+
}), Vt], I), te = v(() => u.value.layout === "top" ? [] : m.value.menuData), _ = v(() => w.value ? m.value.mixSiderMenus : te.value), b = v(() => _.value.filter((W) => !W.meta?.fixed)), $ = v(() => _.value.filter((W) => W.meta?.fixed)), J = v(() => i.value?.width ? y.value ? i.value?.width : r.value.siderWidth : a.value ? 0 : r.value.siderWidth), {
|
|
1471
|
+
innerCollapsed: ue
|
|
1472
|
+
} = ca(v(() => i.value?.width === 0 && a.value), {
|
|
1473
1473
|
rectEl: N,
|
|
1474
|
-
footEl:
|
|
1474
|
+
footEl: v(() => e.menuFooterRender || $.value.length > 0 ? T.value : void 0),
|
|
1475
1475
|
disabled: i.value?.disabledInnerCollapse ?? i.value?.width !== 0
|
|
1476
|
-
}),
|
|
1477
|
-
const
|
|
1478
|
-
return (
|
|
1479
|
-
}), ze =
|
|
1480
|
-
function
|
|
1476
|
+
}), De = v(() => O(a.value && `${I}-collapsed`, ue.value && `${I}-inner-collapsed`, (e.menuFooterRender || $.value.length > 0) && `${I}-has-footer`, [D.value, I, p?.value?.sider, t.value ? "shadow" : null, `${I}-${m.value.baseTheme}`, j.value ? `${I}-fixed` : null])), de = v(() => {
|
|
1477
|
+
const W = s.value?.layout?.pageContainer;
|
|
1478
|
+
return (W?.padding || W?.margin || "").split(" ")?.[0] || z(20);
|
|
1479
|
+
}), ze = Oe(() => u.value.layout === "simple" || !e.appsLogoComponents ? null : typeof e.appsLogoComponents == "function" ? e.appsLogoComponents?.() : e.appsLogoComponents, [() => e.appsLogoComponents]);
|
|
1480
|
+
function Ie() {
|
|
1481
1481
|
a.value = !a.value;
|
|
1482
1482
|
}
|
|
1483
|
-
const We =
|
|
1483
|
+
const We = Oe(() => {
|
|
1484
1484
|
if (i.value?.collapsedButtonRender === !1) return null;
|
|
1485
|
-
const
|
|
1486
|
-
iconRender:
|
|
1485
|
+
const W = e.collapsedButtonRender || i.value?.collapsedButtonRender, Q = e.collapsedIconRender || i.value?.collapsedIconRender, ee = o(fa, {
|
|
1486
|
+
iconRender: Q,
|
|
1487
1487
|
isMobile: t.value,
|
|
1488
1488
|
collapsed: y.value,
|
|
1489
|
-
onClick: () =>
|
|
1489
|
+
onClick: () => Ie()
|
|
1490
1490
|
}, null);
|
|
1491
|
-
return
|
|
1492
|
-
}, [() => i.value?.collapsedButtonRender, () => t.value, () => y.value]), _e = (
|
|
1491
|
+
return W ? W?.(!!y.value, ee) : ee;
|
|
1492
|
+
}, [() => i.value?.collapsedButtonRender, () => t.value, () => y.value]), _e = (W) => {
|
|
1493
1493
|
if (e.onSelect) {
|
|
1494
|
-
const
|
|
1495
|
-
if (Ae(
|
|
1496
|
-
e.onSelect([
|
|
1494
|
+
const Q = W.selectedKeys;
|
|
1495
|
+
if (Ae(w)) {
|
|
1496
|
+
e.onSelect([g?.value?.[0], ...Q]);
|
|
1497
1497
|
return;
|
|
1498
1498
|
}
|
|
1499
|
-
e.onSelect(
|
|
1499
|
+
e.onSelect(Q);
|
|
1500
1500
|
}
|
|
1501
|
-
},
|
|
1501
|
+
}, me = (W, Q) => o(zt, {
|
|
1502
1502
|
key: "sider-base-menu",
|
|
1503
|
-
class: O(`${I}-menu ${D.value}`,
|
|
1504
|
-
styles:
|
|
1505
|
-
classNames:
|
|
1503
|
+
class: O(`${I}-menu ${D.value}`, Q?.class),
|
|
1504
|
+
styles: c.value,
|
|
1505
|
+
classNames: p.value,
|
|
1506
1506
|
type: m.value?.type,
|
|
1507
1507
|
mode: y.value && !t.value ? "vertical" : "inline",
|
|
1508
1508
|
menuRenderType: "sider",
|
|
1509
1509
|
menuProps: m.value?.menuProps,
|
|
1510
|
-
menuData:
|
|
1511
|
-
iconfontUrl:
|
|
1510
|
+
menuData: W,
|
|
1511
|
+
iconfontUrl: u.value.iconfontUrl,
|
|
1512
1512
|
openKeys: d.value,
|
|
1513
|
-
selectedKeys:
|
|
1513
|
+
selectedKeys: g.value,
|
|
1514
1514
|
menuTextRender: e.menuTextRender,
|
|
1515
1515
|
menuItemRender: e.menuItemRender,
|
|
1516
1516
|
subMenuItemRender: e.subMenuItemRender,
|
|
1517
1517
|
style: {
|
|
1518
1518
|
width: "100%",
|
|
1519
|
-
minHeight:
|
|
1520
|
-
backgroundColor:
|
|
1521
|
-
...
|
|
1519
|
+
minHeight: ue.value ? "unset" : "",
|
|
1520
|
+
backgroundColor: ue.value ? s.value.layout?.sider?.colorMenuBackground : "",
|
|
1521
|
+
...Q?.style || {}
|
|
1522
1522
|
},
|
|
1523
1523
|
onClick: m.value?.menuProps?.onClick,
|
|
1524
1524
|
onOpenKeys: (ne) => e.onOpenKeys && e.onOpenKeys?.(ne),
|
|
1525
1525
|
onSelect: _e
|
|
1526
1526
|
}, null);
|
|
1527
1527
|
return () => {
|
|
1528
|
-
let
|
|
1529
|
-
const
|
|
1530
|
-
ref:
|
|
1531
|
-
title:
|
|
1528
|
+
let W;
|
|
1529
|
+
const Q = V.value && u.value.layout !== "simple" && o(ot, oe({
|
|
1530
|
+
ref: M,
|
|
1531
|
+
title: u.value.title,
|
|
1532
1532
|
hashId: D.value,
|
|
1533
|
-
layout:
|
|
1533
|
+
layout: u.value.layout,
|
|
1534
1534
|
style: a.value && i.value.width === 0 ? {
|
|
1535
1535
|
opacity: 0
|
|
1536
1536
|
} : void 0,
|
|
1537
1537
|
baseClassName: I
|
|
1538
|
-
},
|
|
1538
|
+
}, Te(e, Object.keys(Ye))), {
|
|
1539
1539
|
default: () => [ze.value]
|
|
1540
|
-
}),
|
|
1541
|
-
return
|
|
1540
|
+
}), ee = e.menuHeaderRender && e.menuHeaderRender?.(e), ne = e.menuLinksRender, fe = e.siderActionsRender;
|
|
1541
|
+
return w.value && Ae(m.value.mixSiderMenus).length === 0 && e.suppressSiderWhenMenuEmpty || te.value.length === 0 && e.suppressSiderWhenMenuEmpty ? null : Y(o(Je, {
|
|
1542
1542
|
theme: {
|
|
1543
1543
|
components: {
|
|
1544
1544
|
Menu: {
|
|
@@ -1557,32 +1557,32 @@ const {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
1559
|
}, {
|
|
1560
|
-
default: () => [
|
|
1560
|
+
default: () => [j.value && o("div", {
|
|
1561
1561
|
style: {
|
|
1562
|
-
width: `${z(
|
|
1562
|
+
width: `${z(J.value)}`,
|
|
1563
1563
|
overflow: "hidden",
|
|
1564
|
-
flex: `0 0 ${z(
|
|
1565
|
-
maxWidth: `${z(
|
|
1566
|
-
minWidth: `${z(
|
|
1564
|
+
flex: `0 0 ${z(J.value)}`,
|
|
1565
|
+
maxWidth: `${z(J.value)}`,
|
|
1566
|
+
minWidth: `${z(J.value)}`,
|
|
1567
1567
|
transition: "all 0.2s ease 0s",
|
|
1568
|
-
...
|
|
1568
|
+
...E.value
|
|
1569
1569
|
}
|
|
1570
1570
|
}, null), o(Ca, {
|
|
1571
1571
|
collapsible: !0,
|
|
1572
1572
|
trigger: null,
|
|
1573
|
-
class:
|
|
1573
|
+
class: De.value,
|
|
1574
1574
|
style: {
|
|
1575
|
-
zIndex:
|
|
1576
|
-
paddingTop:
|
|
1577
|
-
top:
|
|
1578
|
-
height:
|
|
1579
|
-
...
|
|
1580
|
-
...
|
|
1575
|
+
zIndex: j.value ? 101 : void 0,
|
|
1576
|
+
paddingTop: j.value && u.value.fixedHeader && u.value.layout === "mix" ? r.value.headerHeight : 0,
|
|
1577
|
+
top: u.value.layout === "wide" ? `calc(${r.value.headerHeight} + ${de.value})` : void 0,
|
|
1578
|
+
height: u.value.layout === "wide" ? `calc(100vh - ${r.value.headerHeight} - (${de.value}) * 2)` : void 0,
|
|
1579
|
+
...c.value?.sider || {},
|
|
1580
|
+
...E.value
|
|
1581
1581
|
},
|
|
1582
1582
|
theme: A.value,
|
|
1583
|
-
breakpoint:
|
|
1583
|
+
breakpoint: x.value || void 0,
|
|
1584
1584
|
collapsed: y.value,
|
|
1585
|
-
width:
|
|
1585
|
+
width: J.value,
|
|
1586
1586
|
collapsedWidth: i.value?.width
|
|
1587
1587
|
}, {
|
|
1588
1588
|
default: () => [m.value.loading && o("div", {
|
|
@@ -1590,18 +1590,18 @@ const {
|
|
|
1590
1590
|
}, [o(Bt, {
|
|
1591
1591
|
spinning: m.value.loading,
|
|
1592
1592
|
indicator: S?.indicator?.value
|
|
1593
|
-
}, null)]),
|
|
1593
|
+
}, null)]), Q || null, o("div", {
|
|
1594
1594
|
ref: N,
|
|
1595
1595
|
class: `${I}-content`,
|
|
1596
1596
|
style: {
|
|
1597
1597
|
flex: "1 1 0%",
|
|
1598
1598
|
overflow: "hidden",
|
|
1599
|
-
maxHeight: a.value && i.value?.width === 0 ? `calc(100% - ${
|
|
1599
|
+
maxHeight: a.value && i.value?.width === 0 ? `calc(100% - ${M.value?.getHeight?.() * 2}px)` : ""
|
|
1600
1600
|
}
|
|
1601
|
-
}, [
|
|
1602
|
-
class: O(
|
|
1603
|
-
style:
|
|
1604
|
-
}, [
|
|
1601
|
+
}, [Rn(e.menuHeaderRender) && o("div", {
|
|
1602
|
+
class: O(p.value?.siderHeader, [D.value, `${I}-header`, !Q && `${I}-header-only`]),
|
|
1603
|
+
style: c.value?.siderHeader
|
|
1604
|
+
}, [ee]), o("div", {
|
|
1605
1605
|
style: {
|
|
1606
1606
|
flex: "1 1 0%",
|
|
1607
1607
|
overflow: "hidden auto"
|
|
@@ -1609,66 +1609,66 @@ const {
|
|
|
1609
1609
|
class: O(`${I}-menu-container`)
|
|
1610
1610
|
}, [e.menuContentRender && e.menuContentRender?.({
|
|
1611
1611
|
props: e,
|
|
1612
|
-
defaultDom:
|
|
1613
|
-
style:
|
|
1614
|
-
class:
|
|
1612
|
+
defaultDom: me(b.value, {
|
|
1613
|
+
style: c.value?.menu,
|
|
1614
|
+
class: p.value?.menu
|
|
1615
1615
|
})
|
|
1616
|
-
}) ||
|
|
1617
|
-
style:
|
|
1618
|
-
class:
|
|
1619
|
-
})])]),
|
|
1616
|
+
}) || me(b.value, {
|
|
1617
|
+
style: c.value?.menu,
|
|
1618
|
+
class: p.value?.menu
|
|
1619
|
+
})])]), u.value.layout !== "wide" && o(G, null, [ne && wn(ne) && ne.length > 0 && o("div", {
|
|
1620
1620
|
class: `${I}-links ${D.value}`
|
|
1621
|
-
}, [o(
|
|
1621
|
+
}, [o(ye, {
|
|
1622
1622
|
theme: A.value,
|
|
1623
1623
|
inlineIndent: 16,
|
|
1624
1624
|
class: `${I}-link-menu ${D.value}`,
|
|
1625
1625
|
selectedKeys: [],
|
|
1626
1626
|
openKeys: [],
|
|
1627
1627
|
mode: "inline"
|
|
1628
|
-
}, yt(
|
|
1628
|
+
}, yt(W = (ne || []).map((Se, je) => o(ye.Item, {
|
|
1629
1629
|
class: `${I}-link ${D.value}`,
|
|
1630
1630
|
key: je
|
|
1631
|
-
}, yt(
|
|
1632
|
-
default: () => [
|
|
1633
|
-
}))) ?
|
|
1634
|
-
default: () => [
|
|
1635
|
-
})]), t.value ? null :
|
|
1631
|
+
}, yt(Se) ? Se : {
|
|
1632
|
+
default: () => [Se]
|
|
1633
|
+
}))) ? W : {
|
|
1634
|
+
default: () => [W]
|
|
1635
|
+
})]), t.value ? null : fe && o("div", {
|
|
1636
1636
|
class: O(`${I}-actions`, D.value)
|
|
1637
|
-
}, [
|
|
1637
|
+
}, [fe]), i.value?.position === "sider" && !t.value && i.value.collapsedButtonRender !== !1 && o(G, null, [o("div", {
|
|
1638
1638
|
class: O(`${I}-collapsed-button`, y.value && "collapsed", D.value)
|
|
1639
1639
|
}, [o("span", {
|
|
1640
|
-
onClick: () =>
|
|
1640
|
+
onClick: () => Ie()
|
|
1641
1641
|
}, [kt(e.collapsedButtonRender || i.value?.collapsedButtonRender, y.value, at({
|
|
1642
1642
|
collapsed: y.value,
|
|
1643
1643
|
iconRender: e.collapsedIconRender || i.value?.collapsedIconRender
|
|
1644
|
-
}))])])])]), (e.menuFooterRender ||
|
|
1644
|
+
}))])])])]), (e.menuFooterRender || $.value.length > 0) && o("div", {
|
|
1645
1645
|
ref: T,
|
|
1646
|
-
class: O(`${I}-footer ${D.value}`,
|
|
1647
|
-
style:
|
|
1648
|
-
}, [
|
|
1649
|
-
style:
|
|
1650
|
-
class:
|
|
1651
|
-
}), e.menuFooterRender && e.menuFooterRender?.(e)]),
|
|
1646
|
+
class: O(`${I}-footer ${D.value}`, p.value?.siderFooter),
|
|
1647
|
+
style: c.value?.siderFooter
|
|
1648
|
+
}, [me($.value, {
|
|
1649
|
+
style: c.value?.footerMenu,
|
|
1650
|
+
class: p.value?.footerMenu
|
|
1651
|
+
}), e.menuFooterRender && e.menuFooterRender?.(e)]), C.value || u.value.layout === "wide" || t.value ? null : i.value?.position === "fixed" && We.value]
|
|
1652
1652
|
})]
|
|
1653
1653
|
}));
|
|
1654
1654
|
};
|
|
1655
1655
|
}
|
|
1656
|
-
}), xa = /* @__PURE__ */
|
|
1656
|
+
}), xa = /* @__PURE__ */ X({
|
|
1657
1657
|
name: "SiderMenuWrapper",
|
|
1658
1658
|
inheritAttrs: !1,
|
|
1659
1659
|
props: {
|
|
1660
1660
|
...nt,
|
|
1661
|
-
...
|
|
1661
|
+
...He,
|
|
1662
1662
|
isMobile: Boolean,
|
|
1663
1663
|
siderWidth: tt.siderWidth
|
|
1664
1664
|
},
|
|
1665
1665
|
setup(e) {
|
|
1666
1666
|
const {
|
|
1667
1667
|
collapsed: n
|
|
1668
|
-
} =
|
|
1668
|
+
} = Z();
|
|
1669
1669
|
return () => {
|
|
1670
|
-
const t =
|
|
1671
|
-
return o(
|
|
1670
|
+
const t = be(e, ["siderWidth", "isMobile"]);
|
|
1671
|
+
return o(G, null, [e.isMobile ? o(Hn, {
|
|
1672
1672
|
maskClosable: !0,
|
|
1673
1673
|
open: !n.value,
|
|
1674
1674
|
closable: !1,
|
|
@@ -1691,7 +1691,21 @@ const {
|
|
|
1691
1691
|
}) : o(bt, t, null)]);
|
|
1692
1692
|
};
|
|
1693
1693
|
}
|
|
1694
|
-
})
|
|
1694
|
+
});
|
|
1695
|
+
function Ia(e = 0) {
|
|
1696
|
+
const { token: n } = Le(), { settings: t } = Z();
|
|
1697
|
+
return v(() => {
|
|
1698
|
+
const l = n.value?.layout?.header?.heightLayoutHeader ?? t.value?.headerHeight ?? 48, i = n.value?.layout?.pageContainer?.margin || "", r = n.value?.layout?.pageContainer?.padding || "", g = i?.split(" ")?.[0], u = r?.split(" ")?.[0], d = g ? `(${g} * 2)` : 0, m = u ? `(${u} * 2)` : 0;
|
|
1699
|
+
return `calc(100vh - ${[
|
|
1700
|
+
l,
|
|
1701
|
+
t.value?.showTabsBar ? 40 : 0,
|
|
1702
|
+
d,
|
|
1703
|
+
m,
|
|
1704
|
+
e
|
|
1705
|
+
].filter(Boolean).map((p) => z(p)).join(" - ")})`;
|
|
1706
|
+
});
|
|
1707
|
+
}
|
|
1708
|
+
const { provideContext: Sa, useInjectContext: lt } = et("pro-layout-menu"), $a = (e) => ({
|
|
1695
1709
|
[e.componentCls]: {
|
|
1696
1710
|
marginBlock: 0,
|
|
1697
1711
|
marginBlockStart: 48,
|
|
@@ -1731,7 +1745,7 @@ const {
|
|
|
1731
1745
|
title: "Ant Design Vue",
|
|
1732
1746
|
href: "https://next.antdv.com/components/overview-cn/",
|
|
1733
1747
|
blankTarget: !0
|
|
1734
|
-
}], Ra = /* @__PURE__ */
|
|
1748
|
+
}], Ra = /* @__PURE__ */ X({
|
|
1735
1749
|
name: "GlobalFooter",
|
|
1736
1750
|
props: {
|
|
1737
1751
|
links: {
|
|
@@ -1746,15 +1760,15 @@ const {
|
|
|
1746
1760
|
setup(e, {
|
|
1747
1761
|
slots: n
|
|
1748
1762
|
}) {
|
|
1749
|
-
const t =
|
|
1763
|
+
const t = Z(), l = (t?.getPrefixCls || ae)({
|
|
1750
1764
|
suffixCls: "global-footer",
|
|
1751
1765
|
isPor: !0
|
|
1752
1766
|
}), {
|
|
1753
1767
|
wrapSSR: i,
|
|
1754
1768
|
hashId: r
|
|
1755
|
-
} =
|
|
1769
|
+
} = le("ProLayoutFooter", [$a], l);
|
|
1756
1770
|
return () => {
|
|
1757
|
-
const
|
|
1771
|
+
const g = ie({
|
|
1758
1772
|
slots: n,
|
|
1759
1773
|
props: e,
|
|
1760
1774
|
key: "copyright"
|
|
@@ -1771,19 +1785,19 @@ const {
|
|
|
1771
1785
|
class: [l, r.value]
|
|
1772
1786
|
}, [e.links && o("div", {
|
|
1773
1787
|
class: `${l}-list ${r.value}`
|
|
1774
|
-
}, [e.links.map((
|
|
1788
|
+
}, [e.links.map((u) => o("a", {
|
|
1775
1789
|
class: `${l}-list-link ${r.value}`.trim(),
|
|
1776
|
-
key:
|
|
1777
|
-
title:
|
|
1778
|
-
target:
|
|
1779
|
-
href:
|
|
1780
|
-
}, [
|
|
1790
|
+
key: u.key,
|
|
1791
|
+
title: u.key,
|
|
1792
|
+
target: u.blankTarget ? "_blank" : "_self",
|
|
1793
|
+
href: u.href
|
|
1794
|
+
}, [u.title]))]), g !== !1 && o("div", {
|
|
1781
1795
|
class: `${l}-copyright ${r.value}`
|
|
1782
|
-
}, [
|
|
1796
|
+
}, [g])])]
|
|
1783
1797
|
}));
|
|
1784
1798
|
};
|
|
1785
1799
|
}
|
|
1786
|
-
}),
|
|
1800
|
+
}), wa = {
|
|
1787
1801
|
usePageCard: {
|
|
1788
1802
|
type: Boolean,
|
|
1789
1803
|
default: () => {
|
|
@@ -1825,7 +1839,7 @@ const {
|
|
|
1825
1839
|
default: () => {
|
|
1826
1840
|
}
|
|
1827
1841
|
}
|
|
1828
|
-
},
|
|
1842
|
+
}, he = {
|
|
1829
1843
|
pageChildrenExtraRender: {
|
|
1830
1844
|
type: [Object, Function, Boolean, Array],
|
|
1831
1845
|
default: () => {
|
|
@@ -1858,59 +1872,64 @@ const {
|
|
|
1858
1872
|
default: () => {
|
|
1859
1873
|
}
|
|
1860
1874
|
},
|
|
1861
|
-
|
|
1862
|
-
|
|
1875
|
+
height: {
|
|
1876
|
+
type: String,
|
|
1877
|
+
default: () => {
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
...wa
|
|
1881
|
+
}, Ma = (e) => ({
|
|
1863
1882
|
[e.componentCls]: {
|
|
1864
1883
|
[`&${e.componentCls}-header`]: {
|
|
1865
1884
|
marginInline: e.margin
|
|
1866
1885
|
}
|
|
1867
1886
|
}
|
|
1868
|
-
}), Yt = /* @__PURE__ */
|
|
1887
|
+
}), Yt = /* @__PURE__ */ X({
|
|
1869
1888
|
name: "BreadCrumb",
|
|
1870
1889
|
props: {
|
|
1871
|
-
breadcrumb:
|
|
1890
|
+
breadcrumb: he.breadcrumbRender
|
|
1872
1891
|
},
|
|
1873
1892
|
setup(e) {
|
|
1874
|
-
const n =
|
|
1893
|
+
const n = Z(), a = (n?.getPrefixCls || ae)({
|
|
1875
1894
|
isPor: !0,
|
|
1876
1895
|
suffixCls: "breadCrumb"
|
|
1877
1896
|
}), {
|
|
1878
1897
|
wrapSSR: l,
|
|
1879
1898
|
hashId: i
|
|
1880
|
-
} =
|
|
1881
|
-
const
|
|
1882
|
-
d.length &&
|
|
1899
|
+
} = le("ProBreadCrumb", [Ma], a), r = v(() => {
|
|
1900
|
+
const g = n?.breadcrumb?.value || {}, u = g.showHome ?? !0, d = Fe(g.routes || []);
|
|
1901
|
+
d.length && u && d.unshift({
|
|
1883
1902
|
path: "/",
|
|
1884
1903
|
name: "首页",
|
|
1885
1904
|
breadcrumbName: "首页"
|
|
1886
1905
|
});
|
|
1887
|
-
function m(
|
|
1906
|
+
function m(p) {
|
|
1888
1907
|
return {
|
|
1889
|
-
...
|
|
1890
|
-
link:
|
|
1908
|
+
...p,
|
|
1909
|
+
link: p.path
|
|
1891
1910
|
};
|
|
1892
1911
|
}
|
|
1893
|
-
const
|
|
1894
|
-
...
|
|
1895
|
-
path:
|
|
1896
|
-
children:
|
|
1897
|
-
isFirst:
|
|
1898
|
-
isLast:
|
|
1899
|
-
link:
|
|
1912
|
+
const c = d.map((p, C) => ({
|
|
1913
|
+
...p,
|
|
1914
|
+
path: p.name,
|
|
1915
|
+
children: p.children ? p.children?.map((S) => m(S)) : [],
|
|
1916
|
+
isFirst: u && C === 0,
|
|
1917
|
+
isLast: p.path && C === d.length - 1,
|
|
1918
|
+
link: p.path
|
|
1900
1919
|
}));
|
|
1901
1920
|
return {
|
|
1902
|
-
...
|
|
1903
|
-
routes:
|
|
1904
|
-
itemRender:
|
|
1905
|
-
route:
|
|
1906
|
-
}) =>
|
|
1907
|
-
to:
|
|
1921
|
+
...g,
|
|
1922
|
+
routes: c,
|
|
1923
|
+
itemRender: g?.itemRender || (({
|
|
1924
|
+
route: p
|
|
1925
|
+
}) => p.isFirst ? o(mt, {
|
|
1926
|
+
to: p.link
|
|
1908
1927
|
}, {
|
|
1909
1928
|
default: () => [o(mn, null, null)]
|
|
1910
|
-
}) :
|
|
1911
|
-
to:
|
|
1929
|
+
}) : p.isLast ? p.breadcrumbName : o(mt, {
|
|
1930
|
+
to: p.link
|
|
1912
1931
|
}, {
|
|
1913
|
-
default: () => [
|
|
1932
|
+
default: () => [p.breadcrumbName]
|
|
1914
1933
|
}))
|
|
1915
1934
|
};
|
|
1916
1935
|
});
|
|
@@ -1952,8 +1971,8 @@ const {
|
|
|
1952
1971
|
default: () => {
|
|
1953
1972
|
}
|
|
1954
1973
|
}
|
|
1955
|
-
},
|
|
1956
|
-
const { layout: n, theme: t } =
|
|
1974
|
+
}, Oa = (e) => {
|
|
1975
|
+
const { layout: n, theme: t } = xe(e), a = e.lineWidth, l = e?.layout?.header;
|
|
1957
1976
|
return {
|
|
1958
1977
|
[`${e.proComponentsCls}-header`]: {
|
|
1959
1978
|
"&-light": {
|
|
@@ -2079,55 +2098,55 @@ const {
|
|
|
2079
2098
|
}
|
|
2080
2099
|
}
|
|
2081
2100
|
};
|
|
2082
|
-
},
|
|
2101
|
+
}, Ba = ["mix", "top", "wide"], Pa = /* @__PURE__ */ X({
|
|
2083
2102
|
name: "DefaultHeader",
|
|
2084
2103
|
props: {
|
|
2085
2104
|
...it,
|
|
2086
|
-
...
|
|
2105
|
+
...He
|
|
2087
2106
|
},
|
|
2088
2107
|
inheritAttrs: !1,
|
|
2089
2108
|
setup(e) {
|
|
2090
|
-
const n =
|
|
2109
|
+
const n = Ne(), t = lt(), {
|
|
2091
2110
|
token: a
|
|
2092
|
-
} =
|
|
2111
|
+
} = Le(), {
|
|
2093
2112
|
styles: l,
|
|
2094
2113
|
classNames: i,
|
|
2095
2114
|
getPrefixCls: r,
|
|
2096
|
-
collapsed:
|
|
2097
|
-
collapsedProps:
|
|
2115
|
+
collapsed: g,
|
|
2116
|
+
collapsedProps: u,
|
|
2098
2117
|
settings: d,
|
|
2099
2118
|
isMobile: m,
|
|
2100
|
-
openKeys:
|
|
2101
|
-
selectedKeys:
|
|
2102
|
-
menu:
|
|
2119
|
+
openKeys: c,
|
|
2120
|
+
selectedKeys: p,
|
|
2121
|
+
menu: C,
|
|
2103
2122
|
breadcrumb: S,
|
|
2104
2123
|
breadcrumbRender: s
|
|
2105
|
-
} =
|
|
2124
|
+
} = Z(), x = r({
|
|
2106
2125
|
suffixCls: "global-header",
|
|
2107
2126
|
isPor: !0
|
|
2108
2127
|
}), {
|
|
2109
2128
|
wrapSSR: I,
|
|
2110
|
-
hashId:
|
|
2111
|
-
} =
|
|
2112
|
-
[`${
|
|
2113
|
-
[`${
|
|
2114
|
-
[`${
|
|
2115
|
-
})), y =
|
|
2116
|
-
const D = n?.currentRoute?.value,
|
|
2129
|
+
hashId: M
|
|
2130
|
+
} = le("ProDefaultHeader", [Oa, Vt], x), T = v(() => d.value.layout === "side" || d.value.layout === "simple"), N = v(() => ({
|
|
2131
|
+
[`${M.value}`]: !0,
|
|
2132
|
+
[`${x}`]: !0,
|
|
2133
|
+
[`${x}-${d.value.layout}`]: !0
|
|
2134
|
+
})), y = v(() => d.value.splitMenus && d.value.layout === "mix" ? la(C.value.menuData) : d.value.layout === "top" ? C.value.menuData : []), w = (A, E, Y) => {
|
|
2135
|
+
const D = n?.currentRoute?.value, te = d.value.layout === "mix", _ = t?.matchedMenu?.value || Ut({
|
|
2117
2136
|
menuData: y.value,
|
|
2118
|
-
flatMenus:
|
|
2137
|
+
flatMenus: C.value.flatMenus
|
|
2119
2138
|
}, {
|
|
2120
2139
|
path: jt(D),
|
|
2121
2140
|
name: D?.name
|
|
2122
2141
|
});
|
|
2123
2142
|
if (e.onSelect && A === "select") {
|
|
2124
|
-
const
|
|
2125
|
-
e.onSelect(
|
|
2143
|
+
const b = y.value.find(($) => $.name === Y)?.redirect;
|
|
2144
|
+
e.onSelect(te && b ? _.map(($) => $.name) : E);
|
|
2126
2145
|
}
|
|
2127
|
-
e.onOpenKeys && A === "openKeys" && e.onOpenKeys(
|
|
2128
|
-
},
|
|
2129
|
-
|
|
2130
|
-
},
|
|
2146
|
+
e.onOpenKeys && A === "openKeys" && e.onOpenKeys(te ? _.filter((b) => b.name !== D?.name).map((b) => b.name) : E);
|
|
2147
|
+
}, V = () => {
|
|
2148
|
+
g.value = !g.value;
|
|
2149
|
+
}, j = () => {
|
|
2131
2150
|
const A = e.headerContentRender !== !1 && typeof e.headerContentRender == "function" ? o("div", {
|
|
2132
2151
|
style: {
|
|
2133
2152
|
flex: 1
|
|
@@ -2136,7 +2155,7 @@ const {
|
|
|
2136
2155
|
style: {
|
|
2137
2156
|
flex: 1
|
|
2138
2157
|
},
|
|
2139
|
-
class: [`${
|
|
2158
|
+
class: [`${x}-menu`, M.value]
|
|
2140
2159
|
}, [y.value?.length > 0 && o(Je, {
|
|
2141
2160
|
theme: {
|
|
2142
2161
|
components: {
|
|
@@ -2161,59 +2180,59 @@ const {
|
|
|
2161
2180
|
}, {
|
|
2162
2181
|
default: () => [o(zt, {
|
|
2163
2182
|
key: "header-base-menu",
|
|
2164
|
-
class: O(`${
|
|
2183
|
+
class: O(`${x}-menu ${M.value}`, i.value?.menu),
|
|
2165
2184
|
styles: l.value,
|
|
2166
2185
|
classNames: i.value,
|
|
2167
|
-
type:
|
|
2186
|
+
type: C.value?.type,
|
|
2168
2187
|
mode: "horizontal",
|
|
2169
2188
|
menuRenderType: "header",
|
|
2170
2189
|
style: l.value?.menu,
|
|
2171
|
-
menuProps:
|
|
2190
|
+
menuProps: C.value?.menuProps,
|
|
2172
2191
|
menuData: y.value,
|
|
2173
2192
|
iconfontUrl: d.value?.iconfontUrl,
|
|
2174
|
-
openKeys:
|
|
2175
|
-
selectedKeys:
|
|
2193
|
+
openKeys: c.value,
|
|
2194
|
+
selectedKeys: p.value,
|
|
2176
2195
|
menuTextRender: e.menuTextRender,
|
|
2177
2196
|
menuItemRender: e.menuItemRender,
|
|
2178
2197
|
subMenuItemRender: e.subMenuItemRender,
|
|
2179
|
-
onClick:
|
|
2180
|
-
onSelect: (
|
|
2181
|
-
onOpenKeys: (
|
|
2198
|
+
onClick: C.value?.menuProps?.onClick,
|
|
2199
|
+
onSelect: (E) => w("select", E.selectedKeys, E.key),
|
|
2200
|
+
onOpenKeys: (E) => w("openKeys", E)
|
|
2182
2201
|
}, null)]
|
|
2183
2202
|
})]);
|
|
2184
|
-
return o(
|
|
2203
|
+
return o(G, null, [A, d.value.layout !== "simple" && (e.rightContentRender && typeof e.rightContentRender == "function" ? e.rightContentRender(e) : o(G, null, null))]);
|
|
2185
2204
|
};
|
|
2186
2205
|
return () => {
|
|
2187
|
-
const A = kt(e.collapsedButtonRender ||
|
|
2188
|
-
collapsed:
|
|
2189
|
-
iconRender: e.collapsedIconRender ||
|
|
2206
|
+
const A = kt(e.collapsedButtonRender || u.value?.collapsedButtonRender, g.value, at({
|
|
2207
|
+
collapsed: g.value,
|
|
2208
|
+
iconRender: e.collapsedIconRender || u.value?.collapsedIconRender
|
|
2190
2209
|
}));
|
|
2191
2210
|
return I(o("div", {
|
|
2192
2211
|
class: N.value
|
|
2193
|
-
}, [m.value ? o(
|
|
2194
|
-
class: `${
|
|
2195
|
-
onClick:
|
|
2196
|
-
}, [A]),
|
|
2197
|
-
class: `${
|
|
2212
|
+
}, [m.value ? o(G, null, [ga(e.logoRender, pa(O([`${x}-logo`, m.value && `${x}-logo-mobile`, M.value]), e)), u.value?.collapsedButtonRender !== !1 && o("span", {
|
|
2213
|
+
class: `${x}-collapsed-button ${M.value}`,
|
|
2214
|
+
onClick: V
|
|
2215
|
+
}, [A]), j()]) : o("div", {
|
|
2216
|
+
class: `${x}-main ${M.value}`,
|
|
2198
2217
|
style: {
|
|
2199
|
-
width: e.headerMainWidth || e.headerMainWidth === 0 ? z(e.headerMainWidth) : d.value.layout === "wide" ?
|
|
2218
|
+
width: e.headerMainWidth || e.headerMainWidth === 0 ? z(e.headerMainWidth) : d.value.layout === "wide" ? se(d.value.wideWidth) : void 0
|
|
2200
2219
|
}
|
|
2201
2220
|
}, [o("div", {
|
|
2202
|
-
class: `${
|
|
2203
|
-
}, [
|
|
2204
|
-
class: `${
|
|
2205
|
-
onClick:
|
|
2206
|
-
}, [A]),
|
|
2207
|
-
hashId:
|
|
2208
|
-
baseClassName:
|
|
2221
|
+
class: `${x}-main-left ${M.value}`
|
|
2222
|
+
}, [u.value?.position === "header" && u.value?.collapsedButtonRender !== !1 && T.value && (d.value.layout !== "mix" ? C.value.menuData : C.value.mixSiderMenus).length > 0 && o("div", {
|
|
2223
|
+
class: `${x}-collapsed-button ${M.value}`,
|
|
2224
|
+
onClick: V
|
|
2225
|
+
}, [A]), Ba.includes(d.value.layout) && o(G, null, [d.value.layout !== "wide" && e.appsLogoComponents && o(G, null, [typeof e.appsLogoComponents == "function" ? e.appsLogoComponents?.() : e.appsLogoComponents]), o(ot, oe({
|
|
2226
|
+
hashId: M.value,
|
|
2227
|
+
baseClassName: x
|
|
2209
2228
|
}, e, {
|
|
2210
2229
|
title: d.value.title
|
|
2211
2230
|
}), null)]), S.value?.position === "header" && S.value?.visible && o(Yt, {
|
|
2212
2231
|
breadcrumb: s.value
|
|
2213
|
-
}, null)]),
|
|
2232
|
+
}, null)]), j()])]));
|
|
2214
2233
|
};
|
|
2215
2234
|
}
|
|
2216
|
-
}),
|
|
2235
|
+
}), Ta = (e) => ({
|
|
2217
2236
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
2218
2237
|
[`${e.antCls}-layout-header${e.componentCls}`]: {
|
|
2219
2238
|
height: z(e.layout?.header?.heightLayoutHeader || 56),
|
|
@@ -2258,17 +2277,17 @@ const {
|
|
|
2258
2277
|
}
|
|
2259
2278
|
}
|
|
2260
2279
|
});
|
|
2261
|
-
function
|
|
2262
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2280
|
+
function Fa(e) {
|
|
2281
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ve(e);
|
|
2263
2282
|
}
|
|
2264
2283
|
const {
|
|
2265
2284
|
Header: vt
|
|
2266
|
-
} =
|
|
2285
|
+
} = Pe, La = /* @__PURE__ */ X({
|
|
2267
2286
|
name: "GlobalHeader",
|
|
2268
2287
|
inheritAttrs: !1,
|
|
2269
2288
|
props: {
|
|
2270
2289
|
...it,
|
|
2271
|
-
...
|
|
2290
|
+
...He
|
|
2272
2291
|
},
|
|
2273
2292
|
setup(e) {
|
|
2274
2293
|
const {
|
|
@@ -2278,28 +2297,28 @@ const {
|
|
|
2278
2297
|
collapsedEffect: l,
|
|
2279
2298
|
collapsedProps: i,
|
|
2280
2299
|
getPrefixCls: r,
|
|
2281
|
-
contentFullScreen:
|
|
2282
|
-
settings:
|
|
2300
|
+
contentFullScreen: g,
|
|
2301
|
+
settings: u,
|
|
2283
2302
|
isMobile: d,
|
|
2284
2303
|
layoutProps: m
|
|
2285
|
-
} =
|
|
2304
|
+
} = Z(), c = r({
|
|
2286
2305
|
suffixCls: "layout-header",
|
|
2287
2306
|
isPor: !0
|
|
2288
|
-
}),
|
|
2307
|
+
}), p = v(() => u.value.fixedHeader), C = v(() => u.value.layout === "side" || u.value.layout === "simple"), {
|
|
2289
2308
|
wrapSSR: S,
|
|
2290
2309
|
hashId: s
|
|
2291
|
-
} =
|
|
2310
|
+
} = le("ProLayoutHeader", [Ta], c), x = v(() => ({
|
|
2292
2311
|
[`${s.value}`]: !0,
|
|
2293
|
-
[`${
|
|
2312
|
+
[`${c}`]: !0,
|
|
2294
2313
|
[`${t.value.header}`]: t.value.header,
|
|
2295
|
-
[`${
|
|
2296
|
-
})), I =
|
|
2314
|
+
[`${c}-fixed-header`]: p.value
|
|
2315
|
+
})), I = v(() => p.value && !d.value), M = v(() => {
|
|
2297
2316
|
if (i.value?.width === 0 && a.value)
|
|
2298
2317
|
return "100%";
|
|
2299
2318
|
const y = l.value ? i.value?.width : m.value.siderWidth;
|
|
2300
|
-
return
|
|
2301
|
-
}), T =
|
|
2302
|
-
const y = o(
|
|
2319
|
+
return C.value && I.value ? l.value ? y ? `calc(100% - ${z(y)})` : "100%" : y ? `calc(100% - ${z(y)})` : "100%" : "100%";
|
|
2320
|
+
}), T = v(() => p.value ? 0 : void 0), N = () => {
|
|
2321
|
+
const y = o(Pa, e, null);
|
|
2303
2322
|
return e.headerRender ? e.headerRender({
|
|
2304
2323
|
props: e,
|
|
2305
2324
|
defaultDom: y
|
|
@@ -2307,30 +2326,30 @@ const {
|
|
|
2307
2326
|
};
|
|
2308
2327
|
return () => {
|
|
2309
2328
|
let y;
|
|
2310
|
-
return S(o(
|
|
2329
|
+
return S(o(G, null, [p.value && o(vt, {
|
|
2311
2330
|
style: {
|
|
2312
2331
|
height: `${m.value.headerHeight}`,
|
|
2313
2332
|
lineHeight: `${m.value.headerHeight}`,
|
|
2314
2333
|
background: "transparent",
|
|
2315
|
-
marginTop:
|
|
2334
|
+
marginTop: g.value ? `-${m.value.headerHeight}` : void 0
|
|
2316
2335
|
}
|
|
2317
2336
|
}, null), o(vt, {
|
|
2318
|
-
class:
|
|
2337
|
+
class: x.value,
|
|
2319
2338
|
style: {
|
|
2320
2339
|
height: `${m.value.headerHeight}`,
|
|
2321
2340
|
lineHeight: `${m.value.headerHeight}`,
|
|
2322
|
-
width:
|
|
2323
|
-
zIndex:
|
|
2341
|
+
width: M.value,
|
|
2342
|
+
zIndex: C.value ? 100 : 101,
|
|
2324
2343
|
right: T.value,
|
|
2325
|
-
marginTop:
|
|
2344
|
+
marginTop: g.value ? `-${m.value.headerHeight}` : void 0,
|
|
2326
2345
|
...n.value?.header || {}
|
|
2327
2346
|
}
|
|
2328
|
-
},
|
|
2347
|
+
}, Fa(y = N()) ? y : {
|
|
2329
2348
|
default: () => [y]
|
|
2330
2349
|
})]));
|
|
2331
2350
|
};
|
|
2332
2351
|
}
|
|
2333
|
-
}),
|
|
2352
|
+
}), Na = {
|
|
2334
2353
|
visible: {
|
|
2335
2354
|
type: Boolean,
|
|
2336
2355
|
default: void 0
|
|
@@ -2364,20 +2383,20 @@ const {
|
|
|
2364
2383
|
type: Function
|
|
2365
2384
|
}
|
|
2366
2385
|
}, qt = {
|
|
2367
|
-
...
|
|
2386
|
+
...Na,
|
|
2368
2387
|
loading: {
|
|
2369
2388
|
type: Boolean,
|
|
2370
2389
|
default: void 0
|
|
2371
2390
|
},
|
|
2372
2391
|
..._t
|
|
2373
|
-
},
|
|
2392
|
+
}, Ha = {
|
|
2374
2393
|
theme: {
|
|
2375
2394
|
type: [String]
|
|
2376
2395
|
},
|
|
2377
2396
|
onDarkChange: Function,
|
|
2378
2397
|
onThemeChange: Function,
|
|
2379
2398
|
"onUpdate:theme": Function
|
|
2380
|
-
},
|
|
2399
|
+
}, Da = {
|
|
2381
2400
|
id: String,
|
|
2382
2401
|
class: String,
|
|
2383
2402
|
style: {
|
|
@@ -2385,8 +2404,8 @@ const {
|
|
|
2385
2404
|
default: () => ({})
|
|
2386
2405
|
}
|
|
2387
2406
|
}, rt = {
|
|
2407
|
+
...Da,
|
|
2388
2408
|
...Ha,
|
|
2389
|
-
...Na,
|
|
2390
2409
|
...nt,
|
|
2391
2410
|
...it,
|
|
2392
2411
|
..._t,
|
|
@@ -2405,7 +2424,7 @@ const {
|
|
|
2405
2424
|
},
|
|
2406
2425
|
settings: {
|
|
2407
2426
|
type: Object,
|
|
2408
|
-
default: () =>
|
|
2427
|
+
default: () => k
|
|
2409
2428
|
},
|
|
2410
2429
|
menu: {
|
|
2411
2430
|
type: Object,
|
|
@@ -2464,13 +2483,13 @@ const {
|
|
|
2464
2483
|
default: () => {
|
|
2465
2484
|
}
|
|
2466
2485
|
},
|
|
2467
|
-
onContentFullScreenChange:
|
|
2486
|
+
onContentFullScreenChange: he.onContentFullScreenChange
|
|
2468
2487
|
}, Zt = ["menuLinksRender", "appsLogoComponents", "siderActionsRender"], Qt = ["appsLogoComponents", "extraRightDropdownRender"], Jt = Mn([
|
|
2469
2488
|
...Qt,
|
|
2470
2489
|
...Zt,
|
|
2471
2490
|
"pageHeaderRender",
|
|
2472
2491
|
"copyrightRender"
|
|
2473
|
-
]),
|
|
2492
|
+
]), za = [
|
|
2474
2493
|
"footerRender",
|
|
2475
2494
|
"menuExtraRender",
|
|
2476
2495
|
"menuFooterRender",
|
|
@@ -2483,9 +2502,9 @@ const {
|
|
|
2483
2502
|
"breadcrumbRender",
|
|
2484
2503
|
"collapsedButtonRender"
|
|
2485
2504
|
];
|
|
2486
|
-
[...Jt, ...
|
|
2487
|
-
const Ct = 40,
|
|
2488
|
-
const { theme: n } =
|
|
2505
|
+
[...Jt, ...za];
|
|
2506
|
+
const Ct = 40, Wa = (e) => {
|
|
2507
|
+
const { theme: n } = xe(e);
|
|
2489
2508
|
return {
|
|
2490
2509
|
[`${e.componentTitleCls}`]: {
|
|
2491
2510
|
display: "flex",
|
|
@@ -2624,7 +2643,7 @@ const Ct = 40, za = (e) => {
|
|
|
2624
2643
|
"&-fixed": {
|
|
2625
2644
|
position: "fixed",
|
|
2626
2645
|
height: Ct,
|
|
2627
|
-
top:
|
|
2646
|
+
top: se(e.layout?.header?.heightLayoutHeader || k.headerHeight),
|
|
2628
2647
|
right: 0,
|
|
2629
2648
|
zIndex: 9,
|
|
2630
2649
|
transition: "width .2s"
|
|
@@ -2632,16 +2651,16 @@ const Ct = 40, za = (e) => {
|
|
|
2632
2651
|
}
|
|
2633
2652
|
};
|
|
2634
2653
|
};
|
|
2635
|
-
function
|
|
2636
|
-
return
|
|
2654
|
+
function ja(e) {
|
|
2655
|
+
return Ce("ProMultiTabs", (n) => {
|
|
2637
2656
|
const t = Qe(n, {
|
|
2638
2657
|
componentWrapCls: `${n.componentCls}-wrap`,
|
|
2639
2658
|
componentTitleCls: `${n.componentCls}-title`
|
|
2640
2659
|
});
|
|
2641
|
-
return [
|
|
2660
|
+
return [Wa(t)];
|
|
2642
2661
|
}, e);
|
|
2643
2662
|
}
|
|
2644
|
-
const
|
|
2663
|
+
const Aa = [{
|
|
2645
2664
|
key: "fixed",
|
|
2646
2665
|
label: "置顶",
|
|
2647
2666
|
icon: (e) => o(ke, {
|
|
@@ -2653,11 +2672,11 @@ const ja = [{
|
|
|
2653
2672
|
icon: o(Ke, null, null)
|
|
2654
2673
|
}, {
|
|
2655
2674
|
key: "fullScreen",
|
|
2656
|
-
icon: (e) => e ? o(St, null, null) : o(
|
|
2675
|
+
icon: (e) => e ? o(St, null, null) : o($t, null, null)
|
|
2657
2676
|
}, {
|
|
2658
2677
|
key: "reloadPage",
|
|
2659
2678
|
label: "重新加载",
|
|
2660
|
-
icon: o(
|
|
2679
|
+
icon: o(Rt, null, null)
|
|
2661
2680
|
}, {
|
|
2662
2681
|
key: "newBlank",
|
|
2663
2682
|
label: "新窗口打开",
|
|
@@ -2685,20 +2704,20 @@ const ja = [{
|
|
|
2685
2704
|
label: "关闭全部",
|
|
2686
2705
|
icon: o(yn, null, null)
|
|
2687
2706
|
}];
|
|
2688
|
-
function
|
|
2707
|
+
function Ka(e, n) {
|
|
2689
2708
|
const {
|
|
2690
2709
|
fixed: t
|
|
2691
|
-
} = n.tabs, a =
|
|
2710
|
+
} = n.tabs, a = re(t) ? t : t === 0;
|
|
2692
2711
|
return e.key === "fixed" ? a ? "取消置顶" : "置顶" : e.key === "fullScreen" ? n.fullScreen ? "还原" : "最大化" : e.label;
|
|
2693
2712
|
}
|
|
2694
|
-
function
|
|
2695
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2713
|
+
function Ua(e) {
|
|
2714
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ve(e);
|
|
2696
2715
|
}
|
|
2697
|
-
const
|
|
2716
|
+
const ka = Pt.TabPane, Ea = ye.Item;
|
|
2698
2717
|
function L(e) {
|
|
2699
2718
|
return e.name;
|
|
2700
2719
|
}
|
|
2701
|
-
const
|
|
2720
|
+
const Xa = /* @__PURE__ */ X({
|
|
2702
2721
|
props: qt,
|
|
2703
2722
|
inheritAttrs: !1,
|
|
2704
2723
|
setup(e, {
|
|
@@ -2706,64 +2725,64 @@ const Ea = /* @__PURE__ */ G({
|
|
|
2706
2725
|
}) {
|
|
2707
2726
|
const {
|
|
2708
2727
|
storage: t
|
|
2709
|
-
} = Xe(e), a =
|
|
2728
|
+
} = Xe(e), a = q(!1), l = we({
|
|
2710
2729
|
activeKey: "",
|
|
2711
2730
|
contextMenuActiveKey: ""
|
|
2712
|
-
}), i =
|
|
2731
|
+
}), i = Ne(), {
|
|
2713
2732
|
isMobile: r,
|
|
2714
|
-
collapsedEffect:
|
|
2715
|
-
collapsedProps:
|
|
2733
|
+
collapsedEffect: g,
|
|
2734
|
+
collapsedProps: u,
|
|
2716
2735
|
layoutProps: d,
|
|
2717
2736
|
contentFullScreen: m,
|
|
2718
|
-
settings:
|
|
2719
|
-
menu:
|
|
2720
|
-
renderRouterView:
|
|
2737
|
+
settings: c,
|
|
2738
|
+
menu: p,
|
|
2739
|
+
renderRouterView: C,
|
|
2721
2740
|
getPrefixCls: S
|
|
2722
|
-
} =
|
|
2741
|
+
} = Z(), s = lt(), x = S({
|
|
2723
2742
|
isPor: !0,
|
|
2724
2743
|
suffixCls: "layout-tabs"
|
|
2725
2744
|
}), {
|
|
2726
2745
|
wrapSSR: I,
|
|
2727
|
-
hashId:
|
|
2728
|
-
} =
|
|
2746
|
+
hashId: M
|
|
2747
|
+
} = ja(x), T = Ln(x, {
|
|
2729
2748
|
fixed: [],
|
|
2730
2749
|
normal: []
|
|
2731
2750
|
});
|
|
2732
2751
|
function N(f) {
|
|
2733
|
-
return s?.menuMap?.value?.get(f.name) ||
|
|
2752
|
+
return s?.menuMap?.value?.get(f.name) || p.value?.flatMenus?.some((R) => R.name === f.name);
|
|
2734
2753
|
}
|
|
2735
|
-
const y =
|
|
2754
|
+
const y = we({
|
|
2736
2755
|
fixed: t.value && T.value?.fixed ? T.value?.fixed : [],
|
|
2737
2756
|
normal: t.value && T.value?.normal ? T.value?.normal : []
|
|
2738
2757
|
});
|
|
2739
|
-
U(() =>
|
|
2758
|
+
U(() => p.value.flatMenus, () => {
|
|
2740
2759
|
y.fixed.length && (y.fixed = y.fixed.filter((f) => N(f))), y.normal.length && (y.normal = y.normal.filter((f) => N(f)));
|
|
2741
2760
|
}, {
|
|
2742
2761
|
immediate: !0,
|
|
2743
2762
|
deep: !0
|
|
2744
2763
|
}), U(t, (f) => {
|
|
2745
|
-
T.value = f ?
|
|
2764
|
+
T.value = f ? Fe(an(y)) : {
|
|
2746
2765
|
fixed: [],
|
|
2747
2766
|
normal: []
|
|
2748
2767
|
};
|
|
2749
2768
|
}, {
|
|
2750
2769
|
immediate: !0
|
|
2751
2770
|
});
|
|
2752
|
-
const
|
|
2753
|
-
const f = !(
|
|
2754
|
-
return A.value && f ? m.value ? "100%" : `calc(100% - ${
|
|
2755
|
-
}),
|
|
2756
|
-
[`${
|
|
2757
|
-
[`${
|
|
2758
|
-
[`${
|
|
2759
|
-
[`${
|
|
2760
|
-
})), D =
|
|
2771
|
+
const w = v(() => y.fixed.concat(y.normal)), V = v(() => c.value.layout === "mix" && !r.value && c.value.splitMenus), j = v(() => L(i?.currentRoute?.value)), A = v(() => c.value.fixedTabsBar && !r.value), E = v(() => {
|
|
2772
|
+
const f = !(V.value && p.value.mixSiderMenus.length === 0 || p.value.menuData.length === 0 || c.value.layout === "top");
|
|
2773
|
+
return A.value && f ? m.value ? "100%" : `calc(100% - ${g.value ? z(u.value?.width) : d.value.siderWidth})` : "100%";
|
|
2774
|
+
}), Y = v(() => O(`${x}-wrap`, {
|
|
2775
|
+
[`${M.value}`]: !0,
|
|
2776
|
+
[`${x}-wrap-${e.type}`]: e.type,
|
|
2777
|
+
[`${x}-wrap-fixed`]: c.value.fixedTabsBar,
|
|
2778
|
+
[`${x}-wrap-loading`]: e.loading
|
|
2779
|
+
})), D = v(() => e.destroyOnHide === !1 && e.visible), te = v(() => {
|
|
2761
2780
|
const f = {
|
|
2762
2781
|
display: D.value ? void 0 : "none"
|
|
2763
2782
|
};
|
|
2764
|
-
return
|
|
2783
|
+
return c.value.fixedTabsBar ? {
|
|
2765
2784
|
margin: 0,
|
|
2766
|
-
width:
|
|
2785
|
+
width: E.value,
|
|
2767
2786
|
paddingTop: "6px",
|
|
2768
2787
|
zIndex: 99,
|
|
2769
2788
|
top: m.value ? 0 : void 0,
|
|
@@ -2771,53 +2790,53 @@ const Ea = /* @__PURE__ */ G({
|
|
|
2771
2790
|
} : f;
|
|
2772
2791
|
});
|
|
2773
2792
|
U(() => y, (f) => {
|
|
2774
|
-
t.value && (T.value =
|
|
2793
|
+
t.value && (T.value = Fe(f)), e.onTabsChange?.([...y.fixed, ...y.normal]);
|
|
2775
2794
|
}, {
|
|
2776
2795
|
deep: !0
|
|
2777
2796
|
});
|
|
2778
|
-
const
|
|
2797
|
+
const _ = (f) => w.value.find((R) => L(R) === f), b = (f) => L(f) === j.value, $ = (f) => {
|
|
2779
2798
|
const {
|
|
2780
2799
|
fixed: R
|
|
2781
2800
|
} = f?.meta?.tabState || {};
|
|
2782
|
-
return f?.meta ?
|
|
2783
|
-
},
|
|
2801
|
+
return f?.meta ? re(R) ? R : R === 0 : !1;
|
|
2802
|
+
}, J = (f) => {
|
|
2784
2803
|
const {
|
|
2785
2804
|
hidden: R
|
|
2786
2805
|
} = f?.meta?.tabState || {};
|
|
2787
2806
|
if (f.name && f.meta && R !== !0) {
|
|
2788
|
-
const B =
|
|
2807
|
+
const B = $(f), F = L(f), P = _(F), H = {
|
|
2789
2808
|
name: F,
|
|
2790
2809
|
path: f.path,
|
|
2791
2810
|
fullPath: f.fullPath,
|
|
2792
2811
|
query: f.query,
|
|
2793
2812
|
params: f.params,
|
|
2794
|
-
meta:
|
|
2813
|
+
meta: $e(f.meta, {
|
|
2795
2814
|
tabState: f.meta?.tabState
|
|
2796
2815
|
})
|
|
2797
2816
|
};
|
|
2798
|
-
P ?
|
|
2817
|
+
P ? $e(P, H) : B ? y.fixed.push(H) : y.normal.push(H), b(f) && (l.activeKey = F);
|
|
2799
2818
|
}
|
|
2800
|
-
},
|
|
2819
|
+
}, ue = (f) => {
|
|
2801
2820
|
f.forEach((R) => {
|
|
2802
|
-
|
|
2821
|
+
$(R) && J(Ae(R));
|
|
2803
2822
|
});
|
|
2804
2823
|
};
|
|
2805
|
-
U(() =>
|
|
2806
|
-
|
|
2824
|
+
U(() => p.value.flatMenus, (f) => {
|
|
2825
|
+
ue(f);
|
|
2807
2826
|
}, {
|
|
2808
2827
|
deep: !0,
|
|
2809
2828
|
immediate: !0
|
|
2810
2829
|
}), U(() => i?.currentRoute?.value, (f) => {
|
|
2811
|
-
f &&
|
|
2830
|
+
f && J(f);
|
|
2812
2831
|
}, {
|
|
2813
2832
|
deep: !0,
|
|
2814
2833
|
immediate: !0
|
|
2815
2834
|
});
|
|
2816
|
-
const
|
|
2817
|
-
const R =
|
|
2835
|
+
const De = (f) => {
|
|
2836
|
+
const R = w.value.find((B) => (f || l.activeKey) === L(B));
|
|
2818
2837
|
return R?.redirect || R?.fullPath || R?.path || "";
|
|
2819
2838
|
};
|
|
2820
|
-
function
|
|
2839
|
+
function de(f) {
|
|
2821
2840
|
const R = {};
|
|
2822
2841
|
return f.query && (R.query = f.query), f.params && (R.params = f.params), R;
|
|
2823
2842
|
}
|
|
@@ -2826,56 +2845,56 @@ const Ea = /* @__PURE__ */ G({
|
|
|
2826
2845
|
addType: B,
|
|
2827
2846
|
params: F
|
|
2828
2847
|
}) => {
|
|
2829
|
-
const P =
|
|
2830
|
-
R === "add" && B ? y[P][B](F) : R === "merge" ? y[P] = y[P].map((H) => L(H) === L(f) ?
|
|
2831
|
-
},
|
|
2832
|
-
const f =
|
|
2848
|
+
const P = $(f) ? "fixed" : "normal";
|
|
2849
|
+
R === "add" && B ? y[P][B](F) : R === "merge" ? y[P] = y[P].map((H) => L(H) === L(f) ? $e(H, F) : H) : R === "remove" && (y[P] = y[P].filter((H) => L(H) !== L(f)));
|
|
2850
|
+
}, Ie = () => {
|
|
2851
|
+
const f = w.value.slice(-1)[0];
|
|
2833
2852
|
f ? i.push({
|
|
2834
|
-
path:
|
|
2835
|
-
...
|
|
2853
|
+
path: De(L(f)),
|
|
2854
|
+
...de(f)
|
|
2836
2855
|
}) : i.push("/");
|
|
2837
2856
|
}, We = (f, R) => {
|
|
2838
|
-
const B =
|
|
2857
|
+
const B = w.value.find((F) => f === L(F));
|
|
2839
2858
|
B && (ze(B, {
|
|
2840
2859
|
type: "remove",
|
|
2841
2860
|
params: B
|
|
2842
2861
|
}), R?.(B));
|
|
2843
2862
|
}, _e = () => {
|
|
2844
2863
|
y.fixed = [], y.normal = [];
|
|
2845
|
-
},
|
|
2864
|
+
}, me = async (f) => {
|
|
2846
2865
|
We(f, (R) => {
|
|
2847
|
-
|
|
2866
|
+
b(R) && Ie();
|
|
2848
2867
|
});
|
|
2849
|
-
},
|
|
2850
|
-
const R =
|
|
2868
|
+
}, W = (f) => {
|
|
2869
|
+
const R = w.value.find((B) => L(B) === f);
|
|
2851
2870
|
R && l.activeKey !== L(R) && i.push({
|
|
2852
|
-
path:
|
|
2853
|
-
...
|
|
2871
|
+
path: De(L(R)),
|
|
2872
|
+
...de(R)
|
|
2854
2873
|
});
|
|
2855
|
-
},
|
|
2856
|
-
|
|
2857
|
-
|
|
2874
|
+
}, Q = Nn(() => {
|
|
2875
|
+
C.value = !1, a.value = !0, e.onReloadPage && e.onReloadPage?.(), setTimeout(() => {
|
|
2876
|
+
C.value = !0;
|
|
2858
2877
|
}, 200), setTimeout(() => {
|
|
2859
2878
|
a.value = !1;
|
|
2860
2879
|
}, 500);
|
|
2861
|
-
}, 500),
|
|
2880
|
+
}, 500), ee = (f) => l[f], ne = (f) => {
|
|
2862
2881
|
i.push({
|
|
2863
2882
|
path: f.path,
|
|
2864
|
-
...
|
|
2883
|
+
...de(f)
|
|
2865
2884
|
});
|
|
2866
|
-
},
|
|
2867
|
-
let B = y.normal.findIndex((K) => L(K) ===
|
|
2868
|
-
const F =
|
|
2885
|
+
}, fe = (f, R) => {
|
|
2886
|
+
let B = y.normal.findIndex((K) => L(K) === ee(R));
|
|
2887
|
+
const F = w.value.find((K) => L(K) === ee(R)), P = $(F);
|
|
2869
2888
|
let H = !1;
|
|
2870
2889
|
switch (f) {
|
|
2871
2890
|
case "fixed":
|
|
2872
|
-
P ? (B = y.fixed.findIndex((K) => L(K) ===
|
|
2891
|
+
P ? (B = y.fixed.findIndex((K) => L(K) === ee(R)), y.normal.unshift($e(F, {
|
|
2873
2892
|
meta: {
|
|
2874
2893
|
tabState: {
|
|
2875
2894
|
fixed: !P
|
|
2876
2895
|
}
|
|
2877
2896
|
}
|
|
2878
|
-
})), y.fixed = y.fixed.filter((K, ce) => ce !== B)) : (y.fixed.push(
|
|
2897
|
+
})), y.fixed = y.fixed.filter((K, ce) => ce !== B)) : (y.fixed.push($e(F, {
|
|
2879
2898
|
meta: {
|
|
2880
2899
|
tabState: {
|
|
2881
2900
|
fixed: !P
|
|
@@ -2884,22 +2903,22 @@ const Ea = /* @__PURE__ */ G({
|
|
|
2884
2903
|
})), y.normal = y.normal.filter((K, ce) => ce !== B));
|
|
2885
2904
|
break;
|
|
2886
2905
|
case "close":
|
|
2887
|
-
|
|
2906
|
+
me(L(F) || "");
|
|
2888
2907
|
break;
|
|
2889
2908
|
case "closeOthersTabs":
|
|
2890
|
-
y.normal = y.normal.filter((K) => L(K) ===
|
|
2909
|
+
y.normal = y.normal.filter((K) => L(K) === ee(R) || $(K)), H = l[R] !== l.activeKey, H && ne(F);
|
|
2891
2910
|
break;
|
|
2892
2911
|
case "closeLeftTabs":
|
|
2893
|
-
ut(B) && (y.normal = y.normal.filter((K, ce) => ce >= B ||
|
|
2912
|
+
ut(B) && (y.normal = y.normal.filter((K, ce) => ce >= B || $(K)), H = !w.value.some((K) => L(K) === l.activeKey), H && ne(F));
|
|
2894
2913
|
break;
|
|
2895
2914
|
case "closeRightTabs":
|
|
2896
|
-
ut(B) && (y.normal = y.normal.filter((K, ce) => ce <= B ||
|
|
2915
|
+
ut(B) && (y.normal = y.normal.filter((K, ce) => ce <= B || $(K))), H = !w.value.some((K) => L(K) === l.activeKey), H && ne(F);
|
|
2897
2916
|
break;
|
|
2898
2917
|
case "closeAllTabs":
|
|
2899
|
-
y.normal = y.normal.filter((K) =>
|
|
2918
|
+
y.normal = y.normal.filter((K) => $(K)), Ie();
|
|
2900
2919
|
break;
|
|
2901
2920
|
case "reloadPage":
|
|
2902
|
-
(B === 0 || B) && l.activeKey ===
|
|
2921
|
+
(B === 0 || B) && l.activeKey === ee(R) && Q();
|
|
2903
2922
|
break;
|
|
2904
2923
|
case "newBlank":
|
|
2905
2924
|
window.open(location.href);
|
|
@@ -2908,38 +2927,38 @@ const Ea = /* @__PURE__ */ G({
|
|
|
2908
2927
|
m.value = !m.value;
|
|
2909
2928
|
break;
|
|
2910
2929
|
}
|
|
2911
|
-
},
|
|
2912
|
-
const B =
|
|
2930
|
+
}, Se = (f, R) => {
|
|
2931
|
+
const B = w.value.findIndex((F) => L(F) === R);
|
|
2913
2932
|
if (f === "closeOthersTabs")
|
|
2914
|
-
return
|
|
2933
|
+
return w.value.filter((P, H) => H !== B && !$(P)).length === 0;
|
|
2915
2934
|
if (f === "closeLeftTabs")
|
|
2916
|
-
return
|
|
2935
|
+
return w.value.filter((P, H) => H < B && !$(P)).length === 0;
|
|
2917
2936
|
if (f === "closeRightTabs")
|
|
2918
|
-
return
|
|
2937
|
+
return w.value.filter((P, H) => H > B && !$(P)).length === 0;
|
|
2919
2938
|
}, je = (f) => {
|
|
2920
2939
|
let R;
|
|
2921
2940
|
const {
|
|
2922
2941
|
name: B,
|
|
2923
2942
|
stateType: F
|
|
2924
2943
|
} = f;
|
|
2925
|
-
return o(
|
|
2944
|
+
return o(ye, {
|
|
2926
2945
|
selectedKeys: [],
|
|
2927
|
-
onClick: (P) =>
|
|
2928
|
-
},
|
|
2929
|
-
if (P.key === "divider") return o(
|
|
2946
|
+
onClick: (P) => fe(P.key, F)
|
|
2947
|
+
}, Ua(R = Aa.map((P) => {
|
|
2948
|
+
if (P.key === "divider") return o(ye.Divider, {
|
|
2930
2949
|
key: P.key
|
|
2931
2950
|
}, null);
|
|
2932
2951
|
const H = P.icon;
|
|
2933
|
-
return P.key === "close" &&
|
|
2952
|
+
return P.key === "close" && $(_(B)) ? null : o(Ea, {
|
|
2934
2953
|
key: P.key,
|
|
2935
|
-
disabled:
|
|
2954
|
+
disabled: Se(P.key, B)
|
|
2936
2955
|
}, {
|
|
2937
|
-
default: () => [P.icon && typeof P.icon == "function" ? P.key === "fullScreen" ? P.icon(m.value) : P.key === "fixed" ? P.icon(
|
|
2956
|
+
default: () => [P.icon && typeof P.icon == "function" ? P.key === "fullScreen" ? P.icon(m.value) : P.key === "fixed" ? P.icon($(_(B))) : null : o(H, null, null), o("span", {
|
|
2938
2957
|
style: {
|
|
2939
2958
|
marginInlineStart: "8px"
|
|
2940
2959
|
}
|
|
2941
|
-
}, [
|
|
2942
|
-
tabs:
|
|
2960
|
+
}, [Ka(P, {
|
|
2961
|
+
tabs: _(B)?.meta?.tabState || {},
|
|
2943
2962
|
fullScreen: m.value
|
|
2944
2963
|
})])]
|
|
2945
2964
|
});
|
|
@@ -2949,7 +2968,7 @@ const Ea = /* @__PURE__ */ G({
|
|
|
2949
2968
|
}, en = ({
|
|
2950
2969
|
router: f
|
|
2951
2970
|
}) => {
|
|
2952
|
-
const R = e.itemRender ? e.itemRender(f) : null, B =
|
|
2971
|
+
const R = e.itemRender ? e.itemRender(f) : null, B = $(f);
|
|
2953
2972
|
return o(dt, {
|
|
2954
2973
|
trigger: "contextmenu",
|
|
2955
2974
|
overlay: o(je, {
|
|
@@ -2961,14 +2980,14 @@ const Ea = /* @__PURE__ */ G({
|
|
|
2961
2980
|
}
|
|
2962
2981
|
}, {
|
|
2963
2982
|
default: () => [R || o("div", {
|
|
2964
|
-
class: [`${
|
|
2983
|
+
class: [`${x}-title`, M.value]
|
|
2965
2984
|
}, [f.meta?.title, B && o(ke, {
|
|
2966
2985
|
type: "pin",
|
|
2967
|
-
class: [`${
|
|
2968
|
-
}, null),
|
|
2969
|
-
class: [`${
|
|
2986
|
+
class: [`${x}-icon`, M.value]
|
|
2987
|
+
}, null), w.value.length > 1 && !$(f) && o(Ke, {
|
|
2988
|
+
class: [`${x}-close-btn`, M.value],
|
|
2970
2989
|
onClick: (F) => {
|
|
2971
|
-
F.stopPropagation(),
|
|
2990
|
+
F.stopPropagation(), me(L(f) || "");
|
|
2972
2991
|
}
|
|
2973
2992
|
}, null)])]
|
|
2974
2993
|
});
|
|
@@ -2978,20 +2997,20 @@ const Ea = /* @__PURE__ */ G({
|
|
|
2978
2997
|
close: We,
|
|
2979
2998
|
change: ze
|
|
2980
2999
|
}), () => {
|
|
2981
|
-
const f = m.value ? St :
|
|
2982
|
-
return I(o(
|
|
3000
|
+
const f = m.value ? St : $t;
|
|
3001
|
+
return I(o(G, null, [c.value.fixedTabsBar && o("div", {
|
|
2983
3002
|
style: {
|
|
2984
3003
|
display: D.value ? void 0 : "none"
|
|
2985
3004
|
},
|
|
2986
|
-
class: [`${
|
|
3005
|
+
class: [`${x}-fixed`, M.value]
|
|
2987
3006
|
}, null), o(Pt, {
|
|
2988
3007
|
hideAdd: !0,
|
|
2989
|
-
style:
|
|
2990
|
-
class:
|
|
3008
|
+
style: te.value,
|
|
3009
|
+
class: Y.value,
|
|
2991
3010
|
activeKey: l.activeKey,
|
|
2992
|
-
onTabClick:
|
|
3011
|
+
onTabClick: W
|
|
2993
3012
|
}, {
|
|
2994
|
-
default: () => [
|
|
3013
|
+
default: () => [w.value.map((R) => o(ka, {
|
|
2995
3014
|
key: L(R),
|
|
2996
3015
|
closable: !1,
|
|
2997
3016
|
tab: o(en, {
|
|
@@ -2999,10 +3018,10 @@ const Ea = /* @__PURE__ */ G({
|
|
|
2999
3018
|
}, null)
|
|
3000
3019
|
}, null))],
|
|
3001
3020
|
rightExtra: () => o("div", {
|
|
3002
|
-
class: O(`${
|
|
3003
|
-
}, [o(
|
|
3004
|
-
class: [`${
|
|
3005
|
-
onClick: () =>
|
|
3021
|
+
class: O(`${x}-dropdown-menu`, M.value)
|
|
3022
|
+
}, [o(Rt, {
|
|
3023
|
+
class: [`${x}-dropdown-menu-btn`, M.value],
|
|
3024
|
+
onClick: () => fe("reloadPage", "activeKey")
|
|
3006
3025
|
}, null), o(dt, {
|
|
3007
3026
|
overlay: o(je, {
|
|
3008
3027
|
name: l.activeKey,
|
|
@@ -3010,20 +3029,20 @@ const Ea = /* @__PURE__ */ G({
|
|
|
3010
3029
|
}, null)
|
|
3011
3030
|
}, {
|
|
3012
3031
|
default: () => [o(bn, {
|
|
3013
|
-
class: [`${
|
|
3032
|
+
class: [`${x}-dropdown-menu-btn`, M.value]
|
|
3014
3033
|
}, null)]
|
|
3015
3034
|
}), o(f, {
|
|
3016
|
-
class: [`${
|
|
3017
|
-
onClick: () =>
|
|
3035
|
+
class: [`${x}-dropdown-menu-btn`, M.value],
|
|
3036
|
+
onClick: () => fe("fullScreen", "activeKey")
|
|
3018
3037
|
}, null)])
|
|
3019
3038
|
})]));
|
|
3020
3039
|
};
|
|
3021
3040
|
}
|
|
3022
|
-
}),
|
|
3041
|
+
}), Va = ["isChildrenLayout", "loading", "onTabsChange", "onReloadPage"], Ga = /* @__PURE__ */ X({
|
|
3023
3042
|
inheritAttrs: !1,
|
|
3024
3043
|
displayName: "wrap-content",
|
|
3025
3044
|
props: {
|
|
3026
|
-
...
|
|
3045
|
+
...be(qt, ["visible", "destroyOnHide", "storage", "itemRender"]),
|
|
3027
3046
|
hashId: String,
|
|
3028
3047
|
prefixCls: String,
|
|
3029
3048
|
isChildrenLayout: Boolean,
|
|
@@ -3038,26 +3057,26 @@ const Ea = /* @__PURE__ */ G({
|
|
|
3038
3057
|
layoutProps: l,
|
|
3039
3058
|
settings: i,
|
|
3040
3059
|
fullScreenOnTabsHide: r
|
|
3041
|
-
} =
|
|
3060
|
+
} = Z(), g = v(() => re(e.tabsRoute?.visible) ? e.tabsRoute?.visible : !(a.value && r.value));
|
|
3042
3061
|
return () => {
|
|
3043
3062
|
const {
|
|
3044
|
-
prefixCls:
|
|
3063
|
+
prefixCls: u,
|
|
3045
3064
|
hashId: d,
|
|
3046
3065
|
tabsRoute: m,
|
|
3047
|
-
...
|
|
3066
|
+
...c
|
|
3048
3067
|
} = e;
|
|
3049
3068
|
return e.isChildrenLayout ? n.default?.() : o("div", {
|
|
3050
|
-
class: O(`${
|
|
3051
|
-
}, [!i.value.showTabsBar || l.value.isWide || i.value.layout === "simple" ? null : o(
|
|
3069
|
+
class: O(`${u}-container`, d, l.value.siderWidth && `${u}-container-has-silder`)
|
|
3070
|
+
}, [!i.value.showTabsBar || l.value.isWide || i.value.layout === "simple" ? null : o(Xa, oe({
|
|
3052
3071
|
ref: t
|
|
3053
|
-
},
|
|
3054
|
-
visible:
|
|
3072
|
+
}, c, e.tabsRoute, {
|
|
3073
|
+
visible: g.value
|
|
3055
3074
|
}), null), n.default?.()]);
|
|
3056
3075
|
};
|
|
3057
3076
|
}
|
|
3058
3077
|
}), {
|
|
3059
|
-
Content:
|
|
3060
|
-
} =
|
|
3078
|
+
Content: Ya
|
|
3079
|
+
} = Pe, _a = /* @__PURE__ */ X({
|
|
3061
3080
|
name: "BaseProLayout",
|
|
3062
3081
|
inheritAttrs: !1,
|
|
3063
3082
|
props: {
|
|
@@ -3075,52 +3094,52 @@ const Ea = /* @__PURE__ */ G({
|
|
|
3075
3094
|
}), {
|
|
3076
3095
|
wrapSSR: l,
|
|
3077
3096
|
hashId: i
|
|
3078
|
-
} =
|
|
3097
|
+
} = le("ProLayout", [ya, ba], a), {
|
|
3079
3098
|
theme: r,
|
|
3080
|
-
resolvedTheme:
|
|
3081
|
-
} = Tt(), [
|
|
3099
|
+
resolvedTheme: g
|
|
3100
|
+
} = Tt(), [u, d] = Me(!1), m = vn(), c = lt(), p = Cn({
|
|
3082
3101
|
slots: n,
|
|
3083
3102
|
props: e,
|
|
3084
3103
|
keys: Jt,
|
|
3085
3104
|
render: !0
|
|
3086
3105
|
}), {
|
|
3087
|
-
token:
|
|
3088
|
-
} =
|
|
3106
|
+
token: C
|
|
3107
|
+
} = Le(), S = q(), s = q(!!e.collapsedProps?.value), x = q(!0), I = q(!1), M = q(!1), T = q(), N = q(ct().uuid(10)), y = we({
|
|
3089
3108
|
position: "relative"
|
|
3090
|
-
}),
|
|
3091
|
-
let
|
|
3092
|
-
if (
|
|
3093
|
-
|
|
3109
|
+
}), w = v(() => {
|
|
3110
|
+
let b = 0;
|
|
3111
|
+
if (M.value)
|
|
3112
|
+
b = 0;
|
|
3094
3113
|
else if (e.settings.siderWidth === 0)
|
|
3095
|
-
|
|
3114
|
+
b = 0;
|
|
3096
3115
|
else {
|
|
3097
|
-
const
|
|
3098
|
-
|
|
3116
|
+
const $ = e.settings.layout === "wide" ? 208 : k.siderWidth;
|
|
3117
|
+
b = se(e.settings.siderWidth || $);
|
|
3099
3118
|
}
|
|
3100
3119
|
return {
|
|
3101
3120
|
isWide: e.settings.layout === "wide",
|
|
3102
|
-
headerHeight: e.settings.headerHeight === 0 ? 0 :
|
|
3103
|
-
siderWidth:
|
|
3121
|
+
headerHeight: e.settings.headerHeight === 0 ? 0 : se(e.settings.headerHeight || k.headerHeight),
|
|
3122
|
+
siderWidth: b,
|
|
3104
3123
|
hasSilder: e.settings.layout === "mix" || e.settings.layout === "side" || e.settings.layout === "wide" || !1
|
|
3105
3124
|
};
|
|
3106
|
-
}),
|
|
3125
|
+
}), V = v(() => qe({
|
|
3107
3126
|
position: "fixed",
|
|
3108
3127
|
width: 64
|
|
3109
|
-
}, e.collapsedProps || {})),
|
|
3110
|
-
const
|
|
3128
|
+
}, e.collapsedProps || {})), j = v(() => {
|
|
3129
|
+
const b = e.route || c?.menuData?.value || [], $ = c?.flatMenus?.value ?? wt(b);
|
|
3111
3130
|
return {
|
|
3112
3131
|
...e.menu,
|
|
3113
|
-
menuData:
|
|
3114
|
-
flatMenus:
|
|
3132
|
+
menuData: b,
|
|
3133
|
+
flatMenus: $,
|
|
3115
3134
|
key: r.value,
|
|
3116
|
-
baseTheme:
|
|
3117
|
-
mixSiderMenus:
|
|
3135
|
+
baseTheme: g.value,
|
|
3136
|
+
mixSiderMenus: w.value.hasSilder && e?.selectedKeys ? ia(b, e.selectedKeys[0]) : []
|
|
3118
3137
|
};
|
|
3119
|
-
}), A =
|
|
3138
|
+
}), A = v(() => (m.value === "sm" || m.value === "xs") && !e.disableMobile && !w.value.isWide), E = v(() => ({
|
|
3120
3139
|
...e.breadcrumb,
|
|
3121
3140
|
position: e.breadcrumb?.position && Ve(e.breadcrumb?.position) ? e.breadcrumb?.position : e.settings.layout === "side" ? "header" : "pageHeader",
|
|
3122
3141
|
visible: e.breadcrumb?.visible ?? !0,
|
|
3123
|
-
itemRender:
|
|
3142
|
+
itemRender: Be({
|
|
3124
3143
|
slots: n,
|
|
3125
3144
|
props: {
|
|
3126
3145
|
breadcrumbRender: e.pageContainer?.breadcrumbRender
|
|
@@ -3128,111 +3147,111 @@ const Ea = /* @__PURE__ */ G({
|
|
|
3128
3147
|
key: "breadcrumbRender"
|
|
3129
3148
|
})
|
|
3130
3149
|
}));
|
|
3131
|
-
U(() => e.collapsedProps?.value, (
|
|
3132
|
-
s.value =
|
|
3133
|
-
}), U(() => s.value, (
|
|
3134
|
-
e.onCollapse?.(
|
|
3135
|
-
}), U([() => e.settings.layout], ([
|
|
3136
|
-
(
|
|
3137
|
-
}), U(() =>
|
|
3138
|
-
if (
|
|
3139
|
-
const
|
|
3140
|
-
|
|
3150
|
+
U(() => e.collapsedProps?.value, (b) => {
|
|
3151
|
+
s.value = !!b;
|
|
3152
|
+
}), U(() => s.value, (b) => {
|
|
3153
|
+
e.onCollapse?.(b);
|
|
3154
|
+
}), U([() => e.settings.layout], ([b]) => {
|
|
3155
|
+
(b === "wide" || b === "simple") && (M.value = !1), N.value = ct().uuid(10);
|
|
3156
|
+
}), U(() => w.value.isWide, (b) => {
|
|
3157
|
+
if (b) {
|
|
3158
|
+
const $ = document.querySelector('meta[name="viewport"]');
|
|
3159
|
+
$ && ($.content = "");
|
|
3141
3160
|
}
|
|
3142
3161
|
}, {
|
|
3143
3162
|
immediate: !0
|
|
3144
|
-
}), U(
|
|
3145
|
-
e.onContentFullScreenChange?.(
|
|
3163
|
+
}), U(M, (b) => {
|
|
3164
|
+
e.onContentFullScreenChange?.(b);
|
|
3146
3165
|
}), U([() => e.isChildrenLayout], () => {
|
|
3147
|
-
const
|
|
3148
|
-
(e.isChildrenLayout ||
|
|
3166
|
+
const b = e.styles?.content;
|
|
3167
|
+
(e.isChildrenLayout || b && b.minHeight) && (y.minHeight = 0);
|
|
3149
3168
|
}, {
|
|
3150
3169
|
immediate: !0,
|
|
3151
3170
|
deep: !0
|
|
3152
3171
|
});
|
|
3153
|
-
function
|
|
3154
|
-
return
|
|
3172
|
+
function Y() {
|
|
3173
|
+
return pe({
|
|
3155
3174
|
slots: n,
|
|
3156
3175
|
props: e,
|
|
3157
3176
|
keys: ["menuItemRender", "menuTextRender", "subMenuItemRender", "collapsedIconRender", "collapsedButtonRender"]
|
|
3158
3177
|
});
|
|
3159
3178
|
}
|
|
3160
3179
|
const D = () => {
|
|
3161
|
-
if (e.headerRender === !1 || e.pure || e.settings.layout === "simple" || !
|
|
3180
|
+
if (e.headerRender === !1 || e.pure || e.settings.layout === "simple" || !w.value.headerHeight || w.value.headerHeight === 0)
|
|
3162
3181
|
return null;
|
|
3163
|
-
const
|
|
3182
|
+
const b = pe({
|
|
3164
3183
|
slots: n,
|
|
3165
3184
|
props: e,
|
|
3166
3185
|
keys: ["logoRender", "headerRender", "headerContentRender", "rightContentRender"]
|
|
3167
|
-
}),
|
|
3186
|
+
}), $ = pe({
|
|
3168
3187
|
slots: n,
|
|
3169
3188
|
props: e,
|
|
3170
3189
|
keys: Qt,
|
|
3171
3190
|
render: !0
|
|
3172
3191
|
});
|
|
3173
|
-
return o(
|
|
3174
|
-
logoRender:
|
|
3175
|
-
headerRender:
|
|
3176
|
-
rightContentRender:
|
|
3177
|
-
headerContentRender:
|
|
3192
|
+
return o(La, oe(e, $, Y(), {
|
|
3193
|
+
logoRender: b.logoRender,
|
|
3194
|
+
headerRender: b.headerRender,
|
|
3195
|
+
rightContentRender: b.rightContentRender,
|
|
3196
|
+
headerContentRender: b.headerContentRender
|
|
3178
3197
|
}), null);
|
|
3179
|
-
},
|
|
3180
|
-
if (!
|
|
3181
|
-
const
|
|
3198
|
+
}, te = () => {
|
|
3199
|
+
if (!w.value.siderWidth || w.value.siderWidth === 0) return null;
|
|
3200
|
+
const b = pe({
|
|
3182
3201
|
slots: n,
|
|
3183
3202
|
props: e,
|
|
3184
3203
|
keys: Zt,
|
|
3185
3204
|
render: !0
|
|
3186
|
-
}),
|
|
3205
|
+
}), $ = pe({
|
|
3187
3206
|
slots: n,
|
|
3188
3207
|
props: e,
|
|
3189
3208
|
keys: ["logoRender", "menuHeaderRender", "menuFooterRender", "menuContentRender"]
|
|
3190
3209
|
});
|
|
3191
|
-
return o(xa,
|
|
3210
|
+
return o(xa, oe(e, b, Y(), {
|
|
3192
3211
|
isMobile: A.value,
|
|
3193
|
-
logoRender:
|
|
3194
|
-
siderWidth:
|
|
3195
|
-
menuHeaderRender:
|
|
3196
|
-
menuFooterRender:
|
|
3197
|
-
menuContentRender:
|
|
3212
|
+
logoRender: $.logoRender,
|
|
3213
|
+
siderWidth: w.value.siderWidth,
|
|
3214
|
+
menuHeaderRender: $.menuHeaderRender,
|
|
3215
|
+
menuFooterRender: $.menuFooterRender,
|
|
3216
|
+
menuContentRender: $.menuContentRender
|
|
3198
3217
|
}), null);
|
|
3199
|
-
},
|
|
3200
|
-
const
|
|
3218
|
+
}, _ = () => {
|
|
3219
|
+
const b = Be({
|
|
3201
3220
|
slots: n,
|
|
3202
3221
|
props: e,
|
|
3203
3222
|
key: "footerRender",
|
|
3204
3223
|
render: !1
|
|
3205
3224
|
});
|
|
3206
|
-
return o(
|
|
3207
|
-
copyright:
|
|
3225
|
+
return o(G, null, [b === !1 ? null : typeof b == "function" ? b(e) : b || o(Ra, {
|
|
3226
|
+
copyright: p.value.copyrightRender,
|
|
3208
3227
|
links: e.footerLinks
|
|
3209
|
-
}, null),
|
|
3228
|
+
}, null), u.value && o("div", {
|
|
3210
3229
|
class: `${a}-has-footer`,
|
|
3211
3230
|
style: {
|
|
3212
3231
|
height: "64px",
|
|
3213
|
-
marginBlockStart:
|
|
3232
|
+
marginBlockStart: C.value.marginMD
|
|
3214
3233
|
}
|
|
3215
3234
|
}, null)]);
|
|
3216
3235
|
};
|
|
3217
3236
|
return Gn({
|
|
3218
|
-
...
|
|
3219
|
-
collapsedProps:
|
|
3237
|
+
...Te(Xe(e), Vn),
|
|
3238
|
+
collapsedProps: V,
|
|
3220
3239
|
getPrefixCls: ae,
|
|
3221
3240
|
collapsed: s,
|
|
3222
|
-
collapsedEffect:
|
|
3223
|
-
settings:
|
|
3224
|
-
menu:
|
|
3241
|
+
collapsedEffect: v(() => V.value?.width ? s.value : !1),
|
|
3242
|
+
settings: v(() => e.settings),
|
|
3243
|
+
menu: j,
|
|
3225
3244
|
tabsComRef: S,
|
|
3226
|
-
contentFullScreen:
|
|
3227
|
-
layoutProps:
|
|
3245
|
+
contentFullScreen: M,
|
|
3246
|
+
layoutProps: w,
|
|
3228
3247
|
isMobile: A,
|
|
3229
|
-
renderRouterView:
|
|
3230
|
-
breadcrumb:
|
|
3248
|
+
renderRouterView: x,
|
|
3249
|
+
breadcrumb: E,
|
|
3231
3250
|
fullScreenOnTabsHide: I,
|
|
3232
3251
|
breadcrumbRender: T,
|
|
3233
|
-
hasFooterToolbar:
|
|
3252
|
+
hasFooterToolbar: u,
|
|
3234
3253
|
setHasFooterToolbar: d,
|
|
3235
|
-
pageHeaderRender:
|
|
3254
|
+
pageHeaderRender: v(() => ie({
|
|
3236
3255
|
slots: n,
|
|
3237
3256
|
props: {
|
|
3238
3257
|
pageHeaderRender: e.pageContainer?.pageHeaderRender
|
|
@@ -3242,12 +3261,12 @@ const Ea = /* @__PURE__ */ G({
|
|
|
3242
3261
|
}), t({
|
|
3243
3262
|
tabsComRef: () => S.value
|
|
3244
3263
|
}), () => {
|
|
3245
|
-
const
|
|
3246
|
-
minWidth:
|
|
3247
|
-
minHeight: e.settings.layout === "simple" ? `calc(100vh - ${
|
|
3264
|
+
const b = {
|
|
3265
|
+
minWidth: w.value.isWide ? se(e.settings.wideWidth) : void 0,
|
|
3266
|
+
minHeight: e.settings.layout === "simple" ? `calc(100vh - ${se(e.settings.headerHeight)})` : void 0,
|
|
3248
3267
|
...e.styles?.root || {}
|
|
3249
3268
|
};
|
|
3250
|
-
return l(o(
|
|
3269
|
+
return l(o(G, null, [e.pure ? n.default?.() : o("div", {
|
|
3251
3270
|
id: e.id,
|
|
3252
3271
|
class: O({
|
|
3253
3272
|
[`${i.value}`]: !0,
|
|
@@ -3255,20 +3274,20 @@ const Ea = /* @__PURE__ */ G({
|
|
|
3255
3274
|
[`${a}`]: !0,
|
|
3256
3275
|
[`${a}-${e.settings.layout}`]: !0
|
|
3257
3276
|
}),
|
|
3258
|
-
style:
|
|
3259
|
-
}, [
|
|
3277
|
+
style: b
|
|
3278
|
+
}, [C.value.layout?.bgLayout ? o("div", {
|
|
3260
3279
|
class: O(`${a}-bg-list`, i.value)
|
|
3261
|
-
}, null) : null, o(
|
|
3262
|
-
style:
|
|
3263
|
-
width:
|
|
3264
|
-
paddingTop: _n(
|
|
3265
|
-
margin:
|
|
3280
|
+
}, null) : null, o(Pe, {
|
|
3281
|
+
style: w.value.isWide ? {
|
|
3282
|
+
width: se(e.settings.wideWidth),
|
|
3283
|
+
paddingTop: _n(w.value.headerHeight, 20),
|
|
3284
|
+
margin: w.value.isWide ? "0 auto" : void 0
|
|
3266
3285
|
} : void 0
|
|
3267
3286
|
}, {
|
|
3268
|
-
default: () => [
|
|
3287
|
+
default: () => [te(), o(Pe, {
|
|
3269
3288
|
style: y
|
|
3270
3289
|
}, {
|
|
3271
|
-
default: () => [D(), o(
|
|
3290
|
+
default: () => [D(), o(Ga, oe(Te(e, Va), {
|
|
3272
3291
|
tabsRoute: {
|
|
3273
3292
|
...e.tabsRoute,
|
|
3274
3293
|
itemRender: n.tabsRouteItemRender || e.tabsRoute?.itemRender
|
|
@@ -3276,17 +3295,17 @@ const Ea = /* @__PURE__ */ G({
|
|
|
3276
3295
|
hashId: i.value,
|
|
3277
3296
|
prefixCls: a
|
|
3278
3297
|
}), {
|
|
3279
|
-
default: () => [o(
|
|
3298
|
+
default: () => [o(Ya, {
|
|
3280
3299
|
class: O(`${a}-content`, i.value)
|
|
3281
3300
|
}, {
|
|
3282
3301
|
default: () => [n.default?.()]
|
|
3283
3302
|
})]
|
|
3284
|
-
}), !
|
|
3303
|
+
}), !w.value.isWide && _()]
|
|
3285
3304
|
})]
|
|
3286
|
-
}),
|
|
3305
|
+
}), w.value.isWide && _()])]));
|
|
3287
3306
|
};
|
|
3288
3307
|
}
|
|
3289
|
-
}),
|
|
3308
|
+
}), Pi = /* @__PURE__ */ X({
|
|
3290
3309
|
name: "GProLayout",
|
|
3291
3310
|
compatConfig: {
|
|
3292
3311
|
MODE: 3
|
|
@@ -3314,34 +3333,34 @@ const Ea = /* @__PURE__ */ G({
|
|
|
3314
3333
|
emit: t,
|
|
3315
3334
|
expose: a
|
|
3316
3335
|
}) {
|
|
3317
|
-
const l = Tt(), i =
|
|
3336
|
+
const l = Tt(), i = q(), [r, g] = Me(e.theme ?? l?.theme?.value ?? "system");
|
|
3318
3337
|
U(() => e.theme, (s) => {
|
|
3319
3338
|
s && (r.value = s);
|
|
3320
3339
|
});
|
|
3321
|
-
const
|
|
3340
|
+
const u = Ot(), d = v(() => {
|
|
3322
3341
|
let s = e.token || {};
|
|
3323
3342
|
if (!s.layout?.header?.heightLayoutHeader) {
|
|
3324
|
-
const
|
|
3343
|
+
const x = e.settings.headerHeight === 0 ? k.headerHeight : se(e.settings.headerHeight || k.headerHeight);
|
|
3325
3344
|
s = qe(s, {
|
|
3326
3345
|
layout: {
|
|
3327
3346
|
header: {
|
|
3328
|
-
heightLayoutHeader:
|
|
3347
|
+
heightLayoutHeader: x
|
|
3329
3348
|
}
|
|
3330
3349
|
}
|
|
3331
3350
|
});
|
|
3332
3351
|
}
|
|
3333
3352
|
return qe(s, {
|
|
3334
3353
|
layout: {
|
|
3335
|
-
key: `${
|
|
3354
|
+
key: `${u.value ? "dark" : "light"}:${e.settings.layout}`
|
|
3336
3355
|
}
|
|
3337
3356
|
});
|
|
3338
3357
|
}), m = (s) => {
|
|
3339
3358
|
t("collapse", s), e.collapsedProps?.onCollapse && e.collapsedProps.onCollapse(s);
|
|
3340
|
-
},
|
|
3359
|
+
}, c = (s) => {
|
|
3341
3360
|
t("update:open-keys", s), t("openKeys", s);
|
|
3342
|
-
},
|
|
3361
|
+
}, p = (s) => {
|
|
3343
3362
|
t("update:selected-keys", s), t("select", s);
|
|
3344
|
-
},
|
|
3363
|
+
}, C = (s) => {
|
|
3345
3364
|
t("update:tabs", s), t("tabsChange", s);
|
|
3346
3365
|
}, S = (s) => {
|
|
3347
3366
|
t("contentFullScreenChange", s);
|
|
@@ -3353,25 +3372,25 @@ const Ea = /* @__PURE__ */ G({
|
|
|
3353
3372
|
return o(Je, null, {
|
|
3354
3373
|
default: () => [o(In, {
|
|
3355
3374
|
token: d.value,
|
|
3356
|
-
dark:
|
|
3375
|
+
dark: u.value,
|
|
3357
3376
|
cssVar: e.cssVar
|
|
3358
3377
|
}, {
|
|
3359
3378
|
default: () => [o(An, {
|
|
3360
3379
|
theme: r.value,
|
|
3361
|
-
onChange: (
|
|
3362
|
-
|
|
3380
|
+
onChange: (x) => {
|
|
3381
|
+
g(x), t("themeChange", x), t("update:theme", x);
|
|
3363
3382
|
},
|
|
3364
3383
|
onChangeBase: () => {
|
|
3365
|
-
e.onDarkChange?.(
|
|
3384
|
+
e.onDarkChange?.(u.value);
|
|
3366
3385
|
}
|
|
3367
3386
|
}, {
|
|
3368
|
-
default: () => [o(
|
|
3387
|
+
default: () => [o(_a, oe({
|
|
3369
3388
|
ref: i
|
|
3370
|
-
},
|
|
3371
|
-
onSelect:
|
|
3372
|
-
onOpenKeys:
|
|
3389
|
+
}, be(e, s), {
|
|
3390
|
+
onSelect: p,
|
|
3391
|
+
onOpenKeys: c,
|
|
3373
3392
|
onCollapse: m,
|
|
3374
|
-
onTabsChange:
|
|
3393
|
+
onTabsChange: C,
|
|
3375
3394
|
onContentFullScreenChange: S
|
|
3376
3395
|
}), n)]
|
|
3377
3396
|
})]
|
|
@@ -3379,12 +3398,12 @@ const Ea = /* @__PURE__ */ G({
|
|
|
3379
3398
|
});
|
|
3380
3399
|
};
|
|
3381
3400
|
}
|
|
3382
|
-
}), { useInjectContext:
|
|
3401
|
+
}), { useInjectContext: qa, provideContext: Za } = et("pro-page"), Qa = "anticon", Ja = Symbol("configProvider"), eo = {
|
|
3383
3402
|
getPrefixCls: (e, n) => n || (e ? `ant-${e}` : "ant"),
|
|
3384
|
-
iconPrefixCls:
|
|
3385
|
-
getPopupContainer:
|
|
3386
|
-
direction:
|
|
3387
|
-
},
|
|
3403
|
+
iconPrefixCls: v(() => Qa),
|
|
3404
|
+
getPopupContainer: v(() => () => document.body),
|
|
3405
|
+
direction: v(() => "ltr")
|
|
3406
|
+
}, to = () => on(Ja, eo), no = () => ({
|
|
3388
3407
|
extra: {
|
|
3389
3408
|
type: [Object, String, Number, Function, Object, Array],
|
|
3390
3409
|
default: void 0
|
|
@@ -3400,7 +3419,7 @@ const Ea = /* @__PURE__ */ G({
|
|
|
3400
3419
|
},
|
|
3401
3420
|
portalDom: { type: Boolean, default: !0 },
|
|
3402
3421
|
stylish: { type: Object }
|
|
3403
|
-
}),
|
|
3422
|
+
}), ao = (e) => ({
|
|
3404
3423
|
[e.componentCls]: {
|
|
3405
3424
|
position: "fixed",
|
|
3406
3425
|
insetInlineEnd: 0,
|
|
@@ -3436,17 +3455,17 @@ const Ea = /* @__PURE__ */ G({
|
|
|
3436
3455
|
}
|
|
3437
3456
|
}
|
|
3438
3457
|
});
|
|
3439
|
-
function
|
|
3440
|
-
return
|
|
3458
|
+
function oo(e) {
|
|
3459
|
+
return Ce("ProLayoutFooterToolbar", (n) => {
|
|
3441
3460
|
const t = {
|
|
3442
3461
|
...n,
|
|
3443
3462
|
componentCls: `.${e}`
|
|
3444
3463
|
};
|
|
3445
|
-
return [
|
|
3464
|
+
return [ao(t)];
|
|
3446
3465
|
});
|
|
3447
3466
|
}
|
|
3448
|
-
function
|
|
3449
|
-
return
|
|
3467
|
+
function lo(e, { stylish: n }) {
|
|
3468
|
+
return Ce("ProLayoutFooterToolbarStylish", (t) => {
|
|
3450
3469
|
const a = {
|
|
3451
3470
|
...t,
|
|
3452
3471
|
componentCls: `.${e}`
|
|
@@ -3458,29 +3477,29 @@ function oo(e, { stylish: n }) {
|
|
|
3458
3477
|
] : [];
|
|
3459
3478
|
});
|
|
3460
3479
|
}
|
|
3461
|
-
function
|
|
3462
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
3480
|
+
function io(e) {
|
|
3481
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ve(e);
|
|
3463
3482
|
}
|
|
3464
|
-
const
|
|
3483
|
+
const ro = /* @__PURE__ */ X({
|
|
3465
3484
|
name: "FooterToolbar",
|
|
3466
|
-
props:
|
|
3485
|
+
props: no(),
|
|
3467
3486
|
inheritAttrs: !1,
|
|
3468
3487
|
slots: Object,
|
|
3469
3488
|
setup(e, {
|
|
3470
3489
|
slots: n
|
|
3471
3490
|
}) {
|
|
3472
|
-
const t =
|
|
3491
|
+
const t = Z(), a = (t.getPrefixCls || ae)({
|
|
3473
3492
|
suffixCls: "footer-toolbar",
|
|
3474
3493
|
isPor: !0
|
|
3475
3494
|
}), {
|
|
3476
3495
|
getTargetContainer: l
|
|
3477
|
-
} =
|
|
3496
|
+
} = to(), {
|
|
3478
3497
|
wrapSSR: i,
|
|
3479
3498
|
hashId: r
|
|
3480
|
-
} =
|
|
3481
|
-
if (
|
|
3482
|
-
return
|
|
3483
|
-
}, [() => t?.collapsed?.value, () => t?.layoutProps?.value?.hasSilder, () => t?.isMobile, () => t?.layoutProps?.value?.siderWidth]),
|
|
3499
|
+
} = oo(a), g = v(() => t?.collapsed?.value), u = v(() => t?.layoutProps?.value), d = v(() => t?.collapsedProps?.value), m = v(() => t?.isMobile.value ? !1 : t?.collapsedEffect?.value), c = v(() => d?.value?.width ? m.value ? d.value?.width : u.value.siderWidth : g.value ? 0 : u.value.siderWidth), p = Oe(() => {
|
|
3500
|
+
if (u.value?.hasSilder)
|
|
3501
|
+
return u.value?.siderWidth ? t?.isMobile?.value ? "100%" : `calc(100% - ${z(c.value)})` : "100%";
|
|
3502
|
+
}, [() => t?.collapsed?.value, () => t?.layoutProps?.value?.hasSilder, () => t?.isMobile, () => t?.layoutProps?.value?.siderWidth]), C = Oe(() => typeof window > "u" || typeof document > "u" ? null : l?.value?.() || document.body, []), S = lo(`${a}.${a}-stylish`, {
|
|
3484
3503
|
stylish: e.stylish
|
|
3485
3504
|
});
|
|
3486
3505
|
return It(() => {
|
|
@@ -3488,42 +3507,42 @@ const io = /* @__PURE__ */ G({
|
|
|
3488
3507
|
}), ln(() => {
|
|
3489
3508
|
t?.setHasFooterToolbar?.(!1);
|
|
3490
3509
|
}), () => {
|
|
3491
|
-
const s =
|
|
3510
|
+
const s = ie({
|
|
3492
3511
|
slots: n,
|
|
3493
3512
|
props: e,
|
|
3494
3513
|
key: "extra"
|
|
3495
|
-
}),
|
|
3514
|
+
}), x = Be({
|
|
3496
3515
|
slots: n,
|
|
3497
3516
|
props: e,
|
|
3498
3517
|
key: "renderContent"
|
|
3499
|
-
}), I = o(
|
|
3518
|
+
}), I = o(G, null, [o("div", {
|
|
3500
3519
|
class: `${a}-left ${r.value}`.trim()
|
|
3501
3520
|
}, [s]), o("div", {
|
|
3502
3521
|
class: `${a}-right ${r.value}`.trim()
|
|
3503
|
-
}, [n.default?.()])]),
|
|
3522
|
+
}, [n.default?.()])]), M = o("div", {
|
|
3504
3523
|
class: O(e.class, r.value, a, {
|
|
3505
3524
|
[`${a}-stylish`]: !!e.stylish
|
|
3506
3525
|
}),
|
|
3507
3526
|
style: {
|
|
3508
|
-
width:
|
|
3527
|
+
width: p.value,
|
|
3509
3528
|
...e.style
|
|
3510
3529
|
}
|
|
3511
|
-
}, [
|
|
3530
|
+
}, [x && On(x) ? x({
|
|
3512
3531
|
props: {
|
|
3513
3532
|
...e,
|
|
3514
3533
|
...t,
|
|
3515
|
-
leftWidth:
|
|
3534
|
+
leftWidth: p.value
|
|
3516
3535
|
},
|
|
3517
3536
|
dom: I
|
|
3518
|
-
}) : I]), T = !Bn() || !e.portalDom || !
|
|
3519
|
-
to:
|
|
3520
|
-
},
|
|
3521
|
-
default: () => [
|
|
3537
|
+
}) : I]), T = !Bn() || !e.portalDom || !C.value ? M : o(rn, {
|
|
3538
|
+
to: C.value
|
|
3539
|
+
}, io(M) ? M : {
|
|
3540
|
+
default: () => [M]
|
|
3522
3541
|
});
|
|
3523
|
-
return S.wrapSSR(i(o(
|
|
3542
|
+
return S.wrapSSR(i(o(G, null, [T])));
|
|
3524
3543
|
};
|
|
3525
3544
|
}
|
|
3526
|
-
}),
|
|
3545
|
+
}), so = (e) => ({
|
|
3527
3546
|
[`${e.proComponentsCls}-basic-layout&${e.proComponentsCls}-basic-layout-simple`]: {
|
|
3528
3547
|
[`${e.componentCls}`]: {
|
|
3529
3548
|
borderBlockEnd: `1px solid ${e.colorSplit}`
|
|
@@ -3570,25 +3589,25 @@ const io = /* @__PURE__ */ G({
|
|
|
3570
3589
|
}
|
|
3571
3590
|
}
|
|
3572
3591
|
}
|
|
3573
|
-
}),
|
|
3592
|
+
}), uo = /* @__PURE__ */ X({
|
|
3574
3593
|
name: "ProPageHeader",
|
|
3575
3594
|
props: {
|
|
3576
3595
|
close: {
|
|
3577
3596
|
type: Boolean,
|
|
3578
3597
|
default: void 0
|
|
3579
3598
|
},
|
|
3580
|
-
style:
|
|
3581
|
-
content:
|
|
3582
|
-
breadcrumb:
|
|
3599
|
+
style: he.pageHeaderStyle,
|
|
3600
|
+
content: he.pageHeaderContentRender,
|
|
3601
|
+
breadcrumb: he.breadcrumbRender
|
|
3583
3602
|
},
|
|
3584
3603
|
setup(e) {
|
|
3585
|
-
const n =
|
|
3604
|
+
const n = Z(), a = (n?.getPrefixCls || ae)({
|
|
3586
3605
|
isPor: !0,
|
|
3587
3606
|
suffixCls: "page-header"
|
|
3588
3607
|
}), {
|
|
3589
3608
|
wrapSSR: l,
|
|
3590
3609
|
hashId: i
|
|
3591
|
-
} =
|
|
3610
|
+
} = le("ProPageHeader", [so], a);
|
|
3592
3611
|
return () => {
|
|
3593
3612
|
const r = n?.breadcrumb?.value?.position === "pageHeader";
|
|
3594
3613
|
return l(o("div", {
|
|
@@ -3617,8 +3636,8 @@ const io = /* @__PURE__ */ G({
|
|
|
3617
3636
|
}, null)])])]));
|
|
3618
3637
|
};
|
|
3619
3638
|
}
|
|
3620
|
-
}),
|
|
3621
|
-
const { layout: n } =
|
|
3639
|
+
}), co = (e) => {
|
|
3640
|
+
const { layout: n } = xe(e), t = e.layout?.pageContainer, a = t?.borderRadius || e.borderRadiusLG, l = `${e.proComponentsCls}-basic-layout-content`;
|
|
3622
3641
|
return {
|
|
3623
3642
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
3624
3643
|
[`&-content${l}-width`]: {
|
|
@@ -3668,23 +3687,23 @@ const io = /* @__PURE__ */ G({
|
|
|
3668
3687
|
}
|
|
3669
3688
|
};
|
|
3670
3689
|
};
|
|
3671
|
-
function
|
|
3672
|
-
return
|
|
3690
|
+
function mo(e) {
|
|
3691
|
+
return Ce("ProPageContainer", (n) => {
|
|
3673
3692
|
const t = Qe(n, {
|
|
3674
3693
|
gridContent: `${n.proComponentsCls}-grid-content`
|
|
3675
3694
|
});
|
|
3676
|
-
return [
|
|
3695
|
+
return [co(t)];
|
|
3677
3696
|
}, e);
|
|
3678
3697
|
}
|
|
3679
3698
|
function xt(e) {
|
|
3680
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
3699
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ve(e);
|
|
3681
3700
|
}
|
|
3682
|
-
const
|
|
3701
|
+
const fo = {
|
|
3683
3702
|
type: "default"
|
|
3684
|
-
},
|
|
3703
|
+
}, Ti = /* @__PURE__ */ X({
|
|
3685
3704
|
inheritAttrs: !1,
|
|
3686
3705
|
name: "GProPageContainer",
|
|
3687
|
-
props:
|
|
3706
|
+
props: he,
|
|
3688
3707
|
slots: Object,
|
|
3689
3708
|
emits: ["contentFullScreenChange"],
|
|
3690
3709
|
setup(e, {
|
|
@@ -3692,38 +3711,41 @@ const mo = {
|
|
|
3692
3711
|
attrs: t,
|
|
3693
3712
|
expose: a
|
|
3694
3713
|
}) {
|
|
3695
|
-
const l = Ft(), i =
|
|
3714
|
+
const l = Ft(), i = qa(), r = Z(), g = Ia(), u = r?.getPrefixCls || ae, d = u({
|
|
3696
3715
|
suffixCls: "page-container",
|
|
3697
3716
|
isPor: !0
|
|
3698
|
-
}), m =
|
|
3717
|
+
}), m = u({
|
|
3699
3718
|
suffixCls: "grid-content",
|
|
3700
3719
|
isPor: !0
|
|
3701
|
-
}),
|
|
3702
|
-
const
|
|
3720
|
+
}), c = v(() => r?.pageContainer?.value || {}), p = v(() => {
|
|
3721
|
+
const b = re(e.waterMarkProps) ? {} : e.waterMarkProps || {};
|
|
3703
3722
|
return {
|
|
3704
|
-
...
|
|
3705
|
-
...
|
|
3723
|
+
...re(r?.waterMarkProps?.value) ? {} : r?.waterMarkProps?.value || {},
|
|
3724
|
+
...b
|
|
3706
3725
|
};
|
|
3707
|
-
}),
|
|
3708
|
-
const
|
|
3709
|
-
return z(
|
|
3710
|
-
}),
|
|
3711
|
-
const
|
|
3712
|
-
return i?.spinning?.value ? !1 :
|
|
3713
|
-
}),
|
|
3714
|
-
const
|
|
3715
|
-
return typeof e.loading == "boolean" ?
|
|
3716
|
-
...
|
|
3726
|
+
}), C = v(() => e.pageCardProps || c.value?.pageCardProps), S = v(() => e.pageHeaderStyle || c.value?.pageHeaderStyle), s = v(() => e.pageContentStyle || c.value?.pageContentStyle), x = v(() => e.pageChildrenContentClass || c.value?.pageChildrenContentClass || ""), I = v(() => e.pageChildrenContentStyle || c.value?.pageChildrenContentStyle || {}), M = v(() => r?.layoutProps?.value?.isWide), T = v(() => re(e.usePageCard) ? e.usePageCard : re(c.value?.usePageCard) ? c.value?.usePageCard : !0), N = v(() => {
|
|
3727
|
+
const b = e.contentWidth ?? c.value?.contentWidth;
|
|
3728
|
+
return z(b);
|
|
3729
|
+
}), y = v(() => {
|
|
3730
|
+
const b = re(e.loading) ? e.loading : !!e.loading?.spinning;
|
|
3731
|
+
return i?.spinning?.value ? !1 : b;
|
|
3732
|
+
}), w = v(() => {
|
|
3733
|
+
const b = c.value?.loadingProps;
|
|
3734
|
+
return typeof e.loading == "boolean" ? b ?? fo : {
|
|
3735
|
+
...b,
|
|
3717
3736
|
...e.loading
|
|
3718
3737
|
};
|
|
3719
|
-
}),
|
|
3720
|
-
const
|
|
3738
|
+
}), V = v(() => {
|
|
3739
|
+
const b = ie({
|
|
3721
3740
|
slots: n,
|
|
3722
3741
|
props: e,
|
|
3723
3742
|
key: "pageHeaderContentRender"
|
|
3724
|
-
}),
|
|
3725
|
-
return
|
|
3726
|
-
})
|
|
3743
|
+
}), $ = r?.breadcrumb?.value || {}, J = $.routes || [];
|
|
3744
|
+
return M.value ? !1 : $?.position === "pageHeader" && J.length > 0 || b;
|
|
3745
|
+
}), j = v(() => e.height ? {
|
|
3746
|
+
[e.height === "min" ? "min-height" : e.height === "max" ? "max-height" : "height"]: g.value,
|
|
3747
|
+
overflow: e.height !== "min" ? "hidden" : void 0
|
|
3748
|
+
} : {});
|
|
3727
3749
|
U([() => e.breadcrumbRender, () => r?.breadcrumb?.value?.position], () => {
|
|
3728
3750
|
A();
|
|
3729
3751
|
}, {
|
|
@@ -3732,104 +3754,115 @@ const mo = {
|
|
|
3732
3754
|
r && r.fullScreenOnTabsHide && (r.fullScreenOnTabsHide.value = !!e.fullScreenOnTabsHide), A();
|
|
3733
3755
|
});
|
|
3734
3756
|
function A() {
|
|
3735
|
-
const
|
|
3757
|
+
const b = Be({
|
|
3736
3758
|
slots: n,
|
|
3737
3759
|
props: e,
|
|
3738
3760
|
key: "breadcrumbRender"
|
|
3739
3761
|
});
|
|
3740
|
-
r && (r.breadcrumbRender.value = r?.breadcrumb?.value?.position === "header" ?
|
|
3762
|
+
r && (r.breadcrumbRender.value = r?.breadcrumb?.value?.position === "header" ? b : void 0);
|
|
3741
3763
|
}
|
|
3742
3764
|
const {
|
|
3743
|
-
wrapSSR:
|
|
3744
|
-
hashId:
|
|
3745
|
-
} =
|
|
3746
|
-
U(() => r?.contentFullScreen?.value, (
|
|
3747
|
-
e.onContentFullScreenChange?.(
|
|
3765
|
+
wrapSSR: E,
|
|
3766
|
+
hashId: Y
|
|
3767
|
+
} = mo(d);
|
|
3768
|
+
U(() => r?.contentFullScreen?.value, (b) => {
|
|
3769
|
+
e.onContentFullScreenChange?.(b);
|
|
3748
3770
|
});
|
|
3749
|
-
const D =
|
|
3750
|
-
const
|
|
3771
|
+
const D = () => {
|
|
3772
|
+
const b = ie({
|
|
3751
3773
|
slots: n,
|
|
3752
3774
|
props: e,
|
|
3753
3775
|
key: "pageChildrenExtraRender"
|
|
3754
|
-
}),
|
|
3776
|
+
}), $ = O(`${d}-children-container`, Y.value, x.value);
|
|
3755
3777
|
return o("div", {
|
|
3756
|
-
class:
|
|
3778
|
+
class: $,
|
|
3757
3779
|
style: {
|
|
3758
3780
|
...I.value
|
|
3759
3781
|
}
|
|
3760
|
-
}, [
|
|
3761
|
-
class: O(`${d}-spinning`,
|
|
3782
|
+
}, [y.value && o("div", {
|
|
3783
|
+
class: O(`${d}-spinning`, Y.value)
|
|
3762
3784
|
}, [o(Bt, {
|
|
3763
3785
|
indicator: l?.indicator?.value,
|
|
3764
|
-
tip:
|
|
3786
|
+
tip: w.value?.tip
|
|
3765
3787
|
}, null)]), o("div", {
|
|
3766
|
-
class: O(`${d}-spinning-content`,
|
|
3767
|
-
}, [
|
|
3788
|
+
class: O(`${d}-spinning-content`, Y.value, y.value && w.value.type ? `${d}-spinning-content-${w.value.type}` : "")
|
|
3789
|
+
}, [b, T.value ? o(Wn, oe({
|
|
3768
3790
|
bordered: !1
|
|
3791
|
+
}, C.value || {}, {
|
|
3792
|
+
style: {
|
|
3793
|
+
...C.value?.style || {},
|
|
3794
|
+
...j.value
|
|
3795
|
+
},
|
|
3796
|
+
bodyStyle: {
|
|
3797
|
+
...C.value?.bodyStyle || {},
|
|
3798
|
+
...j.value
|
|
3799
|
+
}
|
|
3769
3800
|
}), {
|
|
3770
3801
|
default: () => [n.default?.()]
|
|
3771
|
-
}) :
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3802
|
+
}) : o("div", {
|
|
3803
|
+
class: C.value?.class,
|
|
3804
|
+
style: {
|
|
3805
|
+
...C.value?.style || {},
|
|
3806
|
+
...j.value
|
|
3807
|
+
}
|
|
3808
|
+
}, [n.default?.()])])]);
|
|
3809
|
+
}, te = () => {
|
|
3777
3810
|
if (e.waterMarkProps !== !1 && r?.waterMarkProps?.value !== !1) {
|
|
3778
|
-
let
|
|
3779
|
-
return o(En, Ae(
|
|
3780
|
-
default: () => [
|
|
3811
|
+
let $;
|
|
3812
|
+
return o(En, Ae(p.value), xt($ = D()) ? $ : {
|
|
3813
|
+
default: () => [$]
|
|
3781
3814
|
});
|
|
3782
3815
|
}
|
|
3783
|
-
return
|
|
3784
|
-
},
|
|
3785
|
-
class: [m,
|
|
3816
|
+
return D();
|
|
3817
|
+
}, _ = () => o(G, null, [o("div", {
|
|
3818
|
+
class: [m, Y.value],
|
|
3786
3819
|
style: {
|
|
3787
|
-
width:
|
|
3788
|
-
marginInline:
|
|
3820
|
+
width: N.value,
|
|
3821
|
+
marginInline: N.value && "auto"
|
|
3789
3822
|
}
|
|
3790
3823
|
}, [o("div", {
|
|
3791
|
-
class: `${m}-children ${
|
|
3824
|
+
class: `${m}-children ${Y.value}`,
|
|
3792
3825
|
style: s.value
|
|
3793
|
-
}, [
|
|
3826
|
+
}, [te()])])]);
|
|
3794
3827
|
return a({
|
|
3795
|
-
changeContentFullScreen: (
|
|
3796
|
-
r && (r.contentFullScreen.value =
|
|
3828
|
+
changeContentFullScreen: (b) => {
|
|
3829
|
+
r && (r.contentFullScreen.value = b);
|
|
3797
3830
|
}
|
|
3798
3831
|
}), () => {
|
|
3799
|
-
const
|
|
3832
|
+
const b = ie({
|
|
3800
3833
|
slots: n,
|
|
3801
3834
|
props: e,
|
|
3802
3835
|
key: "footer"
|
|
3803
|
-
}),
|
|
3836
|
+
}), $ = ie({
|
|
3804
3837
|
slots: n,
|
|
3805
3838
|
props: e,
|
|
3806
3839
|
key: "pageHeaderRender"
|
|
3807
|
-
}) || r?.pageHeaderRender?.value,
|
|
3840
|
+
}) || r?.pageHeaderRender?.value, J = ie({
|
|
3808
3841
|
slots: n,
|
|
3809
3842
|
props: e,
|
|
3810
3843
|
key: "pageHeaderContentRender"
|
|
3811
|
-
}),
|
|
3844
|
+
}), ue = Be({
|
|
3812
3845
|
slots: n,
|
|
3813
3846
|
props: e,
|
|
3814
3847
|
key: "breadcrumbRender"
|
|
3815
3848
|
});
|
|
3816
|
-
return
|
|
3817
|
-
class: O(r?.classNames?.value?.content,
|
|
3849
|
+
return E(o("div", {
|
|
3850
|
+
class: O(r?.classNames?.value?.content, Y.value, d, t.class),
|
|
3818
3851
|
style: {
|
|
3819
3852
|
...t.style || {},
|
|
3820
3853
|
...r?.styles?.value?.content || {}
|
|
3821
3854
|
}
|
|
3822
|
-
}, [o(
|
|
3855
|
+
}, [o(G, null, [$ !== !1 && V.value && ($ || o(uo, {
|
|
3823
3856
|
style: S?.value,
|
|
3824
|
-
breadcrumb:
|
|
3825
|
-
content:
|
|
3857
|
+
breadcrumb: ue,
|
|
3858
|
+
content: J,
|
|
3826
3859
|
close: e.fullScreenOnTabsHide
|
|
3827
|
-
}, null)),
|
|
3828
|
-
default: () => [
|
|
3860
|
+
}, null)), _()]), b && o(ro, e.footerToolBarProps || {}, xt(b) ? b : {
|
|
3861
|
+
default: () => [b]
|
|
3829
3862
|
})]));
|
|
3830
3863
|
};
|
|
3831
3864
|
}
|
|
3832
|
-
}),
|
|
3865
|
+
}), po = (e) => ({
|
|
3833
3866
|
[e.componentCls]: {
|
|
3834
3867
|
height: "100%",
|
|
3835
3868
|
[`&${e.componentCls}-loading`]: {
|
|
@@ -3844,7 +3877,7 @@ const mo = {
|
|
|
3844
3877
|
width: "100%",
|
|
3845
3878
|
height: "100%",
|
|
3846
3879
|
zIndex: 200,
|
|
3847
|
-
backgroundColor:
|
|
3880
|
+
backgroundColor: $n(e.colorBgContainer, 0.5),
|
|
3848
3881
|
[`& > ${e.componentCls}-spin`]: {
|
|
3849
3882
|
position: "absolute",
|
|
3850
3883
|
top: "50%",
|
|
@@ -3863,10 +3896,10 @@ const mo = {
|
|
|
3863
3896
|
}
|
|
3864
3897
|
}
|
|
3865
3898
|
});
|
|
3866
|
-
function
|
|
3867
|
-
return
|
|
3899
|
+
function go(e) {
|
|
3900
|
+
return Ce("PageLoading", (n) => [po(n)], e);
|
|
3868
3901
|
}
|
|
3869
|
-
const
|
|
3902
|
+
const Fi = /* @__PURE__ */ X({
|
|
3870
3903
|
name: "GProAppPage",
|
|
3871
3904
|
props: {
|
|
3872
3905
|
...Kn,
|
|
@@ -3888,11 +3921,11 @@ const Ti = /* @__PURE__ */ G({
|
|
|
3888
3921
|
}), {
|
|
3889
3922
|
hashId: l,
|
|
3890
3923
|
wrapSSR: i
|
|
3891
|
-
} =
|
|
3892
|
-
return
|
|
3893
|
-
spinning:
|
|
3924
|
+
} = go(a);
|
|
3925
|
+
return Za({
|
|
3926
|
+
spinning: v(() => e.spinning?.loading)
|
|
3894
3927
|
}), () => {
|
|
3895
|
-
const r =
|
|
3928
|
+
const r = pe({
|
|
3896
3929
|
slots: n,
|
|
3897
3930
|
props: e,
|
|
3898
3931
|
keys: Un,
|
|
@@ -3938,24 +3971,24 @@ const Ti = /* @__PURE__ */ G({
|
|
|
3938
3971
|
}));
|
|
3939
3972
|
};
|
|
3940
3973
|
}
|
|
3941
|
-
}),
|
|
3974
|
+
}), ho = ["left", "right"], Re = ["left", "right", "down", "up"], yo = ["downBig", "upBig", "leftBig", "rightBig"], bo = ["topLeft", "bottomRight", "topRight", "bottomLeft"], vo = ["downLeft", "upRight", "downRight", "upLeft"], Co = {
|
|
3942
3975
|
preset: [
|
|
3943
3976
|
// 预设动画配置
|
|
3944
|
-
{ name: "back", alias: "渐近", directions:
|
|
3945
|
-
{ name: "bounce", alias: "弹跳", directions:
|
|
3977
|
+
{ name: "back", alias: "渐近", directions: Re },
|
|
3978
|
+
{ name: "bounce", alias: "弹跳", directions: Re.concat("default") },
|
|
3946
3979
|
{
|
|
3947
3980
|
name: "fade",
|
|
3948
3981
|
alias: "淡化",
|
|
3949
|
-
directions:
|
|
3982
|
+
directions: Re.concat(yo).concat(bo).concat("default")
|
|
3950
3983
|
},
|
|
3951
3984
|
{ name: "flip", alias: "翻转", directions: ["x", "y"] },
|
|
3952
|
-
{ name: "lightSpeed", alias: "光速", directions:
|
|
3953
|
-
{ name: "rotate", alias: "旋转", directions:
|
|
3985
|
+
{ name: "lightSpeed", alias: "光速", directions: ho },
|
|
3986
|
+
{ name: "rotate", alias: "旋转", directions: vo.concat("default") },
|
|
3954
3987
|
{ name: "roll", alias: "翻滚", directions: ["default"] },
|
|
3955
|
-
{ name: "zoom", alias: "缩放", directions:
|
|
3956
|
-
{ name: "slide", alias: "滑动", directions:
|
|
3988
|
+
{ name: "zoom", alias: "缩放", directions: Re.concat("default") },
|
|
3989
|
+
{ name: "slide", alias: "滑动", directions: Re }
|
|
3957
3990
|
]
|
|
3958
|
-
},
|
|
3991
|
+
}, xo = new h("backInLeft", {
|
|
3959
3992
|
"0%": {
|
|
3960
3993
|
opacity: 0.7,
|
|
3961
3994
|
transform: "translateX(-2000px) scale(0.7)"
|
|
@@ -3968,7 +4001,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
3968
4001
|
opacity: 1,
|
|
3969
4002
|
transform: "scale(1)"
|
|
3970
4003
|
}
|
|
3971
|
-
}),
|
|
4004
|
+
}), Io = new h("backInRight", {
|
|
3972
4005
|
"0%": {
|
|
3973
4006
|
opacity: 0.7,
|
|
3974
4007
|
transform: "translateX(2000px) scale(0.7)"
|
|
@@ -3981,7 +4014,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
3981
4014
|
opacity: 1,
|
|
3982
4015
|
transform: "scale(1)"
|
|
3983
4016
|
}
|
|
3984
|
-
}),
|
|
4017
|
+
}), So = new h("backInUp", {
|
|
3985
4018
|
"0%": {
|
|
3986
4019
|
opacity: 0.7,
|
|
3987
4020
|
transform: "translateY(1200px) scale(0.7)"
|
|
@@ -3994,7 +4027,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
3994
4027
|
opacity: 1,
|
|
3995
4028
|
transform: "scale(1)"
|
|
3996
4029
|
}
|
|
3997
|
-
}),
|
|
4030
|
+
}), $o = new h("backInDown", {
|
|
3998
4031
|
"0%": {
|
|
3999
4032
|
opacity: 0.7,
|
|
4000
4033
|
transform: "translateY(-1200px) scale(0.7)"
|
|
@@ -4007,7 +4040,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4007
4040
|
opacity: 1,
|
|
4008
4041
|
transform: "scale(1)"
|
|
4009
4042
|
}
|
|
4010
|
-
}), Ro = new
|
|
4043
|
+
}), Ro = new h("backOutLeft", {
|
|
4011
4044
|
"0%": {
|
|
4012
4045
|
opacity: 1,
|
|
4013
4046
|
transform: "scale(1)"
|
|
@@ -4020,7 +4053,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4020
4053
|
opacity: 0.7,
|
|
4021
4054
|
transform: "translateX(-2000px) scale(0.7)"
|
|
4022
4055
|
}
|
|
4023
|
-
}),
|
|
4056
|
+
}), wo = new h("backOutRight", {
|
|
4024
4057
|
"0%": {
|
|
4025
4058
|
opacity: 1,
|
|
4026
4059
|
transform: "scale(1)"
|
|
@@ -4033,7 +4066,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4033
4066
|
opacity: 0.7,
|
|
4034
4067
|
transform: "translateX(2000px) scale(0.7)"
|
|
4035
4068
|
}
|
|
4036
|
-
}),
|
|
4069
|
+
}), Mo = new h("backOutUp", {
|
|
4037
4070
|
"0%": {
|
|
4038
4071
|
opacity: 1,
|
|
4039
4072
|
transform: "scale(1)"
|
|
@@ -4046,7 +4079,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4046
4079
|
opacity: 0.7,
|
|
4047
4080
|
transform: "translateY(-700px) scale(0.7)"
|
|
4048
4081
|
}
|
|
4049
|
-
}),
|
|
4082
|
+
}), Oo = new h("backOutDown", {
|
|
4050
4083
|
"0%": {
|
|
4051
4084
|
opacity: 1,
|
|
4052
4085
|
transform: "scale(1)"
|
|
@@ -4059,41 +4092,41 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4059
4092
|
opacity: 0.7,
|
|
4060
4093
|
transform: "translateY(700px) scale(0.7)"
|
|
4061
4094
|
}
|
|
4062
|
-
}),
|
|
4095
|
+
}), Bo = () => ({
|
|
4063
4096
|
"&.backInLeft": {
|
|
4064
4097
|
animationFillMode: "both",
|
|
4065
|
-
animationName:
|
|
4098
|
+
animationName: xo
|
|
4066
4099
|
},
|
|
4067
4100
|
"&.backInRight": {
|
|
4068
4101
|
animationFillMode: "both",
|
|
4069
|
-
animationName:
|
|
4102
|
+
animationName: Io
|
|
4070
4103
|
},
|
|
4071
4104
|
"&.backInUp": {
|
|
4072
4105
|
animationFillMode: "both",
|
|
4073
|
-
animationName:
|
|
4106
|
+
animationName: So
|
|
4074
4107
|
},
|
|
4075
4108
|
"&.backInDown": {
|
|
4076
4109
|
animationFillMode: "both",
|
|
4077
|
-
animationName:
|
|
4110
|
+
animationName: $o
|
|
4078
4111
|
}
|
|
4079
|
-
}),
|
|
4112
|
+
}), Po = () => ({
|
|
4080
4113
|
"&.backOutLeft": {
|
|
4081
4114
|
animationFillMode: "both",
|
|
4082
4115
|
animationName: Ro
|
|
4083
4116
|
},
|
|
4084
4117
|
"&.backOutRight": {
|
|
4085
4118
|
animationFillMode: "both",
|
|
4086
|
-
animationName:
|
|
4119
|
+
animationName: wo
|
|
4087
4120
|
},
|
|
4088
4121
|
"&.backOutUp": {
|
|
4089
4122
|
animationFillMode: "both",
|
|
4090
|
-
animationName:
|
|
4123
|
+
animationName: Mo
|
|
4091
4124
|
},
|
|
4092
4125
|
"&.backOutDown": {
|
|
4093
4126
|
animationFillMode: "both",
|
|
4094
|
-
animationName:
|
|
4127
|
+
animationName: Oo
|
|
4095
4128
|
}
|
|
4096
|
-
}),
|
|
4129
|
+
}), To = new h("bounceIn", {
|
|
4097
4130
|
"from,20%,40%,60%,80%,to": {
|
|
4098
4131
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
4099
4132
|
},
|
|
@@ -4117,7 +4150,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4117
4150
|
opacity: 1,
|
|
4118
4151
|
transform: "scale3d(1, 1, 1)"
|
|
4119
4152
|
}
|
|
4120
|
-
}),
|
|
4153
|
+
}), Fo = new h("bounceInLeft", {
|
|
4121
4154
|
"from,60%,75%,90%,to": {
|
|
4122
4155
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
4123
4156
|
},
|
|
@@ -4138,7 +4171,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4138
4171
|
to: {
|
|
4139
4172
|
transform: "translate3d(0, 0, 0)"
|
|
4140
4173
|
}
|
|
4141
|
-
}),
|
|
4174
|
+
}), Lo = new h("bounceInRight", {
|
|
4142
4175
|
"from,60%,75%,90%,to": {
|
|
4143
4176
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
4144
4177
|
},
|
|
@@ -4159,7 +4192,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4159
4192
|
to: {
|
|
4160
4193
|
transform: "translate3d(0, 0, 0)"
|
|
4161
4194
|
}
|
|
4162
|
-
}),
|
|
4195
|
+
}), No = new h("bounceInDown", {
|
|
4163
4196
|
"from,60%,75%,90%,to": {
|
|
4164
4197
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
4165
4198
|
},
|
|
@@ -4180,7 +4213,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4180
4213
|
to: {
|
|
4181
4214
|
transform: "translate3d(0, 0, 0)"
|
|
4182
4215
|
}
|
|
4183
|
-
}),
|
|
4216
|
+
}), Ho = new h("bounceInUp", {
|
|
4184
4217
|
"from,60%,75%,90%,to": {
|
|
4185
4218
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
4186
4219
|
},
|
|
@@ -4201,7 +4234,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4201
4234
|
to: {
|
|
4202
4235
|
transform: "translate3d(0, 0, 0)"
|
|
4203
4236
|
}
|
|
4204
|
-
}),
|
|
4237
|
+
}), Do = new h("bounceOut", {
|
|
4205
4238
|
"20%": {
|
|
4206
4239
|
transform: "scale3d(0.9, 0.9, 0.9)"
|
|
4207
4240
|
},
|
|
@@ -4215,7 +4248,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4215
4248
|
opacity: 0,
|
|
4216
4249
|
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
4217
4250
|
}
|
|
4218
|
-
}),
|
|
4251
|
+
}), zo = new h("bounceOutLeft", {
|
|
4219
4252
|
"20%": {
|
|
4220
4253
|
opacity: 1,
|
|
4221
4254
|
transform: "translate3d(20px, 0, 0) scaleX(0.9)"
|
|
@@ -4224,7 +4257,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4224
4257
|
opacity: 0,
|
|
4225
4258
|
transform: "translate3d(-2000px, 0, 0) scaleX(2)"
|
|
4226
4259
|
}
|
|
4227
|
-
}),
|
|
4260
|
+
}), Wo = new h("bounceOutRight", {
|
|
4228
4261
|
"20%": {
|
|
4229
4262
|
opacity: 1,
|
|
4230
4263
|
transform: "translate3d(-20px, 0, 0) scaleX(0.9)"
|
|
@@ -4233,7 +4266,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4233
4266
|
opacity: 0,
|
|
4234
4267
|
transform: "translate3d(2000px, 0, 0) scaleX(2)"
|
|
4235
4268
|
}
|
|
4236
|
-
}),
|
|
4269
|
+
}), jo = new h("bounceOutDown", {
|
|
4237
4270
|
"20%": {
|
|
4238
4271
|
transform: "translate3d(0, 10px, 0) scaleY(0.985)"
|
|
4239
4272
|
},
|
|
@@ -4245,7 +4278,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4245
4278
|
opacity: 0,
|
|
4246
4279
|
transform: "translate3d(0, 2000px, 0) scaleY(3)"
|
|
4247
4280
|
}
|
|
4248
|
-
}),
|
|
4281
|
+
}), Ao = new h("bounceOutUp", {
|
|
4249
4282
|
"20%": {
|
|
4250
4283
|
transform: "translate3d(0, -10px, 0) scaleY(0.985)"
|
|
4251
4284
|
},
|
|
@@ -4257,58 +4290,58 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4257
4290
|
opacity: 0,
|
|
4258
4291
|
transform: "translate3d(0, -2000px, 0) scaleY(3)"
|
|
4259
4292
|
}
|
|
4260
|
-
}),
|
|
4293
|
+
}), Ko = () => ({
|
|
4261
4294
|
"&.bounceIn": {
|
|
4262
4295
|
animationFillMode: "both",
|
|
4263
4296
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
4264
|
-
animationName:
|
|
4297
|
+
animationName: To
|
|
4265
4298
|
},
|
|
4266
4299
|
"&.bounceInLeft": {
|
|
4267
4300
|
animationFillMode: "both",
|
|
4268
|
-
animationName:
|
|
4301
|
+
animationName: Fo
|
|
4269
4302
|
},
|
|
4270
4303
|
"&.bounceInRight": {
|
|
4271
4304
|
animationFillMode: "both",
|
|
4272
|
-
animationName:
|
|
4305
|
+
animationName: Lo
|
|
4273
4306
|
},
|
|
4274
4307
|
"&.bounceInDown": {
|
|
4275
4308
|
animationFillMode: "both",
|
|
4276
|
-
animationName:
|
|
4309
|
+
animationName: No
|
|
4277
4310
|
},
|
|
4278
4311
|
"&.bounceInUp": {
|
|
4279
4312
|
animationFillMode: "both",
|
|
4280
|
-
animationName:
|
|
4313
|
+
animationName: Ho
|
|
4281
4314
|
}
|
|
4282
|
-
}),
|
|
4315
|
+
}), Uo = () => ({
|
|
4283
4316
|
"&.bounceOut": {
|
|
4284
4317
|
animationFillMode: "both",
|
|
4285
4318
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
4286
|
-
animationName:
|
|
4319
|
+
animationName: Do
|
|
4287
4320
|
},
|
|
4288
4321
|
"&.bounceOutLeft": {
|
|
4289
4322
|
animationFillMode: "both",
|
|
4290
|
-
animationName:
|
|
4323
|
+
animationName: zo
|
|
4291
4324
|
},
|
|
4292
4325
|
"&.bounceOutRight": {
|
|
4293
4326
|
animationFillMode: "both",
|
|
4294
|
-
animationName:
|
|
4327
|
+
animationName: Wo
|
|
4295
4328
|
},
|
|
4296
4329
|
"&.bounceOutDown": {
|
|
4297
4330
|
animationFillMode: "both",
|
|
4298
|
-
animationName:
|
|
4331
|
+
animationName: jo
|
|
4299
4332
|
},
|
|
4300
4333
|
"&.bounceOutUp": {
|
|
4301
4334
|
animationFillMode: "both",
|
|
4302
|
-
animationName:
|
|
4335
|
+
animationName: Ao
|
|
4303
4336
|
}
|
|
4304
|
-
}),
|
|
4337
|
+
}), ko = new h("fadeIn", {
|
|
4305
4338
|
from: {
|
|
4306
4339
|
opacity: 0
|
|
4307
4340
|
},
|
|
4308
4341
|
to: {
|
|
4309
4342
|
opacity: 1
|
|
4310
4343
|
}
|
|
4311
|
-
}),
|
|
4344
|
+
}), Eo = new h("fadeInLeft", {
|
|
4312
4345
|
from: {
|
|
4313
4346
|
opacity: 0,
|
|
4314
4347
|
transform: "translate3d(-100%, 0, 0)"
|
|
@@ -4317,7 +4350,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4317
4350
|
opacity: 1,
|
|
4318
4351
|
transform: "translate3d(0, 0, 0)"
|
|
4319
4352
|
}
|
|
4320
|
-
}),
|
|
4353
|
+
}), Xo = new h("fadeInRight", {
|
|
4321
4354
|
from: {
|
|
4322
4355
|
opacity: 0,
|
|
4323
4356
|
transform: "translate3d(100%, 0, 0)"
|
|
@@ -4326,7 +4359,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4326
4359
|
opacity: 1,
|
|
4327
4360
|
transform: "translate3d(0, 0, 0)"
|
|
4328
4361
|
}
|
|
4329
|
-
}),
|
|
4362
|
+
}), Vo = new h("fadeInDown", {
|
|
4330
4363
|
from: {
|
|
4331
4364
|
opacity: 0,
|
|
4332
4365
|
transform: "translate3d(0, -100%, 0)"
|
|
@@ -4335,7 +4368,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4335
4368
|
opacity: 1,
|
|
4336
4369
|
transform: "translate3d(0, 0, 0)"
|
|
4337
4370
|
}
|
|
4338
|
-
}),
|
|
4371
|
+
}), Go = new h("fadeInUp", {
|
|
4339
4372
|
from: {
|
|
4340
4373
|
opacity: 0,
|
|
4341
4374
|
transform: "translate3d(0, 100%, 0)"
|
|
@@ -4344,7 +4377,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4344
4377
|
opacity: 1,
|
|
4345
4378
|
transform: "translate3d(0, 0, 0)"
|
|
4346
4379
|
}
|
|
4347
|
-
}),
|
|
4380
|
+
}), Yo = new h("fadeInDownBig", {
|
|
4348
4381
|
from: {
|
|
4349
4382
|
opacity: 0,
|
|
4350
4383
|
transform: "translate3d(0, -2000px, 0)"
|
|
@@ -4353,7 +4386,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4353
4386
|
opacity: 1,
|
|
4354
4387
|
transform: "translate3d(0, 0, 0)"
|
|
4355
4388
|
}
|
|
4356
|
-
}),
|
|
4389
|
+
}), _o = new h("fadeInUpBig", {
|
|
4357
4390
|
from: {
|
|
4358
4391
|
opacity: 0,
|
|
4359
4392
|
transform: "translate3d(0, 2000px, 0)"
|
|
@@ -4362,7 +4395,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4362
4395
|
opacity: 1,
|
|
4363
4396
|
transform: "translate3d(0, 0, 0)"
|
|
4364
4397
|
}
|
|
4365
|
-
}),
|
|
4398
|
+
}), qo = new h("fadeInLeftBig", {
|
|
4366
4399
|
from: {
|
|
4367
4400
|
opacity: 0,
|
|
4368
4401
|
transform: "translate3d(-2000px, 0, 0)"
|
|
@@ -4371,7 +4404,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4371
4404
|
opacity: 1,
|
|
4372
4405
|
transform: "translate3d(0, 0, 0)"
|
|
4373
4406
|
}
|
|
4374
|
-
}),
|
|
4407
|
+
}), Zo = new h("fadeInRightBig", {
|
|
4375
4408
|
from: {
|
|
4376
4409
|
opacity: 0,
|
|
4377
4410
|
transform: "translate3d(2000px, 0, 0)"
|
|
@@ -4380,7 +4413,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4380
4413
|
opacity: 1,
|
|
4381
4414
|
transform: "translate3d(0, 0, 0)"
|
|
4382
4415
|
}
|
|
4383
|
-
}),
|
|
4416
|
+
}), Qo = new h("fadeInTopLeft", {
|
|
4384
4417
|
from: {
|
|
4385
4418
|
opacity: 0,
|
|
4386
4419
|
transform: "translate3d(-100%, -100%, 0)"
|
|
@@ -4389,7 +4422,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4389
4422
|
opacity: 1,
|
|
4390
4423
|
transform: "translate3d(0, 0, 0)"
|
|
4391
4424
|
}
|
|
4392
|
-
}),
|
|
4425
|
+
}), Jo = new h("fadeInBottomRight", {
|
|
4393
4426
|
from: {
|
|
4394
4427
|
opacity: 0,
|
|
4395
4428
|
transform: "translate3d(100%, 100%, 0)"
|
|
@@ -4398,7 +4431,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4398
4431
|
opacity: 1,
|
|
4399
4432
|
transform: "translate3d(0, 0, 0)"
|
|
4400
4433
|
}
|
|
4401
|
-
}),
|
|
4434
|
+
}), el = new h("fadeInTopRight", {
|
|
4402
4435
|
from: {
|
|
4403
4436
|
opacity: 0,
|
|
4404
4437
|
transform: "translate3d(100%, -100%, 0)"
|
|
@@ -4407,7 +4440,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4407
4440
|
opacity: 1,
|
|
4408
4441
|
transform: "translate3d(0, 0, 0)"
|
|
4409
4442
|
}
|
|
4410
|
-
}),
|
|
4443
|
+
}), tl = new h("fadeInBottomLeft", {
|
|
4411
4444
|
from: {
|
|
4412
4445
|
opacity: 0,
|
|
4413
4446
|
transform: "translate3d(-100%, 100%, 0)"
|
|
@@ -4416,14 +4449,14 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4416
4449
|
opacity: 1,
|
|
4417
4450
|
transform: "translate3d(0, 0, 0)"
|
|
4418
4451
|
}
|
|
4419
|
-
}),
|
|
4452
|
+
}), nl = new h("fadeOut", {
|
|
4420
4453
|
from: {
|
|
4421
4454
|
opacity: 1
|
|
4422
4455
|
},
|
|
4423
4456
|
to: {
|
|
4424
4457
|
opacity: 0
|
|
4425
4458
|
}
|
|
4426
|
-
}),
|
|
4459
|
+
}), al = new h("fadeOutLeft", {
|
|
4427
4460
|
from: {
|
|
4428
4461
|
opacity: 1
|
|
4429
4462
|
},
|
|
@@ -4431,7 +4464,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4431
4464
|
opacity: 0,
|
|
4432
4465
|
transform: "translate3d(-100%, 0, 0)"
|
|
4433
4466
|
}
|
|
4434
|
-
}),
|
|
4467
|
+
}), ol = new h("fadeOutRight", {
|
|
4435
4468
|
from: {
|
|
4436
4469
|
opacity: 1
|
|
4437
4470
|
},
|
|
@@ -4439,7 +4472,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4439
4472
|
opacity: 0,
|
|
4440
4473
|
transform: "translate3d(100%, 0, 0)"
|
|
4441
4474
|
}
|
|
4442
|
-
}),
|
|
4475
|
+
}), ll = new h("fadeOutDown", {
|
|
4443
4476
|
from: {
|
|
4444
4477
|
opacity: 1
|
|
4445
4478
|
},
|
|
@@ -4447,7 +4480,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4447
4480
|
opacity: 0,
|
|
4448
4481
|
transform: "translate3d(0, 100%, 0)"
|
|
4449
4482
|
}
|
|
4450
|
-
}),
|
|
4483
|
+
}), il = new h("fadeOutUp", {
|
|
4451
4484
|
from: {
|
|
4452
4485
|
opacity: 1
|
|
4453
4486
|
},
|
|
@@ -4455,7 +4488,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4455
4488
|
opacity: 0,
|
|
4456
4489
|
transform: "translate3d(0, -100%, 0)"
|
|
4457
4490
|
}
|
|
4458
|
-
}),
|
|
4491
|
+
}), rl = new h("fadeOutDownBig", {
|
|
4459
4492
|
from: {
|
|
4460
4493
|
opacity: 1
|
|
4461
4494
|
},
|
|
@@ -4463,7 +4496,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4463
4496
|
opacity: 0,
|
|
4464
4497
|
transform: "translate3d(0, 2000px, 0)"
|
|
4465
4498
|
}
|
|
4466
|
-
}),
|
|
4499
|
+
}), sl = new h("fadeOutUpBig", {
|
|
4467
4500
|
from: {
|
|
4468
4501
|
opacity: 1
|
|
4469
4502
|
},
|
|
@@ -4471,7 +4504,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4471
4504
|
opacity: 0,
|
|
4472
4505
|
transform: "translate3d(0, -2000px, 0)"
|
|
4473
4506
|
}
|
|
4474
|
-
}),
|
|
4507
|
+
}), ul = new h("fadeOutLeftBig", {
|
|
4475
4508
|
from: {
|
|
4476
4509
|
opacity: 1
|
|
4477
4510
|
},
|
|
@@ -4479,7 +4512,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4479
4512
|
opacity: 0,
|
|
4480
4513
|
transform: "translate3d(-2000px, 0, 0)"
|
|
4481
4514
|
}
|
|
4482
|
-
}),
|
|
4515
|
+
}), cl = new h("fadeOutRightBig", {
|
|
4483
4516
|
from: {
|
|
4484
4517
|
opacity: 1
|
|
4485
4518
|
},
|
|
@@ -4487,7 +4520,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4487
4520
|
opacity: 0,
|
|
4488
4521
|
transform: "translate3d(2000px, 0, 0)"
|
|
4489
4522
|
}
|
|
4490
|
-
}),
|
|
4523
|
+
}), dl = new h("fadeOutTopLeft", {
|
|
4491
4524
|
from: {
|
|
4492
4525
|
opacity: 1,
|
|
4493
4526
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -4496,7 +4529,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4496
4529
|
opacity: 0,
|
|
4497
4530
|
transform: "translate3d(-100%, -100%, 0)"
|
|
4498
4531
|
}
|
|
4499
|
-
}),
|
|
4532
|
+
}), ml = new h("fadeOutBottomRight", {
|
|
4500
4533
|
from: {
|
|
4501
4534
|
opacity: 1,
|
|
4502
4535
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -4505,7 +4538,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4505
4538
|
opacity: 0,
|
|
4506
4539
|
transform: "translate3d(100%, 100%, 0)"
|
|
4507
4540
|
}
|
|
4508
|
-
}),
|
|
4541
|
+
}), fl = new h("fadeOutTopRight", {
|
|
4509
4542
|
from: {
|
|
4510
4543
|
opacity: 1,
|
|
4511
4544
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -4514,7 +4547,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4514
4547
|
opacity: 0,
|
|
4515
4548
|
transform: "translate3d(100%, -100%, 0)"
|
|
4516
4549
|
}
|
|
4517
|
-
}),
|
|
4550
|
+
}), pl = new h("fadeOutBottomLeft", {
|
|
4518
4551
|
from: {
|
|
4519
4552
|
opacity: 1,
|
|
4520
4553
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -4523,113 +4556,113 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4523
4556
|
opacity: 0,
|
|
4524
4557
|
transform: "translate3d(-100%, 100%, 0)"
|
|
4525
4558
|
}
|
|
4526
|
-
}),
|
|
4559
|
+
}), gl = () => ({
|
|
4527
4560
|
"&.fadeIn": {
|
|
4528
4561
|
animationFillMode: "both",
|
|
4529
|
-
animationName:
|
|
4562
|
+
animationName: ko
|
|
4530
4563
|
},
|
|
4531
4564
|
"&.fadeInLeft": {
|
|
4532
4565
|
animationFillMode: "both",
|
|
4533
|
-
animationName:
|
|
4566
|
+
animationName: Eo
|
|
4534
4567
|
},
|
|
4535
4568
|
"&.fadeInRight": {
|
|
4536
4569
|
animationFillMode: "both",
|
|
4537
|
-
animationName:
|
|
4570
|
+
animationName: Xo
|
|
4538
4571
|
},
|
|
4539
4572
|
"&.fadeInDown": {
|
|
4540
4573
|
animationFillMode: "both",
|
|
4541
|
-
animationName:
|
|
4574
|
+
animationName: Vo
|
|
4542
4575
|
},
|
|
4543
4576
|
"&.fadeInUp": {
|
|
4544
4577
|
animationFillMode: "both",
|
|
4545
|
-
animationName:
|
|
4578
|
+
animationName: Go
|
|
4546
4579
|
},
|
|
4547
4580
|
"&.fadeInLeftBig": {
|
|
4548
4581
|
animationFillMode: "both",
|
|
4549
|
-
animationName:
|
|
4582
|
+
animationName: qo
|
|
4550
4583
|
},
|
|
4551
4584
|
"&.fadeInRightBig": {
|
|
4552
4585
|
animationFillMode: "both",
|
|
4553
|
-
animationName:
|
|
4586
|
+
animationName: Zo
|
|
4554
4587
|
},
|
|
4555
4588
|
"&.fadeInUpBig": {
|
|
4556
4589
|
animationFillMode: "both",
|
|
4557
|
-
animationName:
|
|
4590
|
+
animationName: _o
|
|
4558
4591
|
},
|
|
4559
4592
|
"&.fadeInDownBig": {
|
|
4560
4593
|
animationFillMode: "both",
|
|
4561
|
-
animationName:
|
|
4594
|
+
animationName: Yo
|
|
4562
4595
|
},
|
|
4563
4596
|
"&.fadeInTopLeft": {
|
|
4564
4597
|
animationFillMode: "both",
|
|
4565
|
-
animationName:
|
|
4598
|
+
animationName: Qo
|
|
4566
4599
|
},
|
|
4567
4600
|
"&.fadeInBottomRight": {
|
|
4568
4601
|
animationFillMode: "both",
|
|
4569
|
-
animationName:
|
|
4602
|
+
animationName: Jo
|
|
4570
4603
|
},
|
|
4571
4604
|
"&.fadeInTopRight": {
|
|
4572
4605
|
animationFillMode: "both",
|
|
4573
|
-
animationName:
|
|
4606
|
+
animationName: el
|
|
4574
4607
|
},
|
|
4575
4608
|
"&.fadeInBottomLeft": {
|
|
4576
4609
|
animationFillMode: "both",
|
|
4577
|
-
animationName:
|
|
4610
|
+
animationName: tl
|
|
4578
4611
|
}
|
|
4579
|
-
}),
|
|
4612
|
+
}), hl = () => ({
|
|
4580
4613
|
"&.fadeOut": {
|
|
4581
4614
|
animationFillMode: "both",
|
|
4582
|
-
animationName:
|
|
4615
|
+
animationName: nl
|
|
4583
4616
|
},
|
|
4584
4617
|
"&.fadeOutLeft": {
|
|
4585
4618
|
animationFillMode: "both",
|
|
4586
|
-
animationName:
|
|
4619
|
+
animationName: al
|
|
4587
4620
|
},
|
|
4588
4621
|
"&.fadeOutRight": {
|
|
4589
4622
|
animationFillMode: "both",
|
|
4590
|
-
animationName:
|
|
4623
|
+
animationName: ol
|
|
4591
4624
|
},
|
|
4592
4625
|
"&.fadeOutDown": {
|
|
4593
4626
|
animationFillMode: "both",
|
|
4594
|
-
animationName:
|
|
4627
|
+
animationName: ll
|
|
4595
4628
|
},
|
|
4596
4629
|
"&.fadeOutUp": {
|
|
4597
4630
|
animationFillMode: "both",
|
|
4598
|
-
animationName:
|
|
4631
|
+
animationName: il
|
|
4599
4632
|
},
|
|
4600
4633
|
"&.fadeOutDownBig": {
|
|
4601
4634
|
animationFillMode: "both",
|
|
4602
|
-
animationName:
|
|
4635
|
+
animationName: rl
|
|
4603
4636
|
},
|
|
4604
4637
|
"&.fadeOutUpBig": {
|
|
4605
4638
|
animationFillMode: "both",
|
|
4606
|
-
animationName:
|
|
4639
|
+
animationName: sl
|
|
4607
4640
|
},
|
|
4608
4641
|
"&.fadeOutLeftBig": {
|
|
4609
4642
|
animationFillMode: "both",
|
|
4610
|
-
animationName:
|
|
4643
|
+
animationName: ul
|
|
4611
4644
|
},
|
|
4612
4645
|
"&.fadeOutRightBig": {
|
|
4613
4646
|
animationFillMode: "both",
|
|
4614
|
-
animationName:
|
|
4647
|
+
animationName: cl
|
|
4615
4648
|
},
|
|
4616
4649
|
"&.fadeOutTopLeft": {
|
|
4617
4650
|
animationFillMode: "both",
|
|
4618
|
-
animationName:
|
|
4651
|
+
animationName: dl
|
|
4619
4652
|
},
|
|
4620
4653
|
"&.fadeOutBottomRight": {
|
|
4621
4654
|
animationFillMode: "both",
|
|
4622
|
-
animationName:
|
|
4655
|
+
animationName: ml
|
|
4623
4656
|
},
|
|
4624
4657
|
"&.fadeOutTopRight": {
|
|
4625
4658
|
animationFillMode: "both",
|
|
4626
|
-
animationName:
|
|
4659
|
+
animationName: fl
|
|
4627
4660
|
},
|
|
4628
4661
|
"&.fadeOutBottomLeft": {
|
|
4629
4662
|
animationFillMode: "both",
|
|
4630
|
-
animationName:
|
|
4663
|
+
animationName: pl
|
|
4631
4664
|
}
|
|
4632
|
-
}),
|
|
4665
|
+
}), yl = new h("flipInX", {
|
|
4633
4666
|
from: {
|
|
4634
4667
|
opacity: 0,
|
|
4635
4668
|
animationTimingFunction: "ease-in",
|
|
@@ -4649,7 +4682,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4649
4682
|
to: {
|
|
4650
4683
|
transform: "perspective(400px)"
|
|
4651
4684
|
}
|
|
4652
|
-
}),
|
|
4685
|
+
}), bl = new h("flipInY", {
|
|
4653
4686
|
from: {
|
|
4654
4687
|
opacity: 0,
|
|
4655
4688
|
animationTimingFunction: "ease-in",
|
|
@@ -4669,7 +4702,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4669
4702
|
to: {
|
|
4670
4703
|
transform: "perspective(400px)"
|
|
4671
4704
|
}
|
|
4672
|
-
}),
|
|
4705
|
+
}), vl = new h("flipOutX", {
|
|
4673
4706
|
from: {
|
|
4674
4707
|
transform: "perspective(400px)"
|
|
4675
4708
|
},
|
|
@@ -4681,7 +4714,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4681
4714
|
opacity: 0,
|
|
4682
4715
|
transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
|
|
4683
4716
|
}
|
|
4684
|
-
}),
|
|
4717
|
+
}), Cl = new h("flipOutY", {
|
|
4685
4718
|
from: {
|
|
4686
4719
|
transform: "perspective(400px)"
|
|
4687
4720
|
},
|
|
@@ -4693,31 +4726,31 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4693
4726
|
opacity: 0,
|
|
4694
4727
|
transform: "perspective(400px) rotate3d(0, 1, 0, 90deg)"
|
|
4695
4728
|
}
|
|
4696
|
-
}),
|
|
4729
|
+
}), xl = () => ({
|
|
4697
4730
|
"&.flipInX": {
|
|
4698
4731
|
animationFillMode: "both",
|
|
4699
4732
|
backfaceVisibility: "visible !important",
|
|
4700
|
-
animationName:
|
|
4733
|
+
animationName: yl
|
|
4701
4734
|
},
|
|
4702
4735
|
"&.flipInY": {
|
|
4703
4736
|
animationFillMode: "both",
|
|
4704
4737
|
backfaceVisibility: "visible !important",
|
|
4705
|
-
animationName:
|
|
4738
|
+
animationName: bl
|
|
4706
4739
|
}
|
|
4707
|
-
}),
|
|
4740
|
+
}), Il = () => ({
|
|
4708
4741
|
"&.flipOutX": {
|
|
4709
4742
|
animationFillMode: "both",
|
|
4710
4743
|
backfaceVisibility: "visible !important",
|
|
4711
4744
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
4712
|
-
animationName:
|
|
4745
|
+
animationName: vl
|
|
4713
4746
|
},
|
|
4714
4747
|
"&.flipOutY": {
|
|
4715
4748
|
animationFillMode: "both",
|
|
4716
4749
|
backfaceVisibility: "visible !important",
|
|
4717
4750
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
4718
|
-
animationName:
|
|
4751
|
+
animationName: Cl
|
|
4719
4752
|
}
|
|
4720
|
-
}),
|
|
4753
|
+
}), Sl = new h("lightSpeedInLeft", {
|
|
4721
4754
|
from: {
|
|
4722
4755
|
opacity: 0,
|
|
4723
4756
|
transform: "translate3d(-100%, 0, 0) skewX(30deg)"
|
|
@@ -4732,7 +4765,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4732
4765
|
to: {
|
|
4733
4766
|
transform: "translate3d(0, 0, 0)"
|
|
4734
4767
|
}
|
|
4735
|
-
}),
|
|
4768
|
+
}), $l = new h("lightSpeedInRight", {
|
|
4736
4769
|
from: {
|
|
4737
4770
|
opacity: 0,
|
|
4738
4771
|
transform: "translate3d(100%, 0, 0) skewX(-30deg)"
|
|
@@ -4747,7 +4780,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4747
4780
|
to: {
|
|
4748
4781
|
transform: "translate3d(0, 0, 0)"
|
|
4749
4782
|
}
|
|
4750
|
-
}), Rl = new
|
|
4783
|
+
}), Rl = new h("lightSpeedOutLeft", {
|
|
4751
4784
|
from: {
|
|
4752
4785
|
opacity: 1
|
|
4753
4786
|
},
|
|
@@ -4755,7 +4788,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4755
4788
|
opacity: 0,
|
|
4756
4789
|
transform: "translate3d(-100%, 0, 0) skewX(-30deg)"
|
|
4757
4790
|
}
|
|
4758
|
-
}),
|
|
4791
|
+
}), wl = new h("lightSpeedOutRight", {
|
|
4759
4792
|
from: {
|
|
4760
4793
|
opacity: 1
|
|
4761
4794
|
},
|
|
@@ -4763,18 +4796,18 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4763
4796
|
opacity: 0,
|
|
4764
4797
|
transform: "translate3d(100%, 0, 0) skewX(30deg)"
|
|
4765
4798
|
}
|
|
4766
|
-
}),
|
|
4799
|
+
}), Ml = () => ({
|
|
4767
4800
|
"&.lightSpeedInLeft": {
|
|
4768
4801
|
animationFillMode: "both",
|
|
4769
4802
|
animationTimingFunction: "ease-out",
|
|
4770
|
-
animationName:
|
|
4803
|
+
animationName: Sl
|
|
4771
4804
|
},
|
|
4772
4805
|
"&.lightSpeedInRight": {
|
|
4773
4806
|
animationFillMode: "both",
|
|
4774
4807
|
animationTimingFunction: "ease-out",
|
|
4775
|
-
animationName:
|
|
4808
|
+
animationName: $l
|
|
4776
4809
|
}
|
|
4777
|
-
}),
|
|
4810
|
+
}), Ol = () => ({
|
|
4778
4811
|
"&.lightSpeedOutLeft": {
|
|
4779
4812
|
animationFillMode: "both",
|
|
4780
4813
|
animationTimingFunction: "ease-in",
|
|
@@ -4783,9 +4816,9 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4783
4816
|
"&.lightSpeedOutRight": {
|
|
4784
4817
|
animationFillMode: "both",
|
|
4785
4818
|
animationTimingFunction: "ease-in",
|
|
4786
|
-
animationName:
|
|
4819
|
+
animationName: wl
|
|
4787
4820
|
}
|
|
4788
|
-
}),
|
|
4821
|
+
}), Bl = new h("rollIn", {
|
|
4789
4822
|
from: {
|
|
4790
4823
|
opacity: 0,
|
|
4791
4824
|
transform: "translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"
|
|
@@ -4794,7 +4827,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4794
4827
|
opacity: 1,
|
|
4795
4828
|
transform: "translate3d(0, 0, 0)"
|
|
4796
4829
|
}
|
|
4797
|
-
}),
|
|
4830
|
+
}), Pl = new h("rollOut", {
|
|
4798
4831
|
from: {
|
|
4799
4832
|
opacity: 1
|
|
4800
4833
|
},
|
|
@@ -4802,17 +4835,17 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4802
4835
|
opacity: 0,
|
|
4803
4836
|
transform: "translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"
|
|
4804
4837
|
}
|
|
4805
|
-
}),
|
|
4838
|
+
}), Tl = () => ({
|
|
4806
4839
|
"&.rollIn": {
|
|
4807
4840
|
animationFillMode: "both",
|
|
4808
|
-
animationName:
|
|
4841
|
+
animationName: Bl
|
|
4809
4842
|
}
|
|
4810
|
-
}),
|
|
4843
|
+
}), Fl = () => ({
|
|
4811
4844
|
"&.rollOut": {
|
|
4812
4845
|
animationFillMode: "both",
|
|
4813
|
-
animationName:
|
|
4846
|
+
animationName: Pl
|
|
4814
4847
|
}
|
|
4815
|
-
}),
|
|
4848
|
+
}), Ll = new h("rotateIn", {
|
|
4816
4849
|
from: {
|
|
4817
4850
|
opacity: 0,
|
|
4818
4851
|
transform: "rotate3d(0, 0, 1, -200deg)"
|
|
@@ -4821,7 +4854,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4821
4854
|
opacity: 1,
|
|
4822
4855
|
transform: "translate3d(0, 0, 0)"
|
|
4823
4856
|
}
|
|
4824
|
-
}),
|
|
4857
|
+
}), Nl = new h("rotateInDownLeft", {
|
|
4825
4858
|
from: {
|
|
4826
4859
|
opacity: 0,
|
|
4827
4860
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
@@ -4830,7 +4863,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4830
4863
|
opacity: 1,
|
|
4831
4864
|
transform: "translate3d(0, 0, 0)"
|
|
4832
4865
|
}
|
|
4833
|
-
}),
|
|
4866
|
+
}), Hl = new h("rotateInDownRight", {
|
|
4834
4867
|
from: {
|
|
4835
4868
|
opacity: 0,
|
|
4836
4869
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
@@ -4839,7 +4872,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4839
4872
|
opacity: 1,
|
|
4840
4873
|
transform: "translate3d(0, 0, 0)"
|
|
4841
4874
|
}
|
|
4842
|
-
}),
|
|
4875
|
+
}), Dl = new h("rotateInUpLeft", {
|
|
4843
4876
|
from: {
|
|
4844
4877
|
opacity: 0,
|
|
4845
4878
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
@@ -4848,7 +4881,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4848
4881
|
opacity: 1,
|
|
4849
4882
|
transform: "translate3d(0, 0, 0)"
|
|
4850
4883
|
}
|
|
4851
|
-
}),
|
|
4884
|
+
}), zl = new h("rotateInUpRight", {
|
|
4852
4885
|
from: {
|
|
4853
4886
|
opacity: 0,
|
|
4854
4887
|
transform: "rotate3d(0, 0, 1, -90deg)"
|
|
@@ -4857,7 +4890,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4857
4890
|
opacity: 1,
|
|
4858
4891
|
transform: "translate3d(0, 0, 0)"
|
|
4859
4892
|
}
|
|
4860
|
-
}),
|
|
4893
|
+
}), Wl = new h("rotateOut", {
|
|
4861
4894
|
from: {
|
|
4862
4895
|
opacity: 1
|
|
4863
4896
|
},
|
|
@@ -4865,7 +4898,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4865
4898
|
opacity: 0,
|
|
4866
4899
|
transform: "rotate3d(0, 0, 1, 200deg)"
|
|
4867
4900
|
}
|
|
4868
|
-
}),
|
|
4901
|
+
}), jl = new h("rotateOutDownLeft", {
|
|
4869
4902
|
from: {
|
|
4870
4903
|
opacity: 1
|
|
4871
4904
|
},
|
|
@@ -4873,7 +4906,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4873
4906
|
opacity: 0,
|
|
4874
4907
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
4875
4908
|
}
|
|
4876
|
-
}),
|
|
4909
|
+
}), Al = new h("rotateOutDownRight", {
|
|
4877
4910
|
from: {
|
|
4878
4911
|
opacity: 1
|
|
4879
4912
|
},
|
|
@@ -4881,7 +4914,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4881
4914
|
opacity: 0,
|
|
4882
4915
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4883
4916
|
}
|
|
4884
|
-
}),
|
|
4917
|
+
}), Kl = new h("rotateOutUpLeft", {
|
|
4885
4918
|
from: {
|
|
4886
4919
|
opacity: 1
|
|
4887
4920
|
},
|
|
@@ -4889,7 +4922,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4889
4922
|
opacity: 0,
|
|
4890
4923
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4891
4924
|
}
|
|
4892
|
-
}),
|
|
4925
|
+
}), Ul = new h("rotateOutUpRight", {
|
|
4893
4926
|
from: {
|
|
4894
4927
|
opacity: 1
|
|
4895
4928
|
},
|
|
@@ -4897,59 +4930,59 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4897
4930
|
opacity: 0,
|
|
4898
4931
|
transform: "rotate3d(0, 0, 1, 90deg)"
|
|
4899
4932
|
}
|
|
4900
|
-
}),
|
|
4933
|
+
}), kl = () => ({
|
|
4901
4934
|
"&.rotateIn": {
|
|
4902
4935
|
animationFillMode: "both",
|
|
4903
4936
|
transformOrigin: "center",
|
|
4904
|
-
animationName:
|
|
4937
|
+
animationName: Ll
|
|
4905
4938
|
},
|
|
4906
4939
|
"&.rotateInDownLeft": {
|
|
4907
4940
|
animationFillMode: "both",
|
|
4908
4941
|
transformOrigin: "left bottom",
|
|
4909
|
-
animationName:
|
|
4942
|
+
animationName: Nl
|
|
4910
4943
|
},
|
|
4911
4944
|
"&.rotateInDownRight": {
|
|
4912
4945
|
animationFillMode: "both",
|
|
4913
4946
|
transformOrigin: "right bottom",
|
|
4914
|
-
animationName:
|
|
4947
|
+
animationName: Hl
|
|
4915
4948
|
},
|
|
4916
4949
|
"&.rotateInUpLeft": {
|
|
4917
4950
|
animationFillMode: "both",
|
|
4918
4951
|
transformOrigin: "left bottom",
|
|
4919
|
-
animationName:
|
|
4952
|
+
animationName: Dl
|
|
4920
4953
|
},
|
|
4921
4954
|
"&.rotateInUpRight": {
|
|
4922
4955
|
animationFillMode: "both",
|
|
4923
4956
|
transformOrigin: "right bottom",
|
|
4924
|
-
animationName:
|
|
4957
|
+
animationName: zl
|
|
4925
4958
|
}
|
|
4926
|
-
}),
|
|
4959
|
+
}), El = () => ({
|
|
4927
4960
|
"&.rotateOut": {
|
|
4928
4961
|
animationFillMode: "both",
|
|
4929
4962
|
transformOrigin: "center",
|
|
4930
|
-
animationName:
|
|
4963
|
+
animationName: Wl
|
|
4931
4964
|
},
|
|
4932
4965
|
"&.rotateOutDownLeft": {
|
|
4933
4966
|
animationFillMode: "both",
|
|
4934
4967
|
transformOrigin: "left bottom",
|
|
4935
|
-
animationName:
|
|
4968
|
+
animationName: jl
|
|
4936
4969
|
},
|
|
4937
4970
|
"&.rotateOutDownRight": {
|
|
4938
4971
|
animationFillMode: "both",
|
|
4939
4972
|
transformOrigin: "right bottom",
|
|
4940
|
-
animationName:
|
|
4973
|
+
animationName: Al
|
|
4941
4974
|
},
|
|
4942
4975
|
"&.rotateOutUpLeft": {
|
|
4943
4976
|
animationFillMode: "both",
|
|
4944
4977
|
transformOrigin: "left bottom",
|
|
4945
|
-
animationName:
|
|
4978
|
+
animationName: Kl
|
|
4946
4979
|
},
|
|
4947
4980
|
"&.rotateOutUpRight": {
|
|
4948
4981
|
animationFillMode: "both",
|
|
4949
4982
|
transformOrigin: "right bottom",
|
|
4950
|
-
animationName:
|
|
4983
|
+
animationName: Ul
|
|
4951
4984
|
}
|
|
4952
|
-
}),
|
|
4985
|
+
}), Xl = new h("slideInDown", {
|
|
4953
4986
|
from: {
|
|
4954
4987
|
transform: "translate3d(0, -100%, 0)",
|
|
4955
4988
|
visibility: "visible"
|
|
@@ -4957,7 +4990,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4957
4990
|
to: {
|
|
4958
4991
|
transform: "translate3d(0, 0, 0)"
|
|
4959
4992
|
}
|
|
4960
|
-
}),
|
|
4993
|
+
}), Vl = new h("slideInLeft", {
|
|
4961
4994
|
from: {
|
|
4962
4995
|
transform: "translate3d(-100%, 0, 0)",
|
|
4963
4996
|
visibility: "visible"
|
|
@@ -4965,7 +4998,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4965
4998
|
to: {
|
|
4966
4999
|
transform: "translate3d(0, 0, 0)"
|
|
4967
5000
|
}
|
|
4968
|
-
}),
|
|
5001
|
+
}), Gl = new h("slideInRight", {
|
|
4969
5002
|
from: {
|
|
4970
5003
|
transform: "translate3d(100%, 0, 0)",
|
|
4971
5004
|
visibility: "visible"
|
|
@@ -4973,7 +5006,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4973
5006
|
to: {
|
|
4974
5007
|
transform: "translate3d(0, 0, 0)"
|
|
4975
5008
|
}
|
|
4976
|
-
}),
|
|
5009
|
+
}), Yl = new h("slideInUp", {
|
|
4977
5010
|
from: {
|
|
4978
5011
|
transform: "translate3d(0, 100%, 0)",
|
|
4979
5012
|
visibility: "visible"
|
|
@@ -4981,7 +5014,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4981
5014
|
to: {
|
|
4982
5015
|
transform: "translate3d(0, 0, 0)"
|
|
4983
5016
|
}
|
|
4984
|
-
}),
|
|
5017
|
+
}), _l = new h("slideOutDown", {
|
|
4985
5018
|
from: {
|
|
4986
5019
|
transform: "translate3d(0, 0, 0)"
|
|
4987
5020
|
},
|
|
@@ -4989,7 +5022,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4989
5022
|
transform: "translate3d(0, 100%, 0)",
|
|
4990
5023
|
visibility: "hidden"
|
|
4991
5024
|
}
|
|
4992
|
-
}),
|
|
5025
|
+
}), ql = new h("slideOutLeft", {
|
|
4993
5026
|
from: {
|
|
4994
5027
|
transform: "translate3d(0, 0, 0)"
|
|
4995
5028
|
},
|
|
@@ -4997,7 +5030,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
4997
5030
|
transform: "translate3d(-100%, 0, 0)",
|
|
4998
5031
|
visibility: "hidden"
|
|
4999
5032
|
}
|
|
5000
|
-
}),
|
|
5033
|
+
}), Zl = new h("slideOutRight", {
|
|
5001
5034
|
from: {
|
|
5002
5035
|
transform: "translate3d(0, 0, 0)"
|
|
5003
5036
|
},
|
|
@@ -5005,7 +5038,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5005
5038
|
transform: "translate3d(100%, 0, 0)",
|
|
5006
5039
|
visibility: "hidden"
|
|
5007
5040
|
}
|
|
5008
|
-
}),
|
|
5041
|
+
}), Ql = new h("slideOutUp", {
|
|
5009
5042
|
from: {
|
|
5010
5043
|
transform: "translate3d(0, 0, 0)"
|
|
5011
5044
|
},
|
|
@@ -5013,41 +5046,41 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5013
5046
|
transform: "translate3d(0, -100%, 0)",
|
|
5014
5047
|
visibility: "hidden"
|
|
5015
5048
|
}
|
|
5016
|
-
}),
|
|
5049
|
+
}), Jl = () => ({
|
|
5017
5050
|
"&.slideInDown": {
|
|
5018
5051
|
animationFillMode: "both",
|
|
5019
|
-
animationName:
|
|
5052
|
+
animationName: Xl
|
|
5020
5053
|
},
|
|
5021
5054
|
"&.slideInLeft": {
|
|
5022
5055
|
animationFillMode: "both",
|
|
5023
|
-
animationName:
|
|
5056
|
+
animationName: Vl
|
|
5024
5057
|
},
|
|
5025
5058
|
"&.slideInRight": {
|
|
5026
5059
|
animationFillMode: "both",
|
|
5027
|
-
animationName:
|
|
5060
|
+
animationName: Gl
|
|
5028
5061
|
},
|
|
5029
5062
|
"&.slideInUp": {
|
|
5030
5063
|
animationFillMode: "both",
|
|
5031
|
-
animationName:
|
|
5064
|
+
animationName: Yl
|
|
5032
5065
|
}
|
|
5033
|
-
}),
|
|
5066
|
+
}), ei = () => ({
|
|
5034
5067
|
"&.slideOutDown": {
|
|
5035
5068
|
animationFillMode: "both",
|
|
5036
|
-
animationName:
|
|
5069
|
+
animationName: _l
|
|
5037
5070
|
},
|
|
5038
5071
|
"&.slideOutLeft": {
|
|
5039
5072
|
animationFillMode: "both",
|
|
5040
|
-
animationName:
|
|
5073
|
+
animationName: ql
|
|
5041
5074
|
},
|
|
5042
5075
|
"&.slideOutRight": {
|
|
5043
5076
|
animationFillMode: "both",
|
|
5044
|
-
animationName:
|
|
5077
|
+
animationName: Zl
|
|
5045
5078
|
},
|
|
5046
5079
|
"&.slideOutUp": {
|
|
5047
5080
|
animationFillMode: "both",
|
|
5048
|
-
animationName:
|
|
5081
|
+
animationName: Ql
|
|
5049
5082
|
}
|
|
5050
|
-
}),
|
|
5083
|
+
}), ti = new h("zoomIn", {
|
|
5051
5084
|
from: {
|
|
5052
5085
|
opacity: 0,
|
|
5053
5086
|
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
@@ -5055,7 +5088,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5055
5088
|
"50%": {
|
|
5056
5089
|
opacity: 1
|
|
5057
5090
|
}
|
|
5058
|
-
}),
|
|
5091
|
+
}), ni = new h("zoomInDown", {
|
|
5059
5092
|
from: {
|
|
5060
5093
|
opacity: 0,
|
|
5061
5094
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",
|
|
@@ -5066,7 +5099,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5066
5099
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
5067
5100
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
5068
5101
|
}
|
|
5069
|
-
}),
|
|
5102
|
+
}), ai = new h("zoomInLeft", {
|
|
5070
5103
|
from: {
|
|
5071
5104
|
opacity: 0,
|
|
5072
5105
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",
|
|
@@ -5077,7 +5110,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5077
5110
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",
|
|
5078
5111
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
5079
5112
|
}
|
|
5080
|
-
}),
|
|
5113
|
+
}), oi = new h("zoomInRight", {
|
|
5081
5114
|
from: {
|
|
5082
5115
|
opacity: 0,
|
|
5083
5116
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",
|
|
@@ -5088,7 +5121,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5088
5121
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",
|
|
5089
5122
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
5090
5123
|
}
|
|
5091
|
-
}),
|
|
5124
|
+
}), li = new h("zoomInUp", {
|
|
5092
5125
|
from: {
|
|
5093
5126
|
opacity: 0,
|
|
5094
5127
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",
|
|
@@ -5099,7 +5132,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5099
5132
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
5100
5133
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
5101
5134
|
}
|
|
5102
|
-
}),
|
|
5135
|
+
}), ii = new h("zoomOut", {
|
|
5103
5136
|
from: {
|
|
5104
5137
|
opacity: 1
|
|
5105
5138
|
},
|
|
@@ -5110,7 +5143,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5110
5143
|
to: {
|
|
5111
5144
|
opacity: 0
|
|
5112
5145
|
}
|
|
5113
|
-
}),
|
|
5146
|
+
}), ri = new h("zoomOutDown", {
|
|
5114
5147
|
"40%": {
|
|
5115
5148
|
opacity: 1,
|
|
5116
5149
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
@@ -5121,7 +5154,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5121
5154
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
|
|
5122
5155
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
5123
5156
|
}
|
|
5124
|
-
}),
|
|
5157
|
+
}), si = new h("zoomOutLeft", {
|
|
5125
5158
|
"40%": {
|
|
5126
5159
|
opacity: 1,
|
|
5127
5160
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
|
|
@@ -5130,7 +5163,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5130
5163
|
opacity: 0,
|
|
5131
5164
|
transform: "scale(0.1) translate3d(-2000px, 0, 0)"
|
|
5132
5165
|
}
|
|
5133
|
-
}),
|
|
5166
|
+
}), ui = new h("zoomOutRight", {
|
|
5134
5167
|
"40%": {
|
|
5135
5168
|
opacity: 1,
|
|
5136
5169
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
|
|
@@ -5139,7 +5172,7 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5139
5172
|
opacity: 0,
|
|
5140
5173
|
transform: "scale(0.1) translate3d(2000px, 0, 0)"
|
|
5141
5174
|
}
|
|
5142
|
-
}),
|
|
5175
|
+
}), ci = new h("zoomOutUp", {
|
|
5143
5176
|
"40%": {
|
|
5144
5177
|
opacity: 1,
|
|
5145
5178
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
@@ -5150,69 +5183,55 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5150
5183
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",
|
|
5151
5184
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
5152
5185
|
}
|
|
5153
|
-
}),
|
|
5186
|
+
}), di = () => ({
|
|
5154
5187
|
"&.zoomIn": {
|
|
5155
5188
|
animationFillMode: "both",
|
|
5156
|
-
animationName:
|
|
5189
|
+
animationName: ti
|
|
5157
5190
|
},
|
|
5158
5191
|
"&.zoomInDown": {
|
|
5159
5192
|
animationFillMode: "both",
|
|
5160
|
-
animationName:
|
|
5193
|
+
animationName: ni
|
|
5161
5194
|
},
|
|
5162
5195
|
"&.zoomInLeft": {
|
|
5163
5196
|
animationFillMode: "both",
|
|
5164
|
-
animationName:
|
|
5197
|
+
animationName: ai
|
|
5165
5198
|
},
|
|
5166
5199
|
"&.zoomInRight": {
|
|
5167
5200
|
animationFillMode: "both",
|
|
5168
|
-
animationName:
|
|
5201
|
+
animationName: oi
|
|
5169
5202
|
},
|
|
5170
5203
|
"&.zoomInUp": {
|
|
5171
5204
|
animationFillMode: "both",
|
|
5172
|
-
animationName:
|
|
5205
|
+
animationName: li
|
|
5173
5206
|
}
|
|
5174
|
-
}),
|
|
5207
|
+
}), mi = () => ({
|
|
5175
5208
|
"&.zoomOut": {
|
|
5176
5209
|
animationFillMode: "both",
|
|
5177
|
-
animationName:
|
|
5210
|
+
animationName: ii
|
|
5178
5211
|
},
|
|
5179
5212
|
"&.zoomOutDown": {
|
|
5180
5213
|
animationFillMode: "both",
|
|
5181
5214
|
transformOrigin: "center bottom",
|
|
5182
|
-
animationName:
|
|
5215
|
+
animationName: ri
|
|
5183
5216
|
},
|
|
5184
5217
|
"&.zoomOutLeft": {
|
|
5185
5218
|
animationFillMode: "both",
|
|
5186
5219
|
transformOrigin: "left center",
|
|
5187
|
-
animationName:
|
|
5220
|
+
animationName: si
|
|
5188
5221
|
},
|
|
5189
5222
|
"&.zoomOutRight": {
|
|
5190
5223
|
animationFillMode: "both",
|
|
5191
5224
|
transformOrigin: "right center",
|
|
5192
|
-
animationName:
|
|
5225
|
+
animationName: ui
|
|
5193
5226
|
},
|
|
5194
5227
|
"&.zoomOutUp": {
|
|
5195
5228
|
animationFillMode: "both",
|
|
5196
5229
|
transformOrigin: "center bottom",
|
|
5197
|
-
animationName:
|
|
5230
|
+
animationName: ci
|
|
5198
5231
|
}
|
|
5199
|
-
}),
|
|
5232
|
+
}), fi = (e) => ({
|
|
5200
5233
|
[e.componentCls]: {
|
|
5201
5234
|
"&-enter": {
|
|
5202
|
-
background: "transparent",
|
|
5203
|
-
animationDuration: ".3s !important",
|
|
5204
|
-
...Oo(),
|
|
5205
|
-
...Ao(),
|
|
5206
|
-
...pl(),
|
|
5207
|
-
...Cl(),
|
|
5208
|
-
...wl(),
|
|
5209
|
-
...Ul(),
|
|
5210
|
-
...Pl(),
|
|
5211
|
-
...ci(),
|
|
5212
|
-
...Ql()
|
|
5213
|
-
},
|
|
5214
|
-
"&-leave": {
|
|
5215
|
-
display: "none",
|
|
5216
5235
|
background: "transparent",
|
|
5217
5236
|
animationDuration: ".3s !important",
|
|
5218
5237
|
...Bo(),
|
|
@@ -5224,16 +5243,30 @@ const Ti = /* @__PURE__ */ G({
|
|
|
5224
5243
|
...Tl(),
|
|
5225
5244
|
...di(),
|
|
5226
5245
|
...Jl()
|
|
5246
|
+
},
|
|
5247
|
+
"&-leave": {
|
|
5248
|
+
display: "none",
|
|
5249
|
+
background: "transparent",
|
|
5250
|
+
animationDuration: ".3s !important",
|
|
5251
|
+
...Po(),
|
|
5252
|
+
...Uo(),
|
|
5253
|
+
...hl(),
|
|
5254
|
+
...Il(),
|
|
5255
|
+
...Ol(),
|
|
5256
|
+
...El(),
|
|
5257
|
+
...Fl(),
|
|
5258
|
+
...mi(),
|
|
5259
|
+
...ei()
|
|
5227
5260
|
}
|
|
5228
5261
|
}
|
|
5229
5262
|
});
|
|
5230
|
-
function
|
|
5231
|
-
return
|
|
5263
|
+
function pi(e) {
|
|
5264
|
+
return Ce("LayoutPageTranstion", (n) => {
|
|
5232
5265
|
const t = Qe(n);
|
|
5233
|
-
return [
|
|
5266
|
+
return [fi(t)];
|
|
5234
5267
|
}, e);
|
|
5235
5268
|
}
|
|
5236
|
-
const
|
|
5269
|
+
const Li = /* @__PURE__ */ X({
|
|
5237
5270
|
name: "PageTransition",
|
|
5238
5271
|
props: {
|
|
5239
5272
|
disabled: {
|
|
@@ -5259,30 +5292,30 @@ const Fi = /* @__PURE__ */ G({
|
|
|
5259
5292
|
}), {
|
|
5260
5293
|
wrapSSR: a,
|
|
5261
5294
|
hashId: l
|
|
5262
|
-
} =
|
|
5295
|
+
} = pi(t), i = (d, m) => {
|
|
5263
5296
|
if (d.length === 0 || d === "x" || d === "y")
|
|
5264
5297
|
return d;
|
|
5265
|
-
let
|
|
5266
|
-
return
|
|
5298
|
+
let c = m.indexOf(d);
|
|
5299
|
+
return c = c % 2 === 1 ? c - 1 : c + 1, m[c];
|
|
5267
5300
|
}, r = (d) => {
|
|
5268
|
-
const m =
|
|
5301
|
+
const m = Co.preset.find((C) => e.name === C.name);
|
|
5269
5302
|
if (m === void 0)
|
|
5270
5303
|
return "";
|
|
5271
|
-
let
|
|
5272
|
-
e.direction === void 0 ?
|
|
5273
|
-
const
|
|
5274
|
-
return m.name +
|
|
5275
|
-
},
|
|
5304
|
+
let c = "";
|
|
5305
|
+
e.direction === void 0 ? c = m.directions[0] : c = m.directions.find((C) => C === e.direction) || "", c = c === void 0 || c === "default" ? "" : c, c !== "" && (c = d && e.reverse ? i(c, m.directions) : c, c = c[0].toUpperCase() + c.substring(1));
|
|
5306
|
+
const p = d ? "Out" : "In";
|
|
5307
|
+
return m.name + p + c;
|
|
5308
|
+
}, g = v(() => [r(!1), `${t}-enter`, l.value].join(" ")), u = v(() => [r(!0), `${t}-leave`, l.value].join(" "));
|
|
5276
5309
|
return () => e.disabled ? n.default?.() : a(o(sn, {
|
|
5277
|
-
enterActiveClass:
|
|
5278
|
-
leaveActiveClass:
|
|
5310
|
+
enterActiveClass: g.value,
|
|
5311
|
+
leaveActiveClass: u.value
|
|
5279
5312
|
}, {
|
|
5280
5313
|
default: () => [n.default?.()]
|
|
5281
5314
|
}));
|
|
5282
5315
|
}
|
|
5283
5316
|
});
|
|
5284
|
-
function
|
|
5285
|
-
const n = jn(), t =
|
|
5317
|
+
function Ni(e) {
|
|
5318
|
+
const n = jn(), t = Ne(), a = () => e.value?.tabsComRef();
|
|
5286
5319
|
return {
|
|
5287
5320
|
tabsRouter: {
|
|
5288
5321
|
clean: () => a()?.clean(),
|
|
@@ -5294,62 +5327,62 @@ function Li(e) {
|
|
|
5294
5327
|
}
|
|
5295
5328
|
};
|
|
5296
5329
|
}
|
|
5297
|
-
function
|
|
5298
|
-
const n =
|
|
5330
|
+
function Hi(e) {
|
|
5331
|
+
const n = Ne(), t = e?.defaultOpen ?? !0, a = e?.autoClose ?? !0, l = n.getRoutes(), i = q([]), r = we({
|
|
5299
5332
|
menuMap: /* @__PURE__ */ new Map(),
|
|
5300
5333
|
flatMenus: []
|
|
5301
|
-
}),
|
|
5334
|
+
}), g = we({
|
|
5302
5335
|
openKeys: [],
|
|
5303
5336
|
selectedKeys: []
|
|
5304
|
-
}),
|
|
5305
|
-
const S = aa(oa(
|
|
5306
|
-
i.value =
|
|
5337
|
+
}), u = v(() => n.currentRoute.value), d = (C) => {
|
|
5338
|
+
const S = aa(oa(C));
|
|
5339
|
+
i.value = Fe(S.menuData), r.menuMap = S.menuMap, r.flatMenus = S.flatMenus;
|
|
5307
5340
|
};
|
|
5308
|
-
e?.menuData && st(e.menuData) && U(() => e.menuData.value, (
|
|
5309
|
-
const m =
|
|
5341
|
+
e?.menuData && st(e.menuData) && U(() => e.menuData.value, (C) => d(C), { deep: !0 }), d(e?.menuData ? st(e.menuData) ? e.menuData.value : e.menuData : l);
|
|
5342
|
+
const m = v(() => Ut({
|
|
5310
5343
|
menuData: i.value,
|
|
5311
5344
|
menuMap: r.menuMap,
|
|
5312
5345
|
flatMenus: r.flatMenus
|
|
5313
|
-
}, { path:
|
|
5314
|
-
function
|
|
5315
|
-
const
|
|
5346
|
+
}, { path: u.value.path, name: u.value.name })), c = v(() => {
|
|
5347
|
+
function C(s) {
|
|
5348
|
+
const x = At(s.meta?.hideChildrenInMenu ? [] : s.children || []);
|
|
5316
5349
|
return {
|
|
5317
5350
|
name: s.name,
|
|
5318
5351
|
icon: s.meta?.icon || "",
|
|
5319
|
-
path: s.redirect ||
|
|
5352
|
+
path: s.redirect || x || s.path || "",
|
|
5320
5353
|
breadcrumbName: s.meta?.title || "",
|
|
5321
|
-
children: s.children && s.children?.length > 1 ? s.children?.map((I) =>
|
|
5354
|
+
children: s.children && s.children?.length > 1 ? s.children?.map((I) => C(I)).filter((I) => I.breadcrumbName) : []
|
|
5322
5355
|
};
|
|
5323
5356
|
}
|
|
5324
|
-
const S = m.value.map((s) =>
|
|
5357
|
+
const S = m.value.map((s) => C(s)).filter((s) => s.breadcrumbName);
|
|
5325
5358
|
return sa(S, "breadcrumbName");
|
|
5326
|
-
}),
|
|
5327
|
-
|
|
5359
|
+
}), p = () => {
|
|
5360
|
+
g.openKeys = m.value.filter((C) => C.name !== u.value.name).map((C) => C.name);
|
|
5328
5361
|
};
|
|
5329
|
-
return U(() =>
|
|
5330
|
-
|
|
5362
|
+
return U(() => u.value, (C) => {
|
|
5363
|
+
C && (g.selectedKeys = m.value.map((S) => S.name), a && p());
|
|
5331
5364
|
}, { immediate: !0, deep: !0 }), It(() => {
|
|
5332
|
-
t &&
|
|
5333
|
-
}),
|
|
5365
|
+
t && p();
|
|
5366
|
+
}), Sa({
|
|
5334
5367
|
...Xe(r),
|
|
5335
|
-
syncMatchedKeys: (
|
|
5368
|
+
syncMatchedKeys: (C = 60) => {
|
|
5336
5369
|
setTimeout(() => {
|
|
5337
|
-
|
|
5338
|
-
},
|
|
5370
|
+
g.selectedKeys = m.value.map((S) => S.name), p();
|
|
5371
|
+
}, C);
|
|
5339
5372
|
},
|
|
5340
5373
|
menuData: i,
|
|
5341
5374
|
matchedMenu: m,
|
|
5342
|
-
matchedKeys:
|
|
5375
|
+
matchedKeys: g
|
|
5343
5376
|
}), {
|
|
5344
5377
|
menuState: r,
|
|
5345
5378
|
menuData: i,
|
|
5346
|
-
matchedKeys:
|
|
5379
|
+
matchedKeys: g,
|
|
5347
5380
|
matchedMenu: m,
|
|
5348
|
-
breadcrumbRouters:
|
|
5381
|
+
breadcrumbRouters: c
|
|
5349
5382
|
};
|
|
5350
5383
|
}
|
|
5351
|
-
function
|
|
5352
|
-
const n =
|
|
5384
|
+
function Di(e) {
|
|
5385
|
+
const n = q(e ?? "system"), t = Ot();
|
|
5353
5386
|
return {
|
|
5354
5387
|
theme: n,
|
|
5355
5388
|
isDark: t
|
|
@@ -5357,41 +5390,42 @@ function Hi(e) {
|
|
|
5357
5390
|
}
|
|
5358
5391
|
export {
|
|
5359
5392
|
zt as GBaseMenu,
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5393
|
+
Li as GPageTransition,
|
|
5394
|
+
Fi as GProAppPage,
|
|
5395
|
+
Pi as GProLayout,
|
|
5396
|
+
Ti as GProPageContainer,
|
|
5364
5397
|
Ra as GlobalFooter,
|
|
5365
|
-
|
|
5398
|
+
Bi as LazyIcon,
|
|
5366
5399
|
xa as SiderMenuWrapper,
|
|
5367
|
-
|
|
5400
|
+
Co as animateSetting,
|
|
5368
5401
|
Jn as baseMenuProps,
|
|
5369
5402
|
_n as calculateCss,
|
|
5370
5403
|
oa as clearMenuItem,
|
|
5371
5404
|
ft as convertCSSPropertiesToString,
|
|
5372
5405
|
qn as cssValueToNumber,
|
|
5373
5406
|
Vn as defaultContextKey,
|
|
5374
|
-
|
|
5407
|
+
k as defaultSettings,
|
|
5375
5408
|
Nt as extractCSSVariableName,
|
|
5376
5409
|
ra as filterTree,
|
|
5377
5410
|
Kt as findLastKey,
|
|
5378
5411
|
la as flatMap,
|
|
5379
|
-
|
|
5412
|
+
se as getCssVarOrUnit,
|
|
5380
5413
|
Yn as getCssVarValue,
|
|
5381
5414
|
Lt as getCssVariableValue,
|
|
5382
5415
|
At as getLastPath,
|
|
5383
5416
|
Ut as getMatchedList,
|
|
5384
5417
|
aa as getMenuData,
|
|
5385
5418
|
ia as getMenuFirstChildren,
|
|
5386
|
-
|
|
5419
|
+
xe as getTokenLayoutTheme,
|
|
5387
5420
|
jt as handlePathKey,
|
|
5388
5421
|
Ee as iconStyle,
|
|
5389
5422
|
Zn as layout,
|
|
5390
5423
|
Gn as provideProLayoutContext,
|
|
5391
5424
|
sa as removeDuplicatesByName,
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5425
|
+
Hi as useLayoutMenu,
|
|
5426
|
+
Ia as usePageContent,
|
|
5427
|
+
Ni as useProLayout,
|
|
5428
|
+
Z as useProLayoutContext,
|
|
5395
5429
|
lt as useProLayoutMenuContext,
|
|
5396
|
-
|
|
5430
|
+
Di as useThemeState
|
|
5397
5431
|
};
|