@gx-design-vue/pro-layout 0.1.0-beta.81 → 0.1.0-beta.83
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/RouteTypings.d.ts +2 -3
- package/dist/hooks/menu/index.d.ts +5 -2
- package/dist/pro-layout.js +1109 -1094
- package/dist/pro-layout.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/pro-layout.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { createVNode as n, defineComponent as j, createTextVNode as
|
|
1
|
+
import { createVNode as n, defineComponent as j, createTextVNode as _, mergeProps as te, toRefs as tt, ref as me, reactive as pe, watch as ne, computed as R, unref as se, Fragment as J, withDirectives as En, vShow as Kn, isVNode as Le, resolveComponent as Jt, nextTick as xt, watchEffect as Wn, onMounted as St, isRef as zt, Transition as Un } from "vue";
|
|
2
2
|
import { pick as oe, cloneDeep as Se, omit as $e } from "lodash-es";
|
|
3
|
-
import { LayoutFooter as _n, Spin as
|
|
4
|
-
import { useLocalStorage as at, useColorMode as ea, useStyleTag as ta, useMagicKeys as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { getPrefixCls as ie, arrayRepeat as la, getSlotVNode as
|
|
7
|
-
import ga, { themeConfig as Z, useContext as ya, useProStyle as fe, useStyle as Pe, mergeToken as je, getTokenLayoutTheme as
|
|
3
|
+
import { LayoutFooter as _n, Spin as It, Tabs as wt, Menu as ge, Dropdown as ht, Layout as We, Popover as Xn, Badge as Vn, ConfigProvider as Rt, Drawer as Qe, Avatar as en, Form as Dt, Input as tn, Button as Ze, Empty as At, MenuItem as Ht, Breadcrumb as Gn, Card as Yn, Tooltip as nt, List as Me, Switch as nn, TabPane as qn, Select as Ye, message as Qn, Segmented as Zn, Divider as ct, Alert as Jn } from "ant-design-vue";
|
|
4
|
+
import { useLocalStorage as at, useColorMode as ea, useStyleTag as ta, useMagicKeys as an, whenever as gt, useThrottleFn as na, onKeyStroke as ut, useFullscreen as aa, useDebounceFn as oa, useClipboard as ia } from "@vueuse/core";
|
|
5
|
+
import { useState as Ce, useMemo as yt, useMergedState as De, useMediaQuery as on } from "@gx-design-vue/pro-hooks";
|
|
6
|
+
import { getPrefixCls as ie, arrayRepeat as la, getSlotVNode as Be, classNames as Q, isBoolean as ae, merge as ve, isNumber as Ue, isUrl as $t, isImg as ra, isArray as Mt, convertValueBoolean as Fe, isObject as sa, isString as ca, getLevelData as Bt, deepCopy as ua, getRandomNumber as bt, getSlot as re, getSlotsProps as da, isWindowsOs as ma, isDeepEqualReact as fa, isBrowser as ha } from "@gx-design-vue/pro-utils";
|
|
7
|
+
import ga, { themeConfig as Z, useContext as ya, useProStyle as fe, useStyle as Pe, mergeToken as je, getTokenLayoutTheme as ye, resetComponent as ba, Keyframe as S, checkMenuDark as ot, calcUnit as dt, getDefaultLayoutToken as it, useProConfigContext as Oe, unit as Ae, getLayoutTheme as ln, useProForm as va, setAlpha as pa, defaultSystemTheme as Ca, defaultLayout as xa, colorList as Sa } from "@gx-design-vue/pro-provider";
|
|
8
8
|
import { createTypes as Ia } from "vue-types";
|
|
9
9
|
import { spinProps as wa } from "ant-design-vue/es/spin";
|
|
10
10
|
import Re from "dayjs";
|
|
11
|
-
import { GithubOutlined as Ra, CloseOutlined as lt, FullscreenExitOutlined as
|
|
12
|
-
import { useProAppContext as
|
|
11
|
+
import { GithubOutlined as Ra, CloseOutlined as lt, FullscreenExitOutlined as rn, FullscreenOutlined as sn, ReloadOutlined as vt, ExportOutlined as $a, VerticalRightOutlined as Ma, VerticalLeftOutlined as Ba, VerticalAlignMiddleOutlined as La, SwapOutlined as Oa, DownOutlined as Fa, AppstoreOutlined as ka, createFromIconfontCN as Ta, ArrowLeftOutlined as Pa, MenuUnfoldOutlined as Na, MenuFoldOutlined as za, UserOutlined as cn, LockOutlined as un, MenuOutlined as Da, ArrowRightOutlined as Aa, SearchOutlined as jt, EnterOutlined as Ha, ArrowUpOutlined as Et, CompressOutlined as ja, ExpandOutlined as Ea, SettingOutlined as dn, LogoutOutlined as Ka, DesktopOutlined as Wa, CheckOutlined as mn, NotificationOutlined as Ua, CopyOutlined as _a, ClearOutlined as Xa } from "@ant-design/icons-vue";
|
|
12
|
+
import { useProAppContext as Lt } from "@gx-design-vue/pro-app";
|
|
13
13
|
import { useRouter as Ge, RouterLink as Va } from "vue-router";
|
|
14
14
|
import { getAlphaColor as ke } from "ant-design-vue/es/theme/themes/dark/colorAlgorithm";
|
|
15
15
|
import Ga, { GProModal as Ya } from "@gx-design-vue/pro-modal";
|
|
@@ -17,7 +17,7 @@ import "dayjs/locale/zh-cn";
|
|
|
17
17
|
import qa from "ant-design-vue/es/vc-resize-observer";
|
|
18
18
|
import { GPorWaterMark as Qa } from "@gx-design-vue/pro-watermark";
|
|
19
19
|
import Za from "@gx-design-vue/scrollbar";
|
|
20
|
-
import { GColorPicker as
|
|
20
|
+
import { GColorPicker as Kt } from "@gx-design-vue/color-picker";
|
|
21
21
|
const q = Ia({
|
|
22
22
|
func: void 0,
|
|
23
23
|
bool: void 0,
|
|
@@ -230,7 +230,7 @@ const Te = {
|
|
|
230
230
|
onCollapse: {
|
|
231
231
|
type: Function
|
|
232
232
|
}
|
|
233
|
-
},
|
|
233
|
+
}, fn = {
|
|
234
234
|
...Te,
|
|
235
235
|
...st,
|
|
236
236
|
...rt,
|
|
@@ -280,8 +280,8 @@ const Te = {
|
|
|
280
280
|
onCollapse: ce.onCollapse,
|
|
281
281
|
onOpenKeys: ce.onOpenKeys,
|
|
282
282
|
onSelect: ce.onSelect
|
|
283
|
-
},
|
|
284
|
-
...
|
|
283
|
+
}, hn = {
|
|
284
|
+
...fn,
|
|
285
285
|
hasSiderMenu: Boolean,
|
|
286
286
|
collapsedWidth: ce.collapsedWidth,
|
|
287
287
|
siderWidth: ce.siderWidth
|
|
@@ -345,7 +345,7 @@ const Te = {
|
|
|
345
345
|
}), to = ["dark", "layout", "theme", "wideWidth", "contentWidth", "collapsed", "waterMark", "menuData", "openKeys", "splitMenus", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps", "shortcutKey", "pageContainerProps"], {
|
|
346
346
|
provideContext: no,
|
|
347
347
|
useInjectContext: le
|
|
348
|
-
} = ya("pro-layout"),
|
|
348
|
+
} = ya("pro-layout"), gn = [{
|
|
349
349
|
key: "Ant Design Pro",
|
|
350
350
|
title: "Ant Design Pro",
|
|
351
351
|
href: "https://pro.ant.design",
|
|
@@ -360,12 +360,12 @@ const Te = {
|
|
|
360
360
|
title: "Ant Design Vue",
|
|
361
361
|
href: "https://next.antdv.com/components/overview-cn/",
|
|
362
362
|
blankTarget: !0
|
|
363
|
-
}],
|
|
363
|
+
}], Wt = /* @__PURE__ */ j({
|
|
364
364
|
name: "GlobalFooter",
|
|
365
365
|
props: {
|
|
366
366
|
links: {
|
|
367
367
|
type: [Array, Boolean],
|
|
368
|
-
default:
|
|
368
|
+
default: gn
|
|
369
369
|
},
|
|
370
370
|
copyright: {
|
|
371
371
|
type: [Object, Function, Boolean, String],
|
|
@@ -396,7 +396,7 @@ const Te = {
|
|
|
396
396
|
href: s.href
|
|
397
397
|
}, [s.title]))]), e.copyright && n("div", {
|
|
398
398
|
class: `${o}-copyright ${l.value}`
|
|
399
|
-
}, [
|
|
399
|
+
}, [_("Copyright "), Re().format("YYYY"), _(" "), n("a", {
|
|
400
400
|
href: "https://beian.miit.gov.cn/"
|
|
401
401
|
}, [e.copyright])])])]
|
|
402
402
|
}));
|
|
@@ -447,7 +447,7 @@ const Te = {
|
|
|
447
447
|
},
|
|
448
448
|
loading: q.bool.def(!1),
|
|
449
449
|
...ao
|
|
450
|
-
},
|
|
450
|
+
}, Ot = {
|
|
451
451
|
dark: {
|
|
452
452
|
type: [Boolean, String],
|
|
453
453
|
default: void 0
|
|
@@ -455,10 +455,10 @@ const Te = {
|
|
|
455
455
|
onDarkChange: Function,
|
|
456
456
|
"onUpdate:dark": Function
|
|
457
457
|
}, He = {
|
|
458
|
-
...
|
|
458
|
+
...Ot,
|
|
459
459
|
...Te,
|
|
460
460
|
...ce,
|
|
461
|
-
...
|
|
461
|
+
...hn,
|
|
462
462
|
...oe(pt, ["onTabsChange", "onReloadPage", "onUpdate:tabs"]),
|
|
463
463
|
contentWidth: Je.contentWidth,
|
|
464
464
|
pageContainerProps: {
|
|
@@ -499,7 +499,7 @@ const Te = {
|
|
|
499
499
|
loading: q.looseBool,
|
|
500
500
|
footerLinks: {
|
|
501
501
|
type: [Array, Boolean],
|
|
502
|
-
default:
|
|
502
|
+
default: gn
|
|
503
503
|
},
|
|
504
504
|
tabsVisible: Boolean,
|
|
505
505
|
tabsRouteItemRender: pt.itemRender,
|
|
@@ -553,9 +553,9 @@ const Te = {
|
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
};
|
|
556
|
-
},
|
|
556
|
+
}, yn = ["menuLinksRender", "appLogoListRender", "siderActionsRender"], bn = ["appLogoListRender", "extraRightDropdownRender"], vn = la([
|
|
557
|
+
...bn,
|
|
557
558
|
...yn,
|
|
558
|
-
...gn,
|
|
559
559
|
"pageHeaderRender",
|
|
560
560
|
"pageLockRender",
|
|
561
561
|
"copyrightRender"
|
|
@@ -572,7 +572,7 @@ const Te = {
|
|
|
572
572
|
"breadcrumbRender",
|
|
573
573
|
"collapsedButtonRender"
|
|
574
574
|
];
|
|
575
|
-
[...
|
|
575
|
+
[...vn, ...lo];
|
|
576
576
|
const ro = ["tabsVisible", "storageTabsBar", "collapsedWidth", "isChildrenLayout", "loading", "showTabsBar", "fixedTabsBar", "collapsed", "onReloadPage", "onTabsChange"], so = /* @__PURE__ */ j({
|
|
577
577
|
name: "PageLoading",
|
|
578
578
|
props: wa(),
|
|
@@ -582,17 +582,17 @@ const ro = ["tabsVisible", "storageTabsBar", "collapsedWidth", "isChildrenLayout
|
|
|
582
582
|
slots: t,
|
|
583
583
|
attrs: a
|
|
584
584
|
}) {
|
|
585
|
-
const o =
|
|
585
|
+
const o = Lt();
|
|
586
586
|
return () => {
|
|
587
587
|
var s;
|
|
588
|
-
const i = a.style || {}, l =
|
|
588
|
+
const i = a.style || {}, l = Be(t, e, "indicator");
|
|
589
589
|
return e.spinning ? n("div", {
|
|
590
590
|
style: {
|
|
591
591
|
paddingTop: "100px",
|
|
592
592
|
textAlign: "center",
|
|
593
593
|
...i
|
|
594
594
|
}
|
|
595
|
-
}, [n(
|
|
595
|
+
}, [n(It, te(e, {
|
|
596
596
|
indicator: l || ((s = o == null ? void 0 : o.indicator) == null ? void 0 : s.value)
|
|
597
597
|
}), null)]) : null;
|
|
598
598
|
};
|
|
@@ -754,7 +754,7 @@ const _e = /* @__PURE__ */ j({
|
|
|
754
754
|
icon: n(lt, null, null)
|
|
755
755
|
}, {
|
|
756
756
|
key: "fullScreen",
|
|
757
|
-
icon: (e) => e ? n(
|
|
757
|
+
icon: (e) => e ? n(rn, null, null) : n(sn, null, null)
|
|
758
758
|
}, {
|
|
759
759
|
key: "reloadPage",
|
|
760
760
|
label: "重新加载",
|
|
@@ -768,11 +768,11 @@ const _e = /* @__PURE__ */ j({
|
|
|
768
768
|
}, {
|
|
769
769
|
key: "closeLeftTabs",
|
|
770
770
|
label: "关闭左侧",
|
|
771
|
-
icon: n(
|
|
771
|
+
icon: n(Ma, null, null)
|
|
772
772
|
}, {
|
|
773
773
|
key: "closeRightTabs",
|
|
774
774
|
label: "关闭右侧",
|
|
775
|
-
icon: n(
|
|
775
|
+
icon: n(Ba, null, null)
|
|
776
776
|
}, {
|
|
777
777
|
key: "divider"
|
|
778
778
|
}, {
|
|
@@ -795,8 +795,8 @@ function go(e, t) {
|
|
|
795
795
|
function yo(e) {
|
|
796
796
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
797
797
|
}
|
|
798
|
-
const bo =
|
|
799
|
-
function
|
|
798
|
+
const bo = wt.TabPane, vo = ge.Item;
|
|
799
|
+
function U(e) {
|
|
800
800
|
return e.name;
|
|
801
801
|
}
|
|
802
802
|
const po = /* @__PURE__ */ j({
|
|
@@ -808,44 +808,44 @@ const po = /* @__PURE__ */ j({
|
|
|
808
808
|
isMobile: t,
|
|
809
809
|
fixedTabsBar: a,
|
|
810
810
|
storageTabsBar: o
|
|
811
|
-
} = tt(e), i = me(!1), l =
|
|
811
|
+
} = tt(e), i = me(!1), l = pe({
|
|
812
812
|
activeKey: "",
|
|
813
813
|
contextMenuActiveKey: ""
|
|
814
814
|
}), s = Ge(), {
|
|
815
815
|
contentFullScreen: r,
|
|
816
|
-
levelMenuData:
|
|
817
|
-
flatMenuData:
|
|
818
|
-
layout:
|
|
819
|
-
splitMenus:
|
|
820
|
-
getPrefixCls:
|
|
821
|
-
} = le(),
|
|
816
|
+
levelMenuData: h,
|
|
817
|
+
flatMenuData: g,
|
|
818
|
+
layout: f,
|
|
819
|
+
splitMenus: d,
|
|
820
|
+
getPrefixCls: y
|
|
821
|
+
} = le(), b = y({
|
|
822
822
|
isPor: !0,
|
|
823
823
|
suffixCls: "tabs-route"
|
|
824
824
|
}), {
|
|
825
825
|
wrapSSR: u,
|
|
826
|
-
hashId:
|
|
827
|
-
} = uo(
|
|
826
|
+
hashId: x
|
|
827
|
+
} = uo(b), v = at(b, {
|
|
828
828
|
fixed: [],
|
|
829
829
|
normal: []
|
|
830
|
-
}), c =
|
|
831
|
-
fixed: o.value && ((xe =
|
|
832
|
-
normal: o.value && ((Ie =
|
|
830
|
+
}), c = pe({
|
|
831
|
+
fixed: o.value && ((xe = v.value) != null && xe.fixed) ? (Ne = v.value) == null ? void 0 : Ne.fixed : [],
|
|
832
|
+
normal: o.value && ((Ie = v.value) != null && Ie.normal) ? (we = v.value) == null ? void 0 : we.normal : []
|
|
833
833
|
});
|
|
834
|
-
ne(o, (
|
|
835
|
-
|
|
834
|
+
ne(o, (C) => {
|
|
835
|
+
v.value = C ? Se(c) : {
|
|
836
836
|
fixed: [],
|
|
837
837
|
normal: []
|
|
838
838
|
};
|
|
839
839
|
});
|
|
840
|
-
const
|
|
841
|
-
const
|
|
842
|
-
return z.value &&
|
|
843
|
-
}), I = R(() => Q(`${
|
|
844
|
-
[`${
|
|
845
|
-
[`${
|
|
846
|
-
[`${
|
|
847
|
-
})),
|
|
848
|
-
const
|
|
840
|
+
const p = R(() => c.fixed.concat(c.normal)), m = R(() => f.value === "mix" && !e.isMobile && d.value), w = R(() => U(s.currentRoute.value)), z = R(() => a.value && !t.value), $ = R(() => {
|
|
841
|
+
const C = !(m.value && se(g.value).length === 0 || h.value.length === 0 || f.value === "top");
|
|
842
|
+
return z.value && C ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
|
|
843
|
+
}), I = R(() => Q(`${b}-wrap`, {
|
|
844
|
+
[`${x.value}`]: !0,
|
|
845
|
+
[`${b}-wrap-fixed`]: a.value,
|
|
846
|
+
[`${b}-wrap-loading`]: e.loading
|
|
847
|
+
})), M = R(() => {
|
|
848
|
+
const C = {
|
|
849
849
|
display: e.visible ? void 0 : "none"
|
|
850
850
|
};
|
|
851
851
|
return a.value ? {
|
|
@@ -854,104 +854,104 @@ const po = /* @__PURE__ */ j({
|
|
|
854
854
|
paddingTop: "6px",
|
|
855
855
|
zIndex: 99,
|
|
856
856
|
top: r.value ? 0 : void 0,
|
|
857
|
-
...
|
|
858
|
-
} :
|
|
857
|
+
...C
|
|
858
|
+
} : C;
|
|
859
859
|
});
|
|
860
|
-
ne(() => c, (
|
|
861
|
-
var
|
|
862
|
-
o.value && (
|
|
860
|
+
ne(() => c, (C) => {
|
|
861
|
+
var B;
|
|
862
|
+
o.value && (v.value = Se(C)), (B = e.onTabsChange) == null || B.call(e, [...c.fixed, ...c.normal]);
|
|
863
863
|
}, {
|
|
864
864
|
deep: !0
|
|
865
865
|
});
|
|
866
|
-
const k = (
|
|
867
|
-
let
|
|
868
|
-
return
|
|
869
|
-
}, O = (
|
|
866
|
+
const k = (C) => {
|
|
867
|
+
let B = c.fixed.find((N) => U(N) === C);
|
|
868
|
+
return B || (B = c.normal.find((N) => U(N) === C)), B;
|
|
869
|
+
}, O = (C) => U(C) === w.value, T = (C) => {
|
|
870
870
|
var N;
|
|
871
871
|
const {
|
|
872
|
-
fixed:
|
|
873
|
-
} = ((N =
|
|
874
|
-
return
|
|
875
|
-
},
|
|
872
|
+
fixed: B
|
|
873
|
+
} = ((N = C == null ? void 0 : C.meta) == null ? void 0 : N.tabState) || {};
|
|
874
|
+
return C != null && C.meta ? ae(B) ? B : B === 0 : !1;
|
|
875
|
+
}, X = (C) => {
|
|
876
876
|
var N, G;
|
|
877
877
|
const {
|
|
878
|
-
hidden:
|
|
879
|
-
} = ((N =
|
|
880
|
-
if (
|
|
881
|
-
const D = T(
|
|
878
|
+
hidden: B
|
|
879
|
+
} = ((N = C == null ? void 0 : C.meta) == null ? void 0 : N.tabState) || {};
|
|
880
|
+
if (C.name && C.meta && B !== !0) {
|
|
881
|
+
const D = T(C), A = U(C), ue = k(A), ze = {
|
|
882
882
|
name: A,
|
|
883
|
-
path:
|
|
884
|
-
fullPath:
|
|
885
|
-
query:
|
|
886
|
-
params:
|
|
887
|
-
meta:
|
|
888
|
-
tabState: (G =
|
|
883
|
+
path: C.path,
|
|
884
|
+
fullPath: C.fullPath,
|
|
885
|
+
query: C.query,
|
|
886
|
+
params: C.params,
|
|
887
|
+
meta: ve(C.meta, {
|
|
888
|
+
tabState: (G = C.meta) == null ? void 0 : G.tabState
|
|
889
889
|
})
|
|
890
890
|
};
|
|
891
|
-
ue ?
|
|
891
|
+
ue ? ve(ue, ze) : D ? c.fixed.push(ze) : c.normal.push(ze), O(C) && (l.activeKey = A);
|
|
892
892
|
}
|
|
893
|
-
},
|
|
894
|
-
|
|
895
|
-
T(
|
|
893
|
+
}, E = (C) => {
|
|
894
|
+
C.forEach((B) => {
|
|
895
|
+
T(B) && X(se(B));
|
|
896
896
|
});
|
|
897
897
|
};
|
|
898
|
-
ne(() =>
|
|
899
|
-
|
|
898
|
+
ne(() => h.value, (C) => {
|
|
899
|
+
E(C);
|
|
900
900
|
}, {
|
|
901
901
|
deep: !0,
|
|
902
902
|
immediate: !0
|
|
903
|
-
}), ne(() => s.currentRoute.value, (
|
|
904
|
-
|
|
903
|
+
}), ne(() => s.currentRoute.value, (C) => {
|
|
904
|
+
X(C);
|
|
905
905
|
}, {
|
|
906
906
|
deep: !0,
|
|
907
907
|
immediate: !0
|
|
908
908
|
});
|
|
909
|
-
const
|
|
910
|
-
const
|
|
911
|
-
return (
|
|
912
|
-
}, he = (
|
|
913
|
-
type:
|
|
909
|
+
const K = (C) => {
|
|
910
|
+
const B = p.value.find((N) => (C || l.activeKey) === U(N));
|
|
911
|
+
return (B == null ? void 0 : B.redirect) || (B == null ? void 0 : B.fullPath) || (B == null ? void 0 : B.path) || "";
|
|
912
|
+
}, he = (C, {
|
|
913
|
+
type: B,
|
|
914
914
|
addType: N,
|
|
915
915
|
params: G
|
|
916
916
|
}) => {
|
|
917
|
-
const D = T(
|
|
918
|
-
|
|
917
|
+
const D = T(C) ? "fixed" : "normal";
|
|
918
|
+
B === "add" && N ? c[D][N](G) : B === "merge" ? c[D] = c[D].map((A) => U(A) === U(C) ? ve(A, G) : A) : B === "remove" && (c[D] = c[D].filter((A) => U(A) !== U(C)));
|
|
919
919
|
}, de = () => {
|
|
920
|
-
const
|
|
921
|
-
|
|
922
|
-
path:
|
|
920
|
+
const C = p.value.slice(-1)[0];
|
|
921
|
+
C ? s.push({
|
|
922
|
+
path: K(U(C))
|
|
923
923
|
}) : s.push("/");
|
|
924
|
-
}, L = async (
|
|
925
|
-
const
|
|
926
|
-
|
|
924
|
+
}, L = async (C) => {
|
|
925
|
+
const B = p.value.find((N) => C === U(N));
|
|
926
|
+
B && (he(B, {
|
|
927
927
|
type: "remove",
|
|
928
|
-
params:
|
|
929
|
-
}), O(
|
|
930
|
-
}, F = (
|
|
931
|
-
const
|
|
932
|
-
|
|
933
|
-
path:
|
|
928
|
+
params: B
|
|
929
|
+
}), O(B) && de());
|
|
930
|
+
}, F = (C) => {
|
|
931
|
+
const B = p.value.find((N) => U(N) === C);
|
|
932
|
+
B && l.activeKey !== U(B) && s.push({
|
|
933
|
+
path: K(U(B))
|
|
934
934
|
});
|
|
935
935
|
}, P = () => {
|
|
936
|
-
var
|
|
937
|
-
i.value = !0, e.onReloadPage && ((
|
|
936
|
+
var C;
|
|
937
|
+
i.value = !0, e.onReloadPage && ((C = e.onReloadPage) == null || C.call(e)), setTimeout(() => {
|
|
938
938
|
i.value = !1;
|
|
939
939
|
}, 500);
|
|
940
|
-
},
|
|
941
|
-
const
|
|
942
|
-
l.activeKey !==
|
|
943
|
-
},
|
|
944
|
-
let N = c.normal.findIndex((A) =>
|
|
945
|
-
const G =
|
|
946
|
-
switch (
|
|
940
|
+
}, W = (C) => l[C], ee = (C) => {
|
|
941
|
+
const B = p.value.find((N) => U(N) === W(C));
|
|
942
|
+
l.activeKey !== W(C) && (c.normal.length > 0 ? k(U(B)) || s.push(K(W(C))) : de());
|
|
943
|
+
}, be = (C, B) => {
|
|
944
|
+
let N = c.normal.findIndex((A) => U(A) === W(B));
|
|
945
|
+
const G = p.value.find((A) => U(A) === W(B)), D = T(G);
|
|
946
|
+
switch (C) {
|
|
947
947
|
case "fixed":
|
|
948
|
-
D ? (N = c.fixed.findIndex((A) =>
|
|
948
|
+
D ? (N = c.fixed.findIndex((A) => U(A) === W(B)), c.normal.unshift(ve(G, {
|
|
949
949
|
meta: {
|
|
950
950
|
tabState: {
|
|
951
951
|
fixed: !D
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
|
-
})), c.fixed = c.fixed.filter((A, ue) => ue !== N)) : (c.fixed.push(
|
|
954
|
+
})), c.fixed = c.fixed.filter((A, ue) => ue !== N)) : (c.fixed.push(ve(G, {
|
|
955
955
|
meta: {
|
|
956
956
|
tabState: {
|
|
957
957
|
fixed: !D
|
|
@@ -960,22 +960,22 @@ const po = /* @__PURE__ */ j({
|
|
|
960
960
|
})), c.normal = c.normal.filter((A, ue) => ue !== N));
|
|
961
961
|
break;
|
|
962
962
|
case "close":
|
|
963
|
-
!i.value && L(
|
|
963
|
+
!i.value && L(U(G) || "");
|
|
964
964
|
break;
|
|
965
965
|
case "closeOthersTabs":
|
|
966
|
-
c.normal = c.normal.filter((A) =>
|
|
966
|
+
c.normal = c.normal.filter((A) => U(A) === W(B) || T(A)), ee(B);
|
|
967
967
|
break;
|
|
968
968
|
case "closeLeftTabs":
|
|
969
|
-
Ue(N) && (c.normal = c.normal.filter((A, ue) => ue >= N || T(A))), ee(
|
|
969
|
+
Ue(N) && (c.normal = c.normal.filter((A, ue) => ue >= N || T(A))), ee(B);
|
|
970
970
|
break;
|
|
971
971
|
case "closeRightTabs":
|
|
972
|
-
Ue(N) && (c.normal = c.normal.filter((A, ue) => ue <= N || T(A))), ee(
|
|
972
|
+
Ue(N) && (c.normal = c.normal.filter((A, ue) => ue <= N || T(A))), ee(B);
|
|
973
973
|
break;
|
|
974
974
|
case "closeAllTabs":
|
|
975
975
|
c.normal = c.normal.filter((A) => T(A)), de();
|
|
976
976
|
break;
|
|
977
977
|
case "reloadPage":
|
|
978
|
-
(N === 0 || N) && l.activeKey ===
|
|
978
|
+
(N === 0 || N) && l.activeKey === W(B) && P();
|
|
979
979
|
break;
|
|
980
980
|
case "newBlank":
|
|
981
981
|
window.open(location.href);
|
|
@@ -984,24 +984,24 @@ const po = /* @__PURE__ */ j({
|
|
|
984
984
|
r.value = !r.value;
|
|
985
985
|
break;
|
|
986
986
|
}
|
|
987
|
-
}, H = (
|
|
988
|
-
const N =
|
|
989
|
-
if (
|
|
990
|
-
return
|
|
991
|
-
if (
|
|
992
|
-
return
|
|
993
|
-
if (
|
|
994
|
-
return
|
|
995
|
-
}, Y = (
|
|
996
|
-
let
|
|
987
|
+
}, H = (C, B) => {
|
|
988
|
+
const N = p.value.findIndex((G) => U(G) === B);
|
|
989
|
+
if (C === "closeOthersTabs")
|
|
990
|
+
return p.value.filter((D, A) => A !== N && !T(D)).length === 0;
|
|
991
|
+
if (C === "closeLeftTabs")
|
|
992
|
+
return p.value.filter((D, A) => A < N && !T(D)).length === 0;
|
|
993
|
+
if (C === "closeRightTabs")
|
|
994
|
+
return p.value.filter((D, A) => A > N && !T(D)).length === 0;
|
|
995
|
+
}, Y = (C) => {
|
|
996
|
+
let B;
|
|
997
997
|
const {
|
|
998
998
|
name: N,
|
|
999
999
|
stateType: G
|
|
1000
|
-
} =
|
|
1000
|
+
} = C;
|
|
1001
1001
|
return n(ge, {
|
|
1002
1002
|
selectedKeys: [],
|
|
1003
|
-
onClick: (D) =>
|
|
1004
|
-
}, yo(
|
|
1003
|
+
onClick: (D) => be(D.key, G)
|
|
1004
|
+
}, yo(B = ho.map((D) => {
|
|
1005
1005
|
if (D.key === "divider") return n(ge.Divider, {
|
|
1006
1006
|
key: D.key
|
|
1007
1007
|
}, null);
|
|
@@ -1022,71 +1022,71 @@ const po = /* @__PURE__ */ j({
|
|
|
1022
1022
|
})])];
|
|
1023
1023
|
}
|
|
1024
1024
|
});
|
|
1025
|
-
})) ?
|
|
1026
|
-
default: () => [
|
|
1025
|
+
})) ? B : {
|
|
1026
|
+
default: () => [B]
|
|
1027
1027
|
});
|
|
1028
1028
|
}, V = ({
|
|
1029
|
-
router:
|
|
1029
|
+
router: C
|
|
1030
1030
|
}) => {
|
|
1031
|
-
const
|
|
1031
|
+
const B = e.itemRender ? e.itemRender(C) : null, N = T(C);
|
|
1032
1032
|
return n(ht, {
|
|
1033
1033
|
trigger: "contextmenu",
|
|
1034
1034
|
overlay: n(Y, {
|
|
1035
|
-
name:
|
|
1035
|
+
name: U(C) || "",
|
|
1036
1036
|
stateType: "contextMenuActiveKey"
|
|
1037
1037
|
}, null),
|
|
1038
1038
|
onOpenChange: (G) => {
|
|
1039
|
-
l.contextMenuActiveKey = G &&
|
|
1039
|
+
l.contextMenuActiveKey = G && U(C) || "";
|
|
1040
1040
|
}
|
|
1041
1041
|
}, {
|
|
1042
1042
|
default: () => {
|
|
1043
1043
|
var G;
|
|
1044
|
-
return [
|
|
1045
|
-
class: [`${
|
|
1046
|
-
}, [l.activeKey ===
|
|
1047
|
-
class: [`${
|
|
1044
|
+
return [B || n("div", {
|
|
1045
|
+
class: [`${b}-title`, x.value]
|
|
1046
|
+
}, [l.activeKey === U(C) && n(vt, {
|
|
1047
|
+
class: [`${b}-reload-btn`, x.value],
|
|
1048
1048
|
spin: i.value,
|
|
1049
1049
|
onClick: (D) => {
|
|
1050
1050
|
D.stopPropagation(), !i.value && P();
|
|
1051
1051
|
}
|
|
1052
|
-
}, null), (G =
|
|
1053
|
-
class: [`${
|
|
1052
|
+
}, null), (G = C.meta) == null ? void 0 : G.title, N && n(_e, {
|
|
1053
|
+
class: [`${b}-icon`, x.value],
|
|
1054
1054
|
name: "fixed"
|
|
1055
|
-
}, null),
|
|
1056
|
-
class: [`${
|
|
1055
|
+
}, null), p.value.length > 1 && !T(C) && n(lt, {
|
|
1056
|
+
class: [`${b}-close-btn`, x.value],
|
|
1057
1057
|
onClick: (D) => {
|
|
1058
|
-
D.stopPropagation(), !i.value && L(
|
|
1058
|
+
D.stopPropagation(), !i.value && L(U(C) || "");
|
|
1059
1059
|
}
|
|
1060
1060
|
}, null)])];
|
|
1061
1061
|
}
|
|
1062
1062
|
});
|
|
1063
1063
|
};
|
|
1064
1064
|
return () => {
|
|
1065
|
-
const
|
|
1066
|
-
return u(n(J, null, [a.value &&
|
|
1067
|
-
class: [`${
|
|
1068
|
-
}, null), [[
|
|
1065
|
+
const C = r.value ? rn : sn;
|
|
1066
|
+
return u(n(J, null, [a.value && En(n("div", {
|
|
1067
|
+
class: [`${b}-fixed`, x.value]
|
|
1068
|
+
}, null), [[Kn, e.visible]]), n(wt, {
|
|
1069
1069
|
hideAdd: !0,
|
|
1070
1070
|
type: "editable-card",
|
|
1071
|
-
style:
|
|
1071
|
+
style: M.value,
|
|
1072
1072
|
class: I.value,
|
|
1073
1073
|
activeKey: l.activeKey,
|
|
1074
1074
|
onTabClick: F
|
|
1075
1075
|
}, {
|
|
1076
|
-
default: () => [
|
|
1077
|
-
key:
|
|
1076
|
+
default: () => [p.value.map((B) => n(bo, {
|
|
1077
|
+
key: U(B),
|
|
1078
1078
|
closable: !1,
|
|
1079
1079
|
tab: n(V, {
|
|
1080
|
-
router:
|
|
1080
|
+
router: B
|
|
1081
1081
|
}, null)
|
|
1082
1082
|
}, null))],
|
|
1083
1083
|
rightExtra: () => n("div", {
|
|
1084
|
-
class: Q(`${
|
|
1084
|
+
class: Q(`${b}-dropdown-menu`, x.value)
|
|
1085
1085
|
}, [n(vt, {
|
|
1086
|
-
class: [`${
|
|
1087
|
-
onClick: () =>
|
|
1086
|
+
class: [`${b}-dropdown-menu-btn`, x.value],
|
|
1087
|
+
onClick: () => be("reloadPage", "activeKey")
|
|
1088
1088
|
}, null), n("div", {
|
|
1089
|
-
class: [`${
|
|
1089
|
+
class: [`${b}-dropdown-menu-btn-divider`, x.value]
|
|
1090
1090
|
}, null), n(ht, {
|
|
1091
1091
|
overlay: n(Y, {
|
|
1092
1092
|
name: l.activeKey,
|
|
@@ -1094,24 +1094,24 @@ const po = /* @__PURE__ */ j({
|
|
|
1094
1094
|
}, null)
|
|
1095
1095
|
}, {
|
|
1096
1096
|
default: () => [n(Fa, {
|
|
1097
|
-
class: [`${
|
|
1097
|
+
class: [`${b}-dropdown-menu-btn`, x.value]
|
|
1098
1098
|
}, null)]
|
|
1099
1099
|
}), n("div", {
|
|
1100
|
-
class: [`${
|
|
1101
|
-
}, null), n(
|
|
1102
|
-
class: [`${
|
|
1103
|
-
onClick: () =>
|
|
1100
|
+
class: [`${b}-dropdown-menu-btn-divider`, x.value]
|
|
1101
|
+
}, null), n(C, {
|
|
1102
|
+
class: [`${b}-dropdown-menu-btn`, x.value],
|
|
1103
|
+
onClick: () => be("fullScreen", "activeKey")
|
|
1104
1104
|
}, null)])
|
|
1105
1105
|
})]));
|
|
1106
1106
|
};
|
|
1107
1107
|
}
|
|
1108
1108
|
}), {
|
|
1109
1109
|
Content: Co
|
|
1110
|
-
} = We,
|
|
1110
|
+
} = We, Ft = (e, {
|
|
1111
1111
|
slots: t,
|
|
1112
1112
|
attrs: a
|
|
1113
1113
|
}) => {
|
|
1114
|
-
var
|
|
1114
|
+
var f;
|
|
1115
1115
|
const {
|
|
1116
1116
|
hashId: o,
|
|
1117
1117
|
prefixCls: i,
|
|
@@ -1120,32 +1120,32 @@ const po = /* @__PURE__ */ j({
|
|
|
1120
1120
|
...r
|
|
1121
1121
|
} = e;
|
|
1122
1122
|
if (e.isChildrenLayout)
|
|
1123
|
-
return (
|
|
1123
|
+
return (f = t.default) == null ? void 0 : f.call(t);
|
|
1124
1124
|
const {
|
|
1125
|
-
flatMenuData:
|
|
1126
|
-
layout:
|
|
1125
|
+
flatMenuData: h,
|
|
1126
|
+
layout: g
|
|
1127
1127
|
} = le();
|
|
1128
1128
|
return n(J, null, [n(po, te({
|
|
1129
|
-
visible: l ? s ? !0 :
|
|
1129
|
+
visible: l ? s ? !0 : g.value === "mix" ? h.value.length > 0 : !0 : !1
|
|
1130
1130
|
}, r), null), n(Co, {
|
|
1131
1131
|
style: a.style,
|
|
1132
1132
|
class: [`${i}-content`]
|
|
1133
1133
|
}, {
|
|
1134
1134
|
default: () => {
|
|
1135
|
-
var
|
|
1135
|
+
var d;
|
|
1136
1136
|
return [e.loading && n(so, null, null), n("div", {
|
|
1137
1137
|
class: [`${i}-content-spin-container`, o],
|
|
1138
1138
|
style: {
|
|
1139
1139
|
opacity: e.loading ? "0" : void 0
|
|
1140
1140
|
}
|
|
1141
|
-
}, [(
|
|
1141
|
+
}, [(d = t.default) == null ? void 0 : d.call(t)])];
|
|
1142
1142
|
}
|
|
1143
1143
|
})]);
|
|
1144
1144
|
};
|
|
1145
|
-
|
|
1146
|
-
|
|
1145
|
+
Ft.inheritAttrs = !1;
|
|
1146
|
+
Ft.displayName = "wrap-content";
|
|
1147
1147
|
const xo = (e) => {
|
|
1148
|
-
const { layout: t } =
|
|
1148
|
+
const { layout: t } = ye(e);
|
|
1149
1149
|
return {
|
|
1150
1150
|
[`${e.proComponentsCls}-header`]: {
|
|
1151
1151
|
"&-light": {
|
|
@@ -1396,7 +1396,7 @@ const xo = (e) => {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
}), $o = (e) => {
|
|
1398
1398
|
var a, o, i, l, s;
|
|
1399
|
-
const { theme: t } =
|
|
1399
|
+
const { theme: t } = ye(e);
|
|
1400
1400
|
return {
|
|
1401
1401
|
[e.componentCls]: {
|
|
1402
1402
|
"&-icon": {
|
|
@@ -1445,14 +1445,14 @@ const xo = (e) => {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
};
|
|
1448
|
-
},
|
|
1448
|
+
}, Mo = ({
|
|
1449
1449
|
logo: e
|
|
1450
1450
|
}) => typeof e == "string" ? n("img", {
|
|
1451
1451
|
width: "auto",
|
|
1452
1452
|
height: 22,
|
|
1453
1453
|
src: e,
|
|
1454
1454
|
alt: "logo"
|
|
1455
|
-
}, null) : typeof e == "function" ? e() : e,
|
|
1455
|
+
}, null) : typeof e == "function" ? e() : e, pn = /* @__PURE__ */ j({
|
|
1456
1456
|
name: "AppsLogoIcon",
|
|
1457
1457
|
inheritAttrs: !1,
|
|
1458
1458
|
setup(e, {
|
|
@@ -1464,13 +1464,13 @@ const xo = (e) => {
|
|
|
1464
1464
|
}), {
|
|
1465
1465
|
wrapSSR: o,
|
|
1466
1466
|
hashId: i
|
|
1467
|
-
} = fe("AppsLogoIcon", [$o], a), [l, s] =
|
|
1467
|
+
} = fe("AppsLogoIcon", [$o], a), [l, s] = Ce(!1), r = me(), h = me();
|
|
1468
1468
|
return () => {
|
|
1469
|
-
var
|
|
1469
|
+
var g;
|
|
1470
1470
|
return o(n(J, null, [n("div", {
|
|
1471
1471
|
ref: r,
|
|
1472
|
-
onClick: (
|
|
1473
|
-
|
|
1472
|
+
onClick: (f) => {
|
|
1473
|
+
f.stopPropagation(), f.preventDefault();
|
|
1474
1474
|
}
|
|
1475
1475
|
}, null), n(Xn, {
|
|
1476
1476
|
placement: "bottomRight",
|
|
@@ -1480,13 +1480,13 @@ const xo = (e) => {
|
|
|
1480
1480
|
open: l.value,
|
|
1481
1481
|
onOpenChange: s,
|
|
1482
1482
|
overlayClassName: `${a}-popover ${i.value}`.trim(),
|
|
1483
|
-
content: (
|
|
1483
|
+
content: (g = t.default) == null ? void 0 : g.call(t),
|
|
1484
1484
|
getPopupContainer: () => r.value || document.body
|
|
1485
1485
|
}, {
|
|
1486
1486
|
default: () => [n("span", {
|
|
1487
|
-
ref:
|
|
1488
|
-
onClick: (
|
|
1489
|
-
|
|
1487
|
+
ref: h,
|
|
1488
|
+
onClick: (f) => {
|
|
1489
|
+
f.stopPropagation();
|
|
1490
1490
|
},
|
|
1491
1491
|
class: Q(`${a}-icon`, i.value, {
|
|
1492
1492
|
[`${a}-icon-active`]: l.value
|
|
@@ -1508,7 +1508,7 @@ const et = (e) => {
|
|
|
1508
1508
|
if (!t)
|
|
1509
1509
|
return null;
|
|
1510
1510
|
if (typeof t == "string" && t !== "") {
|
|
1511
|
-
if (
|
|
1511
|
+
if ($t(t) || ra(t))
|
|
1512
1512
|
return n("img", {
|
|
1513
1513
|
src: t,
|
|
1514
1514
|
alt: "icon",
|
|
@@ -1527,9 +1527,9 @@ const et = (e) => {
|
|
|
1527
1527
|
}
|
|
1528
1528
|
if (Le(t))
|
|
1529
1529
|
return t;
|
|
1530
|
-
const i =
|
|
1530
|
+
const i = Jt(t);
|
|
1531
1531
|
return typeof et == "function" && n(i, null, null) || null;
|
|
1532
|
-
},
|
|
1532
|
+
}, Cn = /* @__PURE__ */ j({
|
|
1533
1533
|
name: "BaseMenu",
|
|
1534
1534
|
props: {
|
|
1535
1535
|
...$e(st, "onSelect"),
|
|
@@ -1543,90 +1543,90 @@ const et = (e) => {
|
|
|
1543
1543
|
} = le(), o = a({
|
|
1544
1544
|
suffixCls: "menu-item",
|
|
1545
1545
|
isPor: !0
|
|
1546
|
-
}), i = R(() =>
|
|
1547
|
-
var
|
|
1548
|
-
(
|
|
1546
|
+
}), i = R(() => b(e.menuData)), l = (u) => {
|
|
1547
|
+
var x;
|
|
1548
|
+
(x = e.onOpenKeys) == null || x.call(e, u);
|
|
1549
1549
|
}, s = (u) => {
|
|
1550
|
-
var
|
|
1551
|
-
(
|
|
1550
|
+
var x;
|
|
1551
|
+
(x = e.onSelect) == null || x.call(e, u);
|
|
1552
1552
|
}, r = (u) => {
|
|
1553
|
-
var
|
|
1554
|
-
(
|
|
1555
|
-
},
|
|
1556
|
-
var
|
|
1557
|
-
const
|
|
1558
|
-
((
|
|
1559
|
-
},
|
|
1560
|
-
var
|
|
1561
|
-
const
|
|
1553
|
+
var x;
|
|
1554
|
+
(x = e.onClick) == null || x.call(e, u);
|
|
1555
|
+
}, h = (u, x) => {
|
|
1556
|
+
var p;
|
|
1557
|
+
const v = u.link || "", c = $t(v);
|
|
1558
|
+
((p = t.currentRoute.value) == null ? void 0 : p.fullPath) !== x.to && c && v && u.linkStatus === 1 && window.open(v);
|
|
1559
|
+
}, g = Jt("router-link"), f = (u, x) => {
|
|
1560
|
+
var m;
|
|
1561
|
+
const v = Fe(u == null ? void 0 : u.icon), c = typeof u.badge == "function" ? n("div", {
|
|
1562
1562
|
class: `${o}-item-bradde`
|
|
1563
|
-
}, [(
|
|
1564
|
-
class: [`${o}-title`, !
|
|
1563
|
+
}, [(m = u.badge) == null ? void 0 : m.call(u, $e(u, "badge"))]) : null, p = n("span", {
|
|
1564
|
+
class: [`${o}-title`, !v && `${o}-title-no-icon`]
|
|
1565
1565
|
}, [u.title]);
|
|
1566
|
-
return
|
|
1566
|
+
return x ? p : n(J, null, [p, c ?? (sa(u.badge) && n(Vn, te({
|
|
1567
1567
|
class: `${o}-item-bradde`,
|
|
1568
1568
|
overflowCount: 999
|
|
1569
1569
|
}, u.badge), null))]);
|
|
1570
|
-
},
|
|
1571
|
-
var $, I,
|
|
1572
|
-
let
|
|
1573
|
-
const
|
|
1570
|
+
}, d = (u) => {
|
|
1571
|
+
var $, I, M;
|
|
1572
|
+
let x;
|
|
1573
|
+
const v = {
|
|
1574
1574
|
...u.meta
|
|
1575
|
-
}, c =
|
|
1575
|
+
}, c = v.linkStatus === 1 && v.link ? "a" : g, p = {
|
|
1576
1576
|
to: ca(u.redirect) ? u.redirect : u.path || ""
|
|
1577
|
-
},
|
|
1577
|
+
}, m = Fe(($ = u.meta) == null ? void 0 : $.icon), w = n(c, te(p, {
|
|
1578
1578
|
class: "gx-pro-menu-item",
|
|
1579
|
-
onClick: () =>
|
|
1580
|
-
}), mt(
|
|
1581
|
-
default: () => [
|
|
1582
|
-
}), z =
|
|
1579
|
+
onClick: () => h(v, p)
|
|
1580
|
+
}), mt(x = f(v, !m)) ? x : {
|
|
1581
|
+
default: () => [x]
|
|
1582
|
+
}), z = m && n(et, {
|
|
1583
1583
|
className: o,
|
|
1584
1584
|
icon: (I = u.meta) == null ? void 0 : I.icon,
|
|
1585
1585
|
iconfontUrl: e.iconfontUrl,
|
|
1586
|
-
iconFont: (
|
|
1586
|
+
iconFont: (M = u.meta) == null ? void 0 : M.iconFont
|
|
1587
1587
|
}, null) || void 0;
|
|
1588
1588
|
return [w, z];
|
|
1589
|
-
},
|
|
1590
|
-
var
|
|
1591
|
-
if (
|
|
1592
|
-
let
|
|
1589
|
+
}, y = (u) => {
|
|
1590
|
+
var p, m, w, z, $, I, M, k, O;
|
|
1591
|
+
if (((p = u == null ? void 0 : u.meta) == null ? void 0 : p.menuType) === "C" ? !1 : Mt(u.children) && !((m = u == null ? void 0 : u.meta) != null && m.hideInMenu) && !((w = u == null ? void 0 : u.meta) != null && w.hideChildrenInMenu)) {
|
|
1592
|
+
let T;
|
|
1593
1593
|
if (e.subMenuItemRender)
|
|
1594
1594
|
return e.subMenuItemRender({
|
|
1595
1595
|
item: u,
|
|
1596
|
-
children:
|
|
1596
|
+
children: b(u.children)
|
|
1597
1597
|
});
|
|
1598
|
-
const
|
|
1598
|
+
const X = (z = u.meta) != null && z.icon ? n("span", {
|
|
1599
1599
|
class: "gx-pro-menu-item"
|
|
1600
|
-
}, [
|
|
1601
|
-
return n(
|
|
1602
|
-
title:
|
|
1600
|
+
}, [f(u.meta)]) : u.meta && f(u.meta), E = (($ = u.meta) == null ? void 0 : $.type) === "group", K = E ? ge.ItemGroup : ge.SubMenu;
|
|
1601
|
+
return n(K, {
|
|
1602
|
+
title: X,
|
|
1603
1603
|
key: u.path,
|
|
1604
|
-
icon:
|
|
1604
|
+
icon: E ? null : n(et, {
|
|
1605
1605
|
className: o,
|
|
1606
|
-
icon: (
|
|
1606
|
+
icon: (I = u.meta) == null ? void 0 : I.icon,
|
|
1607
1607
|
iconfontUrl: e.iconfontUrl,
|
|
1608
|
-
iconFont: (
|
|
1608
|
+
iconFont: (M = u.meta) == null ? void 0 : M.iconFont
|
|
1609
1609
|
}, null)
|
|
1610
|
-
}, mt(
|
|
1611
|
-
default: () => [
|
|
1610
|
+
}, mt(T = b(u.children)) ? T : {
|
|
1611
|
+
default: () => [T]
|
|
1612
1612
|
});
|
|
1613
1613
|
}
|
|
1614
|
-
if ((
|
|
1615
|
-
const [
|
|
1614
|
+
if ((k = u == null ? void 0 : u.meta) != null && k.hideInMenu) return null;
|
|
1615
|
+
const [v, c] = d(u);
|
|
1616
1616
|
return e.menuItemRender && e.menuItemRender({
|
|
1617
1617
|
item: u,
|
|
1618
|
-
title:
|
|
1619
|
-
icon:
|
|
1618
|
+
title: v,
|
|
1619
|
+
icon: c
|
|
1620
1620
|
}) || n(ge.Item, {
|
|
1621
|
-
disabled: (
|
|
1621
|
+
disabled: (O = u.meta) == null ? void 0 : O.disabled,
|
|
1622
1622
|
key: u.path,
|
|
1623
|
-
icon:
|
|
1624
|
-
}, mt(
|
|
1625
|
-
default: () => [
|
|
1623
|
+
icon: c
|
|
1624
|
+
}, mt(v) ? v : {
|
|
1625
|
+
default: () => [v]
|
|
1626
1626
|
});
|
|
1627
1627
|
};
|
|
1628
|
-
function
|
|
1629
|
-
return u.map((
|
|
1628
|
+
function b(u = []) {
|
|
1629
|
+
return u.map((x) => y(x)).filter((x) => x);
|
|
1630
1630
|
}
|
|
1631
1631
|
return () => n(ge, te({
|
|
1632
1632
|
key: "Menu",
|
|
@@ -1642,7 +1642,7 @@ const et = (e) => {
|
|
|
1642
1642
|
default: () => [i.value]
|
|
1643
1643
|
});
|
|
1644
1644
|
}
|
|
1645
|
-
}),
|
|
1645
|
+
}), xn = new S("pro-layout-title-hide", {
|
|
1646
1646
|
"0%": { display: "none", opacity: 0 },
|
|
1647
1647
|
"80%": {
|
|
1648
1648
|
overflow: "hidden"
|
|
@@ -1651,9 +1651,9 @@ const et = (e) => {
|
|
|
1651
1651
|
display: "unset",
|
|
1652
1652
|
opacity: 1
|
|
1653
1653
|
}
|
|
1654
|
-
}),
|
|
1654
|
+
}), Bo = (e) => {
|
|
1655
1655
|
var o, i, l, s;
|
|
1656
|
-
const t = ot(e, "sider"), { layout: a } =
|
|
1656
|
+
const t = ot(e, "sider"), { layout: a } = ye(e);
|
|
1657
1657
|
return {
|
|
1658
1658
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1659
1659
|
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
@@ -1725,7 +1725,7 @@ const et = (e) => {
|
|
|
1725
1725
|
"&-footer": {
|
|
1726
1726
|
paddingBlockEnd: 16,
|
|
1727
1727
|
fontSize: e.fontSize,
|
|
1728
|
-
animationName:
|
|
1728
|
+
animationName: xn,
|
|
1729
1729
|
animationDuration: ".4s",
|
|
1730
1730
|
animationTimingFunction: "ease"
|
|
1731
1731
|
}
|
|
@@ -1745,7 +1745,7 @@ const et = (e) => {
|
|
|
1745
1745
|
};
|
|
1746
1746
|
}, Lo = (e) => {
|
|
1747
1747
|
var l;
|
|
1748
|
-
const t = `${e.antCls}-menu`, a = `${e.proComponentsCls}-menu-item`, { layout: o } =
|
|
1748
|
+
const t = `${e.antCls}-menu`, a = `${e.proComponentsCls}-menu-item`, { layout: o } = ye(e), i = (l = e == null ? void 0 : e.layout) == null ? void 0 : l.sider;
|
|
1749
1749
|
return {
|
|
1750
1750
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1751
1751
|
[`${e.proComponentsCls}-sider`]: {
|
|
@@ -1768,7 +1768,10 @@ const et = (e) => {
|
|
|
1768
1768
|
lineHeight: i == null ? void 0 : i.menuItemHeight
|
|
1769
1769
|
},
|
|
1770
1770
|
[`${a}-title:not(${a}-title-no-icon)`]: {
|
|
1771
|
-
fontWeight: o === "wide" ? 500 :
|
|
1771
|
+
fontWeight: o === "wide" ? 500 : "normal"
|
|
1772
|
+
},
|
|
1773
|
+
[`${t}-item-selected ${a}-title:not(${a}-title-no-icon)`]: {
|
|
1774
|
+
fontWeight: "normal"
|
|
1772
1775
|
},
|
|
1773
1776
|
[`${t}-item a`]: {
|
|
1774
1777
|
transition: "none"
|
|
@@ -1777,16 +1780,20 @@ const et = (e) => {
|
|
|
1777
1780
|
}
|
|
1778
1781
|
}
|
|
1779
1782
|
};
|
|
1780
|
-
}, Oo = (e) =>
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1783
|
+
}, Oo = (e) => {
|
|
1784
|
+
const { layout: t } = ye(e);
|
|
1785
|
+
return {
|
|
1786
|
+
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1787
|
+
[`${e.antCls}-menu`]: {
|
|
1788
|
+
[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]: {
|
|
1789
|
+
verticalAlign: "unset",
|
|
1790
|
+
lineHeight: 1,
|
|
1791
|
+
fontSize: t === "wide" ? e.fontSizeLG : e.fontSize
|
|
1792
|
+
}
|
|
1786
1793
|
}
|
|
1787
1794
|
}
|
|
1788
|
-
}
|
|
1789
|
-
}
|
|
1795
|
+
};
|
|
1796
|
+
}, Sn = (e, t) => e === !1 ? null : typeof e == "string" ? n("img", {
|
|
1790
1797
|
src: e,
|
|
1791
1798
|
alt: "logo",
|
|
1792
1799
|
style: t
|
|
@@ -1798,9 +1805,9 @@ const et = (e) => {
|
|
|
1798
1805
|
layout: i
|
|
1799
1806
|
} = e, l = e.logoContentRender;
|
|
1800
1807
|
if (l === !1) return null;
|
|
1801
|
-
const s =
|
|
1808
|
+
const s = Sn(t, a), r = o && n("h1", null, [o]);
|
|
1802
1809
|
return typeof l == "function" ? l(s, e.collapsed ? null : r, e) : l || n(J, null, [s || null, e.collapsed && (i === "side" || i === "simple") ? null : r]);
|
|
1803
|
-
},
|
|
1810
|
+
}, kt = /* @__PURE__ */ j({
|
|
1804
1811
|
name: "LogoContent",
|
|
1805
1812
|
props: {
|
|
1806
1813
|
...Ja,
|
|
@@ -1835,10 +1842,10 @@ const et = (e) => {
|
|
|
1835
1842
|
};
|
|
1836
1843
|
}
|
|
1837
1844
|
});
|
|
1838
|
-
|
|
1839
|
-
const
|
|
1845
|
+
kt.inheritAttrs = !1;
|
|
1846
|
+
const In = (e) => {
|
|
1840
1847
|
var i;
|
|
1841
|
-
const { theme: t, layout: a } =
|
|
1848
|
+
const { theme: t, layout: a } = ye(e), o = (i = e.layout) == null ? void 0 : i.sider;
|
|
1842
1849
|
return {
|
|
1843
1850
|
[`${e.componentCls}-logo`]: {
|
|
1844
1851
|
position: "relative",
|
|
@@ -1868,7 +1875,7 @@ const Sn = (e) => {
|
|
|
1868
1875
|
marginInlineEnd: 0,
|
|
1869
1876
|
marginInlineStart: 8,
|
|
1870
1877
|
color: t === "dark" ? e.colorWhite : o == null ? void 0 : o.colorTextMenuTitle,
|
|
1871
|
-
animationName:
|
|
1878
|
+
animationName: xn,
|
|
1872
1879
|
animationDuration: ".4s",
|
|
1873
1880
|
animationTimingFunction: "ease",
|
|
1874
1881
|
fontWeight: 600,
|
|
@@ -1966,15 +1973,15 @@ const Po = /* @__PURE__ */ j({
|
|
|
1966
1973
|
}
|
|
1967
1974
|
}, [n(To, null, null)]));
|
|
1968
1975
|
}
|
|
1969
|
-
}),
|
|
1970
|
-
var r,
|
|
1971
|
-
const l = ((r = o.meta) == null ? void 0 : r.order) || 0, s = ((
|
|
1976
|
+
}), wn = (e, t, a) => e.sort((o, i) => {
|
|
1977
|
+
var r, h;
|
|
1978
|
+
const l = ((r = o.meta) == null ? void 0 : r.order) || 0, s = ((h = i.meta) == null ? void 0 : h.order) || 0;
|
|
1972
1979
|
return l - s > 0 ? 1 : -1;
|
|
1973
1980
|
}).map((o, i) => {
|
|
1974
|
-
var l, s;
|
|
1975
|
-
return o.meta = o.meta || {}, o.meta.order = o.meta.order || i + 1, o.key = a != null && a.key ? `${a == null ? void 0 : a.key}-${i}` : `${i}`, a != null &&
|
|
1981
|
+
var l, s, r, h;
|
|
1982
|
+
return o.meta = o.meta || {}, o.meta.order = o.meta.order || i + 1, o.key = a != null && a.key ? `${a == null ? void 0 : a.key}-${i}` : `${i}`, (l = a == null ? void 0 : a.meta) != null && l.hidden && (o.meta.hidden = !0), (s = a == null ? void 0 : a.meta) != null && s.hideChildren && (o.meta.hidden = !0), (r = a == null ? void 0 : a.meta) != null && r.hideInMenu && (o.meta.hideInMenu = !0), (h = a == null ? void 0 : a.meta) != null && h.hideChildrenInMenu && (o.meta.hideInMenu = !0), o.path = o.path.replace("//", "/"), o.children && o.children.length > 0 && (o.children = wn(o.children, t, o)), t[`${o.path}`] = o, o;
|
|
1976
1983
|
});
|
|
1977
|
-
function
|
|
1984
|
+
function Rn(e) {
|
|
1978
1985
|
const { menuSelectKey: t } = (e == null ? void 0 : e.meta) || {};
|
|
1979
1986
|
return t || e.fullPath || e.path;
|
|
1980
1987
|
}
|
|
@@ -1982,7 +1989,7 @@ const No = (e) => {
|
|
|
1982
1989
|
const t = e.find((i) => {
|
|
1983
1990
|
var l;
|
|
1984
1991
|
return i.path === "/" && ((l = i.children) == null ? void 0 : l.length);
|
|
1985
|
-
}), a = {}, o =
|
|
1992
|
+
}), a = {}, o = wn((t == null ? void 0 : t.children) || [], a);
|
|
1986
1993
|
return {
|
|
1987
1994
|
menuData: o,
|
|
1988
1995
|
breadcrumb: a,
|
|
@@ -1993,11 +2000,12 @@ function zo(e) {
|
|
|
1993
2000
|
const t = /* @__PURE__ */ new Map(), a = [];
|
|
1994
2001
|
function o(l) {
|
|
1995
2002
|
return l.map((s) => {
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2003
|
+
var f, d;
|
|
2004
|
+
const r = s.path, h = s.name, g = t.has(h) && t.get(h) !== r;
|
|
2005
|
+
if ((f = s == null ? void 0 : s.meta) != null && f.hidden || !h || g)
|
|
2006
|
+
return (!h || g) && (a.some((y) => y.name === h && r === s.path) || a.push({ ...s })), null;
|
|
2007
|
+
if (t.set(h, r), s && (s != null && s.children))
|
|
2008
|
+
if ((d = s == null ? void 0 : s.meta) != null && d.hideChildren)
|
|
2001
2009
|
s.children = [];
|
|
2002
2010
|
else
|
|
2003
2011
|
return {
|
|
@@ -2011,23 +2019,26 @@ function zo(e) {
|
|
|
2011
2019
|
return a.length > 0 && console.warn("The menu contains duplicate names or name undefined: ", a), i;
|
|
2012
2020
|
}
|
|
2013
2021
|
function Do(e) {
|
|
2014
|
-
return e.map((t) =>
|
|
2022
|
+
return e.map((t) => {
|
|
2023
|
+
var a;
|
|
2024
|
+
return (a = t == null ? void 0 : t.meta) != null && a.hidden ? null : (t.redirect = t.redirect === void 0 ? $n(t.children || []) || void 0 : t.redirect, t.children && delete t.children, t);
|
|
2025
|
+
}).filter((t) => t);
|
|
2015
2026
|
}
|
|
2016
2027
|
function Ao(e, t) {
|
|
2017
2028
|
const a = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`, o = e.find((i) => i.path === a);
|
|
2018
2029
|
return t === void 0 ? [] : (o == null ? void 0 : o.children) || [];
|
|
2019
2030
|
}
|
|
2020
|
-
function
|
|
2031
|
+
function $n(e) {
|
|
2021
2032
|
var l, s;
|
|
2022
2033
|
const t = e == null ? void 0 : e.filter((r) => {
|
|
2023
|
-
var g;
|
|
2024
|
-
return !r.hidden && !((g = r.meta) != null && g.hideInMenu);
|
|
2034
|
+
var h, g;
|
|
2035
|
+
return !((h = r == null ? void 0 : r.meta) != null && h.hidden) && !((g = r.meta) != null && g.hideInMenu);
|
|
2025
2036
|
}), a = t[0];
|
|
2026
2037
|
let o = "";
|
|
2027
2038
|
const i = function(r) {
|
|
2028
|
-
var
|
|
2029
|
-
let
|
|
2030
|
-
return r != null && r.children && (r == null ? void 0 : r.children.length) > 0 ?
|
|
2039
|
+
var g;
|
|
2040
|
+
let h = "";
|
|
2041
|
+
return r != null && r.children && (r == null ? void 0 : r.children.length) > 0 ? h = i((g = r == null ? void 0 : r.children) == null ? void 0 : g[0]) : h = (r == null ? void 0 : r.redirect) || (r == null ? void 0 : r.path) || "", h;
|
|
2031
2042
|
};
|
|
2032
2043
|
if (t.length > 0 && (a != null && a.children) && ((l = a == null ? void 0 : a.children) == null ? void 0 : l.length) > 0)
|
|
2033
2044
|
o = i((s = a == null ? void 0 : a.children) == null ? void 0 : s[0]);
|
|
@@ -2037,7 +2048,7 @@ function Rn(e) {
|
|
|
2037
2048
|
}
|
|
2038
2049
|
return o;
|
|
2039
2050
|
}
|
|
2040
|
-
function
|
|
2051
|
+
function Mn(e, t) {
|
|
2041
2052
|
var a;
|
|
2042
2053
|
for (const o of e) {
|
|
2043
2054
|
if (o.key === t) {
|
|
@@ -2050,23 +2061,23 @@ function $n(e, t) {
|
|
|
2050
2061
|
return i.key;
|
|
2051
2062
|
}
|
|
2052
2063
|
if (o.children) {
|
|
2053
|
-
const i =
|
|
2064
|
+
const i = Mn(o.children, t);
|
|
2054
2065
|
if (i)
|
|
2055
2066
|
return i;
|
|
2056
2067
|
}
|
|
2057
2068
|
}
|
|
2058
2069
|
}
|
|
2059
2070
|
function Ho({ menuData: e, levelMenuData: t }, { path: a, name: o }) {
|
|
2060
|
-
var
|
|
2061
|
-
const i = t.find((
|
|
2062
|
-
let r = ((
|
|
2063
|
-
const
|
|
2064
|
-
if (r =
|
|
2065
|
-
const
|
|
2066
|
-
for (let
|
|
2067
|
-
|
|
2068
|
-
const
|
|
2069
|
-
return t.filter((
|
|
2071
|
+
var y, b, u, x;
|
|
2072
|
+
const i = t.find((v) => v.name === o), l = (i == null ? void 0 : i.key) || "", s = (y = i == null ? void 0 : i.meta) == null ? void 0 : y.hideInMenu;
|
|
2073
|
+
let r = ((b = t.find((v) => v.path === a)) == null ? void 0 : b.key) || "";
|
|
2074
|
+
const h = !r || s, g = l.split("-").slice(0, -1).join("-"), f = t.find((v) => v.key === g), d = Mn(e, g) || r;
|
|
2075
|
+
if (r = h ? (u = f == null ? void 0 : f.meta) != null && u.menuSelectKey && ((x = t.find((v) => v.path === Rn(f))) == null ? void 0 : x.key) || d : r, r) {
|
|
2076
|
+
const v = [], c = r.split("-");
|
|
2077
|
+
for (let m = 0; m < c.length; m += 1)
|
|
2078
|
+
v.push(Se(c).splice(0, m + 1).join("-"));
|
|
2079
|
+
const p = l === r || s ? [] : t.filter((m) => l === m.key);
|
|
2080
|
+
return t.filter((m) => v.some((w) => w === (m == null ? void 0 : m.key) || "")).concat(p);
|
|
2070
2081
|
}
|
|
2071
2082
|
return [];
|
|
2072
2083
|
}
|
|
@@ -2079,7 +2090,7 @@ function jo(e, t) {
|
|
|
2079
2090
|
} : null;
|
|
2080
2091
|
}).filter((a) => a !== null);
|
|
2081
2092
|
}
|
|
2082
|
-
const Eo = ["left", "right"], Ee = ["left", "right", "down", "up"], Ko = ["downBig", "upBig", "leftBig", "rightBig"], Wo = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Uo = ["downLeft", "upRight", "downRight", "upLeft"],
|
|
2093
|
+
const Eo = ["left", "right"], Ee = ["left", "right", "down", "up"], Ko = ["downBig", "upBig", "leftBig", "rightBig"], Wo = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Uo = ["downLeft", "upRight", "downRight", "upLeft"], Tt = {
|
|
2083
2094
|
preset: [
|
|
2084
2095
|
// 预设动画配置
|
|
2085
2096
|
{ name: "back", alias: "渐近", directions: Ee },
|
|
@@ -2108,8 +2119,8 @@ const Eo = ["left", "right"], Ee = ["left", "right", "down", "up"], Ko = ["downB
|
|
|
2108
2119
|
colorItemTextSelectedHorizontal: "colorTextMenuSelected"
|
|
2109
2120
|
};
|
|
2110
2121
|
function Bn({ type: e, token: t, dark: a, staticToken: o }) {
|
|
2111
|
-
var
|
|
2112
|
-
const i = (
|
|
2122
|
+
var h, g;
|
|
2123
|
+
const i = (h = t.layout) == null ? void 0 : h[e], l = it(e, t, ((g = t.layout) == null ? void 0 : g.key) || ""), s = Object.keys(ft).reduce((f, d) => (f[d] = i[ft[d]] || l[ft[d]], f), {}), r = Object.assign(o, Object.fromEntries(Object.entries(s).filter(([f, d]) => d !== void 0)));
|
|
2113
2124
|
return a && e === "header" && (r.colorActiveBarHeight = 0), r;
|
|
2114
2125
|
}
|
|
2115
2126
|
function _o(e) {
|
|
@@ -2124,12 +2135,12 @@ function Vo(e, t) {
|
|
|
2124
2135
|
const a = /* @__PURE__ */ new Set();
|
|
2125
2136
|
return e.filter((o) => a.has(o[t]) ? !1 : (a.add(o[t]), !0));
|
|
2126
2137
|
}
|
|
2127
|
-
function
|
|
2138
|
+
function Ut(e) {
|
|
2128
2139
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
2129
2140
|
}
|
|
2130
2141
|
const {
|
|
2131
2142
|
Sider: Go
|
|
2132
|
-
} = We,
|
|
2143
|
+
} = We, Ln = (e) => e ? n(Na, null, null) : n(za, null, null), _t = /* @__PURE__ */ j({
|
|
2133
2144
|
props: ce,
|
|
2134
2145
|
inheritAttrs: !1,
|
|
2135
2146
|
setup(e) {
|
|
@@ -2141,33 +2152,33 @@ const {
|
|
|
2141
2152
|
openKeys: l,
|
|
2142
2153
|
menuState: s,
|
|
2143
2154
|
contentFullScreen: r
|
|
2144
|
-
} = le(),
|
|
2145
|
-
token:
|
|
2155
|
+
} = le(), h = Lt(), {
|
|
2156
|
+
token: g
|
|
2146
2157
|
} = Oe(), {
|
|
2147
|
-
theme:
|
|
2148
|
-
layout:
|
|
2149
|
-
isMobile:
|
|
2150
|
-
menuLoading:
|
|
2158
|
+
theme: f,
|
|
2159
|
+
layout: d,
|
|
2160
|
+
isMobile: y,
|
|
2161
|
+
menuLoading: b,
|
|
2151
2162
|
breakpoint: u,
|
|
2152
|
-
fixSiderbar:
|
|
2153
|
-
fixedHeader:
|
|
2163
|
+
fixSiderbar: x,
|
|
2164
|
+
fixedHeader: v,
|
|
2154
2165
|
collapsed: c,
|
|
2155
|
-
siderWidth:
|
|
2156
|
-
collapsedWidth:
|
|
2166
|
+
siderWidth: p,
|
|
2167
|
+
collapsedWidth: m,
|
|
2157
2168
|
menuContentRender: w,
|
|
2158
2169
|
menuFooterRender: z,
|
|
2159
2170
|
collapsedButtonRender: $
|
|
2160
2171
|
} = tt(e), I = t({
|
|
2161
2172
|
suffixCls: "sider",
|
|
2162
2173
|
isPor: !0
|
|
2163
|
-
}),
|
|
2164
|
-
wrapSSR:
|
|
2165
|
-
hashId:
|
|
2166
|
-
} = fe("ProLayoutSiderMenu", [Oo, Lo,
|
|
2174
|
+
}), M = R(() => e.layout === "wide"), k = R(() => e.layout === "mix" && !e.isMobile && e.splitMenus), O = R(() => d.value === "side" || d.value === "simple"), T = R(() => e.isMobile || M.value ? !1 : x.value), X = R(() => (e.layout === "mix" || M.value) && "light" || s.value.theme), {
|
|
2175
|
+
wrapSSR: E,
|
|
2176
|
+
hashId: K
|
|
2177
|
+
} = fe("ProLayoutSiderMenu", [Oo, Lo, Bo, In, (H) => {
|
|
2167
2178
|
var Ie, we;
|
|
2168
2179
|
const Y = (Ie = H == null ? void 0 : H.layout) == null ? void 0 : Ie.sider, V = it("sider", H, (we = H.layout) == null ? void 0 : we.key), {
|
|
2169
2180
|
dark: xe
|
|
2170
|
-
} =
|
|
2181
|
+
} = ye(H), Ne = ot(H, "sider");
|
|
2171
2182
|
return {
|
|
2172
2183
|
[`${H.proComponentsCls}-basic-layout`]: {
|
|
2173
2184
|
[H.componentCls]: {
|
|
@@ -2179,13 +2190,13 @@ const {
|
|
|
2179
2190
|
}
|
|
2180
2191
|
}
|
|
2181
2192
|
};
|
|
2182
|
-
}], I), he = R(() =>
|
|
2193
|
+
}], I), he = R(() => d.value === "top" ? [] : i.value), de = R(() => e.collapsed ? m.value : p.value), L = R(() => Q([K.value, I, y.value ? "shadow" : null, `${I}-${f.value}`, T.value ? `${I}-fixed` : null])), F = R(() => $.value !== !1 ? $.value || Ln : !1), P = yt(() => e.layout === "simple" || !e.appLogoListRender ? null : n(pn, null, {
|
|
2183
2194
|
default: () => {
|
|
2184
2195
|
var H;
|
|
2185
2196
|
return [typeof e.appLogoListRender == "function" ? (H = e.appLogoListRender) == null ? void 0 : H.call(e) : e.appLogoListRender];
|
|
2186
2197
|
}
|
|
2187
2198
|
}), [() => e.appLogoListRender]);
|
|
2188
|
-
function
|
|
2199
|
+
function W() {
|
|
2189
2200
|
var H;
|
|
2190
2201
|
e.onCollapse && ((H = e.onCollapse) == null || H.call(e, !c.value));
|
|
2191
2202
|
}
|
|
@@ -2193,12 +2204,12 @@ const {
|
|
|
2193
2204
|
var Y;
|
|
2194
2205
|
if ($.value === !1) return null;
|
|
2195
2206
|
const H = n(Po, {
|
|
2196
|
-
isMobile:
|
|
2207
|
+
isMobile: y.value,
|
|
2197
2208
|
collapsed: c.value,
|
|
2198
|
-
onClick: () =>
|
|
2209
|
+
onClick: () => W()
|
|
2199
2210
|
}, null);
|
|
2200
2211
|
return $.value ? (Y = $.value) == null ? void 0 : Y.call($, c.value, H) : H;
|
|
2201
|
-
}, [() => e.collapsedButtonRender, () => e.isMobile, () => e.collapsed]),
|
|
2212
|
+
}, [() => e.collapsedButtonRender, () => e.isMobile, () => e.collapsed]), be = (H) => {
|
|
2202
2213
|
var Y;
|
|
2203
2214
|
if (e.onSelect) {
|
|
2204
2215
|
const V = H.selectedKeys;
|
|
@@ -2212,14 +2223,14 @@ const {
|
|
|
2212
2223
|
return () => {
|
|
2213
2224
|
var we;
|
|
2214
2225
|
let H;
|
|
2215
|
-
const Y = O.value && n(
|
|
2216
|
-
hashId:
|
|
2226
|
+
const Y = O.value && n(kt, te({
|
|
2227
|
+
hashId: K.value,
|
|
2217
2228
|
baseClassName: I
|
|
2218
2229
|
}, oe(e, Object.keys(rt))), {
|
|
2219
2230
|
default: () => [P.value]
|
|
2220
|
-
}), V = e.menuHeaderRender && ((we = e.menuHeaderRender) == null ? void 0 : we.call(e, e)), xe = e.menuLinksRender, Ne = e.siderActionsRender, Ie = n(
|
|
2221
|
-
class: `${I}-menu ${
|
|
2222
|
-
theme:
|
|
2231
|
+
}), V = e.menuHeaderRender && ((we = e.menuHeaderRender) == null ? void 0 : we.call(e, e)), xe = e.menuLinksRender, Ne = e.siderActionsRender, Ie = n(Cn, {
|
|
2232
|
+
class: `${I}-menu ${K.value}`,
|
|
2233
|
+
theme: X.value,
|
|
2223
2234
|
mode: "inline",
|
|
2224
2235
|
menuData: k.value ? o.value : he.value,
|
|
2225
2236
|
iconfontUrl: e.iconfontUrl,
|
|
@@ -2231,17 +2242,17 @@ const {
|
|
|
2231
2242
|
style: {
|
|
2232
2243
|
width: "100%"
|
|
2233
2244
|
},
|
|
2234
|
-
onOpenKeys: (
|
|
2235
|
-
var
|
|
2236
|
-
return e.onOpenKeys && ((
|
|
2245
|
+
onOpenKeys: (C) => {
|
|
2246
|
+
var B;
|
|
2247
|
+
return e.onOpenKeys && ((B = e.onOpenKeys) == null ? void 0 : B.call(e, C));
|
|
2237
2248
|
},
|
|
2238
|
-
onSelect:
|
|
2249
|
+
onSelect: be
|
|
2239
2250
|
}, null);
|
|
2240
|
-
return k.value && se(o.value).length === 0 && e.suppressSiderWhenMenuEmpty || he.value.length === 0 && e.suppressSiderWhenMenuEmpty ? null :
|
|
2251
|
+
return k.value && se(o.value).length === 0 && e.suppressSiderWhenMenuEmpty || he.value.length === 0 && e.suppressSiderWhenMenuEmpty ? null : E(n(Rt, {
|
|
2241
2252
|
theme: {
|
|
2242
2253
|
components: {
|
|
2243
2254
|
Menu: Bn({
|
|
2244
|
-
token: (
|
|
2255
|
+
token: (g == null ? void 0 : g.value) || {},
|
|
2245
2256
|
staticToken: {
|
|
2246
2257
|
radiusItem: 4,
|
|
2247
2258
|
colorActiveBarWidth: 0,
|
|
@@ -2269,69 +2280,69 @@ const {
|
|
|
2269
2280
|
class: L.value,
|
|
2270
2281
|
style: {
|
|
2271
2282
|
zIndex: T.value ? 101 : void 0,
|
|
2272
|
-
paddingTop: T.value &&
|
|
2283
|
+
paddingTop: T.value && v.value && d.value === "mix" ? `${e.headerHeight}px` : 0,
|
|
2273
2284
|
top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
|
|
2274
2285
|
height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
|
|
2275
2286
|
},
|
|
2276
|
-
theme:
|
|
2287
|
+
theme: X.value,
|
|
2277
2288
|
breakpoint: u.value || void 0,
|
|
2278
2289
|
collapsed: c.value,
|
|
2279
|
-
width:
|
|
2280
|
-
collapsedWidth:
|
|
2290
|
+
width: p.value,
|
|
2291
|
+
collapsedWidth: m.value
|
|
2281
2292
|
}, {
|
|
2282
2293
|
default: () => {
|
|
2283
|
-
var
|
|
2284
|
-
return [
|
|
2285
|
-
class: ["gx-pro-sider-loading",
|
|
2286
|
-
}, [n(
|
|
2287
|
-
spinning:
|
|
2288
|
-
indicator: (
|
|
2294
|
+
var C, B, N, G;
|
|
2295
|
+
return [b.value && n("div", {
|
|
2296
|
+
class: ["gx-pro-sider-loading", K.value]
|
|
2297
|
+
}, [n(It, {
|
|
2298
|
+
spinning: b.value,
|
|
2299
|
+
indicator: (C = h == null ? void 0 : h.indicator) == null ? void 0 : C.value
|
|
2289
2300
|
}, null)]), Y || null, Fe(e.menuHeaderRender) && n("div", {
|
|
2290
|
-
class: Q([
|
|
2301
|
+
class: Q([K.value, `${I}-extra`, !Y && `${I}-extra-no-logo`])
|
|
2291
2302
|
}, [V]), n("div", {
|
|
2292
2303
|
style: {
|
|
2293
2304
|
flex: "1 1 0%",
|
|
2294
2305
|
overflow: "hidden auto"
|
|
2295
2306
|
}
|
|
2296
|
-
}, [w.value && ((
|
|
2297
|
-
class: `${I}-links ${
|
|
2307
|
+
}, [w.value && ((B = w.value) == null ? void 0 : B.call(w, e, Ie)) || Ie]), e.layout !== "wide" && n(J, null, [Fe(xe) && Mt(xe) && xe.length > 0 && n("div", {
|
|
2308
|
+
class: `${I}-links ${K.value}`
|
|
2298
2309
|
}, [n(ge, {
|
|
2299
|
-
theme:
|
|
2310
|
+
theme: X.value,
|
|
2300
2311
|
inlineIndent: 16,
|
|
2301
|
-
class: `${I}-link-menu ${
|
|
2312
|
+
class: `${I}-link-menu ${K.value}`,
|
|
2302
2313
|
selectedKeys: [],
|
|
2303
2314
|
openKeys: [],
|
|
2304
2315
|
mode: "inline"
|
|
2305
|
-
},
|
|
2306
|
-
class: `${I}-link ${
|
|
2316
|
+
}, Ut(H = (xe || []).map((D, A) => n(ge.Item, {
|
|
2317
|
+
class: `${I}-link ${K.value}`,
|
|
2307
2318
|
key: A
|
|
2308
|
-
},
|
|
2319
|
+
}, Ut(D) ? D : {
|
|
2309
2320
|
default: () => [D]
|
|
2310
2321
|
}))) ? H : {
|
|
2311
2322
|
default: () => [H]
|
|
2312
|
-
})]),
|
|
2313
|
-
class: Q(`${I}-actions`,
|
|
2323
|
+
})]), y.value ? null : n("div", {
|
|
2324
|
+
class: Q(`${I}-actions`, K.value)
|
|
2314
2325
|
}, [Ne || n(J, null, [n("div", {
|
|
2315
|
-
class: Q(`${I}-actions-item`,
|
|
2316
|
-
onClick: () =>
|
|
2326
|
+
class: Q(`${I}-actions-item`, K.value),
|
|
2327
|
+
onClick: () => W()
|
|
2317
2328
|
}, [F.value && ((N = F.value) == null ? void 0 : N.call(F, c.value))])])])]), z.value && n("div", {
|
|
2318
|
-
class: `${I}-footer ${
|
|
2319
|
-
}, [(G = z.value) == null ? void 0 : G.call(z, e)]), r.value ||
|
|
2329
|
+
class: `${I}-footer ${K.value}`
|
|
2330
|
+
}, [(G = z.value) == null ? void 0 : G.call(z, e)]), r.value || d.value === "wide" ? null : ee.value];
|
|
2320
2331
|
}
|
|
2321
2332
|
})]
|
|
2322
2333
|
}));
|
|
2323
2334
|
};
|
|
2324
2335
|
}
|
|
2325
|
-
}),
|
|
2336
|
+
}), On = {
|
|
2326
2337
|
...ce,
|
|
2327
|
-
...
|
|
2338
|
+
...fn
|
|
2328
2339
|
}, Yo = ["mix", "top", "wide"], qo = (e, t) => e === !1 ? null : e ? e(t, null) : t, Qo = /* @__PURE__ */ j({
|
|
2329
|
-
props:
|
|
2340
|
+
props: On,
|
|
2330
2341
|
setup(e) {
|
|
2331
2342
|
return () => e.rightContentRender && typeof e.rightContentRender == "function" ? e.rightContentRender(e) : n(J, null, null);
|
|
2332
2343
|
}
|
|
2333
2344
|
}), Zo = /* @__PURE__ */ j({
|
|
2334
|
-
props:
|
|
2345
|
+
props: On,
|
|
2335
2346
|
inheritAttrs: !1,
|
|
2336
2347
|
setup(e, {
|
|
2337
2348
|
emit: t
|
|
@@ -2343,29 +2354,29 @@ const {
|
|
|
2343
2354
|
openKeys: l,
|
|
2344
2355
|
selectedKeys: s,
|
|
2345
2356
|
menuState: r
|
|
2346
|
-
} = le(),
|
|
2357
|
+
} = le(), h = i({
|
|
2347
2358
|
suffixCls: "global-header",
|
|
2348
2359
|
isPor: !0
|
|
2349
2360
|
}), {
|
|
2350
|
-
wrapSSR:
|
|
2351
|
-
hashId:
|
|
2352
|
-
} = fe("ProGlobalHeader", [xo,
|
|
2353
|
-
[`${
|
|
2354
|
-
[`${
|
|
2355
|
-
[`${
|
|
2356
|
-
})),
|
|
2361
|
+
wrapSSR: g,
|
|
2362
|
+
hashId: f
|
|
2363
|
+
} = fe("ProGlobalHeader", [xo, In], h), d = R(() => ({
|
|
2364
|
+
[`${f.value}`]: !0,
|
|
2365
|
+
[`${h}`]: !0,
|
|
2366
|
+
[`${h}-${e.layout}`]: !0
|
|
2367
|
+
})), y = (v, c, p) => {
|
|
2357
2368
|
var $;
|
|
2358
|
-
const
|
|
2359
|
-
if (e.onSelect &&
|
|
2360
|
-
const I = ($ = e.menuData.find((
|
|
2361
|
-
e.onSelect(z && I ? w.filter((
|
|
2369
|
+
const m = a.currentRoute.value, w = m.matched.concat(), z = e.layout === "mix";
|
|
2370
|
+
if (e.onSelect && v === "select") {
|
|
2371
|
+
const I = ($ = e.menuData.find((M) => M.path === p)) == null ? void 0 : $.redirect;
|
|
2372
|
+
e.onSelect(z && I ? w.filter((M) => M.name !== "index").map((M) => M.path) : c);
|
|
2362
2373
|
}
|
|
2363
|
-
e.onOpenKeys &&
|
|
2364
|
-
},
|
|
2374
|
+
e.onOpenKeys && v === "openKeys" && e.onOpenKeys(z ? w.filter((I) => I.path !== m.path).map((I) => I.path) : c);
|
|
2375
|
+
}, b = () => {
|
|
2365
2376
|
t("collapse", !e.collapsed);
|
|
2366
|
-
}, u = R(() => e.collapsedButtonRender ||
|
|
2377
|
+
}, u = R(() => e.collapsedButtonRender || Ln), x = () => {
|
|
2367
2378
|
var c;
|
|
2368
|
-
const
|
|
2379
|
+
const v = e.headerContentRender || e.headerContentRender === !1 ? n("div", {
|
|
2369
2380
|
style: {
|
|
2370
2381
|
flex: 1
|
|
2371
2382
|
}
|
|
@@ -2373,8 +2384,8 @@ const {
|
|
|
2373
2384
|
style: {
|
|
2374
2385
|
flex: 1
|
|
2375
2386
|
},
|
|
2376
|
-
class: [`${
|
|
2377
|
-
}, [((c = e.menuData) == null ? void 0 : c.length) > 0 && n(
|
|
2387
|
+
class: [`${h}-menu`, f.value]
|
|
2388
|
+
}, [((c = e.menuData) == null ? void 0 : c.length) > 0 && n(Rt, {
|
|
2378
2389
|
theme: {
|
|
2379
2390
|
components: {
|
|
2380
2391
|
Layout: {
|
|
@@ -2396,7 +2407,7 @@ const {
|
|
|
2396
2407
|
}
|
|
2397
2408
|
}
|
|
2398
2409
|
}, {
|
|
2399
|
-
default: () => [n(
|
|
2410
|
+
default: () => [n(Cn, {
|
|
2400
2411
|
theme: e.theme,
|
|
2401
2412
|
mode: e.mode,
|
|
2402
2413
|
collapsed: e.collapsed,
|
|
@@ -2408,47 +2419,47 @@ const {
|
|
|
2408
2419
|
subMenuItemRender: e.subMenuItemRender,
|
|
2409
2420
|
class: {
|
|
2410
2421
|
"top-nav-menu": e.mode === "horizontal",
|
|
2411
|
-
[`${
|
|
2422
|
+
[`${f.value}`]: !0
|
|
2412
2423
|
},
|
|
2413
|
-
onSelect: (
|
|
2414
|
-
onOpenKeys: (
|
|
2424
|
+
onSelect: (p) => y("select", p.selectedKeys, p.key),
|
|
2425
|
+
onOpenKeys: (p) => y("openKeys", p)
|
|
2415
2426
|
}, null)]
|
|
2416
2427
|
})]);
|
|
2417
|
-
return n(J, null, [
|
|
2428
|
+
return n(J, null, [v, e.layout !== "simple" && n(Qo, te(e, {
|
|
2418
2429
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
2419
2430
|
rightContentRender: e.rightContentRender
|
|
2420
2431
|
}), null)]);
|
|
2421
2432
|
};
|
|
2422
2433
|
return () => {
|
|
2423
|
-
const
|
|
2434
|
+
const v = n("span", {
|
|
2424
2435
|
key: "logo",
|
|
2425
2436
|
onClick: () => {
|
|
2426
2437
|
var c;
|
|
2427
2438
|
return (c = e.onLogoClick) == null ? void 0 : c.call(e);
|
|
2428
2439
|
},
|
|
2429
|
-
class: [`${
|
|
2430
|
-
}, [n("a", null, [
|
|
2431
|
-
return
|
|
2432
|
-
class:
|
|
2433
|
-
}, [e.isMobile ? n(J, null, [qo(e.logoContentRender,
|
|
2434
|
-
class: `${
|
|
2435
|
-
onClick:
|
|
2436
|
-
}, [se(u)(e.collapsed)]),
|
|
2437
|
-
class: `${
|
|
2440
|
+
class: [`${h}-logo`, e.isMobile && "mobile", f.value]
|
|
2441
|
+
}, [n("a", null, [Sn(e.logo, e.logoStyle)])]);
|
|
2442
|
+
return g(n("div", {
|
|
2443
|
+
class: d.value
|
|
2444
|
+
}, [e.isMobile ? n(J, null, [qo(e.logoContentRender, v), e.isMobile && se(u) && n("span", {
|
|
2445
|
+
class: `${h}-collapsed-button ${f.value}`,
|
|
2446
|
+
onClick: b
|
|
2447
|
+
}, [se(u)(e.collapsed)]), x()]) : Yo.includes(e.layout) ? n("div", {
|
|
2448
|
+
class: `${h}-main ${f.value}`,
|
|
2438
2449
|
style: {
|
|
2439
2450
|
width: Ae(e.headerMainWidth)
|
|
2440
2451
|
}
|
|
2441
2452
|
}, [n("div", {
|
|
2442
|
-
class: `${
|
|
2443
|
-
}, [e.layout !== "wide" && e.appLogoListRender && n(
|
|
2453
|
+
class: `${h}-main-left ${f.value}`
|
|
2454
|
+
}, [e.layout !== "wide" && e.appLogoListRender && n(pn, null, {
|
|
2444
2455
|
default: () => {
|
|
2445
2456
|
var c;
|
|
2446
2457
|
return [typeof e.appLogoListRender == "function" ? (c = e.appLogoListRender) == null ? void 0 : c.call(e) : e.appLogoListRender];
|
|
2447
2458
|
}
|
|
2448
|
-
}), n(
|
|
2449
|
-
hashId:
|
|
2450
|
-
baseClassName:
|
|
2451
|
-
}, e), null)]),
|
|
2459
|
+
}), n(kt, te({
|
|
2460
|
+
hashId: f.value,
|
|
2461
|
+
baseClassName: h
|
|
2462
|
+
}, e), null)]), x()]) : x()]));
|
|
2452
2463
|
};
|
|
2453
2464
|
}
|
|
2454
2465
|
});
|
|
@@ -2456,10 +2467,10 @@ function Jo(e) {
|
|
|
2456
2467
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
2457
2468
|
}
|
|
2458
2469
|
const {
|
|
2459
|
-
Header:
|
|
2460
|
-
} = We,
|
|
2470
|
+
Header: Xt
|
|
2471
|
+
} = We, Vt = /* @__PURE__ */ j({
|
|
2461
2472
|
inheritAttrs: !1,
|
|
2462
|
-
props:
|
|
2473
|
+
props: hn,
|
|
2463
2474
|
setup(e) {
|
|
2464
2475
|
const {
|
|
2465
2476
|
isMobile: t,
|
|
@@ -2471,30 +2482,30 @@ const {
|
|
|
2471
2482
|
dark: s
|
|
2472
2483
|
} = Oe(), {
|
|
2473
2484
|
getPrefixCls: r,
|
|
2474
|
-
menuData:
|
|
2475
|
-
contentFullScreen:
|
|
2476
|
-
menuState:
|
|
2477
|
-
headerHeight:
|
|
2478
|
-
} = le(),
|
|
2485
|
+
menuData: h,
|
|
2486
|
+
contentFullScreen: g,
|
|
2487
|
+
menuState: f,
|
|
2488
|
+
headerHeight: d
|
|
2489
|
+
} = le(), y = r({
|
|
2479
2490
|
suffixCls: "header",
|
|
2480
2491
|
isPor: !0
|
|
2481
|
-
}),
|
|
2492
|
+
}), b = r({
|
|
2482
2493
|
suffixCls: "fixed-header",
|
|
2483
2494
|
isPor: !0
|
|
2484
|
-
}), u = R(() => o.value === "wide"),
|
|
2485
|
-
wrapSSR:
|
|
2486
|
-
hashId:
|
|
2495
|
+
}), u = R(() => o.value === "wide"), x = R(() => a.value), v = R(() => o.value === "side" || o.value === "simple"), c = R(() => v.value && "light" || f.value.theme), {
|
|
2496
|
+
wrapSSR: p,
|
|
2497
|
+
hashId: m
|
|
2487
2498
|
} = Pe("ProLayoutHeader", (O) => {
|
|
2488
|
-
var
|
|
2489
|
-
const T = (
|
|
2499
|
+
var K, he;
|
|
2500
|
+
const T = (K = O.layout) == null ? void 0 : K.header, X = it("header", O, (he = O.layout) == null ? void 0 : he.key), E = ot(O, "header");
|
|
2490
2501
|
return {
|
|
2491
2502
|
[`${O.proComponentsCls}-basic-layout`]: {
|
|
2492
|
-
[`${O.antCls}-layout-header${O.componentCls}${O.componentCls}-${se(
|
|
2493
|
-
color:
|
|
2494
|
-
backgroundColor: (T == null ? void 0 : T.colorBgMenu) || (
|
|
2503
|
+
[`${O.antCls}-layout-header${O.componentCls}${O.componentCls}-${se(f.value.key)}`]: {
|
|
2504
|
+
color: E ? O.colorWhite : O.colorText,
|
|
2505
|
+
backgroundColor: (T == null ? void 0 : T.colorBgMenu) || (X == null ? void 0 : X.colorBgMenu),
|
|
2495
2506
|
boxShadow: s.value ? "#0d0d0da6 0 2px 8px" : "",
|
|
2496
2507
|
[`${O.proComponentsCls}-global-header-collapsed-button`]: {
|
|
2497
|
-
color:
|
|
2508
|
+
color: E ? O.colorWhite : void 0
|
|
2498
2509
|
}
|
|
2499
2510
|
},
|
|
2500
2511
|
[`${O.antCls}-layout-header${O.componentCls}`]: {
|
|
@@ -2535,12 +2546,12 @@ const {
|
|
|
2535
2546
|
}
|
|
2536
2547
|
}
|
|
2537
2548
|
};
|
|
2538
|
-
},
|
|
2539
|
-
[`${
|
|
2540
|
-
[`${
|
|
2541
|
-
[`${
|
|
2542
|
-
[`${
|
|
2543
|
-
})), z = R(() =>
|
|
2549
|
+
}, y), w = R(() => ({
|
|
2550
|
+
[`${m.value}`]: !0,
|
|
2551
|
+
[`${y}`]: !0,
|
|
2552
|
+
[`${y}-${f.value.key}`]: !0,
|
|
2553
|
+
[`${b}`]: x.value
|
|
2554
|
+
})), z = R(() => x.value && !t.value), $ = R(() => l.value && o.value === "mix" ? Do(Se(h.value)) : o.value === "top" ? h.value : []), I = R(() => v.value && z.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), M = R(() => x.value ? 0 : void 0), k = () => {
|
|
2544
2555
|
const O = n(Zo, te(e, {
|
|
2545
2556
|
mode: "horizontal",
|
|
2546
2557
|
theme: c.value,
|
|
@@ -2552,29 +2563,29 @@ const {
|
|
|
2552
2563
|
};
|
|
2553
2564
|
return () => {
|
|
2554
2565
|
let O;
|
|
2555
|
-
return
|
|
2566
|
+
return p(n(J, null, [x.value && !u.value && n(Xt, {
|
|
2556
2567
|
style: {
|
|
2557
|
-
height: `${
|
|
2558
|
-
lineHeight: `${
|
|
2568
|
+
height: `${d.value}px`,
|
|
2569
|
+
lineHeight: `${d.value}px`,
|
|
2559
2570
|
background: "transparent",
|
|
2560
|
-
marginTop:
|
|
2571
|
+
marginTop: g.value ? `-${d.value}px` : void 0
|
|
2561
2572
|
}
|
|
2562
|
-
}, null), n(
|
|
2573
|
+
}, null), n(Xt, {
|
|
2563
2574
|
class: w.value,
|
|
2564
2575
|
style: {
|
|
2565
|
-
height: `${
|
|
2566
|
-
lineHeight: `${
|
|
2576
|
+
height: `${d.value}px`,
|
|
2577
|
+
lineHeight: `${d.value}px`,
|
|
2567
2578
|
width: I.value,
|
|
2568
|
-
zIndex:
|
|
2569
|
-
right:
|
|
2570
|
-
marginTop:
|
|
2579
|
+
zIndex: v.value ? 100 : 101,
|
|
2580
|
+
right: M.value,
|
|
2581
|
+
marginTop: g.value ? `-${d.value}px` : void 0
|
|
2571
2582
|
}
|
|
2572
2583
|
}, Jo(O = k()) ? O : {
|
|
2573
2584
|
default: () => [O]
|
|
2574
2585
|
})]));
|
|
2575
2586
|
};
|
|
2576
2587
|
}
|
|
2577
|
-
}),
|
|
2588
|
+
}), Gt = /* @__PURE__ */ j({
|
|
2578
2589
|
name: "SiderMenuWrapper",
|
|
2579
2590
|
inheritAttrs: !1,
|
|
2580
2591
|
props: {
|
|
@@ -2604,13 +2615,13 @@ const {
|
|
|
2604
2615
|
flexDirection: "row"
|
|
2605
2616
|
}
|
|
2606
2617
|
}, {
|
|
2607
|
-
default: () => [n(
|
|
2618
|
+
default: () => [n(_t, te(e, {
|
|
2608
2619
|
collapsed: e.isMobile ? !1 : e.collapsed
|
|
2609
2620
|
}), null)]
|
|
2610
|
-
}) : n(
|
|
2621
|
+
}) : n(_t, e, null)]);
|
|
2611
2622
|
}
|
|
2612
2623
|
});
|
|
2613
|
-
function
|
|
2624
|
+
function Pt(e, { change: t }) {
|
|
2614
2625
|
const { system: a } = ea(), [o, i, l] = De("system", {
|
|
2615
2626
|
value: R(() => Xe(e.value) ? e.value : "system"),
|
|
2616
2627
|
onChange: (r) => {
|
|
@@ -2626,7 +2637,7 @@ function Tt(e, { change: t }) {
|
|
|
2626
2637
|
function Xe(e) {
|
|
2627
2638
|
return ae(e) || e === "system";
|
|
2628
2639
|
}
|
|
2629
|
-
function
|
|
2640
|
+
function Fn({ event: e, isDark: t, value: a, toggle: o }) {
|
|
2630
2641
|
if (!// @ts-expect-error
|
|
2631
2642
|
(document.startViewTransition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches) || !e || e && !e.clientX) {
|
|
2632
2643
|
o == null || o(ae(a) || a === "system" ? a : !(t != null && t.value));
|
|
@@ -2636,12 +2647,12 @@ function On({ event: e, isDark: t, value: a, toggle: o }) {
|
|
|
2636
2647
|
document.startViewTransition(async () => {
|
|
2637
2648
|
o == null || o(ae(a) || a === "system" ? a : !(t != null && t.value)), await xt();
|
|
2638
2649
|
}).ready.then(() => {
|
|
2639
|
-
const
|
|
2650
|
+
const g = [
|
|
2640
2651
|
`circle(0px at ${l}px ${s}px)`,
|
|
2641
2652
|
`circle(${r}px at ${l}px ${s}px)`
|
|
2642
2653
|
];
|
|
2643
2654
|
document.documentElement.animate({
|
|
2644
|
-
clipPath: t != null && t.value ? [...
|
|
2655
|
+
clipPath: t != null && t.value ? [...g].reverse() : g
|
|
2645
2656
|
}, {
|
|
2646
2657
|
duration: 450,
|
|
2647
2658
|
easing: "ease-in",
|
|
@@ -2672,45 +2683,45 @@ html[data-theme="dark"]::view-transition-new(root) {
|
|
|
2672
2683
|
window._iconfont_svg_string_4694134 = '<svg><symbol id="icon-fixed" viewBox="0 0 1024 1024"><path d="M540.736 900.608l-208.64-208.64v-0.064h-0.064l-208.64-208.64a304 304 0 0 1 262.656-28.8 41.152 41.152 0 0 0 38.976-6.336l259.328-202.752a40.96 40.96 0 0 0 14.72-41.344 143.68 143.68 0 0 1 13.696-100.8l195.648 195.648a144.448 144.448 0 0 1-100.8 13.696 41.088 41.088 0 0 0-41.408 14.72L568.704 579.776a41.088 41.088 0 0 0-5.44 41.28 305.344 305.344 0 0 1-22.528 279.552z m-528.64 53.312a41.024 41.024 0 0 0 57.984 58.048l233.024-233.024 213.312 213.376a40.96 40.96 0 0 0 28.992 11.968h1.6a41.28 41.28 0 0 0 29.568-14.272 388.224 388.224 0 0 0 71.104-378.048L815.872 396.8a224.512 224.512 0 0 0 183.68-64.832 41.024 41.024 0 0 0 0-57.984L737.536 11.968a41.024 41.024 0 0 0-57.984 0 224.768 224.768 0 0 0-64.832 183.68L391.616 370.176A385.856 385.856 0 0 0 34.048 447.488a40.96 40.96 0 0 0-2.304 60.16l213.376 213.312-233.024 232.96z m0 0" ></path></symbol><symbol id="icon-unpinned" viewBox="0 0 1024 1024"><path d="M1000.445782 331.509251a40.959412 40.959412 0 0 0 0-57.89271L738.842298 12.013057a40.959412 40.959412 0 0 0-57.89271 0 224.414127 224.414127 0 0 0-64.729929 183.390816L393.466912 369.593198A385.248511 385.248511 0 0 0 36.461864 446.783478a40.895513 40.895513 0 0 0-2.300372 60.065285l213.040062 212.976163-232.657129 232.657129a40.959412 40.959412 0 1 0 57.892711 57.89271l232.657128-232.657128 80.513041 80.513041c2.172574-14.377329 5.495335-28.435161 9.840483-41.9818a275.661317 275.661317 0 0 1-4.664644-68.627783l-56.742524-56.742524v-0.063899h-0.0639l-208.311518-208.311519a303.521385 303.521385 0 0 1 262.242476-28.754658 41.087211 41.087211 0 0 0 38.914637-6.326024l258.919716-202.432789a40.895513 40.895513 0 0 0 14.696824-41.278908 143.453791 143.453791 0 0 1 13.674438-100.641302L909.453266 298.409446a144.220582 144.220582 0 0 1-100.641301 13.674437 41.023311 41.023311 0 0 0-41.342808 14.696825L637.753702 492.663132a274.063836 274.063836 0 0 1 97.126843 8.626397l82.110522-105.050349a224.286328 224.286328 0 0 0 183.454715-64.729929z" ></path><path d="M653.089519 511.193911a239.366549 239.366549 0 1 0 0 478.733098 239.366549 239.366549 0 0 0 0-478.733098z m-174.381022 239.366549c0-28.818557 7.028916-56.039633 19.489267-80.001847l260.581097 218.599296a173.486434 173.486434 0 0 1-105.689342 35.783574 174.572721 174.572721 0 0 1-174.381022-174.381023z m307.674835 112.270963l1.469682-1.72528a35.144581 35.144581 0 0 0-1.469682 1.72528z m21.086749-31.374527L546.569488 612.602003a173.486434 173.486434 0 0 1 106.520031-36.422566 174.572721 174.572721 0 0 1 174.381023 174.381023 172.527945 172.527945 0 0 1-20.000461 80.896436z" ></path></symbol><symbol id="icon-anhei" viewBox="0 0 1024 1024"><path d="M398.97 64.12c-0.02 0.02-0.04 0.04-0.05 0.06 0.02 0 0.03-0.01 0.05-0.01v-0.05zM421.78 613.56C273.43 463.81 263.53 225.73 398.92 64.18 166.66 117.34 10.47 335.32 34.82 572.34c33.7 248.91 251.89 430.88 502.8 419.35a501.84 501.84 0 0 0 192.95-43.45 484.233 484.233 0 0 0 159.29-112.16A467.675 467.675 0 0 0 989 672.7c-179.36 116.54-415.76 91.89-567.22-59.14z" ></path><path d="M660.42 278.77a62.323 62.323 0 0 1 37.49 36.01c11.2 28.47 20.09 57.8 26.6 87.7 3.61 15.85 6.86 31.91 10.64 49.36 1.91-9.36 3.35-17.23 5.05-25a727.852 727.852 0 0 1 30.42-108.71 66.904 66.904 0 0 1 43.4-41.11c43.9-14.5 88.9-25.42 134.55-32.66h0.21c0.85-2.71-2.13-1.33-2.82-2.45-18.46-3.78-37.18-7.07-55.68-11.22a495.51 495.51 0 0 1-85.63-25.53 54.54 54.54 0 0 1-29.57-28.14 310.576 310.576 0 0 1-14.68-38.45 983.926 983.926 0 0 1-25.05-103.98l-5 23.67a731.899 731.899 0 0 1-30.74 109.29 68.137 68.137 0 0 1-43.66 41.75 767.933 767.933 0 0 1-101.58 26.97c-11.43 2.39-23.03 4.52-34.57 6.8 11.12 2.87 22.29 4.74 32.92 6.97a693.502 693.502 0 0 1 107.7 28.73zM771.31 516.98a456.433 456.433 0 0 1-60.63-15 35.124 35.124 0 0 1-23.72-22.55 318.968 318.968 0 0 1-9.89-32.71c-2.29-9.52-4.42-18.99-6.54-28.5a44.044 44.044 0 0 0-3.41 10.64 272.599 272.599 0 0 1-17.18 56.91 26.15 26.15 0 0 1-13.67 13.24c-11.1 4.72-22.62 8.38-34.41 10.96l-35.74 7.87c0.9 1.76 2.23 1.76 3.3 1.76 21.98 3.54 43.6 9.1 64.57 16.59 7.77 2.77 14.02 8.7 17.17 16.33 4.91 11.82 8.84 24.02 11.75 36.48 2.45 9.73 4.58 19.57 6.86 29.41a595.34 595.34 0 0 1 17.5-62.06 34.357 34.357 0 0 1 22.71-21.75 434.977 434.977 0 0 1 62.76-15.27l-0.16-0.1c0.91-1.51-0.53-1.72-1.27-2.25z" ></path></symbol><symbol id="icon-liangse" viewBox="0 0 1024 1024"><path d="M510.805433 812.646946A302.737439 302.737439 0 0 1 209.091909 510.76277 302.737439 302.737439 0 0 1 510.805433 209.049246a299.751021 299.751021 0 0 1 301.884176 301.79885 299.751021 299.751021 0 0 1-301.884176 301.884176z m0 0A302.737439 302.737439 0 0 1 209.091909 510.76277 302.737439 302.737439 0 0 1 510.805433 209.049246a299.751021 299.751021 0 0 1 301.884176 301.79885 299.751021 299.751021 0 0 1-301.884176 301.884176z m-383.114741-299.495042c0-2.389134 0-2.389134 0 0 0-16.211982 2.389134-32.509291 2.389135-48.806599H37.15957A39.932672 39.932672 0 0 0 0.042663 501.547538v16.211982c0 20.904925 18.601117 39.506041 37.116907 39.506041h92.920257c-2.303808-13.993501-2.303808-30.205483-2.303808-44.113657z m83.619699-239.169403a400.179985 400.179985 0 0 1 62.714774-62.714773l-32.509291-32.423965c-11.604366-16.297309-37.116907-16.297309-53.414216 0l-9.300558 9.215232a35.325056 35.325056 0 0 0 0 53.414216l32.509291 32.423964z m601.379218 0l30.205483-34.813098c16.211982-11.604366 16.211982-37.202233 0-53.414216L831.120073 174.065495c-11.604366-16.211982-37.116907-16.211982-53.328889 0l-32.509291 32.423964c23.208733 20.990251 46.417465 41.809849 67.32239 67.407716zM510.805433 127.733356c16.211982 0 30.205483 2.303808 46.502791 2.303808V37.116907A39.932672 39.932672 0 0 0 520.105991 0h-16.211982c-20.904925 0-39.506041 18.601117-39.506041 37.116907v95.224065c16.211982-2.303808 30.205483-4.607616 46.417465-4.607616z m471.342055 336.611949H891.701692c2.303808 16.211982 2.303808 30.205483 2.303808 46.417465 0 16.211982 0 30.205483-2.303808 44.113657h90.531122a40.700608 40.700608 0 0 0 39.506041-39.420715v-16.211982c0-16.297309-18.601117-34.898425-39.506041-34.898425zM211.310391 750.017499l-30.205483 32.50929c-16.211982 11.604366-16.211982 37.116907 0 53.414216l11.689692 11.604366c11.604366 16.211982 37.116907 16.211982 53.32889 0l32.509291-32.509291a298.385801 298.385801 0 0 1-67.32239-65.018581z m603.683026-4.607616c-18.601117 25.512541-41.809849 48.721273-67.407716 67.322389l32.594617 32.423965c11.604366 16.297309 37.116907 16.297309 53.414216 0l13.908174-13.908174c16.211982-11.604366 16.211982-37.116907 0-53.32889l-32.509291-32.50929z m-304.187984 148.552953c-13.908174 0-30.120157 0-44.113657-2.303808v92.834931c0 20.904925 16.211982 39.506041 37.202233 39.506041h16.211982c18.601117 0 37.202233-18.601117 37.202233-39.506041V891.659028c-16.211982 2.303808-30.205483 2.303808-46.502791 2.303808z" ></path></symbol></svg>', ((e) => {
|
|
2673
2684
|
var t = (a = (a = document.getElementsByTagName("script"))[a.length - 1]).getAttribute("data-injectcss"), a = a.getAttribute("data-disable-injectsvg");
|
|
2674
2685
|
if (!a) {
|
|
2675
|
-
var o, i, l, s, r,
|
|
2676
|
-
|
|
2686
|
+
var o, i, l, s, r, h = function(d, y) {
|
|
2687
|
+
y.parentNode.insertBefore(d, y);
|
|
2677
2688
|
};
|
|
2678
2689
|
if (t && !e.__iconfont__svg__cssinject__) {
|
|
2679
2690
|
e.__iconfont__svg__cssinject__ = !0;
|
|
2680
2691
|
try {
|
|
2681
2692
|
document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
|
|
2682
|
-
} catch (
|
|
2683
|
-
console && console.log(
|
|
2693
|
+
} catch (d) {
|
|
2694
|
+
console && console.log(d);
|
|
2684
2695
|
}
|
|
2685
2696
|
}
|
|
2686
2697
|
o = function() {
|
|
2687
|
-
var
|
|
2688
|
-
|
|
2698
|
+
var d, y = document.createElement("div");
|
|
2699
|
+
y.innerHTML = e._iconfont_svg_string_4694134, (y = y.getElementsByTagName("svg")[0]) && (y.setAttribute("aria-hidden", "true"), y.style.position = "absolute", y.style.width = 0, y.style.height = 0, y.style.overflow = "hidden", y = y, (d = document.body).firstChild ? h(y, d.firstChild) : d.appendChild(y));
|
|
2689
2700
|
}, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(o, 0) : (i = function() {
|
|
2690
2701
|
document.removeEventListener("DOMContentLoaded", i, !1), o();
|
|
2691
|
-
}, document.addEventListener("DOMContentLoaded", i, !1)) : document.attachEvent && (l = o, s = e.document, r = !1,
|
|
2692
|
-
s.readyState == "complete" && (s.onreadystatechange = null,
|
|
2702
|
+
}, document.addEventListener("DOMContentLoaded", i, !1)) : document.attachEvent && (l = o, s = e.document, r = !1, f(), s.onreadystatechange = function() {
|
|
2703
|
+
s.readyState == "complete" && (s.onreadystatechange = null, g());
|
|
2693
2704
|
});
|
|
2694
2705
|
}
|
|
2695
|
-
function
|
|
2706
|
+
function g() {
|
|
2696
2707
|
r || (r = !0, l());
|
|
2697
2708
|
}
|
|
2698
|
-
function
|
|
2709
|
+
function f() {
|
|
2699
2710
|
try {
|
|
2700
2711
|
s.documentElement.doScroll("left");
|
|
2701
2712
|
} catch {
|
|
2702
|
-
return void setTimeout(
|
|
2713
|
+
return void setTimeout(f, 50);
|
|
2703
2714
|
}
|
|
2704
|
-
|
|
2715
|
+
g();
|
|
2705
2716
|
}
|
|
2706
2717
|
})(window);
|
|
2707
2718
|
const ti = /* @__PURE__ */ j({
|
|
2708
2719
|
name: "BaseProLayout",
|
|
2709
2720
|
inheritAttrs: !1,
|
|
2710
2721
|
components: {
|
|
2711
|
-
GlobalHeader:
|
|
2712
|
-
GlobalFooter:
|
|
2713
|
-
SiderMenuWrapper:
|
|
2722
|
+
GlobalHeader: Vt,
|
|
2723
|
+
GlobalFooter: Wt,
|
|
2724
|
+
SiderMenuWrapper: Gt
|
|
2714
2725
|
},
|
|
2715
2726
|
props: {
|
|
2716
2727
|
...He,
|
|
@@ -2730,45 +2741,45 @@ const ti = /* @__PURE__ */ j({
|
|
|
2730
2741
|
const {
|
|
2731
2742
|
wrapSSR: o,
|
|
2732
2743
|
hashId: i
|
|
2733
|
-
} = fe("ProLayout", [oo, io], a), l =
|
|
2744
|
+
} = fe("ProLayout", [oo, io], a), l = on(), {
|
|
2734
2745
|
token: s,
|
|
2735
2746
|
dark: r
|
|
2736
|
-
} = Oe(),
|
|
2747
|
+
} = Oe(), h = me(bt().uuid(10)), g = me(!1), f = me(!1), d = me(!1), y = pe({
|
|
2737
2748
|
position: "relative"
|
|
2738
|
-
}),
|
|
2739
|
-
var
|
|
2740
|
-
return (
|
|
2749
|
+
}), b = R(() => {
|
|
2750
|
+
var M;
|
|
2751
|
+
return (M = s == null ? void 0 : s.value) == null ? void 0 : M.colorPrimary;
|
|
2741
2752
|
});
|
|
2742
|
-
|
|
2743
|
-
const
|
|
2744
|
-
|
|
2753
|
+
Wn(() => {
|
|
2754
|
+
const M = document.querySelector("html");
|
|
2755
|
+
M && (b.value && M.style.setProperty("--gx-primary-color", b.value), M.setAttribute("data-theme", r.value ? "dark" : "light"));
|
|
2745
2756
|
});
|
|
2746
|
-
const u = R(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1),
|
|
2747
|
-
var
|
|
2748
|
-
return e.levelMenuData && ((
|
|
2749
|
-
}),
|
|
2750
|
-
key:
|
|
2757
|
+
const u = R(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), x = R(() => {
|
|
2758
|
+
var M;
|
|
2759
|
+
return e.levelMenuData && ((M = e.levelMenuData) != null && M.length) ? e.levelMenuData : Bt(e.menuData);
|
|
2760
|
+
}), v = R(() => e.layout === "wide"), c = R(() => ({
|
|
2761
|
+
key: ln(r.value, e.theme),
|
|
2751
2762
|
theme: r.value ? "dark" : e.theme
|
|
2752
|
-
})),
|
|
2763
|
+
})), p = R(() => (l.value === "sm" || l.value === "xs") && !e.disableMobile && !v.value), m = R(() => ({
|
|
2753
2764
|
...e.breadcrumb || {},
|
|
2754
2765
|
itemRender: re(t, e, "pageContainerProps:breadcrumbRender")
|
|
2755
|
-
})), w = R(() => u.value && e.selectedKeys ? Ao(e.menuData, e.selectedKeys[0]) : []), z = R(() => Ue(e.headerHeight) ? e.headerHeight : Z.headerHeight), $ = yt(() =>
|
|
2756
|
-
ne([() => e.layout, () => e.theme], ([
|
|
2757
|
-
(
|
|
2758
|
-
}), ne(() =>
|
|
2759
|
-
if (
|
|
2766
|
+
})), w = R(() => u.value && e.selectedKeys ? Ao(e.menuData, e.selectedKeys[0]) : []), z = R(() => Ue(e.headerHeight) ? e.headerHeight : Z.headerHeight), $ = yt(() => d.value ? 0 : Ue(e.siderWidth) ? e.siderWidth : e.layout === "mix" ? 215 : e.layout === "wide" ? 208 : 256, [() => e.layout, () => e.siderWidth, () => d.value]);
|
|
2767
|
+
ne([() => e.layout, () => e.theme], ([M]) => {
|
|
2768
|
+
(M === "wide" || M === "simple") && (d.value = !1), h.value = bt().uuid(10);
|
|
2769
|
+
}), ne(() => v.value, (M) => {
|
|
2770
|
+
if (M) {
|
|
2760
2771
|
const k = document.querySelector('meta[name="viewport"]');
|
|
2761
2772
|
k && (k.content = "");
|
|
2762
2773
|
}
|
|
2763
2774
|
}, {
|
|
2764
2775
|
immediate: !0
|
|
2765
2776
|
}), ne([() => e.contentStyle, () => e.isChildrenLayout], () => {
|
|
2766
|
-
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (
|
|
2777
|
+
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (y.minHeight = 0);
|
|
2767
2778
|
}, {
|
|
2768
2779
|
immediate: !0,
|
|
2769
2780
|
deep: !0
|
|
2770
2781
|
});
|
|
2771
|
-
const I = (
|
|
2782
|
+
const I = (M, k) => M.headerRender === !1 || M.pure ? null : n(Vt, te($e(M, "headerHeight"), {
|
|
2772
2783
|
headerHeight: z.value,
|
|
2773
2784
|
matchMenuKeys: k || []
|
|
2774
2785
|
}), null);
|
|
@@ -2776,39 +2787,39 @@ const ti = /* @__PURE__ */ j({
|
|
|
2776
2787
|
...oe(tt(e), to),
|
|
2777
2788
|
getPrefixCls: ie,
|
|
2778
2789
|
menuState: c,
|
|
2779
|
-
lockOpen:
|
|
2780
|
-
settingsOpen:
|
|
2781
|
-
contentFullScreen:
|
|
2782
|
-
hasContentWide:
|
|
2783
|
-
isMobile:
|
|
2790
|
+
lockOpen: g,
|
|
2791
|
+
settingsOpen: f,
|
|
2792
|
+
contentFullScreen: d,
|
|
2793
|
+
hasContentWide: v,
|
|
2794
|
+
isMobile: p,
|
|
2784
2795
|
siderWidth: $,
|
|
2785
2796
|
headerHeight: z,
|
|
2786
|
-
breadcrumb:
|
|
2797
|
+
breadcrumb: m,
|
|
2787
2798
|
flatMenuData: w,
|
|
2788
2799
|
hasSide: u,
|
|
2789
|
-
levelMenuData:
|
|
2800
|
+
levelMenuData: x,
|
|
2790
2801
|
onDarkChange: e.onDarkChange,
|
|
2791
|
-
pageHeaderRender: R(() =>
|
|
2802
|
+
pageHeaderRender: R(() => Be(t, e, "pageContainerProps:pageHeaderRender"))
|
|
2792
2803
|
}), () => {
|
|
2793
2804
|
var Y;
|
|
2794
|
-
const
|
|
2805
|
+
const M = da(vn, t, e, {
|
|
2795
2806
|
render: !0
|
|
2796
|
-
}), k = re(t, e, "collapsedButtonRender"), O = re(t, e, "footerRender"), T = re(t, e, "headerRender"),
|
|
2807
|
+
}), k = re(t, e, "collapsedButtonRender"), O = re(t, e, "footerRender"), T = re(t, e, "headerRender"), X = re(t, e, "headerContentRender"), E = re(t, e, "rightContentRender"), K = re(t, e, "tabsRouteItemRender"), he = re(t, e, "menuItemRender"), de = re(t, e, "menuHeaderRender"), L = re(t, e, "logoContentRender"), F = re(t, e, "menuFooterRender"), P = re(t, e, "subMenuItemRender"), W = re(t, e, "menuContentRender"), ee = I({
|
|
2797
2808
|
...e,
|
|
2798
|
-
...oe(
|
|
2809
|
+
...oe(M, bn),
|
|
2799
2810
|
menuItemRender: he,
|
|
2800
2811
|
subMenuItemRender: P,
|
|
2801
2812
|
hasSiderMenu: u.value,
|
|
2802
|
-
isMobile:
|
|
2803
|
-
rightContentRender:
|
|
2813
|
+
isMobile: p.value,
|
|
2814
|
+
rightContentRender: E,
|
|
2804
2815
|
logoContentRender: L,
|
|
2805
|
-
headerContentRender:
|
|
2816
|
+
headerContentRender: X,
|
|
2806
2817
|
headerRender: T
|
|
2807
|
-
}, e.matchMenuKeys),
|
|
2818
|
+
}, e.matchMenuKeys), be = v.value ? {
|
|
2808
2819
|
minHeight: "835px",
|
|
2809
2820
|
marginInlineStart: $.value === 0 ? 0 : void 0
|
|
2810
|
-
} : {}, H = O === !1 ? null : O ? typeof O == "function" ? O(e) : O : n(
|
|
2811
|
-
copyright:
|
|
2821
|
+
} : {}, H = O === !1 ? null : O ? typeof O == "function" ? O(e) : O : n(Wt, {
|
|
2822
|
+
copyright: M.copyrightRender,
|
|
2812
2823
|
links: e.footerLinks
|
|
2813
2824
|
}, null);
|
|
2814
2825
|
return o(n(J, null, [e.pure ? (Y = t.default) == null ? void 0 : Y.call(t) : n("div", {
|
|
@@ -2817,37 +2828,37 @@ const ti = /* @__PURE__ */ j({
|
|
|
2817
2828
|
[`${a}`]: !0,
|
|
2818
2829
|
[`${a}-${e.layout}`]: !0
|
|
2819
2830
|
}),
|
|
2820
|
-
style:
|
|
2831
|
+
style: v.value ? {
|
|
2821
2832
|
minWidth: Ae(e.wideWidth),
|
|
2822
2833
|
...e.style
|
|
2823
2834
|
} : e.style
|
|
2824
2835
|
}, [n(We, {
|
|
2825
|
-
style:
|
|
2836
|
+
style: v.value ? {
|
|
2826
2837
|
width: Ae(e.wideWidth),
|
|
2827
2838
|
paddingTop: `${z.value + 20}px`,
|
|
2828
|
-
margin:
|
|
2839
|
+
margin: v.value ? "0 auto" : void 0
|
|
2829
2840
|
} : void 0
|
|
2830
2841
|
}, {
|
|
2831
|
-
default: () => [$.value > 0 && n(
|
|
2842
|
+
default: () => [$.value > 0 && n(Gt, te(e, {
|
|
2832
2843
|
siderWidth: $.value,
|
|
2833
|
-
isMobile:
|
|
2844
|
+
isMobile: p.value,
|
|
2834
2845
|
menuHeaderRender: de,
|
|
2835
2846
|
logoContentRender: L,
|
|
2836
2847
|
menuFooterRender: F,
|
|
2837
|
-
menuContentRender:
|
|
2848
|
+
menuContentRender: W,
|
|
2838
2849
|
collapsedButtonRender: k
|
|
2839
|
-
}, oe(
|
|
2840
|
-
style:
|
|
2850
|
+
}, oe(M, yn)), null), n(We, {
|
|
2851
|
+
style: y
|
|
2841
2852
|
}, {
|
|
2842
|
-
default: () => [e.layout !== "simple" && z.value > 0 && ee, n(
|
|
2853
|
+
default: () => [e.layout !== "simple" && z.value > 0 && ee, n(Ft, te(oe(e, ro), {
|
|
2843
2854
|
hashId: i.value,
|
|
2844
2855
|
prefixCls: a,
|
|
2845
2856
|
siderWidth: $.value,
|
|
2846
2857
|
style: {
|
|
2847
2858
|
...e.contentStyle,
|
|
2848
|
-
...
|
|
2859
|
+
...be
|
|
2849
2860
|
},
|
|
2850
|
-
itemRender:
|
|
2861
|
+
itemRender: K
|
|
2851
2862
|
}), {
|
|
2852
2863
|
default: () => {
|
|
2853
2864
|
var V;
|
|
@@ -2855,7 +2866,7 @@ const ti = /* @__PURE__ */ j({
|
|
|
2855
2866
|
}
|
|
2856
2867
|
}), e.layout !== "wide" && H]
|
|
2857
2868
|
})]
|
|
2858
|
-
}),
|
|
2869
|
+
}), M.pageLockRender, e.layout === "wide" && H])]));
|
|
2859
2870
|
};
|
|
2860
2871
|
}
|
|
2861
2872
|
}), ts = /* @__PURE__ */ j({
|
|
@@ -2876,35 +2887,35 @@ const ti = /* @__PURE__ */ j({
|
|
|
2876
2887
|
isDark: i,
|
|
2877
2888
|
innerDark: l,
|
|
2878
2889
|
toggleMode: s
|
|
2879
|
-
} =
|
|
2880
|
-
change: (
|
|
2881
|
-
var
|
|
2882
|
-
(
|
|
2890
|
+
} = Pt(R(() => e.dark), {
|
|
2891
|
+
change: (y) => {
|
|
2892
|
+
var b, u;
|
|
2893
|
+
(b = e.onDarkChange) == null || b.call(e, y), (u = e == null ? void 0 : e["onUpdate:dark"]) == null || u.call(e, y);
|
|
2883
2894
|
}
|
|
2884
2895
|
}), r = R(() => {
|
|
2885
|
-
var
|
|
2886
|
-
let
|
|
2887
|
-
return (u = (
|
|
2896
|
+
var b, u;
|
|
2897
|
+
let y = e.token || {};
|
|
2898
|
+
return (u = (b = y.layout) == null ? void 0 : b.header) != null && u.heightLayoutHeader || (y = ve(y, {
|
|
2888
2899
|
layout: {
|
|
2889
2900
|
header: {
|
|
2890
2901
|
heightLayoutHeader: e.headerHeight
|
|
2891
2902
|
}
|
|
2892
2903
|
}
|
|
2893
|
-
})),
|
|
2904
|
+
})), ve(y, {
|
|
2894
2905
|
layout: {
|
|
2895
|
-
key: `${
|
|
2906
|
+
key: `${ln(i.value, e.theme)}:${e.layout}`
|
|
2896
2907
|
}
|
|
2897
2908
|
});
|
|
2898
|
-
}),
|
|
2899
|
-
a("update:collapsed",
|
|
2900
|
-
},
|
|
2901
|
-
a("update:open-keys",
|
|
2902
|
-
},
|
|
2903
|
-
a("update:selected-keys",
|
|
2904
|
-
},
|
|
2905
|
-
a("update:tabs",
|
|
2909
|
+
}), h = (y) => {
|
|
2910
|
+
a("update:collapsed", y), a("collapse", y);
|
|
2911
|
+
}, g = (y) => {
|
|
2912
|
+
a("update:open-keys", y), a("openKeys", y);
|
|
2913
|
+
}, f = (y) => {
|
|
2914
|
+
a("update:selected-keys", y), a("select", y);
|
|
2915
|
+
}, d = (y) => {
|
|
2916
|
+
a("update:tabs", y), a("tabsChange", y);
|
|
2906
2917
|
};
|
|
2907
|
-
return () => n(
|
|
2918
|
+
return () => n(Rt, {
|
|
2908
2919
|
theme: e.primaryColor ? {
|
|
2909
2920
|
token: {
|
|
2910
2921
|
colorPrimary: e.primaryColor
|
|
@@ -2919,24 +2930,24 @@ const ti = /* @__PURE__ */ j({
|
|
|
2919
2930
|
style: o.style
|
|
2920
2931
|
}, $e(e, ["onSelect", "onOpenKeys", "onCollapse", "onTabsChange", "onDarkChange", "dark"]), {
|
|
2921
2932
|
dark: l.value,
|
|
2922
|
-
onSelect:
|
|
2923
|
-
onOpenKeys:
|
|
2924
|
-
onCollapse:
|
|
2925
|
-
onTabsChange:
|
|
2933
|
+
onSelect: f,
|
|
2934
|
+
onOpenKeys: g,
|
|
2935
|
+
onCollapse: h,
|
|
2936
|
+
onTabsChange: d,
|
|
2926
2937
|
onDarkChange: s
|
|
2927
2938
|
}), t)]
|
|
2928
2939
|
})]
|
|
2929
2940
|
});
|
|
2930
2941
|
}
|
|
2931
|
-
}),
|
|
2942
|
+
}), Nt = {
|
|
2932
2943
|
dataSource: {
|
|
2933
2944
|
type: Array,
|
|
2934
2945
|
default: () => []
|
|
2935
2946
|
},
|
|
2936
2947
|
historyKey: String
|
|
2937
|
-
},
|
|
2938
|
-
...
|
|
2939
|
-
...
|
|
2948
|
+
}, kn = () => ({
|
|
2949
|
+
...Ot,
|
|
2950
|
+
...Nt,
|
|
2940
2951
|
actions: {
|
|
2941
2952
|
type: Object,
|
|
2942
2953
|
default: () => ({
|
|
@@ -2982,10 +2993,10 @@ const ti = /* @__PURE__ */ j({
|
|
|
2982
2993
|
onLockOpenChange: Function,
|
|
2983
2994
|
onSettingsOpenChange: Function,
|
|
2984
2995
|
"onUpdate:settingsOpen": Function
|
|
2985
|
-
}), ni =
|
|
2996
|
+
}), ni = kn(), Tn = {
|
|
2986
2997
|
hashId: String,
|
|
2987
2998
|
className: String
|
|
2988
|
-
},
|
|
2999
|
+
}, Pn = {
|
|
2989
3000
|
open: {
|
|
2990
3001
|
type: Boolean,
|
|
2991
3002
|
default: void 0
|
|
@@ -2995,14 +3006,14 @@ const ti = /* @__PURE__ */ j({
|
|
|
2995
3006
|
cryptoFn: Function,
|
|
2996
3007
|
...oe(ni, ["name", "avatar"])
|
|
2997
3008
|
}, ai = {
|
|
2998
|
-
...
|
|
3009
|
+
...Pn,
|
|
2999
3010
|
shortsKey: {
|
|
3000
3011
|
type: Object,
|
|
3001
3012
|
default: () => ({
|
|
3002
3013
|
disabeld: !1
|
|
3003
3014
|
})
|
|
3004
3015
|
}
|
|
3005
|
-
}, oi = new
|
|
3016
|
+
}, oi = new S("fadeIn", {
|
|
3006
3017
|
from: {
|
|
3007
3018
|
opacity: 0
|
|
3008
3019
|
},
|
|
@@ -3113,9 +3124,9 @@ const ti = /* @__PURE__ */ j({
|
|
|
3113
3124
|
}
|
|
3114
3125
|
});
|
|
3115
3126
|
function li(e) {
|
|
3116
|
-
const t =
|
|
3127
|
+
const t = pe({
|
|
3117
3128
|
password: ""
|
|
3118
|
-
}), { validate: a, resetFields: o, validateInfos: i } = va(t,
|
|
3129
|
+
}), { validate: a, resetFields: o, validateInfos: i } = va(t, pe({
|
|
3119
3130
|
password: [
|
|
3120
3131
|
{
|
|
3121
3132
|
validator: (l, s) => (e && s ? e == null ? void 0 : e(s) : s) ? Promise.resolve() : Promise.reject(e && s ? "密码错误" : "请输入锁屏密码")
|
|
@@ -3124,9 +3135,9 @@ function li(e) {
|
|
|
3124
3135
|
}));
|
|
3125
3136
|
return { formState: t, validate: a, resetFields: o, validateInfos: i };
|
|
3126
3137
|
}
|
|
3127
|
-
const
|
|
3138
|
+
const Nn = /* @__PURE__ */ j({
|
|
3128
3139
|
props: {
|
|
3129
|
-
...
|
|
3140
|
+
...Tn,
|
|
3130
3141
|
name: String,
|
|
3131
3142
|
avatar: String,
|
|
3132
3143
|
avatarSize: {
|
|
@@ -3146,17 +3157,17 @@ const Pn = /* @__PURE__ */ j({
|
|
|
3146
3157
|
validate: i,
|
|
3147
3158
|
validateInfos: l,
|
|
3148
3159
|
resetFields: s
|
|
3149
|
-
} = li(e.validator), r = (
|
|
3150
|
-
Object.assign(o,
|
|
3151
|
-
},
|
|
3152
|
-
const
|
|
3153
|
-
return Q(
|
|
3154
|
-
},
|
|
3160
|
+
} = li(e.validator), r = (f) => {
|
|
3161
|
+
Object.assign(o, f);
|
|
3162
|
+
}, h = (f = "", d) => {
|
|
3163
|
+
const y = f ? `${e.className}-${f}` : e.className;
|
|
3164
|
+
return Q(y, e.hashId, "");
|
|
3165
|
+
}, g = () => {
|
|
3155
3166
|
i().then(() => {
|
|
3156
|
-
var
|
|
3157
|
-
(
|
|
3158
|
-
}).catch((
|
|
3159
|
-
console.log(
|
|
3167
|
+
var f;
|
|
3168
|
+
(f = e.onSubmit) == null || f.call(e, o);
|
|
3169
|
+
}).catch((f) => {
|
|
3170
|
+
console.log(f);
|
|
3160
3171
|
});
|
|
3161
3172
|
};
|
|
3162
3173
|
return t({
|
|
@@ -3164,41 +3175,41 @@ const Pn = /* @__PURE__ */ j({
|
|
|
3164
3175
|
resetFields: s,
|
|
3165
3176
|
merageFormState: r
|
|
3166
3177
|
}), () => {
|
|
3167
|
-
var
|
|
3178
|
+
var f;
|
|
3168
3179
|
return n("div", {
|
|
3169
|
-
class:
|
|
3180
|
+
class: h("user-form")
|
|
3170
3181
|
}, [n("div", {
|
|
3171
|
-
class:
|
|
3172
|
-
}, [n(
|
|
3182
|
+
class: h("user-info")
|
|
3183
|
+
}, [n(en, {
|
|
3173
3184
|
size: e.avatarSize,
|
|
3174
|
-
icon: n(
|
|
3185
|
+
icon: n(cn, null, null),
|
|
3175
3186
|
src: e.avatar
|
|
3176
3187
|
}, null), e.name && n("div", {
|
|
3177
|
-
class:
|
|
3178
|
-
}, [e.name])]), n(
|
|
3179
|
-
default: () => [n(
|
|
3180
|
-
default: () => [n(
|
|
3188
|
+
class: h("user-name")
|
|
3189
|
+
}, [e.name])]), n(Dt, null, {
|
|
3190
|
+
default: () => [n(Dt.Item, l.password, {
|
|
3191
|
+
default: () => [n(tn.Password, {
|
|
3181
3192
|
value: o.password,
|
|
3182
3193
|
placeholder: "请输入锁屏密码",
|
|
3183
|
-
onChange: (
|
|
3194
|
+
onChange: (d) => o.password = d.target.value
|
|
3184
3195
|
}, null)]
|
|
3185
3196
|
})]
|
|
3186
3197
|
}), n(Ze, {
|
|
3187
3198
|
block: !0,
|
|
3188
3199
|
type: "primary",
|
|
3189
|
-
onClick: () =>
|
|
3200
|
+
onClick: () => g(),
|
|
3190
3201
|
style: {
|
|
3191
3202
|
marginBlockStart: "24px"
|
|
3192
3203
|
}
|
|
3193
3204
|
}, {
|
|
3194
3205
|
default: () => [e.submitText]
|
|
3195
|
-
}), (
|
|
3206
|
+
}), (f = a.default) == null ? void 0 : f.call(a)]);
|
|
3196
3207
|
};
|
|
3197
3208
|
}
|
|
3198
3209
|
});
|
|
3199
3210
|
Re.locale("zh-cn");
|
|
3200
3211
|
function ri() {
|
|
3201
|
-
const e =
|
|
3212
|
+
const e = pe({
|
|
3202
3213
|
hh: "",
|
|
3203
3214
|
mm: "",
|
|
3204
3215
|
ss: "",
|
|
@@ -3214,31 +3225,31 @@ function ri() {
|
|
|
3214
3225
|
const si = /* @__PURE__ */ j({
|
|
3215
3226
|
name: "PageLock",
|
|
3216
3227
|
props: {
|
|
3217
|
-
...kn,
|
|
3218
3228
|
...Tn,
|
|
3229
|
+
...Pn,
|
|
3219
3230
|
password: String
|
|
3220
3231
|
},
|
|
3221
3232
|
setup(e) {
|
|
3222
3233
|
const [t, a] = De(!1, {
|
|
3223
3234
|
value: R(() => ae(e.open) ? e.open : !1),
|
|
3224
3235
|
onChange: e.onOpenChange
|
|
3225
|
-
}), [o, i] =
|
|
3226
|
-
const
|
|
3227
|
-
return Q(
|
|
3236
|
+
}), [o, i] = Ce(!1), l = ri(), s = (r = "", h) => {
|
|
3237
|
+
const g = r ? `${e.className}-popup-${r}` : `${e.className}-popup`;
|
|
3238
|
+
return Q(g, e.hashId, h || "");
|
|
3228
3239
|
};
|
|
3229
3240
|
return () => t.value ? n("div", {
|
|
3230
3241
|
class: s()
|
|
3231
3242
|
}, [o.value ? n("div", {
|
|
3232
3243
|
class: s("form")
|
|
3233
|
-
}, [n(
|
|
3244
|
+
}, [n(Nn, {
|
|
3234
3245
|
avatarSize: 70,
|
|
3235
3246
|
submitText: "进入系统",
|
|
3236
3247
|
avatar: e.avatar,
|
|
3237
3248
|
hashId: e.hashId,
|
|
3238
3249
|
className: e.className,
|
|
3239
3250
|
validator: (r) => {
|
|
3240
|
-
var
|
|
3241
|
-
return ((
|
|
3251
|
+
var h;
|
|
3252
|
+
return ((h = e.cryptoFn) == null ? void 0 : h.call(e, r)) === e.password;
|
|
3242
3253
|
},
|
|
3243
3254
|
onSubmit: () => a(!1)
|
|
3244
3255
|
}, {
|
|
@@ -3250,7 +3261,7 @@ const si = /* @__PURE__ */ j({
|
|
|
3250
3261
|
block: !0,
|
|
3251
3262
|
onClick: () => i(!1)
|
|
3252
3263
|
}, {
|
|
3253
|
-
default: () => [
|
|
3264
|
+
default: () => [_("返回")]
|
|
3254
3265
|
})]
|
|
3255
3266
|
}), n("div", {
|
|
3256
3267
|
class: s("form-time")
|
|
@@ -3258,22 +3269,22 @@ const si = /* @__PURE__ */ j({
|
|
|
3258
3269
|
style: {
|
|
3259
3270
|
fontSize: "26px"
|
|
3260
3271
|
}
|
|
3261
|
-
}, [`${l.hh}:${l.mm}`,
|
|
3272
|
+
}, [`${l.hh}:${l.mm}`, _(" "), l.a]), n("span", {
|
|
3262
3273
|
style: {
|
|
3263
3274
|
fontSize: "30px"
|
|
3264
3275
|
}
|
|
3265
|
-
}, [l.day,
|
|
3276
|
+
}, [l.day, _(" "), l.dddd])])]) : n(J, null, [n("div", {
|
|
3266
3277
|
class: s("head")
|
|
3267
|
-
}, [n("span", null, [l.day,
|
|
3278
|
+
}, [n("span", null, [l.day, _(" "), l.dddd]), n("span", {
|
|
3268
3279
|
class: s("lock-icon"),
|
|
3269
3280
|
onClick: () => i(!0)
|
|
3270
|
-
}, [n(
|
|
3281
|
+
}, [n(un, {
|
|
3271
3282
|
style: {
|
|
3272
3283
|
position: "relative",
|
|
3273
3284
|
top: "1px",
|
|
3274
3285
|
marginInlineEnd: "4px"
|
|
3275
3286
|
}
|
|
3276
|
-
}, null),
|
|
3287
|
+
}, null), _("点击解锁")])]), n("div", {
|
|
3277
3288
|
class: s("time", s("enter", "fadeIn"))
|
|
3278
3289
|
}, [n("div", {
|
|
3279
3290
|
class: s("time-card")
|
|
@@ -3297,55 +3308,55 @@ const si = /* @__PURE__ */ j({
|
|
|
3297
3308
|
} = fe("ProPageLock", [ii], t), l = at(t, {
|
|
3298
3309
|
open: !1,
|
|
3299
3310
|
password: ""
|
|
3300
|
-
}), [s, r,
|
|
3311
|
+
}), [s, r, h] = De(!1, {
|
|
3301
3312
|
value: R(() => {
|
|
3302
|
-
var
|
|
3303
|
-
return ae(e.open) ? e.open : (
|
|
3313
|
+
var m;
|
|
3314
|
+
return ae(e.open) ? e.open : (m = a == null ? void 0 : a.lockOpen) == null ? void 0 : m.value;
|
|
3304
3315
|
}),
|
|
3305
|
-
onChange: (
|
|
3316
|
+
onChange: (m) => {
|
|
3306
3317
|
var w, z;
|
|
3307
|
-
(w = e.onOpenChange) == null || w.call(e,
|
|
3318
|
+
(w = e.onOpenChange) == null || w.call(e, m), (z = e["onUpdate:open"]) == null || z.call(e, m), a && (a.lockOpen.value = m);
|
|
3308
3319
|
}
|
|
3309
|
-
}), [
|
|
3310
|
-
function
|
|
3311
|
-
return e.cryptoFn ? e.cryptoFn(
|
|
3320
|
+
}), [g, f] = Ce(!1), d = me();
|
|
3321
|
+
function y(m) {
|
|
3322
|
+
return e.cryptoFn ? e.cryptoFn(m) : m;
|
|
3312
3323
|
}
|
|
3313
|
-
function
|
|
3314
|
-
l.value.open =
|
|
3324
|
+
function b(m) {
|
|
3325
|
+
l.value.open = g.value, l.value.password = y(m);
|
|
3315
3326
|
}
|
|
3316
|
-
const u = R(() => e.shortsKey),
|
|
3317
|
-
gt(
|
|
3318
|
-
var
|
|
3319
|
-
(
|
|
3320
|
-
}), ne(
|
|
3327
|
+
const u = R(() => e.shortsKey), x = R(() => l.value.open && !!l.value.password), v = an();
|
|
3328
|
+
gt(v["Alt+KeyL"], () => {
|
|
3329
|
+
var m;
|
|
3330
|
+
(m = u.value) != null && m.disabeld || h.value || r(!0);
|
|
3331
|
+
}), ne(g, (m) => {
|
|
3321
3332
|
var w, z;
|
|
3322
|
-
|
|
3323
|
-
}),
|
|
3324
|
-
|
|
3333
|
+
b(m && (((z = (w = d.value) == null ? void 0 : w.formState) == null ? void 0 : z.password) || l.value.password) || "");
|
|
3334
|
+
}), St(() => {
|
|
3335
|
+
x.value ? f(!0) : b("");
|
|
3325
3336
|
});
|
|
3326
3337
|
const c = () => {
|
|
3327
|
-
r(!1),
|
|
3328
|
-
},
|
|
3329
|
-
var
|
|
3330
|
-
r(!1),
|
|
3338
|
+
r(!1), f(!0);
|
|
3339
|
+
}, p = () => {
|
|
3340
|
+
var m;
|
|
3341
|
+
r(!1), b(""), (m = d.value) == null || m.resetFields();
|
|
3331
3342
|
};
|
|
3332
3343
|
return () => o(n(J, null, [n(si, te(oe(e, ["name", "avatar"]), {
|
|
3333
|
-
open:
|
|
3344
|
+
open: g.value,
|
|
3334
3345
|
hashId: i.value,
|
|
3335
3346
|
className: t,
|
|
3336
3347
|
password: l.value.password,
|
|
3337
|
-
cryptoFn:
|
|
3338
|
-
onOpenChange:
|
|
3348
|
+
cryptoFn: y,
|
|
3349
|
+
onOpenChange: f
|
|
3339
3350
|
}), null), n(Ya, {
|
|
3340
3351
|
width: 400,
|
|
3341
3352
|
type: "normal",
|
|
3342
3353
|
title: "锁定屏幕",
|
|
3343
|
-
open:
|
|
3354
|
+
open: h.value,
|
|
3344
3355
|
footer: !1,
|
|
3345
|
-
onCancel:
|
|
3356
|
+
onCancel: p
|
|
3346
3357
|
}, {
|
|
3347
|
-
default: () => [n(
|
|
3348
|
-
ref:
|
|
3358
|
+
default: () => [n(Nn, te({
|
|
3359
|
+
ref: d
|
|
3349
3360
|
}, oe(e, ["name", "avatar"]), {
|
|
3350
3361
|
submitText: "锁定",
|
|
3351
3362
|
hashId: i.value,
|
|
@@ -3355,7 +3366,7 @@ const si = /* @__PURE__ */ j({
|
|
|
3355
3366
|
})]));
|
|
3356
3367
|
}
|
|
3357
3368
|
}), ci = (e) => {
|
|
3358
|
-
const { dark: t } =
|
|
3369
|
+
const { dark: t } = ye(e);
|
|
3359
3370
|
return {
|
|
3360
3371
|
[e.componentCls]: {
|
|
3361
3372
|
display: "flex",
|
|
@@ -3464,14 +3475,14 @@ function mi(e) {
|
|
|
3464
3475
|
const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\", "]", "^", "{", "|", "}"]), hi = ({
|
|
3465
3476
|
className: e,
|
|
3466
3477
|
value: t
|
|
3467
|
-
}) => t ? n(
|
|
3468
|
-
image:
|
|
3478
|
+
}) => t ? n(At, {
|
|
3479
|
+
image: At.PRESENTED_IMAGE_SIMPLE,
|
|
3469
3480
|
description: `未找到搜索结果 "${t}"`
|
|
3470
3481
|
}, null) : n("div", {
|
|
3471
3482
|
class: e
|
|
3472
|
-
}, [
|
|
3483
|
+
}, [_("没有搜索历史")]), gi = /* @__PURE__ */ j({
|
|
3473
3484
|
props: {
|
|
3474
|
-
...
|
|
3485
|
+
...Nt,
|
|
3475
3486
|
className: String,
|
|
3476
3487
|
hashId: String,
|
|
3477
3488
|
keyword: String,
|
|
@@ -3487,26 +3498,26 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3487
3498
|
i.value = [];
|
|
3488
3499
|
return;
|
|
3489
3500
|
}
|
|
3490
|
-
const
|
|
3501
|
+
const p = d(c), m = [];
|
|
3491
3502
|
e.dataSource.forEach((w) => {
|
|
3492
|
-
var $, I,
|
|
3503
|
+
var $, I, M;
|
|
3493
3504
|
if (($ = w.meta) != null && $.hideInMenu) return;
|
|
3494
3505
|
const z = ((I = w.meta) == null ? void 0 : I.title) || w.name || "";
|
|
3495
|
-
if (
|
|
3506
|
+
if (p.test(z.toLowerCase())) {
|
|
3496
3507
|
let k = [];
|
|
3497
|
-
const O = ((
|
|
3508
|
+
const O = ((M = w == null ? void 0 : w.key) == null ? void 0 : M.split("-")) || [];
|
|
3498
3509
|
for (let T = 0; T < O.length; T++)
|
|
3499
3510
|
k.push(O.slice(0, T + 1).join("-"));
|
|
3500
3511
|
k = k.map((T) => {
|
|
3501
|
-
var
|
|
3502
|
-
return ((
|
|
3503
|
-
}),
|
|
3512
|
+
var X, E;
|
|
3513
|
+
return ((E = (X = e.dataSource.find((K) => (K == null ? void 0 : K.key) === T)) == null ? void 0 : X.meta) == null ? void 0 : E.title) || "";
|
|
3514
|
+
}), m.push(ve(w, {
|
|
3504
3515
|
meta: {
|
|
3505
3516
|
title: k.join("**")
|
|
3506
3517
|
}
|
|
3507
3518
|
}));
|
|
3508
3519
|
}
|
|
3509
|
-
}), i.value =
|
|
3520
|
+
}), i.value = m, m.length > 0 && (o.value = 0), o.value = 0;
|
|
3510
3521
|
}
|
|
3511
3522
|
ne(() => e.keyword, (c) => {
|
|
3512
3523
|
c ? l(c) : i.value = [...a.value];
|
|
@@ -3515,72 +3526,72 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3515
3526
|
var c;
|
|
3516
3527
|
i.value = [], (c = e.onClose) == null || c.call(e);
|
|
3517
3528
|
}
|
|
3518
|
-
function
|
|
3529
|
+
function h() {
|
|
3519
3530
|
const c = document.querySelector(`[data-search-item="${o.value}"]`);
|
|
3520
3531
|
c && c.scrollIntoView({
|
|
3521
3532
|
block: "nearest"
|
|
3522
3533
|
});
|
|
3523
3534
|
}
|
|
3524
|
-
async function
|
|
3535
|
+
async function g() {
|
|
3525
3536
|
if (i.value.length === 0)
|
|
3526
3537
|
return;
|
|
3527
|
-
const c = i.value,
|
|
3528
|
-
if (c.length === 0 ||
|
|
3538
|
+
const c = i.value, p = o.value;
|
|
3539
|
+
if (c.length === 0 || p < 0)
|
|
3529
3540
|
return;
|
|
3530
|
-
const
|
|
3531
|
-
|
|
3532
|
-
path:
|
|
3541
|
+
const m = c[p];
|
|
3542
|
+
m && (a.value.push(m), r(), await xt(), mi(m.path) ? window.open(m.path, "_blank") : t.push({
|
|
3543
|
+
path: m.path,
|
|
3533
3544
|
replace: !0
|
|
3534
3545
|
}));
|
|
3535
3546
|
}
|
|
3536
|
-
function
|
|
3547
|
+
function f(c) {
|
|
3537
3548
|
return fi.has(c) ? `\\${c}` : c;
|
|
3538
3549
|
}
|
|
3539
|
-
function
|
|
3540
|
-
const
|
|
3541
|
-
return new RegExp(`.*${
|
|
3542
|
-
}
|
|
3543
|
-
function S() {
|
|
3544
|
-
i.value.length !== 0 && (o.value--, o.value < 0 && (o.value = i.value.length - 1), g());
|
|
3550
|
+
function d(c) {
|
|
3551
|
+
const p = [...c].map((m) => f(m)).join(".*");
|
|
3552
|
+
return new RegExp(`.*${p}.*`);
|
|
3545
3553
|
}
|
|
3546
3554
|
function y() {
|
|
3547
|
-
i.value.length !== 0 && (o.value
|
|
3555
|
+
i.value.length !== 0 && (o.value--, o.value < 0 && (o.value = i.value.length - 1), h());
|
|
3556
|
+
}
|
|
3557
|
+
function b() {
|
|
3558
|
+
i.value.length !== 0 && (o.value++, o.value > i.value.length - 1 && (o.value = 0), h());
|
|
3548
3559
|
}
|
|
3549
|
-
|
|
3550
|
-
a.value.length > 0 && (i.value = a.value), ut("Enter",
|
|
3560
|
+
St(() => {
|
|
3561
|
+
a.value.length > 0 && (i.value = a.value), ut("Enter", g), ut("ArrowUp", y), ut("ArrowDown", b);
|
|
3551
3562
|
});
|
|
3552
3563
|
function u(c) {
|
|
3553
3564
|
o.value = c;
|
|
3554
3565
|
}
|
|
3555
|
-
function
|
|
3556
|
-
c.stopPropagation(), e.keyword ? i.value.splice(
|
|
3566
|
+
function x(c, p) {
|
|
3567
|
+
c.stopPropagation(), e.keyword ? i.value.splice(p, 1) : a.value.splice(p, 1), o.value = o.value - 1 >= 0 ? o.value - 1 : 0, h();
|
|
3557
3568
|
}
|
|
3558
|
-
const
|
|
3569
|
+
const v = (c) => Q(`${e.className}${c ? `-${c}` : ""}`, e.hashId);
|
|
3559
3570
|
return () => n(J, null, [i.value.length > 0 ? n(J, null, [a.value.length > 0 && !e.keyword && n("div", {
|
|
3560
|
-
class:
|
|
3561
|
-
}, [
|
|
3562
|
-
class:
|
|
3563
|
-
}, [di(i.value, "path").map((c,
|
|
3564
|
-
var
|
|
3571
|
+
class: v("panel-title")
|
|
3572
|
+
}, [_("搜索历史")]), n("div", {
|
|
3573
|
+
class: v("panel-list")
|
|
3574
|
+
}, [di(i.value, "path").map((c, p) => {
|
|
3575
|
+
var m, w, z, $;
|
|
3565
3576
|
return n("div", {
|
|
3566
3577
|
key: c.name,
|
|
3567
|
-
class:
|
|
3568
|
-
"data-search-item":
|
|
3569
|
-
onClick: () =>
|
|
3570
|
-
onMouseenter: () => u(
|
|
3578
|
+
class: v(Q("panel-item", p === o.value && "active")),
|
|
3579
|
+
"data-search-item": p,
|
|
3580
|
+
onClick: () => g(),
|
|
3581
|
+
onMouseenter: () => u(p)
|
|
3571
3582
|
}, [n("div", {
|
|
3572
|
-
class:
|
|
3583
|
+
class: v("panel-item-left")
|
|
3573
3584
|
}, [n(et, te(c.meta || {}, {
|
|
3574
|
-
icon: ((
|
|
3575
|
-
classNames:
|
|
3576
|
-
}), null), ($ = (z = (w = c.meta) == null ? void 0 : w.title) == null ? void 0 : z.split("**")) == null ? void 0 : $.map((I,
|
|
3585
|
+
icon: ((m = c.meta) == null ? void 0 : m.icon) || n(Da, null, null),
|
|
3586
|
+
classNames: v("panel-icon")
|
|
3587
|
+
}), null), ($ = (z = (w = c.meta) == null ? void 0 : w.title) == null ? void 0 : z.split("**")) == null ? void 0 : $.map((I, M) => {
|
|
3577
3588
|
var k, O, T;
|
|
3578
|
-
return n(J, null, [I,
|
|
3589
|
+
return n(J, null, [I, M < ((T = (O = (k = c.meta) == null ? void 0 : k.title) == null ? void 0 : O.split("**")) == null ? void 0 : T.length) - 1 && n(Aa, null, null)]);
|
|
3579
3590
|
}), n("span", null, null)]), n(lt, {
|
|
3580
|
-
onClick: (I) =>
|
|
3591
|
+
onClick: (I) => x(I, p)
|
|
3581
3592
|
}, null)]);
|
|
3582
3593
|
})])]) : n(hi, {
|
|
3583
|
-
className:
|
|
3594
|
+
className: v("result"),
|
|
3584
3595
|
value: e.keyword
|
|
3585
3596
|
}, null)]);
|
|
3586
3597
|
}
|
|
@@ -3591,14 +3602,14 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3591
3602
|
class: Q(`${e}-footer`, t)
|
|
3592
3603
|
}, [n("div", {
|
|
3593
3604
|
class: Q(`${e}-footer-icon`, t)
|
|
3594
|
-
}, [n(Ha, null, null),
|
|
3605
|
+
}, [n(Ha, null, null), _("选择")]), n("div", {
|
|
3595
3606
|
class: Q(`${e}-footer-icon`, t)
|
|
3596
|
-
}, [n(
|
|
3607
|
+
}, [n(Et, null, null), n(Et, {
|
|
3597
3608
|
rotate: 180
|
|
3598
|
-
}, null),
|
|
3609
|
+
}, null), _("导航")])]), bi = /* @__PURE__ */ j({
|
|
3599
3610
|
name: "SearchPageInput",
|
|
3600
3611
|
props: {
|
|
3601
|
-
...
|
|
3612
|
+
...Nt,
|
|
3602
3613
|
dark: {
|
|
3603
3614
|
type: Boolean,
|
|
3604
3615
|
default: void 0
|
|
@@ -3615,71 +3626,71 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3615
3626
|
}), {
|
|
3616
3627
|
wrapSSR: a,
|
|
3617
3628
|
hashId: o
|
|
3618
|
-
} = ui(t), [i, l] =
|
|
3629
|
+
} = ui(t), [i, l] = Ce(""), [s, r] = Ce(!1), h = le(), g = an(), f = ma() ? g["ctrl+k"] : g["cmd+k"], d = me(), y = R(() => {
|
|
3619
3630
|
var u;
|
|
3620
|
-
return Bt(e.dataSource || ((u =
|
|
3631
|
+
return Bt(e.dataSource || ((u = h == null ? void 0 : h.menuData) == null ? void 0 : u.value));
|
|
3621
3632
|
});
|
|
3622
|
-
gt(
|
|
3633
|
+
gt(f, () => {
|
|
3623
3634
|
e.disabeldShortKey || r(!0);
|
|
3624
3635
|
}), gt(s, () => {
|
|
3625
3636
|
xt(() => {
|
|
3626
3637
|
var u;
|
|
3627
|
-
(u =
|
|
3638
|
+
(u = d.value) == null || u.focus();
|
|
3628
3639
|
});
|
|
3629
3640
|
});
|
|
3630
|
-
const
|
|
3641
|
+
const b = () => {
|
|
3631
3642
|
r(!1), i.value = "";
|
|
3632
3643
|
};
|
|
3633
3644
|
return () => {
|
|
3634
3645
|
const u = {
|
|
3635
3646
|
className: `${t}`,
|
|
3636
3647
|
hashId: o.value
|
|
3637
|
-
},
|
|
3648
|
+
}, x = `${t}-modal`;
|
|
3638
3649
|
return a(n(J, null, [n("div", {
|
|
3639
3650
|
class: Q(t, o.value),
|
|
3640
3651
|
onClick: () => r(!0)
|
|
3641
|
-
}, [n(
|
|
3652
|
+
}, [n(jt, null, null), n("span", {
|
|
3642
3653
|
class: Q(`${t}-word`, o.value)
|
|
3643
|
-
}, [
|
|
3654
|
+
}, [_("搜索")]), n("span", {
|
|
3644
3655
|
class: Q(`${t}-word-icon`, o.value)
|
|
3645
|
-
}, [
|
|
3646
|
-
class: Q(`${
|
|
3656
|
+
}, [_("⌘ "), n("kbd", null, [_("K")])])]), n(Ga, {
|
|
3657
|
+
class: Q(`${x}`, o.value),
|
|
3647
3658
|
width: 600,
|
|
3648
3659
|
scrollProps: {
|
|
3649
3660
|
maxHeight: 400,
|
|
3650
3661
|
minHeight: 200
|
|
3651
3662
|
},
|
|
3652
3663
|
centered: !1,
|
|
3653
|
-
title: n(
|
|
3664
|
+
title: n(tn, {
|
|
3654
3665
|
style: {
|
|
3655
3666
|
width: `${600 * 0.8}px`,
|
|
3656
3667
|
padding: 0
|
|
3657
3668
|
},
|
|
3658
|
-
ref:
|
|
3669
|
+
ref: d,
|
|
3659
3670
|
bordered: !1,
|
|
3660
3671
|
size: "large",
|
|
3661
3672
|
placeholder: "搜索导航菜单",
|
|
3662
3673
|
value: i.value,
|
|
3663
|
-
prefix: n(
|
|
3664
|
-
onChange: (
|
|
3674
|
+
prefix: n(jt, null, null),
|
|
3675
|
+
onChange: (v) => l(v.target.value)
|
|
3665
3676
|
}, null),
|
|
3666
3677
|
open: s.value,
|
|
3667
3678
|
footer: n(yi, {
|
|
3668
|
-
className:
|
|
3679
|
+
className: x,
|
|
3669
3680
|
hashId: o.value
|
|
3670
3681
|
}, null),
|
|
3671
|
-
onCancel: () =>
|
|
3682
|
+
onCancel: () => b()
|
|
3672
3683
|
}, {
|
|
3673
3684
|
default: () => [n(gi, te(u, {
|
|
3674
3685
|
keyword: i.value,
|
|
3675
|
-
dataSource:
|
|
3676
|
-
onClose: () =>
|
|
3686
|
+
dataSource: y.value,
|
|
3687
|
+
onClose: () => b()
|
|
3677
3688
|
}), null)]
|
|
3678
3689
|
})]));
|
|
3679
3690
|
};
|
|
3680
3691
|
}
|
|
3681
3692
|
}), vi = (e) => {
|
|
3682
|
-
const { dark: t } =
|
|
3693
|
+
const { dark: t } = ye(e), a = ot(e, "header");
|
|
3683
3694
|
return {
|
|
3684
3695
|
[`${e.componentCls}`]: {
|
|
3685
3696
|
"&-header-actions": {
|
|
@@ -3752,7 +3763,7 @@ function pi(e) {
|
|
|
3752
3763
|
}
|
|
3753
3764
|
const as = /* @__PURE__ */ j({
|
|
3754
3765
|
name: "GlobalRightContent",
|
|
3755
|
-
props:
|
|
3766
|
+
props: kn(),
|
|
3756
3767
|
inheritAttrs: !1,
|
|
3757
3768
|
emits: ["logout", "darkChange", "settingsOpenChange", "update:dark", "update:settingsOpen", "lockOpenChange"],
|
|
3758
3769
|
setup(e, {
|
|
@@ -3761,55 +3772,55 @@ const as = /* @__PURE__ */ j({
|
|
|
3761
3772
|
const {
|
|
3762
3773
|
isFullscreen: a,
|
|
3763
3774
|
toggle: o
|
|
3764
|
-
} = aa(), i = Oe(), l = le(), s =
|
|
3775
|
+
} = aa(), i = Oe(), l = le(), s = on(), r = ie({
|
|
3765
3776
|
suffixCls: "global-header",
|
|
3766
3777
|
isPor: !0
|
|
3767
|
-
}), [
|
|
3768
|
-
wrapSSR:
|
|
3769
|
-
hashId:
|
|
3770
|
-
} = pi(r), [
|
|
3778
|
+
}), [h, g] = Ce(!1), {
|
|
3779
|
+
wrapSSR: f,
|
|
3780
|
+
hashId: d
|
|
3781
|
+
} = pi(r), [y, b] = Ce("auto"), {
|
|
3771
3782
|
isDark: u,
|
|
3772
|
-
toggleMode:
|
|
3773
|
-
} =
|
|
3783
|
+
toggleMode: x
|
|
3784
|
+
} = Pt(R(() => {
|
|
3774
3785
|
var I;
|
|
3775
3786
|
return Xe(e.dark) ? e.dark : (I = l == null ? void 0 : l.dark) == null ? void 0 : I.value;
|
|
3776
3787
|
}), {
|
|
3777
3788
|
change: (I) => {
|
|
3778
|
-
var
|
|
3779
|
-
(
|
|
3789
|
+
var M, k, O;
|
|
3790
|
+
(M = e.onDarkChange) == null || M.call(e, I), (k = e == null ? void 0 : e["onUpdate:dark"]) == null || k.call(e, I), (O = l == null ? void 0 : l.onDarkChange) == null || O.call(l, I);
|
|
3780
3791
|
}
|
|
3781
|
-
}), [
|
|
3792
|
+
}), [v, c] = De(!1, {
|
|
3782
3793
|
value: R(() => {
|
|
3783
3794
|
var I;
|
|
3784
3795
|
return ae(e.settingsOpen) ? e.settingsOpen : (I = l == null ? void 0 : l.settingsOpen) == null ? void 0 : I.value;
|
|
3785
3796
|
}),
|
|
3786
3797
|
onChange: (I) => {
|
|
3787
|
-
var
|
|
3788
|
-
(
|
|
3798
|
+
var M, k;
|
|
3799
|
+
(M = e.onSettingsOpenChange) == null || M.call(e, I), (k = e == null ? void 0 : e["onUpdate:settingsOpen"]) == null || k.call(e, I), l && !ae(e.settingsOpen) && (l.settingsOpen.value = I);
|
|
3789
3800
|
}
|
|
3790
|
-
}),
|
|
3791
|
-
var I,
|
|
3792
|
-
return ae((I = l == null ? void 0 : l.isMobile) == null ? void 0 : I.value) ? (
|
|
3793
|
-
}),
|
|
3801
|
+
}), p = R(() => {
|
|
3802
|
+
var I, M;
|
|
3803
|
+
return ae((I = l == null ? void 0 : l.isMobile) == null ? void 0 : I.value) ? (M = l == null ? void 0 : l.isMobile) == null ? void 0 : M.value : s.value === "sm" || s.value === "xs";
|
|
3804
|
+
}), m = R(() => {
|
|
3794
3805
|
var I;
|
|
3795
3806
|
return Xe(e.dark) ? u.value : (I = i == null ? void 0 : i.dark) == null ? void 0 : I.value;
|
|
3796
3807
|
}), w = oa(async (I) => {
|
|
3797
|
-
|
|
3808
|
+
b(I);
|
|
3798
3809
|
}, 160), z = (I) => {
|
|
3799
|
-
|
|
3810
|
+
Fn({
|
|
3800
3811
|
event: I,
|
|
3801
|
-
isDark:
|
|
3802
|
-
toggle:
|
|
3812
|
+
isDark: m,
|
|
3813
|
+
toggle: x
|
|
3803
3814
|
});
|
|
3804
3815
|
}, $ = () => {
|
|
3805
|
-
e != null && e.onLogout && (
|
|
3816
|
+
e != null && e.onLogout && (g(!0), e.onLogout(() => g(!1)));
|
|
3806
3817
|
};
|
|
3807
3818
|
return () => {
|
|
3808
|
-
const I =
|
|
3809
|
-
return
|
|
3810
|
-
class: `${r}-right-content ${
|
|
3819
|
+
const I = Be(t, e, "dropdownMenuRender"), M = Be(t, e, "dropdownRender"), k = Be(t, e, "dropdownMenuExtraItemRender"), O = re(t, e, "actionsRender"), T = a.value ? ja : Ea;
|
|
3820
|
+
return f(n("div", {
|
|
3821
|
+
class: `${r}-right-content ${d.value}`.trim(),
|
|
3811
3822
|
style: {
|
|
3812
|
-
minWidth:
|
|
3823
|
+
minWidth: y.value,
|
|
3813
3824
|
height: "100%"
|
|
3814
3825
|
}
|
|
3815
3826
|
}, [n("div", {
|
|
@@ -3819,61 +3830,61 @@ const as = /* @__PURE__ */ j({
|
|
|
3819
3830
|
}, [n(qa, {
|
|
3820
3831
|
key: "resize-observer",
|
|
3821
3832
|
onResize: ({
|
|
3822
|
-
width:
|
|
3833
|
+
width: X
|
|
3823
3834
|
}) => {
|
|
3824
|
-
w(
|
|
3835
|
+
w(X);
|
|
3825
3836
|
}
|
|
3826
3837
|
}, {
|
|
3827
3838
|
default: () => {
|
|
3828
|
-
var
|
|
3839
|
+
var X;
|
|
3829
3840
|
return [n("div", {
|
|
3830
|
-
class: `${r}-header-actions ${
|
|
3831
|
-
}, [e.actions.search && !
|
|
3841
|
+
class: `${r}-header-actions ${d.value}`.trim()
|
|
3842
|
+
}, [e.actions.search && !p.value && n(bi, {
|
|
3832
3843
|
dataSource: e.dataSource,
|
|
3833
|
-
disabeldShortKey: (
|
|
3844
|
+
disabeldShortKey: (X = e.shortsKey) == null ? void 0 : X.disabeld
|
|
3834
3845
|
}, null), e.actions.theme && n("div", {
|
|
3835
|
-
class: `${r}-header-actions-item ${
|
|
3846
|
+
class: `${r}-header-actions-item ${d.value}`.trim()
|
|
3836
3847
|
}, [n(_e, {
|
|
3837
|
-
class: `${r}-header-actions-icon ${
|
|
3838
|
-
name:
|
|
3839
|
-
onClick: (
|
|
3840
|
-
}, null)]), e.actions.settings && !
|
|
3841
|
-
class: `${r}-header-actions-item ${
|
|
3842
|
-
}, [n(
|
|
3843
|
-
onClick: () => c(!
|
|
3844
|
-
}, null)]), e.actions.fullScreen && !
|
|
3845
|
-
class: `${r}-header-actions-item ${
|
|
3848
|
+
class: `${r}-header-actions-icon ${d.value}`.trim(),
|
|
3849
|
+
name: m.value ? "liangse" : "anhei",
|
|
3850
|
+
onClick: (E) => z(E)
|
|
3851
|
+
}, null)]), e.actions.settings && !p.value && n("div", {
|
|
3852
|
+
class: `${r}-header-actions-item ${d.value}`.trim()
|
|
3853
|
+
}, [n(dn, {
|
|
3854
|
+
onClick: () => c(!v.value)
|
|
3855
|
+
}, null)]), e.actions.fullScreen && !p.value && n("div", {
|
|
3856
|
+
class: `${r}-header-actions-item ${d.value}`.trim()
|
|
3846
3857
|
}, [n(T, {
|
|
3847
3858
|
onClick: () => o()
|
|
3848
|
-
}, null)]), O ? O == null ? void 0 : O([`${r}-header-actions-item`,
|
|
3859
|
+
}, null)]), O ? O == null ? void 0 : O([`${r}-header-actions-item`, d.value]) : null, n(ht, {
|
|
3849
3860
|
overlay: I || n(ge, null, {
|
|
3850
|
-
default: () => [k, e.actions.lock && n(J, null, [n(
|
|
3861
|
+
default: () => [k, e.actions.lock && n(J, null, [n(Ht, {
|
|
3851
3862
|
key: "lock",
|
|
3852
|
-
icon: n(
|
|
3863
|
+
icon: n(un, null, null),
|
|
3853
3864
|
onClick: () => {
|
|
3854
|
-
var
|
|
3855
|
-
(
|
|
3865
|
+
var E;
|
|
3866
|
+
(E = e.onLockOpenChange) == null || E.call(e, !0), l && (l.lockOpen.value = !0);
|
|
3856
3867
|
}
|
|
3857
3868
|
}, {
|
|
3858
|
-
default: () => [
|
|
3859
|
-
}), n(ge.Divider, null, null)]), n(
|
|
3869
|
+
default: () => [_("锁定屏幕")]
|
|
3870
|
+
}), n(ge.Divider, null, null)]), n(Ht, {
|
|
3860
3871
|
key: "logout",
|
|
3861
3872
|
icon: n(Ka, null, null),
|
|
3862
3873
|
onClick: () => $(),
|
|
3863
|
-
disabled:
|
|
3874
|
+
disabled: h.value
|
|
3864
3875
|
}, {
|
|
3865
|
-
default: () => [
|
|
3876
|
+
default: () => [_("退出登录")]
|
|
3866
3877
|
})]
|
|
3867
3878
|
})
|
|
3868
3879
|
}, {
|
|
3869
|
-
default: () => [
|
|
3870
|
-
class: `${r}-header-actions-avatar ${
|
|
3871
|
-
}, [n(
|
|
3880
|
+
default: () => [M || n("div", {
|
|
3881
|
+
class: `${r}-header-actions-avatar ${d.value}`.trim()
|
|
3882
|
+
}, [n(en, {
|
|
3872
3883
|
size: 28,
|
|
3873
|
-
icon: n(
|
|
3884
|
+
icon: n(cn, null, null),
|
|
3874
3885
|
src: e.avatar
|
|
3875
3886
|
}, null), n("div", {
|
|
3876
|
-
class: `${r}-header-actions-name ${
|
|
3887
|
+
class: `${r}-header-actions-name ${d.value}`.trim()
|
|
3877
3888
|
}, [e.name || "gx12358"])])]
|
|
3878
3889
|
})])];
|
|
3879
3890
|
}
|
|
@@ -3905,22 +3916,22 @@ const as = /* @__PURE__ */ j({
|
|
|
3905
3916
|
wrapSSR: i,
|
|
3906
3917
|
hashId: l
|
|
3907
3918
|
} = fe("ProPageHeader", [Ci], o), s = R(() => {
|
|
3908
|
-
var
|
|
3909
|
-
const r = ((
|
|
3910
|
-
...
|
|
3911
|
-
path:
|
|
3912
|
-
link:
|
|
3919
|
+
var f;
|
|
3920
|
+
const r = ((f = t == null ? void 0 : t.breadcrumb) == null ? void 0 : f.value) || {}, h = r.routes || [], g = h.map((d, y) => ({
|
|
3921
|
+
...d,
|
|
3922
|
+
path: d.path && y !== h.length - 1 ? bt().uuid(10) : "",
|
|
3923
|
+
link: d.path
|
|
3913
3924
|
}));
|
|
3914
3925
|
return {
|
|
3915
3926
|
...r,
|
|
3916
|
-
routes:
|
|
3927
|
+
routes: g,
|
|
3917
3928
|
itemRender: (r == null ? void 0 : r.itemRender) || (({
|
|
3918
|
-
route:
|
|
3919
|
-
}) =>
|
|
3920
|
-
to:
|
|
3929
|
+
route: d
|
|
3930
|
+
}) => d.path ? n(Va, {
|
|
3931
|
+
to: d.link
|
|
3921
3932
|
}, {
|
|
3922
|
-
default: () => [
|
|
3923
|
-
}) :
|
|
3933
|
+
default: () => [d.breadcrumbName]
|
|
3934
|
+
}) : d.breadcrumbName)
|
|
3924
3935
|
};
|
|
3925
3936
|
});
|
|
3926
3937
|
return () => {
|
|
@@ -3934,7 +3945,7 @@ const as = /* @__PURE__ */ j({
|
|
|
3934
3945
|
}
|
|
3935
3946
|
}), Si = (e) => {
|
|
3936
3947
|
var o;
|
|
3937
|
-
const t = (o = e.layout) == null ? void 0 : o.pageContainer, { layout: a } =
|
|
3948
|
+
const t = (o = e.layout) == null ? void 0 : o.pageContainer, { layout: a } = ye(e);
|
|
3938
3949
|
return {
|
|
3939
3950
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
3940
3951
|
[e.componentCls]: {
|
|
@@ -3993,126 +4004,130 @@ const os = /* @__PURE__ */ j({
|
|
|
3993
4004
|
slots: t,
|
|
3994
4005
|
attrs: a
|
|
3995
4006
|
}) {
|
|
3996
|
-
const o = le(), i =
|
|
4007
|
+
const o = le(), i = Lt(), l = Oe(), s = (o == null ? void 0 : o.getPrefixCls) || ie, r = s({
|
|
3997
4008
|
suffixCls: "page-container",
|
|
3998
4009
|
isPor: !0
|
|
3999
|
-
}),
|
|
4010
|
+
}), h = s({
|
|
4000
4011
|
suffixCls: "grid-content",
|
|
4001
4012
|
isPor: !0
|
|
4002
|
-
}),
|
|
4013
|
+
}), g = R(() => {
|
|
4003
4014
|
var $;
|
|
4004
4015
|
return (($ = o == null ? void 0 : o.pageContainerProps) == null ? void 0 : $.value) || {};
|
|
4005
|
-
}),
|
|
4006
|
-
var $;
|
|
4007
|
-
return e.pageCardProps || (($ = h.value) == null ? void 0 : $.pageCardProps);
|
|
4008
|
-
}), m = R(() => {
|
|
4016
|
+
}), f = R(() => {
|
|
4009
4017
|
var $;
|
|
4010
|
-
return e.
|
|
4011
|
-
}),
|
|
4018
|
+
return e.pageCardProps || (($ = g.value) == null ? void 0 : $.pageCardProps);
|
|
4019
|
+
}), d = R(() => {
|
|
4012
4020
|
var $;
|
|
4013
|
-
return e.
|
|
4021
|
+
return e.waterMarkProps || (($ = g.value) == null ? void 0 : $.waterMarkProps) || {};
|
|
4014
4022
|
}), y = R(() => {
|
|
4015
4023
|
var $;
|
|
4016
|
-
return e.
|
|
4024
|
+
return e.pageContentStyle || (($ = g.value) == null ? void 0 : $.pageContentStyle);
|
|
4025
|
+
}), b = R(() => {
|
|
4026
|
+
var $;
|
|
4027
|
+
return e.pageChildrenContentStyle || (($ = g.value) == null ? void 0 : $.pageChildrenContentStyle) || {};
|
|
4017
4028
|
}), u = R(() => {
|
|
4018
4029
|
var $;
|
|
4019
4030
|
return ($ = o == null ? void 0 : o.hasContentWide) == null ? void 0 : $.value;
|
|
4020
|
-
}),
|
|
4031
|
+
}), x = R(() => {
|
|
4021
4032
|
var $, I;
|
|
4022
|
-
return ae(e.usePageCard) ? e.usePageCard : ae(($ =
|
|
4023
|
-
}),
|
|
4024
|
-
var $, I,
|
|
4025
|
-
return (
|
|
4033
|
+
return ae(e.usePageCard) ? e.usePageCard : ae(($ = g.value) == null ? void 0 : $.usePageCard) ? (I = g.value) == null ? void 0 : I.usePageCard : !0;
|
|
4034
|
+
}), v = R(() => {
|
|
4035
|
+
var $, I, M;
|
|
4036
|
+
return (M = (I = ($ = l == null ? void 0 : l.token) == null ? void 0 : $.value) == null ? void 0 : I.layout) == null ? void 0 : M.pageContainer;
|
|
4026
4037
|
}), c = R(() => Ae(Ue(e.contentWidth) && e.contentWidth ? e.contentWidth : o == null ? void 0 : o.contentWidth.value)), {
|
|
4027
|
-
wrapSSR:
|
|
4028
|
-
hashId:
|
|
4038
|
+
wrapSSR: p,
|
|
4039
|
+
hashId: m
|
|
4029
4040
|
} = Ii(r), w = () => {
|
|
4030
|
-
var
|
|
4031
|
-
const $ =
|
|
4041
|
+
var M, k, O, T;
|
|
4042
|
+
const $ = Be(t, e, "pageChildrenExtraRender"), I = Q(`${r}-children-content`, m.value, c.value && `${r}-children-content-width`);
|
|
4032
4043
|
return n("div", {
|
|
4033
4044
|
class: I,
|
|
4034
4045
|
style: {
|
|
4035
|
-
...
|
|
4046
|
+
...b.value,
|
|
4036
4047
|
width: c.value
|
|
4037
4048
|
}
|
|
4038
|
-
}, [$,
|
|
4049
|
+
}, [$, x.value ? n(Yn, te(f.value ? oe(f.value, ["loading", "bodyStyle"]) : {}, {
|
|
4039
4050
|
style: u.value ? {
|
|
4040
4051
|
minHeight: "853px"
|
|
4041
4052
|
} : void 0,
|
|
4042
4053
|
bordered: !1
|
|
4043
4054
|
}), {
|
|
4044
4055
|
default: () => {
|
|
4045
|
-
var
|
|
4046
|
-
return [(
|
|
4056
|
+
var X;
|
|
4057
|
+
return [(X = t.default) == null ? void 0 : X.call(t)];
|
|
4047
4058
|
}
|
|
4048
4059
|
}) : Fe($) ? n("div", {
|
|
4049
|
-
style: (
|
|
4050
|
-
marginBlockStart: `${(k =
|
|
4060
|
+
style: (M = v.value) != null && M.marginBlockPageContainerContent ? {
|
|
4061
|
+
marginBlockStart: `${(k = v.value) == null ? void 0 : k.marginBlockPageContainerContent}px`
|
|
4051
4062
|
} : void 0
|
|
4052
4063
|
}, [(O = t.default) == null ? void 0 : O.call(t)]) : (T = t.default) == null ? void 0 : T.call(t)]);
|
|
4053
4064
|
}, z = () => {
|
|
4054
4065
|
var I;
|
|
4055
4066
|
let $;
|
|
4056
|
-
return n(J, null, [(ae(e.waterMark) ? e.waterMark : (I = o == null ? void 0 : o.waterMark) != null && I.value) ? n(Qa,
|
|
4067
|
+
return n(J, null, [(ae(e.waterMark) ? e.waterMark : (I = o == null ? void 0 : o.waterMark) != null && I.value) ? n(Qa, d.value, wi($ = w()) ? $ : {
|
|
4057
4068
|
default: () => [$]
|
|
4058
4069
|
}) : w()]);
|
|
4059
4070
|
};
|
|
4060
4071
|
return () => {
|
|
4061
4072
|
var k, O;
|
|
4062
|
-
const $ =
|
|
4063
|
-
return
|
|
4073
|
+
const $ = Be(t, e, "pageHeaderRender") || ((k = o == null ? void 0 : o.pageHeaderRender) == null ? void 0 : k.value), I = re(t, e, "breadcrumbRender"), M = Be(t, e, "contentRender");
|
|
4074
|
+
return p(n("div", {
|
|
4064
4075
|
style: a.style,
|
|
4065
4076
|
class: {
|
|
4066
|
-
[`${
|
|
4077
|
+
[`${m.value}`]: !0,
|
|
4067
4078
|
[`${r}`]: !0
|
|
4068
4079
|
}
|
|
4069
4080
|
}, [e.loading && n("div", {
|
|
4070
|
-
class: Q(`${r}-blur`,
|
|
4071
|
-
}, [n(
|
|
4081
|
+
class: Q(`${r}-blur`, m.value)
|
|
4082
|
+
}, [n(It, {
|
|
4072
4083
|
indicator: (O = i == null ? void 0 : i.indicator) == null ? void 0 : O.value
|
|
4073
4084
|
}, null)]), !u.value && $ !== !1 && ($ || n(xi, {
|
|
4074
4085
|
style: e.pageHeaderStyle,
|
|
4075
4086
|
breadcrumb: I,
|
|
4076
|
-
content:
|
|
4087
|
+
content: M
|
|
4077
4088
|
}, null)), n("div", {
|
|
4078
|
-
class: [
|
|
4089
|
+
class: [h, m.value]
|
|
4079
4090
|
}, [n("div", {
|
|
4080
|
-
class: `${
|
|
4081
|
-
style:
|
|
4091
|
+
class: `${h}-children ${m.value}`,
|
|
4092
|
+
style: y.value
|
|
4082
4093
|
}, [z()])])]));
|
|
4083
4094
|
};
|
|
4084
4095
|
}
|
|
4085
4096
|
});
|
|
4086
|
-
function is(e) {
|
|
4087
|
-
const
|
|
4097
|
+
function is({ menuData: e, watchOpenKeys: t = !0 }) {
|
|
4098
|
+
const a = Ge(), o = a.getRoutes(), i = pe({
|
|
4088
4099
|
menuData: [],
|
|
4089
4100
|
levelMenuData: []
|
|
4090
|
-
}),
|
|
4101
|
+
}), l = pe({
|
|
4091
4102
|
openKeys: [],
|
|
4092
4103
|
selectedKeys: []
|
|
4093
|
-
}),
|
|
4094
|
-
var
|
|
4095
|
-
const
|
|
4096
|
-
(
|
|
4104
|
+
}), s = R(() => a.currentRoute.value), r = (d) => {
|
|
4105
|
+
var b, u;
|
|
4106
|
+
const y = No(zo(d));
|
|
4107
|
+
(u = (b = s.value) == null ? void 0 : b.meta) != null && u.hidden ? (i.menuData = [], i.levelMenuData = []) : (i.menuData = y.menuData, i.levelMenuData = y.getLevel());
|
|
4097
4108
|
};
|
|
4098
|
-
e
|
|
4099
|
-
const
|
|
4100
|
-
const
|
|
4101
|
-
var
|
|
4102
|
-
const
|
|
4109
|
+
e && zt(e) && ne(() => e.value, (d) => r(d), { deep: !0 });
|
|
4110
|
+
const h = R(() => Ho(i, { path: Rn(s.value), name: s.value.name })), g = R(() => {
|
|
4111
|
+
const d = h.value.map((y) => {
|
|
4112
|
+
var u, x;
|
|
4113
|
+
const b = $n((u = y.meta) != null && u.hideChildrenInMenu ? [] : y.children || []);
|
|
4103
4114
|
return {
|
|
4104
|
-
path:
|
|
4105
|
-
breadcrumbName: ((
|
|
4115
|
+
path: y.redirect || b || y.path || "",
|
|
4116
|
+
breadcrumbName: ((x = y.meta) == null ? void 0 : x.title) || ""
|
|
4106
4117
|
};
|
|
4107
|
-
}).filter((
|
|
4108
|
-
return Vo(
|
|
4109
|
-
})
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4118
|
+
}).filter((y) => y.breadcrumbName);
|
|
4119
|
+
return Vo(d, "breadcrumbName");
|
|
4120
|
+
}), f = () => {
|
|
4121
|
+
l.openKeys = h.value.filter((d) => d.path !== s.value.path).map((d) => d.path);
|
|
4122
|
+
};
|
|
4123
|
+
return ne(() => s.value, (d) => {
|
|
4124
|
+
d && (r(e ? zt(e) ? e.value : e : o), l.selectedKeys = h.value.map((y) => y.path), t && f());
|
|
4125
|
+
}, { immediate: !0, deep: !0 }), St(() => {
|
|
4126
|
+
t || f();
|
|
4127
|
+
}), {
|
|
4128
|
+
menuState: i,
|
|
4129
|
+
matchedKeys: l,
|
|
4130
|
+
matchedMenu: h,
|
|
4116
4131
|
breadcrumbRouters: g
|
|
4117
4132
|
};
|
|
4118
4133
|
}
|
|
@@ -4126,7 +4141,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4126
4141
|
}
|
|
4127
4142
|
}, [n(_e, {
|
|
4128
4143
|
name: "liangse"
|
|
4129
|
-
}, null),
|
|
4144
|
+
}, null), _("亮色")])
|
|
4130
4145
|
}, {
|
|
4131
4146
|
value: "dark",
|
|
4132
4147
|
label: () => n("div", {
|
|
@@ -4137,7 +4152,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4137
4152
|
}
|
|
4138
4153
|
}, [n(_e, {
|
|
4139
4154
|
name: "anhei"
|
|
4140
|
-
}, null),
|
|
4155
|
+
}, null), _("深色")])
|
|
4141
4156
|
}, {
|
|
4142
4157
|
value: "system",
|
|
4143
4158
|
label: () => n("div", {
|
|
@@ -4146,8 +4161,8 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4146
4161
|
alignItems: "center",
|
|
4147
4162
|
gap: "6px"
|
|
4148
4163
|
}
|
|
4149
|
-
}, [n(Wa, null, null),
|
|
4150
|
-
}],
|
|
4164
|
+
}, [n(Wa, null, null), _("自动")])
|
|
4165
|
+
}], zn = [
|
|
4151
4166
|
{
|
|
4152
4167
|
key: "light",
|
|
4153
4168
|
title: "亮色菜单风格"
|
|
@@ -4160,7 +4175,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4160
4175
|
// key: 'systemDark',
|
|
4161
4176
|
// title: '暗黑模式'
|
|
4162
4177
|
// }
|
|
4163
|
-
],
|
|
4178
|
+
], Dn = [{
|
|
4164
4179
|
key: "side",
|
|
4165
4180
|
title: "侧边菜单布局"
|
|
4166
4181
|
}, {
|
|
@@ -4181,7 +4196,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4181
4196
|
}, {
|
|
4182
4197
|
key: "sider",
|
|
4183
4198
|
title: "左侧主题"
|
|
4184
|
-
}],
|
|
4199
|
+
}], Mi = [{
|
|
4185
4200
|
key: "colorBgMenu",
|
|
4186
4201
|
name: "全部背景"
|
|
4187
4202
|
}, {
|
|
@@ -4202,7 +4217,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4202
4217
|
}, {
|
|
4203
4218
|
key: "colorTextMenuSelected",
|
|
4204
4219
|
name: "菜单文字选中颜色"
|
|
4205
|
-
}],
|
|
4220
|
+
}], Bi = [{
|
|
4206
4221
|
label: "fixedHeader",
|
|
4207
4222
|
title: "固定 Header"
|
|
4208
4223
|
}, {
|
|
@@ -4218,7 +4233,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4218
4233
|
label: "fixedTabsBar",
|
|
4219
4234
|
title: "固定多标签"
|
|
4220
4235
|
}], Oi = (e) => {
|
|
4221
|
-
const { dark: t } =
|
|
4236
|
+
const { dark: t } = ye(e);
|
|
4222
4237
|
return {
|
|
4223
4238
|
[e.componentCls]: {
|
|
4224
4239
|
[`${e.antCls}-drawer-content-wrapper`]: {
|
|
@@ -4398,7 +4413,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4398
4413
|
}
|
|
4399
4414
|
}
|
|
4400
4415
|
};
|
|
4401
|
-
},
|
|
4416
|
+
}, Yt = /* @__PURE__ */ j({
|
|
4402
4417
|
name: "BlockCheckbox",
|
|
4403
4418
|
props: {
|
|
4404
4419
|
value: q.string,
|
|
@@ -4428,7 +4443,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4428
4443
|
}
|
|
4429
4444
|
}, [a.key === "wide" && n("div", {
|
|
4430
4445
|
class: [`${t}-item-${a.key}-content`, e.hashId]
|
|
4431
|
-
}, null), n(
|
|
4446
|
+
}, null), n(mn, {
|
|
4432
4447
|
class: `${t}-selectIcon ${e.hashId}`.trim(),
|
|
4433
4448
|
style: {
|
|
4434
4449
|
display: e.value === a.key ? "block" : "none"
|
|
@@ -4474,7 +4489,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4474
4489
|
backgroundColor: i
|
|
4475
4490
|
},
|
|
4476
4491
|
onClick: () => e.onChange && e.onChange(i)
|
|
4477
|
-
}, [((r = e.settingValue) == null ? void 0 : r.primaryColor) === i && n(
|
|
4492
|
+
}, [((r = e.settingValue) == null ? void 0 : r.primaryColor) === i && n(mn, null, null)])];
|
|
4478
4493
|
}
|
|
4479
4494
|
}) : null)]);
|
|
4480
4495
|
};
|
|
@@ -4491,7 +4506,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4491
4506
|
onChange: Function
|
|
4492
4507
|
},
|
|
4493
4508
|
setup(e) {
|
|
4494
|
-
return () => n(
|
|
4509
|
+
return () => n(Me, {
|
|
4495
4510
|
class: `${e.prefixCls}-list ${e.hashId}`.trim(),
|
|
4496
4511
|
split: !1,
|
|
4497
4512
|
size: "small",
|
|
@@ -4501,7 +4516,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4501
4516
|
title: t.disabled ? t.disabledReason : "",
|
|
4502
4517
|
placement: "left"
|
|
4503
4518
|
}, {
|
|
4504
|
-
default: () => [n(
|
|
4519
|
+
default: () => [n(Me.Item, {
|
|
4505
4520
|
actions: [t.action]
|
|
4506
4521
|
}, {
|
|
4507
4522
|
default: () => [n("span", {
|
|
@@ -4513,7 +4528,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4513
4528
|
}),
|
|
4514
4529
|
dataSource: [{
|
|
4515
4530
|
title: e.label,
|
|
4516
|
-
action: n(
|
|
4531
|
+
action: n(nn, {
|
|
4517
4532
|
size: "small",
|
|
4518
4533
|
disabled: e.disabled,
|
|
4519
4534
|
checked: !!e.value,
|
|
@@ -4561,10 +4576,10 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4561
4576
|
function Ti(e) {
|
|
4562
4577
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
4563
4578
|
}
|
|
4564
|
-
const
|
|
4579
|
+
const An = [];
|
|
4565
4580
|
Ca.forEach((e) => {
|
|
4566
4581
|
xa.forEach((t) => {
|
|
4567
|
-
|
|
4582
|
+
An.push({
|
|
4568
4583
|
key: `${e}:${t}`,
|
|
4569
4584
|
token: {}
|
|
4570
4585
|
});
|
|
@@ -4580,7 +4595,7 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4580
4595
|
setup(e) {
|
|
4581
4596
|
const {
|
|
4582
4597
|
getPrefixCls: t
|
|
4583
|
-
} = le(), [a, o] =
|
|
4598
|
+
} = le(), [a, o] = Ce("header"), i = t({
|
|
4584
4599
|
suffixCls: "theme-editor",
|
|
4585
4600
|
isPor: !0
|
|
4586
4601
|
}), {
|
|
@@ -4588,83 +4603,83 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4588
4603
|
hashId: s
|
|
4589
4604
|
} = fe("ProThemeEditor", [ki], i), {
|
|
4590
4605
|
token: r
|
|
4591
|
-
} = Oe(),
|
|
4592
|
-
var
|
|
4593
|
-
return (
|
|
4606
|
+
} = Oe(), h = R(() => {
|
|
4607
|
+
var b;
|
|
4608
|
+
return (b = r.value) == null ? void 0 : b.layout;
|
|
4594
4609
|
});
|
|
4595
|
-
function
|
|
4596
|
-
return Se(
|
|
4597
|
-
var
|
|
4598
|
-
const
|
|
4599
|
-
if (u.token =
|
|
4610
|
+
function g(b) {
|
|
4611
|
+
return Se(An).map((u) => {
|
|
4612
|
+
var v;
|
|
4613
|
+
const x = it(b, r.value, u.key);
|
|
4614
|
+
if (u.token = x, x)
|
|
4600
4615
|
for (const c in u.token) {
|
|
4601
|
-
const
|
|
4602
|
-
u.token[c] =
|
|
4616
|
+
const p = (v = h.value) == null ? void 0 : v[b], m = (p == null ? void 0 : p[c]) || u.token[c];
|
|
4617
|
+
u.token[c] = m;
|
|
4603
4618
|
}
|
|
4604
4619
|
return u;
|
|
4605
4620
|
}).filter((u) => u.token);
|
|
4606
4621
|
}
|
|
4607
|
-
const
|
|
4608
|
-
header:
|
|
4609
|
-
sider:
|
|
4622
|
+
const f = pe({
|
|
4623
|
+
header: g("header"),
|
|
4624
|
+
sider: g("sider")
|
|
4610
4625
|
});
|
|
4611
4626
|
ne([() => {
|
|
4612
|
-
var
|
|
4613
|
-
return (u = (
|
|
4627
|
+
var b, u;
|
|
4628
|
+
return (u = (b = r.value) == null ? void 0 : b.layout) == null ? void 0 : u.header;
|
|
4614
4629
|
}, () => {
|
|
4615
|
-
var
|
|
4616
|
-
return (u = (
|
|
4630
|
+
var b, u;
|
|
4631
|
+
return (u = (b = r.value) == null ? void 0 : b.layout) == null ? void 0 : u.sider;
|
|
4617
4632
|
}], () => {
|
|
4618
|
-
|
|
4633
|
+
f.sider = g("sider"), f.header = g("header");
|
|
4619
4634
|
}, {
|
|
4620
4635
|
deep: 1
|
|
4621
4636
|
});
|
|
4622
|
-
const
|
|
4637
|
+
const d = R(() => {
|
|
4623
4638
|
var u;
|
|
4624
|
-
const
|
|
4625
|
-
var
|
|
4626
|
-
return
|
|
4639
|
+
const b = (u = f[a.value].find((x) => {
|
|
4640
|
+
var v;
|
|
4641
|
+
return x.key === ((v = h.value) == null ? void 0 : v.key);
|
|
4627
4642
|
})) == null ? void 0 : u.token;
|
|
4628
|
-
return Object.keys(
|
|
4643
|
+
return Object.keys(b || {}).map((x) => {
|
|
4629
4644
|
var c;
|
|
4630
4645
|
return {
|
|
4631
|
-
title: ((c =
|
|
4632
|
-
key:
|
|
4633
|
-
value: (
|
|
4646
|
+
title: ((c = Mi.find((p) => p.key === x)) == null ? void 0 : c.name) || "",
|
|
4647
|
+
key: x,
|
|
4648
|
+
value: (b == null ? void 0 : b[x]) || ""
|
|
4634
4649
|
};
|
|
4635
4650
|
});
|
|
4636
|
-
}),
|
|
4637
|
-
var
|
|
4638
|
-
|
|
4651
|
+
}), y = (b, u) => {
|
|
4652
|
+
var x;
|
|
4653
|
+
f[a.value] = f[a.value].map((v) => {
|
|
4639
4654
|
var c;
|
|
4640
|
-
return
|
|
4641
|
-
}), (
|
|
4655
|
+
return v.key === ((c = h.value) == null ? void 0 : c.key) && (v.token[u] = b), v;
|
|
4656
|
+
}), (x = e.onChange) == null || x.call(e, b, a.value, u);
|
|
4642
4657
|
};
|
|
4643
4658
|
return () => {
|
|
4644
|
-
var u,
|
|
4645
|
-
let
|
|
4659
|
+
var u, x, v;
|
|
4660
|
+
let b;
|
|
4646
4661
|
return l(n("div", {
|
|
4647
4662
|
class: [i, s.value]
|
|
4648
4663
|
}, [n("h3", {
|
|
4649
4664
|
class: [`${i}-title`, s.value]
|
|
4650
|
-
}, [
|
|
4665
|
+
}, [_("主题编辑器"), n("div", {
|
|
4651
4666
|
class: [`${i}-sub-title`, s.value]
|
|
4652
|
-
}, [n("span", null, [(u =
|
|
4667
|
+
}, [n("span", null, [(u = zn.find((c) => c.key === e.theme)) == null ? void 0 : u.title]), n("span", {
|
|
4653
4668
|
style: {
|
|
4654
4669
|
marginInline: "8px"
|
|
4655
4670
|
}
|
|
4656
|
-
}, [
|
|
4657
|
-
var
|
|
4658
|
-
return c.key === ((
|
|
4659
|
-
})) == null ? void 0 :
|
|
4671
|
+
}, [_("/")]), n("span", null, [(x = Dn.find((c) => {
|
|
4672
|
+
var p;
|
|
4673
|
+
return c.key === ((p = e.settingValue) == null ? void 0 : p.layout);
|
|
4674
|
+
})) == null ? void 0 : x.title])])]), n("div", {
|
|
4660
4675
|
class: [`${i}-content`, s.value]
|
|
4661
|
-
}, [n(
|
|
4676
|
+
}, [n(Me, {
|
|
4662
4677
|
class: `${i}-list ${s.value}`.trim(),
|
|
4663
4678
|
split: !1,
|
|
4664
4679
|
size: "small",
|
|
4665
4680
|
renderItem: ({
|
|
4666
4681
|
item: c
|
|
4667
|
-
}) => n(
|
|
4682
|
+
}) => n(Me.Item, {
|
|
4668
4683
|
actions: [c.action]
|
|
4669
4684
|
}, {
|
|
4670
4685
|
default: () => [n("span", {
|
|
@@ -4675,45 +4690,45 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4675
4690
|
}),
|
|
4676
4691
|
dataSource: [{
|
|
4677
4692
|
title: "自定义主题色",
|
|
4678
|
-
action: n(
|
|
4679
|
-
value: (
|
|
4693
|
+
action: n(Kt, {
|
|
4694
|
+
value: (v = e.settingValue) == null ? void 0 : v.primaryColor,
|
|
4680
4695
|
size: "small",
|
|
4681
4696
|
onChangeComplete: (c) => e.onChange && e.onChange(c.toCssString(), "primaryColor")
|
|
4682
4697
|
}, null)
|
|
4683
4698
|
}]
|
|
4684
|
-
}, null), n(
|
|
4699
|
+
}, null), n(wt, {
|
|
4685
4700
|
activeKey: a.value,
|
|
4686
4701
|
onChange: (c) => o(c)
|
|
4687
|
-
}, Ti(
|
|
4702
|
+
}, Ti(b = $i.map((c) => n(qn, {
|
|
4688
4703
|
key: c.key,
|
|
4689
4704
|
tab: c.title
|
|
4690
4705
|
}, {
|
|
4691
|
-
default: () => [n(
|
|
4706
|
+
default: () => [n(Me, {
|
|
4692
4707
|
class: `${i}-list ${s.value}`.trim(),
|
|
4693
4708
|
split: !1,
|
|
4694
4709
|
size: "small",
|
|
4695
4710
|
renderItem: ({
|
|
4696
|
-
item:
|
|
4697
|
-
}) => n(
|
|
4698
|
-
actions: [
|
|
4711
|
+
item: p
|
|
4712
|
+
}) => n(Me.Item, {
|
|
4713
|
+
actions: [p.action]
|
|
4699
4714
|
}, {
|
|
4700
4715
|
default: () => [n("span", {
|
|
4701
4716
|
style: {
|
|
4702
|
-
opacity:
|
|
4717
|
+
opacity: p.disabled ? 0.5 : 1
|
|
4703
4718
|
}
|
|
4704
|
-
}, [
|
|
4719
|
+
}, [p.title])]
|
|
4705
4720
|
}),
|
|
4706
|
-
dataSource:
|
|
4707
|
-
...
|
|
4708
|
-
action: n(
|
|
4709
|
-
value:
|
|
4721
|
+
dataSource: d.value.map((p) => ({
|
|
4722
|
+
...p,
|
|
4723
|
+
action: n(Kt, {
|
|
4724
|
+
value: p.value,
|
|
4710
4725
|
size: "small",
|
|
4711
|
-
onChangeComplete: (
|
|
4726
|
+
onChangeComplete: (m) => y(m.toCssString(), p.key)
|
|
4712
4727
|
}, null)
|
|
4713
4728
|
}))
|
|
4714
4729
|
}, null)]
|
|
4715
|
-
}))) ?
|
|
4716
|
-
default: () => [
|
|
4730
|
+
}))) ? b : {
|
|
4731
|
+
default: () => [b]
|
|
4717
4732
|
})])]));
|
|
4718
4733
|
};
|
|
4719
4734
|
}
|
|
@@ -4748,12 +4763,12 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4748
4763
|
}
|
|
4749
4764
|
}
|
|
4750
4765
|
});
|
|
4751
|
-
function
|
|
4766
|
+
function qt(e) {
|
|
4752
4767
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
4753
4768
|
}
|
|
4754
4769
|
const {
|
|
4755
|
-
preset:
|
|
4756
|
-
} =
|
|
4770
|
+
preset: Qt
|
|
4771
|
+
} = Tt, zi = /* @__PURE__ */ j({
|
|
4757
4772
|
name: "OthersChange",
|
|
4758
4773
|
props: {
|
|
4759
4774
|
prefixCls: q.string,
|
|
@@ -4769,69 +4784,69 @@ const {
|
|
|
4769
4784
|
hashId: o
|
|
4770
4785
|
} = fe("SettingsDrawOthers", [Ni], t);
|
|
4771
4786
|
return () => {
|
|
4772
|
-
var l, s, r, g,
|
|
4787
|
+
var l, s, r, h, g, f, d, y, b, u, x, v, c, p;
|
|
4773
4788
|
let i;
|
|
4774
4789
|
return a(n("div", {
|
|
4775
4790
|
class: [t, o.value]
|
|
4776
4791
|
}, [n("h3", {
|
|
4777
4792
|
class: [`${t}-title`, o.value]
|
|
4778
|
-
}, [
|
|
4793
|
+
}, [_("页面动画设置")]), n(Me, {
|
|
4779
4794
|
class: `${t}-list ${o.value}`.trim(),
|
|
4780
4795
|
split: !1,
|
|
4781
4796
|
size: "small",
|
|
4782
4797
|
renderItem: ({
|
|
4783
|
-
item:
|
|
4798
|
+
item: m
|
|
4784
4799
|
}) => n(nt, {
|
|
4785
|
-
title:
|
|
4800
|
+
title: m.disabled ? m.disabledReason : "",
|
|
4786
4801
|
placement: "left"
|
|
4787
4802
|
}, {
|
|
4788
|
-
default: () => [n(
|
|
4789
|
-
actions: [
|
|
4803
|
+
default: () => [n(Me.Item, {
|
|
4804
|
+
actions: [m.action]
|
|
4790
4805
|
}, {
|
|
4791
4806
|
default: () => [n("span", {
|
|
4792
4807
|
style: {
|
|
4793
|
-
opacity:
|
|
4808
|
+
opacity: m.disabled ? 0.5 : 1
|
|
4794
4809
|
}
|
|
4795
|
-
}, [
|
|
4810
|
+
}, [m.title])]
|
|
4796
4811
|
})]
|
|
4797
4812
|
}),
|
|
4798
4813
|
dataSource: [{
|
|
4799
4814
|
title: "禁用动画",
|
|
4800
|
-
action: n(
|
|
4815
|
+
action: n(nn, {
|
|
4801
4816
|
checked: !((s = (l = e.settingValue) == null ? void 0 : l.animate) != null && s.disabled),
|
|
4802
4817
|
size: "small",
|
|
4803
|
-
onChange: (
|
|
4818
|
+
onChange: (m) => {
|
|
4804
4819
|
var w;
|
|
4805
|
-
return (w = e.onChange) == null ? void 0 : w.call(e, "animate", "disabled", !
|
|
4820
|
+
return (w = e.onChange) == null ? void 0 : w.call(e, "animate", "disabled", !m);
|
|
4806
4821
|
}
|
|
4807
4822
|
}, null)
|
|
4808
4823
|
}, {
|
|
4809
4824
|
title: "动画效果",
|
|
4810
|
-
disabled: (
|
|
4825
|
+
disabled: (h = (r = e.settingValue) == null ? void 0 : r.animate) == null ? void 0 : h.disabled,
|
|
4811
4826
|
action: n(Ye, {
|
|
4812
|
-
value: (
|
|
4827
|
+
value: (f = (g = e.settingValue) == null ? void 0 : g.animate) == null ? void 0 : f.name,
|
|
4813
4828
|
style: {
|
|
4814
4829
|
width: "100px"
|
|
4815
4830
|
},
|
|
4816
4831
|
size: "small",
|
|
4817
|
-
disabled: (
|
|
4818
|
-
getPopupContainer: (
|
|
4819
|
-
onChange: (
|
|
4832
|
+
disabled: (y = (d = e.settingValue) == null ? void 0 : d.animate) == null ? void 0 : y.disabled,
|
|
4833
|
+
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
4834
|
+
onChange: (m) => {
|
|
4820
4835
|
var w;
|
|
4821
|
-
return (w = e.onChange) == null ? void 0 : w.call(e, "animate", "name",
|
|
4836
|
+
return (w = e.onChange) == null ? void 0 : w.call(e, "animate", "name", m);
|
|
4822
4837
|
}
|
|
4823
|
-
},
|
|
4824
|
-
value:
|
|
4838
|
+
}, qt(i = Qt.map((m) => n(Ye.Option, {
|
|
4839
|
+
value: m.name
|
|
4825
4840
|
}, {
|
|
4826
|
-
default: () => [
|
|
4841
|
+
default: () => [m.alias]
|
|
4827
4842
|
}))) ? i : {
|
|
4828
4843
|
default: () => [i]
|
|
4829
4844
|
})
|
|
4830
4845
|
}, {
|
|
4831
4846
|
title: "动画方向",
|
|
4832
|
-
disabled: (u = (
|
|
4847
|
+
disabled: (u = (b = e.settingValue) == null ? void 0 : b.animate) == null ? void 0 : u.disabled,
|
|
4833
4848
|
action: n(Ye, {
|
|
4834
|
-
value: (
|
|
4849
|
+
value: (v = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : v.direction,
|
|
4835
4850
|
style: {
|
|
4836
4851
|
width: "100px"
|
|
4837
4852
|
},
|
|
@@ -4839,21 +4854,21 @@ const {
|
|
|
4839
4854
|
dropdownStyle: {
|
|
4840
4855
|
minWidth: "120px"
|
|
4841
4856
|
},
|
|
4842
|
-
disabled: (
|
|
4843
|
-
getPopupContainer: (
|
|
4844
|
-
onChange: (
|
|
4857
|
+
disabled: (p = (c = e.settingValue) == null ? void 0 : c.animate) == null ? void 0 : p.disabled,
|
|
4858
|
+
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
4859
|
+
onChange: (m) => {
|
|
4845
4860
|
var w;
|
|
4846
|
-
return (w = e.onChange) == null ? void 0 : w.call(e, "animate", "direction",
|
|
4861
|
+
return (w = e.onChange) == null ? void 0 : w.call(e, "animate", "direction", m);
|
|
4847
4862
|
}
|
|
4848
4863
|
}, {
|
|
4849
4864
|
default: () => {
|
|
4850
|
-
var
|
|
4851
|
-
return [(
|
|
4865
|
+
var m;
|
|
4866
|
+
return [(m = Qt.find((w) => {
|
|
4852
4867
|
var z, $;
|
|
4853
4868
|
return w.name === (($ = (z = e.settingValue) == null ? void 0 : z.animate) == null ? void 0 : $.name);
|
|
4854
|
-
})) == null ? void 0 :
|
|
4869
|
+
})) == null ? void 0 : m.directions.map((w) => n(Ye.Option, {
|
|
4855
4870
|
value: w
|
|
4856
|
-
},
|
|
4871
|
+
}, qt(w) ? w : {
|
|
4857
4872
|
default: () => [w]
|
|
4858
4873
|
}))];
|
|
4859
4874
|
}
|
|
@@ -4864,10 +4879,10 @@ const {
|
|
|
4864
4879
|
}
|
|
4865
4880
|
}), {
|
|
4866
4881
|
preset: Di
|
|
4867
|
-
} =
|
|
4882
|
+
} = Tt, Ai = {
|
|
4868
4883
|
color: "#fff",
|
|
4869
4884
|
fontSize: 20
|
|
4870
|
-
},
|
|
4885
|
+
}, Zt = (e) => ha() ? {
|
|
4871
4886
|
...oe(Z, Ct),
|
|
4872
4887
|
...e || {}
|
|
4873
4888
|
} : Se(Z), Ke = (e, {
|
|
@@ -4882,7 +4897,7 @@ const {
|
|
|
4882
4897
|
class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
|
|
4883
4898
|
}, [e.title]), (a = t.default) == null ? void 0 : a.call(t)]);
|
|
4884
4899
|
}, Hi = () => ({
|
|
4885
|
-
...
|
|
4900
|
+
...Ot,
|
|
4886
4901
|
open: {
|
|
4887
4902
|
type: Boolean,
|
|
4888
4903
|
default: void 0
|
|
@@ -4917,13 +4932,13 @@ const {
|
|
|
4917
4932
|
const t = Oe(), a = le(), o = ie({
|
|
4918
4933
|
suffixCls: "setting-drawer",
|
|
4919
4934
|
isPor: !0
|
|
4920
|
-
}), i =
|
|
4935
|
+
}), i = pe({}), l = at(ie({
|
|
4921
4936
|
suffixCls: "settings-state",
|
|
4922
4937
|
isPor: !0
|
|
4923
4938
|
}), {}), {
|
|
4924
4939
|
wrapSSR: s,
|
|
4925
4940
|
hashId: r
|
|
4926
|
-
} = fe("ProSettingDraw", [Oi], o),
|
|
4941
|
+
} = fe("ProSettingDraw", [Oi], o), h = me(!1), [g, f] = De(!1, {
|
|
4927
4942
|
value: R(() => {
|
|
4928
4943
|
var L;
|
|
4929
4944
|
return ae(e.open) ? e.open : (L = a == null ? void 0 : a.settingsOpen) == null ? void 0 : L.value;
|
|
@@ -4933,67 +4948,67 @@ const {
|
|
|
4933
4948
|
(F = e.onOpenChange) == null || F.call(e, L), (P = e == null ? void 0 : e["onUpdate:open"]) == null || P.call(e, L), a && !ae(e.open) && (a.settingsOpen.value = L);
|
|
4934
4949
|
}
|
|
4935
4950
|
}), {
|
|
4936
|
-
innerDark:
|
|
4937
|
-
isDark:
|
|
4938
|
-
toggleMode:
|
|
4939
|
-
} =
|
|
4951
|
+
innerDark: d,
|
|
4952
|
+
isDark: y,
|
|
4953
|
+
toggleMode: b
|
|
4954
|
+
} = Pt(R(() => {
|
|
4940
4955
|
var L;
|
|
4941
4956
|
return Xe(e.dark) ? e.dark : (L = a == null ? void 0 : a.dark) == null ? void 0 : L.value;
|
|
4942
4957
|
}), {
|
|
4943
4958
|
change: (L) => {
|
|
4944
|
-
var F, P,
|
|
4945
|
-
(F = e.onDarkChange) == null || F.call(e, L), (P = e == null ? void 0 : e["onUpdate:dark"]) == null || P.call(e, L), (
|
|
4959
|
+
var F, P, W;
|
|
4960
|
+
(F = e.onDarkChange) == null || F.call(e, L), (P = e == null ? void 0 : e["onUpdate:dark"]) == null || P.call(e, L), (W = a == null ? void 0 : a.onDarkChange) == null || W.call(a, L);
|
|
4946
4961
|
}
|
|
4947
|
-
}), [u,
|
|
4948
|
-
value:
|
|
4962
|
+
}), [u, x] = Ce(!1), [v, c] = Ce(!1), p = R(() => e.storage ? Object.keys(l.value).length > 0 : !1), m = R(() => Zt(oe(e.settings, Ct))), [w, z] = De(() => Zt(oe(e.settings, Ct)), {
|
|
4963
|
+
value: m,
|
|
4949
4964
|
onChange: (L) => {
|
|
4950
4965
|
var F;
|
|
4951
|
-
l.value =
|
|
4966
|
+
l.value = ve(l.value, L), (F = e.onChange) == null || F.call(e, L);
|
|
4952
4967
|
}
|
|
4953
4968
|
}), $ = R(() => {
|
|
4954
4969
|
var L;
|
|
4955
|
-
return Xe(e.dark) ?
|
|
4970
|
+
return Xe(e.dark) ? y.value : (L = t == null ? void 0 : t.dark) == null ? void 0 : L.value;
|
|
4956
4971
|
}), I = (L, F) => {
|
|
4957
|
-
|
|
4972
|
+
Fn({
|
|
4958
4973
|
event: L,
|
|
4959
4974
|
isDark: $,
|
|
4960
|
-
toggle:
|
|
4975
|
+
toggle: b,
|
|
4961
4976
|
value: F
|
|
4962
4977
|
});
|
|
4963
4978
|
};
|
|
4964
4979
|
ne(() => e.storage, (L) => {
|
|
4965
|
-
L && (
|
|
4966
|
-
dark:
|
|
4980
|
+
L && (p.value ? (Object.assign(i, {
|
|
4981
|
+
dark: d.value,
|
|
4967
4982
|
...Se(w.value)
|
|
4968
4983
|
}), fa($e(l.value, "dark"), w.value) || z($e(l.value, "dark")), I(null, l.value.dark)) : l.value = {
|
|
4969
4984
|
...w.value,
|
|
4970
|
-
dark:
|
|
4985
|
+
dark: d.value
|
|
4971
4986
|
});
|
|
4972
4987
|
}, {
|
|
4973
4988
|
immediate: !0
|
|
4974
4989
|
});
|
|
4975
|
-
const
|
|
4990
|
+
const M = R(() => e.colorList && Mt(e.colorList) ? e.colorList : []), k = R(() => Xo(se(w))), {
|
|
4976
4991
|
copy: O,
|
|
4977
4992
|
copied: T,
|
|
4978
|
-
isSupported:
|
|
4993
|
+
isSupported: X
|
|
4979
4994
|
} = ia();
|
|
4980
|
-
ne(
|
|
4981
|
-
|
|
4995
|
+
ne(g, () => {
|
|
4996
|
+
h.value || (h.value = !0);
|
|
4982
4997
|
}), ne(() => {
|
|
4983
4998
|
var L;
|
|
4984
4999
|
return (L = a == null ? void 0 : a.settingsOpen) == null ? void 0 : L.value;
|
|
4985
5000
|
}, (L) => {
|
|
4986
|
-
ae(e.open) ||
|
|
5001
|
+
ae(e.open) || f(L);
|
|
4987
5002
|
}), ne(T, (L) => {
|
|
4988
5003
|
L && Qn.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
4989
|
-
}), ne(() =>
|
|
5004
|
+
}), ne(() => d.value, (L) => {
|
|
4990
5005
|
e.storage && (l.value.dark = L);
|
|
4991
5006
|
});
|
|
4992
|
-
const
|
|
4993
|
-
var
|
|
4994
|
-
const
|
|
4995
|
-
if (P != null && P.subKey &&
|
|
4996
|
-
ee[L] = {}, ee[L][P == null ? void 0 : P.subKey] = F, (
|
|
5007
|
+
const E = (L, F, P) => {
|
|
5008
|
+
var be, H, Y;
|
|
5009
|
+
const W = ["header", "sider"], ee = {};
|
|
5010
|
+
if (P != null && P.subKey && W.includes(L)) {
|
|
5011
|
+
ee[L] = {}, ee[L][P == null ? void 0 : P.subKey] = F, (be = e.onLayoutChange) == null || be.call(e, oe(ee, W));
|
|
4997
5012
|
return;
|
|
4998
5013
|
} else
|
|
4999
5014
|
L === "animate" ? (ee[L] = {}, P != null && P.subKey && (ee[L][P == null ? void 0 : P.subKey] = F), (P == null ? void 0 : P.subKey) === "name" && (ee[L].direction = (Y = (H = Di.find((V) => V.name === F)) == null ? void 0 : H.directions) == null ? void 0 : Y[0])) : ee[L] = F;
|
|
@@ -5001,23 +5016,23 @@ const {
|
|
|
5001
5016
|
const V = document.querySelector("body");
|
|
5002
5017
|
V && (V.dataset.prosettingdrawer = F === !0 ? V.style.filter : V.dataset.prosettingdrawer || "none", F === !0 && (V.dataset.prosettingdrawer = V.style.filter), V.style.filter = F === !0 ? "invert(80%)" : V.dataset.prosettingdrawer || "none", F || delete V.dataset.prosettingdrawer);
|
|
5003
5018
|
}
|
|
5004
|
-
z(
|
|
5005
|
-
..._o($e(ee,
|
|
5019
|
+
z(ve(se(w), {
|
|
5020
|
+
..._o($e(ee, W))
|
|
5006
5021
|
}));
|
|
5007
|
-
},
|
|
5022
|
+
}, K = (L) => {
|
|
5008
5023
|
l.value.dark = L === "system" ? L : L === "dark", I(null, L === "system" ? L : L === "dark");
|
|
5009
5024
|
}, he = () => {
|
|
5010
|
-
|
|
5025
|
+
X.value && O(JSON.stringify(se(w)));
|
|
5011
5026
|
}, de = () => {
|
|
5012
5027
|
z($e(Se(i), "dark")), I(null, i.dark), l.value = Se(i);
|
|
5013
5028
|
};
|
|
5014
5029
|
return () => {
|
|
5015
|
-
const L =
|
|
5030
|
+
const L = g.value ? lt : dn;
|
|
5016
5031
|
return s(n(Qe, {
|
|
5017
5032
|
width: 300,
|
|
5018
5033
|
closable: !1,
|
|
5019
|
-
open:
|
|
5020
|
-
rootClassName: `${o} ${r.value} ${
|
|
5034
|
+
open: g.value,
|
|
5035
|
+
rootClassName: `${o} ${r.value} ${g.value && `${o}-show`} ${!h.value && `${o}-trantion-none`}`,
|
|
5021
5036
|
placement: "right",
|
|
5022
5037
|
rootStyle: {
|
|
5023
5038
|
zIndex: 999
|
|
@@ -5025,10 +5040,10 @@ const {
|
|
|
5025
5040
|
bodyStyle: {
|
|
5026
5041
|
padding: 0
|
|
5027
5042
|
},
|
|
5028
|
-
onClose: () =>
|
|
5043
|
+
onClose: () => f(!1),
|
|
5029
5044
|
handle: n("div", {
|
|
5030
5045
|
class: [`${o}-handle`, r.value],
|
|
5031
|
-
onClick: () =>
|
|
5046
|
+
onClick: () => f(!g.value)
|
|
5032
5047
|
}, [n(L, {
|
|
5033
5048
|
style: Ai
|
|
5034
5049
|
}, null)])
|
|
@@ -5044,59 +5059,59 @@ const {
|
|
|
5044
5059
|
title: "整体风格"
|
|
5045
5060
|
}, {
|
|
5046
5061
|
default: () => [n(Zn, {
|
|
5047
|
-
value: ae(
|
|
5062
|
+
value: ae(d.value) ? d.value ? "dark" : "light" : "system",
|
|
5048
5063
|
options: Ri,
|
|
5049
|
-
onChange: (F) =>
|
|
5064
|
+
onChange: (F) => K(F)
|
|
5050
5065
|
}, null)]
|
|
5051
5066
|
}), n(Ke, {
|
|
5052
5067
|
prefixCls: o,
|
|
5053
5068
|
hashId: r.value,
|
|
5054
5069
|
title: "菜单风格"
|
|
5055
5070
|
}, {
|
|
5056
|
-
default: () => [n(
|
|
5071
|
+
default: () => [n(Yt, {
|
|
5057
5072
|
hashId: r.value,
|
|
5058
5073
|
prefixCls: o,
|
|
5059
|
-
list:
|
|
5074
|
+
list: zn,
|
|
5060
5075
|
value: w.value.theme,
|
|
5061
5076
|
configType: "theme",
|
|
5062
5077
|
key: "navTheme",
|
|
5063
|
-
onChange: (F, P) =>
|
|
5078
|
+
onChange: (F, P) => E("theme", F, {
|
|
5064
5079
|
event: P
|
|
5065
5080
|
})
|
|
5066
5081
|
}, null)]
|
|
5067
5082
|
}), n(Ke, {
|
|
5068
5083
|
hashId: r.value,
|
|
5069
|
-
title: n("span", null, [
|
|
5084
|
+
title: n("span", null, [_("配色模式"), n("a", {
|
|
5070
5085
|
style: {
|
|
5071
5086
|
fontSize: "12px",
|
|
5072
5087
|
marginLeft: "4px"
|
|
5073
5088
|
},
|
|
5074
|
-
onClick: () =>
|
|
5075
|
-
}, [
|
|
5089
|
+
onClick: () => x(!0)
|
|
5090
|
+
}, [_("更多配置")])]),
|
|
5076
5091
|
prefixCls: o
|
|
5077
5092
|
}, {
|
|
5078
5093
|
default: () => [n(Fi, {
|
|
5079
5094
|
hashId: r.value,
|
|
5080
5095
|
prefixCls: o,
|
|
5081
|
-
colorList:
|
|
5096
|
+
colorList: M.value,
|
|
5082
5097
|
settingValue: w.value,
|
|
5083
|
-
onChange: (F, P) =>
|
|
5098
|
+
onChange: (F, P) => E(P || "primaryColor", F)
|
|
5084
5099
|
}, null)]
|
|
5085
5100
|
}), !e.themeOnly && n(J, null, [n(ct, null, null), n(Ke, {
|
|
5086
5101
|
hashId: r.value,
|
|
5087
5102
|
prefixCls: o,
|
|
5088
5103
|
title: "导航模式"
|
|
5089
5104
|
}, {
|
|
5090
|
-
default: () => [n(
|
|
5105
|
+
default: () => [n(Yt, {
|
|
5091
5106
|
prefixCls: o,
|
|
5092
5107
|
value: se(w).layout,
|
|
5093
5108
|
key: "layout",
|
|
5094
5109
|
hashId: r.value,
|
|
5095
5110
|
configType: "layout",
|
|
5096
|
-
list:
|
|
5097
|
-
onChange: (F) =>
|
|
5111
|
+
list: Dn,
|
|
5112
|
+
onChange: (F) => E("layout", F)
|
|
5098
5113
|
}, null)]
|
|
5099
|
-
}),
|
|
5114
|
+
}), Bi.map(({
|
|
5100
5115
|
label: F,
|
|
5101
5116
|
title: P
|
|
5102
5117
|
}) => n(qe, {
|
|
@@ -5106,17 +5121,17 @@ const {
|
|
|
5106
5121
|
prefixCls: o,
|
|
5107
5122
|
hashId: r.value,
|
|
5108
5123
|
valueKey: F,
|
|
5109
|
-
onChange: (
|
|
5124
|
+
onChange: (W, ee) => E(W, ee)
|
|
5110
5125
|
}, null)), n(ct, null, null), n(Ke, {
|
|
5111
5126
|
hashId: r.value,
|
|
5112
5127
|
prefixCls: o,
|
|
5113
|
-
title: n("span", null, [
|
|
5128
|
+
title: n("span", null, [_("其他设置"), n("a", {
|
|
5114
5129
|
style: {
|
|
5115
5130
|
fontSize: "12px",
|
|
5116
5131
|
marginLeft: "4px"
|
|
5117
5132
|
},
|
|
5118
5133
|
onClick: () => c(!0)
|
|
5119
|
-
}, [
|
|
5134
|
+
}, [_("更多配置")])])
|
|
5120
5135
|
}, {
|
|
5121
5136
|
default: () => [Li.map(({
|
|
5122
5137
|
label: F,
|
|
@@ -5128,21 +5143,21 @@ const {
|
|
|
5128
5143
|
prefixCls: o,
|
|
5129
5144
|
hashId: r.value,
|
|
5130
5145
|
valueKey: F,
|
|
5131
|
-
onChange: (
|
|
5146
|
+
onChange: (W, ee) => E(W, ee)
|
|
5132
5147
|
}, null)), e.weakmode && n(qe, {
|
|
5133
5148
|
label: "色弱模式",
|
|
5134
5149
|
value: se(w).colorWeak,
|
|
5135
5150
|
prefixCls: o,
|
|
5136
5151
|
hashId: r.value,
|
|
5137
5152
|
valueKey: "colorWeak",
|
|
5138
|
-
onChange: (F, P) =>
|
|
5153
|
+
onChange: (F, P) => E(F, P)
|
|
5139
5154
|
}, null), e.showProgress && n(qe, {
|
|
5140
5155
|
label: "顶部进度条",
|
|
5141
5156
|
value: se(w).showProgressBar,
|
|
5142
5157
|
prefixCls: o,
|
|
5143
5158
|
hashId: r.value,
|
|
5144
5159
|
valueKey: "showProgressBar",
|
|
5145
|
-
onChange: (F, P) =>
|
|
5160
|
+
onChange: (F, P) => E(F, P)
|
|
5146
5161
|
}, null)]
|
|
5147
5162
|
})]), e.hideHintAlert && e.hideCopyButton ? null : n(ct, null, null), e.hideHintAlert ? null : n(Jn, {
|
|
5148
5163
|
type: "warning",
|
|
@@ -5161,12 +5176,12 @@ const {
|
|
|
5161
5176
|
onClick: () => he(),
|
|
5162
5177
|
block: !0
|
|
5163
5178
|
}, {
|
|
5164
|
-
default: () => [n(_a, null, null),
|
|
5179
|
+
default: () => [n(_a, null, null), _("拷贝设置")]
|
|
5165
5180
|
}), n(Ze, {
|
|
5166
5181
|
block: !0,
|
|
5167
5182
|
onClick: () => de()
|
|
5168
5183
|
}, {
|
|
5169
|
-
default: () => [n(Xa, null, null),
|
|
5184
|
+
default: () => [n(Xa, null, null), _("清空缓存")]
|
|
5170
5185
|
})])])]
|
|
5171
5186
|
})]), n(Qe, {
|
|
5172
5187
|
width: 320,
|
|
@@ -5176,20 +5191,20 @@ const {
|
|
|
5176
5191
|
bodyStyle: {
|
|
5177
5192
|
padding: 0
|
|
5178
5193
|
},
|
|
5179
|
-
onClose: () =>
|
|
5194
|
+
onClose: () => x(!1)
|
|
5180
5195
|
}, {
|
|
5181
5196
|
default: () => [n(Pi, {
|
|
5182
5197
|
theme: w.value.theme,
|
|
5183
5198
|
settingValue: w.value,
|
|
5184
|
-
onChange: (F, P,
|
|
5185
|
-
subKey:
|
|
5199
|
+
onChange: (F, P, W) => E(P || "primaryColor", F, {
|
|
5200
|
+
subKey: W
|
|
5186
5201
|
})
|
|
5187
5202
|
}, null)]
|
|
5188
5203
|
}), n(Qe, {
|
|
5189
5204
|
width: 320,
|
|
5190
5205
|
closable: !1,
|
|
5191
5206
|
placement: "right",
|
|
5192
|
-
open:
|
|
5207
|
+
open: v.value,
|
|
5193
5208
|
bodyStyle: {
|
|
5194
5209
|
padding: 0
|
|
5195
5210
|
},
|
|
@@ -5197,7 +5212,7 @@ const {
|
|
|
5197
5212
|
}, {
|
|
5198
5213
|
default: () => [n(zi, {
|
|
5199
5214
|
settingValue: w.value,
|
|
5200
|
-
onChange: (F, P,
|
|
5215
|
+
onChange: (F, P, W) => E(F, W, {
|
|
5201
5216
|
subKey: P
|
|
5202
5217
|
})
|
|
5203
5218
|
}, null)]
|
|
@@ -5205,7 +5220,7 @@ const {
|
|
|
5205
5220
|
}));
|
|
5206
5221
|
};
|
|
5207
5222
|
}
|
|
5208
|
-
}), ji = new
|
|
5223
|
+
}), ji = new S("backInLeft", {
|
|
5209
5224
|
"0%": {
|
|
5210
5225
|
opacity: 0.7,
|
|
5211
5226
|
transform: "translateX(-2000px) scale(0.7)"
|
|
@@ -5218,7 +5233,7 @@ const {
|
|
|
5218
5233
|
opacity: 1,
|
|
5219
5234
|
transform: "scale(1)"
|
|
5220
5235
|
}
|
|
5221
|
-
}), Ei = new
|
|
5236
|
+
}), Ei = new S("backInRight", {
|
|
5222
5237
|
"0%": {
|
|
5223
5238
|
opacity: 0.7,
|
|
5224
5239
|
transform: "translateX(2000px) scale(0.7)"
|
|
@@ -5231,7 +5246,7 @@ const {
|
|
|
5231
5246
|
opacity: 1,
|
|
5232
5247
|
transform: "scale(1)"
|
|
5233
5248
|
}
|
|
5234
|
-
}), Ki = new
|
|
5249
|
+
}), Ki = new S("backInUp", {
|
|
5235
5250
|
"0%": {
|
|
5236
5251
|
opacity: 0.7,
|
|
5237
5252
|
transform: "translateY(1200px) scale(0.7)"
|
|
@@ -5244,7 +5259,7 @@ const {
|
|
|
5244
5259
|
opacity: 1,
|
|
5245
5260
|
transform: "scale(1)"
|
|
5246
5261
|
}
|
|
5247
|
-
}), Wi = new
|
|
5262
|
+
}), Wi = new S("backInDown", {
|
|
5248
5263
|
"0%": {
|
|
5249
5264
|
opacity: 0.7,
|
|
5250
5265
|
transform: "translateY(-1200px) scale(0.7)"
|
|
@@ -5257,7 +5272,7 @@ const {
|
|
|
5257
5272
|
opacity: 1,
|
|
5258
5273
|
transform: "scale(1)"
|
|
5259
5274
|
}
|
|
5260
|
-
}), Ui = new
|
|
5275
|
+
}), Ui = new S("backOutLeft", {
|
|
5261
5276
|
"0%": {
|
|
5262
5277
|
opacity: 1,
|
|
5263
5278
|
transform: "scale(1)"
|
|
@@ -5270,7 +5285,7 @@ const {
|
|
|
5270
5285
|
opacity: 0.7,
|
|
5271
5286
|
transform: "translateX(-2000px) scale(0.7)"
|
|
5272
5287
|
}
|
|
5273
|
-
}), _i = new
|
|
5288
|
+
}), _i = new S("backOutRight", {
|
|
5274
5289
|
"0%": {
|
|
5275
5290
|
opacity: 1,
|
|
5276
5291
|
transform: "scale(1)"
|
|
@@ -5283,7 +5298,7 @@ const {
|
|
|
5283
5298
|
opacity: 0.7,
|
|
5284
5299
|
transform: "translateX(2000px) scale(0.7)"
|
|
5285
5300
|
}
|
|
5286
|
-
}), Xi = new
|
|
5301
|
+
}), Xi = new S("backOutUp", {
|
|
5287
5302
|
"0%": {
|
|
5288
5303
|
opacity: 1,
|
|
5289
5304
|
transform: "scale(1)"
|
|
@@ -5296,7 +5311,7 @@ const {
|
|
|
5296
5311
|
opacity: 0.7,
|
|
5297
5312
|
transform: "translateY(-700px) scale(0.7)"
|
|
5298
5313
|
}
|
|
5299
|
-
}), Vi = new
|
|
5314
|
+
}), Vi = new S("backOutDown", {
|
|
5300
5315
|
"0%": {
|
|
5301
5316
|
opacity: 1,
|
|
5302
5317
|
transform: "scale(1)"
|
|
@@ -5343,7 +5358,7 @@ const {
|
|
|
5343
5358
|
animationFillMode: "both",
|
|
5344
5359
|
animationName: Vi
|
|
5345
5360
|
}
|
|
5346
|
-
}), qi = new
|
|
5361
|
+
}), qi = new S("bounceIn", {
|
|
5347
5362
|
"from,20%,40%,60%,80%,to": {
|
|
5348
5363
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
5349
5364
|
},
|
|
@@ -5367,7 +5382,7 @@ const {
|
|
|
5367
5382
|
opacity: 1,
|
|
5368
5383
|
transform: "scale3d(1, 1, 1)"
|
|
5369
5384
|
}
|
|
5370
|
-
}), Qi = new
|
|
5385
|
+
}), Qi = new S("bounceInLeft", {
|
|
5371
5386
|
"from,60%,75%,90%,to": {
|
|
5372
5387
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
5373
5388
|
},
|
|
@@ -5388,7 +5403,7 @@ const {
|
|
|
5388
5403
|
to: {
|
|
5389
5404
|
transform: "translate3d(0, 0, 0)"
|
|
5390
5405
|
}
|
|
5391
|
-
}), Zi = new
|
|
5406
|
+
}), Zi = new S("bounceInRight", {
|
|
5392
5407
|
"from,60%,75%,90%,to": {
|
|
5393
5408
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
5394
5409
|
},
|
|
@@ -5409,7 +5424,7 @@ const {
|
|
|
5409
5424
|
to: {
|
|
5410
5425
|
transform: "translate3d(0, 0, 0)"
|
|
5411
5426
|
}
|
|
5412
|
-
}), Ji = new
|
|
5427
|
+
}), Ji = new S("bounceInDown", {
|
|
5413
5428
|
"from,60%,75%,90%,to": {
|
|
5414
5429
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
5415
5430
|
},
|
|
@@ -5430,7 +5445,7 @@ const {
|
|
|
5430
5445
|
to: {
|
|
5431
5446
|
transform: "translate3d(0, 0, 0)"
|
|
5432
5447
|
}
|
|
5433
|
-
}), el = new
|
|
5448
|
+
}), el = new S("bounceInUp", {
|
|
5434
5449
|
"from,60%,75%,90%,to": {
|
|
5435
5450
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
5436
5451
|
},
|
|
@@ -5451,7 +5466,7 @@ const {
|
|
|
5451
5466
|
to: {
|
|
5452
5467
|
transform: "translate3d(0, 0, 0)"
|
|
5453
5468
|
}
|
|
5454
|
-
}), tl = new
|
|
5469
|
+
}), tl = new S("bounceOut", {
|
|
5455
5470
|
"20%": {
|
|
5456
5471
|
transform: "scale3d(0.9, 0.9, 0.9)"
|
|
5457
5472
|
},
|
|
@@ -5465,7 +5480,7 @@ const {
|
|
|
5465
5480
|
opacity: 0,
|
|
5466
5481
|
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
5467
5482
|
}
|
|
5468
|
-
}), nl = new
|
|
5483
|
+
}), nl = new S("bounceOutLeft", {
|
|
5469
5484
|
"20%": {
|
|
5470
5485
|
opacity: 1,
|
|
5471
5486
|
transform: "translate3d(20px, 0, 0) scaleX(0.9)"
|
|
@@ -5474,7 +5489,7 @@ const {
|
|
|
5474
5489
|
opacity: 0,
|
|
5475
5490
|
transform: "translate3d(-2000px, 0, 0) scaleX(2)"
|
|
5476
5491
|
}
|
|
5477
|
-
}), al = new
|
|
5492
|
+
}), al = new S("bounceOutRight", {
|
|
5478
5493
|
"20%": {
|
|
5479
5494
|
opacity: 1,
|
|
5480
5495
|
transform: "translate3d(-20px, 0, 0) scaleX(0.9)"
|
|
@@ -5483,7 +5498,7 @@ const {
|
|
|
5483
5498
|
opacity: 0,
|
|
5484
5499
|
transform: "translate3d(2000px, 0, 0) scaleX(2)"
|
|
5485
5500
|
}
|
|
5486
|
-
}), ol = new
|
|
5501
|
+
}), ol = new S("bounceOutDown", {
|
|
5487
5502
|
"20%": {
|
|
5488
5503
|
transform: "translate3d(0, 10px, 0) scaleY(0.985)"
|
|
5489
5504
|
},
|
|
@@ -5495,7 +5510,7 @@ const {
|
|
|
5495
5510
|
opacity: 0,
|
|
5496
5511
|
transform: "translate3d(0, 2000px, 0) scaleY(3)"
|
|
5497
5512
|
}
|
|
5498
|
-
}), il = new
|
|
5513
|
+
}), il = new S("bounceOutUp", {
|
|
5499
5514
|
"20%": {
|
|
5500
5515
|
transform: "translate3d(0, -10px, 0) scaleY(0.985)"
|
|
5501
5516
|
},
|
|
@@ -5551,14 +5566,14 @@ const {
|
|
|
5551
5566
|
animationFillMode: "both",
|
|
5552
5567
|
animationName: il
|
|
5553
5568
|
}
|
|
5554
|
-
}), sl = new
|
|
5569
|
+
}), sl = new S("fadeIn", {
|
|
5555
5570
|
from: {
|
|
5556
5571
|
opacity: 0
|
|
5557
5572
|
},
|
|
5558
5573
|
to: {
|
|
5559
5574
|
opacity: 1
|
|
5560
5575
|
}
|
|
5561
|
-
}), cl = new
|
|
5576
|
+
}), cl = new S("fadeInLeft", {
|
|
5562
5577
|
from: {
|
|
5563
5578
|
opacity: 0,
|
|
5564
5579
|
transform: "translate3d(-100%, 0, 0)"
|
|
@@ -5567,7 +5582,7 @@ const {
|
|
|
5567
5582
|
opacity: 1,
|
|
5568
5583
|
transform: "translate3d(0, 0, 0)"
|
|
5569
5584
|
}
|
|
5570
|
-
}), ul = new
|
|
5585
|
+
}), ul = new S("fadeInRight", {
|
|
5571
5586
|
from: {
|
|
5572
5587
|
opacity: 0,
|
|
5573
5588
|
transform: "translate3d(100%, 0, 0)"
|
|
@@ -5576,7 +5591,7 @@ const {
|
|
|
5576
5591
|
opacity: 1,
|
|
5577
5592
|
transform: "translate3d(0, 0, 0)"
|
|
5578
5593
|
}
|
|
5579
|
-
}), dl = new
|
|
5594
|
+
}), dl = new S("fadeInDown", {
|
|
5580
5595
|
from: {
|
|
5581
5596
|
opacity: 0,
|
|
5582
5597
|
transform: "translate3d(0, -100%, 0)"
|
|
@@ -5585,7 +5600,7 @@ const {
|
|
|
5585
5600
|
opacity: 1,
|
|
5586
5601
|
transform: "translate3d(0, 0, 0)"
|
|
5587
5602
|
}
|
|
5588
|
-
}), ml = new
|
|
5603
|
+
}), ml = new S("fadeInUp", {
|
|
5589
5604
|
from: {
|
|
5590
5605
|
opacity: 0,
|
|
5591
5606
|
transform: "translate3d(0, 100%, 0)"
|
|
@@ -5594,7 +5609,7 @@ const {
|
|
|
5594
5609
|
opacity: 1,
|
|
5595
5610
|
transform: "translate3d(0, 0, 0)"
|
|
5596
5611
|
}
|
|
5597
|
-
}), fl = new
|
|
5612
|
+
}), fl = new S("fadeInDownBig", {
|
|
5598
5613
|
from: {
|
|
5599
5614
|
opacity: 0,
|
|
5600
5615
|
transform: "translate3d(0, -2000px, 0)"
|
|
@@ -5603,7 +5618,7 @@ const {
|
|
|
5603
5618
|
opacity: 1,
|
|
5604
5619
|
transform: "translate3d(0, 0, 0)"
|
|
5605
5620
|
}
|
|
5606
|
-
}), hl = new
|
|
5621
|
+
}), hl = new S("fadeInUpBig", {
|
|
5607
5622
|
from: {
|
|
5608
5623
|
opacity: 0,
|
|
5609
5624
|
transform: "translate3d(0, 2000px, 0)"
|
|
@@ -5612,7 +5627,7 @@ const {
|
|
|
5612
5627
|
opacity: 1,
|
|
5613
5628
|
transform: "translate3d(0, 0, 0)"
|
|
5614
5629
|
}
|
|
5615
|
-
}), gl = new
|
|
5630
|
+
}), gl = new S("fadeInLeftBig", {
|
|
5616
5631
|
from: {
|
|
5617
5632
|
opacity: 0,
|
|
5618
5633
|
transform: "translate3d(-2000px, 0, 0)"
|
|
@@ -5621,7 +5636,7 @@ const {
|
|
|
5621
5636
|
opacity: 1,
|
|
5622
5637
|
transform: "translate3d(0, 0, 0)"
|
|
5623
5638
|
}
|
|
5624
|
-
}), yl = new
|
|
5639
|
+
}), yl = new S("fadeInRightBig", {
|
|
5625
5640
|
from: {
|
|
5626
5641
|
opacity: 0,
|
|
5627
5642
|
transform: "translate3d(2000px, 0, 0)"
|
|
@@ -5630,7 +5645,7 @@ const {
|
|
|
5630
5645
|
opacity: 1,
|
|
5631
5646
|
transform: "translate3d(0, 0, 0)"
|
|
5632
5647
|
}
|
|
5633
|
-
}), bl = new
|
|
5648
|
+
}), bl = new S("fadeInTopLeft", {
|
|
5634
5649
|
from: {
|
|
5635
5650
|
opacity: 0,
|
|
5636
5651
|
transform: "translate3d(-100%, -100%, 0)"
|
|
@@ -5639,7 +5654,7 @@ const {
|
|
|
5639
5654
|
opacity: 1,
|
|
5640
5655
|
transform: "translate3d(0, 0, 0)"
|
|
5641
5656
|
}
|
|
5642
|
-
}), vl = new
|
|
5657
|
+
}), vl = new S("fadeInBottomRight", {
|
|
5643
5658
|
from: {
|
|
5644
5659
|
opacity: 0,
|
|
5645
5660
|
transform: "translate3d(100%, 100%, 0)"
|
|
@@ -5648,7 +5663,7 @@ const {
|
|
|
5648
5663
|
opacity: 1,
|
|
5649
5664
|
transform: "translate3d(0, 0, 0)"
|
|
5650
5665
|
}
|
|
5651
|
-
}), pl = new
|
|
5666
|
+
}), pl = new S("fadeInTopRight", {
|
|
5652
5667
|
from: {
|
|
5653
5668
|
opacity: 0,
|
|
5654
5669
|
transform: "translate3d(100%, -100%, 0)"
|
|
@@ -5657,7 +5672,7 @@ const {
|
|
|
5657
5672
|
opacity: 1,
|
|
5658
5673
|
transform: "translate3d(0, 0, 0)"
|
|
5659
5674
|
}
|
|
5660
|
-
}), Cl = new
|
|
5675
|
+
}), Cl = new S("fadeInBottomLeft", {
|
|
5661
5676
|
from: {
|
|
5662
5677
|
opacity: 0,
|
|
5663
5678
|
transform: "translate3d(-100%, 100%, 0)"
|
|
@@ -5666,14 +5681,14 @@ const {
|
|
|
5666
5681
|
opacity: 1,
|
|
5667
5682
|
transform: "translate3d(0, 0, 0)"
|
|
5668
5683
|
}
|
|
5669
|
-
}), xl = new
|
|
5684
|
+
}), xl = new S("fadeOut", {
|
|
5670
5685
|
from: {
|
|
5671
5686
|
opacity: 1
|
|
5672
5687
|
},
|
|
5673
5688
|
to: {
|
|
5674
5689
|
opacity: 0
|
|
5675
5690
|
}
|
|
5676
|
-
}), Sl = new
|
|
5691
|
+
}), Sl = new S("fadeOutLeft", {
|
|
5677
5692
|
from: {
|
|
5678
5693
|
opacity: 1
|
|
5679
5694
|
},
|
|
@@ -5681,7 +5696,7 @@ const {
|
|
|
5681
5696
|
opacity: 0,
|
|
5682
5697
|
transform: "translate3d(-100%, 0, 0)"
|
|
5683
5698
|
}
|
|
5684
|
-
}), Il = new
|
|
5699
|
+
}), Il = new S("fadeOutRight", {
|
|
5685
5700
|
from: {
|
|
5686
5701
|
opacity: 1
|
|
5687
5702
|
},
|
|
@@ -5689,7 +5704,7 @@ const {
|
|
|
5689
5704
|
opacity: 0,
|
|
5690
5705
|
transform: "translate3d(100%, 0, 0)"
|
|
5691
5706
|
}
|
|
5692
|
-
}), wl = new
|
|
5707
|
+
}), wl = new S("fadeOutDown", {
|
|
5693
5708
|
from: {
|
|
5694
5709
|
opacity: 1
|
|
5695
5710
|
},
|
|
@@ -5697,7 +5712,7 @@ const {
|
|
|
5697
5712
|
opacity: 0,
|
|
5698
5713
|
transform: "translate3d(0, 100%, 0)"
|
|
5699
5714
|
}
|
|
5700
|
-
}), Rl = new
|
|
5715
|
+
}), Rl = new S("fadeOutUp", {
|
|
5701
5716
|
from: {
|
|
5702
5717
|
opacity: 1
|
|
5703
5718
|
},
|
|
@@ -5705,7 +5720,7 @@ const {
|
|
|
5705
5720
|
opacity: 0,
|
|
5706
5721
|
transform: "translate3d(0, -100%, 0)"
|
|
5707
5722
|
}
|
|
5708
|
-
}), $l = new
|
|
5723
|
+
}), $l = new S("fadeOutDownBig", {
|
|
5709
5724
|
from: {
|
|
5710
5725
|
opacity: 1
|
|
5711
5726
|
},
|
|
@@ -5713,7 +5728,7 @@ const {
|
|
|
5713
5728
|
opacity: 0,
|
|
5714
5729
|
transform: "translate3d(0, 2000px, 0)"
|
|
5715
5730
|
}
|
|
5716
|
-
}),
|
|
5731
|
+
}), Ml = new S("fadeOutUpBig", {
|
|
5717
5732
|
from: {
|
|
5718
5733
|
opacity: 1
|
|
5719
5734
|
},
|
|
@@ -5721,7 +5736,7 @@ const {
|
|
|
5721
5736
|
opacity: 0,
|
|
5722
5737
|
transform: "translate3d(0, -2000px, 0)"
|
|
5723
5738
|
}
|
|
5724
|
-
}),
|
|
5739
|
+
}), Bl = new S("fadeOutLeftBig", {
|
|
5725
5740
|
from: {
|
|
5726
5741
|
opacity: 1
|
|
5727
5742
|
},
|
|
@@ -5729,7 +5744,7 @@ const {
|
|
|
5729
5744
|
opacity: 0,
|
|
5730
5745
|
transform: "translate3d(-2000px, 0, 0)"
|
|
5731
5746
|
}
|
|
5732
|
-
}), Ll = new
|
|
5747
|
+
}), Ll = new S("fadeOutRightBig", {
|
|
5733
5748
|
from: {
|
|
5734
5749
|
opacity: 1
|
|
5735
5750
|
},
|
|
@@ -5737,7 +5752,7 @@ const {
|
|
|
5737
5752
|
opacity: 0,
|
|
5738
5753
|
transform: "translate3d(2000px, 0, 0)"
|
|
5739
5754
|
}
|
|
5740
|
-
}), Ol = new
|
|
5755
|
+
}), Ol = new S("fadeOutTopLeft", {
|
|
5741
5756
|
from: {
|
|
5742
5757
|
opacity: 1,
|
|
5743
5758
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -5746,7 +5761,7 @@ const {
|
|
|
5746
5761
|
opacity: 0,
|
|
5747
5762
|
transform: "translate3d(-100%, -100%, 0)"
|
|
5748
5763
|
}
|
|
5749
|
-
}), Fl = new
|
|
5764
|
+
}), Fl = new S("fadeOutBottomRight", {
|
|
5750
5765
|
from: {
|
|
5751
5766
|
opacity: 1,
|
|
5752
5767
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -5755,7 +5770,7 @@ const {
|
|
|
5755
5770
|
opacity: 0,
|
|
5756
5771
|
transform: "translate3d(100%, 100%, 0)"
|
|
5757
5772
|
}
|
|
5758
|
-
}), kl = new
|
|
5773
|
+
}), kl = new S("fadeOutTopRight", {
|
|
5759
5774
|
from: {
|
|
5760
5775
|
opacity: 1,
|
|
5761
5776
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -5764,7 +5779,7 @@ const {
|
|
|
5764
5779
|
opacity: 0,
|
|
5765
5780
|
transform: "translate3d(100%, -100%, 0)"
|
|
5766
5781
|
}
|
|
5767
|
-
}), Tl = new
|
|
5782
|
+
}), Tl = new S("fadeOutBottomLeft", {
|
|
5768
5783
|
from: {
|
|
5769
5784
|
opacity: 1,
|
|
5770
5785
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -5853,11 +5868,11 @@ const {
|
|
|
5853
5868
|
},
|
|
5854
5869
|
"&.fadeOutUpBig": {
|
|
5855
5870
|
animationFillMode: "both",
|
|
5856
|
-
animationName:
|
|
5871
|
+
animationName: Ml
|
|
5857
5872
|
},
|
|
5858
5873
|
"&.fadeOutLeftBig": {
|
|
5859
5874
|
animationFillMode: "both",
|
|
5860
|
-
animationName:
|
|
5875
|
+
animationName: Bl
|
|
5861
5876
|
},
|
|
5862
5877
|
"&.fadeOutRightBig": {
|
|
5863
5878
|
animationFillMode: "both",
|
|
@@ -5879,7 +5894,7 @@ const {
|
|
|
5879
5894
|
animationFillMode: "both",
|
|
5880
5895
|
animationName: Tl
|
|
5881
5896
|
}
|
|
5882
|
-
}), zl = new
|
|
5897
|
+
}), zl = new S("flipInX", {
|
|
5883
5898
|
from: {
|
|
5884
5899
|
opacity: 0,
|
|
5885
5900
|
animationTimingFunction: "ease-in",
|
|
@@ -5899,7 +5914,7 @@ const {
|
|
|
5899
5914
|
to: {
|
|
5900
5915
|
transform: "perspective(400px)"
|
|
5901
5916
|
}
|
|
5902
|
-
}), Dl = new
|
|
5917
|
+
}), Dl = new S("flipInY", {
|
|
5903
5918
|
from: {
|
|
5904
5919
|
opacity: 0,
|
|
5905
5920
|
animationTimingFunction: "ease-in",
|
|
@@ -5919,7 +5934,7 @@ const {
|
|
|
5919
5934
|
to: {
|
|
5920
5935
|
transform: "perspective(400px)"
|
|
5921
5936
|
}
|
|
5922
|
-
}), Al = new
|
|
5937
|
+
}), Al = new S("flipOutX", {
|
|
5923
5938
|
from: {
|
|
5924
5939
|
transform: "perspective(400px)"
|
|
5925
5940
|
},
|
|
@@ -5931,7 +5946,7 @@ const {
|
|
|
5931
5946
|
opacity: 0,
|
|
5932
5947
|
transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
|
|
5933
5948
|
}
|
|
5934
|
-
}), Hl = new
|
|
5949
|
+
}), Hl = new S("flipOutY", {
|
|
5935
5950
|
from: {
|
|
5936
5951
|
transform: "perspective(400px)"
|
|
5937
5952
|
},
|
|
@@ -5967,7 +5982,7 @@ const {
|
|
|
5967
5982
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
5968
5983
|
animationName: Hl
|
|
5969
5984
|
}
|
|
5970
|
-
}), Kl = new
|
|
5985
|
+
}), Kl = new S("lightSpeedInLeft", {
|
|
5971
5986
|
from: {
|
|
5972
5987
|
opacity: 0,
|
|
5973
5988
|
transform: "translate3d(-100%, 0, 0) skewX(30deg)"
|
|
@@ -5982,7 +5997,7 @@ const {
|
|
|
5982
5997
|
to: {
|
|
5983
5998
|
transform: "translate3d(0, 0, 0)"
|
|
5984
5999
|
}
|
|
5985
|
-
}), Wl = new
|
|
6000
|
+
}), Wl = new S("lightSpeedInRight", {
|
|
5986
6001
|
from: {
|
|
5987
6002
|
opacity: 0,
|
|
5988
6003
|
transform: "translate3d(100%, 0, 0) skewX(-30deg)"
|
|
@@ -5997,7 +6012,7 @@ const {
|
|
|
5997
6012
|
to: {
|
|
5998
6013
|
transform: "translate3d(0, 0, 0)"
|
|
5999
6014
|
}
|
|
6000
|
-
}), Ul = new
|
|
6015
|
+
}), Ul = new S("lightSpeedOutLeft", {
|
|
6001
6016
|
from: {
|
|
6002
6017
|
opacity: 1
|
|
6003
6018
|
},
|
|
@@ -6005,7 +6020,7 @@ const {
|
|
|
6005
6020
|
opacity: 0,
|
|
6006
6021
|
transform: "translate3d(-100%, 0, 0) skewX(-30deg)"
|
|
6007
6022
|
}
|
|
6008
|
-
}), _l = new
|
|
6023
|
+
}), _l = new S("lightSpeedOutRight", {
|
|
6009
6024
|
from: {
|
|
6010
6025
|
opacity: 1
|
|
6011
6026
|
},
|
|
@@ -6035,7 +6050,7 @@ const {
|
|
|
6035
6050
|
animationTimingFunction: "ease-in",
|
|
6036
6051
|
animationName: _l
|
|
6037
6052
|
}
|
|
6038
|
-
}), Gl = new
|
|
6053
|
+
}), Gl = new S("rotateIn", {
|
|
6039
6054
|
from: {
|
|
6040
6055
|
opacity: 0,
|
|
6041
6056
|
transform: "rotate3d(0, 0, 1, -200deg)"
|
|
@@ -6044,7 +6059,7 @@ const {
|
|
|
6044
6059
|
opacity: 1,
|
|
6045
6060
|
transform: "translate3d(0, 0, 0)"
|
|
6046
6061
|
}
|
|
6047
|
-
}), Yl = new
|
|
6062
|
+
}), Yl = new S("rotateInDownLeft", {
|
|
6048
6063
|
from: {
|
|
6049
6064
|
opacity: 0,
|
|
6050
6065
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
@@ -6053,7 +6068,7 @@ const {
|
|
|
6053
6068
|
opacity: 1,
|
|
6054
6069
|
transform: "translate3d(0, 0, 0)"
|
|
6055
6070
|
}
|
|
6056
|
-
}), ql = new
|
|
6071
|
+
}), ql = new S("rotateInDownRight", {
|
|
6057
6072
|
from: {
|
|
6058
6073
|
opacity: 0,
|
|
6059
6074
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
@@ -6062,7 +6077,7 @@ const {
|
|
|
6062
6077
|
opacity: 1,
|
|
6063
6078
|
transform: "translate3d(0, 0, 0)"
|
|
6064
6079
|
}
|
|
6065
|
-
}), Ql = new
|
|
6080
|
+
}), Ql = new S("rotateInUpLeft", {
|
|
6066
6081
|
from: {
|
|
6067
6082
|
opacity: 0,
|
|
6068
6083
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
@@ -6071,7 +6086,7 @@ const {
|
|
|
6071
6086
|
opacity: 1,
|
|
6072
6087
|
transform: "translate3d(0, 0, 0)"
|
|
6073
6088
|
}
|
|
6074
|
-
}), Zl = new
|
|
6089
|
+
}), Zl = new S("rotateInUpRight", {
|
|
6075
6090
|
from: {
|
|
6076
6091
|
opacity: 0,
|
|
6077
6092
|
transform: "rotate3d(0, 0, 1, -90deg)"
|
|
@@ -6080,7 +6095,7 @@ const {
|
|
|
6080
6095
|
opacity: 1,
|
|
6081
6096
|
transform: "translate3d(0, 0, 0)"
|
|
6082
6097
|
}
|
|
6083
|
-
}), Jl = new
|
|
6098
|
+
}), Jl = new S("rotateOut", {
|
|
6084
6099
|
from: {
|
|
6085
6100
|
opacity: 1
|
|
6086
6101
|
},
|
|
@@ -6088,7 +6103,7 @@ const {
|
|
|
6088
6103
|
opacity: 0,
|
|
6089
6104
|
transform: "rotate3d(0, 0, 1, 200deg)"
|
|
6090
6105
|
}
|
|
6091
|
-
}), er = new
|
|
6106
|
+
}), er = new S("rotateOutDownLeft", {
|
|
6092
6107
|
from: {
|
|
6093
6108
|
opacity: 1
|
|
6094
6109
|
},
|
|
@@ -6096,7 +6111,7 @@ const {
|
|
|
6096
6111
|
opacity: 0,
|
|
6097
6112
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
6098
6113
|
}
|
|
6099
|
-
}), tr = new
|
|
6114
|
+
}), tr = new S("rotateOutDownRight", {
|
|
6100
6115
|
from: {
|
|
6101
6116
|
opacity: 1
|
|
6102
6117
|
},
|
|
@@ -6104,7 +6119,7 @@ const {
|
|
|
6104
6119
|
opacity: 0,
|
|
6105
6120
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
6106
6121
|
}
|
|
6107
|
-
}), nr = new
|
|
6122
|
+
}), nr = new S("rotateOutUpLeft", {
|
|
6108
6123
|
from: {
|
|
6109
6124
|
opacity: 1
|
|
6110
6125
|
},
|
|
@@ -6112,7 +6127,7 @@ const {
|
|
|
6112
6127
|
opacity: 0,
|
|
6113
6128
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
6114
6129
|
}
|
|
6115
|
-
}), ar = new
|
|
6130
|
+
}), ar = new S("rotateOutUpRight", {
|
|
6116
6131
|
from: {
|
|
6117
6132
|
opacity: 1
|
|
6118
6133
|
},
|
|
@@ -6172,7 +6187,7 @@ const {
|
|
|
6172
6187
|
transformOrigin: "right bottom",
|
|
6173
6188
|
animationName: ar
|
|
6174
6189
|
}
|
|
6175
|
-
}), lr = new
|
|
6190
|
+
}), lr = new S("rollIn", {
|
|
6176
6191
|
from: {
|
|
6177
6192
|
opacity: 0,
|
|
6178
6193
|
transform: "translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"
|
|
@@ -6181,7 +6196,7 @@ const {
|
|
|
6181
6196
|
opacity: 1,
|
|
6182
6197
|
transform: "translate3d(0, 0, 0)"
|
|
6183
6198
|
}
|
|
6184
|
-
}), rr = new
|
|
6199
|
+
}), rr = new S("rollOut", {
|
|
6185
6200
|
from: {
|
|
6186
6201
|
opacity: 1
|
|
6187
6202
|
},
|
|
@@ -6199,7 +6214,7 @@ const {
|
|
|
6199
6214
|
animationFillMode: "both",
|
|
6200
6215
|
animationName: rr
|
|
6201
6216
|
}
|
|
6202
|
-
}), ur = new
|
|
6217
|
+
}), ur = new S("zoomIn", {
|
|
6203
6218
|
from: {
|
|
6204
6219
|
opacity: 0,
|
|
6205
6220
|
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
@@ -6207,7 +6222,7 @@ const {
|
|
|
6207
6222
|
"50%": {
|
|
6208
6223
|
opacity: 1
|
|
6209
6224
|
}
|
|
6210
|
-
}), dr = new
|
|
6225
|
+
}), dr = new S("zoomInDown", {
|
|
6211
6226
|
from: {
|
|
6212
6227
|
opacity: 0,
|
|
6213
6228
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",
|
|
@@ -6218,7 +6233,7 @@ const {
|
|
|
6218
6233
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
6219
6234
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
6220
6235
|
}
|
|
6221
|
-
}), mr = new
|
|
6236
|
+
}), mr = new S("zoomInLeft", {
|
|
6222
6237
|
from: {
|
|
6223
6238
|
opacity: 0,
|
|
6224
6239
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",
|
|
@@ -6229,7 +6244,7 @@ const {
|
|
|
6229
6244
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",
|
|
6230
6245
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
6231
6246
|
}
|
|
6232
|
-
}), fr = new
|
|
6247
|
+
}), fr = new S("zoomInRight", {
|
|
6233
6248
|
from: {
|
|
6234
6249
|
opacity: 0,
|
|
6235
6250
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",
|
|
@@ -6240,7 +6255,7 @@ const {
|
|
|
6240
6255
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",
|
|
6241
6256
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
6242
6257
|
}
|
|
6243
|
-
}), hr = new
|
|
6258
|
+
}), hr = new S("zoomInUp", {
|
|
6244
6259
|
from: {
|
|
6245
6260
|
opacity: 0,
|
|
6246
6261
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",
|
|
@@ -6251,7 +6266,7 @@ const {
|
|
|
6251
6266
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
6252
6267
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
6253
6268
|
}
|
|
6254
|
-
}), gr = new
|
|
6269
|
+
}), gr = new S("zoomOut", {
|
|
6255
6270
|
from: {
|
|
6256
6271
|
opacity: 1
|
|
6257
6272
|
},
|
|
@@ -6262,7 +6277,7 @@ const {
|
|
|
6262
6277
|
to: {
|
|
6263
6278
|
opacity: 0
|
|
6264
6279
|
}
|
|
6265
|
-
}), yr = new
|
|
6280
|
+
}), yr = new S("zoomOutDown", {
|
|
6266
6281
|
"40%": {
|
|
6267
6282
|
opacity: 1,
|
|
6268
6283
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
@@ -6273,7 +6288,7 @@ const {
|
|
|
6273
6288
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
|
|
6274
6289
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
6275
6290
|
}
|
|
6276
|
-
}), br = new
|
|
6291
|
+
}), br = new S("zoomOutLeft", {
|
|
6277
6292
|
"40%": {
|
|
6278
6293
|
opacity: 1,
|
|
6279
6294
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
|
|
@@ -6282,7 +6297,7 @@ const {
|
|
|
6282
6297
|
opacity: 0,
|
|
6283
6298
|
transform: "scale(0.1) translate3d(-2000px, 0, 0)"
|
|
6284
6299
|
}
|
|
6285
|
-
}), vr = new
|
|
6300
|
+
}), vr = new S("zoomOutRight", {
|
|
6286
6301
|
"40%": {
|
|
6287
6302
|
opacity: 1,
|
|
6288
6303
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
|
|
@@ -6291,7 +6306,7 @@ const {
|
|
|
6291
6306
|
opacity: 0,
|
|
6292
6307
|
transform: "scale(0.1) translate3d(2000px, 0, 0)"
|
|
6293
6308
|
}
|
|
6294
|
-
}), pr = new
|
|
6309
|
+
}), pr = new S("zoomOutUp", {
|
|
6295
6310
|
"40%": {
|
|
6296
6311
|
opacity: 1,
|
|
6297
6312
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
@@ -6348,7 +6363,7 @@ const {
|
|
|
6348
6363
|
transformOrigin: "center bottom",
|
|
6349
6364
|
animationName: pr
|
|
6350
6365
|
}
|
|
6351
|
-
}), Sr = new
|
|
6366
|
+
}), Sr = new S("slideInDown", {
|
|
6352
6367
|
from: {
|
|
6353
6368
|
transform: "translate3d(0, -100%, 0)",
|
|
6354
6369
|
visibility: "visible"
|
|
@@ -6356,7 +6371,7 @@ const {
|
|
|
6356
6371
|
to: {
|
|
6357
6372
|
transform: "translate3d(0, 0, 0)"
|
|
6358
6373
|
}
|
|
6359
|
-
}), Ir = new
|
|
6374
|
+
}), Ir = new S("slideInLeft", {
|
|
6360
6375
|
from: {
|
|
6361
6376
|
transform: "translate3d(-100%, 0, 0)",
|
|
6362
6377
|
visibility: "visible"
|
|
@@ -6364,7 +6379,7 @@ const {
|
|
|
6364
6379
|
to: {
|
|
6365
6380
|
transform: "translate3d(0, 0, 0)"
|
|
6366
6381
|
}
|
|
6367
|
-
}), wr = new
|
|
6382
|
+
}), wr = new S("slideInRight", {
|
|
6368
6383
|
from: {
|
|
6369
6384
|
transform: "translate3d(100%, 0, 0)",
|
|
6370
6385
|
visibility: "visible"
|
|
@@ -6372,7 +6387,7 @@ const {
|
|
|
6372
6387
|
to: {
|
|
6373
6388
|
transform: "translate3d(0, 0, 0)"
|
|
6374
6389
|
}
|
|
6375
|
-
}), Rr = new
|
|
6390
|
+
}), Rr = new S("slideInUp", {
|
|
6376
6391
|
from: {
|
|
6377
6392
|
transform: "translate3d(0, 100%, 0)",
|
|
6378
6393
|
visibility: "visible"
|
|
@@ -6380,7 +6395,7 @@ const {
|
|
|
6380
6395
|
to: {
|
|
6381
6396
|
transform: "translate3d(0, 0, 0)"
|
|
6382
6397
|
}
|
|
6383
|
-
}), $r = new
|
|
6398
|
+
}), $r = new S("slideOutDown", {
|
|
6384
6399
|
from: {
|
|
6385
6400
|
transform: "translate3d(0, 0, 0)"
|
|
6386
6401
|
},
|
|
@@ -6388,7 +6403,7 @@ const {
|
|
|
6388
6403
|
transform: "translate3d(0, 100%, 0)",
|
|
6389
6404
|
visibility: "hidden"
|
|
6390
6405
|
}
|
|
6391
|
-
}),
|
|
6406
|
+
}), Mr = new S("slideOutLeft", {
|
|
6392
6407
|
from: {
|
|
6393
6408
|
transform: "translate3d(0, 0, 0)"
|
|
6394
6409
|
},
|
|
@@ -6396,7 +6411,7 @@ const {
|
|
|
6396
6411
|
transform: "translate3d(-100%, 0, 0)",
|
|
6397
6412
|
visibility: "hidden"
|
|
6398
6413
|
}
|
|
6399
|
-
}),
|
|
6414
|
+
}), Br = new S("slideOutRight", {
|
|
6400
6415
|
from: {
|
|
6401
6416
|
transform: "translate3d(0, 0, 0)"
|
|
6402
6417
|
},
|
|
@@ -6404,7 +6419,7 @@ const {
|
|
|
6404
6419
|
transform: "translate3d(100%, 0, 0)",
|
|
6405
6420
|
visibility: "hidden"
|
|
6406
6421
|
}
|
|
6407
|
-
}), Lr = new
|
|
6422
|
+
}), Lr = new S("slideOutUp", {
|
|
6408
6423
|
from: {
|
|
6409
6424
|
transform: "translate3d(0, 0, 0)"
|
|
6410
6425
|
},
|
|
@@ -6436,11 +6451,11 @@ const {
|
|
|
6436
6451
|
},
|
|
6437
6452
|
"&.slideOutLeft": {
|
|
6438
6453
|
animationFillMode: "both",
|
|
6439
|
-
animationName:
|
|
6454
|
+
animationName: Mr
|
|
6440
6455
|
},
|
|
6441
6456
|
"&.slideOutRight": {
|
|
6442
6457
|
animationFillMode: "both",
|
|
6443
|
-
animationName:
|
|
6458
|
+
animationName: Br
|
|
6444
6459
|
},
|
|
6445
6460
|
"&.slideOutUp": {
|
|
6446
6461
|
animationFillMode: "both",
|
|
@@ -6509,29 +6524,29 @@ const rs = /* @__PURE__ */ j({
|
|
|
6509
6524
|
}), {
|
|
6510
6525
|
wrapSSR: o,
|
|
6511
6526
|
hashId: i
|
|
6512
|
-
} = Tr(a), l = (
|
|
6513
|
-
if (
|
|
6514
|
-
return
|
|
6515
|
-
let
|
|
6516
|
-
return
|
|
6517
|
-
}, s = (
|
|
6518
|
-
const
|
|
6519
|
-
if (
|
|
6527
|
+
} = Tr(a), l = (g, f) => {
|
|
6528
|
+
if (g.length === 0 || g === "x" || g === "y")
|
|
6529
|
+
return g;
|
|
6530
|
+
let d = f.indexOf(g);
|
|
6531
|
+
return d = d % 2 === 1 ? d - 1 : d + 1, f[d];
|
|
6532
|
+
}, s = (g) => {
|
|
6533
|
+
const f = Tt.preset.find((b) => e.name === b.name);
|
|
6534
|
+
if (f === void 0)
|
|
6520
6535
|
return "";
|
|
6521
|
-
let
|
|
6522
|
-
e.direction === void 0 ?
|
|
6523
|
-
const
|
|
6524
|
-
return
|
|
6525
|
-
}, r = R(() => [s(!1), `${a}-enter`, i.value].join(" ")),
|
|
6536
|
+
let d = "";
|
|
6537
|
+
e.direction === void 0 ? d = f.directions[0] : d = f.directions.find((b) => b === e.direction) || "", d = d === void 0 || d === "default" ? "" : d, d !== "" && (d = g && e.reverse ? l(d, f.directions) : d, d = d[0].toUpperCase() + d.substring(1));
|
|
6538
|
+
const y = g ? "Out" : "In";
|
|
6539
|
+
return f.name + y + d;
|
|
6540
|
+
}, r = R(() => [s(!1), `${a}-enter`, i.value].join(" ")), h = R(() => [s(!0), `${a}-leave`, i.value].join(" "));
|
|
6526
6541
|
return () => {
|
|
6527
|
-
var
|
|
6528
|
-
return e.disabled ? (
|
|
6542
|
+
var g;
|
|
6543
|
+
return e.disabled ? (g = t.default) == null ? void 0 : g.call(t) : o(n(Un, {
|
|
6529
6544
|
enterActiveClass: r.value,
|
|
6530
|
-
leaveActiveClass:
|
|
6545
|
+
leaveActiveClass: h.value
|
|
6531
6546
|
}, {
|
|
6532
6547
|
default: () => {
|
|
6533
|
-
var
|
|
6534
|
-
return [(
|
|
6548
|
+
var f;
|
|
6549
|
+
return [(f = t.default) == null ? void 0 : f.call(t)];
|
|
6535
6550
|
}
|
|
6536
6551
|
}));
|
|
6537
6552
|
};
|
|
@@ -6543,7 +6558,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6543
6558
|
},
|
|
6544
6559
|
onItemClick: Function
|
|
6545
6560
|
}, Pr = (e, t) => {
|
|
6546
|
-
if (e && typeof e == "string" &&
|
|
6561
|
+
if (e && typeof e == "string" && $t(e))
|
|
6547
6562
|
return n("img", {
|
|
6548
6563
|
src: e,
|
|
6549
6564
|
alt: "logo"
|
|
@@ -6561,7 +6576,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6561
6576
|
}, [a]);
|
|
6562
6577
|
}
|
|
6563
6578
|
return e;
|
|
6564
|
-
},
|
|
6579
|
+
}, Hn = /* @__PURE__ */ j({
|
|
6565
6580
|
props: {
|
|
6566
6581
|
hashId: String,
|
|
6567
6582
|
baseClassName: String,
|
|
@@ -6582,7 +6597,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6582
6597
|
class: `${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()
|
|
6583
6598
|
}, [n("div", {
|
|
6584
6599
|
class: `${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()
|
|
6585
|
-
}, [a.title]), n(
|
|
6600
|
+
}, [a.title]), n(Hn, {
|
|
6586
6601
|
hashId: e.hashId,
|
|
6587
6602
|
onItemClick: e.onItemClick,
|
|
6588
6603
|
appList: a == null ? void 0 : a.children,
|
|
@@ -6602,7 +6617,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6602
6617
|
})])]);
|
|
6603
6618
|
};
|
|
6604
6619
|
}
|
|
6605
|
-
}),
|
|
6620
|
+
}), jn = /* @__PURE__ */ j({
|
|
6606
6621
|
props: {
|
|
6607
6622
|
hashId: String,
|
|
6608
6623
|
baseClassName: String,
|
|
@@ -6623,7 +6638,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6623
6638
|
class: `${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()
|
|
6624
6639
|
}, [n("div", {
|
|
6625
6640
|
class: `${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()
|
|
6626
|
-
}, [a.title]), n(
|
|
6641
|
+
}, [a.title]), n(jn, {
|
|
6627
6642
|
hashId: e.hashId,
|
|
6628
6643
|
onItemClick: e.onItemClick,
|
|
6629
6644
|
appList: a == null ? void 0 : a.children,
|
|
@@ -6639,7 +6654,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6639
6654
|
href: e.onItemClick ? void 0 : a.url,
|
|
6640
6655
|
target: a.target,
|
|
6641
6656
|
rel: "noreferrer"
|
|
6642
|
-
}, [n(
|
|
6657
|
+
}, [n(Mo, {
|
|
6643
6658
|
logo: a.icon
|
|
6644
6659
|
}, null), n("div", null, [n("div", null, [a.title]), a.desc ? n("span", null, [a.desc]) : null])])]);
|
|
6645
6660
|
})])]);
|
|
@@ -6661,12 +6676,12 @@ const rs = /* @__PURE__ */ j({
|
|
|
6661
6676
|
};
|
|
6662
6677
|
return () => {
|
|
6663
6678
|
var s;
|
|
6664
|
-
return ((s = e.appList) == null ? void 0 : s.some((r) => !(r != null && r.desc))) ? a(n(
|
|
6679
|
+
return ((s = e.appList) == null ? void 0 : s.some((r) => !(r != null && r.desc))) ? a(n(Hn, {
|
|
6665
6680
|
hashId: o.value,
|
|
6666
6681
|
appList: e.appList,
|
|
6667
6682
|
onItemClick: e.onItemClick ? i : void 0,
|
|
6668
6683
|
baseClassName: `${t}-simple`
|
|
6669
|
-
}, null)) : a(n(
|
|
6684
|
+
}, null)) : a(n(jn, {
|
|
6670
6685
|
hashId: o.value,
|
|
6671
6686
|
appList: e.appList,
|
|
6672
6687
|
onItemClick: e.onItemClick ? i : void 0,
|
|
@@ -6677,10 +6692,10 @@ const rs = /* @__PURE__ */ j({
|
|
|
6677
6692
|
});
|
|
6678
6693
|
export {
|
|
6679
6694
|
ss as AppsLogoList,
|
|
6680
|
-
|
|
6695
|
+
Cn as BaseMenu,
|
|
6681
6696
|
Zo as DefaultHeader,
|
|
6682
6697
|
ts as GProLayout,
|
|
6683
|
-
|
|
6698
|
+
Wt as GlobalFooter,
|
|
6684
6699
|
os as PageContainer,
|
|
6685
6700
|
so as PageLoading,
|
|
6686
6701
|
ns as PageLock,
|
|
@@ -6688,22 +6703,22 @@ export {
|
|
|
6688
6703
|
as as RightContent,
|
|
6689
6704
|
bi as SearchPageInput,
|
|
6690
6705
|
ls as SettingDrawer,
|
|
6691
|
-
|
|
6692
|
-
|
|
6706
|
+
Gt as SiderMenuWrapper,
|
|
6707
|
+
Tt as animateSeting,
|
|
6693
6708
|
st as baseMenuProps,
|
|
6694
6709
|
Xo as checkThemeStatus,
|
|
6695
6710
|
zo as clearMenuItem,
|
|
6696
6711
|
Bn as coverToNewToken,
|
|
6697
6712
|
to as defaultContextKey,
|
|
6698
6713
|
jo as filterTree,
|
|
6699
|
-
|
|
6714
|
+
Mn as findLastKey,
|
|
6700
6715
|
Do as flatMap,
|
|
6701
|
-
|
|
6716
|
+
$n as getLastPath,
|
|
6702
6717
|
Ho as getMatchedList,
|
|
6703
6718
|
No as getMenuData,
|
|
6704
6719
|
Ao as getMenuFirstChildren,
|
|
6705
6720
|
_o as handleThemeConfig,
|
|
6706
|
-
|
|
6721
|
+
Rn as hanlePathKey,
|
|
6707
6722
|
no as provideProLayoutContext,
|
|
6708
6723
|
Vo as removeDuplicatesByName,
|
|
6709
6724
|
is as useLayoutMenu,
|