@gx-design-vue/pro-layout 0.1.0-beta.27 → 0.1.0-beta.28
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 +1 -0
- package/dist/ProLayout.d.ts +9 -0
- package/dist/pro-layout.mjs +1233 -1204
- package/dist/pro-layout.umd.js +1 -1
- package/dist/props.d.ts +4 -0
- package/dist/route.d.ts +1 -0
- package/dist/utils/getMenuData.d.ts +2 -1
- package/dist/utils/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/pro-layout.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as H, createVNode as o, mergeProps as X, provide as
|
|
2
|
-
import { Spin as xe, Menu as ee, ConfigProvider as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { createFromIconfontCN as
|
|
5
|
-
import
|
|
6
|
-
import { createTypes as
|
|
7
|
-
import {
|
|
8
|
-
import { GPorWaterMark as
|
|
9
|
-
import { getSlot as K, isBoolean as
|
|
1
|
+
import { defineComponent as H, createVNode as o, mergeProps as X, provide as De, readonly as _t, inject as mt, resolveComponent as ft, computed as w, isVNode as ne, Fragment as q, toRefs as Ie, unref as U, createTextVNode as Q, ref as ve, reactive as ze, watch as le, withDirectives as Vt, vShow as At, getCurrentInstance as Et, onMounted as jt, onUpdated as Wt, onUnmounted as Kt, watchEffect as Ut, Transition as Xt } from "vue";
|
|
2
|
+
import { Spin as xe, Menu as ee, ConfigProvider as Ne, Layout as de, Drawer as be, Breadcrumb as Gt, Card as Yt, LayoutFooter as qt, Tabs as He, Dropdown as et, Tooltip as Oe, List as te, Switch as ht, TabPane as Zt, Select as he, message as Jt, Divider as Be, Alert as Qt, Button as en } from "ant-design-vue";
|
|
3
|
+
import { useRouter as _e, RouterLink as tn } from "vue-router";
|
|
4
|
+
import { createFromIconfontCN as nn, MenuUnfoldOutlined as an, MenuFoldOutlined as on, GithubOutlined as ln, EllipsisOutlined as rn, ReloadOutlined as sn, CloseOutlined as gt, CheckOutlined as yt, SettingOutlined as un, NotificationOutlined as dn, CopyOutlined as cn } from "@ant-design/icons-vue";
|
|
5
|
+
import mn, { themeConfig as A, Keyframe as d, useProStyle as Z, useProConfigContext as Me, useStyle as Ve, mergeToken as Ae, colorList as fn } from "@gx-design-vue/pro-provider";
|
|
6
|
+
import { createTypes as hn } from "vue-types";
|
|
7
|
+
import { cloneDeep as Ee, pick as ae, omit as je } from "lodash-es";
|
|
8
|
+
import { GPorWaterMark as gn } from "@gx-design-vue/pro-watermark";
|
|
9
|
+
import { getSlot as K, isBoolean as yn, getPrefixCls as ce, classNames as bt, getLevelData as bn, isArray as pn, isBrowser as vn, merge as xn } from "@gx-design-vue/pro-utils";
|
|
10
10
|
import { useMediaQuery as Cn, useState as pe, useMergedState as wn } from "@gx-design-vue/pro-hooks";
|
|
11
11
|
import { useWindowSize as Sn, useClipboard as In } from "@vueuse/core";
|
|
12
12
|
import On from "@gx-design-vue/scrollbar";
|
|
@@ -31,7 +31,7 @@ const Mn = /* @__PURE__ */ H({
|
|
|
31
31
|
}, null)
|
|
32
32
|
}), null)]);
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), pt = hn({
|
|
35
35
|
func: void 0,
|
|
36
36
|
bool: void 0,
|
|
37
37
|
string: void 0,
|
|
@@ -40,7 +40,7 @@ const Mn = /* @__PURE__ */ H({
|
|
|
40
40
|
object: void 0,
|
|
41
41
|
integer: void 0
|
|
42
42
|
});
|
|
43
|
-
|
|
43
|
+
pt.extend([{
|
|
44
44
|
name: "looseBool",
|
|
45
45
|
getter: !0,
|
|
46
46
|
type: Boolean,
|
|
@@ -55,7 +55,7 @@ vt.extend([{
|
|
|
55
55
|
getter: !0,
|
|
56
56
|
type: null
|
|
57
57
|
}]);
|
|
58
|
-
const L =
|
|
58
|
+
const L = pt, ie = {
|
|
59
59
|
theme: {
|
|
60
60
|
type: String,
|
|
61
61
|
default: A.theme
|
|
@@ -195,7 +195,7 @@ const L = vt, ie = {
|
|
|
195
195
|
onSelect: {
|
|
196
196
|
type: Function
|
|
197
197
|
}
|
|
198
|
-
},
|
|
198
|
+
}, G = {
|
|
199
199
|
...ie,
|
|
200
200
|
...We,
|
|
201
201
|
menuLoading: L.looseBool,
|
|
@@ -247,16 +247,16 @@ const L = vt, ie = {
|
|
|
247
247
|
onCollapse: {
|
|
248
248
|
type: Function
|
|
249
249
|
}
|
|
250
|
-
}, Rn = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/,
|
|
250
|
+
}, Rn = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/, vt = (e) => Rn.test(e);
|
|
251
251
|
function Bn(e) {
|
|
252
252
|
return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
var
|
|
254
|
+
function xt(e, t, n, a) {
|
|
255
|
+
var l, s, u, v, c, O, h, p, r, y, I, R, x, m, g, b, $, C, M, T, P, F, _, V, D, Y, f, S, B, k, z, j, E, W;
|
|
256
256
|
const i = { ...e };
|
|
257
|
-
return n === "light" ? (i.colorItemBg = (
|
|
257
|
+
return n === "light" ? (i.colorItemBg = (s = (l = t.layout) == null ? void 0 : l[a]) == null ? void 0 : s.colorBgMenu, i.colorSubItemBg = (v = (u = t.layout) == null ? void 0 : u[a]) == null ? void 0 : v.colorSubItemBg, i.colorItemBgSelected = (O = (c = t.layout) == null ? void 0 : c[a]) == null ? void 0 : O.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (p = (h = t.layout) == null ? void 0 : h[a]) == null ? void 0 : p.colorBgMenuItemSelected, i.colorItemText = (y = (r = t.layout) == null ? void 0 : r[a]) == null ? void 0 : y.colorTextMenu, i.colorItemTextHover = (R = (I = t.layout) == null ? void 0 : I[a]) == null ? void 0 : R.colorTextMenuHover, i.colorItemTextSelected = (m = (x = t.layout) == null ? void 0 : x[a]) == null ? void 0 : m.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (b = (g = t.layout) == null ? void 0 : g[a]) == null ? void 0 : b.colorTextMenuSelected, a === "sider" && (i.colorItemBgHover = (C = ($ = t.layout) == null ? void 0 : $[a]) == null ? void 0 : C.colorBgMenuItemHover)) : n === "dark" && (i.colorItemBg = (T = (M = t.layout) == null ? void 0 : M[a]) == null ? void 0 : T.colorDarkBgMenu, i.colorSubItemBg = (F = (P = t.layout) == null ? void 0 : P[a]) == null ? void 0 : F.colorDarkSubItemBg, i.colorItemBgSelected = (V = (_ = t.layout) == null ? void 0 : _[a]) == null ? void 0 : V.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (Y = (D = t.layout) == null ? void 0 : D[a]) == null ? void 0 : Y.colorDarkBgMenuItemSelected, i.colorItemText = (S = (f = t.layout) == null ? void 0 : f[a]) == null ? void 0 : S.colorDarkTextMenu, i.colorItemTextHover = (k = (B = t.layout) == null ? void 0 : B[a]) == null ? void 0 : k.colorDarkTextMenuHover, i.colorItemTextSelected = (j = (z = t.layout) == null ? void 0 : z[a]) == null ? void 0 : j.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (W = (E = t.layout) == null ? void 0 : E[a]) == null ? void 0 : W.colorDarkTextMenuSelected, a === "header" && (i.colorActiveBarHeight = 0)), i;
|
|
258
258
|
}
|
|
259
|
-
const kn = ["left", "right"], se = ["left", "right", "down", "up"], $n = ["downBig", "upBig", "leftBig", "rightBig"], Tn = ["topLeft", "bottomRight", "topRight", "bottomLeft"],
|
|
259
|
+
const kn = ["left", "right"], se = ["left", "right", "down", "up"], $n = ["downBig", "upBig", "leftBig", "rightBig"], Tn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Pn = ["downLeft", "upRight", "downRight", "upLeft"], Ke = {
|
|
260
260
|
preset: [
|
|
261
261
|
//预设动画配置
|
|
262
262
|
{ name: "back", alias: "渐近", directions: se },
|
|
@@ -268,16 +268,16 @@ const kn = ["left", "right"], se = ["left", "right", "down", "up"], $n = ["downB
|
|
|
268
268
|
},
|
|
269
269
|
{ name: "flip", alias: "翻转", directions: ["x", "y"] },
|
|
270
270
|
{ name: "lightSpeed", alias: "光速", directions: kn },
|
|
271
|
-
{ name: "rotate", alias: "旋转", directions:
|
|
271
|
+
{ name: "rotate", alias: "旋转", directions: Pn.concat("default") },
|
|
272
272
|
{ name: "roll", alias: "翻滚", directions: ["default"] },
|
|
273
273
|
{ name: "zoom", alias: "缩放", directions: se.concat("default") },
|
|
274
274
|
{ name: "slide", alias: "滑动", directions: se }
|
|
275
275
|
]
|
|
276
276
|
};
|
|
277
|
-
function
|
|
277
|
+
function Fn(e, t) {
|
|
278
278
|
return t != null && t.isNamed && (t == null ? void 0 : t.target) || e;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Ln(e) {
|
|
281
281
|
return e.map((t) => {
|
|
282
282
|
var a;
|
|
283
283
|
const n = { ...t };
|
|
@@ -285,60 +285,74 @@ function Pn(e) {
|
|
|
285
285
|
return null;
|
|
286
286
|
if (n && (n != null && n.children)) {
|
|
287
287
|
if (n.children.some((i) => {
|
|
288
|
-
var
|
|
289
|
-
return i && i.name && !((
|
|
288
|
+
var l;
|
|
289
|
+
return i && i.name && !((l = i.meta) != null && l.hideInMenu);
|
|
290
290
|
}))
|
|
291
291
|
return {
|
|
292
|
-
...
|
|
293
|
-
children:
|
|
292
|
+
...n,
|
|
293
|
+
children: Ln(n.children)
|
|
294
294
|
};
|
|
295
295
|
delete n.children;
|
|
296
296
|
}
|
|
297
297
|
return n;
|
|
298
298
|
}).filter((t) => t);
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Dn(e) {
|
|
301
301
|
return e.map((t) => {
|
|
302
302
|
var a;
|
|
303
303
|
const n = { ...t };
|
|
304
|
-
return !n.name || (a = n.meta) != null && a.hideInMenu ? null : (n.linkPath =
|
|
304
|
+
return !n.name || (a = n.meta) != null && a.hideInMenu ? null : (n.linkPath = Nn(n.children || []), n.children && delete n.children, n);
|
|
305
305
|
}).filter((t) => t);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function zn(e, t) {
|
|
308
308
|
const n = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`, a = e.find((i) => {
|
|
309
|
-
var
|
|
310
|
-
return (
|
|
309
|
+
var l;
|
|
310
|
+
return (l = i.meta) != null && l.isNamed ? i.path.includes(n) : i.path === n;
|
|
311
311
|
});
|
|
312
312
|
return t === void 0 ? [] : (a == null ? void 0 : a.children) || [];
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Nn(e) {
|
|
315
315
|
let t = "";
|
|
316
316
|
const n = function(a) {
|
|
317
317
|
let i = "";
|
|
318
|
-
return a.children && a.children.length > 0 ? i = n(a.children[0]) : i =
|
|
318
|
+
return a.children && a.children.length > 0 ? i = n(a.children[0]) : i = a.path, i;
|
|
319
319
|
};
|
|
320
320
|
if (e.length > 0 && e[0].children && e[0].children.length > 0)
|
|
321
321
|
t = n(e[0].children[0]);
|
|
322
322
|
else {
|
|
323
323
|
const a = e.length > 0 ? e[0] : void 0;
|
|
324
|
-
t =
|
|
324
|
+
t = (a == null ? void 0 : a.path) || "";
|
|
325
325
|
}
|
|
326
326
|
return t;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
|
|
328
|
+
function bl(e, t) {
|
|
329
|
+
var a, i;
|
|
330
|
+
const n = ((i = (a = e.find((l) => l.path === t)) == null ? void 0 : a.meta) == null ? void 0 : i.key) || "";
|
|
331
|
+
if (n) {
|
|
332
|
+
const l = [], s = n.split("-");
|
|
333
|
+
for (let u = 0; u < s.length; u += 1)
|
|
334
|
+
l.push(Ee(s).splice(0, u + 1).join("-"));
|
|
335
|
+
return e.filter((u) => l.some((v) => {
|
|
336
|
+
var c;
|
|
337
|
+
return v === ((c = u == null ? void 0 : u.meta) == null ? void 0 : c.key) || "";
|
|
338
|
+
}));
|
|
339
|
+
}
|
|
340
|
+
return [];
|
|
330
341
|
}
|
|
331
342
|
function Hn(e) {
|
|
343
|
+
return e.layout === "mix" && (e.fixSiderbar = !0, e.fixedHeader = !0, e.splitMenus = !0), e.layout === "simple" && (e.splitMenus = !1, e.showTabsBar = !1), e.layout === "side" && (e.splitMenus = !1), e.layout === "wide" && (e.splitMenus = !1, e.fixSiderbar = !1, e.fixedHeader = !0, e.showTabsBar = !1, e.fixedMultiTab = !1), { ...e };
|
|
344
|
+
}
|
|
345
|
+
function _n(e) {
|
|
332
346
|
const t = ["showTabsBar", "fixedMultiTab", "fixSiderbar", "fixedHeader", "splitMenus"];
|
|
333
|
-
let a = Object.keys(e).reduce((i,
|
|
334
|
-
return a =
|
|
347
|
+
let a = Object.keys(e).reduce((i, l) => (i[l] = !1, i), {});
|
|
348
|
+
return a = Vn(a, t), e.layout === "mix" && (a.fixSiderbar = !0, a.fixedHeader = !0), e.layout === "side" && (a.splitMenus = !0), e.layout === "simple" && (a.splitMenus = !0, a.fixedHeader = !0, a.showTabsBar = !0, a.fixedMultiTab = !0), e.layout === "wide" && (a.splitMenus = !0, a.fixedHeader = !0, a.fixSiderbar = !0, a.showTabsBar = !0, a.fixedMultiTab = !0), a;
|
|
335
349
|
}
|
|
336
|
-
function
|
|
350
|
+
function Vn(e, t) {
|
|
337
351
|
return {
|
|
338
352
|
...t.reduce((n, a) => ({ ...n, [a]: e[a] }), {})
|
|
339
353
|
};
|
|
340
354
|
}
|
|
341
|
-
const
|
|
355
|
+
const An = (e = Symbol(), t = "Context.Provider") => H({
|
|
342
356
|
name: t,
|
|
343
357
|
props: {
|
|
344
358
|
value: {
|
|
@@ -347,19 +361,19 @@ const Vn = (e = Symbol(), t = "Context.Provider") => H({
|
|
|
347
361
|
}
|
|
348
362
|
},
|
|
349
363
|
setup(a, { slots: i }) {
|
|
350
|
-
return
|
|
351
|
-
var
|
|
352
|
-
return (
|
|
364
|
+
return De(e, _t(a.value)), () => {
|
|
365
|
+
var l;
|
|
366
|
+
return (l = i.default) == null ? void 0 : l.call(i);
|
|
353
367
|
};
|
|
354
368
|
}
|
|
355
|
-
}),
|
|
356
|
-
|
|
357
|
-
}, J = () =>
|
|
358
|
-
|
|
369
|
+
}), En = (e = Symbol(), t) => mt(e, t || {}), Ue = Symbol("pro-layout-context"), jn = () => An(Ue, "ProLayoutContext.Provider"), Wn = (e) => {
|
|
370
|
+
De(Ue, e);
|
|
371
|
+
}, J = () => En(Ue);
|
|
372
|
+
jn();
|
|
359
373
|
function nt(e) {
|
|
360
374
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
361
375
|
}
|
|
362
|
-
const
|
|
376
|
+
const Ce = (e) => {
|
|
363
377
|
const {
|
|
364
378
|
icon: t,
|
|
365
379
|
iconType: n,
|
|
@@ -368,17 +382,17 @@ const we = (e) => {
|
|
|
368
382
|
if (!t)
|
|
369
383
|
return null;
|
|
370
384
|
if (typeof t == "string" && t !== "") {
|
|
371
|
-
if (
|
|
385
|
+
if (vt(t) || Bn(t))
|
|
372
386
|
return o("img", {
|
|
373
387
|
src: t,
|
|
374
388
|
alt: "icon",
|
|
375
389
|
class: `${e.className}-icon-image`
|
|
376
390
|
}, null);
|
|
377
391
|
if (n === 1) {
|
|
378
|
-
const
|
|
392
|
+
const l = nn({
|
|
379
393
|
scriptUrl: a || A.iconfontUrl
|
|
380
394
|
});
|
|
381
|
-
return a ? o(
|
|
395
|
+
return a ? o(l, {
|
|
382
396
|
type: t
|
|
383
397
|
}, null) : o("i", {
|
|
384
398
|
class: `iconfont ${t} ${e.className}-icon`
|
|
@@ -388,9 +402,9 @@ const we = (e) => {
|
|
|
388
402
|
if (ne(t))
|
|
389
403
|
return t;
|
|
390
404
|
const i = ft(t);
|
|
391
|
-
return typeof
|
|
405
|
+
return typeof Ce == "function" && o(i, null, null) || null;
|
|
392
406
|
};
|
|
393
|
-
|
|
407
|
+
Ce.props = {
|
|
394
408
|
icon: {
|
|
395
409
|
type: [String, Function, Object]
|
|
396
410
|
},
|
|
@@ -398,98 +412,98 @@ we.props = {
|
|
|
398
412
|
className: String,
|
|
399
413
|
iconfontUrl: String
|
|
400
414
|
};
|
|
401
|
-
const
|
|
415
|
+
const Ct = /* @__PURE__ */ H({
|
|
402
416
|
name: "BaseMenu",
|
|
403
417
|
props: We,
|
|
404
418
|
setup(e) {
|
|
405
|
-
const t =
|
|
419
|
+
const t = _e(), {
|
|
406
420
|
getPrefixCls: n
|
|
407
421
|
} = J(), a = n({
|
|
408
422
|
suffixCls: "menu-item",
|
|
409
423
|
isPor: !0
|
|
410
|
-
}), i = (
|
|
411
|
-
var
|
|
412
|
-
(
|
|
413
|
-
},
|
|
414
|
-
var
|
|
415
|
-
(
|
|
416
|
-
},
|
|
417
|
-
var
|
|
418
|
-
(
|
|
419
|
-
},
|
|
420
|
-
var
|
|
421
|
-
const I =
|
|
422
|
-
((
|
|
423
|
-
},
|
|
424
|
-
var
|
|
425
|
-
if (Array.isArray(
|
|
426
|
-
let
|
|
424
|
+
}), i = (r) => {
|
|
425
|
+
var y;
|
|
426
|
+
(y = e.onOpenKeys) == null || y.call(e, r);
|
|
427
|
+
}, l = (r) => {
|
|
428
|
+
var y;
|
|
429
|
+
(y = e.onSelect) == null || y.call(e, r.selectedKeys);
|
|
430
|
+
}, s = (r) => {
|
|
431
|
+
var y;
|
|
432
|
+
(y = e.onClick) == null || y.call(e, ...r);
|
|
433
|
+
}, u = (r, y) => {
|
|
434
|
+
var x;
|
|
435
|
+
const I = r.target || "", R = vt(I);
|
|
436
|
+
((x = t.currentRoute.value) == null ? void 0 : x.fullPath) !== y.to && R && I && r.targetStatus === 1 && window.open(I);
|
|
437
|
+
}, v = ft("router-link"), c = (r = []) => r.map((y) => O(y)).filter((y) => y), O = (r) => {
|
|
438
|
+
var R, x, m, g, b, $, C, M, T;
|
|
439
|
+
if (Array.isArray(r.children) && r.children.length > 0 && !((R = r == null ? void 0 : r.meta) != null && R.hideInMenu) && !((x = r == null ? void 0 : r.meta) != null && x.hideChildrenInMenu)) {
|
|
440
|
+
let P;
|
|
427
441
|
if (e.subMenuItemRender)
|
|
428
442
|
return e.subMenuItemRender({
|
|
429
|
-
item:
|
|
430
|
-
children:
|
|
443
|
+
item: r,
|
|
444
|
+
children: c(r.children)
|
|
431
445
|
});
|
|
432
|
-
const
|
|
446
|
+
const F = (m = r.meta) == null ? void 0 : m.title, _ = (g = r.meta) != null && g.icon ? o("span", {
|
|
433
447
|
class: "gx-pro-sider-menu-item"
|
|
434
448
|
}, [o("span", {
|
|
435
449
|
class: "gx-pro-sider-menu-item-title"
|
|
436
|
-
}, [
|
|
450
|
+
}, [F])]) : o("span", {
|
|
437
451
|
class: "gx-pro-sider-menu-item"
|
|
438
|
-
}, [
|
|
439
|
-
return o(
|
|
452
|
+
}, [F]), V = ((b = r.meta) == null ? void 0 : b.type) === "group", D = V ? ee.ItemGroup : ee.SubMenu;
|
|
453
|
+
return o(D, {
|
|
440
454
|
title: _,
|
|
441
|
-
key:
|
|
442
|
-
icon:
|
|
455
|
+
key: r.path,
|
|
456
|
+
icon: V ? null : o(Ce, {
|
|
443
457
|
className: a,
|
|
444
|
-
icon: (
|
|
458
|
+
icon: ($ = r.meta) == null ? void 0 : $.icon,
|
|
445
459
|
iconfontUrl: e.iconfontUrl,
|
|
446
|
-
iconType: (
|
|
460
|
+
iconType: (C = r.meta) == null ? void 0 : C.iconType
|
|
447
461
|
}, null)
|
|
448
|
-
}, nt(
|
|
449
|
-
default: () => [
|
|
462
|
+
}, nt(P = c(r.children)) ? P : {
|
|
463
|
+
default: () => [P]
|
|
450
464
|
});
|
|
451
465
|
}
|
|
452
|
-
const [
|
|
466
|
+
const [y, I] = h(r);
|
|
453
467
|
return e.menuItemRender && e.menuItemRender({
|
|
454
|
-
item:
|
|
455
|
-
title:
|
|
468
|
+
item: r,
|
|
469
|
+
title: y,
|
|
456
470
|
icon: I
|
|
457
471
|
}) || o(ee.Item, {
|
|
458
|
-
disabled: (
|
|
459
|
-
danger: (
|
|
460
|
-
key:
|
|
472
|
+
disabled: (M = r.meta) == null ? void 0 : M.disabled,
|
|
473
|
+
danger: (T = r.meta) == null ? void 0 : T.danger,
|
|
474
|
+
key: r.path,
|
|
461
475
|
icon: I
|
|
462
|
-
}, nt(
|
|
463
|
-
default: () => [
|
|
476
|
+
}, nt(y) ? y : {
|
|
477
|
+
default: () => [y]
|
|
464
478
|
});
|
|
465
|
-
},
|
|
466
|
-
var
|
|
467
|
-
const
|
|
468
|
-
...
|
|
469
|
-
}, I =
|
|
470
|
-
to:
|
|
479
|
+
}, h = (r) => {
|
|
480
|
+
var b, $, C, M, T;
|
|
481
|
+
const y = {
|
|
482
|
+
...r.meta
|
|
483
|
+
}, I = y.targetStatus === 1 && y.target ? "a" : v, R = {
|
|
484
|
+
to: r.linkPath || r.path || ""
|
|
471
485
|
};
|
|
472
|
-
|
|
473
|
-
const
|
|
486
|
+
R.to === "/live/list/operation/:id" && (R.to = "/live/list/operation/add");
|
|
487
|
+
const x = (b = r.meta) == null ? void 0 : b.title, m = ($ = r.meta) != null && $.icon ? o(I, X(R, {
|
|
474
488
|
class: "gx-pro-sider-menu-item",
|
|
475
|
-
onClick: () =>
|
|
489
|
+
onClick: () => u(y, R)
|
|
476
490
|
}), {
|
|
477
491
|
default: () => [o("span", {
|
|
478
492
|
class: "gx-pro-sider-menu-item-title"
|
|
479
|
-
}, [
|
|
480
|
-
}) : o(I, X(
|
|
493
|
+
}, [x])]
|
|
494
|
+
}) : o(I, X(R, {
|
|
481
495
|
class: "gx-pro-sider-menu-item",
|
|
482
|
-
onClick: () =>
|
|
496
|
+
onClick: () => u(y, R)
|
|
483
497
|
}), {
|
|
484
|
-
default: () => [o("span", null, [
|
|
485
|
-
}),
|
|
498
|
+
default: () => [o("span", null, [x])]
|
|
499
|
+
}), g = ((C = r.meta) == null ? void 0 : C.icon) && o(Ce, {
|
|
486
500
|
className: a,
|
|
487
|
-
icon: (
|
|
501
|
+
icon: (M = r.meta) == null ? void 0 : M.icon,
|
|
488
502
|
iconfontUrl: e.iconfontUrl,
|
|
489
|
-
iconType: (
|
|
503
|
+
iconType: (T = r.meta) == null ? void 0 : T.iconType
|
|
490
504
|
}, null) || void 0;
|
|
491
|
-
return [
|
|
492
|
-
},
|
|
505
|
+
return [m, g];
|
|
506
|
+
}, p = w(() => c(e.menuData));
|
|
493
507
|
return () => o(ee, X({
|
|
494
508
|
key: "Menu",
|
|
495
509
|
inlineIndent: 16,
|
|
@@ -498,13 +512,13 @@ const wt = /* @__PURE__ */ H({
|
|
|
498
512
|
openKeys: e.openKeys === !1 ? [] : e.openKeys,
|
|
499
513
|
selectedKeys: e.selectedKeys || [],
|
|
500
514
|
onOpenChange: i,
|
|
501
|
-
onSelect:
|
|
502
|
-
onClick:
|
|
515
|
+
onSelect: l,
|
|
516
|
+
onClick: s
|
|
503
517
|
}, e.menuProps), {
|
|
504
|
-
default: () => [
|
|
518
|
+
default: () => [p.value]
|
|
505
519
|
});
|
|
506
520
|
}
|
|
507
|
-
}),
|
|
521
|
+
}), wt = new d("pro-layout-title-hide", {
|
|
508
522
|
"0%": { display: "none", opacity: 0 },
|
|
509
523
|
"99%": {
|
|
510
524
|
display: "none",
|
|
@@ -514,7 +528,7 @@ const wt = /* @__PURE__ */ H({
|
|
|
514
528
|
display: "block",
|
|
515
529
|
opacity: 1
|
|
516
530
|
}
|
|
517
|
-
}),
|
|
531
|
+
}), Kn = (e) => {
|
|
518
532
|
const t = `${e.antCls}-menu`;
|
|
519
533
|
return {
|
|
520
534
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
@@ -525,8 +539,8 @@ const wt = /* @__PURE__ */ H({
|
|
|
525
539
|
}
|
|
526
540
|
}
|
|
527
541
|
};
|
|
528
|
-
},
|
|
529
|
-
var t, n, a, i,
|
|
542
|
+
}, Un = (e) => {
|
|
543
|
+
var t, n, a, i, l, s, u, v, c, O, h, p;
|
|
530
544
|
return {
|
|
531
545
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
532
546
|
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
@@ -559,7 +573,7 @@ const wt = /* @__PURE__ */ H({
|
|
|
559
573
|
background: (i = (a = e.layout) == null ? void 0 : a.sider) == null ? void 0 : i.colorBgMenu,
|
|
560
574
|
boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
|
|
561
575
|
[`${e.componentCls}-footer`]: {
|
|
562
|
-
color: (
|
|
576
|
+
color: (s = (l = e.layout) == null ? void 0 : l.sider) == null ? void 0 : s.colorTextMenu
|
|
563
577
|
}
|
|
564
578
|
},
|
|
565
579
|
"&-links": {
|
|
@@ -575,10 +589,10 @@ const wt = /* @__PURE__ */ H({
|
|
|
575
589
|
background: "transparent"
|
|
576
590
|
},
|
|
577
591
|
"&-footer": {
|
|
578
|
-
color: (
|
|
592
|
+
color: (v = (u = e.layout) == null ? void 0 : u.sider) == null ? void 0 : v.colorDarkTextMenu,
|
|
579
593
|
paddingBlockEnd: 16,
|
|
580
594
|
fontSize: e.fontSize,
|
|
581
|
-
animationName:
|
|
595
|
+
animationName: wt,
|
|
582
596
|
animationDuration: ".4s",
|
|
583
597
|
animationTimingFunction: "ease"
|
|
584
598
|
}
|
|
@@ -590,13 +604,13 @@ const wt = /* @__PURE__ */ H({
|
|
|
590
604
|
zIndex: "100",
|
|
591
605
|
height: "100%",
|
|
592
606
|
"&-mix": {
|
|
593
|
-
height: `calc(100% - ${((
|
|
594
|
-
insetBlockStart: `${((
|
|
607
|
+
height: `calc(100% - ${((O = (c = e.layout) == null ? void 0 : c.header) == null ? void 0 : O.heightLayoutHeader) || A.headerHeight}px)`,
|
|
608
|
+
insetBlockStart: `${((p = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : p.heightLayoutHeader) || A.headerHeight}px`
|
|
595
609
|
}
|
|
596
610
|
}
|
|
597
611
|
}
|
|
598
612
|
};
|
|
599
|
-
},
|
|
613
|
+
}, Xn = (e) => ({
|
|
600
614
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
601
615
|
[`${e.antCls}-menu`]: {
|
|
602
616
|
[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]: {
|
|
@@ -605,7 +619,7 @@ const wt = /* @__PURE__ */ H({
|
|
|
605
619
|
}
|
|
606
620
|
}
|
|
607
621
|
}
|
|
608
|
-
}),
|
|
622
|
+
}), Gn = (e) => ({
|
|
609
623
|
[`${e.proComponentsCls}-sider`]: {
|
|
610
624
|
"&-light": {
|
|
611
625
|
[`${e.proComponentsCls}-sider-logo`]: {
|
|
@@ -639,7 +653,7 @@ const wt = /* @__PURE__ */ H({
|
|
|
639
653
|
marginInlineEnd: 0,
|
|
640
654
|
marginInlineStart: 12,
|
|
641
655
|
color: e.colorWhite,
|
|
642
|
-
animationName:
|
|
656
|
+
animationName: wt,
|
|
643
657
|
animationDuration: ".2s",
|
|
644
658
|
fontWeight: 600,
|
|
645
659
|
fontSize: 18,
|
|
@@ -664,21 +678,21 @@ const wt = /* @__PURE__ */ H({
|
|
|
664
678
|
}
|
|
665
679
|
}
|
|
666
680
|
}
|
|
667
|
-
}),
|
|
681
|
+
}), St = (e, t) => e ? typeof e == "string" ? o("img", {
|
|
668
682
|
src: e,
|
|
669
683
|
alt: "logo",
|
|
670
684
|
style: t
|
|
671
|
-
}, null) : typeof e == "function" ? e() : e : null,
|
|
685
|
+
}, null) : typeof e == "function" ? e() : e : null, Yn = (e, t = "menuHeaderRender") => {
|
|
672
686
|
const {
|
|
673
687
|
logo: n,
|
|
674
688
|
logoStyle: a,
|
|
675
689
|
title: i,
|
|
676
|
-
layout:
|
|
677
|
-
} = e,
|
|
678
|
-
if (
|
|
690
|
+
layout: l
|
|
691
|
+
} = e, s = e[t || ""];
|
|
692
|
+
if (s === !1)
|
|
679
693
|
return null;
|
|
680
|
-
const
|
|
681
|
-
return typeof
|
|
694
|
+
const u = St(n, a), v = i && o("h1", null, [i]);
|
|
695
|
+
return typeof s == "function" ? s(u, e.collapsed ? null : v, e) : o(q, null, [u || null, e.collapsed && l === "side" ? null : v]);
|
|
682
696
|
}, Xe = /* @__PURE__ */ H({
|
|
683
697
|
name: "LogoContent",
|
|
684
698
|
props: oe,
|
|
@@ -690,32 +704,32 @@ const wt = /* @__PURE__ */ H({
|
|
|
690
704
|
isPor: !0
|
|
691
705
|
})), {
|
|
692
706
|
wrapSSR: i,
|
|
693
|
-
hashId:
|
|
694
|
-
} = Z("ProLayoutLogo", [
|
|
707
|
+
hashId: l
|
|
708
|
+
} = Z("ProLayoutLogo", [Gn]), s = w(() => Yn(e, e.renderKey));
|
|
695
709
|
return () => i(o("div", {
|
|
696
710
|
id: "logo",
|
|
697
711
|
class: {
|
|
698
|
-
[`${
|
|
712
|
+
[`${l.value}`]: !0,
|
|
699
713
|
[`${a.value}-logo`]: !0,
|
|
700
714
|
[`${a.value}-logo-collapsed`]: !!e.collapsed
|
|
701
715
|
},
|
|
702
716
|
onClick: () => {
|
|
703
|
-
var
|
|
704
|
-
return (
|
|
717
|
+
var u;
|
|
718
|
+
return (u = e.onMenuHeaderClick) == null ? void 0 : u.call(e);
|
|
705
719
|
}
|
|
706
|
-
}, [o("a", null, [
|
|
720
|
+
}, [o("a", null, [s.value || null])]));
|
|
707
721
|
}
|
|
708
722
|
});
|
|
709
723
|
Xe.inheritAttrs = !1;
|
|
710
|
-
function
|
|
724
|
+
function qn(e) {
|
|
711
725
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
712
726
|
}
|
|
713
727
|
const {
|
|
714
|
-
Sider:
|
|
728
|
+
Sider: Zn
|
|
715
729
|
} = de, {
|
|
716
730
|
Item: at
|
|
717
|
-
} = ee,
|
|
718
|
-
props:
|
|
731
|
+
} = ee, It = (e) => e ? o(an, null, null) : o(on, null, null), ot = /* @__PURE__ */ H({
|
|
732
|
+
props: G,
|
|
719
733
|
inheritAttrs: !1,
|
|
720
734
|
setup(e) {
|
|
721
735
|
const {
|
|
@@ -723,54 +737,54 @@ const {
|
|
|
723
737
|
selectedKeys: n,
|
|
724
738
|
flatMenuData: a,
|
|
725
739
|
menuData: i,
|
|
726
|
-
openKeys:
|
|
740
|
+
openKeys: l
|
|
727
741
|
} = J(), {
|
|
728
|
-
token:
|
|
729
|
-
} =
|
|
730
|
-
theme:
|
|
731
|
-
layout:
|
|
732
|
-
isMobile:
|
|
733
|
-
menuLoading:
|
|
734
|
-
breakpoint:
|
|
735
|
-
fixSiderbar:
|
|
736
|
-
collapsed:
|
|
737
|
-
siderWidth:
|
|
742
|
+
token: s
|
|
743
|
+
} = Me(), {
|
|
744
|
+
theme: u,
|
|
745
|
+
layout: v,
|
|
746
|
+
isMobile: c,
|
|
747
|
+
menuLoading: O,
|
|
748
|
+
breakpoint: h,
|
|
749
|
+
fixSiderbar: p,
|
|
750
|
+
collapsed: r,
|
|
751
|
+
siderWidth: y,
|
|
738
752
|
collapsedWidth: I,
|
|
739
|
-
menuExtraRender:
|
|
740
|
-
menuContentRender:
|
|
741
|
-
menuFooterRender:
|
|
742
|
-
collapsedButtonRender:
|
|
743
|
-
links:
|
|
744
|
-
} =
|
|
753
|
+
menuExtraRender: R,
|
|
754
|
+
menuContentRender: x,
|
|
755
|
+
menuFooterRender: m,
|
|
756
|
+
collapsedButtonRender: g,
|
|
757
|
+
links: b
|
|
758
|
+
} = Ie(e), $ = t({
|
|
745
759
|
suffixCls: "sider",
|
|
746
760
|
isPor: !0
|
|
747
761
|
}), {
|
|
748
|
-
wrapSSR:
|
|
749
|
-
hashId:
|
|
750
|
-
} = Z("ProLayoutSiderMenu", [
|
|
762
|
+
wrapSSR: C,
|
|
763
|
+
hashId: M
|
|
764
|
+
} = Z("ProLayoutSiderMenu", [Kn, Un, Xn], $), T = w(() => e.layout === "wide"), P = w(() => e.layout === "mix" && !e.isMobile && e.splitMenus), F = w(() => v.value === "side" || v.value === "simple"), _ = w(() => (e.layout === "mix" || T.value) && "light" || u.value), V = w(() => e.collapsed ? e.collapsedWidth : e.siderWidth), D = w(() => [M.value, $, c.value ? "shadow" : null, `${$}-${_.value}`, p.value && e.layout !== "wide" ? `${$}-fixed` : null]), Y = w(() => {
|
|
751
765
|
var B;
|
|
752
|
-
return typeof
|
|
753
|
-
}),
|
|
754
|
-
var
|
|
766
|
+
return typeof b.value == "function" ? (B = b.value) == null ? void 0 : B.call(b) : b.value;
|
|
767
|
+
}), f = w(() => g.value !== !1 ? g.value || It : !1), S = (B) => {
|
|
768
|
+
var k;
|
|
755
769
|
if (e.onSelect) {
|
|
756
|
-
if (U(
|
|
757
|
-
e.onSelect([(
|
|
770
|
+
if (U(P)) {
|
|
771
|
+
e.onSelect([(k = n == null ? void 0 : n.value) == null ? void 0 : k[0], ...B]);
|
|
758
772
|
return;
|
|
759
773
|
}
|
|
760
774
|
e.onSelect(B);
|
|
761
775
|
}
|
|
762
776
|
};
|
|
763
777
|
return () => {
|
|
764
|
-
var
|
|
765
|
-
const B =
|
|
766
|
-
drawer:
|
|
767
|
-
}, e), null) : null,
|
|
768
|
-
class: `${
|
|
778
|
+
var j;
|
|
779
|
+
const B = F.value ? o(Xe, X({
|
|
780
|
+
drawer: c.value
|
|
781
|
+
}, e), null) : null, k = R.value && ((j = R.value) == null ? void 0 : j.call(R, e)), z = o(Ct, {
|
|
782
|
+
class: `${$}-menu ${M.value}`,
|
|
769
783
|
theme: _.value,
|
|
770
784
|
mode: "inline",
|
|
771
|
-
menuData:
|
|
785
|
+
menuData: P.value ? a.value : i.value,
|
|
772
786
|
iconfontUrl: e.iconfontUrl,
|
|
773
|
-
openKeys:
|
|
787
|
+
openKeys: l.value,
|
|
774
788
|
selectedKeys: n.value,
|
|
775
789
|
menuItemRender: e.menuItemRender,
|
|
776
790
|
subMenuItemRender: e.subMenuItemRender,
|
|
@@ -779,109 +793,109 @@ const {
|
|
|
779
793
|
width: "100%"
|
|
780
794
|
},
|
|
781
795
|
onOpenKeys: (E) => {
|
|
782
|
-
var
|
|
783
|
-
return e.onOpenKeys && ((
|
|
796
|
+
var W;
|
|
797
|
+
return e.onOpenKeys && ((W = e.onOpenKeys) == null ? void 0 : W.call(e, E));
|
|
784
798
|
},
|
|
785
|
-
onSelect:
|
|
799
|
+
onSelect: S
|
|
786
800
|
}, null);
|
|
787
|
-
return
|
|
801
|
+
return P.value && U(a.value).length === 0 || i.value.length === 0 ? null : C(o(Ne, {
|
|
788
802
|
theme: {
|
|
789
803
|
components: {
|
|
790
|
-
Menu:
|
|
804
|
+
Menu: xt({
|
|
791
805
|
radiusItem: 4,
|
|
792
806
|
colorActiveBarWidth: 0,
|
|
793
807
|
colorActiveBarHeight: 0,
|
|
794
808
|
colorActiveBarBorderSize: 0
|
|
795
809
|
// 主题颜色
|
|
796
|
-
}, (
|
|
810
|
+
}, (s == null ? void 0 : s.value) || {}, _.value, "sider")
|
|
797
811
|
}
|
|
798
812
|
}
|
|
799
813
|
}, {
|
|
800
|
-
default: () => [
|
|
814
|
+
default: () => [p.value && o("div", {
|
|
801
815
|
style: {
|
|
802
|
-
width: `${
|
|
816
|
+
width: `${V.value}px`,
|
|
803
817
|
overflow: "hidden",
|
|
804
|
-
flex: `0 0 ${
|
|
805
|
-
maxWidth: `${
|
|
806
|
-
minWidth: `${
|
|
818
|
+
flex: `0 0 ${V.value}px`,
|
|
819
|
+
maxWidth: `${V.value}px`,
|
|
820
|
+
minWidth: `${V.value}px`,
|
|
807
821
|
transition: "background-color 0.2s, min-width 0.2s, max-width 0.2s"
|
|
808
822
|
}
|
|
809
|
-
}, null), o(
|
|
823
|
+
}, null), o(Zn, {
|
|
810
824
|
collapsible: !0,
|
|
811
825
|
trigger: null,
|
|
812
|
-
class:
|
|
826
|
+
class: D.value,
|
|
813
827
|
style: {
|
|
814
828
|
overflow: "hidden",
|
|
815
|
-
zIndex:
|
|
816
|
-
paddingTop:
|
|
829
|
+
zIndex: p.value ? 101 : void 0,
|
|
830
|
+
paddingTop: F.value || e.isMobile || T.value ? 0 : `${e.headerHeight}px`,
|
|
817
831
|
top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
|
|
818
832
|
height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
|
|
819
833
|
},
|
|
820
834
|
theme: _.value,
|
|
821
|
-
breakpoint:
|
|
822
|
-
collapsed:
|
|
823
|
-
width:
|
|
835
|
+
breakpoint: h.value || void 0,
|
|
836
|
+
collapsed: r.value,
|
|
837
|
+
width: y.value,
|
|
824
838
|
collapsedWidth: I.value
|
|
825
839
|
}, {
|
|
826
840
|
default: () => {
|
|
827
|
-
var E,
|
|
828
|
-
return [
|
|
829
|
-
class: ["gx-pro-sider-loading",
|
|
841
|
+
var E, W;
|
|
842
|
+
return [O.value && o("div", {
|
|
843
|
+
class: ["gx-pro-sider-loading", M.value]
|
|
830
844
|
}, [o(xe, {
|
|
831
|
-
spinning:
|
|
832
|
-
}, null)]), B || null,
|
|
845
|
+
spinning: O.value
|
|
846
|
+
}, null)]), B || null, k && !e.collapsed && o("div", {
|
|
833
847
|
class: {
|
|
834
|
-
[`${
|
|
835
|
-
[`${
|
|
836
|
-
[`${
|
|
848
|
+
[`${M.value}`]: !0,
|
|
849
|
+
[`${$}-extra`]: !0,
|
|
850
|
+
[`${$}-extra-no-logo`]: !B
|
|
837
851
|
}
|
|
838
|
-
}, [
|
|
852
|
+
}, [k]), o("div", {
|
|
839
853
|
style: {
|
|
840
854
|
flex: "1 1 0%",
|
|
841
855
|
overflow: "hidden auto"
|
|
842
856
|
}
|
|
843
|
-
}, [
|
|
844
|
-
class: `${
|
|
857
|
+
}, [x.value && ((E = x.value) == null ? void 0 : E.call(x, e, z)) || z]), e.layout !== "wide" && o("div", {
|
|
858
|
+
class: `${$}-links ${M.value}`
|
|
845
859
|
}, [o(ee, {
|
|
846
860
|
theme: _.value,
|
|
847
861
|
inlineIndent: 16,
|
|
848
|
-
class: `${
|
|
862
|
+
class: `${$}-link-menu ${M.value}`,
|
|
849
863
|
selectedKeys: [],
|
|
850
864
|
openKeys: [],
|
|
851
865
|
mode: "inline"
|
|
852
866
|
}, {
|
|
853
|
-
default: () => [(
|
|
854
|
-
class: `${
|
|
867
|
+
default: () => [(Y.value || []).map((N, fe) => o(at, {
|
|
868
|
+
class: `${$}-link ${M.value}`,
|
|
855
869
|
key: fe
|
|
856
|
-
},
|
|
857
|
-
default: () => [
|
|
858
|
-
})),
|
|
859
|
-
class: `${
|
|
870
|
+
}, qn(N) ? N : {
|
|
871
|
+
default: () => [N]
|
|
872
|
+
})), f.value && !c.value && o(at, {
|
|
873
|
+
class: `${$}-collapsed-button ${M.value}`,
|
|
860
874
|
title: !1,
|
|
861
875
|
key: "collapsed",
|
|
862
876
|
onClick: () => {
|
|
863
|
-
var
|
|
864
|
-
e.onCollapse && ((
|
|
877
|
+
var N;
|
|
878
|
+
e.onCollapse && ((N = e.onCollapse) == null || N.call(e, !r.value));
|
|
865
879
|
}
|
|
866
880
|
}, {
|
|
867
881
|
default: () => {
|
|
868
|
-
var
|
|
869
|
-
return [(
|
|
882
|
+
var N;
|
|
883
|
+
return [(N = f.value) == null ? void 0 : N.call(f, r.value)];
|
|
870
884
|
}
|
|
871
885
|
})]
|
|
872
|
-
})]),
|
|
873
|
-
class: `${
|
|
874
|
-
}, [(
|
|
886
|
+
})]), m.value && o("div", {
|
|
887
|
+
class: `${$}-footer ${M.value}`
|
|
888
|
+
}, [(W = m.value) == null ? void 0 : W.call(m, e)])];
|
|
875
889
|
}
|
|
876
890
|
})]
|
|
877
891
|
}));
|
|
878
892
|
};
|
|
879
893
|
}
|
|
880
|
-
}),
|
|
894
|
+
}), $e = /* @__PURE__ */ H({
|
|
881
895
|
name: "SiderMenuWrapper",
|
|
882
896
|
inheritAttrs: !1,
|
|
883
897
|
props: {
|
|
884
|
-
...
|
|
898
|
+
...G,
|
|
885
899
|
matchMenuKeys: {
|
|
886
900
|
type: Array,
|
|
887
901
|
default: () => []
|
|
@@ -912,43 +926,43 @@ const {
|
|
|
912
926
|
}), null)]
|
|
913
927
|
}) : o(ot, e, null)]);
|
|
914
928
|
}
|
|
915
|
-
}),
|
|
916
|
-
|
|
917
|
-
},
|
|
929
|
+
}), Ot = Symbol("pro-app-context"), Jn = (e = Symbol(), t) => mt(e, t || {}), Qn = (e) => {
|
|
930
|
+
De(Ot, e);
|
|
931
|
+
}, ea = () => Jn(Ot, []);
|
|
918
932
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
919
933
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
920
|
-
const
|
|
921
|
-
function
|
|
922
|
-
return
|
|
934
|
+
const ta = Object.prototype.toString;
|
|
935
|
+
function na(e, t) {
|
|
936
|
+
return ta.call(e) === `[object ${t}]`;
|
|
923
937
|
}
|
|
924
|
-
function
|
|
925
|
-
return
|
|
938
|
+
function aa(e) {
|
|
939
|
+
return na(e, "Boolean");
|
|
926
940
|
}
|
|
927
941
|
typeof process < "u" && process.versions != null && process.versions.node != null;
|
|
928
|
-
function
|
|
942
|
+
function oa(e, t, n = "default") {
|
|
929
943
|
var a, i;
|
|
930
|
-
return t[n] === !1 ? !1 :
|
|
944
|
+
return t[n] === !1 ? !1 : aa(t[n]) && t[n] ? ((a = e == null ? void 0 : e[n]) == null ? void 0 : a.call(e)) || t[n] : t[n] || ((i = e[n]) == null ? void 0 : i.call(e));
|
|
931
945
|
}
|
|
932
|
-
function
|
|
946
|
+
function ia(e, t, n) {
|
|
933
947
|
const a = {};
|
|
934
948
|
return e.forEach((i) => {
|
|
935
|
-
a[i] =
|
|
949
|
+
a[i] = oa(t, n, i);
|
|
936
950
|
}), a;
|
|
937
951
|
}
|
|
938
|
-
const
|
|
952
|
+
const la = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: a }) => {
|
|
939
953
|
const i = a || (n ? "gx-pro" : "gx");
|
|
940
954
|
return t || (e ? `${i}-${e}` : i);
|
|
941
|
-
},
|
|
942
|
-
const { componentCls: t, colorText: n, fontSize: a, lineHeight: i, fontFamily:
|
|
955
|
+
}, ra = (e) => {
|
|
956
|
+
const { componentCls: t, colorText: n, fontSize: a, lineHeight: i, fontFamily: l } = e;
|
|
943
957
|
return {
|
|
944
958
|
[t]: {
|
|
945
959
|
color: n,
|
|
946
960
|
fontSize: a,
|
|
947
961
|
lineHeight: i,
|
|
948
|
-
fontFamily:
|
|
962
|
+
fontFamily: l
|
|
949
963
|
}
|
|
950
964
|
};
|
|
951
|
-
},
|
|
965
|
+
}, sa = ["emptyText", "indicator"], ke = /* @__PURE__ */ H({
|
|
952
966
|
name: "GProApp",
|
|
953
967
|
props: {
|
|
954
968
|
rootClassName: String,
|
|
@@ -958,25 +972,25 @@ const ia = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: a }) =>
|
|
|
958
972
|
setup(e, {
|
|
959
973
|
slots: t
|
|
960
974
|
}) {
|
|
961
|
-
const n =
|
|
975
|
+
const n = la({
|
|
962
976
|
suffixCls: "app",
|
|
963
977
|
isPor: !0
|
|
964
978
|
}), {
|
|
965
979
|
wrapSSR: a,
|
|
966
980
|
hashId: i
|
|
967
|
-
} = Z("BaseApp", [
|
|
968
|
-
return
|
|
969
|
-
emptyText: w(() =>
|
|
970
|
-
indicator: w(() =>
|
|
981
|
+
} = Z("BaseApp", [ra], n), l = w(() => ia(sa, t, e)), s = w(() => [i.value, n, e.rootClassName]);
|
|
982
|
+
return Qn({
|
|
983
|
+
emptyText: w(() => l.value.emptyText),
|
|
984
|
+
indicator: w(() => l.value.indicator)
|
|
971
985
|
}), () => {
|
|
972
|
-
var
|
|
986
|
+
var u;
|
|
973
987
|
return a(o("div", {
|
|
974
|
-
class:
|
|
975
|
-
}, [(
|
|
988
|
+
class: s.value
|
|
989
|
+
}, [(u = t.default) == null ? void 0 : u.call(t)]));
|
|
976
990
|
};
|
|
977
991
|
}
|
|
978
992
|
});
|
|
979
|
-
|
|
993
|
+
ke.install = (e) => (e.component(ke.name, ke), e);
|
|
980
994
|
const me = {
|
|
981
995
|
pageHeaderRender: {
|
|
982
996
|
type: [Object, Function, Boolean],
|
|
@@ -998,7 +1012,7 @@ const me = {
|
|
|
998
1012
|
usePageCard: L.bool.def(!0),
|
|
999
1013
|
waterMark: L.bool.def(!0),
|
|
1000
1014
|
pageCardProps: Object
|
|
1001
|
-
},
|
|
1015
|
+
}, ua = (e) => ({
|
|
1002
1016
|
[e.componentCls]: {
|
|
1003
1017
|
background: e.colorBgContainer,
|
|
1004
1018
|
padding: `${e.paddingLG}px`,
|
|
@@ -1009,7 +1023,7 @@ const me = {
|
|
|
1009
1023
|
marginTop: "8px"
|
|
1010
1024
|
}
|
|
1011
1025
|
}
|
|
1012
|
-
}),
|
|
1026
|
+
}), da = /* @__PURE__ */ H({
|
|
1013
1027
|
name: "ProPageHeader",
|
|
1014
1028
|
props: {
|
|
1015
1029
|
content: me.contentRender,
|
|
@@ -1024,31 +1038,31 @@ const me = {
|
|
|
1024
1038
|
suffixCls: "page-header"
|
|
1025
1039
|
}), {
|
|
1026
1040
|
wrapSSR: i,
|
|
1027
|
-
hashId:
|
|
1028
|
-
} = Z("ProPageHeader", [
|
|
1029
|
-
var
|
|
1041
|
+
hashId: l
|
|
1042
|
+
} = Z("ProPageHeader", [ua], a), s = w(() => {
|
|
1043
|
+
var u;
|
|
1030
1044
|
return {
|
|
1031
1045
|
...t.value,
|
|
1032
|
-
itemRender: ((
|
|
1033
|
-
route:
|
|
1034
|
-
}) => o(
|
|
1035
|
-
to:
|
|
1046
|
+
itemRender: ((u = t.value) == null ? void 0 : u.itemRender) || (({
|
|
1047
|
+
route: v
|
|
1048
|
+
}) => v.path ? o(tn, {
|
|
1049
|
+
to: v.path
|
|
1036
1050
|
}, {
|
|
1037
|
-
default: () => [
|
|
1038
|
-
}))
|
|
1051
|
+
default: () => [v.breadcrumbName]
|
|
1052
|
+
}) : v.breadcrumbName)
|
|
1039
1053
|
};
|
|
1040
1054
|
});
|
|
1041
1055
|
return () => {
|
|
1042
|
-
var
|
|
1056
|
+
var u, v;
|
|
1043
1057
|
return i(o("div", {
|
|
1044
|
-
class: [`${a}`,
|
|
1045
|
-
}, [e.breadcrumb ? (
|
|
1046
|
-
class: [`${a}-content`,
|
|
1047
|
-
}, [(
|
|
1058
|
+
class: [`${a}`, l.value, `${a}-has-breadcrumb`]
|
|
1059
|
+
}, [e.breadcrumb ? (u = e.breadcrumb) == null ? void 0 : u.call(e, s.value) : o(Gt, s.value, null), e.content && o("div", {
|
|
1060
|
+
class: [`${a}-content`, l.value]
|
|
1061
|
+
}, [(v = e.content) == null ? void 0 : v.call(e)])]));
|
|
1048
1062
|
};
|
|
1049
1063
|
}
|
|
1050
|
-
}),
|
|
1051
|
-
var t, n, a, i,
|
|
1064
|
+
}), ca = (e) => {
|
|
1065
|
+
var t, n, a, i, l, s, u, v;
|
|
1052
1066
|
return {
|
|
1053
1067
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1054
1068
|
[e.componentCls]: {
|
|
@@ -1061,25 +1075,25 @@ const me = {
|
|
|
1061
1075
|
},
|
|
1062
1076
|
[e.componentCls]: {
|
|
1063
1077
|
["&-children-content"]: {
|
|
1064
|
-
marginInline: ((
|
|
1065
|
-
marginBlockStart: ((
|
|
1078
|
+
marginInline: ((s = (l = e.layout) == null ? void 0 : l.pageContainer) == null ? void 0 : s.paddingBlockPageContainerContent) ?? 24,
|
|
1079
|
+
marginBlockStart: ((v = (u = e.layout) == null ? void 0 : u.pageContainer) == null ? void 0 : v.paddingBlockPageContainerContent) ?? 24,
|
|
1066
1080
|
padding: "inherit"
|
|
1067
1081
|
}
|
|
1068
1082
|
}
|
|
1069
1083
|
};
|
|
1070
1084
|
};
|
|
1071
|
-
function
|
|
1072
|
-
return
|
|
1073
|
-
const n =
|
|
1085
|
+
function ma(e) {
|
|
1086
|
+
return Ve("ProPageContainter", (t) => {
|
|
1087
|
+
const n = Ae(t, {
|
|
1074
1088
|
gridContent: `${t.proComponentsCls}-grid-content`
|
|
1075
1089
|
});
|
|
1076
|
-
return [
|
|
1090
|
+
return [ca(n)];
|
|
1077
1091
|
}, e);
|
|
1078
1092
|
}
|
|
1079
|
-
function
|
|
1093
|
+
function fa(e) {
|
|
1080
1094
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
1081
1095
|
}
|
|
1082
|
-
const
|
|
1096
|
+
const pl = /* @__PURE__ */ H({
|
|
1083
1097
|
inheritAttrs: !1,
|
|
1084
1098
|
name: "GProPageContainer",
|
|
1085
1099
|
props: me,
|
|
@@ -1090,62 +1104,62 @@ const yl = /* @__PURE__ */ H({
|
|
|
1090
1104
|
getPrefixCls: n,
|
|
1091
1105
|
hasContentWide: a,
|
|
1092
1106
|
waterMark: i,
|
|
1093
|
-
pageHeaderRender:
|
|
1094
|
-
pageContentStyle:
|
|
1095
|
-
pageCardProps:
|
|
1096
|
-
usePageCard:
|
|
1107
|
+
pageHeaderRender: l,
|
|
1108
|
+
pageContentStyle: s,
|
|
1109
|
+
pageCardProps: u,
|
|
1110
|
+
usePageCard: v
|
|
1097
1111
|
} = J(), {
|
|
1098
|
-
indicator:
|
|
1099
|
-
} =
|
|
1112
|
+
indicator: c
|
|
1113
|
+
} = ea(), O = n({
|
|
1100
1114
|
suffixCls: "page-container",
|
|
1101
1115
|
isPor: !0
|
|
1102
|
-
}),
|
|
1116
|
+
}), h = n({
|
|
1103
1117
|
suffixCls: "grid-content",
|
|
1104
1118
|
isPor: !0
|
|
1105
|
-
}),
|
|
1106
|
-
wrapSSR:
|
|
1119
|
+
}), p = w(() => e.pageCardProps || u.value), r = w(() => e.pageContentStyle || s.value), {
|
|
1120
|
+
wrapSSR: y,
|
|
1107
1121
|
hashId: I
|
|
1108
|
-
} =
|
|
1109
|
-
var
|
|
1122
|
+
} = ma(O), R = () => {
|
|
1123
|
+
var m;
|
|
1110
1124
|
return o("div", {
|
|
1111
|
-
class: `${
|
|
1112
|
-
}, [(
|
|
1125
|
+
class: `${O}-children-content ${I.value}`
|
|
1126
|
+
}, [(yn(e.usePageCard) ? e.usePageCard : v.value) ? o(Yt, X(p.value ? ae(p.value, ["loading", "bodyStyle"]) : {}, {
|
|
1113
1127
|
style: a.value ? {
|
|
1114
1128
|
minHeight: "853px"
|
|
1115
1129
|
} : void 0,
|
|
1116
1130
|
bordered: !1
|
|
1117
1131
|
}), {
|
|
1118
1132
|
default: () => {
|
|
1119
|
-
var
|
|
1120
|
-
return [(
|
|
1133
|
+
var g;
|
|
1134
|
+
return [(g = t.default) == null ? void 0 : g.call(t)];
|
|
1121
1135
|
}
|
|
1122
|
-
}) : (
|
|
1123
|
-
},
|
|
1124
|
-
let
|
|
1125
|
-
return o(q, null, [e.waterMark && i.value ? o(
|
|
1126
|
-
default: () => [
|
|
1127
|
-
}) :
|
|
1136
|
+
}) : (m = t.default) == null ? void 0 : m.call(t)]);
|
|
1137
|
+
}, x = () => {
|
|
1138
|
+
let m;
|
|
1139
|
+
return o(q, null, [e.waterMark && i.value ? o(gn, null, fa(m = R()) ? m : {
|
|
1140
|
+
default: () => [m]
|
|
1141
|
+
}) : R()]);
|
|
1128
1142
|
};
|
|
1129
1143
|
return () => {
|
|
1130
|
-
const
|
|
1131
|
-
return
|
|
1144
|
+
const m = K(t, e, "pageHeaderRender") || l.value, g = K(t, e, "breadcrumbRender"), b = K(t, e, "contentRender");
|
|
1145
|
+
return y(o(xe, {
|
|
1132
1146
|
spinning: e.loading,
|
|
1133
|
-
indicator:
|
|
1147
|
+
indicator: c == null ? void 0 : c.value
|
|
1134
1148
|
}, {
|
|
1135
1149
|
default: () => [o("div", {
|
|
1136
1150
|
class: {
|
|
1137
1151
|
[`${I.value}`]: !0,
|
|
1138
|
-
[`${
|
|
1152
|
+
[`${O}`]: !0
|
|
1139
1153
|
}
|
|
1140
|
-
}, [!a.value &&
|
|
1141
|
-
breadcrumb:
|
|
1142
|
-
content:
|
|
1154
|
+
}, [!a.value && m !== !1 && (m || o(da, {
|
|
1155
|
+
breadcrumb: g,
|
|
1156
|
+
content: b
|
|
1143
1157
|
}, null)), o("div", {
|
|
1144
|
-
class: [
|
|
1158
|
+
class: [h, I.value]
|
|
1145
1159
|
}, [o("div", {
|
|
1146
|
-
class: `${
|
|
1147
|
-
style:
|
|
1148
|
-
}, [
|
|
1160
|
+
class: `${h}-children ${I.value}`,
|
|
1161
|
+
style: r.value
|
|
1162
|
+
}, [x()])])])]
|
|
1149
1163
|
}));
|
|
1150
1164
|
};
|
|
1151
1165
|
}
|
|
@@ -1158,7 +1172,7 @@ const yl = /* @__PURE__ */ H({
|
|
|
1158
1172
|
autoHideHeader: Boolean,
|
|
1159
1173
|
collapsed: Boolean,
|
|
1160
1174
|
isMobile: Boolean,
|
|
1161
|
-
siderWidth:
|
|
1175
|
+
siderWidth: G.siderWidth,
|
|
1162
1176
|
headerTheme: {
|
|
1163
1177
|
type: String,
|
|
1164
1178
|
default: "dark"
|
|
@@ -1182,13 +1196,13 @@ const yl = /* @__PURE__ */ H({
|
|
|
1182
1196
|
default: () => {
|
|
1183
1197
|
}
|
|
1184
1198
|
},
|
|
1185
|
-
collapsedButtonRender:
|
|
1186
|
-
matchMenuKeys:
|
|
1187
|
-
onCollapse:
|
|
1188
|
-
onOpenKeys:
|
|
1199
|
+
collapsedButtonRender: G.collapsedButtonRender,
|
|
1200
|
+
matchMenuKeys: G.matchMenuKeys,
|
|
1201
|
+
onCollapse: G.onCollapse,
|
|
1202
|
+
onOpenKeys: G.onOpenKeys,
|
|
1189
1203
|
onMenuHeaderClick: Function,
|
|
1190
|
-
onSelect:
|
|
1191
|
-
},
|
|
1204
|
+
onSelect: G.onSelect
|
|
1205
|
+
}, Mt = {
|
|
1192
1206
|
...Ge,
|
|
1193
1207
|
headerTitleRender: {
|
|
1194
1208
|
type: [Object, Function],
|
|
@@ -1206,14 +1220,14 @@ const yl = /* @__PURE__ */ H({
|
|
|
1206
1220
|
}
|
|
1207
1221
|
},
|
|
1208
1222
|
hasSiderMenu: Boolean,
|
|
1209
|
-
collapsedWidth:
|
|
1210
|
-
siderWidth:
|
|
1211
|
-
},
|
|
1223
|
+
collapsedWidth: G.collapsedWidth,
|
|
1224
|
+
siderWidth: G.siderWidth
|
|
1225
|
+
}, Rt = {
|
|
1212
1226
|
loading: L.looseBool,
|
|
1213
|
-
isMobile:
|
|
1227
|
+
isMobile: G.isMobile,
|
|
1214
1228
|
collapsed: We.collapsed,
|
|
1215
|
-
siderWidth:
|
|
1216
|
-
collapsedWidth:
|
|
1229
|
+
siderWidth: G.siderWidth,
|
|
1230
|
+
collapsedWidth: G.collapsedWidth,
|
|
1217
1231
|
isFixedMultiTab: ie.fixedMultiTab,
|
|
1218
1232
|
onReloadPage: {
|
|
1219
1233
|
type: Function
|
|
@@ -1224,7 +1238,7 @@ const yl = /* @__PURE__ */ H({
|
|
|
1224
1238
|
"onUpdate:tabs": {
|
|
1225
1239
|
type: Function
|
|
1226
1240
|
}
|
|
1227
|
-
},
|
|
1241
|
+
}, ha = (e) => ({
|
|
1228
1242
|
[e.componentCls]: {
|
|
1229
1243
|
marginBlock: 0,
|
|
1230
1244
|
marginBlockStart: 48,
|
|
@@ -1255,14 +1269,14 @@ const yl = /* @__PURE__ */ H({
|
|
|
1255
1269
|
}
|
|
1256
1270
|
}
|
|
1257
1271
|
}
|
|
1258
|
-
}),
|
|
1272
|
+
}), Bt = [{
|
|
1259
1273
|
key: "Ant Design Pro",
|
|
1260
1274
|
title: "Ant Design Pro",
|
|
1261
1275
|
href: "https://pro.ant.design",
|
|
1262
1276
|
blankTarget: !0
|
|
1263
1277
|
}, {
|
|
1264
1278
|
key: "gitee",
|
|
1265
|
-
title: o(
|
|
1279
|
+
title: o(ln, null, null),
|
|
1266
1280
|
href: "https://gitee.com/gx12358/vue-antd-admin",
|
|
1267
1281
|
blankTarget: !0
|
|
1268
1282
|
}, {
|
|
@@ -1270,12 +1284,12 @@ const yl = /* @__PURE__ */ H({
|
|
|
1270
1284
|
title: "Ant Design Vue",
|
|
1271
1285
|
href: "https://next.antdv.com/components/overview-cn/",
|
|
1272
1286
|
blankTarget: !0
|
|
1273
|
-
}],
|
|
1287
|
+
}], Te = /* @__PURE__ */ H({
|
|
1274
1288
|
name: "GlobalFooter",
|
|
1275
1289
|
props: {
|
|
1276
1290
|
links: {
|
|
1277
1291
|
type: [Array, Boolean],
|
|
1278
|
-
default:
|
|
1292
|
+
default: Bt
|
|
1279
1293
|
},
|
|
1280
1294
|
copyright: {
|
|
1281
1295
|
type: [Object, Function, Boolean, String],
|
|
@@ -1289,8 +1303,8 @@ const yl = /* @__PURE__ */ H({
|
|
|
1289
1303
|
}), {
|
|
1290
1304
|
wrapSSR: n,
|
|
1291
1305
|
hashId: a
|
|
1292
|
-
} = Z("ProLayoutFooter", [
|
|
1293
|
-
return () => n(o(
|
|
1306
|
+
} = Z("ProLayoutFooter", [ha], t);
|
|
1307
|
+
return () => n(o(qt, {
|
|
1294
1308
|
style: {
|
|
1295
1309
|
padding: 0
|
|
1296
1310
|
}
|
|
@@ -1311,12 +1325,12 @@ const yl = /* @__PURE__ */ H({
|
|
|
1311
1325
|
}, [e.copyright])])])]
|
|
1312
1326
|
}));
|
|
1313
1327
|
}
|
|
1314
|
-
}),
|
|
1328
|
+
}), kt = {
|
|
1315
1329
|
...ie,
|
|
1316
1330
|
...Ge,
|
|
1317
|
-
...
|
|
1331
|
+
...G,
|
|
1332
|
+
...Mt,
|
|
1318
1333
|
...Rt,
|
|
1319
|
-
...Bt,
|
|
1320
1334
|
...me,
|
|
1321
1335
|
pure: Boolean,
|
|
1322
1336
|
token: Object,
|
|
@@ -1344,7 +1358,7 @@ const yl = /* @__PURE__ */ H({
|
|
|
1344
1358
|
loading: L.looseBool,
|
|
1345
1359
|
footerLinks: {
|
|
1346
1360
|
type: [Array, Boolean],
|
|
1347
|
-
default:
|
|
1361
|
+
default: Bt
|
|
1348
1362
|
},
|
|
1349
1363
|
copyrightRender: {
|
|
1350
1364
|
type: [Object, Function, Boolean, String],
|
|
@@ -1360,15 +1374,19 @@ const yl = /* @__PURE__ */ H({
|
|
|
1360
1374
|
type: Array,
|
|
1361
1375
|
default: () => []
|
|
1362
1376
|
},
|
|
1377
|
+
levelMenuData: {
|
|
1378
|
+
type: Array,
|
|
1379
|
+
default: () => []
|
|
1380
|
+
},
|
|
1363
1381
|
collapsed: L.looseBool
|
|
1364
|
-
},
|
|
1382
|
+
}, ga = (e) => ({
|
|
1365
1383
|
[e.componentCls]: {
|
|
1366
1384
|
display: "flex",
|
|
1367
1385
|
flexDirection: "column",
|
|
1368
1386
|
width: "100%",
|
|
1369
1387
|
minHeight: "100vh"
|
|
1370
1388
|
}
|
|
1371
|
-
}),
|
|
1389
|
+
}), ya = (e) => {
|
|
1372
1390
|
var t, n;
|
|
1373
1391
|
return {
|
|
1374
1392
|
[e.componentCls]: {
|
|
@@ -1399,7 +1417,7 @@ const yl = /* @__PURE__ */ H({
|
|
|
1399
1417
|
}
|
|
1400
1418
|
}
|
|
1401
1419
|
};
|
|
1402
|
-
},
|
|
1420
|
+
}, ba = (e) => {
|
|
1403
1421
|
var t, n;
|
|
1404
1422
|
return {
|
|
1405
1423
|
[`${e.componentCls}`]: {
|
|
@@ -1449,15 +1467,15 @@ const yl = /* @__PURE__ */ H({
|
|
|
1449
1467
|
}
|
|
1450
1468
|
};
|
|
1451
1469
|
};
|
|
1452
|
-
function
|
|
1453
|
-
return
|
|
1454
|
-
const n =
|
|
1470
|
+
function pa(e) {
|
|
1471
|
+
return Ve("ProMultiTabs", (t) => {
|
|
1472
|
+
const n = Ae(t, {
|
|
1455
1473
|
componentWrapCls: `${t.componentCls}-wrap`
|
|
1456
1474
|
});
|
|
1457
|
-
return [
|
|
1475
|
+
return [ba(n)];
|
|
1458
1476
|
}, e);
|
|
1459
1477
|
}
|
|
1460
|
-
const
|
|
1478
|
+
const va = [
|
|
1461
1479
|
{
|
|
1462
1480
|
key: "closeOthersTabs",
|
|
1463
1481
|
label: "关闭其他"
|
|
@@ -1475,12 +1493,12 @@ const pa = [
|
|
|
1475
1493
|
label: "刷新当前页"
|
|
1476
1494
|
}
|
|
1477
1495
|
];
|
|
1478
|
-
function
|
|
1496
|
+
function xa(e) {
|
|
1479
1497
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
1480
1498
|
}
|
|
1481
|
-
const
|
|
1499
|
+
const Ca = He.TabPane, wa = ee.Item, Sa = /* @__PURE__ */ H({
|
|
1482
1500
|
props: {
|
|
1483
|
-
...
|
|
1501
|
+
...Rt,
|
|
1484
1502
|
visible: {
|
|
1485
1503
|
type: Boolean,
|
|
1486
1504
|
default: !0
|
|
@@ -1491,254 +1509,260 @@ const xa = _e.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1491
1509
|
const {
|
|
1492
1510
|
isMobile: t,
|
|
1493
1511
|
isFixedMultiTab: n
|
|
1494
|
-
} =
|
|
1512
|
+
} = Ie(e), a = ve(!1), i = ze({
|
|
1495
1513
|
activeKey: "",
|
|
1496
1514
|
contextMenuActiveKey: ""
|
|
1497
|
-
}),
|
|
1498
|
-
menuData:
|
|
1499
|
-
getPrefixCls:
|
|
1500
|
-
|
|
1515
|
+
}), l = _e(), {
|
|
1516
|
+
menuData: s,
|
|
1517
|
+
getPrefixCls: u,
|
|
1518
|
+
levelMenuData: v
|
|
1519
|
+
} = J(), c = u({
|
|
1501
1520
|
isPor: !0,
|
|
1502
1521
|
suffixCls: "multi-tab"
|
|
1503
1522
|
}), {
|
|
1504
|
-
wrapSSR:
|
|
1505
|
-
hashId:
|
|
1506
|
-
} =
|
|
1507
|
-
le(
|
|
1508
|
-
var
|
|
1509
|
-
(
|
|
1523
|
+
wrapSSR: O,
|
|
1524
|
+
hashId: h
|
|
1525
|
+
} = pa(c), p = ve([]);
|
|
1526
|
+
le(p, () => {
|
|
1527
|
+
var f;
|
|
1528
|
+
(f = e.onChangeTabs) == null || f.call(e, Ee(U(p)));
|
|
1510
1529
|
}, {
|
|
1511
1530
|
deep: !0
|
|
1512
1531
|
});
|
|
1513
|
-
const
|
|
1514
|
-
[`${
|
|
1515
|
-
[`${
|
|
1516
|
-
[`${
|
|
1517
|
-
})),
|
|
1518
|
-
const
|
|
1532
|
+
const r = w(() => l.currentRoute.value.fullPath || l.currentRoute.value.path), y = w(() => n.value && !t.value), I = w(() => y.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), R = w(() => bt(`${c}-wrap`, {
|
|
1533
|
+
[`${h.value}`]: !0,
|
|
1534
|
+
[`${c}-wrap-fixed`]: e.isFixedMultiTab,
|
|
1535
|
+
[`${c}-wrap-loading`]: e.loading
|
|
1536
|
+
})), x = w(() => {
|
|
1537
|
+
const f = {
|
|
1519
1538
|
display: e.visible ? void 0 : "none"
|
|
1520
1539
|
};
|
|
1521
1540
|
return e.isFixedMultiTab ? {
|
|
1522
1541
|
margin: 0,
|
|
1523
|
-
width:
|
|
1542
|
+
width: I.value,
|
|
1524
1543
|
paddingTop: "6px",
|
|
1525
1544
|
zIndex: 99,
|
|
1526
|
-
...
|
|
1527
|
-
} :
|
|
1528
|
-
}),
|
|
1529
|
-
if (
|
|
1530
|
-
const
|
|
1531
|
-
path:
|
|
1532
|
-
fullPath:
|
|
1533
|
-
query:
|
|
1534
|
-
params:
|
|
1535
|
-
name:
|
|
1545
|
+
...f
|
|
1546
|
+
} : f;
|
|
1547
|
+
}), m = (f) => (f.fullPath || f.path) === r.value, g = (f) => {
|
|
1548
|
+
if (f.name && f.meta && f.meta.tagHidden !== !0) {
|
|
1549
|
+
const S = f.fullPath || f.path, B = p.value.find((z) => z.fullPath === S), k = {
|
|
1550
|
+
path: f.path,
|
|
1551
|
+
fullPath: S,
|
|
1552
|
+
query: f.query,
|
|
1553
|
+
params: f.params,
|
|
1554
|
+
name: f.name,
|
|
1536
1555
|
meta: {
|
|
1537
|
-
...
|
|
1556
|
+
...f.meta
|
|
1538
1557
|
}
|
|
1539
1558
|
};
|
|
1540
|
-
|
|
1559
|
+
B ? Object.assign(B, k) : f.meta.tagFixed ? p.value.unshift(k) : p.value.push(k), m(f) && (i.activeKey = S);
|
|
1541
1560
|
}
|
|
1542
|
-
},
|
|
1543
|
-
|
|
1544
|
-
|
|
1561
|
+
}, b = (f) => {
|
|
1562
|
+
f.forEach((S) => {
|
|
1563
|
+
S.meta && S.meta.tagFixed && g(S), S.children && b(S.children);
|
|
1545
1564
|
});
|
|
1546
1565
|
};
|
|
1547
|
-
le(() =>
|
|
1548
|
-
f
|
|
1566
|
+
le(() => s.value, (f) => {
|
|
1567
|
+
b(f);
|
|
1549
1568
|
}, {
|
|
1550
1569
|
deep: !0,
|
|
1551
1570
|
immediate: !0
|
|
1552
|
-
}), le(() =>
|
|
1553
|
-
|
|
1571
|
+
}), le(() => l.currentRoute.value, (f) => {
|
|
1572
|
+
var B;
|
|
1573
|
+
const S = (B = v.value.find((k) => k.path === f.path)) == null ? void 0 : B.meta;
|
|
1574
|
+
g({
|
|
1575
|
+
...f,
|
|
1576
|
+
meta: S || f.meta
|
|
1577
|
+
});
|
|
1554
1578
|
}, {
|
|
1555
1579
|
deep: !0,
|
|
1556
1580
|
immediate: !0
|
|
1557
1581
|
});
|
|
1558
|
-
const
|
|
1559
|
-
const
|
|
1560
|
-
|
|
1561
|
-
},
|
|
1562
|
-
const
|
|
1563
|
-
|
|
1564
|
-
},
|
|
1565
|
-
const
|
|
1566
|
-
i.activeKey !== (
|
|
1567
|
-
},
|
|
1568
|
-
var
|
|
1569
|
-
a.value = !0, e.onReloadPage && ((
|
|
1582
|
+
const $ = () => {
|
|
1583
|
+
const f = p.value.slice(-1)[0];
|
|
1584
|
+
f ? l.push(f) : l.push("/");
|
|
1585
|
+
}, C = async (f) => {
|
|
1586
|
+
const S = p.value.find((B) => f === B.fullPath);
|
|
1587
|
+
p.value = p.value.filter((B) => B.fullPath !== f), S && m(S) && $();
|
|
1588
|
+
}, M = (f) => {
|
|
1589
|
+
const S = p.value.find((B) => B.fullPath === f);
|
|
1590
|
+
i.activeKey !== (S == null ? void 0 : S.fullPath) && (S != null && S.fullPath) && l.push(S == null ? void 0 : S.fullPath);
|
|
1591
|
+
}, T = () => {
|
|
1592
|
+
var f;
|
|
1593
|
+
a.value = !0, e.onReloadPage && ((f = e.onReloadPage) == null || f.call(e)), setTimeout(() => {
|
|
1570
1594
|
a.value = !1;
|
|
1571
1595
|
}, 500);
|
|
1572
|
-
},
|
|
1573
|
-
const
|
|
1574
|
-
switch (
|
|
1596
|
+
}, P = (f) => f.meta && f.meta.tagFixed, F = (f) => i[f], _ = (f, S) => {
|
|
1597
|
+
const B = p.value.findIndex((k) => k.fullPath === F(S));
|
|
1598
|
+
switch (f) {
|
|
1575
1599
|
case "closeOthersTabs":
|
|
1576
|
-
|
|
1577
|
-
var
|
|
1578
|
-
return
|
|
1600
|
+
p.value = p.value.filter((k) => {
|
|
1601
|
+
var z;
|
|
1602
|
+
return k.fullPath === F(S) || ((z = k.meta) == null ? void 0 : z.tagFixed);
|
|
1579
1603
|
});
|
|
1580
1604
|
break;
|
|
1581
1605
|
case "closeLeftTabs":
|
|
1582
|
-
|
|
1606
|
+
B && (p.value = p.value.filter((k, z) => {
|
|
1583
1607
|
var j;
|
|
1584
|
-
return
|
|
1608
|
+
return z >= B || ((j = k.meta) == null ? void 0 : j.tagFixed);
|
|
1585
1609
|
}));
|
|
1586
1610
|
break;
|
|
1587
1611
|
case "closeRightTabs":
|
|
1588
|
-
|
|
1612
|
+
B && (p.value = p.value.filter((k, z) => {
|
|
1589
1613
|
var j;
|
|
1590
|
-
return
|
|
1614
|
+
return z <= B || ((j = k.meta) == null ? void 0 : j.tagFixed);
|
|
1591
1615
|
}));
|
|
1592
1616
|
break;
|
|
1593
1617
|
case "reloadPage":
|
|
1594
|
-
(
|
|
1618
|
+
(B === 0 || B) && i.activeKey === F(S) && T();
|
|
1595
1619
|
break;
|
|
1596
1620
|
}
|
|
1597
|
-
i.activeKey !==
|
|
1598
|
-
},
|
|
1599
|
-
const
|
|
1600
|
-
switch (
|
|
1621
|
+
i.activeKey !== F(S) && l.push(F(S));
|
|
1622
|
+
}, V = (f, S) => {
|
|
1623
|
+
const B = p.value.findIndex((k) => k.fullPath === S);
|
|
1624
|
+
switch (f) {
|
|
1601
1625
|
case "closeOthersTabs":
|
|
1602
|
-
return
|
|
1603
|
-
var
|
|
1604
|
-
return
|
|
1626
|
+
return p.value.filter((E, W) => {
|
|
1627
|
+
var N;
|
|
1628
|
+
return W !== B && !((N = E.meta) != null && N.tagFixed);
|
|
1605
1629
|
}).length === 0;
|
|
1606
1630
|
case "closeLeftTabs":
|
|
1607
|
-
return
|
|
1608
|
-
var
|
|
1609
|
-
return
|
|
1631
|
+
return p.value.filter((E, W) => {
|
|
1632
|
+
var N;
|
|
1633
|
+
return W < B && !((N = E.meta) != null && N.tagFixed);
|
|
1610
1634
|
}).length === 0;
|
|
1611
1635
|
case "closeRightTabs":
|
|
1612
|
-
return
|
|
1613
|
-
var
|
|
1614
|
-
return
|
|
1636
|
+
return p.value.filter((E, W) => {
|
|
1637
|
+
var N;
|
|
1638
|
+
return W > B && !((N = E.meta) != null && N.tagFixed);
|
|
1615
1639
|
}).length === 0;
|
|
1616
1640
|
}
|
|
1617
|
-
},
|
|
1618
|
-
let
|
|
1641
|
+
}, D = (f) => {
|
|
1642
|
+
let S;
|
|
1619
1643
|
const {
|
|
1620
|
-
path:
|
|
1621
|
-
stateType:
|
|
1622
|
-
} =
|
|
1644
|
+
path: B,
|
|
1645
|
+
stateType: k
|
|
1646
|
+
} = f;
|
|
1623
1647
|
return o(ee, {
|
|
1624
1648
|
selectedKeys: [],
|
|
1625
1649
|
onClick: ({
|
|
1626
|
-
key:
|
|
1627
|
-
}) =>
|
|
1628
|
-
},
|
|
1629
|
-
key:
|
|
1630
|
-
disabled:
|
|
1650
|
+
key: z
|
|
1651
|
+
}) => _(z, k)
|
|
1652
|
+
}, xa(S = va.map((z) => o(wa, {
|
|
1653
|
+
key: z.key,
|
|
1654
|
+
disabled: V(z.key, B)
|
|
1631
1655
|
}, {
|
|
1632
|
-
default: () => [
|
|
1633
|
-
}))) ?
|
|
1634
|
-
default: () => [
|
|
1656
|
+
default: () => [z.label]
|
|
1657
|
+
}))) ? S : {
|
|
1658
|
+
default: () => [S]
|
|
1635
1659
|
});
|
|
1636
|
-
},
|
|
1660
|
+
}, Y = (f) => {
|
|
1637
1661
|
const {
|
|
1638
|
-
router:
|
|
1639
|
-
} =
|
|
1662
|
+
router: S
|
|
1663
|
+
} = f;
|
|
1640
1664
|
return o(et, {
|
|
1641
1665
|
trigger: "contextmenu",
|
|
1642
|
-
overlay: o(
|
|
1643
|
-
path: (
|
|
1666
|
+
overlay: o(D, {
|
|
1667
|
+
path: (S == null ? void 0 : S.fullPath) || "",
|
|
1644
1668
|
stateType: "contextMenuActiveKey"
|
|
1645
1669
|
}, null),
|
|
1646
|
-
onOpenChange: (
|
|
1647
|
-
i.contextMenuActiveKey =
|
|
1670
|
+
onOpenChange: (B) => {
|
|
1671
|
+
i.contextMenuActiveKey = B && S.fullPath || "";
|
|
1648
1672
|
}
|
|
1649
1673
|
}, {
|
|
1650
1674
|
default: () => {
|
|
1651
|
-
var
|
|
1675
|
+
var B;
|
|
1652
1676
|
return [o("div", {
|
|
1653
|
-
class: [`${
|
|
1654
|
-
}, [(
|
|
1655
|
-
class: [`${
|
|
1677
|
+
class: [`${c}-title`, h.value]
|
|
1678
|
+
}, [(B = S.meta) == null ? void 0 : B.title, i.activeKey === S.fullPath && o(sn, {
|
|
1679
|
+
class: [`${c}-reload-btn`, h.value],
|
|
1656
1680
|
spin: a.value,
|
|
1657
|
-
onClick: (
|
|
1658
|
-
|
|
1681
|
+
onClick: (k) => {
|
|
1682
|
+
k.stopPropagation(), !a.value && T();
|
|
1659
1683
|
}
|
|
1660
|
-
}, null),
|
|
1661
|
-
class: [`${
|
|
1662
|
-
onClick: (
|
|
1663
|
-
|
|
1684
|
+
}, null), p.value.length > 1 && !P(S) && o(gt, {
|
|
1685
|
+
class: [`${c}-close-btn`, h.value],
|
|
1686
|
+
onClick: (k) => {
|
|
1687
|
+
k.stopPropagation(), !a.value && C((S == null ? void 0 : S.fullPath) || "");
|
|
1664
1688
|
}
|
|
1665
1689
|
}, null)])];
|
|
1666
1690
|
}
|
|
1667
1691
|
});
|
|
1668
1692
|
};
|
|
1669
|
-
return () =>
|
|
1670
|
-
class: [`${
|
|
1671
|
-
}, null), [[
|
|
1693
|
+
return () => O(o(q, null, [!!e.isFixedMultiTab && Vt(o("div", {
|
|
1694
|
+
class: [`${c}-fixed`, h.value]
|
|
1695
|
+
}, null), [[At, e.visible]]), o(He, {
|
|
1672
1696
|
hideAdd: !0,
|
|
1673
1697
|
type: "editable-card",
|
|
1674
|
-
style:
|
|
1675
|
-
class:
|
|
1698
|
+
style: x.value,
|
|
1699
|
+
class: R.value,
|
|
1676
1700
|
activeKey: i.activeKey,
|
|
1677
|
-
onTabClick:
|
|
1701
|
+
onTabClick: M
|
|
1678
1702
|
}, {
|
|
1679
|
-
default: () => [
|
|
1680
|
-
key:
|
|
1703
|
+
default: () => [p.value.map((f) => o(Ca, {
|
|
1704
|
+
key: f.fullPath,
|
|
1681
1705
|
closable: !1,
|
|
1682
|
-
tab: o(
|
|
1683
|
-
router:
|
|
1706
|
+
tab: o(Y, {
|
|
1707
|
+
router: f
|
|
1684
1708
|
}, null)
|
|
1685
1709
|
}, null))],
|
|
1686
1710
|
rightExtra: () => o(et, {
|
|
1687
|
-
overlay: o(
|
|
1711
|
+
overlay: o(D, {
|
|
1688
1712
|
path: i.activeKey,
|
|
1689
1713
|
stateType: "activeKey"
|
|
1690
1714
|
}, null)
|
|
1691
1715
|
}, {
|
|
1692
|
-
default: () => [o(
|
|
1693
|
-
class: [`${
|
|
1716
|
+
default: () => [o(rn, {
|
|
1717
|
+
class: [`${c}-dropdown-menu-btn`, h.value],
|
|
1694
1718
|
rotate: 90
|
|
1695
1719
|
}, null)]
|
|
1696
1720
|
})
|
|
1697
1721
|
})]));
|
|
1698
1722
|
}
|
|
1699
1723
|
}), {
|
|
1700
|
-
Content:
|
|
1724
|
+
Content: Ia
|
|
1701
1725
|
} = de, Ye = (e, {
|
|
1702
1726
|
slots: t,
|
|
1703
1727
|
attrs: n
|
|
1704
1728
|
}) => {
|
|
1705
|
-
var
|
|
1729
|
+
var y;
|
|
1706
1730
|
const {
|
|
1707
1731
|
hashId: a,
|
|
1708
1732
|
prefixCls: i,
|
|
1709
|
-
isMobile:
|
|
1710
|
-
loading:
|
|
1711
|
-
collapsed:
|
|
1712
|
-
siderWidth:
|
|
1713
|
-
isShowTabsBar:
|
|
1714
|
-
isFixedMultiTab:
|
|
1715
|
-
onReloadPage:
|
|
1716
|
-
onChangeTabs:
|
|
1733
|
+
isMobile: l,
|
|
1734
|
+
loading: s,
|
|
1735
|
+
collapsed: u,
|
|
1736
|
+
siderWidth: v,
|
|
1737
|
+
isShowTabsBar: c,
|
|
1738
|
+
isFixedMultiTab: O,
|
|
1739
|
+
onReloadPage: h,
|
|
1740
|
+
onChangeTabs: p
|
|
1717
1741
|
} = e;
|
|
1718
1742
|
if (e.isChildrenLayout)
|
|
1719
|
-
return (
|
|
1743
|
+
return (y = t.default) == null ? void 0 : y.call(t);
|
|
1720
1744
|
const {
|
|
1721
|
-
flatMenuData:
|
|
1745
|
+
flatMenuData: r
|
|
1722
1746
|
} = J();
|
|
1723
|
-
return o(q, null, [o(
|
|
1724
|
-
visible: U(
|
|
1725
|
-
isMobile:
|
|
1726
|
-
loading:
|
|
1727
|
-
isFixedMultiTab:
|
|
1728
|
-
siderWidth:
|
|
1729
|
-
collapsed:
|
|
1730
|
-
onReloadPage:
|
|
1731
|
-
onChangeTabs:
|
|
1732
|
-
}, null), o(
|
|
1747
|
+
return o(q, null, [o(Sa, {
|
|
1748
|
+
visible: U(r).length > 0 && c,
|
|
1749
|
+
isMobile: l,
|
|
1750
|
+
loading: s,
|
|
1751
|
+
isFixedMultiTab: O,
|
|
1752
|
+
siderWidth: v,
|
|
1753
|
+
collapsed: u,
|
|
1754
|
+
onReloadPage: h,
|
|
1755
|
+
onChangeTabs: p
|
|
1756
|
+
}, null), o(Ia, {
|
|
1733
1757
|
style: n.style,
|
|
1734
1758
|
class: [`${i}-content`]
|
|
1735
1759
|
}, {
|
|
1736
1760
|
default: () => {
|
|
1737
1761
|
var I;
|
|
1738
|
-
return [
|
|
1762
|
+
return [s && o(Mn, null, null), o("div", {
|
|
1739
1763
|
class: [`${i}-content-spin-container`, a],
|
|
1740
1764
|
style: {
|
|
1741
|
-
opacity:
|
|
1765
|
+
opacity: s ? "0" : void 0
|
|
1742
1766
|
}
|
|
1743
1767
|
}, [(I = t.default) == null ? void 0 : I.call(t)])];
|
|
1744
1768
|
}
|
|
@@ -1746,7 +1770,7 @@ const xa = _e.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1746
1770
|
};
|
|
1747
1771
|
Ye.inheritAttrs = !1;
|
|
1748
1772
|
Ye.displayName = "wrap-content";
|
|
1749
|
-
const
|
|
1773
|
+
const Oa = (e) => {
|
|
1750
1774
|
var t, n, a, i;
|
|
1751
1775
|
return {
|
|
1752
1776
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
@@ -1809,13 +1833,13 @@ function ue() {
|
|
|
1809
1833
|
return e;
|
|
1810
1834
|
}, ue.apply(this, arguments);
|
|
1811
1835
|
}
|
|
1812
|
-
var
|
|
1836
|
+
var $t = function() {
|
|
1813
1837
|
if (typeof Map < "u")
|
|
1814
1838
|
return Map;
|
|
1815
1839
|
function e(t, n) {
|
|
1816
1840
|
var a = -1;
|
|
1817
|
-
return t.some(function(i,
|
|
1818
|
-
return i[0] === n ? (a =
|
|
1841
|
+
return t.some(function(i, l) {
|
|
1842
|
+
return i[0] === n ? (a = l, !0) : !1;
|
|
1819
1843
|
}), a;
|
|
1820
1844
|
}
|
|
1821
1845
|
return (
|
|
@@ -1848,47 +1872,47 @@ var Tt = function() {
|
|
|
1848
1872
|
this.__entries__.splice(0);
|
|
1849
1873
|
}, t.prototype.forEach = function(n, a) {
|
|
1850
1874
|
a === void 0 && (a = null);
|
|
1851
|
-
for (var i = 0,
|
|
1852
|
-
var
|
|
1853
|
-
n.call(a,
|
|
1875
|
+
for (var i = 0, l = this.__entries__; i < l.length; i++) {
|
|
1876
|
+
var s = l[i];
|
|
1877
|
+
n.call(a, s[1], s[0]);
|
|
1854
1878
|
}
|
|
1855
1879
|
}, t;
|
|
1856
1880
|
}()
|
|
1857
1881
|
);
|
|
1858
|
-
}(), Pe = typeof window < "u" && typeof document < "u" && window.document === document,
|
|
1882
|
+
}(), Pe = typeof window < "u" && typeof document < "u" && window.document === document, we = function() {
|
|
1859
1883
|
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
1860
|
-
}(),
|
|
1861
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
1884
|
+
}(), Ma = function() {
|
|
1885
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(we) : function(e) {
|
|
1862
1886
|
return setTimeout(function() {
|
|
1863
1887
|
return e(Date.now());
|
|
1864
1888
|
}, 1e3 / 60);
|
|
1865
1889
|
};
|
|
1866
|
-
}(),
|
|
1867
|
-
function
|
|
1890
|
+
}(), Ra = 2;
|
|
1891
|
+
function Ba(e, t) {
|
|
1868
1892
|
var n = !1, a = !1, i = 0;
|
|
1869
|
-
function
|
|
1870
|
-
n && (n = !1, e()), a &&
|
|
1893
|
+
function l() {
|
|
1894
|
+
n && (n = !1, e()), a && u();
|
|
1871
1895
|
}
|
|
1872
|
-
function
|
|
1873
|
-
|
|
1896
|
+
function s() {
|
|
1897
|
+
Ma(l);
|
|
1874
1898
|
}
|
|
1875
|
-
function
|
|
1876
|
-
var
|
|
1899
|
+
function u() {
|
|
1900
|
+
var v = Date.now();
|
|
1877
1901
|
if (n) {
|
|
1878
|
-
if (
|
|
1902
|
+
if (v - i < Ra)
|
|
1879
1903
|
return;
|
|
1880
1904
|
a = !0;
|
|
1881
1905
|
} else
|
|
1882
|
-
n = !0, a = !1, setTimeout(
|
|
1883
|
-
i =
|
|
1906
|
+
n = !0, a = !1, setTimeout(s, t);
|
|
1907
|
+
i = v;
|
|
1884
1908
|
}
|
|
1885
|
-
return
|
|
1909
|
+
return u;
|
|
1886
1910
|
}
|
|
1887
|
-
var
|
|
1911
|
+
var ka = 20, $a = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Ta = typeof MutationObserver < "u", Pa = (
|
|
1888
1912
|
/** @class */
|
|
1889
1913
|
function() {
|
|
1890
1914
|
function e() {
|
|
1891
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
1915
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Ba(this.refresh.bind(this), ka);
|
|
1892
1916
|
}
|
|
1893
1917
|
return e.prototype.addObserver = function(t) {
|
|
1894
1918
|
~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
|
|
@@ -1906,7 +1930,7 @@ var Ba = 20, ka = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1906
1930
|
return n.broadcastActive();
|
|
1907
1931
|
}), t.length > 0;
|
|
1908
1932
|
}, e.prototype.connect_ = function() {
|
|
1909
|
-
!Pe || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh),
|
|
1933
|
+
!Pe || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Ta ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
1910
1934
|
attributes: !0,
|
|
1911
1935
|
childList: !0,
|
|
1912
1936
|
characterData: !0,
|
|
@@ -1915,15 +1939,15 @@ var Ba = 20, ka = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1915
1939
|
}, e.prototype.disconnect_ = function() {
|
|
1916
1940
|
!Pe || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
1917
1941
|
}, e.prototype.onTransitionEnd_ = function(t) {
|
|
1918
|
-
var n = t.propertyName, a = n === void 0 ? "" : n, i =
|
|
1919
|
-
return !!~a.indexOf(
|
|
1942
|
+
var n = t.propertyName, a = n === void 0 ? "" : n, i = $a.some(function(l) {
|
|
1943
|
+
return !!~a.indexOf(l);
|
|
1920
1944
|
});
|
|
1921
1945
|
i && this.refresh();
|
|
1922
1946
|
}, e.getInstance = function() {
|
|
1923
1947
|
return this.instance_ || (this.instance_ = new e()), this.instance_;
|
|
1924
1948
|
}, e.instance_ = null, e;
|
|
1925
1949
|
}()
|
|
1926
|
-
),
|
|
1950
|
+
), Tt = function(e, t) {
|
|
1927
1951
|
for (var n = 0, a = Object.keys(t); n < a.length; n++) {
|
|
1928
1952
|
var i = a[n];
|
|
1929
1953
|
Object.defineProperty(e, i, {
|
|
@@ -1936,57 +1960,57 @@ var Ba = 20, ka = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1936
1960
|
return e;
|
|
1937
1961
|
}, re = function(e) {
|
|
1938
1962
|
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
|
|
1939
|
-
return t ||
|
|
1940
|
-
}, Pt =
|
|
1941
|
-
function
|
|
1963
|
+
return t || we;
|
|
1964
|
+
}, Pt = Re(0, 0, 0, 0);
|
|
1965
|
+
function Se(e) {
|
|
1942
1966
|
return parseFloat(e) || 0;
|
|
1943
1967
|
}
|
|
1944
1968
|
function it(e) {
|
|
1945
1969
|
for (var t = [], n = 1; n < arguments.length; n++)
|
|
1946
1970
|
t[n - 1] = arguments[n];
|
|
1947
1971
|
return t.reduce(function(a, i) {
|
|
1948
|
-
var
|
|
1949
|
-
return a +
|
|
1972
|
+
var l = e["border-" + i + "-width"];
|
|
1973
|
+
return a + Se(l);
|
|
1950
1974
|
}, 0);
|
|
1951
1975
|
}
|
|
1952
1976
|
function Fa(e) {
|
|
1953
1977
|
for (var t = ["top", "right", "bottom", "left"], n = {}, a = 0, i = t; a < i.length; a++) {
|
|
1954
|
-
var
|
|
1955
|
-
n[
|
|
1978
|
+
var l = i[a], s = e["padding-" + l];
|
|
1979
|
+
n[l] = Se(s);
|
|
1956
1980
|
}
|
|
1957
1981
|
return n;
|
|
1958
1982
|
}
|
|
1959
|
-
function
|
|
1983
|
+
function La(e) {
|
|
1960
1984
|
var t = e.getBBox();
|
|
1961
|
-
return
|
|
1985
|
+
return Re(0, 0, t.width, t.height);
|
|
1962
1986
|
}
|
|
1963
|
-
function
|
|
1987
|
+
function Da(e) {
|
|
1964
1988
|
var t = e.clientWidth, n = e.clientHeight;
|
|
1965
1989
|
if (!t && !n)
|
|
1966
1990
|
return Pt;
|
|
1967
|
-
var a = re(e).getComputedStyle(e), i = Fa(a),
|
|
1968
|
-
if (a.boxSizing === "border-box" && (Math.round(
|
|
1969
|
-
var
|
|
1970
|
-
Math.abs(
|
|
1991
|
+
var a = re(e).getComputedStyle(e), i = Fa(a), l = i.left + i.right, s = i.top + i.bottom, u = Se(a.width), v = Se(a.height);
|
|
1992
|
+
if (a.boxSizing === "border-box" && (Math.round(u + l) !== t && (u -= it(a, "left", "right") + l), Math.round(v + s) !== n && (v -= it(a, "top", "bottom") + s)), !Na(e)) {
|
|
1993
|
+
var c = Math.round(u + l) - t, O = Math.round(v + s) - n;
|
|
1994
|
+
Math.abs(c) !== 1 && (u -= c), Math.abs(O) !== 1 && (v -= O);
|
|
1971
1995
|
}
|
|
1972
|
-
return
|
|
1996
|
+
return Re(i.left, i.top, u, v);
|
|
1973
1997
|
}
|
|
1974
|
-
var
|
|
1998
|
+
var za = function() {
|
|
1975
1999
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
1976
2000
|
return e instanceof re(e).SVGGraphicsElement;
|
|
1977
2001
|
} : function(e) {
|
|
1978
2002
|
return e instanceof re(e).SVGElement && typeof e.getBBox == "function";
|
|
1979
2003
|
};
|
|
1980
2004
|
}();
|
|
1981
|
-
function za(e) {
|
|
1982
|
-
return e === re(e).document.documentElement;
|
|
1983
|
-
}
|
|
1984
2005
|
function Na(e) {
|
|
1985
|
-
return
|
|
2006
|
+
return e === re(e).document.documentElement;
|
|
1986
2007
|
}
|
|
1987
2008
|
function Ha(e) {
|
|
1988
|
-
|
|
1989
|
-
|
|
2009
|
+
return Pe ? za(e) ? La(e) : Da(e) : Pt;
|
|
2010
|
+
}
|
|
2011
|
+
function _a(e) {
|
|
2012
|
+
var t = e.x, n = e.y, a = e.width, i = e.height, l = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, s = Object.create(l.prototype);
|
|
2013
|
+
return Tt(s, {
|
|
1990
2014
|
x: t,
|
|
1991
2015
|
y: n,
|
|
1992
2016
|
width: a,
|
|
@@ -1995,39 +2019,39 @@ function Ha(e) {
|
|
|
1995
2019
|
right: t + a,
|
|
1996
2020
|
bottom: i + n,
|
|
1997
2021
|
left: t
|
|
1998
|
-
}),
|
|
2022
|
+
}), s;
|
|
1999
2023
|
}
|
|
2000
|
-
function
|
|
2024
|
+
function Re(e, t, n, a) {
|
|
2001
2025
|
return { x: e, y: t, width: n, height: a };
|
|
2002
2026
|
}
|
|
2003
|
-
var
|
|
2027
|
+
var Va = (
|
|
2004
2028
|
/** @class */
|
|
2005
2029
|
function() {
|
|
2006
2030
|
function e(t) {
|
|
2007
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
2031
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Re(0, 0, 0, 0), this.target = t;
|
|
2008
2032
|
}
|
|
2009
2033
|
return e.prototype.isActive = function() {
|
|
2010
|
-
var t =
|
|
2034
|
+
var t = Ha(this.target);
|
|
2011
2035
|
return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
|
|
2012
2036
|
}, e.prototype.broadcastRect = function() {
|
|
2013
2037
|
var t = this.contentRect_;
|
|
2014
2038
|
return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
|
|
2015
2039
|
}, e;
|
|
2016
2040
|
}()
|
|
2017
|
-
),
|
|
2041
|
+
), Aa = (
|
|
2018
2042
|
/** @class */
|
|
2019
2043
|
function() {
|
|
2020
2044
|
function e(t, n) {
|
|
2021
|
-
var a =
|
|
2022
|
-
|
|
2045
|
+
var a = _a(n);
|
|
2046
|
+
Tt(this, { target: t, contentRect: a });
|
|
2023
2047
|
}
|
|
2024
2048
|
return e;
|
|
2025
2049
|
}()
|
|
2026
|
-
),
|
|
2050
|
+
), Ea = (
|
|
2027
2051
|
/** @class */
|
|
2028
2052
|
function() {
|
|
2029
2053
|
function e(t, n, a) {
|
|
2030
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
2054
|
+
if (this.activeObservations_ = [], this.observations_ = new $t(), typeof t != "function")
|
|
2031
2055
|
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
2032
2056
|
this.callback_ = t, this.controller_ = n, this.callbackCtx_ = a;
|
|
2033
2057
|
}
|
|
@@ -2038,7 +2062,7 @@ var _a = (
|
|
|
2038
2062
|
if (!(t instanceof re(t).Element))
|
|
2039
2063
|
throw new TypeError('parameter 1 is not of type "Element".');
|
|
2040
2064
|
var n = this.observations_;
|
|
2041
|
-
n.has(t) || (n.set(t, new
|
|
2065
|
+
n.has(t) || (n.set(t, new Va(t)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
2042
2066
|
}
|
|
2043
2067
|
}, e.prototype.unobserve = function(t) {
|
|
2044
2068
|
if (!arguments.length)
|
|
@@ -2059,7 +2083,7 @@ var _a = (
|
|
|
2059
2083
|
}, e.prototype.broadcastActive = function() {
|
|
2060
2084
|
if (this.hasActive()) {
|
|
2061
2085
|
var t = this.callbackCtx_, n = this.activeObservations_.map(function(a) {
|
|
2062
|
-
return new
|
|
2086
|
+
return new Aa(a.target, a.broadcastRect());
|
|
2063
2087
|
});
|
|
2064
2088
|
this.callback_.call(t, n, t), this.clearActive();
|
|
2065
2089
|
}
|
|
@@ -2069,7 +2093,7 @@ var _a = (
|
|
|
2069
2093
|
return this.activeObservations_.length > 0;
|
|
2070
2094
|
}, e;
|
|
2071
2095
|
}()
|
|
2072
|
-
),
|
|
2096
|
+
), Ft = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new $t(), Lt = (
|
|
2073
2097
|
/** @class */
|
|
2074
2098
|
function() {
|
|
2075
2099
|
function e(t) {
|
|
@@ -2077,8 +2101,8 @@ var _a = (
|
|
|
2077
2101
|
throw new TypeError("Cannot call a class as a function.");
|
|
2078
2102
|
if (!arguments.length)
|
|
2079
2103
|
throw new TypeError("1 argument required, but only 0 present.");
|
|
2080
|
-
var n =
|
|
2081
|
-
|
|
2104
|
+
var n = Pa.getInstance(), a = new Ea(t, n, this);
|
|
2105
|
+
Ft.set(this, a);
|
|
2082
2106
|
}
|
|
2083
2107
|
return e;
|
|
2084
2108
|
}()
|
|
@@ -2088,21 +2112,21 @@ var _a = (
|
|
|
2088
2112
|
"unobserve",
|
|
2089
2113
|
"disconnect"
|
|
2090
2114
|
].forEach(function(e) {
|
|
2091
|
-
|
|
2115
|
+
Lt.prototype[e] = function() {
|
|
2092
2116
|
var t;
|
|
2093
|
-
return (t =
|
|
2117
|
+
return (t = Ft.get(this))[e].apply(t, arguments);
|
|
2094
2118
|
};
|
|
2095
2119
|
});
|
|
2096
|
-
var
|
|
2097
|
-
return typeof
|
|
2120
|
+
var ja = function() {
|
|
2121
|
+
return typeof we.ResizeObserver < "u" ? we.ResizeObserver : Lt;
|
|
2098
2122
|
}();
|
|
2099
|
-
const
|
|
2123
|
+
const Wa = (e) => {
|
|
2100
2124
|
var t;
|
|
2101
2125
|
let n = ((t = e == null ? void 0 : e.vnode) === null || t === void 0 ? void 0 : t.el) || e && (e.$el || e);
|
|
2102
2126
|
for (; n && !n.tagName; )
|
|
2103
2127
|
n = n.nextSibling;
|
|
2104
2128
|
return n;
|
|
2105
|
-
},
|
|
2129
|
+
}, Ka = H({
|
|
2106
2130
|
compatConfig: {
|
|
2107
2131
|
MODE: 3
|
|
2108
2132
|
},
|
|
@@ -2116,66 +2140,66 @@ const ja = (e) => {
|
|
|
2116
2140
|
let {
|
|
2117
2141
|
slots: n
|
|
2118
2142
|
} = t;
|
|
2119
|
-
const a =
|
|
2143
|
+
const a = ze({
|
|
2120
2144
|
width: 0,
|
|
2121
2145
|
height: 0,
|
|
2122
2146
|
offsetHeight: 0,
|
|
2123
2147
|
offsetWidth: 0
|
|
2124
2148
|
});
|
|
2125
|
-
let i = null,
|
|
2126
|
-
const
|
|
2127
|
-
|
|
2128
|
-
},
|
|
2149
|
+
let i = null, l = null;
|
|
2150
|
+
const s = () => {
|
|
2151
|
+
l && (l.disconnect(), l = null);
|
|
2152
|
+
}, u = (O) => {
|
|
2129
2153
|
const {
|
|
2130
|
-
onResize:
|
|
2131
|
-
} = e,
|
|
2132
|
-
width:
|
|
2133
|
-
height:
|
|
2134
|
-
} =
|
|
2154
|
+
onResize: h
|
|
2155
|
+
} = e, p = O[0].target, {
|
|
2156
|
+
width: r,
|
|
2157
|
+
height: y
|
|
2158
|
+
} = p.getBoundingClientRect(), {
|
|
2135
2159
|
offsetWidth: I,
|
|
2136
|
-
offsetHeight:
|
|
2137
|
-
} =
|
|
2138
|
-
if (a.width !==
|
|
2139
|
-
const
|
|
2140
|
-
width:
|
|
2141
|
-
height:
|
|
2160
|
+
offsetHeight: R
|
|
2161
|
+
} = p, x = Math.floor(r), m = Math.floor(y);
|
|
2162
|
+
if (a.width !== x || a.height !== m || a.offsetWidth !== I || a.offsetHeight !== R) {
|
|
2163
|
+
const g = {
|
|
2164
|
+
width: x,
|
|
2165
|
+
height: m,
|
|
2142
2166
|
offsetWidth: I,
|
|
2143
|
-
offsetHeight:
|
|
2167
|
+
offsetHeight: R
|
|
2144
2168
|
};
|
|
2145
|
-
ue(a,
|
|
2146
|
-
|
|
2169
|
+
ue(a, g), h && Promise.resolve().then(() => {
|
|
2170
|
+
h(ue(ue({}, g), {
|
|
2147
2171
|
offsetWidth: I,
|
|
2148
|
-
offsetHeight:
|
|
2149
|
-
}),
|
|
2172
|
+
offsetHeight: R
|
|
2173
|
+
}), p);
|
|
2150
2174
|
});
|
|
2151
2175
|
}
|
|
2152
|
-
},
|
|
2176
|
+
}, v = Et(), c = () => {
|
|
2153
2177
|
const {
|
|
2154
|
-
disabled:
|
|
2178
|
+
disabled: O
|
|
2155
2179
|
} = e;
|
|
2156
|
-
if (
|
|
2157
|
-
|
|
2180
|
+
if (O) {
|
|
2181
|
+
s();
|
|
2158
2182
|
return;
|
|
2159
2183
|
}
|
|
2160
|
-
const
|
|
2161
|
-
|
|
2184
|
+
const h = Wa(v);
|
|
2185
|
+
h !== i && (s(), i = h), !l && h && (l = new ja(u), l.observe(h));
|
|
2162
2186
|
};
|
|
2163
|
-
return
|
|
2164
|
-
|
|
2187
|
+
return jt(() => {
|
|
2188
|
+
c();
|
|
2189
|
+
}), Wt(() => {
|
|
2190
|
+
c();
|
|
2165
2191
|
}), Kt(() => {
|
|
2166
|
-
|
|
2167
|
-
}), Ut(() => {
|
|
2168
|
-
d();
|
|
2192
|
+
s();
|
|
2169
2193
|
}), le(() => e.disabled, () => {
|
|
2170
|
-
|
|
2194
|
+
c();
|
|
2171
2195
|
}, {
|
|
2172
2196
|
flush: "post"
|
|
2173
2197
|
}), () => {
|
|
2174
|
-
var
|
|
2175
|
-
return (
|
|
2198
|
+
var O;
|
|
2199
|
+
return (O = n.default) === null || O === void 0 ? void 0 : O.call(n)[0];
|
|
2176
2200
|
};
|
|
2177
2201
|
}
|
|
2178
|
-
}),
|
|
2202
|
+
}), Ua = (e) => ({
|
|
2179
2203
|
[`${e.proComponentsCls}-header`]: {
|
|
2180
2204
|
"&-light": {
|
|
2181
2205
|
[`${e.componentCls}-logo`]: {
|
|
@@ -2258,11 +2282,11 @@ const ja = (e) => {
|
|
|
2258
2282
|
marginInlineEnd: 0
|
|
2259
2283
|
}
|
|
2260
2284
|
}
|
|
2261
|
-
}),
|
|
2262
|
-
...
|
|
2285
|
+
}), Dt = {
|
|
2286
|
+
...G,
|
|
2263
2287
|
...Ge
|
|
2264
|
-
},
|
|
2265
|
-
props:
|
|
2288
|
+
}, Xa = (e, t) => e === !1 ? null : e ? e(t, null) : t, Ga = /* @__PURE__ */ H({
|
|
2289
|
+
props: Dt,
|
|
2266
2290
|
setup(e) {
|
|
2267
2291
|
const t = ve("auto"), n = ({
|
|
2268
2292
|
width: a
|
|
@@ -2277,7 +2301,7 @@ const ja = (e) => {
|
|
|
2277
2301
|
style: {
|
|
2278
2302
|
paddingRight: "8px"
|
|
2279
2303
|
}
|
|
2280
|
-
}, [o(
|
|
2304
|
+
}, [o(Ka, {
|
|
2281
2305
|
onResize: n
|
|
2282
2306
|
}, {
|
|
2283
2307
|
default: () => [e.rightContentRender && typeof e.rightContentRender == "function" ? o("div", null, [e.rightContentRender({
|
|
@@ -2285,54 +2309,54 @@ const ja = (e) => {
|
|
|
2285
2309
|
})]) : o("div", null, null)]
|
|
2286
2310
|
})])]);
|
|
2287
2311
|
}
|
|
2288
|
-
}),
|
|
2289
|
-
props:
|
|
2312
|
+
}), Ya = /* @__PURE__ */ H({
|
|
2313
|
+
props: Dt,
|
|
2290
2314
|
inheritAttrs: !1,
|
|
2291
2315
|
setup(e, {
|
|
2292
2316
|
slots: t,
|
|
2293
2317
|
emit: n
|
|
2294
2318
|
}) {
|
|
2295
|
-
const a =
|
|
2319
|
+
const a = _e(), {
|
|
2296
2320
|
token: i
|
|
2297
|
-
} =
|
|
2298
|
-
getPrefixCls:
|
|
2299
|
-
openKeys:
|
|
2300
|
-
selectedKeys:
|
|
2321
|
+
} = Me(), {
|
|
2322
|
+
getPrefixCls: l,
|
|
2323
|
+
openKeys: s,
|
|
2324
|
+
selectedKeys: u
|
|
2301
2325
|
} = J(), {
|
|
2302
|
-
width:
|
|
2303
|
-
} = Sn(),
|
|
2326
|
+
width: v
|
|
2327
|
+
} = Sn(), c = l({
|
|
2304
2328
|
suffixCls: "global-header",
|
|
2305
2329
|
isPor: !0
|
|
2306
2330
|
}), {
|
|
2307
|
-
wrapSSR:
|
|
2308
|
-
hashId:
|
|
2309
|
-
} = Z("ProGlobalHeader", [
|
|
2310
|
-
[`${
|
|
2311
|
-
[`${
|
|
2312
|
-
[`${
|
|
2313
|
-
})),
|
|
2314
|
-
var
|
|
2331
|
+
wrapSSR: O,
|
|
2332
|
+
hashId: h
|
|
2333
|
+
} = Z("ProGlobalHeader", [Ua], c), p = w(() => ({
|
|
2334
|
+
[`${h.value}`]: !0,
|
|
2335
|
+
[`${c}`]: !0,
|
|
2336
|
+
[`${c}-${e.layout}`]: !0
|
|
2337
|
+
})), r = (x) => {
|
|
2338
|
+
var m;
|
|
2315
2339
|
if (a.currentRoute) {
|
|
2316
|
-
const
|
|
2317
|
-
e.onSelect &&
|
|
2340
|
+
const g = a.currentRoute.value.matched.concat();
|
|
2341
|
+
e.onSelect && x === "select" && e.onSelect(g.filter((b) => b.name !== "index").map((b) => b.path)), e.onOpenKeys && x === "openKeys" && ((m = e.onOpenKeys) == null || m.call(e, g.filter((b) => b.path !== a.currentRoute.value.path).map((b) => b.path)));
|
|
2318
2342
|
}
|
|
2319
|
-
},
|
|
2343
|
+
}, y = () => {
|
|
2320
2344
|
n("collapse", !e.collapsed);
|
|
2321
|
-
}, I = w(() => e.collapsedButtonRender ||
|
|
2322
|
-
var
|
|
2345
|
+
}, I = w(() => e.collapsedButtonRender || It), R = () => {
|
|
2346
|
+
var x;
|
|
2323
2347
|
return o(q, null, [e.layout === "mix" && !e.isMobile && e.splitMenus ? o("div", {
|
|
2324
2348
|
style: {
|
|
2325
2349
|
flex: 1
|
|
2326
2350
|
},
|
|
2327
|
-
class: [`${
|
|
2328
|
-
}, [o(
|
|
2351
|
+
class: [`${c}-menu`, h.value]
|
|
2352
|
+
}, [o(Ne, {
|
|
2329
2353
|
theme: {
|
|
2330
2354
|
components: {
|
|
2331
2355
|
Layout: {
|
|
2332
2356
|
headerBg: "transparent",
|
|
2333
2357
|
bodyBg: "transparent"
|
|
2334
2358
|
},
|
|
2335
|
-
Menu:
|
|
2359
|
+
Menu: xt({
|
|
2336
2360
|
radiusItem: 4,
|
|
2337
2361
|
colorActiveBarWidth: 0,
|
|
2338
2362
|
colorActiveBarHeight: 2,
|
|
@@ -2342,139 +2366,139 @@ const ja = (e) => {
|
|
|
2342
2366
|
}
|
|
2343
2367
|
}
|
|
2344
2368
|
}, {
|
|
2345
|
-
default: () => [o(
|
|
2369
|
+
default: () => [o(Ct, X({
|
|
2346
2370
|
theme: e.theme,
|
|
2347
2371
|
mode: e.mode,
|
|
2348
2372
|
collapsed: e.collapsed,
|
|
2349
2373
|
menuData: e.menuData,
|
|
2350
|
-
openKeys:
|
|
2351
|
-
selectedKeys:
|
|
2374
|
+
openKeys: s.value,
|
|
2375
|
+
selectedKeys: u.value,
|
|
2352
2376
|
iconfontUrl: e.iconfontUrl,
|
|
2353
2377
|
menuItemRender: e.menuItemRender,
|
|
2354
2378
|
subMenuItemRender: e.subMenuItemRender,
|
|
2355
2379
|
class: {
|
|
2356
2380
|
"top-nav-menu": e.mode === "horizontal",
|
|
2357
|
-
[`${
|
|
2381
|
+
[`${h.value}`]: !0
|
|
2358
2382
|
}
|
|
2359
2383
|
}, {
|
|
2360
|
-
"onUpdate:openKeys": () =>
|
|
2361
|
-
"onUpdate:selectedKeys": () =>
|
|
2384
|
+
"onUpdate:openKeys": () => r("openKeys"),
|
|
2385
|
+
"onUpdate:selectedKeys": () => r("select")
|
|
2362
2386
|
}), null)]
|
|
2363
2387
|
})]) : o("div", {
|
|
2364
2388
|
style: {
|
|
2365
2389
|
flex: 1
|
|
2366
2390
|
}
|
|
2367
|
-
}, [(
|
|
2391
|
+
}, [(x = t.default) == null ? void 0 : x.call(t)]), e.layout !== "simple" && o(Ga, X(e, {
|
|
2368
2392
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
2369
2393
|
rightContentRender: e.rightContentRender
|
|
2370
2394
|
}), null)]);
|
|
2371
2395
|
};
|
|
2372
2396
|
return () => {
|
|
2373
|
-
const
|
|
2397
|
+
const x = o("span", {
|
|
2374
2398
|
key: "logo",
|
|
2375
2399
|
onClick: () => {
|
|
2376
|
-
var
|
|
2377
|
-
return (
|
|
2400
|
+
var m;
|
|
2401
|
+
return (m = e.onMenuHeaderClick) == null ? void 0 : m.call(e);
|
|
2378
2402
|
},
|
|
2379
|
-
class: [`${
|
|
2380
|
-
}, [o("a", null, [
|
|
2381
|
-
return
|
|
2382
|
-
class:
|
|
2383
|
-
}, [e.isMobile ? o(q, null, [
|
|
2384
|
-
class: `${
|
|
2385
|
-
onClick:
|
|
2386
|
-
}, [U(I)(e.collapsed)]),
|
|
2403
|
+
class: [`${c}-logo`, e.isMobile ? "mobile" : "", h.value]
|
|
2404
|
+
}, [o("a", null, [St(e.logo)])]);
|
|
2405
|
+
return O(o("div", {
|
|
2406
|
+
class: p.value
|
|
2407
|
+
}, [e.isMobile ? o(q, null, [Xa(e.menuHeaderRender, x), e.isMobile && U(I) && o("span", {
|
|
2408
|
+
class: `${c}-collapsed-button ${h.value}`,
|
|
2409
|
+
onClick: y
|
|
2410
|
+
}, [U(I)(e.collapsed)]), R()]) : e.layout === "mix" || e.layout === "wide" ? o(q, null, [o("div", {
|
|
2387
2411
|
style: {
|
|
2388
2412
|
width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
|
|
2389
|
-
padding: e.layout === "wide" &&
|
|
2413
|
+
padding: e.layout === "wide" && v.value < e.wideWidth ? "0 50px" : void 0
|
|
2390
2414
|
},
|
|
2391
|
-
class: `${
|
|
2415
|
+
class: `${c}-main ${h.value}`
|
|
2392
2416
|
}, [o("div", {
|
|
2393
|
-
class: `${
|
|
2417
|
+
class: `${c}-main-left ${h.value}`
|
|
2394
2418
|
}, [o(Xe, X(e, {
|
|
2395
2419
|
renderKey: "headerTitleRender"
|
|
2396
|
-
}), null)]),
|
|
2420
|
+
}), null)]), R()])]) : R()]));
|
|
2397
2421
|
};
|
|
2398
2422
|
}
|
|
2399
2423
|
});
|
|
2400
|
-
function
|
|
2424
|
+
function qa(e) {
|
|
2401
2425
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
2402
2426
|
}
|
|
2403
2427
|
const {
|
|
2404
2428
|
Header: lt
|
|
2405
|
-
} = de,
|
|
2429
|
+
} = de, Fe = /* @__PURE__ */ H({
|
|
2406
2430
|
inheritAttrs: !1,
|
|
2407
|
-
props:
|
|
2431
|
+
props: Mt,
|
|
2408
2432
|
setup(e) {
|
|
2409
2433
|
const {
|
|
2410
2434
|
theme: t,
|
|
2411
2435
|
isMobile: n,
|
|
2412
2436
|
fixedHeader: a,
|
|
2413
2437
|
headerHeight: i,
|
|
2414
|
-
layout:
|
|
2415
|
-
onCollapse:
|
|
2416
|
-
splitMenus:
|
|
2417
|
-
} =
|
|
2418
|
-
getPrefixCls:
|
|
2419
|
-
menuData:
|
|
2420
|
-
} = J(),
|
|
2438
|
+
layout: l,
|
|
2439
|
+
onCollapse: s,
|
|
2440
|
+
splitMenus: u
|
|
2441
|
+
} = Ie(e), {
|
|
2442
|
+
getPrefixCls: v,
|
|
2443
|
+
menuData: c
|
|
2444
|
+
} = J(), O = v({
|
|
2421
2445
|
suffixCls: "header",
|
|
2422
2446
|
isPor: !0
|
|
2423
|
-
}),
|
|
2447
|
+
}), h = v({
|
|
2424
2448
|
suffixCls: "fixed-header",
|
|
2425
2449
|
isPor: !0
|
|
2426
2450
|
}), {
|
|
2427
|
-
wrapSSR:
|
|
2428
|
-
hashId:
|
|
2429
|
-
} = Z("ProLayoutHeader", [
|
|
2430
|
-
[`${
|
|
2431
|
-
[`${
|
|
2432
|
-
[`${
|
|
2433
|
-
[`${
|
|
2434
|
-
})),
|
|
2435
|
-
const
|
|
2436
|
-
theme:
|
|
2451
|
+
wrapSSR: p,
|
|
2452
|
+
hashId: r
|
|
2453
|
+
} = Z("ProLayoutHeader", [Oa], O), y = w(() => l.value === "wide"), I = w(() => a.value), R = w(() => l.value === "mix" || y.value), x = w(() => l.value === "side" || l.value === "simple"), m = w(() => x.value && "light" || t.value), g = w(() => ({
|
|
2454
|
+
[`${r.value}`]: !0,
|
|
2455
|
+
[`${O}-${m.value}`]: !0,
|
|
2456
|
+
[`${O}`]: !0,
|
|
2457
|
+
[`${h}`]: I.value
|
|
2458
|
+
})), b = w(() => I.value && !n.value), $ = w(() => u.value ? c.value && Dn(c.value) || [] : []), C = w(() => x.value && b.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), M = w(() => I.value ? 0 : void 0), T = () => {
|
|
2459
|
+
const P = o(Ya, X(e, {
|
|
2460
|
+
theme: m.value,
|
|
2437
2461
|
mode: "horizontal",
|
|
2438
|
-
onCollapse:
|
|
2439
|
-
menuData:
|
|
2462
|
+
onCollapse: s.value,
|
|
2463
|
+
menuData: $.value
|
|
2440
2464
|
}), {
|
|
2441
|
-
default: () => [
|
|
2465
|
+
default: () => [R.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
|
|
2442
2466
|
});
|
|
2443
|
-
return e.headerRender ? e.headerRender(e,
|
|
2467
|
+
return e.headerRender ? e.headerRender(e, P) : P;
|
|
2444
2468
|
};
|
|
2445
2469
|
return () => {
|
|
2446
|
-
let
|
|
2447
|
-
return
|
|
2448
|
-
theme:
|
|
2470
|
+
let P;
|
|
2471
|
+
return p(o(q, null, [I.value && !y.value && o(lt, {
|
|
2472
|
+
theme: m.value,
|
|
2449
2473
|
style: {
|
|
2450
2474
|
height: `${i.value}px`,
|
|
2451
2475
|
lineHeight: `${i.value}px`,
|
|
2452
2476
|
background: "transparent"
|
|
2453
2477
|
}
|
|
2454
2478
|
}, null), o(lt, {
|
|
2455
|
-
theme:
|
|
2456
|
-
class:
|
|
2479
|
+
theme: m.value,
|
|
2480
|
+
class: g.value,
|
|
2457
2481
|
style: {
|
|
2458
2482
|
height: `${i.value}px`,
|
|
2459
2483
|
lineHeight: `${i.value}px`,
|
|
2460
|
-
width:
|
|
2461
|
-
zIndex:
|
|
2462
|
-
right:
|
|
2484
|
+
width: C.value,
|
|
2485
|
+
zIndex: x.value ? 100 : 101,
|
|
2486
|
+
right: M.value
|
|
2463
2487
|
}
|
|
2464
|
-
},
|
|
2465
|
-
default: () => [
|
|
2488
|
+
}, qa(P = T()) ? P : {
|
|
2489
|
+
default: () => [P]
|
|
2466
2490
|
})]));
|
|
2467
2491
|
};
|
|
2468
2492
|
}
|
|
2469
|
-
}),
|
|
2493
|
+
}), Za = /* @__PURE__ */ H({
|
|
2470
2494
|
name: "BaseProLayout",
|
|
2471
2495
|
inheritAttrs: !1,
|
|
2472
2496
|
components: {
|
|
2473
|
-
GlobalHeader:
|
|
2474
|
-
GlobalFooter:
|
|
2475
|
-
SiderMenuWrapper:
|
|
2497
|
+
GlobalHeader: Fe,
|
|
2498
|
+
GlobalFooter: Te,
|
|
2499
|
+
SiderMenuWrapper: $e
|
|
2476
2500
|
},
|
|
2477
|
-
props:
|
|
2501
|
+
props: kt,
|
|
2478
2502
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2479
2503
|
setup(e, {
|
|
2480
2504
|
slots: t
|
|
@@ -2485,88 +2509,88 @@ const {
|
|
|
2485
2509
|
}), {
|
|
2486
2510
|
wrapSSR: a,
|
|
2487
2511
|
hashId: i
|
|
2488
|
-
} = Z("ProLayout", [
|
|
2489
|
-
token:
|
|
2490
|
-
} =
|
|
2491
|
-
var
|
|
2492
|
-
return (
|
|
2512
|
+
} = Z("ProLayout", [ga, ya], n), l = Cn(), {
|
|
2513
|
+
token: s
|
|
2514
|
+
} = Me(), u = w(() => {
|
|
2515
|
+
var m;
|
|
2516
|
+
return (m = s == null ? void 0 : s.value) == null ? void 0 : m.colorPrimary;
|
|
2493
2517
|
});
|
|
2494
|
-
|
|
2495
|
-
|
|
2518
|
+
Ut(() => {
|
|
2519
|
+
u.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", u.value);
|
|
2496
2520
|
});
|
|
2497
|
-
const
|
|
2521
|
+
const v = w(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), c = w(() => e.layout === "wide"), O = w(() => v.value), h = w(() => e.collapsed ? e.collapsedWidth : e.siderWidth), p = w(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), r = w(() => (l.value === "sm" || l.value === "xs") && !e.disableMobile && !c.value), y = ze({
|
|
2498
2522
|
position: "relative"
|
|
2499
2523
|
});
|
|
2500
|
-
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (
|
|
2501
|
-
const I = (
|
|
2502
|
-
matchMenuKeys:
|
|
2503
|
-
}), null),
|
|
2524
|
+
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (y.minHeight = 0);
|
|
2525
|
+
const I = (m, g) => m.headerRender === !1 || m.pure ? null : o(Fe, X(m, {
|
|
2526
|
+
matchMenuKeys: g || []
|
|
2527
|
+
}), null), R = w(() => ({
|
|
2504
2528
|
...e.breadcrumb,
|
|
2505
2529
|
itemRender: K(t, e, "breadcrumbRender")
|
|
2506
|
-
})),
|
|
2507
|
-
return
|
|
2530
|
+
})), x = w(() => O.value && e.selectedKeys ? zn(e.menuData, e.selectedKeys[0]) : []);
|
|
2531
|
+
return Wn({
|
|
2508
2532
|
getPrefixCls: ce,
|
|
2509
|
-
...ae(
|
|
2510
|
-
theme:
|
|
2511
|
-
hasContentWide:
|
|
2512
|
-
isMobile:
|
|
2513
|
-
siderWidth:
|
|
2514
|
-
breadcrumb:
|
|
2515
|
-
flatMenuData:
|
|
2516
|
-
hasSide:
|
|
2517
|
-
flatMenu:
|
|
2533
|
+
...ae(Ie(e), ["layout", "waterMark", "menuData", "levelMenuData", "openKeys", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader"].concat(Object.keys(me))),
|
|
2534
|
+
theme: p.value,
|
|
2535
|
+
hasContentWide: c,
|
|
2536
|
+
isMobile: r,
|
|
2537
|
+
siderWidth: h,
|
|
2538
|
+
breadcrumb: R,
|
|
2539
|
+
flatMenuData: x,
|
|
2540
|
+
hasSide: v,
|
|
2541
|
+
flatMenu: O,
|
|
2518
2542
|
pageHeaderRender: w(() => K(t, e, "pageHeaderRender"))
|
|
2519
2543
|
}), () => {
|
|
2520
|
-
var
|
|
2521
|
-
const
|
|
2522
|
-
menuItemRender:
|
|
2523
|
-
subMenuItemRender:
|
|
2544
|
+
var W;
|
|
2545
|
+
const m = K(t, e, "collapsedButtonRender"), g = K(t, e, "headerContentRender"), b = K(t, e, "rightContentRender"), $ = K(t, e, "headerRender"), C = K(t, e, "footerRender"), M = K(t, e, "links"), T = K(t, e, "copyrightRender"), P = K(t, e, "extraRightDropdownRender"), F = K(t, e, "menuHeaderRender"), _ = K(t, e, "menuExtraRender"), V = K(t, e, "menuContentRender"), D = K(t, e, "menuFooterRender"), Y = K(t, e, "menuItemRender"), f = K(t, e, "subMenuItemRender"), S = {
|
|
2546
|
+
menuItemRender: Y,
|
|
2547
|
+
subMenuItemRender: f
|
|
2524
2548
|
}, B = w(() => I({
|
|
2525
2549
|
...e,
|
|
2526
|
-
|
|
2527
|
-
hasSiderMenu:
|
|
2550
|
+
...S,
|
|
2551
|
+
hasSiderMenu: v.value,
|
|
2528
2552
|
menuData: e.menuData,
|
|
2529
|
-
isMobile: U(
|
|
2530
|
-
rightContentRender:
|
|
2531
|
-
extraRightDropdownRender:
|
|
2532
|
-
headerTitleRender:
|
|
2533
|
-
headerContentRender:
|
|
2534
|
-
headerRender:
|
|
2535
|
-
theme:
|
|
2536
|
-
}, e.matchMenuKeys)),
|
|
2553
|
+
isMobile: U(r),
|
|
2554
|
+
rightContentRender: b,
|
|
2555
|
+
extraRightDropdownRender: P,
|
|
2556
|
+
headerTitleRender: F,
|
|
2557
|
+
headerContentRender: g,
|
|
2558
|
+
headerRender: $,
|
|
2559
|
+
theme: p.value
|
|
2560
|
+
}, e.matchMenuKeys)), k = w(() => ({
|
|
2537
2561
|
[`${i.value}`]: !0,
|
|
2538
2562
|
[`${n}`]: !0,
|
|
2539
2563
|
[`${n}-${e.layout}`]: !0
|
|
2540
|
-
})),
|
|
2564
|
+
})), z = w(() => c.value ? {
|
|
2541
2565
|
minWidth: `${e.wideWidth}px`
|
|
2542
|
-
} : void 0),
|
|
2566
|
+
} : void 0), j = w(() => c.value ? {
|
|
2543
2567
|
width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
|
|
2544
2568
|
paddingTop: `${e.headerHeight + 20}px`,
|
|
2545
|
-
margin:
|
|
2546
|
-
} : void 0), E = w(() =>
|
|
2569
|
+
margin: c.value ? "0 auto" : void 0
|
|
2570
|
+
} : void 0), E = w(() => c.value ? {
|
|
2547
2571
|
minHeight: "835px"
|
|
2548
2572
|
} : {});
|
|
2549
|
-
return a(o(q, null, [e.pure ? (
|
|
2550
|
-
class:
|
|
2551
|
-
style:
|
|
2573
|
+
return a(o(q, null, [e.pure ? (W = t.default) == null ? void 0 : W.call(t) : o("div", {
|
|
2574
|
+
class: k.value,
|
|
2575
|
+
style: z.value
|
|
2552
2576
|
}, [o(de, {
|
|
2553
|
-
style:
|
|
2577
|
+
style: j.value
|
|
2554
2578
|
}, {
|
|
2555
|
-
default: () => [o(
|
|
2556
|
-
links:
|
|
2557
|
-
theme:
|
|
2558
|
-
isMobile:
|
|
2559
|
-
menuHeaderRender:
|
|
2560
|
-
menuContentRender:
|
|
2579
|
+
default: () => [o($e, X(je(e, ["pure", "theme"]), {
|
|
2580
|
+
links: M,
|
|
2581
|
+
theme: p.value,
|
|
2582
|
+
isMobile: r.value,
|
|
2583
|
+
menuHeaderRender: F,
|
|
2584
|
+
menuContentRender: V,
|
|
2561
2585
|
menuExtraRender: _,
|
|
2562
|
-
menuFooterRender:
|
|
2563
|
-
collapsedButtonRender:
|
|
2586
|
+
menuFooterRender: D,
|
|
2587
|
+
collapsedButtonRender: m
|
|
2564
2588
|
}), null), o(de, {
|
|
2565
|
-
style:
|
|
2589
|
+
style: y
|
|
2566
2590
|
}, {
|
|
2567
2591
|
default: () => [B.value, o(Ye, X({
|
|
2568
2592
|
hashId: i.value,
|
|
2569
|
-
isMobile:
|
|
2593
|
+
isMobile: r.value,
|
|
2570
2594
|
prefixCls: n,
|
|
2571
2595
|
collapsedWidth: e.collapsedWidth,
|
|
2572
2596
|
isChildrenLayout: e.isChildrenLayout,
|
|
@@ -2581,23 +2605,23 @@ const {
|
|
|
2581
2605
|
}
|
|
2582
2606
|
}, ae(e, ["onReloadPage", "onChangeTabs"])), {
|
|
2583
2607
|
default: () => {
|
|
2584
|
-
var
|
|
2585
|
-
return [(
|
|
2608
|
+
var N;
|
|
2609
|
+
return [(N = t.default) == null ? void 0 : N.call(t)];
|
|
2586
2610
|
}
|
|
2587
|
-
}),
|
|
2588
|
-
copyright:
|
|
2611
|
+
}), C === !1 ? null : C ? C(e) : o(Te, {
|
|
2612
|
+
copyright: T
|
|
2589
2613
|
}, null)]
|
|
2590
2614
|
})]
|
|
2591
2615
|
})])]));
|
|
2592
2616
|
};
|
|
2593
2617
|
}
|
|
2594
|
-
}),
|
|
2618
|
+
}), vl = /* @__PURE__ */ H({
|
|
2595
2619
|
components: {
|
|
2596
|
-
GlobalHeader:
|
|
2597
|
-
GlobalFooter:
|
|
2598
|
-
SiderMenuWrapper:
|
|
2620
|
+
GlobalHeader: Fe,
|
|
2621
|
+
GlobalFooter: Te,
|
|
2622
|
+
SiderMenuWrapper: $e
|
|
2599
2623
|
},
|
|
2600
|
-
props:
|
|
2624
|
+
props: kt,
|
|
2601
2625
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2602
2626
|
setup(e, {
|
|
2603
2627
|
slots: t,
|
|
@@ -2605,38 +2629,42 @@ const {
|
|
|
2605
2629
|
}) {
|
|
2606
2630
|
const a = w(() => e.theme !== void 0 ? {
|
|
2607
2631
|
dark: e.theme === "realDark"
|
|
2608
|
-
} : {}), i = (
|
|
2609
|
-
n("update:collapsed",
|
|
2610
|
-
},
|
|
2611
|
-
n("update:open-keys",
|
|
2612
|
-
},
|
|
2613
|
-
n("update:selected-keys",
|
|
2632
|
+
} : {}), i = (u) => {
|
|
2633
|
+
n("update:collapsed", u), n("collapse", u);
|
|
2634
|
+
}, l = (u) => {
|
|
2635
|
+
n("update:open-keys", u), n("openKeys", u);
|
|
2636
|
+
}, s = (u) => {
|
|
2637
|
+
n("update:selected-keys", u), n("select", u);
|
|
2614
2638
|
};
|
|
2615
|
-
return () => o(
|
|
2639
|
+
return () => o(Ne, {
|
|
2616
2640
|
theme: e.primaryColor ? {
|
|
2617
2641
|
token: {
|
|
2618
2642
|
colorPrimary: e.primaryColor
|
|
2619
2643
|
}
|
|
2620
2644
|
} : void 0
|
|
2621
2645
|
}, {
|
|
2622
|
-
default: () => [o(
|
|
2646
|
+
default: () => [o(mn, X({
|
|
2623
2647
|
token: e.token
|
|
2624
2648
|
}, a.value), {
|
|
2625
|
-
default: () => [o(
|
|
2626
|
-
onSelect:
|
|
2627
|
-
onOpenKeys:
|
|
2649
|
+
default: () => [o(Za, X(je(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
|
|
2650
|
+
onSelect: s,
|
|
2651
|
+
onOpenKeys: l,
|
|
2628
2652
|
onCollapse: i
|
|
2629
2653
|
}), t)]
|
|
2630
2654
|
})]
|
|
2631
2655
|
});
|
|
2632
2656
|
}
|
|
2633
|
-
}),
|
|
2634
|
-
|
|
2657
|
+
}), zt = (e, t, n) => e.map((a, i) => {
|
|
2658
|
+
var l;
|
|
2659
|
+
return a.meta && (a.meta.key = n ? `${n}-${i}` : `${i}`), a.path = Fn(a.path.replace("//", "/"), a.meta), a.children && a.children.length > 0 && (a.children = zt(a.children, t, (l = a.meta) == null ? void 0 : l.key)), t[`${a.path}`] = a, a;
|
|
2660
|
+
}), xl = (e) => {
|
|
2661
|
+
const t = e.find((i) => i.path === "/"), n = {}, a = zt((t == null ? void 0 : t.children) || [], n);
|
|
2635
2662
|
return {
|
|
2636
|
-
menuData:
|
|
2637
|
-
breadcrumb: n
|
|
2663
|
+
menuData: a,
|
|
2664
|
+
breadcrumb: n,
|
|
2665
|
+
levelMenuData: bn(a)
|
|
2638
2666
|
};
|
|
2639
|
-
},
|
|
2667
|
+
}, Nt = [
|
|
2640
2668
|
{
|
|
2641
2669
|
key: "light",
|
|
2642
2670
|
title: "亮色菜单风格"
|
|
@@ -2649,7 +2677,7 @@ const {
|
|
|
2649
2677
|
key: "realDark",
|
|
2650
2678
|
title: "暗黑模式"
|
|
2651
2679
|
}
|
|
2652
|
-
],
|
|
2680
|
+
], Ht = [
|
|
2653
2681
|
{
|
|
2654
2682
|
key: "side",
|
|
2655
2683
|
title: "侧边菜单布局"
|
|
@@ -2666,7 +2694,7 @@ const {
|
|
|
2666
2694
|
key: "simple",
|
|
2667
2695
|
title: "简单菜单布局"
|
|
2668
2696
|
}
|
|
2669
|
-
],
|
|
2697
|
+
], Ja = [
|
|
2670
2698
|
{
|
|
2671
2699
|
key: "header",
|
|
2672
2700
|
title: "顶部主题"
|
|
@@ -2675,7 +2703,7 @@ const {
|
|
|
2675
2703
|
key: "sider",
|
|
2676
2704
|
title: "左侧主题"
|
|
2677
2705
|
}
|
|
2678
|
-
],
|
|
2706
|
+
], Qa = (e) => ({
|
|
2679
2707
|
[e.componentCls]: {
|
|
2680
2708
|
[`${e.antCls}-drawer-content-wrapper`]: {
|
|
2681
2709
|
transform: "translate(100%)",
|
|
@@ -2858,12 +2886,12 @@ const {
|
|
|
2858
2886
|
const t = `${e.prefixCls}-block-checkbox`;
|
|
2859
2887
|
return o("div", {
|
|
2860
2888
|
class: [t, e.hashId]
|
|
2861
|
-
}, [e.list.map((n) => o(
|
|
2889
|
+
}, [e.list.map((n) => o(Oe, {
|
|
2862
2890
|
title: n.title,
|
|
2863
2891
|
key: n.key
|
|
2864
2892
|
}, {
|
|
2865
2893
|
default: () => [o("div", {
|
|
2866
|
-
class:
|
|
2894
|
+
class: bt(e.hashId, `${t}-item`, `${t}-item-${n.key}`, `${t}-${e.configType}-item`),
|
|
2867
2895
|
onClick: () => {
|
|
2868
2896
|
var a;
|
|
2869
2897
|
return (a = e.onChange) == null ? void 0 : a.call(e, n.key);
|
|
@@ -2881,7 +2909,7 @@ const {
|
|
|
2881
2909
|
}))]);
|
|
2882
2910
|
};
|
|
2883
2911
|
}
|
|
2884
|
-
}),
|
|
2912
|
+
}), eo = /* @__PURE__ */ H({
|
|
2885
2913
|
name: "ThemeColor",
|
|
2886
2914
|
inheritAttrs: !1,
|
|
2887
2915
|
props: {
|
|
@@ -2903,20 +2931,20 @@ const {
|
|
|
2903
2931
|
}, [(n = e.colorList) == null ? void 0 : n.map(({
|
|
2904
2932
|
key: a,
|
|
2905
2933
|
color: i,
|
|
2906
|
-
title:
|
|
2907
|
-
}) => a ? o(
|
|
2934
|
+
title: l
|
|
2935
|
+
}) => a ? o(Oe, {
|
|
2908
2936
|
key: i,
|
|
2909
|
-
title:
|
|
2937
|
+
title: l
|
|
2910
2938
|
}, {
|
|
2911
2939
|
default: () => {
|
|
2912
|
-
var
|
|
2940
|
+
var s, u;
|
|
2913
2941
|
return [o("div", {
|
|
2914
|
-
class: [`${t}-block ${e.hashId}`.trim(), ((
|
|
2942
|
+
class: [`${t}-block ${e.hashId}`.trim(), ((s = e.settingValue) == null ? void 0 : s.primaryColor) === i ? `${t}-block-checked` : ""],
|
|
2915
2943
|
style: {
|
|
2916
2944
|
backgroundColor: i
|
|
2917
2945
|
},
|
|
2918
2946
|
onClick: () => e.onChange && e.onChange(i)
|
|
2919
|
-
}, [((
|
|
2947
|
+
}, [((u = e.settingValue) == null ? void 0 : u.primaryColor) === i && o(yt, null, null)])];
|
|
2920
2948
|
}
|
|
2921
2949
|
}) : null)])]);
|
|
2922
2950
|
};
|
|
@@ -2939,7 +2967,7 @@ const {
|
|
|
2939
2967
|
size: "small",
|
|
2940
2968
|
renderItem: ({
|
|
2941
2969
|
item: t
|
|
2942
|
-
}) => o(
|
|
2970
|
+
}) => o(Oe, {
|
|
2943
2971
|
title: t.disabled ? t.disabledReason : "",
|
|
2944
2972
|
placement: "left"
|
|
2945
2973
|
}, {
|
|
@@ -2966,7 +2994,7 @@ const {
|
|
|
2966
2994
|
}]
|
|
2967
2995
|
}, null);
|
|
2968
2996
|
}
|
|
2969
|
-
}),
|
|
2997
|
+
}), to = (e) => ({
|
|
2970
2998
|
[e.componentCls]: {
|
|
2971
2999
|
padding: e.marginLG,
|
|
2972
3000
|
"&-title": {
|
|
@@ -2997,10 +3025,10 @@ const {
|
|
|
2997
3025
|
}
|
|
2998
3026
|
}
|
|
2999
3027
|
});
|
|
3000
|
-
function
|
|
3028
|
+
function no(e) {
|
|
3001
3029
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
3002
3030
|
}
|
|
3003
|
-
const
|
|
3031
|
+
const ao = /* @__PURE__ */ H({
|
|
3004
3032
|
name: "ThemeEditor",
|
|
3005
3033
|
props: {
|
|
3006
3034
|
settingValue: Object,
|
|
@@ -3013,23 +3041,23 @@ const no = /* @__PURE__ */ H({
|
|
|
3013
3041
|
suffixCls: "theme-editor",
|
|
3014
3042
|
isPor: !0
|
|
3015
3043
|
}), {
|
|
3016
|
-
wrapSSR:
|
|
3017
|
-
hashId:
|
|
3018
|
-
} = Z("ProThemeEditor", [
|
|
3019
|
-
token:
|
|
3020
|
-
} =
|
|
3021
|
-
var
|
|
3022
|
-
return (
|
|
3023
|
-
}),
|
|
3024
|
-
var
|
|
3044
|
+
wrapSSR: l,
|
|
3045
|
+
hashId: s
|
|
3046
|
+
} = Z("ProThemeEditor", [to], i), {
|
|
3047
|
+
token: u
|
|
3048
|
+
} = Me(), v = w(() => {
|
|
3049
|
+
var r;
|
|
3050
|
+
return (r = u.value) == null ? void 0 : r.layout;
|
|
3051
|
+
}), c = w(() => {
|
|
3052
|
+
var r, y, I, R, x, m, g, b, $, C, M, T, P, F, _, V, D, Y, f, S, B, k, z, j, E;
|
|
3025
3053
|
return [{
|
|
3026
3054
|
key: "colorBgMenu",
|
|
3027
3055
|
title: "全部背景",
|
|
3028
|
-
disabled: ((
|
|
3056
|
+
disabled: ((r = e.settingValue) == null ? void 0 : r.theme) === "dark" && ["mix", "wide"].includes((y = e.settingValue) == null ? void 0 : y.layout)
|
|
3029
3057
|
}, {
|
|
3030
3058
|
key: "colorDarkBgMenu",
|
|
3031
3059
|
title: "全部背景",
|
|
3032
|
-
disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((
|
|
3060
|
+
disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["side", "simple"].includes((x = e.settingValue) == null ? void 0 : x.layout)
|
|
3033
3061
|
}, {
|
|
3034
3062
|
key: "colorSubItemBg",
|
|
3035
3063
|
title: "子菜单背景",
|
|
@@ -3041,82 +3069,82 @@ const no = /* @__PURE__ */ H({
|
|
|
3041
3069
|
}, {
|
|
3042
3070
|
key: "colorBgMenuItemSelected",
|
|
3043
3071
|
title: "菜单选中背景",
|
|
3044
|
-
disabled: ((
|
|
3072
|
+
disabled: ((m = e.settingValue) == null ? void 0 : m.theme) === "dark" && ["mix", "wide"].includes((g = e.settingValue) == null ? void 0 : g.layout)
|
|
3045
3073
|
}, {
|
|
3046
3074
|
key: "colorDarkBgMenuItemSelected",
|
|
3047
3075
|
title: "菜单选中背景",
|
|
3048
|
-
disabled: ((
|
|
3076
|
+
disabled: ((b = e.settingValue) == null ? void 0 : b.theme) === "light" || (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["side", "simple"].includes((C = e.settingValue) == null ? void 0 : C.layout)
|
|
3049
3077
|
}, {
|
|
3050
3078
|
key: "colorTextMenu",
|
|
3051
3079
|
title: "菜单文字颜色",
|
|
3052
|
-
disabled: ((
|
|
3080
|
+
disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "dark" && ["mix", "wide"].includes((T = e.settingValue) == null ? void 0 : T.layout)
|
|
3053
3081
|
}, {
|
|
3054
3082
|
key: "colorDarkTextMenu",
|
|
3055
3083
|
title: "菜单文字颜色",
|
|
3056
|
-
disabled: ((
|
|
3084
|
+
disabled: ((P = e.settingValue) == null ? void 0 : P.theme) === "light" || ((F = e.settingValue) == null ? void 0 : F.theme) === "dark" && ["side", "simple"].includes((_ = e.settingValue) == null ? void 0 : _.layout)
|
|
3057
3085
|
}, {
|
|
3058
3086
|
key: "colorTextMenuHover",
|
|
3059
3087
|
title: "菜单文字移入颜色",
|
|
3060
|
-
disabled: ((
|
|
3088
|
+
disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
|
|
3061
3089
|
}, {
|
|
3062
3090
|
key: "colorDarkTextMenuHover",
|
|
3063
3091
|
title: "菜单文字移入颜色",
|
|
3064
|
-
disabled: ((
|
|
3092
|
+
disabled: ((Y = e.settingValue) == null ? void 0 : Y.theme) === "light" || ((f = e.settingValue) == null ? void 0 : f.theme) === "dark" && ["side", "simple"].includes((S = e.settingValue) == null ? void 0 : S.layout)
|
|
3065
3093
|
}, {
|
|
3066
3094
|
key: "colorTextMenuSelected",
|
|
3067
3095
|
title: "菜单文字选中颜色",
|
|
3068
|
-
disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "dark" && ["mix", "wide"].includes((
|
|
3096
|
+
disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "dark" && ["mix", "wide"].includes((k = e.settingValue) == null ? void 0 : k.layout)
|
|
3069
3097
|
}, {
|
|
3070
3098
|
key: "colorDarkTextMenuSelected",
|
|
3071
3099
|
title: "菜单文字选中颜色",
|
|
3072
|
-
disabled: ((
|
|
3100
|
+
disabled: ((z = e.settingValue) == null ? void 0 : z.theme) === "light" || ((j = e.settingValue) == null ? void 0 : j.theme) === "dark" && ["side", "simple"].includes((E = e.settingValue) == null ? void 0 : E.layout)
|
|
3073
3101
|
}];
|
|
3074
|
-
}),
|
|
3075
|
-
var
|
|
3102
|
+
}), O = w(() => {
|
|
3103
|
+
var r, y, I, R, x, m, g, b, $, C, M, T, P, F, _, V, D, Y, f, S, B, k, z, j, E, W, N, fe, qe, Ze, Je, Qe;
|
|
3076
3104
|
return [{
|
|
3077
3105
|
key: "colorBgMenu",
|
|
3078
3106
|
title: "全部背景",
|
|
3079
|
-
disabled: ((
|
|
3107
|
+
disabled: ((r = e.settingValue) == null ? void 0 : r.theme) === "dark" && ["side", "simple"].includes((y = e.settingValue) == null ? void 0 : y.layout)
|
|
3080
3108
|
}, {
|
|
3081
3109
|
key: "colorDarkBgMenu",
|
|
3082
3110
|
title: "全部背景",
|
|
3083
|
-
disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((
|
|
3111
|
+
disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["mix", "wide"].includes((x = e.settingValue) == null ? void 0 : x.layout)
|
|
3084
3112
|
}, {
|
|
3085
3113
|
key: "colorSubItemBg",
|
|
3086
3114
|
title: "子菜单背景",
|
|
3087
|
-
disabled: ((
|
|
3115
|
+
disabled: ((m = e.settingValue) == null ? void 0 : m.theme) === "dark" && ["side", "simple"].includes((g = e.settingValue) == null ? void 0 : g.layout)
|
|
3088
3116
|
}, {
|
|
3089
3117
|
key: "colorDarkSubItemBg",
|
|
3090
3118
|
title: "子菜单背景",
|
|
3091
|
-
disabled: ((
|
|
3119
|
+
disabled: ((b = e.settingValue) == null ? void 0 : b.theme) === "light" || (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["mix", "wide"].includes((C = e.settingValue) == null ? void 0 : C.layout)
|
|
3092
3120
|
}, {
|
|
3093
3121
|
key: "colorBgMenuItemHover",
|
|
3094
3122
|
title: "菜单移入背景",
|
|
3095
|
-
disabled: ((
|
|
3123
|
+
disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "dark" && ((T = e.settingValue) == null ? void 0 : T.layout) !== "mix"
|
|
3096
3124
|
}, {
|
|
3097
3125
|
key: "colorBgMenuItemSelected",
|
|
3098
3126
|
title: "菜单选中背景",
|
|
3099
|
-
disabled: ((
|
|
3127
|
+
disabled: ((P = e.settingValue) == null ? void 0 : P.theme) === "dark" && ((F = e.settingValue) == null ? void 0 : F.layout) !== "mix"
|
|
3100
3128
|
}, {
|
|
3101
3129
|
key: "colorDarkBgMenuItemSelected",
|
|
3102
3130
|
title: "菜单选中背景",
|
|
3103
|
-
disabled: ((_ = e.settingValue) == null ? void 0 : _.theme) === "light" || ((
|
|
3131
|
+
disabled: ((_ = e.settingValue) == null ? void 0 : _.theme) === "light" || ((V = e.settingValue) == null ? void 0 : V.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
|
|
3104
3132
|
}, {
|
|
3105
3133
|
key: "colorTextMenu",
|
|
3106
3134
|
title: "菜单文字颜色",
|
|
3107
|
-
disabled: ((
|
|
3135
|
+
disabled: ((Y = e.settingValue) == null ? void 0 : Y.theme) === "dark" && ((f = e.settingValue) == null ? void 0 : f.layout) !== "mix"
|
|
3108
3136
|
}, {
|
|
3109
3137
|
key: "colorDarkTextMenu",
|
|
3110
3138
|
title: "菜单文字颜色",
|
|
3111
|
-
disabled: ((
|
|
3139
|
+
disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "light" || ((B = e.settingValue) == null ? void 0 : B.theme) === "dark" && ["mix", "wide"].includes((k = e.settingValue) == null ? void 0 : k.layout)
|
|
3112
3140
|
}, {
|
|
3113
3141
|
key: "colorTextMenuHover",
|
|
3114
3142
|
title: "菜单文字移入颜色",
|
|
3115
|
-
disabled: ((
|
|
3143
|
+
disabled: ((z = e.settingValue) == null ? void 0 : z.theme) === "dark" && ((j = e.settingValue) == null ? void 0 : j.layout) !== "mix"
|
|
3116
3144
|
}, {
|
|
3117
3145
|
key: "colorDarkTextMenuHover",
|
|
3118
3146
|
title: "菜单文字移入颜色",
|
|
3119
|
-
disabled: ((E = e.settingValue) == null ? void 0 : E.theme) === "light" || ((
|
|
3147
|
+
disabled: ((E = e.settingValue) == null ? void 0 : E.theme) === "light" || ((W = e.settingValue) == null ? void 0 : W.theme) === "dark" && ["mix", "wide"].includes((N = e.settingValue) == null ? void 0 : N.layout)
|
|
3120
3148
|
}, {
|
|
3121
3149
|
key: "colorTextMenuSelected",
|
|
3122
3150
|
title: "菜单文字选中颜色",
|
|
@@ -3126,95 +3154,95 @@ const no = /* @__PURE__ */ H({
|
|
|
3126
3154
|
title: "菜单文字选中颜色",
|
|
3127
3155
|
disabled: ((Ze = e.settingValue) == null ? void 0 : Ze.theme) === "light" || ((Je = e.settingValue) == null ? void 0 : Je.theme) === "dark" && ["mix", "wide"].includes((Qe = e.settingValue) == null ? void 0 : Qe.layout)
|
|
3128
3156
|
}];
|
|
3129
|
-
}),
|
|
3130
|
-
var
|
|
3131
|
-
return (I = (
|
|
3157
|
+
}), h = w(() => n.value === "header" ? c.value : n.value === "sider" ? O.value : []), p = (r) => {
|
|
3158
|
+
var y, I;
|
|
3159
|
+
return (I = (y = v.value) == null ? void 0 : y[n.value]) == null ? void 0 : I[r];
|
|
3132
3160
|
};
|
|
3133
3161
|
return () => {
|
|
3134
|
-
var
|
|
3135
|
-
let
|
|
3136
|
-
return
|
|
3137
|
-
class: [i,
|
|
3162
|
+
var y, I, R;
|
|
3163
|
+
let r;
|
|
3164
|
+
return l(o("div", {
|
|
3165
|
+
class: [i, s.value]
|
|
3138
3166
|
}, [o("h3", {
|
|
3139
|
-
class: [`${i}-title`,
|
|
3167
|
+
class: [`${i}-title`, s.value]
|
|
3140
3168
|
}, [Q("主题编辑器"), o("div", {
|
|
3141
|
-
class: [`${i}-sub-title`,
|
|
3142
|
-
}, [o("span", null, [(
|
|
3143
|
-
var
|
|
3144
|
-
return
|
|
3145
|
-
})) == null ? void 0 :
|
|
3169
|
+
class: [`${i}-sub-title`, s.value]
|
|
3170
|
+
}, [o("span", null, [(y = Nt.find((x) => {
|
|
3171
|
+
var m;
|
|
3172
|
+
return x.key === ((m = e.settingValue) == null ? void 0 : m.theme);
|
|
3173
|
+
})) == null ? void 0 : y.title]), o("span", {
|
|
3146
3174
|
style: {
|
|
3147
3175
|
marginInline: "8px"
|
|
3148
3176
|
}
|
|
3149
|
-
}, [Q("/")]), o("span", null, [(I =
|
|
3150
|
-
var
|
|
3151
|
-
return
|
|
3177
|
+
}, [Q("/")]), o("span", null, [(I = Ht.find((x) => {
|
|
3178
|
+
var m;
|
|
3179
|
+
return x.key === ((m = e.settingValue) == null ? void 0 : m.layout);
|
|
3152
3180
|
})) == null ? void 0 : I.title])])]), o("div", {
|
|
3153
|
-
class: [`${i}-content`,
|
|
3181
|
+
class: [`${i}-content`, s.value]
|
|
3154
3182
|
}, [o(te, {
|
|
3155
|
-
class: `${i}-list ${
|
|
3183
|
+
class: `${i}-list ${s.value}`.trim(),
|
|
3156
3184
|
split: !1,
|
|
3157
3185
|
size: "small",
|
|
3158
3186
|
renderItem: ({
|
|
3159
|
-
item:
|
|
3187
|
+
item: x
|
|
3160
3188
|
}) => o(te.Item, {
|
|
3161
|
-
actions: [
|
|
3189
|
+
actions: [x.action]
|
|
3162
3190
|
}, {
|
|
3163
3191
|
default: () => [o("span", {
|
|
3164
3192
|
style: {
|
|
3165
|
-
opacity:
|
|
3193
|
+
opacity: x.disabled ? 0.5 : 1
|
|
3166
3194
|
}
|
|
3167
|
-
}, [
|
|
3195
|
+
}, [x.title])]
|
|
3168
3196
|
}),
|
|
3169
3197
|
dataSource: [{
|
|
3170
3198
|
title: "自定义主题色",
|
|
3171
3199
|
action: o(tt, {
|
|
3172
|
-
value: (
|
|
3200
|
+
value: (R = e.settingValue) == null ? void 0 : R.primaryColor,
|
|
3173
3201
|
actions: ["confirm"],
|
|
3174
3202
|
modes: ["rgb"],
|
|
3175
3203
|
size: "small",
|
|
3176
|
-
onConfirm: (
|
|
3204
|
+
onConfirm: (x) => e.onChange && e.onChange(x, "primaryColor")
|
|
3177
3205
|
}, null)
|
|
3178
3206
|
}]
|
|
3179
|
-
}, null), o(
|
|
3207
|
+
}, null), o(He, {
|
|
3180
3208
|
activeKey: n.value,
|
|
3181
3209
|
onChange: a
|
|
3182
|
-
},
|
|
3183
|
-
key:
|
|
3184
|
-
tab:
|
|
3210
|
+
}, no(r = Ja.map((x) => o(Zt, {
|
|
3211
|
+
key: x.key,
|
|
3212
|
+
tab: x.title
|
|
3185
3213
|
}, {
|
|
3186
3214
|
default: () => [o(te, {
|
|
3187
|
-
class: `${i}-list ${
|
|
3215
|
+
class: `${i}-list ${s.value}`.trim(),
|
|
3188
3216
|
split: !1,
|
|
3189
3217
|
size: "small",
|
|
3190
3218
|
renderItem: ({
|
|
3191
|
-
item:
|
|
3219
|
+
item: m
|
|
3192
3220
|
}) => o(te.Item, {
|
|
3193
|
-
actions: [
|
|
3221
|
+
actions: [m.action]
|
|
3194
3222
|
}, {
|
|
3195
3223
|
default: () => [o("span", {
|
|
3196
3224
|
style: {
|
|
3197
|
-
opacity:
|
|
3225
|
+
opacity: m.disabled ? 0.5 : 1
|
|
3198
3226
|
}
|
|
3199
|
-
}, [
|
|
3227
|
+
}, [m.title])]
|
|
3200
3228
|
}),
|
|
3201
|
-
dataSource:
|
|
3202
|
-
...
|
|
3229
|
+
dataSource: h.value.filter((m) => !m.disabled).map((m) => ({
|
|
3230
|
+
...m,
|
|
3203
3231
|
action: o(tt, {
|
|
3204
|
-
value:
|
|
3232
|
+
value: p(m.key),
|
|
3205
3233
|
actions: ["confirm"],
|
|
3206
3234
|
modes: ["rgb"],
|
|
3207
3235
|
size: "small",
|
|
3208
|
-
onConfirm: (
|
|
3236
|
+
onConfirm: (g) => e.onChange && e.onChange(g, n.value, m.key)
|
|
3209
3237
|
}, null)
|
|
3210
3238
|
}))
|
|
3211
3239
|
}, null)]
|
|
3212
|
-
}))) ?
|
|
3213
|
-
default: () => [
|
|
3240
|
+
}))) ? r : {
|
|
3241
|
+
default: () => [r]
|
|
3214
3242
|
})])]));
|
|
3215
3243
|
};
|
|
3216
3244
|
}
|
|
3217
|
-
}),
|
|
3245
|
+
}), oo = (e) => ({
|
|
3218
3246
|
[e.componentCls]: {
|
|
3219
3247
|
padding: e.marginLG,
|
|
3220
3248
|
"&-title": {
|
|
@@ -3250,7 +3278,7 @@ function st(e) {
|
|
|
3250
3278
|
}
|
|
3251
3279
|
const {
|
|
3252
3280
|
preset: ut
|
|
3253
|
-
} = Ke,
|
|
3281
|
+
} = Ke, io = /* @__PURE__ */ H({
|
|
3254
3282
|
name: "OthersChange",
|
|
3255
3283
|
props: {
|
|
3256
3284
|
prefixCls: L.string,
|
|
@@ -3264,9 +3292,9 @@ const {
|
|
|
3264
3292
|
}), {
|
|
3265
3293
|
wrapSSR: n,
|
|
3266
3294
|
hashId: a
|
|
3267
|
-
} = Z("SettingsDrawOthers", [
|
|
3295
|
+
} = Z("SettingsDrawOthers", [oo], t);
|
|
3268
3296
|
return () => {
|
|
3269
|
-
var
|
|
3297
|
+
var l, s, u, v, c, O, h, p, r, y, I, R, x, m;
|
|
3270
3298
|
let i;
|
|
3271
3299
|
return n(o("div", {
|
|
3272
3300
|
class: [t, a.value]
|
|
@@ -3277,58 +3305,58 @@ const {
|
|
|
3277
3305
|
split: !1,
|
|
3278
3306
|
size: "small",
|
|
3279
3307
|
renderItem: ({
|
|
3280
|
-
item:
|
|
3281
|
-
}) => o(
|
|
3282
|
-
title:
|
|
3308
|
+
item: g
|
|
3309
|
+
}) => o(Oe, {
|
|
3310
|
+
title: g.disabled ? g.disabledReason : "",
|
|
3283
3311
|
placement: "left"
|
|
3284
3312
|
}, {
|
|
3285
3313
|
default: () => [o(te.Item, {
|
|
3286
|
-
actions: [
|
|
3314
|
+
actions: [g.action]
|
|
3287
3315
|
}, {
|
|
3288
3316
|
default: () => [o("span", {
|
|
3289
3317
|
style: {
|
|
3290
|
-
opacity:
|
|
3318
|
+
opacity: g.disabled ? 0.5 : 1
|
|
3291
3319
|
}
|
|
3292
|
-
}, [
|
|
3320
|
+
}, [g.title])]
|
|
3293
3321
|
})]
|
|
3294
3322
|
}),
|
|
3295
3323
|
dataSource: [{
|
|
3296
3324
|
title: "禁用动画",
|
|
3297
3325
|
action: o(ht, {
|
|
3298
|
-
checked: !((
|
|
3326
|
+
checked: !((s = (l = e.settingValue) == null ? void 0 : l.animate) != null && s.disabled),
|
|
3299
3327
|
size: "small",
|
|
3300
|
-
onChange: (
|
|
3301
|
-
var
|
|
3302
|
-
return (
|
|
3328
|
+
onChange: (g) => {
|
|
3329
|
+
var b;
|
|
3330
|
+
return (b = e.onChange) == null ? void 0 : b.call(e, "animate", "disabled", !g);
|
|
3303
3331
|
}
|
|
3304
3332
|
}, null)
|
|
3305
3333
|
}, {
|
|
3306
3334
|
title: "动画效果",
|
|
3307
|
-
disabled: (
|
|
3335
|
+
disabled: (v = (u = e.settingValue) == null ? void 0 : u.animate) == null ? void 0 : v.disabled,
|
|
3308
3336
|
action: o(he, {
|
|
3309
|
-
value: (
|
|
3337
|
+
value: (O = (c = e.settingValue) == null ? void 0 : c.animate) == null ? void 0 : O.name,
|
|
3310
3338
|
style: {
|
|
3311
3339
|
width: "100px"
|
|
3312
3340
|
},
|
|
3313
3341
|
size: "small",
|
|
3314
|
-
disabled: (
|
|
3315
|
-
getPopupContainer: (
|
|
3316
|
-
onChange: (
|
|
3317
|
-
var
|
|
3318
|
-
return (
|
|
3342
|
+
disabled: (p = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : p.disabled,
|
|
3343
|
+
getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
|
|
3344
|
+
onChange: (g) => {
|
|
3345
|
+
var b;
|
|
3346
|
+
return (b = e.onChange) == null ? void 0 : b.call(e, "animate", "name", g);
|
|
3319
3347
|
}
|
|
3320
|
-
}, st(i = ut.map((
|
|
3321
|
-
value:
|
|
3348
|
+
}, st(i = ut.map((g) => o(he.Option, {
|
|
3349
|
+
value: g.name
|
|
3322
3350
|
}, {
|
|
3323
|
-
default: () => [
|
|
3351
|
+
default: () => [g.alias]
|
|
3324
3352
|
}))) ? i : {
|
|
3325
3353
|
default: () => [i]
|
|
3326
3354
|
})
|
|
3327
3355
|
}, {
|
|
3328
3356
|
title: "动画方向",
|
|
3329
|
-
disabled: (
|
|
3357
|
+
disabled: (y = (r = e.settingValue) == null ? void 0 : r.animate) == null ? void 0 : y.disabled,
|
|
3330
3358
|
action: o(he, {
|
|
3331
|
-
value: (
|
|
3359
|
+
value: (R = (I = e.settingValue) == null ? void 0 : I.animate) == null ? void 0 : R.direction,
|
|
3332
3360
|
style: {
|
|
3333
3361
|
width: "100px"
|
|
3334
3362
|
},
|
|
@@ -3336,22 +3364,22 @@ const {
|
|
|
3336
3364
|
dropdownStyle: {
|
|
3337
3365
|
minWidth: "120px"
|
|
3338
3366
|
},
|
|
3339
|
-
disabled: (
|
|
3340
|
-
getPopupContainer: (
|
|
3341
|
-
onChange: (
|
|
3342
|
-
var
|
|
3343
|
-
return (
|
|
3367
|
+
disabled: (m = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : m.disabled,
|
|
3368
|
+
getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
|
|
3369
|
+
onChange: (g) => {
|
|
3370
|
+
var b;
|
|
3371
|
+
return (b = e.onChange) == null ? void 0 : b.call(e, "animate", "direction", g);
|
|
3344
3372
|
}
|
|
3345
3373
|
}, {
|
|
3346
3374
|
default: () => {
|
|
3347
|
-
var
|
|
3348
|
-
return [(
|
|
3349
|
-
var
|
|
3350
|
-
return
|
|
3351
|
-
})) == null ? void 0 :
|
|
3352
|
-
value:
|
|
3353
|
-
}, st(
|
|
3354
|
-
default: () => [
|
|
3375
|
+
var g;
|
|
3376
|
+
return [(g = ut.find((b) => {
|
|
3377
|
+
var $, C;
|
|
3378
|
+
return b.name === ((C = ($ = e.settingValue) == null ? void 0 : $.animate) == null ? void 0 : C.name);
|
|
3379
|
+
})) == null ? void 0 : g.directions.map((b) => o(he.Option, {
|
|
3380
|
+
value: b
|
|
3381
|
+
}, st(b) ? b : {
|
|
3382
|
+
default: () => [b]
|
|
3355
3383
|
}))];
|
|
3356
3384
|
}
|
|
3357
3385
|
})
|
|
@@ -3360,11 +3388,11 @@ const {
|
|
|
3360
3388
|
};
|
|
3361
3389
|
}
|
|
3362
3390
|
}), {
|
|
3363
|
-
preset:
|
|
3364
|
-
} = Ke,
|
|
3391
|
+
preset: lo
|
|
3392
|
+
} = Ke, Le = Object.keys(A).filter((e) => e !== "title"), dt = {
|
|
3365
3393
|
color: "#fff",
|
|
3366
3394
|
fontSize: 20
|
|
3367
|
-
},
|
|
3395
|
+
}, ro = [{
|
|
3368
3396
|
label: "fixedHeader",
|
|
3369
3397
|
title: "固定 Header"
|
|
3370
3398
|
}, {
|
|
@@ -3373,16 +3401,16 @@ const {
|
|
|
3373
3401
|
}, {
|
|
3374
3402
|
label: "splitMenus",
|
|
3375
3403
|
title: "自动分割菜单"
|
|
3376
|
-
}],
|
|
3404
|
+
}], so = [{
|
|
3377
3405
|
label: "showTabsBar",
|
|
3378
3406
|
title: "多标签"
|
|
3379
3407
|
}, {
|
|
3380
3408
|
label: "fixedMultiTab",
|
|
3381
3409
|
title: "固定多标签"
|
|
3382
3410
|
}], ct = (e) => vn() ? {
|
|
3383
|
-
...ae(A,
|
|
3411
|
+
...ae(A, Le),
|
|
3384
3412
|
...e || {}
|
|
3385
|
-
} :
|
|
3413
|
+
} : Ee(A), ye = (e, {
|
|
3386
3414
|
slots: t
|
|
3387
3415
|
}) => {
|
|
3388
3416
|
var n;
|
|
@@ -3393,7 +3421,7 @@ const {
|
|
|
3393
3421
|
}, [o("h3", {
|
|
3394
3422
|
class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
|
|
3395
3423
|
}, [e.title]), (n = t.default) == null ? void 0 : n.call(t)]);
|
|
3396
|
-
},
|
|
3424
|
+
}, Cl = /* @__PURE__ */ H({
|
|
3397
3425
|
name: "SettingDrawer",
|
|
3398
3426
|
props: {
|
|
3399
3427
|
themeOnly: Boolean,
|
|
@@ -3406,7 +3434,7 @@ const {
|
|
|
3406
3434
|
},
|
|
3407
3435
|
colorList: {
|
|
3408
3436
|
type: [Boolean, Array],
|
|
3409
|
-
default: () =>
|
|
3437
|
+
default: () => fn
|
|
3410
3438
|
},
|
|
3411
3439
|
onChange: Function,
|
|
3412
3440
|
onChangeLayout: Function
|
|
@@ -3421,42 +3449,42 @@ const {
|
|
|
3421
3449
|
}), {
|
|
3422
3450
|
wrapSSR: a,
|
|
3423
3451
|
hashId: i
|
|
3424
|
-
} = Z("ProSettingDraw", [
|
|
3425
|
-
value:
|
|
3452
|
+
} = Z("ProSettingDraw", [Qa], n), l = ve(!1), [s, u] = pe(!1), [v, c] = pe(!1), [O, h] = pe(!1), p = w(() => ct(ae(e.settings, Le))), [r, y] = wn(() => ct(ae(e.settings, Le)), {
|
|
3453
|
+
value: p,
|
|
3426
3454
|
onChange: e.onChange
|
|
3427
|
-
}), I = w(() => e.colorList && pn(e.colorList) ? e.colorList : []),
|
|
3428
|
-
copy:
|
|
3429
|
-
copied:
|
|
3430
|
-
isSupported:
|
|
3455
|
+
}), I = w(() => e.colorList && pn(e.colorList) ? e.colorList : []), R = w(() => _n(U(r))), {
|
|
3456
|
+
copy: x,
|
|
3457
|
+
copied: m,
|
|
3458
|
+
isSupported: g
|
|
3431
3459
|
} = In();
|
|
3432
|
-
le(
|
|
3433
|
-
|
|
3460
|
+
le(s, () => {
|
|
3461
|
+
l.value || (l.value = !0);
|
|
3434
3462
|
});
|
|
3435
|
-
const
|
|
3436
|
-
var _,
|
|
3437
|
-
const
|
|
3438
|
-
if (
|
|
3439
|
-
|
|
3463
|
+
const b = (C, M, T) => {
|
|
3464
|
+
var _, V;
|
|
3465
|
+
const P = ["header", "sider"], F = {};
|
|
3466
|
+
if (T && P.includes(C)) {
|
|
3467
|
+
F[C] = {}, F[C][T] = M, e.onChangeLayout && e.onChangeLayout(ae(F, P));
|
|
3440
3468
|
return;
|
|
3441
3469
|
} else
|
|
3442
|
-
|
|
3443
|
-
if (
|
|
3444
|
-
const
|
|
3445
|
-
|
|
3470
|
+
C === "animate" ? (F[C] = {}, F[C][T] = M, T === "name" && (F[C].direction = (V = (_ = lo.find((D) => D.name === M)) == null ? void 0 : _.directions) == null ? void 0 : V[0])) : F[C] = M;
|
|
3471
|
+
if (C === "colorWeak") {
|
|
3472
|
+
const D = document.querySelector("body");
|
|
3473
|
+
D && (D.dataset.prosettingdrawer = M === !0 ? D.style.filter : D.dataset.prosettingdrawer || "none", M === !0 && (D.dataset.prosettingdrawer = D.style.filter), D.style.filter = M === !0 ? "invert(80%)" : D.dataset.prosettingdrawer || "none", M || delete D.dataset.prosettingdrawer);
|
|
3446
3474
|
}
|
|
3447
|
-
|
|
3448
|
-
...
|
|
3475
|
+
y(xn(U(r), {
|
|
3476
|
+
...Hn(je(F, P))
|
|
3449
3477
|
}));
|
|
3450
|
-
},
|
|
3451
|
-
|
|
3478
|
+
}, $ = () => {
|
|
3479
|
+
g.value && x(JSON.stringify(U(r)));
|
|
3452
3480
|
};
|
|
3453
|
-
return le(
|
|
3454
|
-
|
|
3481
|
+
return le(m, (C) => {
|
|
3482
|
+
C && Jt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
3455
3483
|
}), () => a(o(be, {
|
|
3456
3484
|
width: 300,
|
|
3457
3485
|
closable: !1,
|
|
3458
|
-
open:
|
|
3459
|
-
rootClassName: `${n} ${i.value} ${
|
|
3486
|
+
open: s.value,
|
|
3487
|
+
rootClassName: `${n} ${i.value} ${s.value && `${n}-show`} ${!l.value && `${n}-trantion-none`}`,
|
|
3460
3488
|
placement: "right",
|
|
3461
3489
|
rootStyle: {
|
|
3462
3490
|
zIndex: 999
|
|
@@ -3464,13 +3492,13 @@ const {
|
|
|
3464
3492
|
bodyStyle: {
|
|
3465
3493
|
padding: 0
|
|
3466
3494
|
},
|
|
3467
|
-
onClose: () =>
|
|
3495
|
+
onClose: () => u(!1),
|
|
3468
3496
|
handle: o("div", {
|
|
3469
3497
|
class: [`${n}-handle`, i.value],
|
|
3470
|
-
onClick: () =>
|
|
3471
|
-
}, [
|
|
3498
|
+
onClick: () => u(!s.value)
|
|
3499
|
+
}, [s.value ? o(gt, {
|
|
3472
3500
|
style: dt
|
|
3473
|
-
}, null) : o(
|
|
3501
|
+
}, null) : o(un, {
|
|
3474
3502
|
style: dt
|
|
3475
3503
|
}, null)])
|
|
3476
3504
|
}, {
|
|
@@ -3487,11 +3515,11 @@ const {
|
|
|
3487
3515
|
default: () => [o(rt, {
|
|
3488
3516
|
hashId: i.value,
|
|
3489
3517
|
prefixCls: n,
|
|
3490
|
-
list:
|
|
3491
|
-
value:
|
|
3518
|
+
list: Nt,
|
|
3519
|
+
value: r.value.theme,
|
|
3492
3520
|
configType: "theme",
|
|
3493
3521
|
key: "navTheme",
|
|
3494
|
-
onChange: (
|
|
3522
|
+
onChange: (C) => b("theme", C)
|
|
3495
3523
|
}, null)]
|
|
3496
3524
|
}), o(ye, {
|
|
3497
3525
|
hashId: i.value,
|
|
@@ -3499,124 +3527,124 @@ const {
|
|
|
3499
3527
|
style: {
|
|
3500
3528
|
fontSize: "12px"
|
|
3501
3529
|
},
|
|
3502
|
-
onClick: () =>
|
|
3530
|
+
onClick: () => c(!0)
|
|
3503
3531
|
}, [Q("更多配置")])]),
|
|
3504
3532
|
prefixCls: n
|
|
3505
3533
|
}, {
|
|
3506
|
-
default: () => [o(
|
|
3534
|
+
default: () => [o(eo, {
|
|
3507
3535
|
hashId: i.value,
|
|
3508
3536
|
prefixCls: n,
|
|
3509
3537
|
colorList: I.value,
|
|
3510
|
-
settingValue:
|
|
3511
|
-
onChange: (
|
|
3538
|
+
settingValue: r.value,
|
|
3539
|
+
onChange: (C, M) => b(M || "primaryColor", C)
|
|
3512
3540
|
}, null)]
|
|
3513
|
-
}), !e.themeOnly && o(q, null, [o(
|
|
3541
|
+
}), !e.themeOnly && o(q, null, [o(Be, null, null), o(ye, {
|
|
3514
3542
|
hashId: i.value,
|
|
3515
3543
|
prefixCls: n,
|
|
3516
3544
|
title: "导航模式"
|
|
3517
3545
|
}, {
|
|
3518
3546
|
default: () => [o(rt, {
|
|
3519
3547
|
prefixCls: n,
|
|
3520
|
-
value: U(
|
|
3548
|
+
value: U(r).layout,
|
|
3521
3549
|
key: "layout",
|
|
3522
3550
|
hashId: i.value,
|
|
3523
3551
|
configType: "layout",
|
|
3524
|
-
list:
|
|
3525
|
-
onChange: (
|
|
3552
|
+
list: Ht,
|
|
3553
|
+
onChange: (C) => b("layout", C)
|
|
3526
3554
|
}, null)]
|
|
3527
|
-
}),
|
|
3528
|
-
label:
|
|
3529
|
-
title:
|
|
3555
|
+
}), ro.map(({
|
|
3556
|
+
label: C,
|
|
3557
|
+
title: M
|
|
3530
3558
|
}) => o(ge, {
|
|
3531
|
-
label:
|
|
3532
|
-
disabled: U(
|
|
3533
|
-
value: U(
|
|
3559
|
+
label: M,
|
|
3560
|
+
disabled: U(R)[C],
|
|
3561
|
+
value: U(r)[C],
|
|
3534
3562
|
prefixCls: n,
|
|
3535
3563
|
hashId: i.value,
|
|
3536
|
-
valueKey:
|
|
3537
|
-
onChange: (
|
|
3538
|
-
}, null)), o(
|
|
3564
|
+
valueKey: C,
|
|
3565
|
+
onChange: (T, P) => b(T, P)
|
|
3566
|
+
}, null)), o(Be, null, null), o(ye, {
|
|
3539
3567
|
hashId: i.value,
|
|
3540
3568
|
prefixCls: n,
|
|
3541
3569
|
title: o("span", null, [Q("其他设置 "), o("a", {
|
|
3542
3570
|
style: {
|
|
3543
3571
|
fontSize: "12px"
|
|
3544
3572
|
},
|
|
3545
|
-
onClick: () =>
|
|
3573
|
+
onClick: () => h(!0)
|
|
3546
3574
|
}, [Q("更多配置")])])
|
|
3547
3575
|
}, {
|
|
3548
|
-
default: () => [
|
|
3549
|
-
label:
|
|
3550
|
-
title:
|
|
3576
|
+
default: () => [so.map(({
|
|
3577
|
+
label: C,
|
|
3578
|
+
title: M
|
|
3551
3579
|
}) => o(ge, {
|
|
3552
|
-
label:
|
|
3553
|
-
disabled: U(
|
|
3554
|
-
value: U(
|
|
3580
|
+
label: M,
|
|
3581
|
+
disabled: U(R)[C],
|
|
3582
|
+
value: U(r)[C],
|
|
3555
3583
|
prefixCls: n,
|
|
3556
3584
|
hashId: i.value,
|
|
3557
|
-
valueKey:
|
|
3558
|
-
onChange: (
|
|
3585
|
+
valueKey: C,
|
|
3586
|
+
onChange: (T, P) => b(T, P)
|
|
3559
3587
|
}, null)), e.weakmode && o(ge, {
|
|
3560
3588
|
label: "色弱模式",
|
|
3561
|
-
value: U(
|
|
3589
|
+
value: U(r).colorWeak,
|
|
3562
3590
|
prefixCls: n,
|
|
3563
3591
|
hashId: i.value,
|
|
3564
3592
|
valueKey: "colorWeak",
|
|
3565
|
-
onChange: (
|
|
3593
|
+
onChange: (C, M) => b(C, M)
|
|
3566
3594
|
}, null), e.showProgress && o(ge, {
|
|
3567
3595
|
label: "顶部进度条",
|
|
3568
|
-
value: U(
|
|
3596
|
+
value: U(r).showProgressBar,
|
|
3569
3597
|
prefixCls: n,
|
|
3570
3598
|
hashId: i.value,
|
|
3571
3599
|
valueKey: "showProgressBar",
|
|
3572
|
-
onChange: (
|
|
3600
|
+
onChange: (C, M) => b(C, M)
|
|
3573
3601
|
}, null)]
|
|
3574
|
-
})]), e.hideHintAlert && e.hideCopyButton ? null : o(
|
|
3602
|
+
})]), e.hideHintAlert && e.hideCopyButton ? null : o(Be, null, null), e.hideHintAlert ? null : o(Qt, {
|
|
3575
3603
|
type: "warning",
|
|
3576
3604
|
message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
|
|
3577
|
-
icon: o(
|
|
3605
|
+
icon: o(dn, null, null),
|
|
3578
3606
|
showIcon: !0,
|
|
3579
3607
|
style: {
|
|
3580
3608
|
marginBottom: "16px"
|
|
3581
3609
|
}
|
|
3582
|
-
}, null), e.hideCopyButton ? null : o(
|
|
3583
|
-
onClick: () =>
|
|
3610
|
+
}, null), e.hideCopyButton ? null : o(en, {
|
|
3611
|
+
onClick: () => $(),
|
|
3584
3612
|
block: !0
|
|
3585
3613
|
}, {
|
|
3586
|
-
default: () => [o(
|
|
3614
|
+
default: () => [o(cn, null, null), Q("拷贝设置")]
|
|
3587
3615
|
})])]
|
|
3588
3616
|
})]), o(be, {
|
|
3589
3617
|
width: 320,
|
|
3590
3618
|
closable: !1,
|
|
3591
3619
|
placement: "right",
|
|
3592
|
-
open:
|
|
3620
|
+
open: v.value,
|
|
3593
3621
|
bodyStyle: {
|
|
3594
3622
|
padding: 0
|
|
3595
3623
|
},
|
|
3596
|
-
onClose: () =>
|
|
3624
|
+
onClose: () => c(!1)
|
|
3597
3625
|
}, {
|
|
3598
|
-
default: () => [o(
|
|
3599
|
-
settingValue:
|
|
3600
|
-
onChange: (
|
|
3626
|
+
default: () => [o(ao, {
|
|
3627
|
+
settingValue: r.value,
|
|
3628
|
+
onChange: (C, M, T) => b(M || "primaryColor", C, T)
|
|
3601
3629
|
}, null)]
|
|
3602
3630
|
}), o(be, {
|
|
3603
3631
|
width: 320,
|
|
3604
3632
|
closable: !1,
|
|
3605
3633
|
placement: "right",
|
|
3606
|
-
open:
|
|
3634
|
+
open: O.value,
|
|
3607
3635
|
bodyStyle: {
|
|
3608
3636
|
padding: 0
|
|
3609
3637
|
},
|
|
3610
|
-
onClose: () =>
|
|
3638
|
+
onClose: () => h(!1)
|
|
3611
3639
|
}, {
|
|
3612
|
-
default: () => [o(
|
|
3613
|
-
settingValue:
|
|
3614
|
-
onChange: (
|
|
3640
|
+
default: () => [o(io, {
|
|
3641
|
+
settingValue: r.value,
|
|
3642
|
+
onChange: (C, M, T) => b(C, T, M)
|
|
3615
3643
|
}, null)]
|
|
3616
3644
|
})]
|
|
3617
3645
|
}));
|
|
3618
3646
|
}
|
|
3619
|
-
}),
|
|
3647
|
+
}), uo = new d("backInLeft", {
|
|
3620
3648
|
"0%": {
|
|
3621
3649
|
opacity: 0.7,
|
|
3622
3650
|
transform: "translateX(-2000px) scale(0.7)"
|
|
@@ -3629,7 +3657,7 @@ const {
|
|
|
3629
3657
|
opacity: 1,
|
|
3630
3658
|
transform: "scale(1)"
|
|
3631
3659
|
}
|
|
3632
|
-
}),
|
|
3660
|
+
}), co = new d("backInRight", {
|
|
3633
3661
|
"0%": {
|
|
3634
3662
|
opacity: 0.7,
|
|
3635
3663
|
transform: "translateX(2000px) scale(0.7)"
|
|
@@ -3642,7 +3670,7 @@ const {
|
|
|
3642
3670
|
opacity: 1,
|
|
3643
3671
|
transform: "scale(1)"
|
|
3644
3672
|
}
|
|
3645
|
-
}),
|
|
3673
|
+
}), mo = new d("backInUp", {
|
|
3646
3674
|
"0%": {
|
|
3647
3675
|
opacity: 0.7,
|
|
3648
3676
|
transform: "translateY(1200px) scale(0.7)"
|
|
@@ -3655,7 +3683,7 @@ const {
|
|
|
3655
3683
|
opacity: 1,
|
|
3656
3684
|
transform: "scale(1)"
|
|
3657
3685
|
}
|
|
3658
|
-
}),
|
|
3686
|
+
}), fo = new d("backInDown", {
|
|
3659
3687
|
"0%": {
|
|
3660
3688
|
opacity: 0.7,
|
|
3661
3689
|
transform: "translateY(-1200px) scale(0.7)"
|
|
@@ -3668,7 +3696,7 @@ const {
|
|
|
3668
3696
|
opacity: 1,
|
|
3669
3697
|
transform: "scale(1)"
|
|
3670
3698
|
}
|
|
3671
|
-
}),
|
|
3699
|
+
}), ho = new d("backOutLeft", {
|
|
3672
3700
|
"0%": {
|
|
3673
3701
|
opacity: 1,
|
|
3674
3702
|
transform: "scale(1)"
|
|
@@ -3681,7 +3709,7 @@ const {
|
|
|
3681
3709
|
opacity: 0.7,
|
|
3682
3710
|
transform: "translateX(-2000px) scale(0.7)"
|
|
3683
3711
|
}
|
|
3684
|
-
}),
|
|
3712
|
+
}), go = new d("backOutRight", {
|
|
3685
3713
|
"0%": {
|
|
3686
3714
|
opacity: 1,
|
|
3687
3715
|
transform: "scale(1)"
|
|
@@ -3694,7 +3722,7 @@ const {
|
|
|
3694
3722
|
opacity: 0.7,
|
|
3695
3723
|
transform: "translateX(2000px) scale(0.7)"
|
|
3696
3724
|
}
|
|
3697
|
-
}),
|
|
3725
|
+
}), yo = new d("backOutUp", {
|
|
3698
3726
|
"0%": {
|
|
3699
3727
|
opacity: 1,
|
|
3700
3728
|
transform: "scale(1)"
|
|
@@ -3707,7 +3735,7 @@ const {
|
|
|
3707
3735
|
opacity: 0.7,
|
|
3708
3736
|
transform: "translateY(-700px) scale(0.7)"
|
|
3709
3737
|
}
|
|
3710
|
-
}),
|
|
3738
|
+
}), bo = new d("backOutDown", {
|
|
3711
3739
|
"0%": {
|
|
3712
3740
|
opacity: 1,
|
|
3713
3741
|
transform: "scale(1)"
|
|
@@ -3720,41 +3748,41 @@ const {
|
|
|
3720
3748
|
opacity: 0.7,
|
|
3721
3749
|
transform: "translateY(700px) scale(0.7)"
|
|
3722
3750
|
}
|
|
3723
|
-
}),
|
|
3751
|
+
}), po = () => ({
|
|
3724
3752
|
"&.backInLeft": {
|
|
3725
3753
|
animationFillMode: "both",
|
|
3726
|
-
animationName:
|
|
3754
|
+
animationName: uo
|
|
3727
3755
|
},
|
|
3728
3756
|
"&.backInRight": {
|
|
3729
3757
|
animationFillMode: "both",
|
|
3730
|
-
animationName:
|
|
3758
|
+
animationName: co
|
|
3731
3759
|
},
|
|
3732
3760
|
"&.backInUp": {
|
|
3733
3761
|
animationFillMode: "both",
|
|
3734
|
-
animationName:
|
|
3762
|
+
animationName: mo
|
|
3735
3763
|
},
|
|
3736
3764
|
"&.backInDown": {
|
|
3737
3765
|
animationFillMode: "both",
|
|
3738
|
-
animationName:
|
|
3766
|
+
animationName: fo
|
|
3739
3767
|
}
|
|
3740
|
-
}),
|
|
3768
|
+
}), vo = () => ({
|
|
3741
3769
|
"&.backOutLeft": {
|
|
3742
3770
|
animationFillMode: "both",
|
|
3743
|
-
animationName:
|
|
3771
|
+
animationName: ho
|
|
3744
3772
|
},
|
|
3745
3773
|
"&.backOutRight": {
|
|
3746
3774
|
animationFillMode: "both",
|
|
3747
|
-
animationName:
|
|
3775
|
+
animationName: go
|
|
3748
3776
|
},
|
|
3749
3777
|
"&.backOutUp": {
|
|
3750
3778
|
animationFillMode: "both",
|
|
3751
|
-
animationName:
|
|
3779
|
+
animationName: yo
|
|
3752
3780
|
},
|
|
3753
3781
|
"&.backOutDown": {
|
|
3754
3782
|
animationFillMode: "both",
|
|
3755
|
-
animationName:
|
|
3783
|
+
animationName: bo
|
|
3756
3784
|
}
|
|
3757
|
-
}),
|
|
3785
|
+
}), xo = new d("bounceIn", {
|
|
3758
3786
|
"from,20%,40%,60%,80%,to": {
|
|
3759
3787
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3760
3788
|
},
|
|
@@ -3778,7 +3806,7 @@ const {
|
|
|
3778
3806
|
opacity: 1,
|
|
3779
3807
|
transform: "scale3d(1, 1, 1)"
|
|
3780
3808
|
}
|
|
3781
|
-
}),
|
|
3809
|
+
}), Co = new d("bounceInLeft", {
|
|
3782
3810
|
"from,60%,75%,90%,to": {
|
|
3783
3811
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3784
3812
|
},
|
|
@@ -3799,7 +3827,7 @@ const {
|
|
|
3799
3827
|
to: {
|
|
3800
3828
|
transform: "translate3d(0, 0, 0)"
|
|
3801
3829
|
}
|
|
3802
|
-
}),
|
|
3830
|
+
}), wo = new d("bounceInRight", {
|
|
3803
3831
|
"from,60%,75%,90%,to": {
|
|
3804
3832
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3805
3833
|
},
|
|
@@ -3820,7 +3848,7 @@ const {
|
|
|
3820
3848
|
to: {
|
|
3821
3849
|
transform: "translate3d(0, 0, 0)"
|
|
3822
3850
|
}
|
|
3823
|
-
}),
|
|
3851
|
+
}), So = new d("bounceInDown", {
|
|
3824
3852
|
"from,60%,75%,90%,to": {
|
|
3825
3853
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3826
3854
|
},
|
|
@@ -3841,7 +3869,7 @@ const {
|
|
|
3841
3869
|
to: {
|
|
3842
3870
|
transform: "translate3d(0, 0, 0)"
|
|
3843
3871
|
}
|
|
3844
|
-
}),
|
|
3872
|
+
}), Io = new d("bounceInUp", {
|
|
3845
3873
|
"from,60%,75%,90%,to": {
|
|
3846
3874
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3847
3875
|
},
|
|
@@ -3862,7 +3890,7 @@ const {
|
|
|
3862
3890
|
to: {
|
|
3863
3891
|
transform: "translate3d(0, 0, 0)"
|
|
3864
3892
|
}
|
|
3865
|
-
}),
|
|
3893
|
+
}), Oo = new d("bounceOut", {
|
|
3866
3894
|
"20%": {
|
|
3867
3895
|
transform: "scale3d(0.9, 0.9, 0.9)"
|
|
3868
3896
|
},
|
|
@@ -3876,7 +3904,7 @@ const {
|
|
|
3876
3904
|
opacity: 0,
|
|
3877
3905
|
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
3878
3906
|
}
|
|
3879
|
-
}),
|
|
3907
|
+
}), Mo = new d("bounceOutLeft", {
|
|
3880
3908
|
"20%": {
|
|
3881
3909
|
opacity: 1,
|
|
3882
3910
|
transform: "translate3d(20px, 0, 0) scaleX(0.9)"
|
|
@@ -3885,7 +3913,7 @@ const {
|
|
|
3885
3913
|
opacity: 0,
|
|
3886
3914
|
transform: "translate3d(-2000px, 0, 0) scaleX(2)"
|
|
3887
3915
|
}
|
|
3888
|
-
}),
|
|
3916
|
+
}), Ro = new d("bounceOutRight", {
|
|
3889
3917
|
"20%": {
|
|
3890
3918
|
opacity: 1,
|
|
3891
3919
|
transform: "translate3d(-20px, 0, 0) scaleX(0.9)"
|
|
@@ -3894,7 +3922,7 @@ const {
|
|
|
3894
3922
|
opacity: 0,
|
|
3895
3923
|
transform: "translate3d(2000px, 0, 0) scaleX(2)"
|
|
3896
3924
|
}
|
|
3897
|
-
}),
|
|
3925
|
+
}), Bo = new d("bounceOutDown", {
|
|
3898
3926
|
"20%": {
|
|
3899
3927
|
transform: "translate3d(0, 10px, 0) scaleY(0.985)"
|
|
3900
3928
|
},
|
|
@@ -3906,7 +3934,7 @@ const {
|
|
|
3906
3934
|
opacity: 0,
|
|
3907
3935
|
transform: "translate3d(0, 2000px, 0) scaleY(3)"
|
|
3908
3936
|
}
|
|
3909
|
-
}),
|
|
3937
|
+
}), ko = new d("bounceOutUp", {
|
|
3910
3938
|
"20%": {
|
|
3911
3939
|
transform: "translate3d(0, -10px, 0) scaleY(0.985)"
|
|
3912
3940
|
},
|
|
@@ -3918,58 +3946,58 @@ const {
|
|
|
3918
3946
|
opacity: 0,
|
|
3919
3947
|
transform: "translate3d(0, -2000px, 0) scaleY(3)"
|
|
3920
3948
|
}
|
|
3921
|
-
}),
|
|
3949
|
+
}), $o = () => ({
|
|
3922
3950
|
"&.bounceIn": {
|
|
3923
3951
|
animationFillMode: "both",
|
|
3924
3952
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
3925
|
-
animationName:
|
|
3953
|
+
animationName: xo
|
|
3926
3954
|
},
|
|
3927
3955
|
"&.bounceInLeft": {
|
|
3928
3956
|
animationFillMode: "both",
|
|
3929
|
-
animationName:
|
|
3957
|
+
animationName: Co
|
|
3930
3958
|
},
|
|
3931
3959
|
"&.bounceInRight": {
|
|
3932
3960
|
animationFillMode: "both",
|
|
3933
|
-
animationName:
|
|
3961
|
+
animationName: wo
|
|
3934
3962
|
},
|
|
3935
3963
|
"&.bounceInDown": {
|
|
3936
3964
|
animationFillMode: "both",
|
|
3937
|
-
animationName:
|
|
3965
|
+
animationName: So
|
|
3938
3966
|
},
|
|
3939
3967
|
"&.bounceInUp": {
|
|
3940
3968
|
animationFillMode: "both",
|
|
3941
|
-
animationName:
|
|
3969
|
+
animationName: Io
|
|
3942
3970
|
}
|
|
3943
|
-
}),
|
|
3971
|
+
}), To = () => ({
|
|
3944
3972
|
"&.bounceOut": {
|
|
3945
3973
|
animationFillMode: "both",
|
|
3946
3974
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
3947
|
-
animationName:
|
|
3975
|
+
animationName: Oo
|
|
3948
3976
|
},
|
|
3949
3977
|
"&.bounceOutLeft": {
|
|
3950
3978
|
animationFillMode: "both",
|
|
3951
|
-
animationName:
|
|
3979
|
+
animationName: Mo
|
|
3952
3980
|
},
|
|
3953
3981
|
"&.bounceOutRight": {
|
|
3954
3982
|
animationFillMode: "both",
|
|
3955
|
-
animationName:
|
|
3983
|
+
animationName: Ro
|
|
3956
3984
|
},
|
|
3957
3985
|
"&.bounceOutDown": {
|
|
3958
3986
|
animationFillMode: "both",
|
|
3959
|
-
animationName:
|
|
3987
|
+
animationName: Bo
|
|
3960
3988
|
},
|
|
3961
3989
|
"&.bounceOutUp": {
|
|
3962
3990
|
animationFillMode: "both",
|
|
3963
|
-
animationName:
|
|
3991
|
+
animationName: ko
|
|
3964
3992
|
}
|
|
3965
|
-
}),
|
|
3993
|
+
}), Po = new d("fadeIn", {
|
|
3966
3994
|
from: {
|
|
3967
3995
|
opacity: 0
|
|
3968
3996
|
},
|
|
3969
3997
|
to: {
|
|
3970
3998
|
opacity: 1
|
|
3971
3999
|
}
|
|
3972
|
-
}), Fo = new
|
|
4000
|
+
}), Fo = new d("fadeInLeft", {
|
|
3973
4001
|
from: {
|
|
3974
4002
|
opacity: 0,
|
|
3975
4003
|
transform: "translate3d(-100%, 0, 0)"
|
|
@@ -3978,7 +4006,7 @@ const {
|
|
|
3978
4006
|
opacity: 1,
|
|
3979
4007
|
transform: "translate3d(0, 0, 0)"
|
|
3980
4008
|
}
|
|
3981
|
-
}),
|
|
4009
|
+
}), Lo = new d("fadeInRight", {
|
|
3982
4010
|
from: {
|
|
3983
4011
|
opacity: 0,
|
|
3984
4012
|
transform: "translate3d(100%, 0, 0)"
|
|
@@ -3987,7 +4015,7 @@ const {
|
|
|
3987
4015
|
opacity: 1,
|
|
3988
4016
|
transform: "translate3d(0, 0, 0)"
|
|
3989
4017
|
}
|
|
3990
|
-
}),
|
|
4018
|
+
}), Do = new d("fadeInDown", {
|
|
3991
4019
|
from: {
|
|
3992
4020
|
opacity: 0,
|
|
3993
4021
|
transform: "translate3d(0, -100%, 0)"
|
|
@@ -3996,7 +4024,7 @@ const {
|
|
|
3996
4024
|
opacity: 1,
|
|
3997
4025
|
transform: "translate3d(0, 0, 0)"
|
|
3998
4026
|
}
|
|
3999
|
-
}),
|
|
4027
|
+
}), zo = new d("fadeInUp", {
|
|
4000
4028
|
from: {
|
|
4001
4029
|
opacity: 0,
|
|
4002
4030
|
transform: "translate3d(0, 100%, 0)"
|
|
@@ -4005,7 +4033,7 @@ const {
|
|
|
4005
4033
|
opacity: 1,
|
|
4006
4034
|
transform: "translate3d(0, 0, 0)"
|
|
4007
4035
|
}
|
|
4008
|
-
}),
|
|
4036
|
+
}), No = new d("fadeInDownBig", {
|
|
4009
4037
|
from: {
|
|
4010
4038
|
opacity: 0,
|
|
4011
4039
|
transform: "translate3d(0, -2000px, 0)"
|
|
@@ -4014,7 +4042,7 @@ const {
|
|
|
4014
4042
|
opacity: 1,
|
|
4015
4043
|
transform: "translate3d(0, 0, 0)"
|
|
4016
4044
|
}
|
|
4017
|
-
}),
|
|
4045
|
+
}), Ho = new d("fadeInUpBig", {
|
|
4018
4046
|
from: {
|
|
4019
4047
|
opacity: 0,
|
|
4020
4048
|
transform: "translate3d(0, 2000px, 0)"
|
|
@@ -4023,7 +4051,7 @@ const {
|
|
|
4023
4051
|
opacity: 1,
|
|
4024
4052
|
transform: "translate3d(0, 0, 0)"
|
|
4025
4053
|
}
|
|
4026
|
-
}),
|
|
4054
|
+
}), _o = new d("fadeInLeftBig", {
|
|
4027
4055
|
from: {
|
|
4028
4056
|
opacity: 0,
|
|
4029
4057
|
transform: "translate3d(-2000px, 0, 0)"
|
|
@@ -4032,7 +4060,7 @@ const {
|
|
|
4032
4060
|
opacity: 1,
|
|
4033
4061
|
transform: "translate3d(0, 0, 0)"
|
|
4034
4062
|
}
|
|
4035
|
-
}),
|
|
4063
|
+
}), Vo = new d("fadeInRightBig", {
|
|
4036
4064
|
from: {
|
|
4037
4065
|
opacity: 0,
|
|
4038
4066
|
transform: "translate3d(2000px, 0, 0)"
|
|
@@ -4041,7 +4069,7 @@ const {
|
|
|
4041
4069
|
opacity: 1,
|
|
4042
4070
|
transform: "translate3d(0, 0, 0)"
|
|
4043
4071
|
}
|
|
4044
|
-
}),
|
|
4072
|
+
}), Ao = new d("fadeInTopLeft", {
|
|
4045
4073
|
from: {
|
|
4046
4074
|
opacity: 0,
|
|
4047
4075
|
transform: "translate3d(-100%, -100%, 0)"
|
|
@@ -4050,7 +4078,7 @@ const {
|
|
|
4050
4078
|
opacity: 1,
|
|
4051
4079
|
transform: "translate3d(0, 0, 0)"
|
|
4052
4080
|
}
|
|
4053
|
-
}),
|
|
4081
|
+
}), Eo = new d("fadeInBottomRight", {
|
|
4054
4082
|
from: {
|
|
4055
4083
|
opacity: 0,
|
|
4056
4084
|
transform: "translate3d(100%, 100%, 0)"
|
|
@@ -4059,7 +4087,7 @@ const {
|
|
|
4059
4087
|
opacity: 1,
|
|
4060
4088
|
transform: "translate3d(0, 0, 0)"
|
|
4061
4089
|
}
|
|
4062
|
-
}),
|
|
4090
|
+
}), jo = new d("fadeInTopRight", {
|
|
4063
4091
|
from: {
|
|
4064
4092
|
opacity: 0,
|
|
4065
4093
|
transform: "translate3d(100%, -100%, 0)"
|
|
@@ -4068,7 +4096,7 @@ const {
|
|
|
4068
4096
|
opacity: 1,
|
|
4069
4097
|
transform: "translate3d(0, 0, 0)"
|
|
4070
4098
|
}
|
|
4071
|
-
}),
|
|
4099
|
+
}), Wo = new d("fadeInBottomLeft", {
|
|
4072
4100
|
from: {
|
|
4073
4101
|
opacity: 0,
|
|
4074
4102
|
transform: "translate3d(-100%, 100%, 0)"
|
|
@@ -4077,14 +4105,14 @@ const {
|
|
|
4077
4105
|
opacity: 1,
|
|
4078
4106
|
transform: "translate3d(0, 0, 0)"
|
|
4079
4107
|
}
|
|
4080
|
-
}),
|
|
4108
|
+
}), Ko = new d("fadeOut", {
|
|
4081
4109
|
from: {
|
|
4082
4110
|
opacity: 1
|
|
4083
4111
|
},
|
|
4084
4112
|
to: {
|
|
4085
4113
|
opacity: 0
|
|
4086
4114
|
}
|
|
4087
|
-
}),
|
|
4115
|
+
}), Uo = new d("fadeOutLeft", {
|
|
4088
4116
|
from: {
|
|
4089
4117
|
opacity: 1
|
|
4090
4118
|
},
|
|
@@ -4092,7 +4120,7 @@ const {
|
|
|
4092
4120
|
opacity: 0,
|
|
4093
4121
|
transform: "translate3d(-100%, 0, 0)"
|
|
4094
4122
|
}
|
|
4095
|
-
}),
|
|
4123
|
+
}), Xo = new d("fadeOutRight", {
|
|
4096
4124
|
from: {
|
|
4097
4125
|
opacity: 1
|
|
4098
4126
|
},
|
|
@@ -4100,7 +4128,7 @@ const {
|
|
|
4100
4128
|
opacity: 0,
|
|
4101
4129
|
transform: "translate3d(100%, 0, 0)"
|
|
4102
4130
|
}
|
|
4103
|
-
}),
|
|
4131
|
+
}), Go = new d("fadeOutDown", {
|
|
4104
4132
|
from: {
|
|
4105
4133
|
opacity: 1
|
|
4106
4134
|
},
|
|
@@ -4108,7 +4136,7 @@ const {
|
|
|
4108
4136
|
opacity: 0,
|
|
4109
4137
|
transform: "translate3d(0, 100%, 0)"
|
|
4110
4138
|
}
|
|
4111
|
-
}),
|
|
4139
|
+
}), Yo = new d("fadeOutUp", {
|
|
4112
4140
|
from: {
|
|
4113
4141
|
opacity: 1
|
|
4114
4142
|
},
|
|
@@ -4116,7 +4144,7 @@ const {
|
|
|
4116
4144
|
opacity: 0,
|
|
4117
4145
|
transform: "translate3d(0, -100%, 0)"
|
|
4118
4146
|
}
|
|
4119
|
-
}),
|
|
4147
|
+
}), qo = new d("fadeOutDownBig", {
|
|
4120
4148
|
from: {
|
|
4121
4149
|
opacity: 1
|
|
4122
4150
|
},
|
|
@@ -4124,7 +4152,7 @@ const {
|
|
|
4124
4152
|
opacity: 0,
|
|
4125
4153
|
transform: "translate3d(0, 2000px, 0)"
|
|
4126
4154
|
}
|
|
4127
|
-
}),
|
|
4155
|
+
}), Zo = new d("fadeOutUpBig", {
|
|
4128
4156
|
from: {
|
|
4129
4157
|
opacity: 1
|
|
4130
4158
|
},
|
|
@@ -4132,7 +4160,7 @@ const {
|
|
|
4132
4160
|
opacity: 0,
|
|
4133
4161
|
transform: "translate3d(0, -2000px, 0)"
|
|
4134
4162
|
}
|
|
4135
|
-
}),
|
|
4163
|
+
}), Jo = new d("fadeOutLeftBig", {
|
|
4136
4164
|
from: {
|
|
4137
4165
|
opacity: 1
|
|
4138
4166
|
},
|
|
@@ -4140,7 +4168,7 @@ const {
|
|
|
4140
4168
|
opacity: 0,
|
|
4141
4169
|
transform: "translate3d(-2000px, 0, 0)"
|
|
4142
4170
|
}
|
|
4143
|
-
}),
|
|
4171
|
+
}), Qo = new d("fadeOutRightBig", {
|
|
4144
4172
|
from: {
|
|
4145
4173
|
opacity: 1
|
|
4146
4174
|
},
|
|
@@ -4148,7 +4176,7 @@ const {
|
|
|
4148
4176
|
opacity: 0,
|
|
4149
4177
|
transform: "translate3d(2000px, 0, 0)"
|
|
4150
4178
|
}
|
|
4151
|
-
}),
|
|
4179
|
+
}), ei = new d("fadeOutTopLeft", {
|
|
4152
4180
|
from: {
|
|
4153
4181
|
opacity: 1,
|
|
4154
4182
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -4157,7 +4185,7 @@ const {
|
|
|
4157
4185
|
opacity: 0,
|
|
4158
4186
|
transform: "translate3d(-100%, -100%, 0)"
|
|
4159
4187
|
}
|
|
4160
|
-
}),
|
|
4188
|
+
}), ti = new d("fadeOutBottomRight", {
|
|
4161
4189
|
from: {
|
|
4162
4190
|
opacity: 1,
|
|
4163
4191
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -4166,7 +4194,7 @@ const {
|
|
|
4166
4194
|
opacity: 0,
|
|
4167
4195
|
transform: "translate3d(100%, 100%, 0)"
|
|
4168
4196
|
}
|
|
4169
|
-
}),
|
|
4197
|
+
}), ni = new d("fadeOutTopRight", {
|
|
4170
4198
|
from: {
|
|
4171
4199
|
opacity: 1,
|
|
4172
4200
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -4175,7 +4203,7 @@ const {
|
|
|
4175
4203
|
opacity: 0,
|
|
4176
4204
|
transform: "translate3d(100%, -100%, 0)"
|
|
4177
4205
|
}
|
|
4178
|
-
}),
|
|
4206
|
+
}), ai = new d("fadeOutBottomLeft", {
|
|
4179
4207
|
from: {
|
|
4180
4208
|
opacity: 1,
|
|
4181
4209
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -4184,10 +4212,10 @@ const {
|
|
|
4184
4212
|
opacity: 0,
|
|
4185
4213
|
transform: "translate3d(-100%, 100%, 0)"
|
|
4186
4214
|
}
|
|
4187
|
-
}),
|
|
4215
|
+
}), oi = () => ({
|
|
4188
4216
|
"&.fadeIn": {
|
|
4189
4217
|
animationFillMode: "both",
|
|
4190
|
-
animationName:
|
|
4218
|
+
animationName: Po
|
|
4191
4219
|
},
|
|
4192
4220
|
"&.fadeInLeft": {
|
|
4193
4221
|
animationFillMode: "both",
|
|
@@ -4195,102 +4223,102 @@ const {
|
|
|
4195
4223
|
},
|
|
4196
4224
|
"&.fadeInRight": {
|
|
4197
4225
|
animationFillMode: "both",
|
|
4198
|
-
animationName:
|
|
4226
|
+
animationName: Lo
|
|
4199
4227
|
},
|
|
4200
4228
|
"&.fadeInDown": {
|
|
4201
4229
|
animationFillMode: "both",
|
|
4202
|
-
animationName:
|
|
4230
|
+
animationName: Do
|
|
4203
4231
|
},
|
|
4204
4232
|
"&.fadeInUp": {
|
|
4205
4233
|
animationFillMode: "both",
|
|
4206
|
-
animationName:
|
|
4234
|
+
animationName: zo
|
|
4207
4235
|
},
|
|
4208
4236
|
"&.fadeInLeftBig": {
|
|
4209
4237
|
animationFillMode: "both",
|
|
4210
|
-
animationName:
|
|
4238
|
+
animationName: _o
|
|
4211
4239
|
},
|
|
4212
4240
|
"&.fadeInRightBig": {
|
|
4213
4241
|
animationFillMode: "both",
|
|
4214
|
-
animationName:
|
|
4242
|
+
animationName: Vo
|
|
4215
4243
|
},
|
|
4216
4244
|
"&.fadeInUpBig": {
|
|
4217
4245
|
animationFillMode: "both",
|
|
4218
|
-
animationName:
|
|
4246
|
+
animationName: Ho
|
|
4219
4247
|
},
|
|
4220
4248
|
"&.fadeInDownBig": {
|
|
4221
4249
|
animationFillMode: "both",
|
|
4222
|
-
animationName:
|
|
4250
|
+
animationName: No
|
|
4223
4251
|
},
|
|
4224
4252
|
"&.fadeInTopLeft": {
|
|
4225
4253
|
animationFillMode: "both",
|
|
4226
|
-
animationName:
|
|
4254
|
+
animationName: Ao
|
|
4227
4255
|
},
|
|
4228
4256
|
"&.fadeInBottomRight": {
|
|
4229
4257
|
animationFillMode: "both",
|
|
4230
|
-
animationName:
|
|
4258
|
+
animationName: Eo
|
|
4231
4259
|
},
|
|
4232
4260
|
"&.fadeInTopRight": {
|
|
4233
4261
|
animationFillMode: "both",
|
|
4234
|
-
animationName:
|
|
4262
|
+
animationName: jo
|
|
4235
4263
|
},
|
|
4236
4264
|
"&.fadeInBottomLeft": {
|
|
4237
4265
|
animationFillMode: "both",
|
|
4238
|
-
animationName:
|
|
4266
|
+
animationName: Wo
|
|
4239
4267
|
}
|
|
4240
|
-
}),
|
|
4268
|
+
}), ii = () => ({
|
|
4241
4269
|
"&.fadeOut": {
|
|
4242
4270
|
animationFillMode: "both",
|
|
4243
|
-
animationName:
|
|
4271
|
+
animationName: Ko
|
|
4244
4272
|
},
|
|
4245
4273
|
"&.fadeOutLeft": {
|
|
4246
4274
|
animationFillMode: "both",
|
|
4247
|
-
animationName:
|
|
4275
|
+
animationName: Uo
|
|
4248
4276
|
},
|
|
4249
4277
|
"&.fadeOutRight": {
|
|
4250
4278
|
animationFillMode: "both",
|
|
4251
|
-
animationName:
|
|
4279
|
+
animationName: Xo
|
|
4252
4280
|
},
|
|
4253
4281
|
"&.fadeOutDown": {
|
|
4254
4282
|
animationFillMode: "both",
|
|
4255
|
-
animationName:
|
|
4283
|
+
animationName: Go
|
|
4256
4284
|
},
|
|
4257
4285
|
"&.fadeOutUp": {
|
|
4258
4286
|
animationFillMode: "both",
|
|
4259
|
-
animationName:
|
|
4287
|
+
animationName: Yo
|
|
4260
4288
|
},
|
|
4261
4289
|
"&.fadeOutDownBig": {
|
|
4262
4290
|
animationFillMode: "both",
|
|
4263
|
-
animationName:
|
|
4291
|
+
animationName: qo
|
|
4264
4292
|
},
|
|
4265
4293
|
"&.fadeOutUpBig": {
|
|
4266
4294
|
animationFillMode: "both",
|
|
4267
|
-
animationName:
|
|
4295
|
+
animationName: Zo
|
|
4268
4296
|
},
|
|
4269
4297
|
"&.fadeOutLeftBig": {
|
|
4270
4298
|
animationFillMode: "both",
|
|
4271
|
-
animationName:
|
|
4299
|
+
animationName: Jo
|
|
4272
4300
|
},
|
|
4273
4301
|
"&.fadeOutRightBig": {
|
|
4274
4302
|
animationFillMode: "both",
|
|
4275
|
-
animationName:
|
|
4303
|
+
animationName: Qo
|
|
4276
4304
|
},
|
|
4277
4305
|
"&.fadeOutTopLeft": {
|
|
4278
4306
|
animationFillMode: "both",
|
|
4279
|
-
animationName:
|
|
4307
|
+
animationName: ei
|
|
4280
4308
|
},
|
|
4281
4309
|
"&.fadeOutBottomRight": {
|
|
4282
4310
|
animationFillMode: "both",
|
|
4283
|
-
animationName:
|
|
4311
|
+
animationName: ti
|
|
4284
4312
|
},
|
|
4285
4313
|
"&.fadeOutTopRight": {
|
|
4286
4314
|
animationFillMode: "both",
|
|
4287
|
-
animationName:
|
|
4315
|
+
animationName: ni
|
|
4288
4316
|
},
|
|
4289
4317
|
"&.fadeOutBottomLeft": {
|
|
4290
4318
|
animationFillMode: "both",
|
|
4291
|
-
animationName:
|
|
4319
|
+
animationName: ai
|
|
4292
4320
|
}
|
|
4293
|
-
}),
|
|
4321
|
+
}), li = new d("flipInX", {
|
|
4294
4322
|
from: {
|
|
4295
4323
|
opacity: 0,
|
|
4296
4324
|
animationTimingFunction: "ease-in",
|
|
@@ -4310,7 +4338,7 @@ const {
|
|
|
4310
4338
|
to: {
|
|
4311
4339
|
transform: "perspective(400px)"
|
|
4312
4340
|
}
|
|
4313
|
-
}),
|
|
4341
|
+
}), ri = new d("flipInY", {
|
|
4314
4342
|
from: {
|
|
4315
4343
|
opacity: 0,
|
|
4316
4344
|
animationTimingFunction: "ease-in",
|
|
@@ -4330,7 +4358,7 @@ const {
|
|
|
4330
4358
|
to: {
|
|
4331
4359
|
transform: "perspective(400px)"
|
|
4332
4360
|
}
|
|
4333
|
-
}),
|
|
4361
|
+
}), si = new d("flipOutX", {
|
|
4334
4362
|
from: {
|
|
4335
4363
|
transform: "perspective(400px)"
|
|
4336
4364
|
},
|
|
@@ -4342,7 +4370,7 @@ const {
|
|
|
4342
4370
|
opacity: 0,
|
|
4343
4371
|
transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
|
|
4344
4372
|
}
|
|
4345
|
-
}),
|
|
4373
|
+
}), ui = new d("flipOutY", {
|
|
4346
4374
|
from: {
|
|
4347
4375
|
transform: "perspective(400px)"
|
|
4348
4376
|
},
|
|
@@ -4354,31 +4382,31 @@ const {
|
|
|
4354
4382
|
opacity: 0,
|
|
4355
4383
|
transform: "perspective(400px) rotate3d(0, 1, 0, 90deg)"
|
|
4356
4384
|
}
|
|
4357
|
-
}),
|
|
4385
|
+
}), di = () => ({
|
|
4358
4386
|
"&.flipInX": {
|
|
4359
4387
|
animationFillMode: "both",
|
|
4360
4388
|
backfaceVisibility: "visible !important",
|
|
4361
|
-
animationName:
|
|
4389
|
+
animationName: li
|
|
4362
4390
|
},
|
|
4363
4391
|
"&.flipInY": {
|
|
4364
4392
|
animationFillMode: "both",
|
|
4365
4393
|
backfaceVisibility: "visible !important",
|
|
4366
|
-
animationName:
|
|
4394
|
+
animationName: ri
|
|
4367
4395
|
}
|
|
4368
|
-
}),
|
|
4396
|
+
}), ci = () => ({
|
|
4369
4397
|
"&.flipOutX": {
|
|
4370
4398
|
animationFillMode: "both",
|
|
4371
4399
|
backfaceVisibility: "visible !important",
|
|
4372
4400
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
4373
|
-
animationName:
|
|
4401
|
+
animationName: si
|
|
4374
4402
|
},
|
|
4375
4403
|
"&.flipOutY": {
|
|
4376
4404
|
animationFillMode: "both",
|
|
4377
4405
|
backfaceVisibility: "visible !important",
|
|
4378
4406
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
4379
|
-
animationName:
|
|
4407
|
+
animationName: ui
|
|
4380
4408
|
}
|
|
4381
|
-
}),
|
|
4409
|
+
}), mi = new d("lightSpeedInLeft", {
|
|
4382
4410
|
from: {
|
|
4383
4411
|
opacity: 0,
|
|
4384
4412
|
transform: "translate3d(-100%, 0, 0) skewX(30deg)"
|
|
@@ -4393,7 +4421,7 @@ const {
|
|
|
4393
4421
|
to: {
|
|
4394
4422
|
transform: "translate3d(0, 0, 0)"
|
|
4395
4423
|
}
|
|
4396
|
-
}),
|
|
4424
|
+
}), fi = new d("lightSpeedInRight", {
|
|
4397
4425
|
from: {
|
|
4398
4426
|
opacity: 0,
|
|
4399
4427
|
transform: "translate3d(100%, 0, 0) skewX(-30deg)"
|
|
@@ -4408,7 +4436,7 @@ const {
|
|
|
4408
4436
|
to: {
|
|
4409
4437
|
transform: "translate3d(0, 0, 0)"
|
|
4410
4438
|
}
|
|
4411
|
-
}),
|
|
4439
|
+
}), hi = new d("lightSpeedOutLeft", {
|
|
4412
4440
|
from: {
|
|
4413
4441
|
opacity: 1
|
|
4414
4442
|
},
|
|
@@ -4416,7 +4444,7 @@ const {
|
|
|
4416
4444
|
opacity: 0,
|
|
4417
4445
|
transform: "translate3d(-100%, 0, 0) skewX(-30deg)"
|
|
4418
4446
|
}
|
|
4419
|
-
}),
|
|
4447
|
+
}), gi = new d("lightSpeedOutRight", {
|
|
4420
4448
|
from: {
|
|
4421
4449
|
opacity: 1
|
|
4422
4450
|
},
|
|
@@ -4424,29 +4452,29 @@ const {
|
|
|
4424
4452
|
opacity: 0,
|
|
4425
4453
|
transform: "translate3d(100%, 0, 0) skewX(30deg)"
|
|
4426
4454
|
}
|
|
4427
|
-
}),
|
|
4455
|
+
}), yi = () => ({
|
|
4428
4456
|
"&.lightSpeedInLeft": {
|
|
4429
4457
|
animationFillMode: "both",
|
|
4430
4458
|
animationTimingFunction: "ease-out",
|
|
4431
|
-
animationName:
|
|
4459
|
+
animationName: mi
|
|
4432
4460
|
},
|
|
4433
4461
|
"&.lightSpeedInRight": {
|
|
4434
4462
|
animationFillMode: "both",
|
|
4435
4463
|
animationTimingFunction: "ease-out",
|
|
4436
|
-
animationName:
|
|
4464
|
+
animationName: fi
|
|
4437
4465
|
}
|
|
4438
|
-
}),
|
|
4466
|
+
}), bi = () => ({
|
|
4439
4467
|
"&.lightSpeedOutLeft": {
|
|
4440
4468
|
animationFillMode: "both",
|
|
4441
4469
|
animationTimingFunction: "ease-in",
|
|
4442
|
-
animationName:
|
|
4470
|
+
animationName: hi
|
|
4443
4471
|
},
|
|
4444
4472
|
"&.lightSpeedOutRight": {
|
|
4445
4473
|
animationFillMode: "both",
|
|
4446
4474
|
animationTimingFunction: "ease-in",
|
|
4447
|
-
animationName:
|
|
4475
|
+
animationName: gi
|
|
4448
4476
|
}
|
|
4449
|
-
}),
|
|
4477
|
+
}), pi = new d("rotateIn", {
|
|
4450
4478
|
from: {
|
|
4451
4479
|
opacity: 0,
|
|
4452
4480
|
transform: "rotate3d(0, 0, 1, -200deg)"
|
|
@@ -4455,7 +4483,7 @@ const {
|
|
|
4455
4483
|
opacity: 1,
|
|
4456
4484
|
transform: "translate3d(0, 0, 0)"
|
|
4457
4485
|
}
|
|
4458
|
-
}),
|
|
4486
|
+
}), vi = new d("rotateInDownLeft", {
|
|
4459
4487
|
from: {
|
|
4460
4488
|
opacity: 0,
|
|
4461
4489
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
@@ -4464,7 +4492,7 @@ const {
|
|
|
4464
4492
|
opacity: 1,
|
|
4465
4493
|
transform: "translate3d(0, 0, 0)"
|
|
4466
4494
|
}
|
|
4467
|
-
}),
|
|
4495
|
+
}), xi = new d("rotateInDownRight", {
|
|
4468
4496
|
from: {
|
|
4469
4497
|
opacity: 0,
|
|
4470
4498
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
@@ -4473,7 +4501,7 @@ const {
|
|
|
4473
4501
|
opacity: 1,
|
|
4474
4502
|
transform: "translate3d(0, 0, 0)"
|
|
4475
4503
|
}
|
|
4476
|
-
}),
|
|
4504
|
+
}), Ci = new d("rotateInUpLeft", {
|
|
4477
4505
|
from: {
|
|
4478
4506
|
opacity: 0,
|
|
4479
4507
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
@@ -4482,7 +4510,7 @@ const {
|
|
|
4482
4510
|
opacity: 1,
|
|
4483
4511
|
transform: "translate3d(0, 0, 0)"
|
|
4484
4512
|
}
|
|
4485
|
-
}),
|
|
4513
|
+
}), wi = new d("rotateInUpRight", {
|
|
4486
4514
|
from: {
|
|
4487
4515
|
opacity: 0,
|
|
4488
4516
|
transform: "rotate3d(0, 0, 1, -90deg)"
|
|
@@ -4491,7 +4519,7 @@ const {
|
|
|
4491
4519
|
opacity: 1,
|
|
4492
4520
|
transform: "translate3d(0, 0, 0)"
|
|
4493
4521
|
}
|
|
4494
|
-
}),
|
|
4522
|
+
}), Si = new d("rotateOut", {
|
|
4495
4523
|
from: {
|
|
4496
4524
|
opacity: 1
|
|
4497
4525
|
},
|
|
@@ -4499,7 +4527,7 @@ const {
|
|
|
4499
4527
|
opacity: 0,
|
|
4500
4528
|
transform: "rotate3d(0, 0, 1, 200deg)"
|
|
4501
4529
|
}
|
|
4502
|
-
}),
|
|
4530
|
+
}), Ii = new d("rotateOutDownLeft", {
|
|
4503
4531
|
from: {
|
|
4504
4532
|
opacity: 1
|
|
4505
4533
|
},
|
|
@@ -4507,7 +4535,7 @@ const {
|
|
|
4507
4535
|
opacity: 0,
|
|
4508
4536
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
4509
4537
|
}
|
|
4510
|
-
}),
|
|
4538
|
+
}), Oi = new d("rotateOutDownRight", {
|
|
4511
4539
|
from: {
|
|
4512
4540
|
opacity: 1
|
|
4513
4541
|
},
|
|
@@ -4515,7 +4543,7 @@ const {
|
|
|
4515
4543
|
opacity: 0,
|
|
4516
4544
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4517
4545
|
}
|
|
4518
|
-
}),
|
|
4546
|
+
}), Mi = new d("rotateOutUpLeft", {
|
|
4519
4547
|
from: {
|
|
4520
4548
|
opacity: 1
|
|
4521
4549
|
},
|
|
@@ -4523,7 +4551,7 @@ const {
|
|
|
4523
4551
|
opacity: 0,
|
|
4524
4552
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4525
4553
|
}
|
|
4526
|
-
}),
|
|
4554
|
+
}), Ri = new d("rotateOutUpRight", {
|
|
4527
4555
|
from: {
|
|
4528
4556
|
opacity: 1
|
|
4529
4557
|
},
|
|
@@ -4531,59 +4559,59 @@ const {
|
|
|
4531
4559
|
opacity: 0,
|
|
4532
4560
|
transform: "rotate3d(0, 0, 1, 90deg)"
|
|
4533
4561
|
}
|
|
4534
|
-
}),
|
|
4562
|
+
}), Bi = () => ({
|
|
4535
4563
|
"&.rotateIn": {
|
|
4536
4564
|
animationFillMode: "both",
|
|
4537
4565
|
transformOrigin: "center",
|
|
4538
|
-
animationName:
|
|
4566
|
+
animationName: pi
|
|
4539
4567
|
},
|
|
4540
4568
|
"&.rotateInDownLeft": {
|
|
4541
4569
|
animationFillMode: "both",
|
|
4542
4570
|
transformOrigin: "left bottom",
|
|
4543
|
-
animationName:
|
|
4571
|
+
animationName: vi
|
|
4544
4572
|
},
|
|
4545
4573
|
"&.rotateInDownRight": {
|
|
4546
4574
|
animationFillMode: "both",
|
|
4547
4575
|
transformOrigin: "right bottom",
|
|
4548
|
-
animationName:
|
|
4576
|
+
animationName: xi
|
|
4549
4577
|
},
|
|
4550
4578
|
"&.rotateInUpLeft": {
|
|
4551
4579
|
animationFillMode: "both",
|
|
4552
4580
|
transformOrigin: "left bottom",
|
|
4553
|
-
animationName:
|
|
4581
|
+
animationName: Ci
|
|
4554
4582
|
},
|
|
4555
4583
|
"&.rotateInUpRight": {
|
|
4556
4584
|
animationFillMode: "both",
|
|
4557
4585
|
transformOrigin: "right bottom",
|
|
4558
|
-
animationName:
|
|
4586
|
+
animationName: wi
|
|
4559
4587
|
}
|
|
4560
|
-
}),
|
|
4588
|
+
}), ki = () => ({
|
|
4561
4589
|
"&.rotateOut": {
|
|
4562
4590
|
animationFillMode: "both",
|
|
4563
4591
|
transformOrigin: "center",
|
|
4564
|
-
animationName:
|
|
4592
|
+
animationName: Si
|
|
4565
4593
|
},
|
|
4566
4594
|
"&.rotateOutDownLeft": {
|
|
4567
4595
|
animationFillMode: "both",
|
|
4568
4596
|
transformOrigin: "left bottom",
|
|
4569
|
-
animationName:
|
|
4597
|
+
animationName: Ii
|
|
4570
4598
|
},
|
|
4571
4599
|
"&.rotateOutDownRight": {
|
|
4572
4600
|
animationFillMode: "both",
|
|
4573
4601
|
transformOrigin: "right bottom",
|
|
4574
|
-
animationName:
|
|
4602
|
+
animationName: Oi
|
|
4575
4603
|
},
|
|
4576
4604
|
"&.rotateOutUpLeft": {
|
|
4577
4605
|
animationFillMode: "both",
|
|
4578
4606
|
transformOrigin: "left bottom",
|
|
4579
|
-
animationName:
|
|
4607
|
+
animationName: Mi
|
|
4580
4608
|
},
|
|
4581
4609
|
"&.rotateOutUpRight": {
|
|
4582
4610
|
animationFillMode: "both",
|
|
4583
4611
|
transformOrigin: "right bottom",
|
|
4584
|
-
animationName:
|
|
4612
|
+
animationName: Ri
|
|
4585
4613
|
}
|
|
4586
|
-
}),
|
|
4614
|
+
}), $i = new d("rollIn", {
|
|
4587
4615
|
from: {
|
|
4588
4616
|
opacity: 0,
|
|
4589
4617
|
transform: "translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"
|
|
@@ -4592,7 +4620,7 @@ const {
|
|
|
4592
4620
|
opacity: 1,
|
|
4593
4621
|
transform: "translate3d(0, 0, 0)"
|
|
4594
4622
|
}
|
|
4595
|
-
}),
|
|
4623
|
+
}), Ti = new d("rollOut", {
|
|
4596
4624
|
from: {
|
|
4597
4625
|
opacity: 1
|
|
4598
4626
|
},
|
|
@@ -4600,17 +4628,17 @@ const {
|
|
|
4600
4628
|
opacity: 0,
|
|
4601
4629
|
transform: "translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"
|
|
4602
4630
|
}
|
|
4603
|
-
}),
|
|
4631
|
+
}), Pi = () => ({
|
|
4604
4632
|
"&.rollIn": {
|
|
4605
4633
|
animationFillMode: "both",
|
|
4606
|
-
animationName:
|
|
4634
|
+
animationName: $i
|
|
4607
4635
|
}
|
|
4608
4636
|
}), Fi = () => ({
|
|
4609
4637
|
"&.rollOut": {
|
|
4610
4638
|
animationFillMode: "both",
|
|
4611
|
-
animationName:
|
|
4639
|
+
animationName: Ti
|
|
4612
4640
|
}
|
|
4613
|
-
}),
|
|
4641
|
+
}), Li = new d("zoomIn", {
|
|
4614
4642
|
from: {
|
|
4615
4643
|
opacity: 0,
|
|
4616
4644
|
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
@@ -4618,7 +4646,7 @@ const {
|
|
|
4618
4646
|
"50%": {
|
|
4619
4647
|
opacity: 1
|
|
4620
4648
|
}
|
|
4621
|
-
}),
|
|
4649
|
+
}), Di = new d("zoomInDown", {
|
|
4622
4650
|
from: {
|
|
4623
4651
|
opacity: 0,
|
|
4624
4652
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",
|
|
@@ -4629,7 +4657,7 @@ const {
|
|
|
4629
4657
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
4630
4658
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4631
4659
|
}
|
|
4632
|
-
}),
|
|
4660
|
+
}), zi = new d("zoomInLeft", {
|
|
4633
4661
|
from: {
|
|
4634
4662
|
opacity: 0,
|
|
4635
4663
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",
|
|
@@ -4640,7 +4668,7 @@ const {
|
|
|
4640
4668
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",
|
|
4641
4669
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4642
4670
|
}
|
|
4643
|
-
}),
|
|
4671
|
+
}), Ni = new d("zoomInRight", {
|
|
4644
4672
|
from: {
|
|
4645
4673
|
opacity: 0,
|
|
4646
4674
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",
|
|
@@ -4651,7 +4679,7 @@ const {
|
|
|
4651
4679
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",
|
|
4652
4680
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4653
4681
|
}
|
|
4654
|
-
}),
|
|
4682
|
+
}), Hi = new d("zoomInUp", {
|
|
4655
4683
|
from: {
|
|
4656
4684
|
opacity: 0,
|
|
4657
4685
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",
|
|
@@ -4662,7 +4690,7 @@ const {
|
|
|
4662
4690
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
4663
4691
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4664
4692
|
}
|
|
4665
|
-
}),
|
|
4693
|
+
}), _i = new d("zoomOut", {
|
|
4666
4694
|
from: {
|
|
4667
4695
|
opacity: 1
|
|
4668
4696
|
},
|
|
@@ -4673,7 +4701,7 @@ const {
|
|
|
4673
4701
|
to: {
|
|
4674
4702
|
opacity: 0
|
|
4675
4703
|
}
|
|
4676
|
-
}),
|
|
4704
|
+
}), Vi = new d("zoomOutDown", {
|
|
4677
4705
|
"40%": {
|
|
4678
4706
|
opacity: 1,
|
|
4679
4707
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
@@ -4684,7 +4712,7 @@ const {
|
|
|
4684
4712
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
|
|
4685
4713
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4686
4714
|
}
|
|
4687
|
-
}),
|
|
4715
|
+
}), Ai = new d("zoomOutLeft", {
|
|
4688
4716
|
"40%": {
|
|
4689
4717
|
opacity: 1,
|
|
4690
4718
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
|
|
@@ -4693,7 +4721,7 @@ const {
|
|
|
4693
4721
|
opacity: 0,
|
|
4694
4722
|
transform: "scale(0.1) translate3d(-2000px, 0, 0)"
|
|
4695
4723
|
}
|
|
4696
|
-
}),
|
|
4724
|
+
}), Ei = new d("zoomOutRight", {
|
|
4697
4725
|
"40%": {
|
|
4698
4726
|
opacity: 1,
|
|
4699
4727
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
|
|
@@ -4702,7 +4730,7 @@ const {
|
|
|
4702
4730
|
opacity: 0,
|
|
4703
4731
|
transform: "scale(0.1) translate3d(2000px, 0, 0)"
|
|
4704
4732
|
}
|
|
4705
|
-
}),
|
|
4733
|
+
}), ji = new d("zoomOutUp", {
|
|
4706
4734
|
"40%": {
|
|
4707
4735
|
opacity: 1,
|
|
4708
4736
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
@@ -4713,53 +4741,53 @@ const {
|
|
|
4713
4741
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",
|
|
4714
4742
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4715
4743
|
}
|
|
4716
|
-
}),
|
|
4744
|
+
}), Wi = () => ({
|
|
4717
4745
|
"&.zoomIn": {
|
|
4718
4746
|
animationFillMode: "both",
|
|
4719
|
-
animationName:
|
|
4747
|
+
animationName: Li
|
|
4720
4748
|
},
|
|
4721
4749
|
"&.zoomInDown": {
|
|
4722
4750
|
animationFillMode: "both",
|
|
4723
|
-
animationName:
|
|
4751
|
+
animationName: Di
|
|
4724
4752
|
},
|
|
4725
4753
|
"&.zoomInLeft": {
|
|
4726
4754
|
animationFillMode: "both",
|
|
4727
|
-
animationName:
|
|
4755
|
+
animationName: zi
|
|
4728
4756
|
},
|
|
4729
4757
|
"&.zoomInRight": {
|
|
4730
4758
|
animationFillMode: "both",
|
|
4731
|
-
animationName:
|
|
4759
|
+
animationName: Ni
|
|
4732
4760
|
},
|
|
4733
4761
|
"&.zoomInUp": {
|
|
4734
4762
|
animationFillMode: "both",
|
|
4735
|
-
animationName:
|
|
4763
|
+
animationName: Hi
|
|
4736
4764
|
}
|
|
4737
|
-
}),
|
|
4765
|
+
}), Ki = () => ({
|
|
4738
4766
|
"&.zoomOut": {
|
|
4739
4767
|
animationFillMode: "both",
|
|
4740
|
-
animationName:
|
|
4768
|
+
animationName: _i
|
|
4741
4769
|
},
|
|
4742
4770
|
"&.zoomOutDown": {
|
|
4743
4771
|
animationFillMode: "both",
|
|
4744
4772
|
transformOrigin: "center bottom",
|
|
4745
|
-
animationName:
|
|
4773
|
+
animationName: Vi
|
|
4746
4774
|
},
|
|
4747
4775
|
"&.zoomOutLeft": {
|
|
4748
4776
|
animationFillMode: "both",
|
|
4749
4777
|
transformOrigin: "left center",
|
|
4750
|
-
animationName:
|
|
4778
|
+
animationName: Ai
|
|
4751
4779
|
},
|
|
4752
4780
|
"&.zoomOutRight": {
|
|
4753
4781
|
animationFillMode: "both",
|
|
4754
4782
|
transformOrigin: "right center",
|
|
4755
|
-
animationName:
|
|
4783
|
+
animationName: Ei
|
|
4756
4784
|
},
|
|
4757
4785
|
"&.zoomOutUp": {
|
|
4758
4786
|
animationFillMode: "both",
|
|
4759
4787
|
transformOrigin: "center bottom",
|
|
4760
|
-
animationName:
|
|
4788
|
+
animationName: ji
|
|
4761
4789
|
}
|
|
4762
|
-
}),
|
|
4790
|
+
}), Ui = new d("slideInDown", {
|
|
4763
4791
|
from: {
|
|
4764
4792
|
transform: "translate3d(0, -100%, 0)",
|
|
4765
4793
|
visibility: "visible"
|
|
@@ -4767,7 +4795,7 @@ const {
|
|
|
4767
4795
|
to: {
|
|
4768
4796
|
transform: "translate3d(0, 0, 0)"
|
|
4769
4797
|
}
|
|
4770
|
-
}),
|
|
4798
|
+
}), Xi = new d("slideInLeft", {
|
|
4771
4799
|
from: {
|
|
4772
4800
|
transform: "translate3d(-100%, 0, 0)",
|
|
4773
4801
|
visibility: "visible"
|
|
@@ -4775,7 +4803,7 @@ const {
|
|
|
4775
4803
|
to: {
|
|
4776
4804
|
transform: "translate3d(0, 0, 0)"
|
|
4777
4805
|
}
|
|
4778
|
-
}),
|
|
4806
|
+
}), Gi = new d("slideInRight", {
|
|
4779
4807
|
from: {
|
|
4780
4808
|
transform: "translate3d(100%, 0, 0)",
|
|
4781
4809
|
visibility: "visible"
|
|
@@ -4783,7 +4811,7 @@ const {
|
|
|
4783
4811
|
to: {
|
|
4784
4812
|
transform: "translate3d(0, 0, 0)"
|
|
4785
4813
|
}
|
|
4786
|
-
}),
|
|
4814
|
+
}), Yi = new d("slideInUp", {
|
|
4787
4815
|
from: {
|
|
4788
4816
|
transform: "translate3d(0, 100%, 0)",
|
|
4789
4817
|
visibility: "visible"
|
|
@@ -4791,7 +4819,7 @@ const {
|
|
|
4791
4819
|
to: {
|
|
4792
4820
|
transform: "translate3d(0, 0, 0)"
|
|
4793
4821
|
}
|
|
4794
|
-
}),
|
|
4822
|
+
}), qi = new d("slideOutDown", {
|
|
4795
4823
|
from: {
|
|
4796
4824
|
transform: "translate3d(0, 0, 0)"
|
|
4797
4825
|
},
|
|
@@ -4799,7 +4827,7 @@ const {
|
|
|
4799
4827
|
transform: "translate3d(0, 100%, 0)",
|
|
4800
4828
|
visibility: "hidden"
|
|
4801
4829
|
}
|
|
4802
|
-
}),
|
|
4830
|
+
}), Zi = new d("slideOutLeft", {
|
|
4803
4831
|
from: {
|
|
4804
4832
|
transform: "translate3d(0, 0, 0)"
|
|
4805
4833
|
},
|
|
@@ -4807,7 +4835,7 @@ const {
|
|
|
4807
4835
|
transform: "translate3d(-100%, 0, 0)",
|
|
4808
4836
|
visibility: "hidden"
|
|
4809
4837
|
}
|
|
4810
|
-
}),
|
|
4838
|
+
}), Ji = new d("slideOutRight", {
|
|
4811
4839
|
from: {
|
|
4812
4840
|
transform: "translate3d(0, 0, 0)"
|
|
4813
4841
|
},
|
|
@@ -4815,7 +4843,7 @@ const {
|
|
|
4815
4843
|
transform: "translate3d(100%, 0, 0)",
|
|
4816
4844
|
visibility: "hidden"
|
|
4817
4845
|
}
|
|
4818
|
-
}),
|
|
4846
|
+
}), Qi = new d("slideOutUp", {
|
|
4819
4847
|
from: {
|
|
4820
4848
|
transform: "translate3d(0, 0, 0)"
|
|
4821
4849
|
},
|
|
@@ -4823,57 +4851,43 @@ const {
|
|
|
4823
4851
|
transform: "translate3d(0, -100%, 0)",
|
|
4824
4852
|
visibility: "hidden"
|
|
4825
4853
|
}
|
|
4826
|
-
}),
|
|
4854
|
+
}), el = () => ({
|
|
4827
4855
|
"&.slideInDown": {
|
|
4828
4856
|
animationFillMode: "both",
|
|
4829
|
-
animationName:
|
|
4857
|
+
animationName: Ui
|
|
4830
4858
|
},
|
|
4831
4859
|
"&.slideInLeft": {
|
|
4832
4860
|
animationFillMode: "both",
|
|
4833
|
-
animationName:
|
|
4861
|
+
animationName: Xi
|
|
4834
4862
|
},
|
|
4835
4863
|
"&.slideInRight": {
|
|
4836
4864
|
animationFillMode: "both",
|
|
4837
|
-
animationName:
|
|
4865
|
+
animationName: Gi
|
|
4838
4866
|
},
|
|
4839
4867
|
"&.slideInUp": {
|
|
4840
4868
|
animationFillMode: "both",
|
|
4841
|
-
animationName:
|
|
4869
|
+
animationName: Yi
|
|
4842
4870
|
}
|
|
4843
|
-
}),
|
|
4871
|
+
}), tl = () => ({
|
|
4844
4872
|
"&.slideOutDown": {
|
|
4845
4873
|
animationFillMode: "both",
|
|
4846
|
-
animationName:
|
|
4874
|
+
animationName: qi
|
|
4847
4875
|
},
|
|
4848
4876
|
"&.slideOutLeft": {
|
|
4849
4877
|
animationFillMode: "both",
|
|
4850
|
-
animationName:
|
|
4878
|
+
animationName: Zi
|
|
4851
4879
|
},
|
|
4852
4880
|
"&.slideOutRight": {
|
|
4853
4881
|
animationFillMode: "both",
|
|
4854
|
-
animationName:
|
|
4882
|
+
animationName: Ji
|
|
4855
4883
|
},
|
|
4856
4884
|
"&.slideOutUp": {
|
|
4857
4885
|
animationFillMode: "both",
|
|
4858
|
-
animationName:
|
|
4886
|
+
animationName: Qi
|
|
4859
4887
|
}
|
|
4860
|
-
}),
|
|
4888
|
+
}), nl = (e) => ({
|
|
4861
4889
|
[e.componentCls]: {
|
|
4862
4890
|
"&-enter": {
|
|
4863
|
-
background: "transparent",
|
|
4864
|
-
animationDuration: ".3s !important",
|
|
4865
|
-
...bo(),
|
|
4866
|
-
...ko(),
|
|
4867
|
-
...ai(),
|
|
4868
|
-
...ui(),
|
|
4869
|
-
...gi(),
|
|
4870
|
-
...Ri(),
|
|
4871
|
-
...Ti(),
|
|
4872
|
-
...ji(),
|
|
4873
|
-
...Qi()
|
|
4874
|
-
},
|
|
4875
|
-
"&-leave": {
|
|
4876
|
-
display: "none",
|
|
4877
4891
|
background: "transparent",
|
|
4878
4892
|
animationDuration: ".3s !important",
|
|
4879
4893
|
...po(),
|
|
@@ -4882,19 +4896,33 @@ const {
|
|
|
4882
4896
|
...di(),
|
|
4883
4897
|
...yi(),
|
|
4884
4898
|
...Bi(),
|
|
4885
|
-
...
|
|
4899
|
+
...Pi(),
|
|
4886
4900
|
...Wi(),
|
|
4887
4901
|
...el()
|
|
4902
|
+
},
|
|
4903
|
+
"&-leave": {
|
|
4904
|
+
display: "none",
|
|
4905
|
+
background: "transparent",
|
|
4906
|
+
animationDuration: ".3s !important",
|
|
4907
|
+
...vo(),
|
|
4908
|
+
...To(),
|
|
4909
|
+
...ii(),
|
|
4910
|
+
...ci(),
|
|
4911
|
+
...bi(),
|
|
4912
|
+
...ki(),
|
|
4913
|
+
...Fi(),
|
|
4914
|
+
...Ki(),
|
|
4915
|
+
...tl()
|
|
4888
4916
|
}
|
|
4889
4917
|
}
|
|
4890
4918
|
});
|
|
4891
|
-
function
|
|
4892
|
-
return
|
|
4893
|
-
const n =
|
|
4894
|
-
return [
|
|
4919
|
+
function al(e) {
|
|
4920
|
+
return Ve("LayoutPageTranstion", (t) => {
|
|
4921
|
+
const n = Ae(t);
|
|
4922
|
+
return [nl(n)];
|
|
4895
4923
|
}, e);
|
|
4896
4924
|
}
|
|
4897
|
-
const
|
|
4925
|
+
const wl = /* @__PURE__ */ H({
|
|
4898
4926
|
name: "PageTranstion",
|
|
4899
4927
|
props: {
|
|
4900
4928
|
disabled: {
|
|
@@ -4920,53 +4948,54 @@ const xl = /* @__PURE__ */ H({
|
|
|
4920
4948
|
}), {
|
|
4921
4949
|
wrapSSR: a,
|
|
4922
4950
|
hashId: i
|
|
4923
|
-
} =
|
|
4924
|
-
const
|
|
4925
|
-
if (
|
|
4951
|
+
} = al(n), l = w(() => [u(!1), `${n}-enter`, i.value].join(" ")), s = w(() => [u(!0), `${n}-leave`, i.value].join(" ")), u = (c) => {
|
|
4952
|
+
const O = Ke.preset.find((r) => e.name == r.name);
|
|
4953
|
+
if (O == null)
|
|
4926
4954
|
return "";
|
|
4927
|
-
let
|
|
4928
|
-
e.direction == null ?
|
|
4929
|
-
const
|
|
4930
|
-
return
|
|
4931
|
-
},
|
|
4932
|
-
if (
|
|
4933
|
-
return
|
|
4934
|
-
let
|
|
4935
|
-
return
|
|
4955
|
+
let h = "";
|
|
4956
|
+
e.direction == null ? h = O.directions[0] : h = O.directions.find((r) => r == e.direction) || "", h = h == null || h === "default" ? "" : h, h != "" && (h = c && e.reverse ? v(h, O.directions) : h, h = h[0].toUpperCase() + h.substring(1));
|
|
4957
|
+
const p = c ? "Out" : "In";
|
|
4958
|
+
return O.name + p + h;
|
|
4959
|
+
}, v = (c, O) => {
|
|
4960
|
+
if (c.length == 0 || c == "x" || c == "y")
|
|
4961
|
+
return c;
|
|
4962
|
+
let h = O.indexOf(c);
|
|
4963
|
+
return h = h % 2 == 1 ? h - 1 : h + 1, O[h];
|
|
4936
4964
|
};
|
|
4937
|
-
return () => e.disabled ? null : a(o(
|
|
4938
|
-
enterActiveClass:
|
|
4939
|
-
leaveActiveClass:
|
|
4965
|
+
return () => e.disabled ? null : a(o(Xt, {
|
|
4966
|
+
enterActiveClass: l.value,
|
|
4967
|
+
leaveActiveClass: s.value
|
|
4940
4968
|
}, {
|
|
4941
4969
|
default: () => {
|
|
4942
|
-
var
|
|
4943
|
-
return [(
|
|
4970
|
+
var c;
|
|
4971
|
+
return [(c = t.default) == null ? void 0 : c.call(t)];
|
|
4944
4972
|
}
|
|
4945
4973
|
}));
|
|
4946
4974
|
}
|
|
4947
4975
|
});
|
|
4948
4976
|
export {
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4977
|
+
Ct as BaseMenu,
|
|
4978
|
+
Ya as DefaultHeader,
|
|
4979
|
+
vl as GProLayout,
|
|
4980
|
+
Te as GlobalFooter,
|
|
4981
|
+
pl as PageContainer,
|
|
4954
4982
|
Mn as PageLoading,
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4983
|
+
wl as PageTranstion,
|
|
4984
|
+
Cl as SettingDrawer,
|
|
4985
|
+
$e as SiderMenuWrapper,
|
|
4958
4986
|
Ye as WrapContent,
|
|
4959
4987
|
We as baseMenuProps,
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
zn as
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4988
|
+
Ln as clearMenuItem,
|
|
4989
|
+
An as createContext,
|
|
4990
|
+
jn as createRouteContext,
|
|
4991
|
+
Dn as flatMap,
|
|
4992
|
+
bl as getMatchedList,
|
|
4993
|
+
xl as getMenuData,
|
|
4994
|
+
zn as getMenuFirstChildren,
|
|
4995
|
+
Nn as getMenuFirstLastChildPath,
|
|
4996
|
+
Fn as getRealPath,
|
|
4997
|
+
Hn as handleThemeConfig,
|
|
4998
|
+
Wn as provideProLayoutContext,
|
|
4999
|
+
En as useContext,
|
|
4971
5000
|
J as useProLayoutContext
|
|
4972
5001
|
};
|