@gx-design-vue/pro-layout 0.1.0-beta.33 → 0.1.0-beta.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Context.d.ts +2 -0
- package/dist/ProLayout.d.ts +127 -12
- package/dist/components/GlobalHeader/index.d.ts +3 -3
- package/dist/components/GlobalHeader/props.d.ts +2 -2
- package/dist/components/PageContainer/index.d.ts +124 -9
- package/dist/components/PageContainer/props.d.ts +62 -4
- package/dist/pro-layout.mjs +851 -844
- package/dist/pro-layout.umd.js +1 -1
- package/dist/props.d.ts +63 -5
- package/package.json +1 -1
package/dist/pro-layout.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Spin as ve, Menu as ae, ConfigProvider as
|
|
3
|
-
import { useRouter as De, RouterLink as
|
|
4
|
-
import { createFromIconfontCN as
|
|
5
|
-
import
|
|
6
|
-
import { createTypes as
|
|
1
|
+
import { defineComponent as V, createVNode as n, mergeProps as X, provide as Fe, readonly as Bt, inject as it, resolveComponent as lt, computed as f, isVNode as ie, Fragment as Z, toRefs as Ce, unref as A, createTextVNode as ne, ref as Re, reactive as rt, watch as de, withDirectives as kt, vShow as $t, watchEffect as Pt, Transition as Ft } from "vue";
|
|
2
|
+
import { Spin as ve, Menu as ae, ConfigProvider as Te, Layout as ce, Drawer as be, Breadcrumb as Tt, Card as Lt, LayoutFooter as Dt, Tabs as Le, Dropdown as Ye, Tooltip as we, List as oe, Switch as st, TabPane as Nt, Select as ge, message as zt, Divider as Me, Alert as Ht, Button as Vt } from "ant-design-vue";
|
|
3
|
+
import { useRouter as De, RouterLink as jt } from "vue-router";
|
|
4
|
+
import { createFromIconfontCN as Wt, MenuUnfoldOutlined as At, MenuFoldOutlined as Kt, GithubOutlined as Ut, EllipsisOutlined as Et, ReloadOutlined as Xt, CloseOutlined as ut, CheckOutlined as dt, SettingOutlined as Yt, NotificationOutlined as _t, CopyOutlined as Gt } from "@ant-design/icons-vue";
|
|
5
|
+
import qt, { themeConfig as H, Keyframe as s, useProStyle as Q, useProConfigContext as Se, useStyle as Ne, mergeToken as ze, colorList as Zt } from "@gx-design-vue/pro-provider";
|
|
6
|
+
import { createTypes as Jt } from "vue-types";
|
|
7
7
|
import { cloneDeep as He, pick as le, omit as Ve } from "lodash-es";
|
|
8
|
-
import { GPorWaterMark as
|
|
9
|
-
import {
|
|
8
|
+
import { GPorWaterMark as Qt } from "@gx-design-vue/pro-watermark";
|
|
9
|
+
import { isBoolean as _e, getSlot as W, getPrefixCls as me, classNames as ct, getLevelData as en, isArray as tn, isBrowser as nn, merge as an } from "@gx-design-vue/pro-utils";
|
|
10
10
|
import { useMediaQuery as on, useState as pe, useMergedState as ln } from "@gx-design-vue/pro-hooks";
|
|
11
11
|
import { useWindowSize as rn, useClipboard as sn } from "@vueuse/core";
|
|
12
12
|
import un from "@gx-design-vue/scrollbar";
|
|
13
|
-
import { GColorPicker as
|
|
14
|
-
const dn = /* @__PURE__ */
|
|
13
|
+
import { GColorPicker as Ge } from "@gx-design-vue/color-picker";
|
|
14
|
+
const dn = /* @__PURE__ */ V({
|
|
15
15
|
name: "PageLoading",
|
|
16
16
|
props: {
|
|
17
17
|
...ve.props
|
|
@@ -31,7 +31,7 @@ const dn = /* @__PURE__ */ j({
|
|
|
31
31
|
}, null)
|
|
32
32
|
}), null)]);
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), mt = Jt({
|
|
35
35
|
func: void 0,
|
|
36
36
|
bool: void 0,
|
|
37
37
|
string: void 0,
|
|
@@ -40,7 +40,7 @@ const dn = /* @__PURE__ */ j({
|
|
|
40
40
|
object: void 0,
|
|
41
41
|
integer: void 0
|
|
42
42
|
});
|
|
43
|
-
|
|
43
|
+
mt.extend([{
|
|
44
44
|
name: "looseBool",
|
|
45
45
|
getter: !0,
|
|
46
46
|
type: Boolean,
|
|
@@ -55,70 +55,70 @@ ct.extend([{
|
|
|
55
55
|
getter: !0,
|
|
56
56
|
type: null
|
|
57
57
|
}]);
|
|
58
|
-
const L =
|
|
58
|
+
const L = mt, se = {
|
|
59
59
|
theme: {
|
|
60
60
|
type: String,
|
|
61
|
-
default:
|
|
61
|
+
default: H.theme
|
|
62
62
|
},
|
|
63
63
|
layout: {
|
|
64
64
|
type: String,
|
|
65
|
-
default:
|
|
65
|
+
default: H.layout
|
|
66
66
|
},
|
|
67
67
|
wideWidth: {
|
|
68
68
|
type: Number,
|
|
69
|
-
default:
|
|
69
|
+
default: H.wideWidth
|
|
70
70
|
},
|
|
71
71
|
splitMenus: {
|
|
72
72
|
type: Boolean,
|
|
73
|
-
default:
|
|
73
|
+
default: H.splitMenus
|
|
74
74
|
},
|
|
75
75
|
fixedMultiTab: {
|
|
76
76
|
type: Boolean,
|
|
77
|
-
default:
|
|
77
|
+
default: H.fixedMultiTab
|
|
78
78
|
},
|
|
79
79
|
showProgressBar: {
|
|
80
80
|
type: Boolean,
|
|
81
|
-
default:
|
|
81
|
+
default: H.showProgressBar
|
|
82
82
|
},
|
|
83
83
|
fixedHeader: {
|
|
84
84
|
type: Boolean,
|
|
85
|
-
default:
|
|
85
|
+
default: H.fixedHeader
|
|
86
86
|
},
|
|
87
87
|
fixSiderbar: {
|
|
88
88
|
type: Boolean,
|
|
89
|
-
default:
|
|
89
|
+
default: H.fixSiderbar
|
|
90
90
|
},
|
|
91
91
|
showTabsBar: {
|
|
92
92
|
type: Boolean,
|
|
93
|
-
default:
|
|
93
|
+
default: H.showTabsBar
|
|
94
94
|
},
|
|
95
95
|
showFullScreen: {
|
|
96
96
|
type: Boolean,
|
|
97
|
-
default:
|
|
97
|
+
default: H.showFullScreen
|
|
98
98
|
},
|
|
99
99
|
autoHideHeader: {
|
|
100
100
|
type: Boolean,
|
|
101
|
-
default:
|
|
101
|
+
default: H.autoHideHeader
|
|
102
102
|
},
|
|
103
103
|
headerHeight: {
|
|
104
104
|
type: Number,
|
|
105
|
-
default:
|
|
105
|
+
default: H.headerHeight
|
|
106
106
|
},
|
|
107
107
|
title: {
|
|
108
108
|
type: String,
|
|
109
|
-
default:
|
|
109
|
+
default: H.title
|
|
110
110
|
},
|
|
111
111
|
iconfontUrl: {
|
|
112
112
|
type: String,
|
|
113
|
-
default:
|
|
113
|
+
default: H.iconfontUrl
|
|
114
114
|
},
|
|
115
115
|
animate: {
|
|
116
116
|
type: Object,
|
|
117
|
-
default:
|
|
117
|
+
default: H.animate
|
|
118
118
|
},
|
|
119
119
|
primaryColor: {
|
|
120
120
|
type: String,
|
|
121
|
-
default:
|
|
121
|
+
default: H.primaryColor
|
|
122
122
|
}
|
|
123
123
|
}, re = {
|
|
124
124
|
renderKey: L.string.def("menuHeaderRender"),
|
|
@@ -197,7 +197,7 @@ const L = ct, se = {
|
|
|
197
197
|
onSelect: {
|
|
198
198
|
type: Function
|
|
199
199
|
}
|
|
200
|
-
},
|
|
200
|
+
}, Y = {
|
|
201
201
|
...se,
|
|
202
202
|
...Ie,
|
|
203
203
|
menuLoading: L.looseBool,
|
|
@@ -249,14 +249,14 @@ const L = ct, se = {
|
|
|
249
249
|
onCollapse: {
|
|
250
250
|
type: Function
|
|
251
251
|
}
|
|
252
|
-
}, cn = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/,
|
|
252
|
+
}, cn = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/, ft = (e) => cn.test(e);
|
|
253
253
|
function mn(e) {
|
|
254
254
|
return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
var u,
|
|
256
|
+
function gt(e, t, a, o) {
|
|
257
|
+
var u, m, c, S, p, B, y, P, l, r, M, O, w, g, b, x, I, h, C, R, k, D, z, j, T, _, G, K, q, d, v, $, F, N;
|
|
258
258
|
const i = { ...e };
|
|
259
|
-
return a === "light" ? (i.colorItemBg = (
|
|
259
|
+
return a === "light" ? (i.colorItemBg = (m = (u = t.layout) == null ? void 0 : u[o]) == null ? void 0 : m.colorBgMenu, i.colorSubItemBg = (S = (c = t.layout) == null ? void 0 : c[o]) == null ? void 0 : S.colorSubItemBg, i.colorItemBgSelected = (B = (p = t.layout) == null ? void 0 : p[o]) == null ? void 0 : B.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (P = (y = t.layout) == null ? void 0 : y[o]) == null ? void 0 : P.colorBgMenuItemSelected, i.colorItemText = (r = (l = t.layout) == null ? void 0 : l[o]) == null ? void 0 : r.colorTextMenu, i.colorItemTextHover = (O = (M = t.layout) == null ? void 0 : M[o]) == null ? void 0 : O.colorTextMenuHover, i.colorItemTextSelected = (g = (w = t.layout) == null ? void 0 : w[o]) == null ? void 0 : g.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (x = (b = t.layout) == null ? void 0 : b[o]) == null ? void 0 : x.colorTextMenuSelected, o === "sider" && (i.colorItemBgHover = (h = (I = t.layout) == null ? void 0 : I[o]) == null ? void 0 : h.colorBgMenuItemHover)) : a === "dark" && (i.colorItemBg = (R = (C = t.layout) == null ? void 0 : C[o]) == null ? void 0 : R.colorDarkBgMenu, i.colorSubItemBg = (D = (k = t.layout) == null ? void 0 : k[o]) == null ? void 0 : D.colorDarkSubItemBg, i.colorItemBgSelected = (j = (z = t.layout) == null ? void 0 : z[o]) == null ? void 0 : j.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (_ = (T = t.layout) == null ? void 0 : T[o]) == null ? void 0 : _.colorDarkBgMenuItemSelected, i.colorItemText = (K = (G = t.layout) == null ? void 0 : G[o]) == null ? void 0 : K.colorDarkTextMenu, i.colorItemTextHover = (d = (q = t.layout) == null ? void 0 : q[o]) == null ? void 0 : d.colorDarkTextMenuHover, i.colorItemTextSelected = ($ = (v = t.layout) == null ? void 0 : v[o]) == null ? void 0 : $.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (N = (F = t.layout) == null ? void 0 : F[o]) == null ? void 0 : N.colorDarkTextMenuSelected, o === "header" && (i.colorActiveBarHeight = 0)), i;
|
|
260
260
|
}
|
|
261
261
|
const fn = ["left", "right"], ue = ["left", "right", "down", "up"], gn = ["downBig", "upBig", "leftBig", "rightBig"], hn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], yn = ["downLeft", "upRight", "downRight", "upLeft"], je = {
|
|
262
262
|
preset: [
|
|
@@ -325,12 +325,12 @@ function Li(e, t) {
|
|
|
325
325
|
var o, i;
|
|
326
326
|
const a = ((i = (o = e.find((u) => u.path === t)) == null ? void 0 : o.meta) == null ? void 0 : i.key) || "";
|
|
327
327
|
if (a) {
|
|
328
|
-
const u = [],
|
|
329
|
-
for (let c = 0; c <
|
|
330
|
-
u.push(He(
|
|
328
|
+
const u = [], m = a.split("-");
|
|
329
|
+
for (let c = 0; c < m.length; c += 1)
|
|
330
|
+
u.push(He(m).splice(0, c + 1).join("-"));
|
|
331
331
|
return e.filter((c) => u.some((S) => {
|
|
332
|
-
var
|
|
333
|
-
return S === ((
|
|
332
|
+
var p;
|
|
333
|
+
return S === ((p = c == null ? void 0 : c.meta) == null ? void 0 : p.key) || "";
|
|
334
334
|
}));
|
|
335
335
|
}
|
|
336
336
|
return [];
|
|
@@ -348,7 +348,7 @@ function Sn(e, t) {
|
|
|
348
348
|
...t.reduce((a, o) => ({ ...a, [o]: e[o] }), {})
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
const In = (e = Symbol(), t = "Context.Provider") =>
|
|
351
|
+
const In = (e = Symbol(), t = "Context.Provider") => V({
|
|
352
352
|
name: t,
|
|
353
353
|
props: {
|
|
354
354
|
value: {
|
|
@@ -357,16 +357,16 @@ const In = (e = Symbol(), t = "Context.Provider") => j({
|
|
|
357
357
|
}
|
|
358
358
|
},
|
|
359
359
|
setup(o, { slots: i }) {
|
|
360
|
-
return
|
|
360
|
+
return Fe(e, Bt(o.value)), () => {
|
|
361
361
|
var u;
|
|
362
362
|
return (u = i.default) == null ? void 0 : u.call(i);
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
|
-
}), Mn = (e = Symbol(), t) =>
|
|
366
|
-
|
|
367
|
-
},
|
|
365
|
+
}), Mn = (e = Symbol(), t) => it(e, t || {}), We = Symbol("pro-layout-context"), On = () => In(We, "ProLayoutContext.Provider"), Rn = (e) => {
|
|
366
|
+
Fe(We, e);
|
|
367
|
+
}, ee = () => Mn(We);
|
|
368
368
|
On();
|
|
369
|
-
function
|
|
369
|
+
function qe(e) {
|
|
370
370
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
371
371
|
}
|
|
372
372
|
const xe = (e) => {
|
|
@@ -378,15 +378,15 @@ const xe = (e) => {
|
|
|
378
378
|
if (!t)
|
|
379
379
|
return null;
|
|
380
380
|
if (typeof t == "string" && t !== "") {
|
|
381
|
-
if (
|
|
381
|
+
if (ft(t) || mn(t))
|
|
382
382
|
return n("img", {
|
|
383
383
|
src: t,
|
|
384
384
|
alt: "icon",
|
|
385
385
|
class: `${e.className}-icon-image`
|
|
386
386
|
}, null);
|
|
387
387
|
if (a === 1) {
|
|
388
|
-
const u =
|
|
389
|
-
scriptUrl: o ||
|
|
388
|
+
const u = Wt({
|
|
389
|
+
scriptUrl: o || H.iconfontUrl
|
|
390
390
|
});
|
|
391
391
|
return o ? n(u, {
|
|
392
392
|
type: t
|
|
@@ -397,7 +397,7 @@ const xe = (e) => {
|
|
|
397
397
|
}
|
|
398
398
|
if (ie(t))
|
|
399
399
|
return t;
|
|
400
|
-
const i =
|
|
400
|
+
const i = lt(t);
|
|
401
401
|
return typeof xe == "function" && n(i, null, null) || null;
|
|
402
402
|
};
|
|
403
403
|
xe.props = {
|
|
@@ -408,98 +408,96 @@ xe.props = {
|
|
|
408
408
|
className: String,
|
|
409
409
|
iconfontUrl: String
|
|
410
410
|
};
|
|
411
|
-
const
|
|
411
|
+
const ht = /* @__PURE__ */ V({
|
|
412
412
|
name: "BaseMenu",
|
|
413
413
|
props: Ie,
|
|
414
414
|
setup(e) {
|
|
415
415
|
const t = De(), {
|
|
416
416
|
getPrefixCls: a
|
|
417
|
-
} =
|
|
417
|
+
} = ee(), o = a({
|
|
418
418
|
suffixCls: "menu-item",
|
|
419
419
|
isPor: !0
|
|
420
420
|
}), i = (l) => {
|
|
421
|
-
var
|
|
422
|
-
(
|
|
421
|
+
var r;
|
|
422
|
+
(r = e.onOpenKeys) == null || r.call(e, l);
|
|
423
423
|
}, u = (l) => {
|
|
424
|
-
var
|
|
425
|
-
(
|
|
426
|
-
},
|
|
427
|
-
var
|
|
428
|
-
(
|
|
429
|
-
}, c = (l,
|
|
430
|
-
var
|
|
431
|
-
const M = l.target || "",
|
|
432
|
-
((
|
|
433
|
-
}, S =
|
|
434
|
-
var
|
|
435
|
-
if (Array.isArray(l.children) && l.children.length > 0 && !((
|
|
436
|
-
let
|
|
424
|
+
var r;
|
|
425
|
+
(r = e.onSelect) == null || r.call(e, l.selectedKeys);
|
|
426
|
+
}, m = (l) => {
|
|
427
|
+
var r;
|
|
428
|
+
(r = e.onClick) == null || r.call(e, ...l);
|
|
429
|
+
}, c = (l, r) => {
|
|
430
|
+
var w;
|
|
431
|
+
const M = l.target || "", O = ft(M);
|
|
432
|
+
((w = t.currentRoute.value) == null ? void 0 : w.fullPath) !== r.to && O && M && l.targetStatus === 1 && window.open(M);
|
|
433
|
+
}, S = lt("router-link"), p = (l = []) => l.map((r) => B(r)).filter((r) => r), B = (l) => {
|
|
434
|
+
var O, w, g, b, x, I, h, C, R;
|
|
435
|
+
if (Array.isArray(l.children) && l.children.length > 0 && !((O = l == null ? void 0 : l.meta) != null && O.hideInMenu) && !((w = l == null ? void 0 : l.meta) != null && w.hideChildrenInMenu)) {
|
|
436
|
+
let k;
|
|
437
437
|
if (e.subMenuItemRender)
|
|
438
438
|
return e.subMenuItemRender({
|
|
439
439
|
item: l,
|
|
440
|
-
children:
|
|
440
|
+
children: p(l.children)
|
|
441
441
|
});
|
|
442
|
-
const
|
|
442
|
+
const D = (g = l.meta) == null ? void 0 : g.title, z = (b = l.meta) != null && b.icon ? n("span", {
|
|
443
443
|
class: "gx-pro-sider-menu-item"
|
|
444
444
|
}, [n("span", {
|
|
445
445
|
class: "gx-pro-sider-menu-item-title"
|
|
446
|
-
}, [
|
|
446
|
+
}, [D])]) : n("span", {
|
|
447
447
|
class: "gx-pro-sider-menu-item"
|
|
448
|
-
}, [
|
|
449
|
-
return n(
|
|
448
|
+
}, [D]), j = ((x = l.meta) == null ? void 0 : x.type) === "group", T = j ? ae.ItemGroup : ae.SubMenu;
|
|
449
|
+
return n(T, {
|
|
450
450
|
title: z,
|
|
451
451
|
key: l.path,
|
|
452
|
-
icon:
|
|
452
|
+
icon: j ? null : n(xe, {
|
|
453
453
|
className: o,
|
|
454
|
-
icon: (
|
|
454
|
+
icon: (I = l.meta) == null ? void 0 : I.icon,
|
|
455
455
|
iconfontUrl: e.iconfontUrl,
|
|
456
|
-
iconType: (
|
|
456
|
+
iconType: (h = l.meta) == null ? void 0 : h.iconType
|
|
457
457
|
}, null)
|
|
458
|
-
},
|
|
459
|
-
default: () => [
|
|
458
|
+
}, qe(k = p(l.children)) ? k : {
|
|
459
|
+
default: () => [k]
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
|
-
const [
|
|
462
|
+
const [r, M] = y(l);
|
|
463
463
|
return e.menuItemRender && e.menuItemRender({
|
|
464
464
|
item: l,
|
|
465
|
-
title:
|
|
465
|
+
title: r,
|
|
466
466
|
icon: M
|
|
467
467
|
}) || n(ae.Item, {
|
|
468
|
-
disabled: (
|
|
469
|
-
danger: (
|
|
468
|
+
disabled: (C = l.meta) == null ? void 0 : C.disabled,
|
|
469
|
+
danger: (R = l.meta) == null ? void 0 : R.danger,
|
|
470
470
|
key: l.path,
|
|
471
471
|
icon: M
|
|
472
|
-
},
|
|
473
|
-
default: () => [
|
|
472
|
+
}, qe(r) ? r : {
|
|
473
|
+
default: () => [r]
|
|
474
474
|
});
|
|
475
|
-
},
|
|
476
|
-
var
|
|
477
|
-
const
|
|
475
|
+
}, y = (l) => {
|
|
476
|
+
var x, I, h, C, R;
|
|
477
|
+
const r = {
|
|
478
478
|
...l.meta
|
|
479
|
-
}, M =
|
|
479
|
+
}, M = r.targetStatus === 1 && r.target ? "a" : S, O = {
|
|
480
480
|
to: l.linkPath || l.path || ""
|
|
481
|
-
}
|
|
482
|
-
I.to === "/live/list/operation/:id" && (I.to = "/live/list/operation/add");
|
|
483
|
-
const x = (h = l.meta) == null ? void 0 : h.title, y = (R = l.meta) != null && R.icon ? n(M, X(I, {
|
|
481
|
+
}, w = (x = l.meta) == null ? void 0 : x.title, g = (I = l.meta) != null && I.icon ? n(M, X(O, {
|
|
484
482
|
class: "gx-pro-sider-menu-item",
|
|
485
|
-
onClick: () => c(
|
|
483
|
+
onClick: () => c(r, O)
|
|
486
484
|
}), {
|
|
487
485
|
default: () => [n("span", {
|
|
488
486
|
class: "gx-pro-sider-menu-item-title"
|
|
489
|
-
}, [
|
|
490
|
-
}) : n(M, X(
|
|
487
|
+
}, [w])]
|
|
488
|
+
}) : n(M, X(O, {
|
|
491
489
|
class: "gx-pro-sider-menu-item",
|
|
492
|
-
onClick: () => c(
|
|
490
|
+
onClick: () => c(r, O)
|
|
493
491
|
}), {
|
|
494
|
-
default: () => [n("span", null, [
|
|
495
|
-
}),
|
|
492
|
+
default: () => [n("span", null, [w])]
|
|
493
|
+
}), b = ((h = l.meta) == null ? void 0 : h.icon) && n(xe, {
|
|
496
494
|
className: o,
|
|
497
|
-
icon: (
|
|
495
|
+
icon: (C = l.meta) == null ? void 0 : C.icon,
|
|
498
496
|
iconfontUrl: e.iconfontUrl,
|
|
499
|
-
iconType: (
|
|
497
|
+
iconType: (R = l.meta) == null ? void 0 : R.iconType
|
|
500
498
|
}, null) || void 0;
|
|
501
|
-
return [
|
|
502
|
-
},
|
|
499
|
+
return [g, b];
|
|
500
|
+
}, P = f(() => p(e.menuData));
|
|
503
501
|
return () => n(ae, X({
|
|
504
502
|
key: "Menu",
|
|
505
503
|
inlineIndent: 16,
|
|
@@ -509,12 +507,12 @@ const gt = /* @__PURE__ */ j({
|
|
|
509
507
|
selectedKeys: e.selectedKeys || [],
|
|
510
508
|
onOpenChange: i,
|
|
511
509
|
onSelect: u,
|
|
512
|
-
onClick:
|
|
510
|
+
onClick: m
|
|
513
511
|
}, e.menuProps), {
|
|
514
|
-
default: () => [
|
|
512
|
+
default: () => [P.value]
|
|
515
513
|
});
|
|
516
514
|
}
|
|
517
|
-
}),
|
|
515
|
+
}), yt = new s("pro-layout-title-hide", {
|
|
518
516
|
"0%": { display: "none", opacity: 0 },
|
|
519
517
|
"99%": {
|
|
520
518
|
display: "none",
|
|
@@ -536,7 +534,7 @@ const gt = /* @__PURE__ */ j({
|
|
|
536
534
|
}
|
|
537
535
|
};
|
|
538
536
|
}, kn = (e) => {
|
|
539
|
-
var t, a, o, i, u,
|
|
537
|
+
var t, a, o, i, u, m, c, S, p, B, y, P;
|
|
540
538
|
return {
|
|
541
539
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
542
540
|
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
@@ -569,7 +567,7 @@ const gt = /* @__PURE__ */ j({
|
|
|
569
567
|
background: (i = (o = e.layout) == null ? void 0 : o.sider) == null ? void 0 : i.colorBgMenu,
|
|
570
568
|
boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
|
|
571
569
|
[`${e.componentCls}-footer`]: {
|
|
572
|
-
color: (
|
|
570
|
+
color: (m = (u = e.layout) == null ? void 0 : u.sider) == null ? void 0 : m.colorTextMenu
|
|
573
571
|
}
|
|
574
572
|
},
|
|
575
573
|
"&-links": {
|
|
@@ -588,7 +586,7 @@ const gt = /* @__PURE__ */ j({
|
|
|
588
586
|
color: (S = (c = e.layout) == null ? void 0 : c.sider) == null ? void 0 : S.colorDarkTextMenu,
|
|
589
587
|
paddingBlockEnd: 16,
|
|
590
588
|
fontSize: e.fontSize,
|
|
591
|
-
animationName:
|
|
589
|
+
animationName: yt,
|
|
592
590
|
animationDuration: ".4s",
|
|
593
591
|
animationTimingFunction: "ease"
|
|
594
592
|
}
|
|
@@ -600,8 +598,8 @@ const gt = /* @__PURE__ */ j({
|
|
|
600
598
|
zIndex: "100",
|
|
601
599
|
height: "100%",
|
|
602
600
|
"&-mix": {
|
|
603
|
-
height: `calc(100% - ${((
|
|
604
|
-
insetBlockStart: `${((
|
|
601
|
+
height: `calc(100% - ${((B = (p = e.layout) == null ? void 0 : p.header) == null ? void 0 : B.heightLayoutHeader) || H.headerHeight}px)`,
|
|
602
|
+
insetBlockStart: `${((P = (y = e.layout) == null ? void 0 : y.header) == null ? void 0 : P.heightLayoutHeader) || H.headerHeight}px`
|
|
605
603
|
}
|
|
606
604
|
}
|
|
607
605
|
}
|
|
@@ -615,7 +613,7 @@ const gt = /* @__PURE__ */ j({
|
|
|
615
613
|
}
|
|
616
614
|
}
|
|
617
615
|
}
|
|
618
|
-
}),
|
|
616
|
+
}), Pn = (e) => ({
|
|
619
617
|
[`${e.proComponentsCls}-sider`]: {
|
|
620
618
|
"&-light": {
|
|
621
619
|
[`${e.proComponentsCls}-sider-logo`]: {
|
|
@@ -649,7 +647,7 @@ const gt = /* @__PURE__ */ j({
|
|
|
649
647
|
marginInlineEnd: 0,
|
|
650
648
|
marginInlineStart: 12,
|
|
651
649
|
color: e.colorWhite,
|
|
652
|
-
animationName:
|
|
650
|
+
animationName: yt,
|
|
653
651
|
animationDuration: ".2s",
|
|
654
652
|
fontWeight: 600,
|
|
655
653
|
fontSize: 18,
|
|
@@ -674,34 +672,34 @@ const gt = /* @__PURE__ */ j({
|
|
|
674
672
|
}
|
|
675
673
|
}
|
|
676
674
|
}
|
|
677
|
-
}),
|
|
675
|
+
}), bt = (e, t) => e ? typeof e == "string" ? n("img", {
|
|
678
676
|
src: e,
|
|
679
677
|
alt: "logo",
|
|
680
678
|
style: t
|
|
681
|
-
}, null) : typeof e == "function" ? e() : e : null,
|
|
679
|
+
}, null) : typeof e == "function" ? e() : e : null, Fn = (e, t = "menuHeaderRender") => {
|
|
682
680
|
const {
|
|
683
681
|
logo: a,
|
|
684
682
|
logoStyle: o,
|
|
685
683
|
title: i,
|
|
686
684
|
layout: u
|
|
687
|
-
} = e,
|
|
688
|
-
if (
|
|
685
|
+
} = e, m = e[t || ""];
|
|
686
|
+
if (m === !1)
|
|
689
687
|
return null;
|
|
690
|
-
const c =
|
|
691
|
-
return typeof
|
|
692
|
-
}, Ae = /* @__PURE__ */
|
|
688
|
+
const c = bt(a, o), S = i && n("h1", null, [i]);
|
|
689
|
+
return typeof m == "function" ? m(c, e.collapsed ? null : S, e) : n(Z, null, [c || null, e.collapsed && u === "side" ? null : S]);
|
|
690
|
+
}, Ae = /* @__PURE__ */ V({
|
|
693
691
|
name: "LogoContent",
|
|
694
692
|
props: re,
|
|
695
693
|
setup(e) {
|
|
696
694
|
const {
|
|
697
695
|
getPrefixCls: t
|
|
698
|
-
} =
|
|
696
|
+
} = ee(), a = f(() => e.layout === "side" || e.layout === "simple"), o = f(() => t({
|
|
699
697
|
suffixCls: a.value || e.drawer ? "sider" : "global-header",
|
|
700
698
|
isPor: !0
|
|
701
699
|
})), {
|
|
702
700
|
wrapSSR: i,
|
|
703
701
|
hashId: u
|
|
704
|
-
} =
|
|
702
|
+
} = Q("ProLayoutLogo", [Pn]), m = f(() => Fn(e, e.renderKey));
|
|
705
703
|
return () => i(n("div", {
|
|
706
704
|
id: "logo",
|
|
707
705
|
class: {
|
|
@@ -713,19 +711,19 @@ const gt = /* @__PURE__ */ j({
|
|
|
713
711
|
var c;
|
|
714
712
|
return (c = e.onMenuHeaderClick) == null ? void 0 : c.call(e);
|
|
715
713
|
}
|
|
716
|
-
}, [n("a", null, [
|
|
714
|
+
}, [n("a", null, [m.value || null])]));
|
|
717
715
|
}
|
|
718
716
|
});
|
|
719
717
|
Ae.inheritAttrs = !1;
|
|
720
|
-
function
|
|
718
|
+
function Tn(e) {
|
|
721
719
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
722
720
|
}
|
|
723
721
|
const {
|
|
724
722
|
Sider: Ln
|
|
725
723
|
} = ce, {
|
|
726
|
-
Item:
|
|
727
|
-
} = ae,
|
|
728
|
-
props:
|
|
724
|
+
Item: Ze
|
|
725
|
+
} = ae, pt = (e) => e ? n(At, null, null) : n(Kt, null, null), Je = /* @__PURE__ */ V({
|
|
726
|
+
props: Y,
|
|
729
727
|
inheritAttrs: !1,
|
|
730
728
|
setup(e) {
|
|
731
729
|
const {
|
|
@@ -734,51 +732,51 @@ const {
|
|
|
734
732
|
flatMenuData: o,
|
|
735
733
|
menuData: i,
|
|
736
734
|
openKeys: u
|
|
737
|
-
} =
|
|
738
|
-
token:
|
|
735
|
+
} = ee(), {
|
|
736
|
+
token: m
|
|
739
737
|
} = Se(), {
|
|
740
738
|
theme: c,
|
|
741
739
|
layout: S,
|
|
742
|
-
isMobile:
|
|
743
|
-
menuLoading:
|
|
744
|
-
breakpoint:
|
|
745
|
-
fixSiderbar:
|
|
740
|
+
isMobile: p,
|
|
741
|
+
menuLoading: B,
|
|
742
|
+
breakpoint: y,
|
|
743
|
+
fixSiderbar: P,
|
|
746
744
|
collapsed: l,
|
|
747
|
-
siderWidth:
|
|
745
|
+
siderWidth: r,
|
|
748
746
|
collapsedWidth: M,
|
|
749
|
-
menuExtraRender:
|
|
750
|
-
menuContentRender:
|
|
751
|
-
menuFooterRender:
|
|
752
|
-
collapsedButtonRender:
|
|
753
|
-
links:
|
|
754
|
-
} = Ce(e),
|
|
747
|
+
menuExtraRender: O,
|
|
748
|
+
menuContentRender: w,
|
|
749
|
+
menuFooterRender: g,
|
|
750
|
+
collapsedButtonRender: b,
|
|
751
|
+
links: x
|
|
752
|
+
} = Ce(e), I = t({
|
|
755
753
|
suffixCls: "sider",
|
|
756
754
|
isPor: !0
|
|
757
755
|
}), {
|
|
758
|
-
wrapSSR:
|
|
759
|
-
hashId:
|
|
760
|
-
} =
|
|
761
|
-
var A;
|
|
762
|
-
return typeof h.value == "function" ? (A = h.value) == null ? void 0 : A.call(h) : h.value;
|
|
763
|
-
}), E = v(() => m.value !== !1 ? m.value || bt : !1), Y = (A) => {
|
|
756
|
+
wrapSSR: h,
|
|
757
|
+
hashId: C
|
|
758
|
+
} = Q("ProLayoutSiderMenu", [Bn, kn, $n], I), R = f(() => e.layout === "wide"), k = f(() => e.layout === "mix" && !e.isMobile && e.splitMenus), D = f(() => S.value === "side" || S.value === "simple"), z = f(() => (e.layout === "mix" || R.value) && "light" || c.value), j = f(() => S.value === "top" ? [] : i.value), T = f(() => e.collapsed ? e.collapsedWidth : e.siderWidth), _ = f(() => [C.value, I, p.value ? "shadow" : null, `${I}-${z.value}`, P.value && e.layout !== "wide" ? `${I}-fixed` : null]), G = f(() => {
|
|
764
759
|
var d;
|
|
760
|
+
return typeof x.value == "function" ? (d = x.value) == null ? void 0 : d.call(x) : x.value;
|
|
761
|
+
}), K = f(() => b.value !== !1 ? b.value || pt : !1), q = (d) => {
|
|
762
|
+
var v;
|
|
765
763
|
if (e.onSelect) {
|
|
766
|
-
if (
|
|
767
|
-
e.onSelect([(
|
|
764
|
+
if (A(k)) {
|
|
765
|
+
e.onSelect([(v = a == null ? void 0 : a.value) == null ? void 0 : v[0], ...d]);
|
|
768
766
|
return;
|
|
769
767
|
}
|
|
770
|
-
e.onSelect(
|
|
768
|
+
e.onSelect(d);
|
|
771
769
|
}
|
|
772
770
|
};
|
|
773
771
|
return () => {
|
|
774
|
-
var
|
|
775
|
-
const
|
|
776
|
-
drawer:
|
|
777
|
-
}, e), null) : null,
|
|
778
|
-
class: `${
|
|
772
|
+
var F;
|
|
773
|
+
const d = D.value ? n(Ae, X({
|
|
774
|
+
drawer: p.value
|
|
775
|
+
}, e), null) : null, v = O.value && ((F = O.value) == null ? void 0 : F.call(O, e)), $ = n(ht, {
|
|
776
|
+
class: `${I}-menu ${C.value}`,
|
|
779
777
|
theme: z.value,
|
|
780
778
|
mode: "inline",
|
|
781
|
-
menuData:
|
|
779
|
+
menuData: k.value ? o.value : j.value,
|
|
782
780
|
iconfontUrl: e.iconfontUrl,
|
|
783
781
|
openKeys: u.value,
|
|
784
782
|
selectedKeys: a.value,
|
|
@@ -788,117 +786,117 @@ const {
|
|
|
788
786
|
style: {
|
|
789
787
|
width: "100%"
|
|
790
788
|
},
|
|
791
|
-
onOpenKeys: (
|
|
792
|
-
var
|
|
793
|
-
return e.onOpenKeys && ((
|
|
789
|
+
onOpenKeys: (N) => {
|
|
790
|
+
var U;
|
|
791
|
+
return e.onOpenKeys && ((U = e.onOpenKeys) == null ? void 0 : U.call(e, N));
|
|
794
792
|
},
|
|
795
|
-
onSelect:
|
|
793
|
+
onSelect: q
|
|
796
794
|
}, null);
|
|
797
|
-
return
|
|
795
|
+
return k.value && A(o.value).length === 0 || j.value.length === 0 ? null : h(n(Te, {
|
|
798
796
|
theme: {
|
|
799
797
|
components: {
|
|
800
|
-
Menu:
|
|
798
|
+
Menu: gt({
|
|
801
799
|
radiusItem: 4,
|
|
802
800
|
colorActiveBarWidth: 0,
|
|
803
801
|
colorActiveBarHeight: 0,
|
|
804
802
|
colorActiveBarBorderSize: 0
|
|
805
803
|
// 主题颜色
|
|
806
|
-
}, (
|
|
804
|
+
}, (m == null ? void 0 : m.value) || {}, z.value, "sider")
|
|
807
805
|
}
|
|
808
806
|
}
|
|
809
807
|
}, {
|
|
810
|
-
default: () => [
|
|
808
|
+
default: () => [P.value && n("div", {
|
|
811
809
|
style: {
|
|
812
|
-
width: `${
|
|
810
|
+
width: `${T.value}px`,
|
|
813
811
|
overflow: "hidden",
|
|
814
|
-
flex: `0 0 ${
|
|
815
|
-
maxWidth: `${
|
|
816
|
-
minWidth: `${
|
|
812
|
+
flex: `0 0 ${T.value}px`,
|
|
813
|
+
maxWidth: `${T.value}px`,
|
|
814
|
+
minWidth: `${T.value}px`,
|
|
817
815
|
transition: "background-color 0.2s, min-width 0.2s, max-width 0.2s"
|
|
818
816
|
}
|
|
819
817
|
}, null), n(Ln, {
|
|
820
818
|
collapsible: !0,
|
|
821
819
|
trigger: null,
|
|
822
|
-
class:
|
|
820
|
+
class: _.value,
|
|
823
821
|
style: {
|
|
824
822
|
overflow: "hidden",
|
|
825
|
-
zIndex:
|
|
826
|
-
paddingTop:
|
|
823
|
+
zIndex: P.value ? 101 : void 0,
|
|
824
|
+
paddingTop: D.value || e.isMobile || R.value ? 0 : `${e.headerHeight}px`,
|
|
827
825
|
top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
|
|
828
826
|
height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
|
|
829
827
|
},
|
|
830
828
|
theme: z.value,
|
|
831
|
-
breakpoint:
|
|
829
|
+
breakpoint: y.value || void 0,
|
|
832
830
|
collapsed: l.value,
|
|
833
|
-
width:
|
|
831
|
+
width: r.value,
|
|
834
832
|
collapsedWidth: M.value
|
|
835
833
|
}, {
|
|
836
834
|
default: () => {
|
|
837
|
-
var
|
|
838
|
-
return [
|
|
839
|
-
class: ["gx-pro-sider-loading",
|
|
835
|
+
var N, U;
|
|
836
|
+
return [B.value && n("div", {
|
|
837
|
+
class: ["gx-pro-sider-loading", C.value]
|
|
840
838
|
}, [n(ve, {
|
|
841
|
-
spinning:
|
|
842
|
-
}, null)]),
|
|
839
|
+
spinning: B.value
|
|
840
|
+
}, null)]), d || null, v && !e.collapsed && n("div", {
|
|
843
841
|
class: {
|
|
844
|
-
[`${
|
|
845
|
-
[`${
|
|
846
|
-
[`${
|
|
842
|
+
[`${C.value}`]: !0,
|
|
843
|
+
[`${I}-extra`]: !0,
|
|
844
|
+
[`${I}-extra-no-logo`]: !d
|
|
847
845
|
}
|
|
848
|
-
}, [
|
|
846
|
+
}, [v]), n("div", {
|
|
849
847
|
style: {
|
|
850
848
|
flex: "1 1 0%",
|
|
851
849
|
overflow: "hidden auto"
|
|
852
850
|
}
|
|
853
|
-
}, [
|
|
854
|
-
class: `${
|
|
851
|
+
}, [w.value && ((N = w.value) == null ? void 0 : N.call(w, e, $)) || $]), e.layout !== "wide" && n("div", {
|
|
852
|
+
class: `${I}-links ${C.value}`
|
|
855
853
|
}, [n(ae, {
|
|
856
854
|
theme: z.value,
|
|
857
855
|
inlineIndent: 16,
|
|
858
|
-
class: `${
|
|
856
|
+
class: `${I}-link-menu ${C.value}`,
|
|
859
857
|
selectedKeys: [],
|
|
860
858
|
openKeys: [],
|
|
861
859
|
mode: "inline"
|
|
862
860
|
}, {
|
|
863
|
-
default: () => [(G.value || []).map((
|
|
864
|
-
class: `${
|
|
865
|
-
key:
|
|
866
|
-
},
|
|
867
|
-
default: () => [
|
|
868
|
-
})),
|
|
869
|
-
class: `${
|
|
861
|
+
default: () => [(G.value || []).map((E, te) => n(Ze, {
|
|
862
|
+
class: `${I}-link ${C.value}`,
|
|
863
|
+
key: te
|
|
864
|
+
}, Tn(E) ? E : {
|
|
865
|
+
default: () => [E]
|
|
866
|
+
})), K.value && !p.value && n(Ze, {
|
|
867
|
+
class: `${I}-collapsed-button ${C.value}`,
|
|
870
868
|
title: !1,
|
|
871
869
|
key: "collapsed",
|
|
872
870
|
onClick: () => {
|
|
873
|
-
var
|
|
874
|
-
e.onCollapse && ((
|
|
871
|
+
var E;
|
|
872
|
+
e.onCollapse && ((E = e.onCollapse) == null || E.call(e, !l.value));
|
|
875
873
|
}
|
|
876
874
|
}, {
|
|
877
875
|
default: () => {
|
|
878
|
-
var
|
|
879
|
-
return [(
|
|
876
|
+
var E;
|
|
877
|
+
return [(E = K.value) == null ? void 0 : E.call(K, l.value)];
|
|
880
878
|
}
|
|
881
879
|
})]
|
|
882
|
-
})]),
|
|
883
|
-
class: `${
|
|
884
|
-
}, [(
|
|
880
|
+
})]), g.value && n("div", {
|
|
881
|
+
class: `${I}-footer ${C.value}`
|
|
882
|
+
}, [(U = g.value) == null ? void 0 : U.call(g, e)])];
|
|
885
883
|
}
|
|
886
884
|
})]
|
|
887
885
|
}));
|
|
888
886
|
};
|
|
889
887
|
}
|
|
890
|
-
}), Be = /* @__PURE__ */
|
|
888
|
+
}), Be = /* @__PURE__ */ V({
|
|
891
889
|
name: "SiderMenuWrapper",
|
|
892
890
|
inheritAttrs: !1,
|
|
893
891
|
props: {
|
|
894
|
-
...
|
|
892
|
+
...Y,
|
|
895
893
|
matchMenuKeys: {
|
|
896
894
|
type: Array,
|
|
897
895
|
default: () => []
|
|
898
896
|
}
|
|
899
897
|
},
|
|
900
898
|
setup(e) {
|
|
901
|
-
return () => n(
|
|
899
|
+
return () => n(Z, null, [e.isMobile ? n(be, {
|
|
902
900
|
maskClosable: !0,
|
|
903
901
|
open: !e.collapsed,
|
|
904
902
|
closable: !1,
|
|
@@ -917,14 +915,14 @@ const {
|
|
|
917
915
|
flexDirection: "row"
|
|
918
916
|
}
|
|
919
917
|
}, {
|
|
920
|
-
default: () => [n(
|
|
918
|
+
default: () => [n(Je, X(e, {
|
|
921
919
|
collapsed: e.isMobile ? !1 : e.collapsed
|
|
922
920
|
}), null)]
|
|
923
|
-
}) : n(
|
|
921
|
+
}) : n(Je, e, null)]);
|
|
924
922
|
}
|
|
925
|
-
}),
|
|
926
|
-
|
|
927
|
-
}, zn = () => Dn(
|
|
923
|
+
}), vt = Symbol("pro-app-context"), Dn = (e = Symbol(), t) => it(e, t || {}), Nn = (e) => {
|
|
924
|
+
Fe(vt, e);
|
|
925
|
+
}, zn = () => Dn(vt, []);
|
|
928
926
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
929
927
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
930
928
|
const Hn = Object.prototype.toString;
|
|
@@ -958,7 +956,7 @@ const Kn = ({ suffixCls: e, customizePrefixCls: t, isPor: a, className: o }) =>
|
|
|
958
956
|
fontFamily: u
|
|
959
957
|
}
|
|
960
958
|
};
|
|
961
|
-
}, En = ["emptyText", "indicator"], Oe = /* @__PURE__ */
|
|
959
|
+
}, En = ["emptyText", "indicator"], Oe = /* @__PURE__ */ V({
|
|
962
960
|
name: "GProApp",
|
|
963
961
|
props: {
|
|
964
962
|
rootClassName: String,
|
|
@@ -974,20 +972,23 @@ const Kn = ({ suffixCls: e, customizePrefixCls: t, isPor: a, className: o }) =>
|
|
|
974
972
|
}), {
|
|
975
973
|
wrapSSR: o,
|
|
976
974
|
hashId: i
|
|
977
|
-
} =
|
|
975
|
+
} = Q("BaseApp", [Un], a), u = f(() => An(En, t, e)), m = f(() => [i.value, a, e.rootClassName]);
|
|
978
976
|
return Nn({
|
|
979
|
-
emptyText:
|
|
980
|
-
indicator:
|
|
977
|
+
emptyText: f(() => u.value.emptyText),
|
|
978
|
+
indicator: f(() => u.value.indicator)
|
|
981
979
|
}), () => {
|
|
982
980
|
var c;
|
|
983
981
|
return o(n("div", {
|
|
984
|
-
class:
|
|
982
|
+
class: m.value
|
|
985
983
|
}, [(c = t.default) == null ? void 0 : c.call(t)]));
|
|
986
984
|
};
|
|
987
985
|
}
|
|
988
986
|
});
|
|
989
987
|
Oe.install = (e) => (e.component(Oe.name, Oe), e);
|
|
990
988
|
const fe = {
|
|
989
|
+
waterMarkProps: {
|
|
990
|
+
type: Object
|
|
991
|
+
},
|
|
991
992
|
pageHeaderRender: {
|
|
992
993
|
type: [Object, Function, Boolean],
|
|
993
994
|
default: () => {
|
|
@@ -1005,8 +1006,11 @@ const fe = {
|
|
|
1005
1006
|
},
|
|
1006
1007
|
pageHeaderStyle: L.style,
|
|
1007
1008
|
pageContentStyle: L.style,
|
|
1009
|
+
pageChildrenContentStyle: L.style,
|
|
1008
1010
|
loading: L.bool.def(!1),
|
|
1009
|
-
usePageCard:
|
|
1011
|
+
usePageCard: {
|
|
1012
|
+
type: [Boolean]
|
|
1013
|
+
},
|
|
1010
1014
|
waterMark: L.bool.def(!0),
|
|
1011
1015
|
pageCardProps: Object
|
|
1012
1016
|
}, Xn = (e) => ({
|
|
@@ -1020,7 +1024,7 @@ const fe = {
|
|
|
1020
1024
|
marginTop: "8px"
|
|
1021
1025
|
}
|
|
1022
1026
|
}
|
|
1023
|
-
}), Yn = /* @__PURE__ */
|
|
1027
|
+
}), Yn = /* @__PURE__ */ V({
|
|
1024
1028
|
name: "ProPageHeader",
|
|
1025
1029
|
props: {
|
|
1026
1030
|
content: fe.contentRender,
|
|
@@ -1030,19 +1034,19 @@ const fe = {
|
|
|
1030
1034
|
const {
|
|
1031
1035
|
breadcrumb: t,
|
|
1032
1036
|
getPrefixCls: a
|
|
1033
|
-
} =
|
|
1037
|
+
} = ee(), o = a({
|
|
1034
1038
|
isPor: !0,
|
|
1035
1039
|
suffixCls: "page-header"
|
|
1036
1040
|
}), {
|
|
1037
1041
|
wrapSSR: i,
|
|
1038
1042
|
hashId: u
|
|
1039
|
-
} =
|
|
1043
|
+
} = Q("ProPageHeader", [Xn], o), m = f(() => {
|
|
1040
1044
|
var c;
|
|
1041
1045
|
return {
|
|
1042
1046
|
...t.value,
|
|
1043
1047
|
itemRender: ((c = t.value) == null ? void 0 : c.itemRender) || (({
|
|
1044
1048
|
route: S
|
|
1045
|
-
}) => S.path ? n(
|
|
1049
|
+
}) => S.path ? n(jt, {
|
|
1046
1050
|
to: S.path
|
|
1047
1051
|
}, {
|
|
1048
1052
|
default: () => [S.breadcrumbName]
|
|
@@ -1053,13 +1057,13 @@ const fe = {
|
|
|
1053
1057
|
var c, S;
|
|
1054
1058
|
return i(n("div", {
|
|
1055
1059
|
class: [`${o}`, u.value, `${o}-has-breadcrumb`]
|
|
1056
|
-
}, [e.breadcrumb ? (c = e.breadcrumb) == null ? void 0 : c.call(e,
|
|
1060
|
+
}, [e.breadcrumb ? (c = e.breadcrumb) == null ? void 0 : c.call(e, m.value) : n(Tt, m.value, null), e.content && n("div", {
|
|
1057
1061
|
class: [`${o}-content`, u.value]
|
|
1058
1062
|
}, [(S = e.content) == null ? void 0 : S.call(e)])]));
|
|
1059
1063
|
};
|
|
1060
1064
|
}
|
|
1061
1065
|
}), _n = (e) => {
|
|
1062
|
-
var t, a, o, i, u,
|
|
1066
|
+
var t, a, o, i, u, m, c, S;
|
|
1063
1067
|
return {
|
|
1064
1068
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1065
1069
|
[e.componentCls]: {
|
|
@@ -1072,7 +1076,7 @@ const fe = {
|
|
|
1072
1076
|
},
|
|
1073
1077
|
[e.componentCls]: {
|
|
1074
1078
|
["&-children-content"]: {
|
|
1075
|
-
marginInline: ((
|
|
1079
|
+
marginInline: ((m = (u = e.layout) == null ? void 0 : u.pageContainer) == null ? void 0 : m.paddingBlockPageContainerContent) ?? 24,
|
|
1076
1080
|
marginBlockStart: ((S = (c = e.layout) == null ? void 0 : c.pageContainer) == null ? void 0 : S.paddingBlockPageContainerContent) ?? 24,
|
|
1077
1081
|
padding: "inherit"
|
|
1078
1082
|
}
|
|
@@ -1090,7 +1094,7 @@ function Gn(e) {
|
|
|
1090
1094
|
function qn(e) {
|
|
1091
1095
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
1092
1096
|
}
|
|
1093
|
-
const Di = /* @__PURE__ */
|
|
1097
|
+
const Di = /* @__PURE__ */ V({
|
|
1094
1098
|
inheritAttrs: !1,
|
|
1095
1099
|
name: "GProPageContainer",
|
|
1096
1100
|
props: fe,
|
|
@@ -1102,64 +1106,67 @@ const Di = /* @__PURE__ */ j({
|
|
|
1102
1106
|
getPrefixCls: o,
|
|
1103
1107
|
hasContentWide: i,
|
|
1104
1108
|
waterMark: u,
|
|
1105
|
-
pageHeaderRender:
|
|
1109
|
+
pageHeaderRender: m,
|
|
1106
1110
|
pageContentStyle: c,
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
} =
|
|
1111
|
+
pageChildrenContentStyle: S,
|
|
1112
|
+
pageCardProps: p,
|
|
1113
|
+
usePageCard: B,
|
|
1114
|
+
waterMarkProps: y
|
|
1115
|
+
} = ee(), {
|
|
1116
|
+
indicator: P
|
|
1117
|
+
} = zn(), l = o({
|
|
1112
1118
|
suffixCls: "page-container",
|
|
1113
1119
|
isPor: !0
|
|
1114
|
-
}),
|
|
1120
|
+
}), r = o({
|
|
1115
1121
|
suffixCls: "grid-content",
|
|
1116
1122
|
isPor: !0
|
|
1117
|
-
}),
|
|
1118
|
-
wrapSSR:
|
|
1123
|
+
}), M = f(() => e.pageCardProps || p.value), O = f(() => e.waterMarkProps || y.value || {}), w = f(() => e.pageContentStyle || c.value), g = f(() => e.pageChildrenContentStyle || S.value || {}), b = f(() => _e(e.usePageCard) ? e.usePageCard : _e(B.value) ? B.value : !0), {
|
|
1124
|
+
wrapSSR: x,
|
|
1119
1125
|
hashId: I
|
|
1120
|
-
} = Gn(
|
|
1121
|
-
var
|
|
1126
|
+
} = Gn(l), h = () => {
|
|
1127
|
+
var R;
|
|
1122
1128
|
return n("div", {
|
|
1123
|
-
class: `${
|
|
1124
|
-
|
|
1129
|
+
class: `${l}-children-content ${I.value}`,
|
|
1130
|
+
style: g.value
|
|
1131
|
+
}, [b.value ? n(Lt, X(M.value ? le(M.value, ["loading", "bodyStyle"]) : {}, {
|
|
1125
1132
|
style: i.value ? {
|
|
1126
1133
|
minHeight: "853px"
|
|
1127
1134
|
} : void 0,
|
|
1128
1135
|
bordered: !1
|
|
1129
1136
|
}), {
|
|
1130
1137
|
default: () => {
|
|
1131
|
-
var
|
|
1132
|
-
return [(
|
|
1138
|
+
var k;
|
|
1139
|
+
return [(k = t.default) == null ? void 0 : k.call(t)];
|
|
1133
1140
|
}
|
|
1134
|
-
}) : (
|
|
1135
|
-
},
|
|
1136
|
-
let
|
|
1137
|
-
return n(
|
|
1138
|
-
default: () => [
|
|
1139
|
-
}) :
|
|
1141
|
+
}) : (R = t.default) == null ? void 0 : R.call(t)]);
|
|
1142
|
+
}, C = () => {
|
|
1143
|
+
let R;
|
|
1144
|
+
return n(Z, null, [e.waterMark && u.value ? n(Qt, O.value, qn(R = h()) ? R : {
|
|
1145
|
+
default: () => [R]
|
|
1146
|
+
}) : h()]);
|
|
1140
1147
|
};
|
|
1141
1148
|
return () => {
|
|
1142
|
-
const
|
|
1143
|
-
return
|
|
1149
|
+
const R = W(t, e, "pageHeaderRender") || m.value, k = W(t, e, "breadcrumbRender"), D = W(t, e, "contentRender");
|
|
1150
|
+
return x(n(ve, {
|
|
1144
1151
|
spinning: e.loading,
|
|
1145
|
-
indicator:
|
|
1152
|
+
indicator: P == null ? void 0 : P.value
|
|
1146
1153
|
}, {
|
|
1147
1154
|
default: () => [n("div", {
|
|
1148
1155
|
style: a.style,
|
|
1149
1156
|
class: {
|
|
1150
1157
|
[`${I.value}`]: !0,
|
|
1151
|
-
[`${
|
|
1158
|
+
[`${l}`]: !0
|
|
1152
1159
|
}
|
|
1153
|
-
}, [!i.value &&
|
|
1160
|
+
}, [!i.value && R !== !1 && (R || n(Yn, {
|
|
1154
1161
|
style: e.pageHeaderStyle,
|
|
1155
|
-
breadcrumb:
|
|
1156
|
-
content:
|
|
1162
|
+
breadcrumb: k,
|
|
1163
|
+
content: D
|
|
1157
1164
|
}, null)), n("div", {
|
|
1158
|
-
class: [
|
|
1165
|
+
class: [r, I.value]
|
|
1159
1166
|
}, [n("div", {
|
|
1160
|
-
class: `${
|
|
1161
|
-
style:
|
|
1162
|
-
}, [
|
|
1167
|
+
class: `${r}-children ${I.value}`,
|
|
1168
|
+
style: w.value
|
|
1169
|
+
}, [C()])])])]
|
|
1163
1170
|
}));
|
|
1164
1171
|
};
|
|
1165
1172
|
}
|
|
@@ -1173,7 +1180,7 @@ const Di = /* @__PURE__ */ j({
|
|
|
1173
1180
|
autoHideHeader: Boolean,
|
|
1174
1181
|
collapsed: Boolean,
|
|
1175
1182
|
isMobile: Boolean,
|
|
1176
|
-
siderWidth:
|
|
1183
|
+
siderWidth: Y.siderWidth,
|
|
1177
1184
|
headerTheme: {
|
|
1178
1185
|
type: String,
|
|
1179
1186
|
default: "dark"
|
|
@@ -1197,13 +1204,13 @@ const Di = /* @__PURE__ */ j({
|
|
|
1197
1204
|
default: () => {
|
|
1198
1205
|
}
|
|
1199
1206
|
},
|
|
1200
|
-
collapsedButtonRender:
|
|
1201
|
-
matchMenuKeys:
|
|
1202
|
-
onCollapse:
|
|
1203
|
-
onOpenKeys:
|
|
1207
|
+
collapsedButtonRender: Y.collapsedButtonRender,
|
|
1208
|
+
matchMenuKeys: Y.matchMenuKeys,
|
|
1209
|
+
onCollapse: Y.onCollapse,
|
|
1210
|
+
onOpenKeys: Y.onOpenKeys,
|
|
1204
1211
|
onMenuHeaderClick: Function,
|
|
1205
|
-
onSelect:
|
|
1206
|
-
},
|
|
1212
|
+
onSelect: Y.onSelect
|
|
1213
|
+
}, xt = {
|
|
1207
1214
|
...Ke,
|
|
1208
1215
|
headerTitleRender: {
|
|
1209
1216
|
type: [Object, Function],
|
|
@@ -1221,14 +1228,14 @@ const Di = /* @__PURE__ */ j({
|
|
|
1221
1228
|
}
|
|
1222
1229
|
},
|
|
1223
1230
|
hasSiderMenu: Boolean,
|
|
1224
|
-
collapsedWidth:
|
|
1225
|
-
siderWidth:
|
|
1226
|
-
},
|
|
1231
|
+
collapsedWidth: Y.collapsedWidth,
|
|
1232
|
+
siderWidth: Y.siderWidth
|
|
1233
|
+
}, Ct = {
|
|
1227
1234
|
loading: L.looseBool,
|
|
1228
|
-
isMobile:
|
|
1235
|
+
isMobile: Y.isMobile,
|
|
1229
1236
|
collapsed: Ie.collapsed,
|
|
1230
|
-
siderWidth:
|
|
1231
|
-
collapsedWidth:
|
|
1237
|
+
siderWidth: Y.siderWidth,
|
|
1238
|
+
collapsedWidth: Y.collapsedWidth,
|
|
1232
1239
|
isFixedMultiTab: se.fixedMultiTab,
|
|
1233
1240
|
onReloadPage: {
|
|
1234
1241
|
type: Function
|
|
@@ -1270,14 +1277,14 @@ const Di = /* @__PURE__ */ j({
|
|
|
1270
1277
|
}
|
|
1271
1278
|
}
|
|
1272
1279
|
}
|
|
1273
|
-
}),
|
|
1280
|
+
}), wt = [{
|
|
1274
1281
|
key: "Ant Design Pro",
|
|
1275
1282
|
title: "Ant Design Pro",
|
|
1276
1283
|
href: "https://pro.ant.design",
|
|
1277
1284
|
blankTarget: !0
|
|
1278
1285
|
}, {
|
|
1279
1286
|
key: "gitee",
|
|
1280
|
-
title: n(
|
|
1287
|
+
title: n(Ut, null, null),
|
|
1281
1288
|
href: "https://gitee.com/gx12358/vue-antd-admin",
|
|
1282
1289
|
blankTarget: !0
|
|
1283
1290
|
}, {
|
|
@@ -1285,12 +1292,12 @@ const Di = /* @__PURE__ */ j({
|
|
|
1285
1292
|
title: "Ant Design Vue",
|
|
1286
1293
|
href: "https://next.antdv.com/components/overview-cn/",
|
|
1287
1294
|
blankTarget: !0
|
|
1288
|
-
}], ke = /* @__PURE__ */
|
|
1295
|
+
}], ke = /* @__PURE__ */ V({
|
|
1289
1296
|
name: "GlobalFooter",
|
|
1290
1297
|
props: {
|
|
1291
1298
|
links: {
|
|
1292
1299
|
type: [Array, Boolean],
|
|
1293
|
-
default:
|
|
1300
|
+
default: wt
|
|
1294
1301
|
},
|
|
1295
1302
|
copyright: {
|
|
1296
1303
|
type: [Object, Function, Boolean, String],
|
|
@@ -1304,8 +1311,8 @@ const Di = /* @__PURE__ */ j({
|
|
|
1304
1311
|
}), {
|
|
1305
1312
|
wrapSSR: a,
|
|
1306
1313
|
hashId: o
|
|
1307
|
-
} =
|
|
1308
|
-
return () => a(n(
|
|
1314
|
+
} = Q("ProLayoutFooter", [Zn], t);
|
|
1315
|
+
return () => a(n(Dt, {
|
|
1309
1316
|
style: {
|
|
1310
1317
|
padding: 0
|
|
1311
1318
|
}
|
|
@@ -1321,17 +1328,17 @@ const Di = /* @__PURE__ */ j({
|
|
|
1321
1328
|
href: i.href
|
|
1322
1329
|
}, [i.title]))]), e.copyright && n("div", {
|
|
1323
1330
|
class: `${t}-copyright ${o.value}`
|
|
1324
|
-
}, [
|
|
1331
|
+
}, [ne("Copyright 2022 "), n("a", {
|
|
1325
1332
|
href: "https://beian.miit.gov.cn/"
|
|
1326
1333
|
}, [e.copyright])])])]
|
|
1327
1334
|
}));
|
|
1328
1335
|
}
|
|
1329
|
-
}),
|
|
1336
|
+
}), St = {
|
|
1330
1337
|
...se,
|
|
1331
1338
|
...Ke,
|
|
1332
|
-
...
|
|
1333
|
-
...vt,
|
|
1339
|
+
...Y,
|
|
1334
1340
|
...xt,
|
|
1341
|
+
...Ct,
|
|
1335
1342
|
...fe,
|
|
1336
1343
|
pure: Boolean,
|
|
1337
1344
|
token: Object,
|
|
@@ -1359,7 +1366,7 @@ const Di = /* @__PURE__ */ j({
|
|
|
1359
1366
|
loading: L.looseBool,
|
|
1360
1367
|
footerLinks: {
|
|
1361
1368
|
type: [Array, Boolean],
|
|
1362
|
-
default:
|
|
1369
|
+
default: wt
|
|
1363
1370
|
},
|
|
1364
1371
|
copyrightRender: {
|
|
1365
1372
|
type: [Object, Function, Boolean, String],
|
|
@@ -1460,7 +1467,7 @@ const Di = /* @__PURE__ */ j({
|
|
|
1460
1467
|
"&-fixed": {
|
|
1461
1468
|
position: "fixed",
|
|
1462
1469
|
height: 62,
|
|
1463
|
-
top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) ||
|
|
1470
|
+
top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) || H.headerHeight,
|
|
1464
1471
|
right: 0,
|
|
1465
1472
|
zIndex: 9,
|
|
1466
1473
|
transition: "width .2s"
|
|
@@ -1497,9 +1504,9 @@ const na = [
|
|
|
1497
1504
|
function aa(e) {
|
|
1498
1505
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
1499
1506
|
}
|
|
1500
|
-
const oa = Le.TabPane, ia = ae.Item, la = /* @__PURE__ */
|
|
1507
|
+
const oa = Le.TabPane, ia = ae.Item, la = /* @__PURE__ */ V({
|
|
1501
1508
|
props: {
|
|
1502
|
-
...
|
|
1509
|
+
...Ct,
|
|
1503
1510
|
visible: {
|
|
1504
1511
|
type: Boolean,
|
|
1505
1512
|
default: !0
|
|
@@ -1510,51 +1517,51 @@ const oa = Le.TabPane, ia = ae.Item, la = /* @__PURE__ */ j({
|
|
|
1510
1517
|
const {
|
|
1511
1518
|
isMobile: t,
|
|
1512
1519
|
isFixedMultiTab: a
|
|
1513
|
-
} = Ce(e), o = Re(!1), i =
|
|
1520
|
+
} = Ce(e), o = Re(!1), i = rt({
|
|
1514
1521
|
activeKey: "",
|
|
1515
1522
|
contextMenuActiveKey: ""
|
|
1516
1523
|
}), u = De(), {
|
|
1517
|
-
menuData:
|
|
1524
|
+
menuData: m,
|
|
1518
1525
|
flatMenuData: c,
|
|
1519
1526
|
layout: S,
|
|
1520
|
-
splitMenus:
|
|
1521
|
-
getPrefixCls:
|
|
1522
|
-
} =
|
|
1527
|
+
splitMenus: p,
|
|
1528
|
+
getPrefixCls: B
|
|
1529
|
+
} = ee(), y = B({
|
|
1523
1530
|
isPor: !0,
|
|
1524
1531
|
suffixCls: "multi-tab"
|
|
1525
1532
|
}), {
|
|
1526
|
-
wrapSSR:
|
|
1533
|
+
wrapSSR: P,
|
|
1527
1534
|
hashId: l
|
|
1528
|
-
} = ta(
|
|
1529
|
-
de(
|
|
1535
|
+
} = ta(y), r = Re([]);
|
|
1536
|
+
de(r, () => {
|
|
1530
1537
|
var d;
|
|
1531
|
-
(d = e.onChangeTabs) == null || d.call(e, He(
|
|
1538
|
+
(d = e.onChangeTabs) == null || d.call(e, He(A(r)));
|
|
1532
1539
|
}, {
|
|
1533
1540
|
deep: !0
|
|
1534
1541
|
});
|
|
1535
|
-
const M =
|
|
1536
|
-
const d = !(M.value &&
|
|
1537
|
-
return
|
|
1538
|
-
}),
|
|
1542
|
+
const M = f(() => S.value === "mix" && !e.isMobile && p.value), O = f(() => u.currentRoute.value.fullPath || u.currentRoute.value.path), w = f(() => a.value && !t.value), g = f(() => {
|
|
1543
|
+
const d = !(M.value && A(c.value).length === 0 || m.value.length === 0 || S.value === "top");
|
|
1544
|
+
return w.value && d ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
|
|
1545
|
+
}), b = f(() => ct(`${y}-wrap`, {
|
|
1539
1546
|
[`${l.value}`]: !0,
|
|
1540
|
-
[`${
|
|
1541
|
-
[`${
|
|
1542
|
-
})),
|
|
1547
|
+
[`${y}-wrap-fixed`]: e.isFixedMultiTab,
|
|
1548
|
+
[`${y}-wrap-loading`]: e.loading
|
|
1549
|
+
})), x = f(() => {
|
|
1543
1550
|
const d = {
|
|
1544
1551
|
display: e.visible ? void 0 : "none"
|
|
1545
1552
|
};
|
|
1546
1553
|
return e.isFixedMultiTab ? {
|
|
1547
1554
|
margin: 0,
|
|
1548
|
-
width:
|
|
1555
|
+
width: g.value,
|
|
1549
1556
|
paddingTop: "6px",
|
|
1550
1557
|
zIndex: 99,
|
|
1551
1558
|
...d
|
|
1552
1559
|
} : d;
|
|
1553
|
-
}),
|
|
1560
|
+
}), I = (d) => (d.fullPath || d.path) === O.value, h = (d) => {
|
|
1554
1561
|
if (d.name && d.meta && d.meta.tagHidden !== !0) {
|
|
1555
|
-
const
|
|
1562
|
+
const v = d.fullPath || d.path, $ = r.value.find((N) => N.fullPath === v), F = {
|
|
1556
1563
|
path: d.path,
|
|
1557
|
-
fullPath:
|
|
1564
|
+
fullPath: v,
|
|
1558
1565
|
query: d.query,
|
|
1559
1566
|
params: d.params,
|
|
1560
1567
|
name: d.name,
|
|
@@ -1562,160 +1569,160 @@ const oa = Le.TabPane, ia = ae.Item, la = /* @__PURE__ */ j({
|
|
|
1562
1569
|
...d.meta
|
|
1563
1570
|
}
|
|
1564
1571
|
};
|
|
1565
|
-
|
|
1572
|
+
$ ? Object.assign($, F) : d.meta.tagFixed ? r.value.unshift(F) : r.value.push(F), I(d) && (i.activeKey = v);
|
|
1566
1573
|
}
|
|
1567
|
-
},
|
|
1568
|
-
d.forEach((
|
|
1569
|
-
|
|
1574
|
+
}, C = (d) => {
|
|
1575
|
+
d.forEach((v) => {
|
|
1576
|
+
v.meta && v.meta.tagFixed && h(v), v.children && C(v.children);
|
|
1570
1577
|
});
|
|
1571
1578
|
};
|
|
1572
|
-
de(() =>
|
|
1573
|
-
|
|
1579
|
+
de(() => m.value, (d) => {
|
|
1580
|
+
C(d);
|
|
1574
1581
|
}, {
|
|
1575
1582
|
deep: !0,
|
|
1576
1583
|
immediate: !0
|
|
1577
1584
|
}), de(() => u.currentRoute.value, (d) => {
|
|
1578
|
-
|
|
1585
|
+
h(d);
|
|
1579
1586
|
}, {
|
|
1580
1587
|
deep: !0,
|
|
1581
1588
|
immediate: !0
|
|
1582
1589
|
});
|
|
1583
|
-
const
|
|
1584
|
-
const d =
|
|
1590
|
+
const R = () => {
|
|
1591
|
+
const d = r.value.slice(-1)[0];
|
|
1585
1592
|
d ? u.push(d) : u.push("/");
|
|
1586
|
-
},
|
|
1587
|
-
const
|
|
1588
|
-
|
|
1589
|
-
},
|
|
1590
|
-
const
|
|
1591
|
-
i.activeKey !== (
|
|
1593
|
+
}, k = async (d) => {
|
|
1594
|
+
const v = r.value.find(($) => d === $.fullPath);
|
|
1595
|
+
r.value = r.value.filter(($) => $.fullPath !== d), v && I(v) && R();
|
|
1596
|
+
}, D = (d) => {
|
|
1597
|
+
const v = r.value.find(($) => $.fullPath === d);
|
|
1598
|
+
i.activeKey !== (v == null ? void 0 : v.fullPath) && (v != null && v.fullPath) && u.push(v == null ? void 0 : v.fullPath);
|
|
1592
1599
|
}, z = () => {
|
|
1593
1600
|
var d;
|
|
1594
1601
|
o.value = !0, e.onReloadPage && ((d = e.onReloadPage) == null || d.call(e)), setTimeout(() => {
|
|
1595
1602
|
o.value = !1;
|
|
1596
1603
|
}, 500);
|
|
1597
|
-
},
|
|
1598
|
-
const
|
|
1604
|
+
}, j = (d) => d.meta && d.meta.tagFixed, T = (d) => i[d], _ = (d, v) => {
|
|
1605
|
+
const $ = r.value.findIndex((F) => F.fullPath === T(v));
|
|
1599
1606
|
switch (d) {
|
|
1600
1607
|
case "closeOthersTabs":
|
|
1601
|
-
|
|
1602
|
-
var
|
|
1603
|
-
return
|
|
1608
|
+
r.value = r.value.filter((F) => {
|
|
1609
|
+
var N;
|
|
1610
|
+
return F.fullPath === T(v) || ((N = F.meta) == null ? void 0 : N.tagFixed);
|
|
1604
1611
|
});
|
|
1605
1612
|
break;
|
|
1606
1613
|
case "closeLeftTabs":
|
|
1607
|
-
|
|
1608
|
-
var
|
|
1609
|
-
return
|
|
1614
|
+
$ && (r.value = r.value.filter((F, N) => {
|
|
1615
|
+
var U;
|
|
1616
|
+
return N >= $ || ((U = F.meta) == null ? void 0 : U.tagFixed);
|
|
1610
1617
|
}));
|
|
1611
1618
|
break;
|
|
1612
1619
|
case "closeRightTabs":
|
|
1613
|
-
|
|
1614
|
-
var
|
|
1615
|
-
return
|
|
1620
|
+
$ && (r.value = r.value.filter((F, N) => {
|
|
1621
|
+
var U;
|
|
1622
|
+
return N <= $ || ((U = F.meta) == null ? void 0 : U.tagFixed);
|
|
1616
1623
|
}));
|
|
1617
1624
|
break;
|
|
1618
1625
|
case "reloadPage":
|
|
1619
|
-
(
|
|
1626
|
+
($ === 0 || $) && i.activeKey === T(v) && z();
|
|
1620
1627
|
break;
|
|
1621
1628
|
}
|
|
1622
|
-
i.activeKey !==
|
|
1623
|
-
},
|
|
1624
|
-
const
|
|
1629
|
+
i.activeKey !== T(v) && u.push(T(v));
|
|
1630
|
+
}, G = (d, v) => {
|
|
1631
|
+
const $ = r.value.findIndex((F) => F.fullPath === v);
|
|
1625
1632
|
switch (d) {
|
|
1626
1633
|
case "closeOthersTabs":
|
|
1627
|
-
return
|
|
1628
|
-
var
|
|
1629
|
-
return
|
|
1634
|
+
return r.value.filter((E, te) => {
|
|
1635
|
+
var J;
|
|
1636
|
+
return te !== $ && !((J = E.meta) != null && J.tagFixed);
|
|
1630
1637
|
}).length === 0;
|
|
1631
1638
|
case "closeLeftTabs":
|
|
1632
|
-
return
|
|
1633
|
-
var
|
|
1634
|
-
return
|
|
1639
|
+
return r.value.filter((E, te) => {
|
|
1640
|
+
var J;
|
|
1641
|
+
return te < $ && !((J = E.meta) != null && J.tagFixed);
|
|
1635
1642
|
}).length === 0;
|
|
1636
1643
|
case "closeRightTabs":
|
|
1637
|
-
return
|
|
1638
|
-
var
|
|
1639
|
-
return
|
|
1644
|
+
return r.value.filter((E, te) => {
|
|
1645
|
+
var J;
|
|
1646
|
+
return te > $ && !((J = E.meta) != null && J.tagFixed);
|
|
1640
1647
|
}).length === 0;
|
|
1641
1648
|
}
|
|
1642
|
-
},
|
|
1643
|
-
let
|
|
1649
|
+
}, K = (d) => {
|
|
1650
|
+
let v;
|
|
1644
1651
|
const {
|
|
1645
|
-
path:
|
|
1646
|
-
stateType:
|
|
1652
|
+
path: $,
|
|
1653
|
+
stateType: F
|
|
1647
1654
|
} = d;
|
|
1648
1655
|
return n(ae, {
|
|
1649
1656
|
selectedKeys: [],
|
|
1650
1657
|
onClick: ({
|
|
1651
|
-
key:
|
|
1652
|
-
}) =>
|
|
1653
|
-
}, aa(
|
|
1654
|
-
key:
|
|
1655
|
-
disabled:
|
|
1658
|
+
key: N
|
|
1659
|
+
}) => _(N, F)
|
|
1660
|
+
}, aa(v = na.map((N) => n(ia, {
|
|
1661
|
+
key: N.key,
|
|
1662
|
+
disabled: G(N.key, $)
|
|
1656
1663
|
}, {
|
|
1657
|
-
default: () => [
|
|
1658
|
-
}))) ?
|
|
1659
|
-
default: () => [
|
|
1664
|
+
default: () => [N.label]
|
|
1665
|
+
}))) ? v : {
|
|
1666
|
+
default: () => [v]
|
|
1660
1667
|
});
|
|
1661
|
-
},
|
|
1668
|
+
}, q = (d) => {
|
|
1662
1669
|
const {
|
|
1663
|
-
router:
|
|
1670
|
+
router: v
|
|
1664
1671
|
} = d;
|
|
1665
1672
|
return n(Ye, {
|
|
1666
1673
|
trigger: "contextmenu",
|
|
1667
|
-
overlay: n(
|
|
1668
|
-
path: (
|
|
1674
|
+
overlay: n(K, {
|
|
1675
|
+
path: (v == null ? void 0 : v.fullPath) || "",
|
|
1669
1676
|
stateType: "contextMenuActiveKey"
|
|
1670
1677
|
}, null),
|
|
1671
|
-
onOpenChange: (
|
|
1672
|
-
i.contextMenuActiveKey =
|
|
1678
|
+
onOpenChange: ($) => {
|
|
1679
|
+
i.contextMenuActiveKey = $ && v.fullPath || "";
|
|
1673
1680
|
}
|
|
1674
1681
|
}, {
|
|
1675
1682
|
default: () => {
|
|
1676
|
-
var
|
|
1683
|
+
var $;
|
|
1677
1684
|
return [n("div", {
|
|
1678
|
-
class: [`${
|
|
1679
|
-
}, [(
|
|
1680
|
-
class: [`${
|
|
1685
|
+
class: [`${y}-title`, l.value]
|
|
1686
|
+
}, [($ = v.meta) == null ? void 0 : $.title, i.activeKey === v.fullPath && n(Xt, {
|
|
1687
|
+
class: [`${y}-reload-btn`, l.value],
|
|
1681
1688
|
spin: o.value,
|
|
1682
|
-
onClick: (
|
|
1683
|
-
|
|
1689
|
+
onClick: (F) => {
|
|
1690
|
+
F.stopPropagation(), !o.value && z();
|
|
1684
1691
|
}
|
|
1685
|
-
}, null),
|
|
1686
|
-
class: [`${
|
|
1687
|
-
onClick: (
|
|
1688
|
-
|
|
1692
|
+
}, null), r.value.length > 1 && !j(v) && n(ut, {
|
|
1693
|
+
class: [`${y}-close-btn`, l.value],
|
|
1694
|
+
onClick: (F) => {
|
|
1695
|
+
F.stopPropagation(), !o.value && k((v == null ? void 0 : v.fullPath) || "");
|
|
1689
1696
|
}
|
|
1690
1697
|
}, null)])];
|
|
1691
1698
|
}
|
|
1692
1699
|
});
|
|
1693
1700
|
};
|
|
1694
|
-
return () =>
|
|
1695
|
-
class: [`${
|
|
1696
|
-
}, null), [[
|
|
1701
|
+
return () => P(n(Z, null, [!!e.isFixedMultiTab && kt(n("div", {
|
|
1702
|
+
class: [`${y}-fixed`, l.value]
|
|
1703
|
+
}, null), [[$t, e.visible]]), n(Le, {
|
|
1697
1704
|
hideAdd: !0,
|
|
1698
1705
|
type: "editable-card",
|
|
1699
|
-
style:
|
|
1700
|
-
class:
|
|
1706
|
+
style: x.value,
|
|
1707
|
+
class: b.value,
|
|
1701
1708
|
activeKey: i.activeKey,
|
|
1702
|
-
onTabClick:
|
|
1709
|
+
onTabClick: D
|
|
1703
1710
|
}, {
|
|
1704
|
-
default: () => [
|
|
1711
|
+
default: () => [r.value.map((d) => n(oa, {
|
|
1705
1712
|
key: d.fullPath,
|
|
1706
1713
|
closable: !1,
|
|
1707
|
-
tab: n(
|
|
1714
|
+
tab: n(q, {
|
|
1708
1715
|
router: d
|
|
1709
1716
|
}, null)
|
|
1710
1717
|
}, null))],
|
|
1711
1718
|
rightExtra: () => n(Ye, {
|
|
1712
|
-
overlay: n(
|
|
1719
|
+
overlay: n(K, {
|
|
1713
1720
|
path: i.activeKey,
|
|
1714
1721
|
stateType: "activeKey"
|
|
1715
1722
|
}, null)
|
|
1716
1723
|
}, {
|
|
1717
|
-
default: () => [n(
|
|
1718
|
-
class: [`${
|
|
1724
|
+
default: () => [n(Et, {
|
|
1725
|
+
class: [`${y}-dropdown-menu-btn`, l.value],
|
|
1719
1726
|
rotate: 90
|
|
1720
1727
|
}, null)]
|
|
1721
1728
|
})
|
|
@@ -1732,41 +1739,41 @@ const oa = Le.TabPane, ia = ae.Item, la = /* @__PURE__ */ j({
|
|
|
1732
1739
|
hashId: o,
|
|
1733
1740
|
prefixCls: i,
|
|
1734
1741
|
isMobile: u,
|
|
1735
|
-
loading:
|
|
1742
|
+
loading: m,
|
|
1736
1743
|
collapsed: c,
|
|
1737
1744
|
siderWidth: S,
|
|
1738
|
-
isShowTabsBar:
|
|
1739
|
-
isFixedMultiTab:
|
|
1740
|
-
onReloadPage:
|
|
1741
|
-
onChangeTabs:
|
|
1745
|
+
isShowTabsBar: p,
|
|
1746
|
+
isFixedMultiTab: B,
|
|
1747
|
+
onReloadPage: y,
|
|
1748
|
+
onChangeTabs: P
|
|
1742
1749
|
} = e;
|
|
1743
1750
|
if (e.isChildrenLayout)
|
|
1744
1751
|
return (M = t.default) == null ? void 0 : M.call(t);
|
|
1745
1752
|
const {
|
|
1746
1753
|
flatMenuData: l,
|
|
1747
|
-
layout:
|
|
1748
|
-
} =
|
|
1749
|
-
return n(
|
|
1750
|
-
visible: (
|
|
1754
|
+
layout: r
|
|
1755
|
+
} = ee();
|
|
1756
|
+
return n(Z, null, [n(la, {
|
|
1757
|
+
visible: (A(r) === "mix" ? A(l).length > 0 : !0) && p,
|
|
1751
1758
|
isMobile: u,
|
|
1752
|
-
loading:
|
|
1753
|
-
isFixedMultiTab:
|
|
1759
|
+
loading: m,
|
|
1760
|
+
isFixedMultiTab: B,
|
|
1754
1761
|
siderWidth: S,
|
|
1755
1762
|
collapsed: c,
|
|
1756
|
-
onReloadPage:
|
|
1757
|
-
onChangeTabs:
|
|
1763
|
+
onReloadPage: y,
|
|
1764
|
+
onChangeTabs: P
|
|
1758
1765
|
}, null), n(ra, {
|
|
1759
1766
|
style: a.style,
|
|
1760
1767
|
class: [`${i}-content`]
|
|
1761
1768
|
}, {
|
|
1762
1769
|
default: () => {
|
|
1763
|
-
var
|
|
1764
|
-
return [
|
|
1770
|
+
var O;
|
|
1771
|
+
return [m && n(dn, null, null), n("div", {
|
|
1765
1772
|
class: [`${i}-content-spin-container`, o],
|
|
1766
1773
|
style: {
|
|
1767
|
-
opacity:
|
|
1774
|
+
opacity: m ? "0" : void 0
|
|
1768
1775
|
}
|
|
1769
|
-
}, [(
|
|
1776
|
+
}, [(O = t.default) == null ? void 0 : O.call(t)])];
|
|
1770
1777
|
}
|
|
1771
1778
|
})]);
|
|
1772
1779
|
};
|
|
@@ -1907,18 +1914,18 @@ const sa = (e) => {
|
|
|
1907
1914
|
marginInlineEnd: 0
|
|
1908
1915
|
}
|
|
1909
1916
|
}
|
|
1910
|
-
}),
|
|
1911
|
-
...
|
|
1917
|
+
}), It = {
|
|
1918
|
+
...Y,
|
|
1912
1919
|
...Ke
|
|
1913
|
-
}, da = (e, t) => e === !1 ? null : e ? e(t, null) : t, ca = /* @__PURE__ */
|
|
1914
|
-
props:
|
|
1920
|
+
}, da = (e, t) => e === !1 ? null : e ? e(t, null) : t, ca = /* @__PURE__ */ V({
|
|
1921
|
+
props: It,
|
|
1915
1922
|
setup(e) {
|
|
1916
|
-
return () => e.rightContentRender && typeof e.rightContentRender == "function" && n(
|
|
1923
|
+
return () => e.rightContentRender && typeof e.rightContentRender == "function" && n(Z, null, [e.rightContentRender({
|
|
1917
1924
|
...e
|
|
1918
1925
|
})]);
|
|
1919
1926
|
}
|
|
1920
|
-
}), ma = /* @__PURE__ */
|
|
1921
|
-
props:
|
|
1927
|
+
}), ma = /* @__PURE__ */ V({
|
|
1928
|
+
props: It,
|
|
1922
1929
|
inheritAttrs: !1,
|
|
1923
1930
|
setup(e, {
|
|
1924
1931
|
slots: t,
|
|
@@ -1928,43 +1935,43 @@ const sa = (e) => {
|
|
|
1928
1935
|
token: i
|
|
1929
1936
|
} = Se(), {
|
|
1930
1937
|
getPrefixCls: u,
|
|
1931
|
-
openKeys:
|
|
1938
|
+
openKeys: m,
|
|
1932
1939
|
selectedKeys: c
|
|
1933
|
-
} =
|
|
1940
|
+
} = ee(), {
|
|
1934
1941
|
width: S
|
|
1935
|
-
} = rn(),
|
|
1942
|
+
} = rn(), p = u({
|
|
1936
1943
|
suffixCls: "global-header",
|
|
1937
1944
|
isPor: !0
|
|
1938
1945
|
}), {
|
|
1939
|
-
wrapSSR:
|
|
1940
|
-
hashId:
|
|
1941
|
-
} =
|
|
1942
|
-
[`${
|
|
1943
|
-
[`${
|
|
1944
|
-
[`${
|
|
1945
|
-
})),
|
|
1946
|
-
var
|
|
1946
|
+
wrapSSR: B,
|
|
1947
|
+
hashId: y
|
|
1948
|
+
} = Q("ProGlobalHeader", [ua], p), P = f(() => !e.isMobile || e.layout === "top" || e.layout === "mix" && e.splitMenus), l = f(() => ({
|
|
1949
|
+
[`${y.value}`]: !0,
|
|
1950
|
+
[`${p}`]: !0,
|
|
1951
|
+
[`${p}-${e.layout}`]: !0
|
|
1952
|
+
})), r = (g) => {
|
|
1953
|
+
var b;
|
|
1947
1954
|
if (o.currentRoute) {
|
|
1948
|
-
const
|
|
1949
|
-
e.onSelect &&
|
|
1955
|
+
const x = o.currentRoute.value.matched.concat();
|
|
1956
|
+
e.onSelect && g === "select" && e.onSelect(x.filter((I) => I.name !== "index").map((I) => I.path)), e.onOpenKeys && g === "openKeys" && ((b = e.onOpenKeys) == null || b.call(e, x.filter((I) => I.path !== o.currentRoute.value.path).map((I) => I.path)));
|
|
1950
1957
|
}
|
|
1951
|
-
},
|
|
1958
|
+
}, M = () => {
|
|
1952
1959
|
a("collapse", !e.collapsed);
|
|
1953
|
-
},
|
|
1954
|
-
var
|
|
1955
|
-
return n(
|
|
1960
|
+
}, O = f(() => e.collapsedButtonRender || pt), w = () => {
|
|
1961
|
+
var g;
|
|
1962
|
+
return n(Z, null, [P.value ? n("div", {
|
|
1956
1963
|
style: {
|
|
1957
1964
|
flex: 1
|
|
1958
1965
|
},
|
|
1959
|
-
class: [`${
|
|
1960
|
-
}, [n(
|
|
1966
|
+
class: [`${p}-menu`, y.value]
|
|
1967
|
+
}, [n(Te, {
|
|
1961
1968
|
theme: {
|
|
1962
1969
|
components: {
|
|
1963
1970
|
Layout: {
|
|
1964
1971
|
headerBg: "transparent",
|
|
1965
1972
|
bodyBg: "transparent"
|
|
1966
1973
|
},
|
|
1967
|
-
Menu:
|
|
1974
|
+
Menu: gt({
|
|
1968
1975
|
radiusItem: 4,
|
|
1969
1976
|
colorActiveBarWidth: 0,
|
|
1970
1977
|
colorActiveBarHeight: 2,
|
|
@@ -1974,58 +1981,58 @@ const sa = (e) => {
|
|
|
1974
1981
|
}
|
|
1975
1982
|
}
|
|
1976
1983
|
}, {
|
|
1977
|
-
default: () => [n(
|
|
1984
|
+
default: () => [n(ht, X({
|
|
1978
1985
|
theme: e.theme,
|
|
1979
1986
|
mode: e.mode,
|
|
1980
1987
|
collapsed: e.collapsed,
|
|
1981
1988
|
menuData: e.menuData,
|
|
1982
|
-
openKeys:
|
|
1989
|
+
openKeys: m.value,
|
|
1983
1990
|
selectedKeys: c.value,
|
|
1984
1991
|
iconfontUrl: e.iconfontUrl,
|
|
1985
1992
|
menuItemRender: e.menuItemRender,
|
|
1986
1993
|
subMenuItemRender: e.subMenuItemRender,
|
|
1987
1994
|
class: {
|
|
1988
1995
|
"top-nav-menu": e.mode === "horizontal",
|
|
1989
|
-
[`${
|
|
1996
|
+
[`${y.value}`]: !0
|
|
1990
1997
|
}
|
|
1991
1998
|
}, {
|
|
1992
|
-
"onUpdate:openKeys": () =>
|
|
1993
|
-
"onUpdate:selectedKeys": () =>
|
|
1999
|
+
"onUpdate:openKeys": () => r("openKeys"),
|
|
2000
|
+
"onUpdate:selectedKeys": () => r("select")
|
|
1994
2001
|
}), null)]
|
|
1995
2002
|
})]) : n("div", {
|
|
1996
2003
|
style: {
|
|
1997
2004
|
flex: 1
|
|
1998
2005
|
}
|
|
1999
|
-
}, [(
|
|
2006
|
+
}, [(g = t.default) == null ? void 0 : g.call(t)]), e.layout !== "simple" && n(ca, X(e, {
|
|
2000
2007
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
2001
2008
|
rightContentRender: e.rightContentRender
|
|
2002
2009
|
}), null)]);
|
|
2003
2010
|
};
|
|
2004
2011
|
return () => {
|
|
2005
|
-
const
|
|
2012
|
+
const g = n("span", {
|
|
2006
2013
|
key: "logo",
|
|
2007
2014
|
onClick: () => {
|
|
2008
|
-
var
|
|
2009
|
-
return (
|
|
2015
|
+
var b;
|
|
2016
|
+
return (b = e.onMenuHeaderClick) == null ? void 0 : b.call(e);
|
|
2010
2017
|
},
|
|
2011
|
-
class: [`${
|
|
2012
|
-
}, [n("a", null, [
|
|
2013
|
-
return
|
|
2014
|
-
class:
|
|
2015
|
-
}, [e.isMobile ? n(
|
|
2016
|
-
class: `${
|
|
2017
|
-
onClick:
|
|
2018
|
-
}, [
|
|
2018
|
+
class: [`${p}-logo`, e.isMobile ? "mobile" : "", y.value]
|
|
2019
|
+
}, [n("a", null, [bt(e.logo)])]);
|
|
2020
|
+
return B(n("div", {
|
|
2021
|
+
class: l.value
|
|
2022
|
+
}, [e.isMobile ? n(Z, null, [da(e.menuHeaderRender, g), e.isMobile && A(O) && n("span", {
|
|
2023
|
+
class: `${p}-collapsed-button ${y.value}`,
|
|
2024
|
+
onClick: M
|
|
2025
|
+
}, [A(O)(e.collapsed)]), w()]) : ["mix", "wide", "top"].includes(e.layout) ? n(Z, null, [n("div", {
|
|
2019
2026
|
style: {
|
|
2020
2027
|
width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
|
|
2021
2028
|
padding: e.layout === "wide" && S.value < e.wideWidth ? "0 50px" : void 0
|
|
2022
2029
|
},
|
|
2023
|
-
class: `${
|
|
2030
|
+
class: `${p}-main ${y.value}`
|
|
2024
2031
|
}, [n("div", {
|
|
2025
|
-
class: `${
|
|
2032
|
+
class: `${p}-main-left ${y.value}`
|
|
2026
2033
|
}, [n(Ae, X(e, {
|
|
2027
2034
|
renderKey: "headerTitleRender"
|
|
2028
|
-
}), null)]),
|
|
2035
|
+
}), null)]), w()])]) : w()]));
|
|
2029
2036
|
};
|
|
2030
2037
|
}
|
|
2031
2038
|
});
|
|
@@ -2033,10 +2040,10 @@ function fa(e) {
|
|
|
2033
2040
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
2034
2041
|
}
|
|
2035
2042
|
const {
|
|
2036
|
-
Header:
|
|
2037
|
-
} = ce, $e = /* @__PURE__ */
|
|
2043
|
+
Header: Qe
|
|
2044
|
+
} = ce, $e = /* @__PURE__ */ V({
|
|
2038
2045
|
inheritAttrs: !1,
|
|
2039
|
-
props:
|
|
2046
|
+
props: xt,
|
|
2040
2047
|
setup(e) {
|
|
2041
2048
|
const {
|
|
2042
2049
|
theme: t,
|
|
@@ -2044,61 +2051,61 @@ const {
|
|
|
2044
2051
|
fixedHeader: o,
|
|
2045
2052
|
headerHeight: i,
|
|
2046
2053
|
layout: u,
|
|
2047
|
-
onCollapse:
|
|
2054
|
+
onCollapse: m,
|
|
2048
2055
|
splitMenus: c
|
|
2049
2056
|
} = Ce(e), {
|
|
2050
2057
|
getPrefixCls: S,
|
|
2051
|
-
menuData:
|
|
2052
|
-
} =
|
|
2058
|
+
menuData: p
|
|
2059
|
+
} = ee(), B = S({
|
|
2053
2060
|
suffixCls: "header",
|
|
2054
2061
|
isPor: !0
|
|
2055
|
-
}),
|
|
2062
|
+
}), y = S({
|
|
2056
2063
|
suffixCls: "fixed-header",
|
|
2057
2064
|
isPor: !0
|
|
2058
2065
|
}), {
|
|
2059
|
-
wrapSSR:
|
|
2066
|
+
wrapSSR: P,
|
|
2060
2067
|
hashId: l
|
|
2061
|
-
} =
|
|
2068
|
+
} = Q("ProLayoutHeader", [sa], B), r = f(() => u.value === "wide"), M = f(() => o.value), O = f(() => u.value === "mix" || r.value), w = f(() => u.value === "side" || u.value === "simple"), g = f(() => w.value && "light" || t.value), b = f(() => ({
|
|
2062
2069
|
[`${l.value}`]: !0,
|
|
2063
|
-
[`${
|
|
2064
|
-
[`${
|
|
2065
|
-
[`${
|
|
2066
|
-
})),
|
|
2067
|
-
const
|
|
2068
|
-
theme:
|
|
2070
|
+
[`${B}-${g.value}`]: !0,
|
|
2071
|
+
[`${B}`]: !0,
|
|
2072
|
+
[`${y}`]: M.value
|
|
2073
|
+
})), x = f(() => M.value && !a.value), I = f(() => c.value ? p.value && pn(p.value) || [] : u.value === "top" ? p.value : []), h = f(() => w.value && x.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), C = f(() => M.value ? 0 : void 0), R = () => {
|
|
2074
|
+
const k = n(ma, X(e, {
|
|
2075
|
+
theme: g.value,
|
|
2069
2076
|
mode: "horizontal",
|
|
2070
|
-
onCollapse:
|
|
2071
|
-
menuData:
|
|
2077
|
+
onCollapse: m.value,
|
|
2078
|
+
menuData: I.value
|
|
2072
2079
|
}), {
|
|
2073
|
-
default: () => [
|
|
2080
|
+
default: () => [O.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
|
|
2074
2081
|
});
|
|
2075
|
-
return e.headerRender ? e.headerRender(e,
|
|
2082
|
+
return e.headerRender ? e.headerRender(e, k) : k;
|
|
2076
2083
|
};
|
|
2077
2084
|
return () => {
|
|
2078
|
-
let
|
|
2079
|
-
return
|
|
2080
|
-
theme:
|
|
2085
|
+
let k;
|
|
2086
|
+
return P(n(Z, null, [M.value && !r.value && n(Qe, {
|
|
2087
|
+
theme: g.value,
|
|
2081
2088
|
style: {
|
|
2082
2089
|
height: `${i.value}px`,
|
|
2083
2090
|
lineHeight: `${i.value}px`,
|
|
2084
2091
|
background: "transparent"
|
|
2085
2092
|
}
|
|
2086
|
-
}, null), n(
|
|
2087
|
-
theme:
|
|
2088
|
-
class:
|
|
2093
|
+
}, null), n(Qe, {
|
|
2094
|
+
theme: g.value,
|
|
2095
|
+
class: b.value,
|
|
2089
2096
|
style: {
|
|
2090
2097
|
height: `${i.value}px`,
|
|
2091
2098
|
lineHeight: `${i.value}px`,
|
|
2092
|
-
width:
|
|
2093
|
-
zIndex:
|
|
2094
|
-
right:
|
|
2099
|
+
width: h.value,
|
|
2100
|
+
zIndex: w.value ? 100 : 101,
|
|
2101
|
+
right: C.value
|
|
2095
2102
|
}
|
|
2096
|
-
}, fa(
|
|
2097
|
-
default: () => [
|
|
2103
|
+
}, fa(k = R()) ? k : {
|
|
2104
|
+
default: () => [k]
|
|
2098
2105
|
})]));
|
|
2099
2106
|
};
|
|
2100
2107
|
}
|
|
2101
|
-
}), ga = /* @__PURE__ */
|
|
2108
|
+
}), ga = /* @__PURE__ */ V({
|
|
2102
2109
|
name: "BaseProLayout",
|
|
2103
2110
|
inheritAttrs: !1,
|
|
2104
2111
|
components: {
|
|
@@ -2106,7 +2113,7 @@ const {
|
|
|
2106
2113
|
GlobalFooter: ke,
|
|
2107
2114
|
SiderMenuWrapper: Be
|
|
2108
2115
|
},
|
|
2109
|
-
props:
|
|
2116
|
+
props: St,
|
|
2110
2117
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2111
2118
|
setup(e, {
|
|
2112
2119
|
slots: t
|
|
@@ -2117,86 +2124,86 @@ const {
|
|
|
2117
2124
|
}), {
|
|
2118
2125
|
wrapSSR: o,
|
|
2119
2126
|
hashId: i
|
|
2120
|
-
} =
|
|
2121
|
-
token:
|
|
2122
|
-
} = Se(), c =
|
|
2123
|
-
var
|
|
2124
|
-
return (
|
|
2127
|
+
} = Q("ProLayout", [Jn, Qn], a), u = on(), {
|
|
2128
|
+
token: m
|
|
2129
|
+
} = Se(), c = f(() => {
|
|
2130
|
+
var g;
|
|
2131
|
+
return (g = m == null ? void 0 : m.value) == null ? void 0 : g.colorPrimary;
|
|
2125
2132
|
});
|
|
2126
|
-
|
|
2133
|
+
Pt(() => {
|
|
2127
2134
|
c.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", c.value);
|
|
2128
2135
|
});
|
|
2129
|
-
const S =
|
|
2136
|
+
const S = f(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = f(() => e.layout === "wide"), B = f(() => S.value), y = f(() => e.collapsed ? e.collapsedWidth : e.siderWidth), P = f(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = f(() => (u.value === "sm" || u.value === "xs") && !e.disableMobile && !p.value), r = rt({
|
|
2130
2137
|
position: "relative"
|
|
2131
2138
|
});
|
|
2132
|
-
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (
|
|
2133
|
-
const M = (
|
|
2134
|
-
matchMenuKeys:
|
|
2135
|
-
}), null),
|
|
2139
|
+
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (r.minHeight = 0);
|
|
2140
|
+
const M = (g, b) => g.headerRender === !1 || g.pure ? null : n($e, X(g, {
|
|
2141
|
+
matchMenuKeys: b || []
|
|
2142
|
+
}), null), O = f(() => ({
|
|
2136
2143
|
...e.breadcrumb,
|
|
2137
|
-
itemRender:
|
|
2138
|
-
})),
|
|
2144
|
+
itemRender: W(t, e, "breadcrumbRender")
|
|
2145
|
+
})), w = f(() => B.value && e.selectedKeys ? vn(e.menuData, e.selectedKeys[0]) : []);
|
|
2139
2146
|
return Rn({
|
|
2140
2147
|
getPrefixCls: me,
|
|
2141
|
-
...le(Ce(e), ["layout", "waterMark", "menuData", "openKeys", "splitMenus", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader"].concat(Object.keys(fe))),
|
|
2142
|
-
theme:
|
|
2143
|
-
hasContentWide:
|
|
2148
|
+
...le(Ce(e), ["layout", "waterMark", "menuData", "openKeys", "splitMenus", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps"].concat(Object.keys(fe))),
|
|
2149
|
+
theme: P.value,
|
|
2150
|
+
hasContentWide: p,
|
|
2144
2151
|
isMobile: l,
|
|
2145
|
-
siderWidth:
|
|
2146
|
-
breadcrumb:
|
|
2147
|
-
flatMenuData:
|
|
2152
|
+
siderWidth: y,
|
|
2153
|
+
breadcrumb: O,
|
|
2154
|
+
flatMenuData: w,
|
|
2148
2155
|
hasSide: S,
|
|
2149
|
-
flatMenu:
|
|
2150
|
-
pageHeaderRender:
|
|
2156
|
+
flatMenu: B,
|
|
2157
|
+
pageHeaderRender: f(() => W(t, e, "pageHeaderRender"))
|
|
2151
2158
|
}), () => {
|
|
2152
|
-
var
|
|
2153
|
-
const
|
|
2154
|
-
menuItemRender:
|
|
2155
|
-
subMenuItemRender:
|
|
2156
|
-
},
|
|
2159
|
+
var N;
|
|
2160
|
+
const g = W(t, e, "collapsedButtonRender"), b = W(t, e, "headerContentRender"), x = W(t, e, "rightContentRender"), I = W(t, e, "headerRender"), h = W(t, e, "footerRender"), C = W(t, e, "links"), R = W(t, e, "copyrightRender"), k = W(t, e, "extraRightDropdownRender"), D = W(t, e, "menuHeaderRender"), z = W(t, e, "menuExtraRender"), j = W(t, e, "menuContentRender"), T = W(t, e, "menuFooterRender"), _ = W(t, e, "menuItemRender"), G = W(t, e, "subMenuItemRender"), K = {
|
|
2161
|
+
menuItemRender: _,
|
|
2162
|
+
subMenuItemRender: G
|
|
2163
|
+
}, q = f(() => M({
|
|
2157
2164
|
...e,
|
|
2158
|
-
...
|
|
2165
|
+
...K,
|
|
2159
2166
|
hasSiderMenu: S.value,
|
|
2160
2167
|
menuData: e.menuData,
|
|
2161
|
-
isMobile:
|
|
2162
|
-
rightContentRender:
|
|
2163
|
-
extraRightDropdownRender:
|
|
2164
|
-
headerTitleRender:
|
|
2165
|
-
headerContentRender:
|
|
2166
|
-
headerRender:
|
|
2167
|
-
theme:
|
|
2168
|
-
}, e.matchMenuKeys)), d =
|
|
2168
|
+
isMobile: A(l),
|
|
2169
|
+
rightContentRender: x,
|
|
2170
|
+
extraRightDropdownRender: k,
|
|
2171
|
+
headerTitleRender: D,
|
|
2172
|
+
headerContentRender: b,
|
|
2173
|
+
headerRender: I,
|
|
2174
|
+
theme: P.value
|
|
2175
|
+
}, e.matchMenuKeys)), d = f(() => ({
|
|
2169
2176
|
[`${i.value}`]: !0,
|
|
2170
2177
|
[`${a}`]: !0,
|
|
2171
2178
|
[`${a}-${e.layout}`]: !0
|
|
2172
|
-
})),
|
|
2179
|
+
})), v = f(() => p.value ? {
|
|
2173
2180
|
minWidth: `${e.wideWidth}px`
|
|
2174
|
-
} : void 0),
|
|
2181
|
+
} : void 0), $ = f(() => p.value ? {
|
|
2175
2182
|
width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
|
|
2176
2183
|
paddingTop: `${e.headerHeight + 20}px`,
|
|
2177
|
-
margin:
|
|
2178
|
-
} : void 0),
|
|
2184
|
+
margin: p.value ? "0 auto" : void 0
|
|
2185
|
+
} : void 0), F = f(() => p.value ? {
|
|
2179
2186
|
minHeight: "835px"
|
|
2180
2187
|
} : {});
|
|
2181
|
-
return o(n(
|
|
2188
|
+
return o(n(Z, null, [e.pure ? (N = t.default) == null ? void 0 : N.call(t) : n("div", {
|
|
2182
2189
|
class: d.value,
|
|
2183
|
-
style:
|
|
2190
|
+
style: v.value
|
|
2184
2191
|
}, [n(ce, {
|
|
2185
|
-
style:
|
|
2192
|
+
style: $.value
|
|
2186
2193
|
}, {
|
|
2187
2194
|
default: () => [n(Be, X(Ve(e, ["pure", "theme"]), {
|
|
2188
|
-
links:
|
|
2189
|
-
theme:
|
|
2195
|
+
links: C,
|
|
2196
|
+
theme: P.value,
|
|
2190
2197
|
isMobile: l.value,
|
|
2191
|
-
menuHeaderRender:
|
|
2192
|
-
menuContentRender:
|
|
2198
|
+
menuHeaderRender: D,
|
|
2199
|
+
menuContentRender: j,
|
|
2193
2200
|
menuExtraRender: z,
|
|
2194
|
-
menuFooterRender:
|
|
2195
|
-
collapsedButtonRender:
|
|
2201
|
+
menuFooterRender: T,
|
|
2202
|
+
collapsedButtonRender: g
|
|
2196
2203
|
}), null), n(ce, {
|
|
2197
|
-
style:
|
|
2204
|
+
style: r
|
|
2198
2205
|
}, {
|
|
2199
|
-
default: () => [
|
|
2206
|
+
default: () => [q.value, n(Ue, X({
|
|
2200
2207
|
hashId: i.value,
|
|
2201
2208
|
isMobile: l.value,
|
|
2202
2209
|
prefixCls: a,
|
|
@@ -2207,72 +2214,72 @@ const {
|
|
|
2207
2214
|
isFixedMultiTab: e.fixedMultiTab,
|
|
2208
2215
|
siderWidth: e.siderWidth,
|
|
2209
2216
|
collapsed: e.collapsed,
|
|
2210
|
-
style: e.disableContentMargin ?
|
|
2217
|
+
style: e.disableContentMargin ? F.value : {
|
|
2211
2218
|
...e.contentStyle,
|
|
2212
|
-
...
|
|
2219
|
+
...F.value
|
|
2213
2220
|
}
|
|
2214
2221
|
}, le(e, ["onReloadPage", "onChangeTabs"])), {
|
|
2215
2222
|
default: () => {
|
|
2216
|
-
var
|
|
2217
|
-
return [(
|
|
2223
|
+
var U;
|
|
2224
|
+
return [(U = t.default) == null ? void 0 : U.call(t)];
|
|
2218
2225
|
}
|
|
2219
|
-
}),
|
|
2220
|
-
copyright:
|
|
2226
|
+
}), h === !1 ? null : h ? h(e) : n(ke, {
|
|
2227
|
+
copyright: R
|
|
2221
2228
|
}, null)]
|
|
2222
2229
|
})]
|
|
2223
2230
|
})])]));
|
|
2224
2231
|
};
|
|
2225
2232
|
}
|
|
2226
|
-
}), Ni = /* @__PURE__ */
|
|
2233
|
+
}), Ni = /* @__PURE__ */ V({
|
|
2227
2234
|
components: {
|
|
2228
2235
|
GlobalHeader: $e,
|
|
2229
2236
|
GlobalFooter: ke,
|
|
2230
2237
|
SiderMenuWrapper: Be
|
|
2231
2238
|
},
|
|
2232
|
-
props:
|
|
2239
|
+
props: St,
|
|
2233
2240
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2234
2241
|
setup(e, {
|
|
2235
2242
|
slots: t,
|
|
2236
2243
|
emit: a
|
|
2237
2244
|
}) {
|
|
2238
|
-
const o =
|
|
2245
|
+
const o = f(() => e.theme !== void 0 ? {
|
|
2239
2246
|
dark: e.theme === "realDark"
|
|
2240
2247
|
} : {}), i = (c) => {
|
|
2241
2248
|
a("update:collapsed", c), a("collapse", c);
|
|
2242
2249
|
}, u = (c) => {
|
|
2243
2250
|
a("update:open-keys", c), a("openKeys", c);
|
|
2244
|
-
},
|
|
2251
|
+
}, m = (c) => {
|
|
2245
2252
|
a("update:selected-keys", c), a("select", c);
|
|
2246
2253
|
};
|
|
2247
|
-
return () => n(
|
|
2254
|
+
return () => n(Te, {
|
|
2248
2255
|
theme: e.primaryColor ? {
|
|
2249
2256
|
token: {
|
|
2250
2257
|
colorPrimary: e.primaryColor
|
|
2251
2258
|
}
|
|
2252
2259
|
} : void 0
|
|
2253
2260
|
}, {
|
|
2254
|
-
default: () => [n(
|
|
2261
|
+
default: () => [n(qt, X({
|
|
2255
2262
|
token: e.token
|
|
2256
2263
|
}, o.value), {
|
|
2257
2264
|
default: () => [n(ga, X(Ve(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
|
|
2258
|
-
onSelect:
|
|
2265
|
+
onSelect: m,
|
|
2259
2266
|
onOpenKeys: u,
|
|
2260
2267
|
onCollapse: i
|
|
2261
2268
|
}), t)]
|
|
2262
2269
|
})]
|
|
2263
2270
|
});
|
|
2264
2271
|
}
|
|
2265
|
-
}),
|
|
2272
|
+
}), Mt = (e, t, a) => e.map((o, i) => {
|
|
2266
2273
|
var u;
|
|
2267
|
-
return o.meta && (o.meta.key = a ? `${a}-${i}` : `${i}`), o.path = o.path.replace("//", "/"), o.children && o.children.length > 0 && (o.children =
|
|
2274
|
+
return o.meta && (o.meta.key = a ? `${a}-${i}` : `${i}`), o.path = o.path.replace("//", "/"), o.children && o.children.length > 0 && (o.children = Mt(o.children, t, (u = o.meta) == null ? void 0 : u.key)), t[`${o.path}`] = o, o;
|
|
2268
2275
|
}), zi = (e) => {
|
|
2269
|
-
const t = e.find((i) => i.path === "/"), a = {}, o =
|
|
2276
|
+
const t = e.find((i) => i.path === "/"), a = {}, o = Mt((t == null ? void 0 : t.children) || [], a);
|
|
2270
2277
|
return {
|
|
2271
2278
|
menuData: o,
|
|
2272
2279
|
breadcrumb: a,
|
|
2273
2280
|
levelMenuData: en(o)
|
|
2274
2281
|
};
|
|
2275
|
-
},
|
|
2282
|
+
}, Ot = [
|
|
2276
2283
|
{
|
|
2277
2284
|
key: "light",
|
|
2278
2285
|
title: "亮色菜单风格"
|
|
@@ -2285,7 +2292,7 @@ const {
|
|
|
2285
2292
|
key: "realDark",
|
|
2286
2293
|
title: "暗黑模式"
|
|
2287
2294
|
}
|
|
2288
|
-
],
|
|
2295
|
+
], Rt = [
|
|
2289
2296
|
{
|
|
2290
2297
|
key: "side",
|
|
2291
2298
|
title: "侧边菜单布局"
|
|
@@ -2476,7 +2483,7 @@ const {
|
|
|
2476
2483
|
}
|
|
2477
2484
|
}
|
|
2478
2485
|
}
|
|
2479
|
-
}),
|
|
2486
|
+
}), et = /* @__PURE__ */ V({
|
|
2480
2487
|
name: "BlockCheckbox",
|
|
2481
2488
|
props: {
|
|
2482
2489
|
value: L.string,
|
|
@@ -2499,14 +2506,14 @@ const {
|
|
|
2499
2506
|
key: a.key
|
|
2500
2507
|
}, {
|
|
2501
2508
|
default: () => [n("div", {
|
|
2502
|
-
class:
|
|
2509
|
+
class: ct(e.hashId, `${t}-item`, `${t}-item-${a.key}`, `${t}-${e.configType}-item`),
|
|
2503
2510
|
onClick: () => {
|
|
2504
2511
|
var o;
|
|
2505
2512
|
return (o = e.onChange) == null ? void 0 : o.call(e, a.key);
|
|
2506
2513
|
}
|
|
2507
2514
|
}, [a.key === "wide" && n("div", {
|
|
2508
2515
|
class: [`${t}-item-${a.key}-content`, e.hashId]
|
|
2509
|
-
}, null), n(
|
|
2516
|
+
}, null), n(dt, {
|
|
2510
2517
|
class: `${t}-selectIcon ${e.hashId}`.trim(),
|
|
2511
2518
|
style: {
|
|
2512
2519
|
display: e.value === a.key ? "block" : "none"
|
|
@@ -2517,7 +2524,7 @@ const {
|
|
|
2517
2524
|
}))]);
|
|
2518
2525
|
};
|
|
2519
2526
|
}
|
|
2520
|
-
}), ba = /* @__PURE__ */
|
|
2527
|
+
}), ba = /* @__PURE__ */ V({
|
|
2521
2528
|
name: "ThemeColor",
|
|
2522
2529
|
inheritAttrs: !1,
|
|
2523
2530
|
props: {
|
|
@@ -2534,7 +2541,7 @@ const {
|
|
|
2534
2541
|
return () => {
|
|
2535
2542
|
var a;
|
|
2536
2543
|
const t = `${e.prefixCls}-theme-color`;
|
|
2537
|
-
return n(
|
|
2544
|
+
return n(Z, null, [n("div", {
|
|
2538
2545
|
class: `${t} ${e.hashId}`.trim()
|
|
2539
2546
|
}, [(a = e.colorList) == null ? void 0 : a.map(({
|
|
2540
2547
|
key: o,
|
|
@@ -2545,19 +2552,19 @@ const {
|
|
|
2545
2552
|
title: u
|
|
2546
2553
|
}, {
|
|
2547
2554
|
default: () => {
|
|
2548
|
-
var
|
|
2555
|
+
var m, c;
|
|
2549
2556
|
return [n("div", {
|
|
2550
|
-
class: [`${t}-block ${e.hashId}`.trim(), ((
|
|
2557
|
+
class: [`${t}-block ${e.hashId}`.trim(), ((m = e.settingValue) == null ? void 0 : m.primaryColor) === i ? `${t}-block-checked` : ""],
|
|
2551
2558
|
style: {
|
|
2552
2559
|
backgroundColor: i
|
|
2553
2560
|
},
|
|
2554
2561
|
onClick: () => e.onChange && e.onChange(i)
|
|
2555
|
-
}, [((c = e.settingValue) == null ? void 0 : c.primaryColor) === i && n(
|
|
2562
|
+
}, [((c = e.settingValue) == null ? void 0 : c.primaryColor) === i && n(dt, null, null)])];
|
|
2556
2563
|
}
|
|
2557
2564
|
}) : null)])]);
|
|
2558
2565
|
};
|
|
2559
2566
|
}
|
|
2560
|
-
}), he = /* @__PURE__ */
|
|
2567
|
+
}), he = /* @__PURE__ */ V({
|
|
2561
2568
|
name: "RegionalChange",
|
|
2562
2569
|
props: {
|
|
2563
2570
|
label: L.string,
|
|
@@ -2591,7 +2598,7 @@ const {
|
|
|
2591
2598
|
}),
|
|
2592
2599
|
dataSource: [{
|
|
2593
2600
|
title: e.label,
|
|
2594
|
-
action: n(
|
|
2601
|
+
action: n(st, {
|
|
2595
2602
|
size: "small",
|
|
2596
2603
|
disabled: e.disabled,
|
|
2597
2604
|
checked: !!e.value,
|
|
@@ -2636,7 +2643,7 @@ const {
|
|
|
2636
2643
|
function va(e) {
|
|
2637
2644
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
2638
2645
|
}
|
|
2639
|
-
const xa = /* @__PURE__ */
|
|
2646
|
+
const xa = /* @__PURE__ */ V({
|
|
2640
2647
|
name: "ThemeEditor",
|
|
2641
2648
|
props: {
|
|
2642
2649
|
settingValue: Object,
|
|
@@ -2645,27 +2652,27 @@ const xa = /* @__PURE__ */ j({
|
|
|
2645
2652
|
setup(e) {
|
|
2646
2653
|
const {
|
|
2647
2654
|
getPrefixCls: t
|
|
2648
|
-
} =
|
|
2655
|
+
} = ee(), [a, o] = pe("header"), i = t({
|
|
2649
2656
|
suffixCls: "theme-editor",
|
|
2650
2657
|
isPor: !0
|
|
2651
2658
|
}), {
|
|
2652
2659
|
wrapSSR: u,
|
|
2653
|
-
hashId:
|
|
2654
|
-
} =
|
|
2660
|
+
hashId: m
|
|
2661
|
+
} = Q("ProThemeEditor", [pa], i), {
|
|
2655
2662
|
token: c
|
|
2656
|
-
} = Se(), S =
|
|
2663
|
+
} = Se(), S = f(() => {
|
|
2657
2664
|
var l;
|
|
2658
2665
|
return (l = c.value) == null ? void 0 : l.layout;
|
|
2659
|
-
}),
|
|
2660
|
-
var l,
|
|
2666
|
+
}), p = f(() => {
|
|
2667
|
+
var l, r, M, O, w, g, b, x, I, h, C, R, k, D, z, j, T, _, G, K, q, d, v, $, F;
|
|
2661
2668
|
return [{
|
|
2662
2669
|
key: "colorBgMenu",
|
|
2663
2670
|
title: "全部背景",
|
|
2664
|
-
disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["mix", "wide"].includes((
|
|
2671
|
+
disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["mix", "wide"].includes((r = e.settingValue) == null ? void 0 : r.layout)
|
|
2665
2672
|
}, {
|
|
2666
2673
|
key: "colorDarkBgMenu",
|
|
2667
2674
|
title: "全部背景",
|
|
2668
|
-
disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "light" || ((
|
|
2675
|
+
disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "light" || ((O = e.settingValue) == null ? void 0 : O.theme) === "dark" && ["side", "simple"].includes((w = e.settingValue) == null ? void 0 : w.layout)
|
|
2669
2676
|
}, {
|
|
2670
2677
|
key: "colorSubItemBg",
|
|
2671
2678
|
title: "子菜单背景",
|
|
@@ -2677,171 +2684,171 @@ const xa = /* @__PURE__ */ j({
|
|
|
2677
2684
|
}, {
|
|
2678
2685
|
key: "colorBgMenuItemSelected",
|
|
2679
2686
|
title: "菜单选中背景",
|
|
2680
|
-
disabled: ((
|
|
2687
|
+
disabled: ((g = e.settingValue) == null ? void 0 : g.theme) === "dark" && ["mix", "wide"].includes((b = e.settingValue) == null ? void 0 : b.layout)
|
|
2681
2688
|
}, {
|
|
2682
2689
|
key: "colorDarkBgMenuItemSelected",
|
|
2683
2690
|
title: "菜单选中背景",
|
|
2684
|
-
disabled: ((
|
|
2691
|
+
disabled: ((x = e.settingValue) == null ? void 0 : x.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["side", "simple"].includes((h = e.settingValue) == null ? void 0 : h.layout)
|
|
2685
2692
|
}, {
|
|
2686
2693
|
key: "colorTextMenu",
|
|
2687
2694
|
title: "菜单文字颜色",
|
|
2688
|
-
disabled: ((
|
|
2695
|
+
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "dark" && ["mix", "wide"].includes((R = e.settingValue) == null ? void 0 : R.layout)
|
|
2689
2696
|
}, {
|
|
2690
2697
|
key: "colorDarkTextMenu",
|
|
2691
2698
|
title: "菜单文字颜色",
|
|
2692
|
-
disabled: ((
|
|
2699
|
+
disabled: ((k = e.settingValue) == null ? void 0 : k.theme) === "light" || ((D = e.settingValue) == null ? void 0 : D.theme) === "dark" && ["side", "simple"].includes((z = e.settingValue) == null ? void 0 : z.layout)
|
|
2693
2700
|
}, {
|
|
2694
2701
|
key: "colorTextMenuHover",
|
|
2695
2702
|
title: "菜单文字移入颜色",
|
|
2696
|
-
disabled: ((
|
|
2703
|
+
disabled: ((j = e.settingValue) == null ? void 0 : j.theme) === "dark" && ["mix", "wide"].includes((T = e.settingValue) == null ? void 0 : T.layout)
|
|
2697
2704
|
}, {
|
|
2698
2705
|
key: "colorDarkTextMenuHover",
|
|
2699
2706
|
title: "菜单文字移入颜色",
|
|
2700
|
-
disabled: ((
|
|
2707
|
+
disabled: ((_ = e.settingValue) == null ? void 0 : _.theme) === "light" || ((G = e.settingValue) == null ? void 0 : G.theme) === "dark" && ["side", "simple"].includes((K = e.settingValue) == null ? void 0 : K.layout)
|
|
2701
2708
|
}, {
|
|
2702
2709
|
key: "colorTextMenuSelected",
|
|
2703
2710
|
title: "菜单文字选中颜色",
|
|
2704
|
-
disabled: ((
|
|
2711
|
+
disabled: ((q = e.settingValue) == null ? void 0 : q.theme) === "dark" && ["mix", "wide"].includes((d = e.settingValue) == null ? void 0 : d.layout)
|
|
2705
2712
|
}, {
|
|
2706
2713
|
key: "colorDarkTextMenuSelected",
|
|
2707
2714
|
title: "菜单文字选中颜色",
|
|
2708
|
-
disabled: ((
|
|
2715
|
+
disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "light" || (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["side", "simple"].includes((F = e.settingValue) == null ? void 0 : F.layout)
|
|
2709
2716
|
}];
|
|
2710
|
-
}),
|
|
2711
|
-
var l,
|
|
2717
|
+
}), B = f(() => {
|
|
2718
|
+
var l, r, M, O, w, g, b, x, I, h, C, R, k, D, z, j, T, _, G, K, q, d, v, $, F, N, U, E, te, J, Ee, Xe;
|
|
2712
2719
|
return [{
|
|
2713
2720
|
key: "colorBgMenu",
|
|
2714
2721
|
title: "全部背景",
|
|
2715
|
-
disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["side", "simple"].includes((
|
|
2722
|
+
disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["side", "simple"].includes((r = e.settingValue) == null ? void 0 : r.layout)
|
|
2716
2723
|
}, {
|
|
2717
2724
|
key: "colorDarkBgMenu",
|
|
2718
2725
|
title: "全部背景",
|
|
2719
|
-
disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "light" || ((
|
|
2726
|
+
disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "light" || ((O = e.settingValue) == null ? void 0 : O.theme) === "dark" && ["mix", "wide"].includes((w = e.settingValue) == null ? void 0 : w.layout)
|
|
2720
2727
|
}, {
|
|
2721
2728
|
key: "colorSubItemBg",
|
|
2722
2729
|
title: "子菜单背景",
|
|
2723
|
-
disabled: ((
|
|
2730
|
+
disabled: ((g = e.settingValue) == null ? void 0 : g.theme) === "dark" && ["side", "simple"].includes((b = e.settingValue) == null ? void 0 : b.layout)
|
|
2724
2731
|
}, {
|
|
2725
2732
|
key: "colorDarkSubItemBg",
|
|
2726
2733
|
title: "子菜单背景",
|
|
2727
|
-
disabled: ((
|
|
2734
|
+
disabled: ((x = e.settingValue) == null ? void 0 : x.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["mix", "wide"].includes((h = e.settingValue) == null ? void 0 : h.layout)
|
|
2728
2735
|
}, {
|
|
2729
2736
|
key: "colorBgMenuItemHover",
|
|
2730
2737
|
title: "菜单移入背景",
|
|
2731
|
-
disabled: ((
|
|
2738
|
+
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "dark" && ((R = e.settingValue) == null ? void 0 : R.layout) !== "mix"
|
|
2732
2739
|
}, {
|
|
2733
2740
|
key: "colorBgMenuItemSelected",
|
|
2734
2741
|
title: "菜单选中背景",
|
|
2735
|
-
disabled: ((
|
|
2742
|
+
disabled: ((k = e.settingValue) == null ? void 0 : k.theme) === "dark" && ((D = e.settingValue) == null ? void 0 : D.layout) !== "mix"
|
|
2736
2743
|
}, {
|
|
2737
2744
|
key: "colorDarkBgMenuItemSelected",
|
|
2738
2745
|
title: "菜单选中背景",
|
|
2739
|
-
disabled: ((z = e.settingValue) == null ? void 0 : z.theme) === "light" || ((
|
|
2746
|
+
disabled: ((z = e.settingValue) == null ? void 0 : z.theme) === "light" || ((j = e.settingValue) == null ? void 0 : j.theme) === "dark" && ["mix", "wide"].includes((T = e.settingValue) == null ? void 0 : T.layout)
|
|
2740
2747
|
}, {
|
|
2741
2748
|
key: "colorTextMenu",
|
|
2742
2749
|
title: "菜单文字颜色",
|
|
2743
|
-
disabled: ((
|
|
2750
|
+
disabled: ((_ = e.settingValue) == null ? void 0 : _.theme) === "dark" && ((G = e.settingValue) == null ? void 0 : G.layout) !== "mix"
|
|
2744
2751
|
}, {
|
|
2745
2752
|
key: "colorDarkTextMenu",
|
|
2746
2753
|
title: "菜单文字颜色",
|
|
2747
|
-
disabled: ((
|
|
2754
|
+
disabled: ((K = e.settingValue) == null ? void 0 : K.theme) === "light" || ((q = e.settingValue) == null ? void 0 : q.theme) === "dark" && ["mix", "wide"].includes((d = e.settingValue) == null ? void 0 : d.layout)
|
|
2748
2755
|
}, {
|
|
2749
2756
|
key: "colorTextMenuHover",
|
|
2750
2757
|
title: "菜单文字移入颜色",
|
|
2751
|
-
disabled: ((
|
|
2758
|
+
disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "dark" && (($ = e.settingValue) == null ? void 0 : $.layout) !== "mix"
|
|
2752
2759
|
}, {
|
|
2753
2760
|
key: "colorDarkTextMenuHover",
|
|
2754
2761
|
title: "菜单文字移入颜色",
|
|
2755
|
-
disabled: ((
|
|
2762
|
+
disabled: ((F = e.settingValue) == null ? void 0 : F.theme) === "light" || ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((U = e.settingValue) == null ? void 0 : U.layout)
|
|
2756
2763
|
}, {
|
|
2757
2764
|
key: "colorTextMenuSelected",
|
|
2758
2765
|
title: "菜单文字选中颜色",
|
|
2759
|
-
disabled: ((
|
|
2766
|
+
disabled: ((E = e.settingValue) == null ? void 0 : E.theme) === "dark" && ((te = e.settingValue) == null ? void 0 : te.layout) !== "mix"
|
|
2760
2767
|
}, {
|
|
2761
2768
|
key: "colorDarkTextMenuSelected",
|
|
2762
2769
|
title: "菜单文字选中颜色",
|
|
2763
|
-
disabled: ((
|
|
2770
|
+
disabled: ((J = e.settingValue) == null ? void 0 : J.theme) === "light" || ((Ee = e.settingValue) == null ? void 0 : Ee.theme) === "dark" && ["mix", "wide"].includes((Xe = e.settingValue) == null ? void 0 : Xe.layout)
|
|
2764
2771
|
}];
|
|
2765
|
-
}),
|
|
2766
|
-
var
|
|
2767
|
-
return (M = (
|
|
2772
|
+
}), y = f(() => a.value === "header" ? p.value : a.value === "sider" ? B.value : []), P = (l) => {
|
|
2773
|
+
var r, M;
|
|
2774
|
+
return (M = (r = S.value) == null ? void 0 : r[a.value]) == null ? void 0 : M[l];
|
|
2768
2775
|
};
|
|
2769
2776
|
return () => {
|
|
2770
|
-
var
|
|
2777
|
+
var r, M, O;
|
|
2771
2778
|
let l;
|
|
2772
2779
|
return u(n("div", {
|
|
2773
|
-
class: [i,
|
|
2780
|
+
class: [i, m.value]
|
|
2774
2781
|
}, [n("h3", {
|
|
2775
|
-
class: [`${i}-title`,
|
|
2776
|
-
}, [
|
|
2777
|
-
class: [`${i}-sub-title`,
|
|
2778
|
-
}, [n("span", null, [(
|
|
2779
|
-
var
|
|
2780
|
-
return
|
|
2781
|
-
})) == null ? void 0 :
|
|
2782
|
+
class: [`${i}-title`, m.value]
|
|
2783
|
+
}, [ne("主题编辑器"), n("div", {
|
|
2784
|
+
class: [`${i}-sub-title`, m.value]
|
|
2785
|
+
}, [n("span", null, [(r = Ot.find((w) => {
|
|
2786
|
+
var g;
|
|
2787
|
+
return w.key === ((g = e.settingValue) == null ? void 0 : g.theme);
|
|
2788
|
+
})) == null ? void 0 : r.title]), n("span", {
|
|
2782
2789
|
style: {
|
|
2783
2790
|
marginInline: "8px"
|
|
2784
2791
|
}
|
|
2785
|
-
}, [
|
|
2786
|
-
var
|
|
2787
|
-
return
|
|
2792
|
+
}, [ne("/")]), n("span", null, [(M = Rt.find((w) => {
|
|
2793
|
+
var g;
|
|
2794
|
+
return w.key === ((g = e.settingValue) == null ? void 0 : g.layout);
|
|
2788
2795
|
})) == null ? void 0 : M.title])])]), n("div", {
|
|
2789
|
-
class: [`${i}-content`,
|
|
2796
|
+
class: [`${i}-content`, m.value]
|
|
2790
2797
|
}, [n(oe, {
|
|
2791
|
-
class: `${i}-list ${
|
|
2798
|
+
class: `${i}-list ${m.value}`.trim(),
|
|
2792
2799
|
split: !1,
|
|
2793
2800
|
size: "small",
|
|
2794
2801
|
renderItem: ({
|
|
2795
|
-
item:
|
|
2802
|
+
item: w
|
|
2796
2803
|
}) => n(oe.Item, {
|
|
2797
|
-
actions: [
|
|
2804
|
+
actions: [w.action]
|
|
2798
2805
|
}, {
|
|
2799
2806
|
default: () => [n("span", {
|
|
2800
2807
|
style: {
|
|
2801
|
-
opacity:
|
|
2808
|
+
opacity: w.disabled ? 0.5 : 1
|
|
2802
2809
|
}
|
|
2803
|
-
}, [
|
|
2810
|
+
}, [w.title])]
|
|
2804
2811
|
}),
|
|
2805
2812
|
dataSource: [{
|
|
2806
2813
|
title: "自定义主题色",
|
|
2807
|
-
action: n(
|
|
2808
|
-
value: (
|
|
2814
|
+
action: n(Ge, {
|
|
2815
|
+
value: (O = e.settingValue) == null ? void 0 : O.primaryColor,
|
|
2809
2816
|
actions: ["confirm"],
|
|
2810
2817
|
modes: ["rgb"],
|
|
2811
2818
|
size: "small",
|
|
2812
|
-
onConfirm: (
|
|
2819
|
+
onConfirm: (w) => e.onChange && e.onChange(w, "primaryColor")
|
|
2813
2820
|
}, null)
|
|
2814
2821
|
}]
|
|
2815
2822
|
}, null), n(Le, {
|
|
2816
2823
|
activeKey: a.value,
|
|
2817
2824
|
onChange: o
|
|
2818
|
-
}, va(l = ha.map((
|
|
2819
|
-
key:
|
|
2820
|
-
tab:
|
|
2825
|
+
}, va(l = ha.map((w) => n(Nt, {
|
|
2826
|
+
key: w.key,
|
|
2827
|
+
tab: w.title
|
|
2821
2828
|
}, {
|
|
2822
2829
|
default: () => [n(oe, {
|
|
2823
|
-
class: `${i}-list ${
|
|
2830
|
+
class: `${i}-list ${m.value}`.trim(),
|
|
2824
2831
|
split: !1,
|
|
2825
2832
|
size: "small",
|
|
2826
2833
|
renderItem: ({
|
|
2827
|
-
item:
|
|
2834
|
+
item: g
|
|
2828
2835
|
}) => n(oe.Item, {
|
|
2829
|
-
actions: [
|
|
2836
|
+
actions: [g.action]
|
|
2830
2837
|
}, {
|
|
2831
2838
|
default: () => [n("span", {
|
|
2832
2839
|
style: {
|
|
2833
|
-
opacity:
|
|
2840
|
+
opacity: g.disabled ? 0.5 : 1
|
|
2834
2841
|
}
|
|
2835
|
-
}, [
|
|
2842
|
+
}, [g.title])]
|
|
2836
2843
|
}),
|
|
2837
|
-
dataSource:
|
|
2838
|
-
...
|
|
2839
|
-
action: n(
|
|
2840
|
-
value:
|
|
2844
|
+
dataSource: y.value.filter((g) => !g.disabled).map((g) => ({
|
|
2845
|
+
...g,
|
|
2846
|
+
action: n(Ge, {
|
|
2847
|
+
value: P(g.key),
|
|
2841
2848
|
actions: ["confirm"],
|
|
2842
2849
|
modes: ["rgb"],
|
|
2843
2850
|
size: "small",
|
|
2844
|
-
onConfirm: (
|
|
2851
|
+
onConfirm: (b) => e.onChange && e.onChange(b, a.value, g.key)
|
|
2845
2852
|
}, null)
|
|
2846
2853
|
}))
|
|
2847
2854
|
}, null)]
|
|
@@ -2881,12 +2888,12 @@ const xa = /* @__PURE__ */ j({
|
|
|
2881
2888
|
}
|
|
2882
2889
|
}
|
|
2883
2890
|
});
|
|
2884
|
-
function
|
|
2891
|
+
function tt(e) {
|
|
2885
2892
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
2886
2893
|
}
|
|
2887
2894
|
const {
|
|
2888
|
-
preset:
|
|
2889
|
-
} = je, wa = /* @__PURE__ */
|
|
2895
|
+
preset: nt
|
|
2896
|
+
} = je, wa = /* @__PURE__ */ V({
|
|
2890
2897
|
name: "OthersChange",
|
|
2891
2898
|
props: {
|
|
2892
2899
|
prefixCls: L.string,
|
|
@@ -2900,71 +2907,71 @@ const {
|
|
|
2900
2907
|
}), {
|
|
2901
2908
|
wrapSSR: a,
|
|
2902
2909
|
hashId: o
|
|
2903
|
-
} =
|
|
2910
|
+
} = Q("SettingsDrawOthers", [Ca], t);
|
|
2904
2911
|
return () => {
|
|
2905
|
-
var u,
|
|
2912
|
+
var u, m, c, S, p, B, y, P, l, r, M, O, w, g;
|
|
2906
2913
|
let i;
|
|
2907
2914
|
return a(n("div", {
|
|
2908
2915
|
class: [t, o.value]
|
|
2909
2916
|
}, [n("h3", {
|
|
2910
2917
|
class: [`${t}-title`, o.value]
|
|
2911
|
-
}, [
|
|
2918
|
+
}, [ne("页面动画设置")]), n(oe, {
|
|
2912
2919
|
class: `${t}-list ${o.value}`.trim(),
|
|
2913
2920
|
split: !1,
|
|
2914
2921
|
size: "small",
|
|
2915
2922
|
renderItem: ({
|
|
2916
|
-
item:
|
|
2923
|
+
item: b
|
|
2917
2924
|
}) => n(we, {
|
|
2918
|
-
title:
|
|
2925
|
+
title: b.disabled ? b.disabledReason : "",
|
|
2919
2926
|
placement: "left"
|
|
2920
2927
|
}, {
|
|
2921
2928
|
default: () => [n(oe.Item, {
|
|
2922
|
-
actions: [
|
|
2929
|
+
actions: [b.action]
|
|
2923
2930
|
}, {
|
|
2924
2931
|
default: () => [n("span", {
|
|
2925
2932
|
style: {
|
|
2926
|
-
opacity:
|
|
2933
|
+
opacity: b.disabled ? 0.5 : 1
|
|
2927
2934
|
}
|
|
2928
|
-
}, [
|
|
2935
|
+
}, [b.title])]
|
|
2929
2936
|
})]
|
|
2930
2937
|
}),
|
|
2931
2938
|
dataSource: [{
|
|
2932
2939
|
title: "禁用动画",
|
|
2933
|
-
action: n(
|
|
2934
|
-
checked: !((
|
|
2940
|
+
action: n(st, {
|
|
2941
|
+
checked: !((m = (u = e.settingValue) == null ? void 0 : u.animate) != null && m.disabled),
|
|
2935
2942
|
size: "small",
|
|
2936
|
-
onChange: (
|
|
2937
|
-
var
|
|
2938
|
-
return (
|
|
2943
|
+
onChange: (b) => {
|
|
2944
|
+
var x;
|
|
2945
|
+
return (x = e.onChange) == null ? void 0 : x.call(e, "animate", "disabled", !b);
|
|
2939
2946
|
}
|
|
2940
2947
|
}, null)
|
|
2941
2948
|
}, {
|
|
2942
2949
|
title: "动画效果",
|
|
2943
2950
|
disabled: (S = (c = e.settingValue) == null ? void 0 : c.animate) == null ? void 0 : S.disabled,
|
|
2944
2951
|
action: n(ge, {
|
|
2945
|
-
value: (
|
|
2952
|
+
value: (B = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : B.name,
|
|
2946
2953
|
style: {
|
|
2947
2954
|
width: "100px"
|
|
2948
2955
|
},
|
|
2949
2956
|
size: "small",
|
|
2950
|
-
disabled: (
|
|
2951
|
-
getPopupContainer: (
|
|
2952
|
-
onChange: (
|
|
2953
|
-
var
|
|
2954
|
-
return (
|
|
2957
|
+
disabled: (P = (y = e.settingValue) == null ? void 0 : y.animate) == null ? void 0 : P.disabled,
|
|
2958
|
+
getPopupContainer: (b) => b && b.parentNode ? b.parentNode : b,
|
|
2959
|
+
onChange: (b) => {
|
|
2960
|
+
var x;
|
|
2961
|
+
return (x = e.onChange) == null ? void 0 : x.call(e, "animate", "name", b);
|
|
2955
2962
|
}
|
|
2956
|
-
},
|
|
2957
|
-
value:
|
|
2963
|
+
}, tt(i = nt.map((b) => n(ge.Option, {
|
|
2964
|
+
value: b.name
|
|
2958
2965
|
}, {
|
|
2959
|
-
default: () => [
|
|
2966
|
+
default: () => [b.alias]
|
|
2960
2967
|
}))) ? i : {
|
|
2961
2968
|
default: () => [i]
|
|
2962
2969
|
})
|
|
2963
2970
|
}, {
|
|
2964
2971
|
title: "动画方向",
|
|
2965
|
-
disabled: (
|
|
2972
|
+
disabled: (r = (l = e.settingValue) == null ? void 0 : l.animate) == null ? void 0 : r.disabled,
|
|
2966
2973
|
action: n(ge, {
|
|
2967
|
-
value: (
|
|
2974
|
+
value: (O = (M = e.settingValue) == null ? void 0 : M.animate) == null ? void 0 : O.direction,
|
|
2968
2975
|
style: {
|
|
2969
2976
|
width: "100px"
|
|
2970
2977
|
},
|
|
@@ -2972,22 +2979,22 @@ const {
|
|
|
2972
2979
|
dropdownStyle: {
|
|
2973
2980
|
minWidth: "120px"
|
|
2974
2981
|
},
|
|
2975
|
-
disabled: (
|
|
2976
|
-
getPopupContainer: (
|
|
2977
|
-
onChange: (
|
|
2978
|
-
var
|
|
2979
|
-
return (
|
|
2982
|
+
disabled: (g = (w = e.settingValue) == null ? void 0 : w.animate) == null ? void 0 : g.disabled,
|
|
2983
|
+
getPopupContainer: (b) => b && b.parentNode ? b.parentNode : b,
|
|
2984
|
+
onChange: (b) => {
|
|
2985
|
+
var x;
|
|
2986
|
+
return (x = e.onChange) == null ? void 0 : x.call(e, "animate", "direction", b);
|
|
2980
2987
|
}
|
|
2981
2988
|
}, {
|
|
2982
2989
|
default: () => {
|
|
2983
|
-
var
|
|
2984
|
-
return [(
|
|
2985
|
-
var
|
|
2986
|
-
return
|
|
2987
|
-
})) == null ? void 0 :
|
|
2988
|
-
value:
|
|
2989
|
-
},
|
|
2990
|
-
default: () => [
|
|
2990
|
+
var b;
|
|
2991
|
+
return [(b = nt.find((x) => {
|
|
2992
|
+
var I, h;
|
|
2993
|
+
return x.name === ((h = (I = e.settingValue) == null ? void 0 : I.animate) == null ? void 0 : h.name);
|
|
2994
|
+
})) == null ? void 0 : b.directions.map((x) => n(ge.Option, {
|
|
2995
|
+
value: x
|
|
2996
|
+
}, tt(x) ? x : {
|
|
2997
|
+
default: () => [x]
|
|
2991
2998
|
}))];
|
|
2992
2999
|
}
|
|
2993
3000
|
})
|
|
@@ -2997,7 +3004,7 @@ const {
|
|
|
2997
3004
|
}
|
|
2998
3005
|
}), {
|
|
2999
3006
|
preset: Sa
|
|
3000
|
-
} = je,
|
|
3007
|
+
} = je, Pe = Object.keys(H).filter((e) => e !== "title"), at = {
|
|
3001
3008
|
color: "#fff",
|
|
3002
3009
|
fontSize: 20
|
|
3003
3010
|
}, Ia = [{
|
|
@@ -3015,10 +3022,10 @@ const {
|
|
|
3015
3022
|
}, {
|
|
3016
3023
|
label: "fixedMultiTab",
|
|
3017
3024
|
title: "固定多标签"
|
|
3018
|
-
}],
|
|
3019
|
-
...le(
|
|
3025
|
+
}], ot = (e) => nn() ? {
|
|
3026
|
+
...le(H, Pe),
|
|
3020
3027
|
...e || {}
|
|
3021
|
-
} : He(
|
|
3028
|
+
} : He(H), ye = (e, {
|
|
3022
3029
|
slots: t
|
|
3023
3030
|
}) => {
|
|
3024
3031
|
var a;
|
|
@@ -3029,7 +3036,7 @@ const {
|
|
|
3029
3036
|
}, [n("h3", {
|
|
3030
3037
|
class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
|
|
3031
3038
|
}, [e.title]), (a = t.default) == null ? void 0 : a.call(t)]);
|
|
3032
|
-
}, Hi = /* @__PURE__ */
|
|
3039
|
+
}, Hi = /* @__PURE__ */ V({
|
|
3033
3040
|
name: "SettingDrawer",
|
|
3034
3041
|
props: {
|
|
3035
3042
|
themeOnly: Boolean,
|
|
@@ -3042,7 +3049,7 @@ const {
|
|
|
3042
3049
|
},
|
|
3043
3050
|
colorList: {
|
|
3044
3051
|
type: [Boolean, Array],
|
|
3045
|
-
default: () =>
|
|
3052
|
+
default: () => Zt
|
|
3046
3053
|
},
|
|
3047
3054
|
onChange: Function,
|
|
3048
3055
|
onChangeLayout: Function
|
|
@@ -3051,48 +3058,48 @@ const {
|
|
|
3051
3058
|
setup(e) {
|
|
3052
3059
|
const {
|
|
3053
3060
|
getPrefixCls: t
|
|
3054
|
-
} =
|
|
3061
|
+
} = ee(), a = t({
|
|
3055
3062
|
suffixCls: "setting-drawer",
|
|
3056
3063
|
isPor: !0
|
|
3057
3064
|
}), {
|
|
3058
3065
|
wrapSSR: o,
|
|
3059
3066
|
hashId: i
|
|
3060
|
-
} =
|
|
3061
|
-
value:
|
|
3067
|
+
} = Q("ProSettingDraw", [ya], a), u = Re(!1), [m, c] = pe(!1), [S, p] = pe(!1), [B, y] = pe(!1), P = f(() => ot(le(e.settings, Pe))), [l, r] = ln(() => ot(le(e.settings, Pe)), {
|
|
3068
|
+
value: P,
|
|
3062
3069
|
onChange: e.onChange
|
|
3063
|
-
}), M =
|
|
3064
|
-
copy:
|
|
3065
|
-
copied:
|
|
3066
|
-
isSupported:
|
|
3070
|
+
}), M = f(() => e.colorList && tn(e.colorList) ? e.colorList : []), O = f(() => wn(A(l))), {
|
|
3071
|
+
copy: w,
|
|
3072
|
+
copied: g,
|
|
3073
|
+
isSupported: b
|
|
3067
3074
|
} = sn();
|
|
3068
|
-
de(
|
|
3075
|
+
de(m, () => {
|
|
3069
3076
|
u.value || (u.value = !0);
|
|
3070
3077
|
});
|
|
3071
|
-
const
|
|
3072
|
-
var z,
|
|
3073
|
-
const
|
|
3074
|
-
if (
|
|
3075
|
-
|
|
3078
|
+
const x = (h, C, R) => {
|
|
3079
|
+
var z, j;
|
|
3080
|
+
const k = ["header", "sider"], D = {};
|
|
3081
|
+
if (R && k.includes(h)) {
|
|
3082
|
+
D[h] = {}, D[h][R] = C, e.onChangeLayout && e.onChangeLayout(le(D, k));
|
|
3076
3083
|
return;
|
|
3077
3084
|
} else
|
|
3078
|
-
|
|
3079
|
-
if (
|
|
3080
|
-
const
|
|
3081
|
-
|
|
3085
|
+
h === "animate" ? (D[h] = {}, D[h][R] = C, R === "name" && (D[h].direction = (j = (z = Sa.find((T) => T.name === C)) == null ? void 0 : z.directions) == null ? void 0 : j[0])) : D[h] = C;
|
|
3086
|
+
if (h === "colorWeak") {
|
|
3087
|
+
const T = document.querySelector("body");
|
|
3088
|
+
T && (T.dataset.prosettingdrawer = C === !0 ? T.style.filter : T.dataset.prosettingdrawer || "none", C === !0 && (T.dataset.prosettingdrawer = T.style.filter), T.style.filter = C === !0 ? "invert(80%)" : T.dataset.prosettingdrawer || "none", C || delete T.dataset.prosettingdrawer);
|
|
3082
3089
|
}
|
|
3083
|
-
|
|
3084
|
-
...Cn(Ve(
|
|
3090
|
+
r(an(A(l), {
|
|
3091
|
+
...Cn(Ve(D, k))
|
|
3085
3092
|
}));
|
|
3086
|
-
},
|
|
3087
|
-
|
|
3093
|
+
}, I = () => {
|
|
3094
|
+
b.value && w(JSON.stringify(A(l)));
|
|
3088
3095
|
};
|
|
3089
|
-
return de(
|
|
3090
|
-
|
|
3096
|
+
return de(g, (h) => {
|
|
3097
|
+
h && zt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
3091
3098
|
}), () => o(n(be, {
|
|
3092
3099
|
width: 300,
|
|
3093
3100
|
closable: !1,
|
|
3094
|
-
open:
|
|
3095
|
-
rootClassName: `${a} ${i.value} ${
|
|
3101
|
+
open: m.value,
|
|
3102
|
+
rootClassName: `${a} ${i.value} ${m.value && `${a}-show`} ${!u.value && `${a}-trantion-none`}`,
|
|
3096
3103
|
placement: "right",
|
|
3097
3104
|
rootStyle: {
|
|
3098
3105
|
zIndex: 999
|
|
@@ -3103,11 +3110,11 @@ const {
|
|
|
3103
3110
|
onClose: () => c(!1),
|
|
3104
3111
|
handle: n("div", {
|
|
3105
3112
|
class: [`${a}-handle`, i.value],
|
|
3106
|
-
onClick: () => c(!
|
|
3107
|
-
}, [
|
|
3108
|
-
style:
|
|
3109
|
-
}, null) : n(
|
|
3110
|
-
style:
|
|
3113
|
+
onClick: () => c(!m.value)
|
|
3114
|
+
}, [m.value ? n(ut, {
|
|
3115
|
+
style: at
|
|
3116
|
+
}, null) : n(Yt, {
|
|
3117
|
+
style: at
|
|
3111
3118
|
}, null)])
|
|
3112
3119
|
}, {
|
|
3113
3120
|
default: () => [n("div", {
|
|
@@ -3120,23 +3127,23 @@ const {
|
|
|
3120
3127
|
hashId: i.value,
|
|
3121
3128
|
title: "整体风格设置"
|
|
3122
3129
|
}, {
|
|
3123
|
-
default: () => [n(
|
|
3130
|
+
default: () => [n(et, {
|
|
3124
3131
|
hashId: i.value,
|
|
3125
3132
|
prefixCls: a,
|
|
3126
|
-
list:
|
|
3133
|
+
list: Ot,
|
|
3127
3134
|
value: l.value.theme,
|
|
3128
3135
|
configType: "theme",
|
|
3129
3136
|
key: "navTheme",
|
|
3130
|
-
onChange: (
|
|
3137
|
+
onChange: (h) => x("theme", h)
|
|
3131
3138
|
}, null)]
|
|
3132
3139
|
}), n(ye, {
|
|
3133
3140
|
hashId: i.value,
|
|
3134
|
-
title: n("span", null, [
|
|
3141
|
+
title: n("span", null, [ne("主题色 "), n("a", {
|
|
3135
3142
|
style: {
|
|
3136
3143
|
fontSize: "12px"
|
|
3137
3144
|
},
|
|
3138
|
-
onClick: () =>
|
|
3139
|
-
}, [
|
|
3145
|
+
onClick: () => p(!0)
|
|
3146
|
+
}, [ne("更多配置")])]),
|
|
3140
3147
|
prefixCls: a
|
|
3141
3148
|
}, {
|
|
3142
3149
|
default: () => [n(ba, {
|
|
@@ -3144,82 +3151,82 @@ const {
|
|
|
3144
3151
|
prefixCls: a,
|
|
3145
3152
|
colorList: M.value,
|
|
3146
3153
|
settingValue: l.value,
|
|
3147
|
-
onChange: (
|
|
3154
|
+
onChange: (h, C) => x(C || "primaryColor", h)
|
|
3148
3155
|
}, null)]
|
|
3149
|
-
}), !e.themeOnly && n(
|
|
3156
|
+
}), !e.themeOnly && n(Z, null, [n(Me, null, null), n(ye, {
|
|
3150
3157
|
hashId: i.value,
|
|
3151
3158
|
prefixCls: a,
|
|
3152
3159
|
title: "导航模式"
|
|
3153
3160
|
}, {
|
|
3154
|
-
default: () => [n(
|
|
3161
|
+
default: () => [n(et, {
|
|
3155
3162
|
prefixCls: a,
|
|
3156
|
-
value:
|
|
3163
|
+
value: A(l).layout,
|
|
3157
3164
|
key: "layout",
|
|
3158
3165
|
hashId: i.value,
|
|
3159
3166
|
configType: "layout",
|
|
3160
|
-
list:
|
|
3161
|
-
onChange: (
|
|
3167
|
+
list: Rt,
|
|
3168
|
+
onChange: (h) => x("layout", h)
|
|
3162
3169
|
}, null)]
|
|
3163
3170
|
}), Ia.map(({
|
|
3164
|
-
label:
|
|
3165
|
-
title:
|
|
3171
|
+
label: h,
|
|
3172
|
+
title: C
|
|
3166
3173
|
}) => n(he, {
|
|
3167
|
-
label:
|
|
3168
|
-
disabled:
|
|
3169
|
-
value:
|
|
3174
|
+
label: C,
|
|
3175
|
+
disabled: A(O)[h],
|
|
3176
|
+
value: A(l)[h],
|
|
3170
3177
|
prefixCls: a,
|
|
3171
3178
|
hashId: i.value,
|
|
3172
|
-
valueKey:
|
|
3173
|
-
onChange: (
|
|
3179
|
+
valueKey: h,
|
|
3180
|
+
onChange: (R, k) => x(R, k)
|
|
3174
3181
|
}, null)), n(Me, null, null), n(ye, {
|
|
3175
3182
|
hashId: i.value,
|
|
3176
3183
|
prefixCls: a,
|
|
3177
|
-
title: n("span", null, [
|
|
3184
|
+
title: n("span", null, [ne("其他设置 "), n("a", {
|
|
3178
3185
|
style: {
|
|
3179
3186
|
fontSize: "12px"
|
|
3180
3187
|
},
|
|
3181
|
-
onClick: () =>
|
|
3182
|
-
}, [
|
|
3188
|
+
onClick: () => y(!0)
|
|
3189
|
+
}, [ne("更多配置")])])
|
|
3183
3190
|
}, {
|
|
3184
3191
|
default: () => [Ma.map(({
|
|
3185
|
-
label:
|
|
3186
|
-
title:
|
|
3192
|
+
label: h,
|
|
3193
|
+
title: C
|
|
3187
3194
|
}) => n(he, {
|
|
3188
|
-
label:
|
|
3189
|
-
disabled:
|
|
3190
|
-
value:
|
|
3195
|
+
label: C,
|
|
3196
|
+
disabled: A(O)[h],
|
|
3197
|
+
value: A(l)[h],
|
|
3191
3198
|
prefixCls: a,
|
|
3192
3199
|
hashId: i.value,
|
|
3193
|
-
valueKey:
|
|
3194
|
-
onChange: (
|
|
3200
|
+
valueKey: h,
|
|
3201
|
+
onChange: (R, k) => x(R, k)
|
|
3195
3202
|
}, null)), e.weakmode && n(he, {
|
|
3196
3203
|
label: "色弱模式",
|
|
3197
|
-
value:
|
|
3204
|
+
value: A(l).colorWeak,
|
|
3198
3205
|
prefixCls: a,
|
|
3199
3206
|
hashId: i.value,
|
|
3200
3207
|
valueKey: "colorWeak",
|
|
3201
|
-
onChange: (
|
|
3208
|
+
onChange: (h, C) => x(h, C)
|
|
3202
3209
|
}, null), e.showProgress && n(he, {
|
|
3203
3210
|
label: "顶部进度条",
|
|
3204
|
-
value:
|
|
3211
|
+
value: A(l).showProgressBar,
|
|
3205
3212
|
prefixCls: a,
|
|
3206
3213
|
hashId: i.value,
|
|
3207
3214
|
valueKey: "showProgressBar",
|
|
3208
|
-
onChange: (
|
|
3215
|
+
onChange: (h, C) => x(h, C)
|
|
3209
3216
|
}, null)]
|
|
3210
|
-
})]), e.hideHintAlert && e.hideCopyButton ? null : n(Me, null, null), e.hideHintAlert ? null : n(
|
|
3217
|
+
})]), e.hideHintAlert && e.hideCopyButton ? null : n(Me, null, null), e.hideHintAlert ? null : n(Ht, {
|
|
3211
3218
|
type: "warning",
|
|
3212
3219
|
message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
|
|
3213
|
-
icon: n(
|
|
3220
|
+
icon: n(_t, null, null),
|
|
3214
3221
|
showIcon: !0,
|
|
3215
3222
|
style: {
|
|
3216
3223
|
marginBottom: "16px"
|
|
3217
3224
|
}
|
|
3218
|
-
}, null), e.hideCopyButton ? null : n(
|
|
3219
|
-
onClick: () =>
|
|
3225
|
+
}, null), e.hideCopyButton ? null : n(Vt, {
|
|
3226
|
+
onClick: () => I(),
|
|
3220
3227
|
block: !0
|
|
3221
3228
|
}, {
|
|
3222
|
-
default: () => [n(
|
|
3229
|
+
default: () => [n(Gt, null, null), ne("拷贝设置")]
|
|
3223
3230
|
})])]
|
|
3224
3231
|
})]), n(be, {
|
|
3225
3232
|
width: 320,
|
|
@@ -3229,30 +3236,30 @@ const {
|
|
|
3229
3236
|
bodyStyle: {
|
|
3230
3237
|
padding: 0
|
|
3231
3238
|
},
|
|
3232
|
-
onClose: () =>
|
|
3239
|
+
onClose: () => p(!1)
|
|
3233
3240
|
}, {
|
|
3234
3241
|
default: () => [n(xa, {
|
|
3235
3242
|
settingValue: l.value,
|
|
3236
|
-
onChange: (
|
|
3243
|
+
onChange: (h, C, R) => x(C || "primaryColor", h, R)
|
|
3237
3244
|
}, null)]
|
|
3238
3245
|
}), n(be, {
|
|
3239
3246
|
width: 320,
|
|
3240
3247
|
closable: !1,
|
|
3241
3248
|
placement: "right",
|
|
3242
|
-
open:
|
|
3249
|
+
open: B.value,
|
|
3243
3250
|
bodyStyle: {
|
|
3244
3251
|
padding: 0
|
|
3245
3252
|
},
|
|
3246
|
-
onClose: () =>
|
|
3253
|
+
onClose: () => y(!1)
|
|
3247
3254
|
}, {
|
|
3248
3255
|
default: () => [n(wa, {
|
|
3249
3256
|
settingValue: l.value,
|
|
3250
|
-
onChange: (
|
|
3257
|
+
onChange: (h, C, R) => x(h, R, C)
|
|
3251
3258
|
}, null)]
|
|
3252
3259
|
})]
|
|
3253
3260
|
}));
|
|
3254
3261
|
}
|
|
3255
|
-
}), Oa = new
|
|
3262
|
+
}), Oa = new s("backInLeft", {
|
|
3256
3263
|
"0%": {
|
|
3257
3264
|
opacity: 0.7,
|
|
3258
3265
|
transform: "translateX(-2000px) scale(0.7)"
|
|
@@ -3265,7 +3272,7 @@ const {
|
|
|
3265
3272
|
opacity: 1,
|
|
3266
3273
|
transform: "scale(1)"
|
|
3267
3274
|
}
|
|
3268
|
-
}), Ra = new
|
|
3275
|
+
}), Ra = new s("backInRight", {
|
|
3269
3276
|
"0%": {
|
|
3270
3277
|
opacity: 0.7,
|
|
3271
3278
|
transform: "translateX(2000px) scale(0.7)"
|
|
@@ -3278,7 +3285,7 @@ const {
|
|
|
3278
3285
|
opacity: 1,
|
|
3279
3286
|
transform: "scale(1)"
|
|
3280
3287
|
}
|
|
3281
|
-
}), Ba = new
|
|
3288
|
+
}), Ba = new s("backInUp", {
|
|
3282
3289
|
"0%": {
|
|
3283
3290
|
opacity: 0.7,
|
|
3284
3291
|
transform: "translateY(1200px) scale(0.7)"
|
|
@@ -3291,7 +3298,7 @@ const {
|
|
|
3291
3298
|
opacity: 1,
|
|
3292
3299
|
transform: "scale(1)"
|
|
3293
3300
|
}
|
|
3294
|
-
}), ka = new
|
|
3301
|
+
}), ka = new s("backInDown", {
|
|
3295
3302
|
"0%": {
|
|
3296
3303
|
opacity: 0.7,
|
|
3297
3304
|
transform: "translateY(-1200px) scale(0.7)"
|
|
@@ -3304,7 +3311,7 @@ const {
|
|
|
3304
3311
|
opacity: 1,
|
|
3305
3312
|
transform: "scale(1)"
|
|
3306
3313
|
}
|
|
3307
|
-
}), $a = new
|
|
3314
|
+
}), $a = new s("backOutLeft", {
|
|
3308
3315
|
"0%": {
|
|
3309
3316
|
opacity: 1,
|
|
3310
3317
|
transform: "scale(1)"
|
|
@@ -3317,7 +3324,7 @@ const {
|
|
|
3317
3324
|
opacity: 0.7,
|
|
3318
3325
|
transform: "translateX(-2000px) scale(0.7)"
|
|
3319
3326
|
}
|
|
3320
|
-
}),
|
|
3327
|
+
}), Pa = new s("backOutRight", {
|
|
3321
3328
|
"0%": {
|
|
3322
3329
|
opacity: 1,
|
|
3323
3330
|
transform: "scale(1)"
|
|
@@ -3330,7 +3337,7 @@ const {
|
|
|
3330
3337
|
opacity: 0.7,
|
|
3331
3338
|
transform: "translateX(2000px) scale(0.7)"
|
|
3332
3339
|
}
|
|
3333
|
-
}),
|
|
3340
|
+
}), Fa = new s("backOutUp", {
|
|
3334
3341
|
"0%": {
|
|
3335
3342
|
opacity: 1,
|
|
3336
3343
|
transform: "scale(1)"
|
|
@@ -3343,7 +3350,7 @@ const {
|
|
|
3343
3350
|
opacity: 0.7,
|
|
3344
3351
|
transform: "translateY(-700px) scale(0.7)"
|
|
3345
3352
|
}
|
|
3346
|
-
}),
|
|
3353
|
+
}), Ta = new s("backOutDown", {
|
|
3347
3354
|
"0%": {
|
|
3348
3355
|
opacity: 1,
|
|
3349
3356
|
transform: "scale(1)"
|
|
@@ -3380,17 +3387,17 @@ const {
|
|
|
3380
3387
|
},
|
|
3381
3388
|
"&.backOutRight": {
|
|
3382
3389
|
animationFillMode: "both",
|
|
3383
|
-
animationName:
|
|
3390
|
+
animationName: Pa
|
|
3384
3391
|
},
|
|
3385
3392
|
"&.backOutUp": {
|
|
3386
3393
|
animationFillMode: "both",
|
|
3387
|
-
animationName:
|
|
3394
|
+
animationName: Fa
|
|
3388
3395
|
},
|
|
3389
3396
|
"&.backOutDown": {
|
|
3390
3397
|
animationFillMode: "both",
|
|
3391
|
-
animationName:
|
|
3398
|
+
animationName: Ta
|
|
3392
3399
|
}
|
|
3393
|
-
}), Na = new
|
|
3400
|
+
}), Na = new s("bounceIn", {
|
|
3394
3401
|
"from,20%,40%,60%,80%,to": {
|
|
3395
3402
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3396
3403
|
},
|
|
@@ -3414,7 +3421,7 @@ const {
|
|
|
3414
3421
|
opacity: 1,
|
|
3415
3422
|
transform: "scale3d(1, 1, 1)"
|
|
3416
3423
|
}
|
|
3417
|
-
}), za = new
|
|
3424
|
+
}), za = new s("bounceInLeft", {
|
|
3418
3425
|
"from,60%,75%,90%,to": {
|
|
3419
3426
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3420
3427
|
},
|
|
@@ -3435,7 +3442,7 @@ const {
|
|
|
3435
3442
|
to: {
|
|
3436
3443
|
transform: "translate3d(0, 0, 0)"
|
|
3437
3444
|
}
|
|
3438
|
-
}), Ha = new
|
|
3445
|
+
}), Ha = new s("bounceInRight", {
|
|
3439
3446
|
"from,60%,75%,90%,to": {
|
|
3440
3447
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3441
3448
|
},
|
|
@@ -3456,7 +3463,7 @@ const {
|
|
|
3456
3463
|
to: {
|
|
3457
3464
|
transform: "translate3d(0, 0, 0)"
|
|
3458
3465
|
}
|
|
3459
|
-
}), Va = new
|
|
3466
|
+
}), Va = new s("bounceInDown", {
|
|
3460
3467
|
"from,60%,75%,90%,to": {
|
|
3461
3468
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3462
3469
|
},
|
|
@@ -3477,7 +3484,7 @@ const {
|
|
|
3477
3484
|
to: {
|
|
3478
3485
|
transform: "translate3d(0, 0, 0)"
|
|
3479
3486
|
}
|
|
3480
|
-
}), ja = new
|
|
3487
|
+
}), ja = new s("bounceInUp", {
|
|
3481
3488
|
"from,60%,75%,90%,to": {
|
|
3482
3489
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3483
3490
|
},
|
|
@@ -3498,7 +3505,7 @@ const {
|
|
|
3498
3505
|
to: {
|
|
3499
3506
|
transform: "translate3d(0, 0, 0)"
|
|
3500
3507
|
}
|
|
3501
|
-
}), Wa = new
|
|
3508
|
+
}), Wa = new s("bounceOut", {
|
|
3502
3509
|
"20%": {
|
|
3503
3510
|
transform: "scale3d(0.9, 0.9, 0.9)"
|
|
3504
3511
|
},
|
|
@@ -3512,7 +3519,7 @@ const {
|
|
|
3512
3519
|
opacity: 0,
|
|
3513
3520
|
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
3514
3521
|
}
|
|
3515
|
-
}), Aa = new
|
|
3522
|
+
}), Aa = new s("bounceOutLeft", {
|
|
3516
3523
|
"20%": {
|
|
3517
3524
|
opacity: 1,
|
|
3518
3525
|
transform: "translate3d(20px, 0, 0) scaleX(0.9)"
|
|
@@ -3521,7 +3528,7 @@ const {
|
|
|
3521
3528
|
opacity: 0,
|
|
3522
3529
|
transform: "translate3d(-2000px, 0, 0) scaleX(2)"
|
|
3523
3530
|
}
|
|
3524
|
-
}), Ka = new
|
|
3531
|
+
}), Ka = new s("bounceOutRight", {
|
|
3525
3532
|
"20%": {
|
|
3526
3533
|
opacity: 1,
|
|
3527
3534
|
transform: "translate3d(-20px, 0, 0) scaleX(0.9)"
|
|
@@ -3530,7 +3537,7 @@ const {
|
|
|
3530
3537
|
opacity: 0,
|
|
3531
3538
|
transform: "translate3d(2000px, 0, 0) scaleX(2)"
|
|
3532
3539
|
}
|
|
3533
|
-
}), Ua = new
|
|
3540
|
+
}), Ua = new s("bounceOutDown", {
|
|
3534
3541
|
"20%": {
|
|
3535
3542
|
transform: "translate3d(0, 10px, 0) scaleY(0.985)"
|
|
3536
3543
|
},
|
|
@@ -3542,7 +3549,7 @@ const {
|
|
|
3542
3549
|
opacity: 0,
|
|
3543
3550
|
transform: "translate3d(0, 2000px, 0) scaleY(3)"
|
|
3544
3551
|
}
|
|
3545
|
-
}), Ea = new
|
|
3552
|
+
}), Ea = new s("bounceOutUp", {
|
|
3546
3553
|
"20%": {
|
|
3547
3554
|
transform: "translate3d(0, -10px, 0) scaleY(0.985)"
|
|
3548
3555
|
},
|
|
@@ -3598,14 +3605,14 @@ const {
|
|
|
3598
3605
|
animationFillMode: "both",
|
|
3599
3606
|
animationName: Ea
|
|
3600
3607
|
}
|
|
3601
|
-
}), _a = new
|
|
3608
|
+
}), _a = new s("fadeIn", {
|
|
3602
3609
|
from: {
|
|
3603
3610
|
opacity: 0
|
|
3604
3611
|
},
|
|
3605
3612
|
to: {
|
|
3606
3613
|
opacity: 1
|
|
3607
3614
|
}
|
|
3608
|
-
}), Ga = new
|
|
3615
|
+
}), Ga = new s("fadeInLeft", {
|
|
3609
3616
|
from: {
|
|
3610
3617
|
opacity: 0,
|
|
3611
3618
|
transform: "translate3d(-100%, 0, 0)"
|
|
@@ -3614,7 +3621,7 @@ const {
|
|
|
3614
3621
|
opacity: 1,
|
|
3615
3622
|
transform: "translate3d(0, 0, 0)"
|
|
3616
3623
|
}
|
|
3617
|
-
}), qa = new
|
|
3624
|
+
}), qa = new s("fadeInRight", {
|
|
3618
3625
|
from: {
|
|
3619
3626
|
opacity: 0,
|
|
3620
3627
|
transform: "translate3d(100%, 0, 0)"
|
|
@@ -3623,7 +3630,7 @@ const {
|
|
|
3623
3630
|
opacity: 1,
|
|
3624
3631
|
transform: "translate3d(0, 0, 0)"
|
|
3625
3632
|
}
|
|
3626
|
-
}), Za = new
|
|
3633
|
+
}), Za = new s("fadeInDown", {
|
|
3627
3634
|
from: {
|
|
3628
3635
|
opacity: 0,
|
|
3629
3636
|
transform: "translate3d(0, -100%, 0)"
|
|
@@ -3632,7 +3639,7 @@ const {
|
|
|
3632
3639
|
opacity: 1,
|
|
3633
3640
|
transform: "translate3d(0, 0, 0)"
|
|
3634
3641
|
}
|
|
3635
|
-
}), Ja = new
|
|
3642
|
+
}), Ja = new s("fadeInUp", {
|
|
3636
3643
|
from: {
|
|
3637
3644
|
opacity: 0,
|
|
3638
3645
|
transform: "translate3d(0, 100%, 0)"
|
|
@@ -3641,7 +3648,7 @@ const {
|
|
|
3641
3648
|
opacity: 1,
|
|
3642
3649
|
transform: "translate3d(0, 0, 0)"
|
|
3643
3650
|
}
|
|
3644
|
-
}), Qa = new
|
|
3651
|
+
}), Qa = new s("fadeInDownBig", {
|
|
3645
3652
|
from: {
|
|
3646
3653
|
opacity: 0,
|
|
3647
3654
|
transform: "translate3d(0, -2000px, 0)"
|
|
@@ -3650,7 +3657,7 @@ const {
|
|
|
3650
3657
|
opacity: 1,
|
|
3651
3658
|
transform: "translate3d(0, 0, 0)"
|
|
3652
3659
|
}
|
|
3653
|
-
}), eo = new
|
|
3660
|
+
}), eo = new s("fadeInUpBig", {
|
|
3654
3661
|
from: {
|
|
3655
3662
|
opacity: 0,
|
|
3656
3663
|
transform: "translate3d(0, 2000px, 0)"
|
|
@@ -3659,7 +3666,7 @@ const {
|
|
|
3659
3666
|
opacity: 1,
|
|
3660
3667
|
transform: "translate3d(0, 0, 0)"
|
|
3661
3668
|
}
|
|
3662
|
-
}), to = new
|
|
3669
|
+
}), to = new s("fadeInLeftBig", {
|
|
3663
3670
|
from: {
|
|
3664
3671
|
opacity: 0,
|
|
3665
3672
|
transform: "translate3d(-2000px, 0, 0)"
|
|
@@ -3668,7 +3675,7 @@ const {
|
|
|
3668
3675
|
opacity: 1,
|
|
3669
3676
|
transform: "translate3d(0, 0, 0)"
|
|
3670
3677
|
}
|
|
3671
|
-
}), no = new
|
|
3678
|
+
}), no = new s("fadeInRightBig", {
|
|
3672
3679
|
from: {
|
|
3673
3680
|
opacity: 0,
|
|
3674
3681
|
transform: "translate3d(2000px, 0, 0)"
|
|
@@ -3677,7 +3684,7 @@ const {
|
|
|
3677
3684
|
opacity: 1,
|
|
3678
3685
|
transform: "translate3d(0, 0, 0)"
|
|
3679
3686
|
}
|
|
3680
|
-
}), ao = new
|
|
3687
|
+
}), ao = new s("fadeInTopLeft", {
|
|
3681
3688
|
from: {
|
|
3682
3689
|
opacity: 0,
|
|
3683
3690
|
transform: "translate3d(-100%, -100%, 0)"
|
|
@@ -3686,7 +3693,7 @@ const {
|
|
|
3686
3693
|
opacity: 1,
|
|
3687
3694
|
transform: "translate3d(0, 0, 0)"
|
|
3688
3695
|
}
|
|
3689
|
-
}), oo = new
|
|
3696
|
+
}), oo = new s("fadeInBottomRight", {
|
|
3690
3697
|
from: {
|
|
3691
3698
|
opacity: 0,
|
|
3692
3699
|
transform: "translate3d(100%, 100%, 0)"
|
|
@@ -3695,7 +3702,7 @@ const {
|
|
|
3695
3702
|
opacity: 1,
|
|
3696
3703
|
transform: "translate3d(0, 0, 0)"
|
|
3697
3704
|
}
|
|
3698
|
-
}), io = new
|
|
3705
|
+
}), io = new s("fadeInTopRight", {
|
|
3699
3706
|
from: {
|
|
3700
3707
|
opacity: 0,
|
|
3701
3708
|
transform: "translate3d(100%, -100%, 0)"
|
|
@@ -3704,7 +3711,7 @@ const {
|
|
|
3704
3711
|
opacity: 1,
|
|
3705
3712
|
transform: "translate3d(0, 0, 0)"
|
|
3706
3713
|
}
|
|
3707
|
-
}), lo = new
|
|
3714
|
+
}), lo = new s("fadeInBottomLeft", {
|
|
3708
3715
|
from: {
|
|
3709
3716
|
opacity: 0,
|
|
3710
3717
|
transform: "translate3d(-100%, 100%, 0)"
|
|
@@ -3713,14 +3720,14 @@ const {
|
|
|
3713
3720
|
opacity: 1,
|
|
3714
3721
|
transform: "translate3d(0, 0, 0)"
|
|
3715
3722
|
}
|
|
3716
|
-
}), ro = new
|
|
3723
|
+
}), ro = new s("fadeOut", {
|
|
3717
3724
|
from: {
|
|
3718
3725
|
opacity: 1
|
|
3719
3726
|
},
|
|
3720
3727
|
to: {
|
|
3721
3728
|
opacity: 0
|
|
3722
3729
|
}
|
|
3723
|
-
}), so = new
|
|
3730
|
+
}), so = new s("fadeOutLeft", {
|
|
3724
3731
|
from: {
|
|
3725
3732
|
opacity: 1
|
|
3726
3733
|
},
|
|
@@ -3728,7 +3735,7 @@ const {
|
|
|
3728
3735
|
opacity: 0,
|
|
3729
3736
|
transform: "translate3d(-100%, 0, 0)"
|
|
3730
3737
|
}
|
|
3731
|
-
}), uo = new
|
|
3738
|
+
}), uo = new s("fadeOutRight", {
|
|
3732
3739
|
from: {
|
|
3733
3740
|
opacity: 1
|
|
3734
3741
|
},
|
|
@@ -3736,7 +3743,7 @@ const {
|
|
|
3736
3743
|
opacity: 0,
|
|
3737
3744
|
transform: "translate3d(100%, 0, 0)"
|
|
3738
3745
|
}
|
|
3739
|
-
}), co = new
|
|
3746
|
+
}), co = new s("fadeOutDown", {
|
|
3740
3747
|
from: {
|
|
3741
3748
|
opacity: 1
|
|
3742
3749
|
},
|
|
@@ -3744,7 +3751,7 @@ const {
|
|
|
3744
3751
|
opacity: 0,
|
|
3745
3752
|
transform: "translate3d(0, 100%, 0)"
|
|
3746
3753
|
}
|
|
3747
|
-
}), mo = new
|
|
3754
|
+
}), mo = new s("fadeOutUp", {
|
|
3748
3755
|
from: {
|
|
3749
3756
|
opacity: 1
|
|
3750
3757
|
},
|
|
@@ -3752,7 +3759,7 @@ const {
|
|
|
3752
3759
|
opacity: 0,
|
|
3753
3760
|
transform: "translate3d(0, -100%, 0)"
|
|
3754
3761
|
}
|
|
3755
|
-
}), fo = new
|
|
3762
|
+
}), fo = new s("fadeOutDownBig", {
|
|
3756
3763
|
from: {
|
|
3757
3764
|
opacity: 1
|
|
3758
3765
|
},
|
|
@@ -3760,7 +3767,7 @@ const {
|
|
|
3760
3767
|
opacity: 0,
|
|
3761
3768
|
transform: "translate3d(0, 2000px, 0)"
|
|
3762
3769
|
}
|
|
3763
|
-
}), go = new
|
|
3770
|
+
}), go = new s("fadeOutUpBig", {
|
|
3764
3771
|
from: {
|
|
3765
3772
|
opacity: 1
|
|
3766
3773
|
},
|
|
@@ -3768,7 +3775,7 @@ const {
|
|
|
3768
3775
|
opacity: 0,
|
|
3769
3776
|
transform: "translate3d(0, -2000px, 0)"
|
|
3770
3777
|
}
|
|
3771
|
-
}), ho = new
|
|
3778
|
+
}), ho = new s("fadeOutLeftBig", {
|
|
3772
3779
|
from: {
|
|
3773
3780
|
opacity: 1
|
|
3774
3781
|
},
|
|
@@ -3776,7 +3783,7 @@ const {
|
|
|
3776
3783
|
opacity: 0,
|
|
3777
3784
|
transform: "translate3d(-2000px, 0, 0)"
|
|
3778
3785
|
}
|
|
3779
|
-
}), yo = new
|
|
3786
|
+
}), yo = new s("fadeOutRightBig", {
|
|
3780
3787
|
from: {
|
|
3781
3788
|
opacity: 1
|
|
3782
3789
|
},
|
|
@@ -3784,7 +3791,7 @@ const {
|
|
|
3784
3791
|
opacity: 0,
|
|
3785
3792
|
transform: "translate3d(2000px, 0, 0)"
|
|
3786
3793
|
}
|
|
3787
|
-
}), bo = new
|
|
3794
|
+
}), bo = new s("fadeOutTopLeft", {
|
|
3788
3795
|
from: {
|
|
3789
3796
|
opacity: 1,
|
|
3790
3797
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -3793,7 +3800,7 @@ const {
|
|
|
3793
3800
|
opacity: 0,
|
|
3794
3801
|
transform: "translate3d(-100%, -100%, 0)"
|
|
3795
3802
|
}
|
|
3796
|
-
}), po = new
|
|
3803
|
+
}), po = new s("fadeOutBottomRight", {
|
|
3797
3804
|
from: {
|
|
3798
3805
|
opacity: 1,
|
|
3799
3806
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -3802,7 +3809,7 @@ const {
|
|
|
3802
3809
|
opacity: 0,
|
|
3803
3810
|
transform: "translate3d(100%, 100%, 0)"
|
|
3804
3811
|
}
|
|
3805
|
-
}), vo = new
|
|
3812
|
+
}), vo = new s("fadeOutTopRight", {
|
|
3806
3813
|
from: {
|
|
3807
3814
|
opacity: 1,
|
|
3808
3815
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -3811,7 +3818,7 @@ const {
|
|
|
3811
3818
|
opacity: 0,
|
|
3812
3819
|
transform: "translate3d(100%, -100%, 0)"
|
|
3813
3820
|
}
|
|
3814
|
-
}), xo = new
|
|
3821
|
+
}), xo = new s("fadeOutBottomLeft", {
|
|
3815
3822
|
from: {
|
|
3816
3823
|
opacity: 1,
|
|
3817
3824
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -3926,7 +3933,7 @@ const {
|
|
|
3926
3933
|
animationFillMode: "both",
|
|
3927
3934
|
animationName: xo
|
|
3928
3935
|
}
|
|
3929
|
-
}), So = new
|
|
3936
|
+
}), So = new s("flipInX", {
|
|
3930
3937
|
from: {
|
|
3931
3938
|
opacity: 0,
|
|
3932
3939
|
animationTimingFunction: "ease-in",
|
|
@@ -3946,7 +3953,7 @@ const {
|
|
|
3946
3953
|
to: {
|
|
3947
3954
|
transform: "perspective(400px)"
|
|
3948
3955
|
}
|
|
3949
|
-
}), Io = new
|
|
3956
|
+
}), Io = new s("flipInY", {
|
|
3950
3957
|
from: {
|
|
3951
3958
|
opacity: 0,
|
|
3952
3959
|
animationTimingFunction: "ease-in",
|
|
@@ -3966,7 +3973,7 @@ const {
|
|
|
3966
3973
|
to: {
|
|
3967
3974
|
transform: "perspective(400px)"
|
|
3968
3975
|
}
|
|
3969
|
-
}), Mo = new
|
|
3976
|
+
}), Mo = new s("flipOutX", {
|
|
3970
3977
|
from: {
|
|
3971
3978
|
transform: "perspective(400px)"
|
|
3972
3979
|
},
|
|
@@ -3978,7 +3985,7 @@ const {
|
|
|
3978
3985
|
opacity: 0,
|
|
3979
3986
|
transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
|
|
3980
3987
|
}
|
|
3981
|
-
}), Oo = new
|
|
3988
|
+
}), Oo = new s("flipOutY", {
|
|
3982
3989
|
from: {
|
|
3983
3990
|
transform: "perspective(400px)"
|
|
3984
3991
|
},
|
|
@@ -4014,7 +4021,7 @@ const {
|
|
|
4014
4021
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
4015
4022
|
animationName: Oo
|
|
4016
4023
|
}
|
|
4017
|
-
}), ko = new
|
|
4024
|
+
}), ko = new s("lightSpeedInLeft", {
|
|
4018
4025
|
from: {
|
|
4019
4026
|
opacity: 0,
|
|
4020
4027
|
transform: "translate3d(-100%, 0, 0) skewX(30deg)"
|
|
@@ -4029,7 +4036,7 @@ const {
|
|
|
4029
4036
|
to: {
|
|
4030
4037
|
transform: "translate3d(0, 0, 0)"
|
|
4031
4038
|
}
|
|
4032
|
-
}), $o = new
|
|
4039
|
+
}), $o = new s("lightSpeedInRight", {
|
|
4033
4040
|
from: {
|
|
4034
4041
|
opacity: 0,
|
|
4035
4042
|
transform: "translate3d(100%, 0, 0) skewX(-30deg)"
|
|
@@ -4044,7 +4051,7 @@ const {
|
|
|
4044
4051
|
to: {
|
|
4045
4052
|
transform: "translate3d(0, 0, 0)"
|
|
4046
4053
|
}
|
|
4047
|
-
}),
|
|
4054
|
+
}), Po = new s("lightSpeedOutLeft", {
|
|
4048
4055
|
from: {
|
|
4049
4056
|
opacity: 1
|
|
4050
4057
|
},
|
|
@@ -4052,7 +4059,7 @@ const {
|
|
|
4052
4059
|
opacity: 0,
|
|
4053
4060
|
transform: "translate3d(-100%, 0, 0) skewX(-30deg)"
|
|
4054
4061
|
}
|
|
4055
|
-
}),
|
|
4062
|
+
}), Fo = new s("lightSpeedOutRight", {
|
|
4056
4063
|
from: {
|
|
4057
4064
|
opacity: 1
|
|
4058
4065
|
},
|
|
@@ -4060,7 +4067,7 @@ const {
|
|
|
4060
4067
|
opacity: 0,
|
|
4061
4068
|
transform: "translate3d(100%, 0, 0) skewX(30deg)"
|
|
4062
4069
|
}
|
|
4063
|
-
}),
|
|
4070
|
+
}), To = () => ({
|
|
4064
4071
|
"&.lightSpeedInLeft": {
|
|
4065
4072
|
animationFillMode: "both",
|
|
4066
4073
|
animationTimingFunction: "ease-out",
|
|
@@ -4075,14 +4082,14 @@ const {
|
|
|
4075
4082
|
"&.lightSpeedOutLeft": {
|
|
4076
4083
|
animationFillMode: "both",
|
|
4077
4084
|
animationTimingFunction: "ease-in",
|
|
4078
|
-
animationName:
|
|
4085
|
+
animationName: Po
|
|
4079
4086
|
},
|
|
4080
4087
|
"&.lightSpeedOutRight": {
|
|
4081
4088
|
animationFillMode: "both",
|
|
4082
4089
|
animationTimingFunction: "ease-in",
|
|
4083
|
-
animationName:
|
|
4090
|
+
animationName: Fo
|
|
4084
4091
|
}
|
|
4085
|
-
}), Do = new
|
|
4092
|
+
}), Do = new s("rotateIn", {
|
|
4086
4093
|
from: {
|
|
4087
4094
|
opacity: 0,
|
|
4088
4095
|
transform: "rotate3d(0, 0, 1, -200deg)"
|
|
@@ -4091,7 +4098,7 @@ const {
|
|
|
4091
4098
|
opacity: 1,
|
|
4092
4099
|
transform: "translate3d(0, 0, 0)"
|
|
4093
4100
|
}
|
|
4094
|
-
}), No = new
|
|
4101
|
+
}), No = new s("rotateInDownLeft", {
|
|
4095
4102
|
from: {
|
|
4096
4103
|
opacity: 0,
|
|
4097
4104
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
@@ -4100,7 +4107,7 @@ const {
|
|
|
4100
4107
|
opacity: 1,
|
|
4101
4108
|
transform: "translate3d(0, 0, 0)"
|
|
4102
4109
|
}
|
|
4103
|
-
}), zo = new
|
|
4110
|
+
}), zo = new s("rotateInDownRight", {
|
|
4104
4111
|
from: {
|
|
4105
4112
|
opacity: 0,
|
|
4106
4113
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
@@ -4109,7 +4116,7 @@ const {
|
|
|
4109
4116
|
opacity: 1,
|
|
4110
4117
|
transform: "translate3d(0, 0, 0)"
|
|
4111
4118
|
}
|
|
4112
|
-
}), Ho = new
|
|
4119
|
+
}), Ho = new s("rotateInUpLeft", {
|
|
4113
4120
|
from: {
|
|
4114
4121
|
opacity: 0,
|
|
4115
4122
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
@@ -4118,7 +4125,7 @@ const {
|
|
|
4118
4125
|
opacity: 1,
|
|
4119
4126
|
transform: "translate3d(0, 0, 0)"
|
|
4120
4127
|
}
|
|
4121
|
-
}), Vo = new
|
|
4128
|
+
}), Vo = new s("rotateInUpRight", {
|
|
4122
4129
|
from: {
|
|
4123
4130
|
opacity: 0,
|
|
4124
4131
|
transform: "rotate3d(0, 0, 1, -90deg)"
|
|
@@ -4127,7 +4134,7 @@ const {
|
|
|
4127
4134
|
opacity: 1,
|
|
4128
4135
|
transform: "translate3d(0, 0, 0)"
|
|
4129
4136
|
}
|
|
4130
|
-
}), jo = new
|
|
4137
|
+
}), jo = new s("rotateOut", {
|
|
4131
4138
|
from: {
|
|
4132
4139
|
opacity: 1
|
|
4133
4140
|
},
|
|
@@ -4135,7 +4142,7 @@ const {
|
|
|
4135
4142
|
opacity: 0,
|
|
4136
4143
|
transform: "rotate3d(0, 0, 1, 200deg)"
|
|
4137
4144
|
}
|
|
4138
|
-
}), Wo = new
|
|
4145
|
+
}), Wo = new s("rotateOutDownLeft", {
|
|
4139
4146
|
from: {
|
|
4140
4147
|
opacity: 1
|
|
4141
4148
|
},
|
|
@@ -4143,7 +4150,7 @@ const {
|
|
|
4143
4150
|
opacity: 0,
|
|
4144
4151
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
4145
4152
|
}
|
|
4146
|
-
}), Ao = new
|
|
4153
|
+
}), Ao = new s("rotateOutDownRight", {
|
|
4147
4154
|
from: {
|
|
4148
4155
|
opacity: 1
|
|
4149
4156
|
},
|
|
@@ -4151,7 +4158,7 @@ const {
|
|
|
4151
4158
|
opacity: 0,
|
|
4152
4159
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4153
4160
|
}
|
|
4154
|
-
}), Ko = new
|
|
4161
|
+
}), Ko = new s("rotateOutUpLeft", {
|
|
4155
4162
|
from: {
|
|
4156
4163
|
opacity: 1
|
|
4157
4164
|
},
|
|
@@ -4159,7 +4166,7 @@ const {
|
|
|
4159
4166
|
opacity: 0,
|
|
4160
4167
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4161
4168
|
}
|
|
4162
|
-
}), Uo = new
|
|
4169
|
+
}), Uo = new s("rotateOutUpRight", {
|
|
4163
4170
|
from: {
|
|
4164
4171
|
opacity: 1
|
|
4165
4172
|
},
|
|
@@ -4219,7 +4226,7 @@ const {
|
|
|
4219
4226
|
transformOrigin: "right bottom",
|
|
4220
4227
|
animationName: Uo
|
|
4221
4228
|
}
|
|
4222
|
-
}), Yo = new
|
|
4229
|
+
}), Yo = new s("rollIn", {
|
|
4223
4230
|
from: {
|
|
4224
4231
|
opacity: 0,
|
|
4225
4232
|
transform: "translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"
|
|
@@ -4228,7 +4235,7 @@ const {
|
|
|
4228
4235
|
opacity: 1,
|
|
4229
4236
|
transform: "translate3d(0, 0, 0)"
|
|
4230
4237
|
}
|
|
4231
|
-
}), _o = new
|
|
4238
|
+
}), _o = new s("rollOut", {
|
|
4232
4239
|
from: {
|
|
4233
4240
|
opacity: 1
|
|
4234
4241
|
},
|
|
@@ -4246,7 +4253,7 @@ const {
|
|
|
4246
4253
|
animationFillMode: "both",
|
|
4247
4254
|
animationName: _o
|
|
4248
4255
|
}
|
|
4249
|
-
}), Zo = new
|
|
4256
|
+
}), Zo = new s("zoomIn", {
|
|
4250
4257
|
from: {
|
|
4251
4258
|
opacity: 0,
|
|
4252
4259
|
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
@@ -4254,7 +4261,7 @@ const {
|
|
|
4254
4261
|
"50%": {
|
|
4255
4262
|
opacity: 1
|
|
4256
4263
|
}
|
|
4257
|
-
}), Jo = new
|
|
4264
|
+
}), Jo = new s("zoomInDown", {
|
|
4258
4265
|
from: {
|
|
4259
4266
|
opacity: 0,
|
|
4260
4267
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",
|
|
@@ -4265,7 +4272,7 @@ const {
|
|
|
4265
4272
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
4266
4273
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4267
4274
|
}
|
|
4268
|
-
}), Qo = new
|
|
4275
|
+
}), Qo = new s("zoomInLeft", {
|
|
4269
4276
|
from: {
|
|
4270
4277
|
opacity: 0,
|
|
4271
4278
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",
|
|
@@ -4276,7 +4283,7 @@ const {
|
|
|
4276
4283
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",
|
|
4277
4284
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4278
4285
|
}
|
|
4279
|
-
}), ei = new
|
|
4286
|
+
}), ei = new s("zoomInRight", {
|
|
4280
4287
|
from: {
|
|
4281
4288
|
opacity: 0,
|
|
4282
4289
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",
|
|
@@ -4287,7 +4294,7 @@ const {
|
|
|
4287
4294
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",
|
|
4288
4295
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4289
4296
|
}
|
|
4290
|
-
}), ti = new
|
|
4297
|
+
}), ti = new s("zoomInUp", {
|
|
4291
4298
|
from: {
|
|
4292
4299
|
opacity: 0,
|
|
4293
4300
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",
|
|
@@ -4298,7 +4305,7 @@ const {
|
|
|
4298
4305
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
4299
4306
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4300
4307
|
}
|
|
4301
|
-
}), ni = new
|
|
4308
|
+
}), ni = new s("zoomOut", {
|
|
4302
4309
|
from: {
|
|
4303
4310
|
opacity: 1
|
|
4304
4311
|
},
|
|
@@ -4309,7 +4316,7 @@ const {
|
|
|
4309
4316
|
to: {
|
|
4310
4317
|
opacity: 0
|
|
4311
4318
|
}
|
|
4312
|
-
}), ai = new
|
|
4319
|
+
}), ai = new s("zoomOutDown", {
|
|
4313
4320
|
"40%": {
|
|
4314
4321
|
opacity: 1,
|
|
4315
4322
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
@@ -4320,7 +4327,7 @@ const {
|
|
|
4320
4327
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
|
|
4321
4328
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4322
4329
|
}
|
|
4323
|
-
}), oi = new
|
|
4330
|
+
}), oi = new s("zoomOutLeft", {
|
|
4324
4331
|
"40%": {
|
|
4325
4332
|
opacity: 1,
|
|
4326
4333
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
|
|
@@ -4329,7 +4336,7 @@ const {
|
|
|
4329
4336
|
opacity: 0,
|
|
4330
4337
|
transform: "scale(0.1) translate3d(-2000px, 0, 0)"
|
|
4331
4338
|
}
|
|
4332
|
-
}), ii = new
|
|
4339
|
+
}), ii = new s("zoomOutRight", {
|
|
4333
4340
|
"40%": {
|
|
4334
4341
|
opacity: 1,
|
|
4335
4342
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
|
|
@@ -4338,7 +4345,7 @@ const {
|
|
|
4338
4345
|
opacity: 0,
|
|
4339
4346
|
transform: "scale(0.1) translate3d(2000px, 0, 0)"
|
|
4340
4347
|
}
|
|
4341
|
-
}), li = new
|
|
4348
|
+
}), li = new s("zoomOutUp", {
|
|
4342
4349
|
"40%": {
|
|
4343
4350
|
opacity: 1,
|
|
4344
4351
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
@@ -4395,7 +4402,7 @@ const {
|
|
|
4395
4402
|
transformOrigin: "center bottom",
|
|
4396
4403
|
animationName: li
|
|
4397
4404
|
}
|
|
4398
|
-
}), ui = new
|
|
4405
|
+
}), ui = new s("slideInDown", {
|
|
4399
4406
|
from: {
|
|
4400
4407
|
transform: "translate3d(0, -100%, 0)",
|
|
4401
4408
|
visibility: "visible"
|
|
@@ -4403,7 +4410,7 @@ const {
|
|
|
4403
4410
|
to: {
|
|
4404
4411
|
transform: "translate3d(0, 0, 0)"
|
|
4405
4412
|
}
|
|
4406
|
-
}), di = new
|
|
4413
|
+
}), di = new s("slideInLeft", {
|
|
4407
4414
|
from: {
|
|
4408
4415
|
transform: "translate3d(-100%, 0, 0)",
|
|
4409
4416
|
visibility: "visible"
|
|
@@ -4411,7 +4418,7 @@ const {
|
|
|
4411
4418
|
to: {
|
|
4412
4419
|
transform: "translate3d(0, 0, 0)"
|
|
4413
4420
|
}
|
|
4414
|
-
}), ci = new
|
|
4421
|
+
}), ci = new s("slideInRight", {
|
|
4415
4422
|
from: {
|
|
4416
4423
|
transform: "translate3d(100%, 0, 0)",
|
|
4417
4424
|
visibility: "visible"
|
|
@@ -4419,7 +4426,7 @@ const {
|
|
|
4419
4426
|
to: {
|
|
4420
4427
|
transform: "translate3d(0, 0, 0)"
|
|
4421
4428
|
}
|
|
4422
|
-
}), mi = new
|
|
4429
|
+
}), mi = new s("slideInUp", {
|
|
4423
4430
|
from: {
|
|
4424
4431
|
transform: "translate3d(0, 100%, 0)",
|
|
4425
4432
|
visibility: "visible"
|
|
@@ -4427,7 +4434,7 @@ const {
|
|
|
4427
4434
|
to: {
|
|
4428
4435
|
transform: "translate3d(0, 0, 0)"
|
|
4429
4436
|
}
|
|
4430
|
-
}), fi = new
|
|
4437
|
+
}), fi = new s("slideOutDown", {
|
|
4431
4438
|
from: {
|
|
4432
4439
|
transform: "translate3d(0, 0, 0)"
|
|
4433
4440
|
},
|
|
@@ -4435,7 +4442,7 @@ const {
|
|
|
4435
4442
|
transform: "translate3d(0, 100%, 0)",
|
|
4436
4443
|
visibility: "hidden"
|
|
4437
4444
|
}
|
|
4438
|
-
}), gi = new
|
|
4445
|
+
}), gi = new s("slideOutLeft", {
|
|
4439
4446
|
from: {
|
|
4440
4447
|
transform: "translate3d(0, 0, 0)"
|
|
4441
4448
|
},
|
|
@@ -4443,7 +4450,7 @@ const {
|
|
|
4443
4450
|
transform: "translate3d(-100%, 0, 0)",
|
|
4444
4451
|
visibility: "hidden"
|
|
4445
4452
|
}
|
|
4446
|
-
}), hi = new
|
|
4453
|
+
}), hi = new s("slideOutRight", {
|
|
4447
4454
|
from: {
|
|
4448
4455
|
transform: "translate3d(0, 0, 0)"
|
|
4449
4456
|
},
|
|
@@ -4451,7 +4458,7 @@ const {
|
|
|
4451
4458
|
transform: "translate3d(100%, 0, 0)",
|
|
4452
4459
|
visibility: "hidden"
|
|
4453
4460
|
}
|
|
4454
|
-
}), yi = new
|
|
4461
|
+
}), yi = new s("slideOutUp", {
|
|
4455
4462
|
from: {
|
|
4456
4463
|
transform: "translate3d(0, 0, 0)"
|
|
4457
4464
|
},
|
|
@@ -4502,7 +4509,7 @@ const {
|
|
|
4502
4509
|
...Xa(),
|
|
4503
4510
|
...Co(),
|
|
4504
4511
|
...Ro(),
|
|
4505
|
-
...
|
|
4512
|
+
...To(),
|
|
4506
4513
|
...Eo(),
|
|
4507
4514
|
...Go(),
|
|
4508
4515
|
...ri(),
|
|
@@ -4530,7 +4537,7 @@ function xi(e) {
|
|
|
4530
4537
|
return [vi(a)];
|
|
4531
4538
|
}, e);
|
|
4532
4539
|
}
|
|
4533
|
-
const Vi = /* @__PURE__ */
|
|
4540
|
+
const Vi = /* @__PURE__ */ V({
|
|
4534
4541
|
name: "PageTranstion",
|
|
4535
4542
|
props: {
|
|
4536
4543
|
disabled: {
|
|
@@ -4556,36 +4563,36 @@ const Vi = /* @__PURE__ */ j({
|
|
|
4556
4563
|
}), {
|
|
4557
4564
|
wrapSSR: o,
|
|
4558
4565
|
hashId: i
|
|
4559
|
-
} = xi(a), u =
|
|
4560
|
-
const
|
|
4561
|
-
if (
|
|
4566
|
+
} = xi(a), u = f(() => [c(!1), `${a}-enter`, i.value].join(" ")), m = f(() => [c(!0), `${a}-leave`, i.value].join(" ")), c = (p) => {
|
|
4567
|
+
const B = je.preset.find((l) => e.name == l.name);
|
|
4568
|
+
if (B == null)
|
|
4562
4569
|
return "";
|
|
4563
|
-
let
|
|
4564
|
-
e.direction == null ?
|
|
4565
|
-
const
|
|
4566
|
-
return
|
|
4567
|
-
}, S = (
|
|
4568
|
-
if (
|
|
4569
|
-
return
|
|
4570
|
-
let
|
|
4571
|
-
return
|
|
4570
|
+
let y = "";
|
|
4571
|
+
e.direction == null ? y = B.directions[0] : y = B.directions.find((l) => l == e.direction) || "", y = y == null || y === "default" ? "" : y, y != "" && (y = p && e.reverse ? S(y, B.directions) : y, y = y[0].toUpperCase() + y.substring(1));
|
|
4572
|
+
const P = p ? "Out" : "In";
|
|
4573
|
+
return B.name + P + y;
|
|
4574
|
+
}, S = (p, B) => {
|
|
4575
|
+
if (p.length == 0 || p == "x" || p == "y")
|
|
4576
|
+
return p;
|
|
4577
|
+
let y = B.indexOf(p);
|
|
4578
|
+
return y = y % 2 == 1 ? y - 1 : y + 1, B[y];
|
|
4572
4579
|
};
|
|
4573
4580
|
return () => {
|
|
4574
|
-
var
|
|
4575
|
-
return e.disabled ? (
|
|
4581
|
+
var p;
|
|
4582
|
+
return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) : o(n(Ft, {
|
|
4576
4583
|
enterActiveClass: u.value,
|
|
4577
|
-
leaveActiveClass:
|
|
4584
|
+
leaveActiveClass: m.value
|
|
4578
4585
|
}, {
|
|
4579
4586
|
default: () => {
|
|
4580
|
-
var
|
|
4581
|
-
return [(
|
|
4587
|
+
var B;
|
|
4588
|
+
return [(B = t.default) == null ? void 0 : B.call(t)];
|
|
4582
4589
|
}
|
|
4583
4590
|
}));
|
|
4584
4591
|
};
|
|
4585
4592
|
}
|
|
4586
4593
|
});
|
|
4587
4594
|
export {
|
|
4588
|
-
|
|
4595
|
+
ht as BaseMenu,
|
|
4589
4596
|
ma as DefaultHeader,
|
|
4590
4597
|
Ni as GProLayout,
|
|
4591
4598
|
ke as GlobalFooter,
|
|
@@ -4607,5 +4614,5 @@ export {
|
|
|
4607
4614
|
Cn as handleThemeConfig,
|
|
4608
4615
|
Rn as provideProLayoutContext,
|
|
4609
4616
|
Mn as useContext,
|
|
4610
|
-
|
|
4617
|
+
ee as useProLayoutContext
|
|
4611
4618
|
};
|