@gx-design-vue/pro-layout 0.1.0-beta.26 → 0.1.0-beta.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pro-layout.mjs +175 -168
- package/dist/pro-layout.umd.js +1 -1
- package/dist/utils/getMenuData.d.ts +1 -1
- package/package.json +1 -1
package/dist/pro-layout.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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 an, MenuUnfoldOutlined as on, MenuFoldOutlined as ln, GithubOutlined as rn, EllipsisOutlined as sn, ReloadOutlined as un, CloseOutlined as
|
|
5
|
-
import fn, { themeConfig as A, Keyframe as u, useProStyle as Z, useProConfigContext as
|
|
1
|
+
import { defineComponent as H, createVNode as o, mergeProps as X, provide as ze, readonly as Vt, inject as mt, resolveComponent as ft, computed as w, isVNode as ne, Fragment as q, toRefs as Oe, unref as U, createTextVNode as Q, ref as ve, reactive as Ne, watch as le, withDirectives as At, vShow as Et, getCurrentInstance as jt, onMounted as Wt, onUpdated as Kt, onUnmounted as Ut, watchEffect as Xt, Transition as Gt } from "vue";
|
|
2
|
+
import { Spin as xe, Menu as ee, ConfigProvider as He, Layout as de, Drawer as be, Breadcrumb as Yt, Card as qt, LayoutFooter as Zt, Tabs as _e, Dropdown as et, Tooltip as Me, List as te, Switch as ht, TabPane as Jt, Select as he, message as Qt, Divider as ke, Alert as en, Button as tn } from "ant-design-vue";
|
|
3
|
+
import { useRouter as Ve, RouterLink as nn } from "vue-router";
|
|
4
|
+
import { createFromIconfontCN as an, MenuUnfoldOutlined as on, MenuFoldOutlined as ln, GithubOutlined as rn, EllipsisOutlined as sn, ReloadOutlined as un, CloseOutlined as gt, CheckOutlined as yt, SettingOutlined as dn, NotificationOutlined as cn, CopyOutlined as mn } from "@ant-design/icons-vue";
|
|
5
|
+
import fn, { themeConfig as A, Keyframe as u, useProStyle as Z, useProConfigContext as Re, useStyle as Ae, mergeToken as Ee, colorList as hn } from "@gx-design-vue/pro-provider";
|
|
6
6
|
import { createTypes as gn } from "vue-types";
|
|
7
|
-
import { pick as ae, cloneDeep as
|
|
7
|
+
import { pick as ae, cloneDeep as bt, omit as je } from "lodash-es";
|
|
8
8
|
import { GPorWaterMark as yn } from "@gx-design-vue/pro-watermark";
|
|
9
|
-
import { getSlot as K, isBoolean as bn, getPrefixCls as ce, classNames as
|
|
9
|
+
import { getSlot as K, isBoolean as bn, getPrefixCls as ce, classNames as pt, 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";
|
|
13
|
-
import { GColorPicker as
|
|
13
|
+
import { GColorPicker as tt } from "@gx-design-vue/color-picker";
|
|
14
14
|
const Mn = /* @__PURE__ */ H({
|
|
15
15
|
name: "PageLoading",
|
|
16
16
|
props: {
|
|
@@ -31,7 +31,7 @@ const Mn = /* @__PURE__ */ H({
|
|
|
31
31
|
}, null)
|
|
32
32
|
}), null)]);
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), vt = gn({
|
|
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
|
+
vt.extend([{
|
|
44
44
|
name: "looseBool",
|
|
45
45
|
getter: !0,
|
|
46
46
|
type: Boolean,
|
|
@@ -55,7 +55,7 @@ pt.extend([{
|
|
|
55
55
|
getter: !0,
|
|
56
56
|
type: null
|
|
57
57
|
}]);
|
|
58
|
-
const L =
|
|
58
|
+
const L = vt, ie = {
|
|
59
59
|
theme: {
|
|
60
60
|
type: String,
|
|
61
61
|
default: A.theme
|
|
@@ -146,7 +146,7 @@ const L = pt, ie = {
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
onMenuHeaderClick: Function
|
|
149
|
-
},
|
|
149
|
+
}, We = {
|
|
150
150
|
...ie,
|
|
151
151
|
mode: {
|
|
152
152
|
type: String,
|
|
@@ -197,7 +197,7 @@ const L = pt, ie = {
|
|
|
197
197
|
}
|
|
198
198
|
}, Y = {
|
|
199
199
|
...ie,
|
|
200
|
-
...
|
|
200
|
+
...We,
|
|
201
201
|
menuLoading: L.looseBool,
|
|
202
202
|
logo: oe.logo,
|
|
203
203
|
logoStyle: oe.logoStyle,
|
|
@@ -247,16 +247,16 @@ const L = pt, 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]*))?)$/, xt = (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
|
|
254
|
+
function Ct(e, t, n, a) {
|
|
255
255
|
var r, d, m, b, h, S, s, k, l, p, I, M, g, c, f, v, T, x, O, F, R, D, _, N, z, y, C, $, B, P, j, W, E, V;
|
|
256
256
|
const i = { ...e };
|
|
257
257
|
return n === "light" ? (i.colorItemBg = (d = (r = t.layout) == null ? void 0 : r[a]) == null ? void 0 : d.colorBgMenu, i.colorSubItemBg = (b = (m = t.layout) == null ? void 0 : m[a]) == null ? void 0 : b.colorSubItemBg, i.colorItemBgSelected = (S = (h = t.layout) == null ? void 0 : h[a]) == null ? void 0 : S.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (k = (s = t.layout) == null ? void 0 : s[a]) == null ? void 0 : k.colorBgMenuItemSelected, i.colorItemText = (p = (l = t.layout) == null ? void 0 : l[a]) == null ? void 0 : p.colorTextMenu, i.colorItemTextHover = (M = (I = t.layout) == null ? void 0 : I[a]) == null ? void 0 : M.colorTextMenuHover, i.colorItemTextSelected = (c = (g = t.layout) == null ? void 0 : g[a]) == null ? void 0 : c.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (v = (f = t.layout) == null ? void 0 : f[a]) == null ? void 0 : v.colorTextMenuSelected, a === "sider" && (i.colorItemBgHover = (x = (T = t.layout) == null ? void 0 : T[a]) == null ? void 0 : x.colorBgMenuItemHover)) : n === "dark" && (i.colorItemBg = (F = (O = t.layout) == null ? void 0 : O[a]) == null ? void 0 : F.colorDarkBgMenu, i.colorSubItemBg = (D = (R = t.layout) == null ? void 0 : R[a]) == null ? void 0 : D.colorDarkSubItemBg, i.colorItemBgSelected = (N = (_ = t.layout) == null ? void 0 : _[a]) == null ? void 0 : N.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (y = (z = t.layout) == null ? void 0 : z[a]) == null ? void 0 : y.colorDarkBgMenuItemSelected, i.colorItemText = ($ = (C = t.layout) == null ? void 0 : C[a]) == null ? void 0 : $.colorDarkTextMenu, i.colorItemTextHover = (P = (B = t.layout) == null ? void 0 : B[a]) == null ? void 0 : P.colorDarkTextMenuHover, i.colorItemTextSelected = (W = (j = t.layout) == null ? void 0 : j[a]) == null ? void 0 : W.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (V = (E = t.layout) == null ? void 0 : E[a]) == null ? void 0 : V.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"], Fn = ["downLeft", "upRight", "downRight", "upLeft"],
|
|
259
|
+
const kn = ["left", "right"], se = ["left", "right", "down", "up"], $n = ["downBig", "upBig", "leftBig", "rightBig"], Tn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Fn = ["downLeft", "upRight", "downRight", "upLeft"], Ke = {
|
|
260
260
|
preset: [
|
|
261
261
|
//预设动画配置
|
|
262
262
|
{ name: "back", alias: "渐近", directions: se },
|
|
@@ -274,7 +274,7 @@ const kn = ["left", "right"], se = ["left", "right", "down", "up"], $n = ["downB
|
|
|
274
274
|
{ name: "slide", alias: "滑动", directions: se }
|
|
275
275
|
]
|
|
276
276
|
};
|
|
277
|
-
function
|
|
277
|
+
function Ce(e, t) {
|
|
278
278
|
return t != null && t.isNamed && (t == null ? void 0 : t.target) || e;
|
|
279
279
|
}
|
|
280
280
|
function Pn(e) {
|
|
@@ -315,9 +315,15 @@ function zn(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 = Ce(a.path, a.meta), i;
|
|
319
319
|
};
|
|
320
|
-
|
|
320
|
+
if (e.length > 0 && e[0].children && e[0].children.length > 0)
|
|
321
|
+
t = n(e[0].children[0]);
|
|
322
|
+
else {
|
|
323
|
+
const a = e.length > 0 ? e[0] : void 0;
|
|
324
|
+
t = Ce((a == null ? void 0 : a.path) || "", a == null ? void 0 : a.meta);
|
|
325
|
+
}
|
|
326
|
+
return t;
|
|
321
327
|
}
|
|
322
328
|
function Nn(e) {
|
|
323
329
|
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 };
|
|
@@ -341,19 +347,19 @@ const Vn = (e = Symbol(), t = "Context.Provider") => H({
|
|
|
341
347
|
}
|
|
342
348
|
},
|
|
343
349
|
setup(a, { slots: i }) {
|
|
344
|
-
return
|
|
350
|
+
return ze(e, Vt(a.value)), () => {
|
|
345
351
|
var r;
|
|
346
352
|
return (r = i.default) == null ? void 0 : r.call(i);
|
|
347
353
|
};
|
|
348
354
|
}
|
|
349
|
-
}), An = (e = Symbol(), t) =>
|
|
350
|
-
|
|
351
|
-
}, J = () => An(
|
|
355
|
+
}), An = (e = Symbol(), t) => mt(e, t || {}), Ue = Symbol("pro-layout-context"), En = () => Vn(Ue, "ProLayoutContext.Provider"), jn = (e) => {
|
|
356
|
+
ze(Ue, e);
|
|
357
|
+
}, J = () => An(Ue);
|
|
352
358
|
En();
|
|
353
|
-
function
|
|
359
|
+
function nt(e) {
|
|
354
360
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
355
361
|
}
|
|
356
|
-
const
|
|
362
|
+
const we = (e) => {
|
|
357
363
|
const {
|
|
358
364
|
icon: t,
|
|
359
365
|
iconType: n,
|
|
@@ -362,7 +368,7 @@ const Ce = (e) => {
|
|
|
362
368
|
if (!t)
|
|
363
369
|
return null;
|
|
364
370
|
if (typeof t == "string" && t !== "") {
|
|
365
|
-
if (
|
|
371
|
+
if (xt(t) || Bn(t))
|
|
366
372
|
return o("img", {
|
|
367
373
|
src: t,
|
|
368
374
|
alt: "icon",
|
|
@@ -381,10 +387,10 @@ const Ce = (e) => {
|
|
|
381
387
|
}
|
|
382
388
|
if (ne(t))
|
|
383
389
|
return t;
|
|
384
|
-
const i =
|
|
385
|
-
return typeof
|
|
390
|
+
const i = ft(t);
|
|
391
|
+
return typeof we == "function" && o(i, null, null) || null;
|
|
386
392
|
};
|
|
387
|
-
|
|
393
|
+
we.props = {
|
|
388
394
|
icon: {
|
|
389
395
|
type: [String, Function, Object]
|
|
390
396
|
},
|
|
@@ -394,9 +400,9 @@ Ce.props = {
|
|
|
394
400
|
};
|
|
395
401
|
const wt = /* @__PURE__ */ H({
|
|
396
402
|
name: "BaseMenu",
|
|
397
|
-
props:
|
|
403
|
+
props: We,
|
|
398
404
|
setup(e) {
|
|
399
|
-
const t =
|
|
405
|
+
const t = Ve(), {
|
|
400
406
|
getPrefixCls: n
|
|
401
407
|
} = J(), a = n({
|
|
402
408
|
suffixCls: "menu-item",
|
|
@@ -412,9 +418,9 @@ const wt = /* @__PURE__ */ H({
|
|
|
412
418
|
(p = e.onClick) == null || p.call(e, ...l);
|
|
413
419
|
}, m = (l, p) => {
|
|
414
420
|
var g;
|
|
415
|
-
const I = l.target || "", M =
|
|
421
|
+
const I = l.target || "", M = xt(I);
|
|
416
422
|
((g = t.currentRoute.value) == null ? void 0 : g.fullPath) !== p.to && M && I && l.targetStatus === 1 && window.open(I);
|
|
417
|
-
}, b =
|
|
423
|
+
}, b = ft("router-link"), h = (l = []) => l.map((p) => S(p)).filter((p) => p), S = (l) => {
|
|
418
424
|
var M, g, c, f, v, T, x, O, F;
|
|
419
425
|
if (Array.isArray(l.children) && l.children.length > 0 && !((M = l == null ? void 0 : l.meta) != null && M.hideInMenu) && !((g = l == null ? void 0 : l.meta) != null && g.hideChildrenInMenu)) {
|
|
420
426
|
let R;
|
|
@@ -433,13 +439,13 @@ const wt = /* @__PURE__ */ H({
|
|
|
433
439
|
return o(z, {
|
|
434
440
|
title: _,
|
|
435
441
|
key: l.path,
|
|
436
|
-
icon: N ? null : o(
|
|
442
|
+
icon: N ? null : o(we, {
|
|
437
443
|
className: a,
|
|
438
444
|
icon: (T = l.meta) == null ? void 0 : T.icon,
|
|
439
445
|
iconfontUrl: e.iconfontUrl,
|
|
440
446
|
iconType: (x = l.meta) == null ? void 0 : x.iconType
|
|
441
447
|
}, null)
|
|
442
|
-
},
|
|
448
|
+
}, nt(R = h(l.children)) ? R : {
|
|
443
449
|
default: () => [R]
|
|
444
450
|
});
|
|
445
451
|
}
|
|
@@ -453,7 +459,7 @@ const wt = /* @__PURE__ */ H({
|
|
|
453
459
|
danger: (F = l.meta) == null ? void 0 : F.danger,
|
|
454
460
|
key: l.path,
|
|
455
461
|
icon: I
|
|
456
|
-
},
|
|
462
|
+
}, nt(p) ? p : {
|
|
457
463
|
default: () => [p]
|
|
458
464
|
});
|
|
459
465
|
}, s = (l) => {
|
|
@@ -461,7 +467,7 @@ const wt = /* @__PURE__ */ H({
|
|
|
461
467
|
const p = {
|
|
462
468
|
...l.meta
|
|
463
469
|
}, I = p.targetStatus === 1 && p.target ? "a" : b, M = l.linkPath || l.path || "", g = {
|
|
464
|
-
to:
|
|
470
|
+
to: Ce(M, p)
|
|
465
471
|
};
|
|
466
472
|
g.to === "/live/list/operation/:id" && (g.to = "/live/list/operation/add");
|
|
467
473
|
const c = (T = l.meta) == null ? void 0 : T.title, f = (x = l.meta) != null && x.icon ? o(I, X(g, {
|
|
@@ -476,7 +482,7 @@ const wt = /* @__PURE__ */ H({
|
|
|
476
482
|
onClick: () => m(p, g)
|
|
477
483
|
}), {
|
|
478
484
|
default: () => [o("span", null, [c])]
|
|
479
|
-
}), v = ((O = l.meta) == null ? void 0 : O.icon) && o(
|
|
485
|
+
}), v = ((O = l.meta) == null ? void 0 : O.icon) && o(we, {
|
|
480
486
|
className: a,
|
|
481
487
|
icon: (F = l.meta) == null ? void 0 : F.icon,
|
|
482
488
|
iconfontUrl: e.iconfontUrl,
|
|
@@ -673,7 +679,7 @@ const wt = /* @__PURE__ */ H({
|
|
|
673
679
|
return null;
|
|
674
680
|
const m = It(n, a), b = i && o("h1", null, [i]);
|
|
675
681
|
return typeof d == "function" ? d(m, e.collapsed ? null : b, e) : o(q, null, [m || null, e.collapsed && r === "side" ? null : b]);
|
|
676
|
-
},
|
|
682
|
+
}, Xe = /* @__PURE__ */ H({
|
|
677
683
|
name: "LogoContent",
|
|
678
684
|
props: oe,
|
|
679
685
|
setup(e) {
|
|
@@ -700,15 +706,15 @@ const wt = /* @__PURE__ */ H({
|
|
|
700
706
|
}, [o("a", null, [d.value || null])]));
|
|
701
707
|
}
|
|
702
708
|
});
|
|
703
|
-
|
|
709
|
+
Xe.inheritAttrs = !1;
|
|
704
710
|
function Yn(e) {
|
|
705
711
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
706
712
|
}
|
|
707
713
|
const {
|
|
708
714
|
Sider: qn
|
|
709
715
|
} = de, {
|
|
710
|
-
Item:
|
|
711
|
-
} = ee, Ot = (e) => e ? o(on, null, null) : o(ln, null, null),
|
|
716
|
+
Item: at
|
|
717
|
+
} = ee, Ot = (e) => e ? o(on, null, null) : o(ln, null, null), ot = /* @__PURE__ */ H({
|
|
712
718
|
props: Y,
|
|
713
719
|
inheritAttrs: !1,
|
|
714
720
|
setup(e) {
|
|
@@ -720,7 +726,7 @@ const {
|
|
|
720
726
|
openKeys: r
|
|
721
727
|
} = J(), {
|
|
722
728
|
token: d
|
|
723
|
-
} =
|
|
729
|
+
} = Re(), {
|
|
724
730
|
theme: m,
|
|
725
731
|
layout: b,
|
|
726
732
|
isMobile: h,
|
|
@@ -735,7 +741,7 @@ const {
|
|
|
735
741
|
menuFooterRender: c,
|
|
736
742
|
collapsedButtonRender: f,
|
|
737
743
|
links: v
|
|
738
|
-
} =
|
|
744
|
+
} = Oe(e), T = t({
|
|
739
745
|
suffixCls: "sider",
|
|
740
746
|
isPor: !0
|
|
741
747
|
}), {
|
|
@@ -756,7 +762,7 @@ const {
|
|
|
756
762
|
};
|
|
757
763
|
return () => {
|
|
758
764
|
var W;
|
|
759
|
-
const B = D.value ? o(
|
|
765
|
+
const B = D.value ? o(Xe, X({
|
|
760
766
|
drawer: h.value
|
|
761
767
|
}, e), null) : null, P = M.value && ((W = M.value) == null ? void 0 : W.call(M, e)), j = o(wt, {
|
|
762
768
|
class: `${T}-menu ${O.value}`,
|
|
@@ -778,10 +784,10 @@ const {
|
|
|
778
784
|
},
|
|
779
785
|
onSelect: $
|
|
780
786
|
}, null);
|
|
781
|
-
return R.value && U(a.value).length === 0 || i.value.length === 0 ? null : x(o(
|
|
787
|
+
return R.value && U(a.value).length === 0 || i.value.length === 0 ? null : x(o(He, {
|
|
782
788
|
theme: {
|
|
783
789
|
components: {
|
|
784
|
-
Menu:
|
|
790
|
+
Menu: Ct({
|
|
785
791
|
radiusItem: 4,
|
|
786
792
|
colorActiveBarWidth: 0,
|
|
787
793
|
colorActiveBarHeight: 0,
|
|
@@ -844,12 +850,12 @@ const {
|
|
|
844
850
|
openKeys: [],
|
|
845
851
|
mode: "inline"
|
|
846
852
|
}, {
|
|
847
|
-
default: () => [(y.value || []).map((G, fe) => o(
|
|
853
|
+
default: () => [(y.value || []).map((G, fe) => o(at, {
|
|
848
854
|
class: `${T}-link ${O.value}`,
|
|
849
855
|
key: fe
|
|
850
856
|
}, Yn(G) ? G : {
|
|
851
857
|
default: () => [G]
|
|
852
|
-
})), C.value && !h.value && o(
|
|
858
|
+
})), C.value && !h.value && o(at, {
|
|
853
859
|
class: `${T}-collapsed-button ${O.value}`,
|
|
854
860
|
title: !1,
|
|
855
861
|
key: "collapsed",
|
|
@@ -871,7 +877,7 @@ const {
|
|
|
871
877
|
}));
|
|
872
878
|
};
|
|
873
879
|
}
|
|
874
|
-
}),
|
|
880
|
+
}), Te = /* @__PURE__ */ H({
|
|
875
881
|
name: "SiderMenuWrapper",
|
|
876
882
|
inheritAttrs: !1,
|
|
877
883
|
props: {
|
|
@@ -901,13 +907,13 @@ const {
|
|
|
901
907
|
flexDirection: "row"
|
|
902
908
|
}
|
|
903
909
|
}, {
|
|
904
|
-
default: () => [o(
|
|
910
|
+
default: () => [o(ot, X(e, {
|
|
905
911
|
collapsed: e.isMobile ? !1 : e.collapsed
|
|
906
912
|
}), null)]
|
|
907
|
-
}) : o(
|
|
913
|
+
}) : o(ot, e, null)]);
|
|
908
914
|
}
|
|
909
|
-
}), Mt = Symbol("pro-app-context"), Zn = (e = Symbol(), t) =>
|
|
910
|
-
|
|
915
|
+
}), Mt = Symbol("pro-app-context"), Zn = (e = Symbol(), t) => mt(e, t || {}), Jn = (e) => {
|
|
916
|
+
ze(Mt, e);
|
|
911
917
|
}, Qn = () => Zn(Mt, []);
|
|
912
918
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
913
919
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
@@ -942,7 +948,7 @@ const ia = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: a }) =>
|
|
|
942
948
|
fontFamily: r
|
|
943
949
|
}
|
|
944
950
|
};
|
|
945
|
-
}, ra = ["emptyText", "indicator"],
|
|
951
|
+
}, ra = ["emptyText", "indicator"], $e = /* @__PURE__ */ H({
|
|
946
952
|
name: "GProApp",
|
|
947
953
|
props: {
|
|
948
954
|
rootClassName: String,
|
|
@@ -970,7 +976,7 @@ const ia = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: a }) =>
|
|
|
970
976
|
};
|
|
971
977
|
}
|
|
972
978
|
});
|
|
973
|
-
|
|
979
|
+
$e.install = (e) => (e.component($e.name, $e), e);
|
|
974
980
|
const me = {
|
|
975
981
|
pageHeaderRender: {
|
|
976
982
|
type: [Object, Function, Boolean],
|
|
@@ -1063,8 +1069,8 @@ const me = {
|
|
|
1063
1069
|
};
|
|
1064
1070
|
};
|
|
1065
1071
|
function ca(e) {
|
|
1066
|
-
return
|
|
1067
|
-
const n =
|
|
1072
|
+
return Ae("ProPageContainter", (t) => {
|
|
1073
|
+
const n = Ee(t, {
|
|
1068
1074
|
gridContent: `${t.proComponentsCls}-grid-content`
|
|
1069
1075
|
});
|
|
1070
1076
|
return [da(n)];
|
|
@@ -1143,7 +1149,7 @@ const yl = /* @__PURE__ */ H({
|
|
|
1143
1149
|
}));
|
|
1144
1150
|
};
|
|
1145
1151
|
}
|
|
1146
|
-
}),
|
|
1152
|
+
}), Ge = {
|
|
1147
1153
|
...ie,
|
|
1148
1154
|
logo: oe.logo,
|
|
1149
1155
|
logoStyle: oe.logoStyle,
|
|
@@ -1183,7 +1189,7 @@ const yl = /* @__PURE__ */ H({
|
|
|
1183
1189
|
onMenuHeaderClick: Function,
|
|
1184
1190
|
onSelect: Y.onSelect
|
|
1185
1191
|
}, Rt = {
|
|
1186
|
-
...
|
|
1192
|
+
...Ge,
|
|
1187
1193
|
headerTitleRender: {
|
|
1188
1194
|
type: [Object, Function],
|
|
1189
1195
|
default: () => {
|
|
@@ -1205,7 +1211,7 @@ const yl = /* @__PURE__ */ H({
|
|
|
1205
1211
|
}, Bt = {
|
|
1206
1212
|
loading: L.looseBool,
|
|
1207
1213
|
isMobile: Y.isMobile,
|
|
1208
|
-
collapsed:
|
|
1214
|
+
collapsed: We.collapsed,
|
|
1209
1215
|
siderWidth: Y.siderWidth,
|
|
1210
1216
|
collapsedWidth: Y.collapsedWidth,
|
|
1211
1217
|
isFixedMultiTab: ie.fixedMultiTab,
|
|
@@ -1264,7 +1270,7 @@ const yl = /* @__PURE__ */ H({
|
|
|
1264
1270
|
title: "Ant Design Vue",
|
|
1265
1271
|
href: "https://next.antdv.com/components/overview-cn/",
|
|
1266
1272
|
blankTarget: !0
|
|
1267
|
-
}],
|
|
1273
|
+
}], Fe = /* @__PURE__ */ H({
|
|
1268
1274
|
name: "GlobalFooter",
|
|
1269
1275
|
props: {
|
|
1270
1276
|
links: {
|
|
@@ -1307,7 +1313,7 @@ const yl = /* @__PURE__ */ H({
|
|
|
1307
1313
|
}
|
|
1308
1314
|
}), $t = {
|
|
1309
1315
|
...ie,
|
|
1310
|
-
...
|
|
1316
|
+
...Ge,
|
|
1311
1317
|
...Y,
|
|
1312
1318
|
...Rt,
|
|
1313
1319
|
...Bt,
|
|
@@ -1444,8 +1450,8 @@ const yl = /* @__PURE__ */ H({
|
|
|
1444
1450
|
};
|
|
1445
1451
|
};
|
|
1446
1452
|
function ba(e) {
|
|
1447
|
-
return
|
|
1448
|
-
const n =
|
|
1453
|
+
return Ae("ProMultiTabs", (t) => {
|
|
1454
|
+
const n = Ee(t, {
|
|
1449
1455
|
componentWrapCls: `${t.componentCls}-wrap`
|
|
1450
1456
|
});
|
|
1451
1457
|
return [ya(n)];
|
|
@@ -1472,7 +1478,7 @@ const pa = [
|
|
|
1472
1478
|
function va(e) {
|
|
1473
1479
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
1474
1480
|
}
|
|
1475
|
-
const xa =
|
|
1481
|
+
const xa = _e.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
1476
1482
|
props: {
|
|
1477
1483
|
...Bt,
|
|
1478
1484
|
visible: {
|
|
@@ -1485,10 +1491,10 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1485
1491
|
const {
|
|
1486
1492
|
isMobile: t,
|
|
1487
1493
|
isFixedMultiTab: n
|
|
1488
|
-
} =
|
|
1494
|
+
} = Oe(e), a = ve(!1), i = Ne({
|
|
1489
1495
|
activeKey: "",
|
|
1490
1496
|
contextMenuActiveKey: ""
|
|
1491
|
-
}), r =
|
|
1497
|
+
}), r = Ve(), {
|
|
1492
1498
|
menuData: d,
|
|
1493
1499
|
getPrefixCls: m
|
|
1494
1500
|
} = J(), b = m({
|
|
@@ -1500,11 +1506,11 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1500
1506
|
} = ba(b), s = ve([]);
|
|
1501
1507
|
le(s, () => {
|
|
1502
1508
|
var y;
|
|
1503
|
-
(y = e.onChangeTabs) == null || y.call(e,
|
|
1509
|
+
(y = e.onChangeTabs) == null || y.call(e, bt(U(s)));
|
|
1504
1510
|
}, {
|
|
1505
1511
|
deep: !0
|
|
1506
1512
|
});
|
|
1507
|
-
const k = w(() => r.currentRoute.value.path), l = w(() => n.value && !t.value), p = w(() => l.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), I = w(() =>
|
|
1513
|
+
const k = w(() => r.currentRoute.value.path), l = w(() => n.value && !t.value), p = w(() => l.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), I = w(() => pt(`${b}-wrap`, {
|
|
1508
1514
|
[`${S.value}`]: !0,
|
|
1509
1515
|
[`${b}-wrap-fixed`]: e.isFixedMultiTab,
|
|
1510
1516
|
[`${b}-wrap-loading`]: e.loading
|
|
@@ -1631,7 +1637,7 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1631
1637
|
const {
|
|
1632
1638
|
router: C
|
|
1633
1639
|
} = y;
|
|
1634
|
-
return o(
|
|
1640
|
+
return o(et, {
|
|
1635
1641
|
trigger: "contextmenu",
|
|
1636
1642
|
overlay: o(N, {
|
|
1637
1643
|
path: (C == null ? void 0 : C.fullPath) || "",
|
|
@@ -1651,7 +1657,7 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1651
1657
|
onClick: (B) => {
|
|
1652
1658
|
B.stopPropagation(), !a.value && O();
|
|
1653
1659
|
}
|
|
1654
|
-
}, null), s.value.length > 1 && !F(C) && o(
|
|
1660
|
+
}, null), s.value.length > 1 && !F(C) && o(gt, {
|
|
1655
1661
|
class: [`${b}-close-btn`, S.value],
|
|
1656
1662
|
onClick: (B) => {
|
|
1657
1663
|
B.stopPropagation(), !a.value && T((C == null ? void 0 : C.fullPath) || "");
|
|
@@ -1662,7 +1668,7 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1662
1668
|
};
|
|
1663
1669
|
return () => h(o(q, null, [!!e.isFixedMultiTab && At(o("div", {
|
|
1664
1670
|
class: [`${b}-fixed`, S.value]
|
|
1665
|
-
}, null), [[Et, e.visible]]), o(
|
|
1671
|
+
}, null), [[Et, e.visible]]), o(_e, {
|
|
1666
1672
|
hideAdd: !0,
|
|
1667
1673
|
type: "editable-card",
|
|
1668
1674
|
style: M.value,
|
|
@@ -1677,7 +1683,7 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1677
1683
|
router: y
|
|
1678
1684
|
}, null)
|
|
1679
1685
|
}, null))],
|
|
1680
|
-
rightExtra: () => o(
|
|
1686
|
+
rightExtra: () => o(et, {
|
|
1681
1687
|
overlay: o(N, {
|
|
1682
1688
|
path: i.activeKey,
|
|
1683
1689
|
stateType: "activeKey"
|
|
@@ -1692,7 +1698,7 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1692
1698
|
}
|
|
1693
1699
|
}), {
|
|
1694
1700
|
Content: Sa
|
|
1695
|
-
} = de,
|
|
1701
|
+
} = de, Ye = (e, {
|
|
1696
1702
|
slots: t,
|
|
1697
1703
|
attrs: n
|
|
1698
1704
|
}) => {
|
|
@@ -1738,8 +1744,8 @@ const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
|
1738
1744
|
}
|
|
1739
1745
|
})]);
|
|
1740
1746
|
};
|
|
1741
|
-
|
|
1742
|
-
|
|
1747
|
+
Ye.inheritAttrs = !1;
|
|
1748
|
+
Ye.displayName = "wrap-content";
|
|
1743
1749
|
const Ia = (e) => {
|
|
1744
1750
|
var t, n, a, i;
|
|
1745
1751
|
return {
|
|
@@ -1849,10 +1855,10 @@ var Tt = function() {
|
|
|
1849
1855
|
}, t;
|
|
1850
1856
|
}()
|
|
1851
1857
|
);
|
|
1852
|
-
}(),
|
|
1858
|
+
}(), Pe = typeof window < "u" && typeof document < "u" && window.document === document, Se = function() {
|
|
1853
1859
|
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")();
|
|
1854
1860
|
}(), Oa = function() {
|
|
1855
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
1861
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Se) : function(e) {
|
|
1856
1862
|
return setTimeout(function() {
|
|
1857
1863
|
return e(Date.now());
|
|
1858
1864
|
}, 1e3 / 60);
|
|
@@ -1900,14 +1906,14 @@ var Ba = 20, ka = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1900
1906
|
return n.broadcastActive();
|
|
1901
1907
|
}), t.length > 0;
|
|
1902
1908
|
}, e.prototype.connect_ = function() {
|
|
1903
|
-
!
|
|
1909
|
+
!Pe || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), $a ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
1904
1910
|
attributes: !0,
|
|
1905
1911
|
childList: !0,
|
|
1906
1912
|
characterData: !0,
|
|
1907
1913
|
subtree: !0
|
|
1908
1914
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
1909
1915
|
}, e.prototype.disconnect_ = function() {
|
|
1910
|
-
!
|
|
1916
|
+
!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);
|
|
1911
1917
|
}, e.prototype.onTransitionEnd_ = function(t) {
|
|
1912
1918
|
var n = t.propertyName, a = n === void 0 ? "" : n, i = ka.some(function(r) {
|
|
1913
1919
|
return !!~a.indexOf(r);
|
|
@@ -1930,40 +1936,40 @@ var Ba = 20, ka = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1930
1936
|
return e;
|
|
1931
1937
|
}, re = function(e) {
|
|
1932
1938
|
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
|
|
1933
|
-
return t ||
|
|
1934
|
-
}, Pt =
|
|
1935
|
-
function
|
|
1939
|
+
return t || Se;
|
|
1940
|
+
}, Pt = Be(0, 0, 0, 0);
|
|
1941
|
+
function Ie(e) {
|
|
1936
1942
|
return parseFloat(e) || 0;
|
|
1937
1943
|
}
|
|
1938
|
-
function
|
|
1944
|
+
function it(e) {
|
|
1939
1945
|
for (var t = [], n = 1; n < arguments.length; n++)
|
|
1940
1946
|
t[n - 1] = arguments[n];
|
|
1941
1947
|
return t.reduce(function(a, i) {
|
|
1942
1948
|
var r = e["border-" + i + "-width"];
|
|
1943
|
-
return a +
|
|
1949
|
+
return a + Ie(r);
|
|
1944
1950
|
}, 0);
|
|
1945
1951
|
}
|
|
1946
1952
|
function Fa(e) {
|
|
1947
1953
|
for (var t = ["top", "right", "bottom", "left"], n = {}, a = 0, i = t; a < i.length; a++) {
|
|
1948
1954
|
var r = i[a], d = e["padding-" + r];
|
|
1949
|
-
n[r] =
|
|
1955
|
+
n[r] = Ie(d);
|
|
1950
1956
|
}
|
|
1951
1957
|
return n;
|
|
1952
1958
|
}
|
|
1953
1959
|
function Pa(e) {
|
|
1954
1960
|
var t = e.getBBox();
|
|
1955
|
-
return
|
|
1961
|
+
return Be(0, 0, t.width, t.height);
|
|
1956
1962
|
}
|
|
1957
1963
|
function La(e) {
|
|
1958
1964
|
var t = e.clientWidth, n = e.clientHeight;
|
|
1959
1965
|
if (!t && !n)
|
|
1960
1966
|
return Pt;
|
|
1961
|
-
var a = re(e).getComputedStyle(e), i = Fa(a), r = i.left + i.right, d = i.top + i.bottom, m =
|
|
1962
|
-
if (a.boxSizing === "border-box" && (Math.round(m + r) !== t && (m -=
|
|
1967
|
+
var a = re(e).getComputedStyle(e), i = Fa(a), r = i.left + i.right, d = i.top + i.bottom, m = Ie(a.width), b = Ie(a.height);
|
|
1968
|
+
if (a.boxSizing === "border-box" && (Math.round(m + r) !== t && (m -= it(a, "left", "right") + r), Math.round(b + d) !== n && (b -= it(a, "top", "bottom") + d)), !za(e)) {
|
|
1963
1969
|
var h = Math.round(m + r) - t, S = Math.round(b + d) - n;
|
|
1964
1970
|
Math.abs(h) !== 1 && (m -= h), Math.abs(S) !== 1 && (b -= S);
|
|
1965
1971
|
}
|
|
1966
|
-
return
|
|
1972
|
+
return Be(i.left, i.top, m, b);
|
|
1967
1973
|
}
|
|
1968
1974
|
var Da = function() {
|
|
1969
1975
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
@@ -1976,7 +1982,7 @@ function za(e) {
|
|
|
1976
1982
|
return e === re(e).document.documentElement;
|
|
1977
1983
|
}
|
|
1978
1984
|
function Na(e) {
|
|
1979
|
-
return
|
|
1985
|
+
return Pe ? Da(e) ? Pa(e) : La(e) : Pt;
|
|
1980
1986
|
}
|
|
1981
1987
|
function Ha(e) {
|
|
1982
1988
|
var t = e.x, n = e.y, a = e.width, i = e.height, r = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, d = Object.create(r.prototype);
|
|
@@ -1991,14 +1997,14 @@ function Ha(e) {
|
|
|
1991
1997
|
left: t
|
|
1992
1998
|
}), d;
|
|
1993
1999
|
}
|
|
1994
|
-
function
|
|
2000
|
+
function Be(e, t, n, a) {
|
|
1995
2001
|
return { x: e, y: t, width: n, height: a };
|
|
1996
2002
|
}
|
|
1997
2003
|
var _a = (
|
|
1998
2004
|
/** @class */
|
|
1999
2005
|
function() {
|
|
2000
2006
|
function e(t) {
|
|
2001
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
2007
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Be(0, 0, 0, 0), this.target = t;
|
|
2002
2008
|
}
|
|
2003
2009
|
return e.prototype.isActive = function() {
|
|
2004
2010
|
var t = Na(this.target);
|
|
@@ -2088,7 +2094,7 @@ var _a = (
|
|
|
2088
2094
|
};
|
|
2089
2095
|
});
|
|
2090
2096
|
var Ea = function() {
|
|
2091
|
-
return typeof
|
|
2097
|
+
return typeof Se.ResizeObserver < "u" ? Se.ResizeObserver : Dt;
|
|
2092
2098
|
}();
|
|
2093
2099
|
const ja = (e) => {
|
|
2094
2100
|
var t;
|
|
@@ -2110,7 +2116,7 @@ const ja = (e) => {
|
|
|
2110
2116
|
let {
|
|
2111
2117
|
slots: n
|
|
2112
2118
|
} = t;
|
|
2113
|
-
const a =
|
|
2119
|
+
const a = Ne({
|
|
2114
2120
|
width: 0,
|
|
2115
2121
|
height: 0,
|
|
2116
2122
|
offsetHeight: 0,
|
|
@@ -2254,7 +2260,7 @@ const ja = (e) => {
|
|
|
2254
2260
|
}
|
|
2255
2261
|
}), zt = {
|
|
2256
2262
|
...Y,
|
|
2257
|
-
...
|
|
2263
|
+
...Ge
|
|
2258
2264
|
}, Ua = (e, t) => e === !1 ? null : e ? e(t, null) : t, Xa = /* @__PURE__ */ H({
|
|
2259
2265
|
props: zt,
|
|
2260
2266
|
setup(e) {
|
|
@@ -2286,9 +2292,9 @@ const ja = (e) => {
|
|
|
2286
2292
|
slots: t,
|
|
2287
2293
|
emit: n
|
|
2288
2294
|
}) {
|
|
2289
|
-
const a =
|
|
2295
|
+
const a = Ve(), {
|
|
2290
2296
|
token: i
|
|
2291
|
-
} =
|
|
2297
|
+
} = Re(), {
|
|
2292
2298
|
getPrefixCls: r,
|
|
2293
2299
|
openKeys: d,
|
|
2294
2300
|
selectedKeys: m
|
|
@@ -2319,14 +2325,14 @@ const ja = (e) => {
|
|
|
2319
2325
|
flex: 1
|
|
2320
2326
|
},
|
|
2321
2327
|
class: [`${h}-menu`, s.value]
|
|
2322
|
-
}, [o(
|
|
2328
|
+
}, [o(He, {
|
|
2323
2329
|
theme: {
|
|
2324
2330
|
components: {
|
|
2325
2331
|
Layout: {
|
|
2326
2332
|
headerBg: "transparent",
|
|
2327
2333
|
bodyBg: "transparent"
|
|
2328
2334
|
},
|
|
2329
|
-
Menu:
|
|
2335
|
+
Menu: Ct({
|
|
2330
2336
|
radiusItem: 4,
|
|
2331
2337
|
colorActiveBarWidth: 0,
|
|
2332
2338
|
colorActiveBarHeight: 2,
|
|
@@ -2385,7 +2391,7 @@ const ja = (e) => {
|
|
|
2385
2391
|
class: `${h}-main ${s.value}`
|
|
2386
2392
|
}, [o("div", {
|
|
2387
2393
|
class: `${h}-main-left ${s.value}`
|
|
2388
|
-
}, [o(
|
|
2394
|
+
}, [o(Xe, X(e, {
|
|
2389
2395
|
renderKey: "headerTitleRender"
|
|
2390
2396
|
}), null)]), M()])]) : M()]));
|
|
2391
2397
|
};
|
|
@@ -2395,8 +2401,8 @@ function Ya(e) {
|
|
|
2395
2401
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
2396
2402
|
}
|
|
2397
2403
|
const {
|
|
2398
|
-
Header:
|
|
2399
|
-
} = de,
|
|
2404
|
+
Header: lt
|
|
2405
|
+
} = de, Le = /* @__PURE__ */ H({
|
|
2400
2406
|
inheritAttrs: !1,
|
|
2401
2407
|
props: Rt,
|
|
2402
2408
|
setup(e) {
|
|
@@ -2408,7 +2414,7 @@ const {
|
|
|
2408
2414
|
layout: r,
|
|
2409
2415
|
onCollapse: d,
|
|
2410
2416
|
splitMenus: m
|
|
2411
|
-
} =
|
|
2417
|
+
} = Oe(e), {
|
|
2412
2418
|
getPrefixCls: b,
|
|
2413
2419
|
menuData: h
|
|
2414
2420
|
} = J(), S = b({
|
|
@@ -2438,14 +2444,14 @@ const {
|
|
|
2438
2444
|
};
|
|
2439
2445
|
return () => {
|
|
2440
2446
|
let R;
|
|
2441
|
-
return k(o(q, null, [I.value && !p.value && o(
|
|
2447
|
+
return k(o(q, null, [I.value && !p.value && o(lt, {
|
|
2442
2448
|
theme: c.value,
|
|
2443
2449
|
style: {
|
|
2444
2450
|
height: `${i.value}px`,
|
|
2445
2451
|
lineHeight: `${i.value}px`,
|
|
2446
2452
|
background: "transparent"
|
|
2447
2453
|
}
|
|
2448
|
-
}, null), o(
|
|
2454
|
+
}, null), o(lt, {
|
|
2449
2455
|
theme: c.value,
|
|
2450
2456
|
class: f.value,
|
|
2451
2457
|
style: {
|
|
@@ -2464,9 +2470,9 @@ const {
|
|
|
2464
2470
|
name: "BaseProLayout",
|
|
2465
2471
|
inheritAttrs: !1,
|
|
2466
2472
|
components: {
|
|
2467
|
-
GlobalHeader:
|
|
2468
|
-
GlobalFooter:
|
|
2469
|
-
SiderMenuWrapper:
|
|
2473
|
+
GlobalHeader: Le,
|
|
2474
|
+
GlobalFooter: Fe,
|
|
2475
|
+
SiderMenuWrapper: Te
|
|
2470
2476
|
},
|
|
2471
2477
|
props: $t,
|
|
2472
2478
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
@@ -2481,18 +2487,18 @@ const {
|
|
|
2481
2487
|
hashId: i
|
|
2482
2488
|
} = Z("ProLayout", [ha, ga], n), r = Cn(), {
|
|
2483
2489
|
token: d
|
|
2484
|
-
} =
|
|
2490
|
+
} = Re(), m = w(() => {
|
|
2485
2491
|
var c;
|
|
2486
2492
|
return (c = d == null ? void 0 : d.value) == null ? void 0 : c.colorPrimary;
|
|
2487
2493
|
});
|
|
2488
2494
|
Xt(() => {
|
|
2489
2495
|
m.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", m.value);
|
|
2490
2496
|
});
|
|
2491
|
-
const b = w(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), h = w(() => e.layout === "wide"), S = w(() => b.value), s = w(() => e.collapsed ? e.collapsedWidth : e.siderWidth), k = w(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = w(() => (r.value === "sm" || r.value === "xs") && !e.disableMobile && !h.value), p =
|
|
2497
|
+
const b = w(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), h = w(() => e.layout === "wide"), S = w(() => b.value), s = w(() => e.collapsed ? e.collapsedWidth : e.siderWidth), k = w(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = w(() => (r.value === "sm" || r.value === "xs") && !e.disableMobile && !h.value), p = Ne({
|
|
2492
2498
|
position: "relative"
|
|
2493
2499
|
});
|
|
2494
2500
|
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (p.minHeight = 0);
|
|
2495
|
-
const I = (c, f) => c.headerRender === !1 || c.pure ? null : o(
|
|
2501
|
+
const I = (c, f) => c.headerRender === !1 || c.pure ? null : o(Le, X(c, {
|
|
2496
2502
|
matchMenuKeys: f || []
|
|
2497
2503
|
}), null), M = w(() => ({
|
|
2498
2504
|
...e.breadcrumb,
|
|
@@ -2500,7 +2506,7 @@ const {
|
|
|
2500
2506
|
})), g = w(() => S.value && e.selectedKeys ? Dn(e.menuData, e.selectedKeys[0]) : []);
|
|
2501
2507
|
return jn({
|
|
2502
2508
|
getPrefixCls: ce,
|
|
2503
|
-
...ae(
|
|
2509
|
+
...ae(Oe(e), ["layout", "waterMark", "menuData", "openKeys", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader"].concat(Object.keys(me))),
|
|
2504
2510
|
theme: k.value,
|
|
2505
2511
|
hasContentWide: h,
|
|
2506
2512
|
isMobile: l,
|
|
@@ -2546,7 +2552,7 @@ const {
|
|
|
2546
2552
|
}, [o(de, {
|
|
2547
2553
|
style: W.value
|
|
2548
2554
|
}, {
|
|
2549
|
-
default: () => [o(
|
|
2555
|
+
default: () => [o(Te, X(je(e, ["pure", "theme"]), {
|
|
2550
2556
|
links: O,
|
|
2551
2557
|
theme: k.value,
|
|
2552
2558
|
isMobile: l.value,
|
|
@@ -2558,7 +2564,7 @@ const {
|
|
|
2558
2564
|
}), null), o(de, {
|
|
2559
2565
|
style: p
|
|
2560
2566
|
}, {
|
|
2561
|
-
default: () => [B.value, o(
|
|
2567
|
+
default: () => [B.value, o(Ye, X({
|
|
2562
2568
|
hashId: i.value,
|
|
2563
2569
|
isMobile: l.value,
|
|
2564
2570
|
prefixCls: n,
|
|
@@ -2578,7 +2584,7 @@ const {
|
|
|
2578
2584
|
var G;
|
|
2579
2585
|
return [(G = t.default) == null ? void 0 : G.call(t)];
|
|
2580
2586
|
}
|
|
2581
|
-
}), x === !1 ? null : x ? x(e) : o(
|
|
2587
|
+
}), x === !1 ? null : x ? x(e) : o(Fe, {
|
|
2582
2588
|
copyright: F
|
|
2583
2589
|
}, null)]
|
|
2584
2590
|
})]
|
|
@@ -2587,9 +2593,9 @@ const {
|
|
|
2587
2593
|
}
|
|
2588
2594
|
}), bl = /* @__PURE__ */ H({
|
|
2589
2595
|
components: {
|
|
2590
|
-
GlobalHeader:
|
|
2591
|
-
GlobalFooter:
|
|
2592
|
-
SiderMenuWrapper:
|
|
2596
|
+
GlobalHeader: Le,
|
|
2597
|
+
GlobalFooter: Fe,
|
|
2598
|
+
SiderMenuWrapper: Te
|
|
2593
2599
|
},
|
|
2594
2600
|
props: $t,
|
|
2595
2601
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
@@ -2606,7 +2612,7 @@ const {
|
|
|
2606
2612
|
}, d = (m) => {
|
|
2607
2613
|
n("update:selected-keys", m), n("select", m);
|
|
2608
2614
|
};
|
|
2609
|
-
return () => o(
|
|
2615
|
+
return () => o(He, {
|
|
2610
2616
|
theme: e.primaryColor ? {
|
|
2611
2617
|
token: {
|
|
2612
2618
|
colorPrimary: e.primaryColor
|
|
@@ -2616,7 +2622,7 @@ const {
|
|
|
2616
2622
|
default: () => [o(fn, X({
|
|
2617
2623
|
token: e.token
|
|
2618
2624
|
}, a.value), {
|
|
2619
|
-
default: () => [o(qa, X(
|
|
2625
|
+
default: () => [o(qa, X(je(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
|
|
2620
2626
|
onSelect: d,
|
|
2621
2627
|
onOpenKeys: r,
|
|
2622
2628
|
onCollapse: i
|
|
@@ -2624,7 +2630,7 @@ const {
|
|
|
2624
2630
|
})]
|
|
2625
2631
|
});
|
|
2626
2632
|
}
|
|
2627
|
-
}), Nt = (e, t) => e.map((n) => (n.path = n.path.replace("//", "/"), n.path =
|
|
2633
|
+
}), Nt = (e, t) => e.map((n) => (n.path = n.path.replace("//", "/"), n.path = Ce(n.path, n.meta), n.children && n.children.length > 0 && (n.children = Nt(n.children, t)), t[`${n.path}`] = n, n)), pl = (e) => {
|
|
2628
2634
|
const t = e.find((a) => a.path === "/"), n = {};
|
|
2629
2635
|
return {
|
|
2630
2636
|
menuData: Nt((t == null ? void 0 : t.children) || [], n),
|
|
@@ -2834,7 +2840,7 @@ const {
|
|
|
2834
2840
|
}
|
|
2835
2841
|
}
|
|
2836
2842
|
}
|
|
2837
|
-
}),
|
|
2843
|
+
}), rt = /* @__PURE__ */ H({
|
|
2838
2844
|
name: "BlockCheckbox",
|
|
2839
2845
|
props: {
|
|
2840
2846
|
value: L.string,
|
|
@@ -2852,19 +2858,19 @@ const {
|
|
|
2852
2858
|
const t = `${e.prefixCls}-block-checkbox`;
|
|
2853
2859
|
return o("div", {
|
|
2854
2860
|
class: [t, e.hashId]
|
|
2855
|
-
}, [e.list.map((n) => o(
|
|
2861
|
+
}, [e.list.map((n) => o(Me, {
|
|
2856
2862
|
title: n.title,
|
|
2857
2863
|
key: n.key
|
|
2858
2864
|
}, {
|
|
2859
2865
|
default: () => [o("div", {
|
|
2860
|
-
class:
|
|
2866
|
+
class: pt(e.hashId, `${t}-item`, `${t}-item-${n.key}`, `${t}-${e.configType}-item`),
|
|
2861
2867
|
onClick: () => {
|
|
2862
2868
|
var a;
|
|
2863
2869
|
return (a = e.onChange) == null ? void 0 : a.call(e, n.key);
|
|
2864
2870
|
}
|
|
2865
2871
|
}, [n.key === "wide" && o("div", {
|
|
2866
2872
|
class: [`${t}-item-${n.key}-content`, e.hashId]
|
|
2867
|
-
}, null), o(
|
|
2873
|
+
}, null), o(yt, {
|
|
2868
2874
|
class: `${t}-selectIcon ${e.hashId}`.trim(),
|
|
2869
2875
|
style: {
|
|
2870
2876
|
display: e.value === n.key ? "block" : "none"
|
|
@@ -2898,7 +2904,7 @@ const {
|
|
|
2898
2904
|
key: a,
|
|
2899
2905
|
color: i,
|
|
2900
2906
|
title: r
|
|
2901
|
-
}) => a ? o(
|
|
2907
|
+
}) => a ? o(Me, {
|
|
2902
2908
|
key: i,
|
|
2903
2909
|
title: r
|
|
2904
2910
|
}, {
|
|
@@ -2910,7 +2916,7 @@ const {
|
|
|
2910
2916
|
backgroundColor: i
|
|
2911
2917
|
},
|
|
2912
2918
|
onClick: () => e.onChange && e.onChange(i)
|
|
2913
|
-
}, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === i && o(
|
|
2919
|
+
}, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === i && o(yt, null, null)])];
|
|
2914
2920
|
}
|
|
2915
2921
|
}) : null)])]);
|
|
2916
2922
|
};
|
|
@@ -2933,7 +2939,7 @@ const {
|
|
|
2933
2939
|
size: "small",
|
|
2934
2940
|
renderItem: ({
|
|
2935
2941
|
item: t
|
|
2936
|
-
}) => o(
|
|
2942
|
+
}) => o(Me, {
|
|
2937
2943
|
title: t.disabled ? t.disabledReason : "",
|
|
2938
2944
|
placement: "left"
|
|
2939
2945
|
}, {
|
|
@@ -2949,7 +2955,7 @@ const {
|
|
|
2949
2955
|
}),
|
|
2950
2956
|
dataSource: [{
|
|
2951
2957
|
title: e.label,
|
|
2952
|
-
action: o(
|
|
2958
|
+
action: o(ht, {
|
|
2953
2959
|
size: "small",
|
|
2954
2960
|
disabled: e.disabled,
|
|
2955
2961
|
checked: !!e.value,
|
|
@@ -3011,7 +3017,7 @@ const no = /* @__PURE__ */ H({
|
|
|
3011
3017
|
hashId: d
|
|
3012
3018
|
} = Z("ProThemeEditor", [eo], i), {
|
|
3013
3019
|
token: m
|
|
3014
|
-
} =
|
|
3020
|
+
} = Re(), b = w(() => {
|
|
3015
3021
|
var l;
|
|
3016
3022
|
return (l = m.value) == null ? void 0 : l.layout;
|
|
3017
3023
|
}), h = w(() => {
|
|
@@ -3066,7 +3072,7 @@ const no = /* @__PURE__ */ H({
|
|
|
3066
3072
|
disabled: ((j = e.settingValue) == null ? void 0 : j.theme) === "light" || ((W = e.settingValue) == null ? void 0 : W.theme) === "dark" && ["side", "simple"].includes((E = e.settingValue) == null ? void 0 : E.layout)
|
|
3067
3073
|
}];
|
|
3068
3074
|
}), S = w(() => {
|
|
3069
|
-
var l, p, I, M, g, c, f, v, T, x, O, F, R, D, _, N, z, y, C, $, B, P, j, W, E, V, G, fe,
|
|
3075
|
+
var l, p, I, M, g, c, f, v, T, x, O, F, R, D, _, N, z, y, C, $, B, P, j, W, E, V, G, fe, qe, Ze, Je, Qe;
|
|
3070
3076
|
return [{
|
|
3071
3077
|
key: "colorBgMenu",
|
|
3072
3078
|
title: "全部背景",
|
|
@@ -3114,11 +3120,11 @@ const no = /* @__PURE__ */ H({
|
|
|
3114
3120
|
}, {
|
|
3115
3121
|
key: "colorTextMenuSelected",
|
|
3116
3122
|
title: "菜单文字选中颜色",
|
|
3117
|
-
disabled: ((fe = e.settingValue) == null ? void 0 : fe.theme) === "dark" && ((
|
|
3123
|
+
disabled: ((fe = e.settingValue) == null ? void 0 : fe.theme) === "dark" && ((qe = e.settingValue) == null ? void 0 : qe.layout) !== "mix"
|
|
3118
3124
|
}, {
|
|
3119
3125
|
key: "colorDarkTextMenuSelected",
|
|
3120
3126
|
title: "菜单文字选中颜色",
|
|
3121
|
-
disabled: ((
|
|
3127
|
+
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)
|
|
3122
3128
|
}];
|
|
3123
3129
|
}), s = w(() => n.value === "header" ? h.value : n.value === "sider" ? S.value : []), k = (l) => {
|
|
3124
3130
|
var p, I;
|
|
@@ -3162,7 +3168,7 @@ const no = /* @__PURE__ */ H({
|
|
|
3162
3168
|
}),
|
|
3163
3169
|
dataSource: [{
|
|
3164
3170
|
title: "自定义主题色",
|
|
3165
|
-
action: o(
|
|
3171
|
+
action: o(tt, {
|
|
3166
3172
|
value: (M = e.settingValue) == null ? void 0 : M.primaryColor,
|
|
3167
3173
|
actions: ["confirm"],
|
|
3168
3174
|
modes: ["rgb"],
|
|
@@ -3170,7 +3176,7 @@ const no = /* @__PURE__ */ H({
|
|
|
3170
3176
|
onConfirm: (g) => e.onChange && e.onChange(g, "primaryColor")
|
|
3171
3177
|
}, null)
|
|
3172
3178
|
}]
|
|
3173
|
-
}, null), o(
|
|
3179
|
+
}, null), o(_e, {
|
|
3174
3180
|
activeKey: n.value,
|
|
3175
3181
|
onChange: a
|
|
3176
3182
|
}, to(l = Za.map((g) => o(Jt, {
|
|
@@ -3194,7 +3200,7 @@ const no = /* @__PURE__ */ H({
|
|
|
3194
3200
|
}),
|
|
3195
3201
|
dataSource: s.value.filter((c) => !c.disabled).map((c) => ({
|
|
3196
3202
|
...c,
|
|
3197
|
-
action: o(
|
|
3203
|
+
action: o(tt, {
|
|
3198
3204
|
value: k(c.key),
|
|
3199
3205
|
actions: ["confirm"],
|
|
3200
3206
|
modes: ["rgb"],
|
|
@@ -3239,12 +3245,12 @@ const no = /* @__PURE__ */ H({
|
|
|
3239
3245
|
}
|
|
3240
3246
|
}
|
|
3241
3247
|
});
|
|
3242
|
-
function
|
|
3248
|
+
function st(e) {
|
|
3243
3249
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
3244
3250
|
}
|
|
3245
3251
|
const {
|
|
3246
|
-
preset:
|
|
3247
|
-
} =
|
|
3252
|
+
preset: ut
|
|
3253
|
+
} = Ke, oo = /* @__PURE__ */ H({
|
|
3248
3254
|
name: "OthersChange",
|
|
3249
3255
|
props: {
|
|
3250
3256
|
prefixCls: L.string,
|
|
@@ -3272,7 +3278,7 @@ const {
|
|
|
3272
3278
|
size: "small",
|
|
3273
3279
|
renderItem: ({
|
|
3274
3280
|
item: f
|
|
3275
|
-
}) => o(
|
|
3281
|
+
}) => o(Me, {
|
|
3276
3282
|
title: f.disabled ? f.disabledReason : "",
|
|
3277
3283
|
placement: "left"
|
|
3278
3284
|
}, {
|
|
@@ -3288,7 +3294,7 @@ const {
|
|
|
3288
3294
|
}),
|
|
3289
3295
|
dataSource: [{
|
|
3290
3296
|
title: "禁用动画",
|
|
3291
|
-
action: o(
|
|
3297
|
+
action: o(ht, {
|
|
3292
3298
|
checked: !((d = (r = e.settingValue) == null ? void 0 : r.animate) != null && d.disabled),
|
|
3293
3299
|
size: "small",
|
|
3294
3300
|
onChange: (f) => {
|
|
@@ -3311,7 +3317,7 @@ const {
|
|
|
3311
3317
|
var v;
|
|
3312
3318
|
return (v = e.onChange) == null ? void 0 : v.call(e, "animate", "name", f);
|
|
3313
3319
|
}
|
|
3314
|
-
},
|
|
3320
|
+
}, st(i = ut.map((f) => o(he.Option, {
|
|
3315
3321
|
value: f.name
|
|
3316
3322
|
}, {
|
|
3317
3323
|
default: () => [f.alias]
|
|
@@ -3339,12 +3345,12 @@ const {
|
|
|
3339
3345
|
}, {
|
|
3340
3346
|
default: () => {
|
|
3341
3347
|
var f;
|
|
3342
|
-
return [(f =
|
|
3348
|
+
return [(f = ut.find((v) => {
|
|
3343
3349
|
var T, x;
|
|
3344
3350
|
return v.name === ((x = (T = e.settingValue) == null ? void 0 : T.animate) == null ? void 0 : x.name);
|
|
3345
3351
|
})) == null ? void 0 : f.directions.map((v) => o(he.Option, {
|
|
3346
3352
|
value: v
|
|
3347
|
-
},
|
|
3353
|
+
}, st(v) ? v : {
|
|
3348
3354
|
default: () => [v]
|
|
3349
3355
|
}))];
|
|
3350
3356
|
}
|
|
@@ -3355,7 +3361,7 @@ const {
|
|
|
3355
3361
|
}
|
|
3356
3362
|
}), {
|
|
3357
3363
|
preset: io
|
|
3358
|
-
} =
|
|
3364
|
+
} = Ke, De = Object.keys(A).filter((e) => e !== "title"), dt = {
|
|
3359
3365
|
color: "#fff",
|
|
3360
3366
|
fontSize: 20
|
|
3361
3367
|
}, lo = [{
|
|
@@ -3373,10 +3379,10 @@ const {
|
|
|
3373
3379
|
}, {
|
|
3374
3380
|
label: "fixedMultiTab",
|
|
3375
3381
|
title: "固定多标签"
|
|
3376
|
-
}],
|
|
3377
|
-
...ae(A,
|
|
3382
|
+
}], ct = (e) => vn() ? {
|
|
3383
|
+
...ae(A, De),
|
|
3378
3384
|
...e || {}
|
|
3379
|
-
} :
|
|
3385
|
+
} : bt(A), ye = (e, {
|
|
3380
3386
|
slots: t
|
|
3381
3387
|
}) => {
|
|
3382
3388
|
var n;
|
|
@@ -3415,7 +3421,7 @@ const {
|
|
|
3415
3421
|
}), {
|
|
3416
3422
|
wrapSSR: a,
|
|
3417
3423
|
hashId: i
|
|
3418
|
-
} = Z("ProSettingDraw", [Ja], n), r = ve(!1), [d, m] = pe(!1), [b, h] = pe(!1), [S, s] = pe(!1), k = w(() =>
|
|
3424
|
+
} = Z("ProSettingDraw", [Ja], n), r = ve(!1), [d, m] = pe(!1), [b, h] = pe(!1), [S, s] = pe(!1), k = w(() => ct(ae(e.settings, De))), [l, p] = wn(() => ct(ae(e.settings, De)), {
|
|
3419
3425
|
value: k,
|
|
3420
3426
|
onChange: e.onChange
|
|
3421
3427
|
}), I = w(() => e.colorList && pn(e.colorList) ? e.colorList : []), M = w(() => Hn(U(l))), {
|
|
@@ -3439,7 +3445,7 @@ const {
|
|
|
3439
3445
|
z && (z.dataset.prosettingdrawer = O === !0 ? z.style.filter : z.dataset.prosettingdrawer || "none", O === !0 && (z.dataset.prosettingdrawer = z.style.filter), z.style.filter = O === !0 ? "invert(80%)" : z.dataset.prosettingdrawer || "none", O || delete z.dataset.prosettingdrawer);
|
|
3440
3446
|
}
|
|
3441
3447
|
p(xn(U(l), {
|
|
3442
|
-
...Nn(
|
|
3448
|
+
...Nn(je(D, R))
|
|
3443
3449
|
}));
|
|
3444
3450
|
}, T = () => {
|
|
3445
3451
|
f.value && g(JSON.stringify(U(l)));
|
|
@@ -3462,10 +3468,10 @@ const {
|
|
|
3462
3468
|
handle: o("div", {
|
|
3463
3469
|
class: [`${n}-handle`, i.value],
|
|
3464
3470
|
onClick: () => m(!d.value)
|
|
3465
|
-
}, [d.value ? o(
|
|
3466
|
-
style:
|
|
3471
|
+
}, [d.value ? o(gt, {
|
|
3472
|
+
style: dt
|
|
3467
3473
|
}, null) : o(dn, {
|
|
3468
|
-
style:
|
|
3474
|
+
style: dt
|
|
3469
3475
|
}, null)])
|
|
3470
3476
|
}, {
|
|
3471
3477
|
default: () => [o("div", {
|
|
@@ -3478,7 +3484,7 @@ const {
|
|
|
3478
3484
|
hashId: i.value,
|
|
3479
3485
|
title: "整体风格设置"
|
|
3480
3486
|
}, {
|
|
3481
|
-
default: () => [o(
|
|
3487
|
+
default: () => [o(rt, {
|
|
3482
3488
|
hashId: i.value,
|
|
3483
3489
|
prefixCls: n,
|
|
3484
3490
|
list: Ht,
|
|
@@ -3504,12 +3510,12 @@ const {
|
|
|
3504
3510
|
settingValue: l.value,
|
|
3505
3511
|
onChange: (x, O) => v(O || "primaryColor", x)
|
|
3506
3512
|
}, null)]
|
|
3507
|
-
}), !e.themeOnly && o(q, null, [o(
|
|
3513
|
+
}), !e.themeOnly && o(q, null, [o(ke, null, null), o(ye, {
|
|
3508
3514
|
hashId: i.value,
|
|
3509
3515
|
prefixCls: n,
|
|
3510
3516
|
title: "导航模式"
|
|
3511
3517
|
}, {
|
|
3512
|
-
default: () => [o(
|
|
3518
|
+
default: () => [o(rt, {
|
|
3513
3519
|
prefixCls: n,
|
|
3514
3520
|
value: U(l).layout,
|
|
3515
3521
|
key: "layout",
|
|
@@ -3529,7 +3535,7 @@ const {
|
|
|
3529
3535
|
hashId: i.value,
|
|
3530
3536
|
valueKey: x,
|
|
3531
3537
|
onChange: (F, R) => v(F, R)
|
|
3532
|
-
}, null)), o(
|
|
3538
|
+
}, null)), o(ke, null, null), o(ye, {
|
|
3533
3539
|
hashId: i.value,
|
|
3534
3540
|
prefixCls: n,
|
|
3535
3541
|
title: o("span", null, [Q("其他设置 "), o("a", {
|
|
@@ -3565,7 +3571,7 @@ const {
|
|
|
3565
3571
|
valueKey: "showProgressBar",
|
|
3566
3572
|
onChange: (x, O) => v(x, O)
|
|
3567
3573
|
}, null)]
|
|
3568
|
-
})]), e.hideHintAlert && e.hideCopyButton ? null : o(
|
|
3574
|
+
})]), e.hideHintAlert && e.hideCopyButton ? null : o(ke, null, null), e.hideHintAlert ? null : o(en, {
|
|
3569
3575
|
type: "warning",
|
|
3570
3576
|
message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
|
|
3571
3577
|
icon: o(cn, null, null),
|
|
@@ -4883,8 +4889,8 @@ const {
|
|
|
4883
4889
|
}
|
|
4884
4890
|
});
|
|
4885
4891
|
function nl(e) {
|
|
4886
|
-
return
|
|
4887
|
-
const n =
|
|
4892
|
+
return Ae("LayoutPageTranstion", (t) => {
|
|
4893
|
+
const n = Ee(t);
|
|
4888
4894
|
return [tl(n)];
|
|
4889
4895
|
}, e);
|
|
4890
4896
|
}
|
|
@@ -4915,7 +4921,7 @@ const xl = /* @__PURE__ */ H({
|
|
|
4915
4921
|
wrapSSR: a,
|
|
4916
4922
|
hashId: i
|
|
4917
4923
|
} = nl(n), r = w(() => [m(!1), `${n}-enter`, i.value].join(" ")), d = w(() => [m(!0), `${n}-leave`, i.value].join(" ")), m = (h) => {
|
|
4918
|
-
const S =
|
|
4924
|
+
const S = Ke.preset.find((l) => e.name == l.name);
|
|
4919
4925
|
if (S == null)
|
|
4920
4926
|
return "";
|
|
4921
4927
|
let s = "";
|
|
@@ -4943,21 +4949,22 @@ export {
|
|
|
4943
4949
|
wt as BaseMenu,
|
|
4944
4950
|
Ga as DefaultHeader,
|
|
4945
4951
|
bl as GProLayout,
|
|
4946
|
-
|
|
4952
|
+
Fe as GlobalFooter,
|
|
4947
4953
|
yl as PageContainer,
|
|
4948
4954
|
Mn as PageLoading,
|
|
4949
4955
|
xl as PageTranstion,
|
|
4950
4956
|
vl as SettingDrawer,
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4957
|
+
Te as SiderMenuWrapper,
|
|
4958
|
+
Ye as WrapContent,
|
|
4959
|
+
We as baseMenuProps,
|
|
4954
4960
|
Pn as clearMenuItem,
|
|
4955
4961
|
Vn as createContext,
|
|
4956
4962
|
En as createRouteContext,
|
|
4957
4963
|
Ln as flatMap,
|
|
4958
4964
|
pl as getMenuData,
|
|
4959
4965
|
Dn as getMenuFirstChildren,
|
|
4960
|
-
|
|
4966
|
+
zn as getMenuFirstLastChildPath,
|
|
4967
|
+
Ce as getRealPath,
|
|
4961
4968
|
Nn as handleThemeConfig,
|
|
4962
4969
|
jn as provideProLayoutContext,
|
|
4963
4970
|
An as useContext,
|