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