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