@gx-design-vue/pro-layout 0.1.0-beta.82 → 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/pro-layout.js +655 -644
- package/dist/pro-layout.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/pro-layout.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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 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
|
|
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
|
|
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
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";
|
|
@@ -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
|
}));
|
|
@@ -458,7 +458,7 @@ const Te = {
|
|
|
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(),
|
|
@@ -585,7 +585,7 @@ const ro = ["tabsVisible", "storageTabsBar", "collapsedWidth", "isChildrenLayout
|
|
|
585
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",
|
|
@@ -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
|
}, {
|
|
@@ -796,7 +796,7 @@ function yo(e) {
|
|
|
796
796
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
797
797
|
}
|
|
798
798
|
const bo = wt.TabPane, vo = ge.Item;
|
|
799
|
-
function
|
|
799
|
+
function U(e) {
|
|
800
800
|
return e.name;
|
|
801
801
|
}
|
|
802
802
|
const po = /* @__PURE__ */ j({
|
|
@@ -808,7 +808,7 @@ 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(), {
|
|
@@ -823,29 +823,29 @@ const po = /* @__PURE__ */ j({
|
|
|
823
823
|
suffixCls: "tabs-route"
|
|
824
824
|
}), {
|
|
825
825
|
wrapSSR: u,
|
|
826
|
-
hashId:
|
|
827
|
-
} = uo(b),
|
|
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 &&
|
|
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
843
|
}), I = R(() => Q(`${b}-wrap`, {
|
|
844
|
-
[`${
|
|
844
|
+
[`${x.value}`]: !0,
|
|
845
845
|
[`${b}-wrap-fixed`]: a.value,
|
|
846
846
|
[`${b}-wrap-loading`]: e.loading
|
|
847
|
-
})),
|
|
848
|
-
const
|
|
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(() => h.value, (
|
|
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: [`${b}-title`,
|
|
1046
|
-
}, [l.activeKey ===
|
|
1047
|
-
class: [`${b}-reload-btn`,
|
|
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: [`${b}-icon`,
|
|
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: [`${b}-close-btn`,
|
|
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: [`${b}-fixed`,
|
|
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(`${b}-dropdown-menu`,
|
|
1084
|
+
class: Q(`${b}-dropdown-menu`, x.value)
|
|
1085
1085
|
}, [n(vt, {
|
|
1086
|
-
class: [`${b}-dropdown-menu-btn`,
|
|
1087
|
-
onClick: () =>
|
|
1086
|
+
class: [`${b}-dropdown-menu-btn`, x.value],
|
|
1087
|
+
onClick: () => be("reloadPage", "activeKey")
|
|
1088
1088
|
}, null), n("div", {
|
|
1089
|
-
class: [`${b}-dropdown-menu-btn-divider`,
|
|
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,13 +1094,13 @@ const po = /* @__PURE__ */ j({
|
|
|
1094
1094
|
}, null)
|
|
1095
1095
|
}, {
|
|
1096
1096
|
default: () => [n(Fa, {
|
|
1097
|
-
class: [`${b}-dropdown-menu-btn`,
|
|
1097
|
+
class: [`${b}-dropdown-menu-btn`, x.value]
|
|
1098
1098
|
}, null)]
|
|
1099
1099
|
}), n("div", {
|
|
1100
|
-
class: [`${b}-dropdown-menu-btn-divider`,
|
|
1101
|
-
}, null), n(
|
|
1102
|
-
class: [`${b}-dropdown-menu-btn`,
|
|
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
|
};
|
|
@@ -1145,7 +1145,7 @@ const po = /* @__PURE__ */ j({
|
|
|
1145
1145
|
Ft.inheritAttrs = !1;
|
|
1146
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,7 +1464,7 @@ 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
1469
|
var g;
|
|
1470
1470
|
return o(n(J, null, [n("div", {
|
|
@@ -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"),
|
|
@@ -1544,89 +1544,89 @@ const et = (e) => {
|
|
|
1544
1544
|
suffixCls: "menu-item",
|
|
1545
1545
|
isPor: !0
|
|
1546
1546
|
}), i = R(() => b(e.menuData)), l = (u) => {
|
|
1547
|
-
var
|
|
1548
|
-
(
|
|
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
|
-
}, h = (u,
|
|
1556
|
-
var
|
|
1557
|
-
const
|
|
1558
|
-
((
|
|
1559
|
-
}, g =
|
|
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
1560
|
var m;
|
|
1561
|
-
const
|
|
1561
|
+
const v = Fe(u == null ? void 0 : u.icon), c = typeof u.badge == "function" ? n("div", {
|
|
1562
1562
|
class: `${o}-item-bradde`
|
|
1563
|
-
}, [(m = u.badge) == null ? void 0 : m.call(u, $e(u, "badge"))]) : null,
|
|
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
1570
|
}, d = (u) => {
|
|
1571
|
-
var $, I,
|
|
1572
|
-
let
|
|
1573
|
-
const
|
|
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
|
-
}, m = Fe(($ = u.meta) == null ? void 0 : $.icon), w = n(c, te(
|
|
1577
|
+
}, m = Fe(($ = u.meta) == null ? void 0 : $.icon), w = n(c, te(p, {
|
|
1578
1578
|
class: "gx-pro-menu-item",
|
|
1579
|
-
onClick: () => h(
|
|
1580
|
-
}), mt(
|
|
1581
|
-
default: () => [
|
|
1579
|
+
onClick: () => h(v, p)
|
|
1580
|
+
}), mt(x = f(v, !m)) ? x : {
|
|
1581
|
+
default: () => [x]
|
|
1582
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
1589
|
}, y = (u) => {
|
|
1590
|
-
var
|
|
1591
|
-
if (
|
|
1592
|
-
let
|
|
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
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
|
-
}, [f(u.meta)]) : u.meta && f(u.meta),
|
|
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 [v,
|
|
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
1618
|
title: v,
|
|
1619
|
-
icon:
|
|
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:
|
|
1623
|
+
icon: c
|
|
1624
1624
|
}, mt(v) ? v : {
|
|
1625
1625
|
default: () => [v]
|
|
1626
1626
|
});
|
|
1627
1627
|
};
|
|
1628
1628
|
function b(u = []) {
|
|
1629
|
-
return u.map((
|
|
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,7 +1805,7 @@ 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",
|
|
@@ -1836,9 +1843,9 @@ const et = (e) => {
|
|
|
1836
1843
|
}
|
|
1837
1844
|
});
|
|
1838
1845
|
kt.inheritAttrs = !1;
|
|
1839
|
-
const
|
|
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
|
-
}),
|
|
1976
|
+
}), wn = (e, t, a) => e.sort((o, i) => {
|
|
1970
1977
|
var r, h;
|
|
1971
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,22 +1989,23 @@ 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,
|
|
1989
|
-
getLevel: () =>
|
|
1996
|
+
getLevel: () => Bt(o)
|
|
1990
1997
|
};
|
|
1991
1998
|
};
|
|
1992
1999
|
function zo(e) {
|
|
1993
2000
|
const t = /* @__PURE__ */ new Map(), a = [];
|
|
1994
2001
|
function o(l) {
|
|
1995
2002
|
return l.map((s) => {
|
|
2003
|
+
var f, d;
|
|
1996
2004
|
const r = s.path, h = s.name, g = t.has(h) && t.get(h) !== r;
|
|
1997
|
-
if (s.hidden || !h || g)
|
|
1998
|
-
return (!h || g) && (a.some((
|
|
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;
|
|
1999
2007
|
if (t.set(h, r), s && (s != null && s.children))
|
|
2000
|
-
if (s.hideChildren)
|
|
2008
|
+
if ((d = s == null ? void 0 : s.meta) != null && d.hideChildren)
|
|
2001
2009
|
s.children = [];
|
|
2002
2010
|
else
|
|
2003
2011
|
return {
|
|
@@ -2011,17 +2019,20 @@ 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 h;
|
|
2024
|
-
return !r.hidden && !((
|
|
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) {
|
|
@@ -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 y, b, u,
|
|
2061
|
-
const i = t.find((
|
|
2062
|
-
let r = ((b = t.find((
|
|
2063
|
-
const h = !r || s, g = l.split("-").slice(0, -1).join("-"), f = t.find((
|
|
2064
|
-
if (r = h ? (u = f == null ? void 0 : f.meta) != null && u.menuSelectKey && ((
|
|
2065
|
-
const
|
|
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("-");
|
|
2066
2077
|
for (let m = 0; m < c.length; m += 1)
|
|
2067
|
-
|
|
2068
|
-
const
|
|
2069
|
-
return t.filter((m) =>
|
|
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
|
}
|
|
@@ -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) {
|
|
@@ -2149,10 +2160,10 @@ const {
|
|
|
2149
2160
|
isMobile: y,
|
|
2150
2161
|
menuLoading: b,
|
|
2151
2162
|
breakpoint: u,
|
|
2152
|
-
fixSiderbar:
|
|
2153
|
-
fixedHeader:
|
|
2163
|
+
fixSiderbar: x,
|
|
2164
|
+
fixedHeader: v,
|
|
2154
2165
|
collapsed: c,
|
|
2155
|
-
siderWidth:
|
|
2166
|
+
siderWidth: p,
|
|
2156
2167
|
collapsedWidth: m,
|
|
2157
2168
|
menuContentRender: w,
|
|
2158
2169
|
menuFooterRender: z,
|
|
@@ -2160,14 +2171,14 @@ const {
|
|
|
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(() => d.value === "top" ? [] : i.value), de = R(() => e.collapsed ? m.value :
|
|
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
|
}
|
|
@@ -2195,10 +2206,10 @@ const {
|
|
|
2195
2206
|
const H = n(Po, {
|
|
2196
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;
|
|
@@ -2213,13 +2224,13 @@ const {
|
|
|
2213
2224
|
var we;
|
|
2214
2225
|
let H;
|
|
2215
2226
|
const Y = O.value && n(kt, te({
|
|
2216
|
-
hashId:
|
|
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,13 +2242,13 @@ 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({
|
|
@@ -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:
|
|
2290
|
+
width: p.value,
|
|
2280
2291
|
collapsedWidth: m.value
|
|
2281
2292
|
}, {
|
|
2282
2293
|
default: () => {
|
|
2283
|
-
var
|
|
2294
|
+
var C, B, N, G;
|
|
2284
2295
|
return [b.value && n("div", {
|
|
2285
|
-
class: ["gx-pro-sider-loading",
|
|
2296
|
+
class: ["gx-pro-sider-loading", K.value]
|
|
2286
2297
|
}, [n(It, {
|
|
2287
2298
|
spinning: b.value,
|
|
2288
|
-
indicator: (
|
|
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
2323
|
})]), y.value ? null : n("div", {
|
|
2313
|
-
class: Q(`${I}-actions`,
|
|
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 ${
|
|
2329
|
+
class: `${I}-footer ${K.value}`
|
|
2319
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
|
|
@@ -2349,23 +2360,23 @@ const {
|
|
|
2349
2360
|
}), {
|
|
2350
2361
|
wrapSSR: g,
|
|
2351
2362
|
hashId: f
|
|
2352
|
-
} = fe("ProGlobalHeader", [xo,
|
|
2363
|
+
} = fe("ProGlobalHeader", [xo, In], h), d = R(() => ({
|
|
2353
2364
|
[`${f.value}`]: !0,
|
|
2354
2365
|
[`${h}`]: !0,
|
|
2355
2366
|
[`${h}-${e.layout}`]: !0
|
|
2356
|
-
})), y = (
|
|
2367
|
+
})), y = (v, c, p) => {
|
|
2357
2368
|
var $;
|
|
2358
2369
|
const m = a.currentRoute.value, w = m.matched.concat(), z = e.layout === "mix";
|
|
2359
|
-
if (e.onSelect &&
|
|
2360
|
-
const I = ($ = e.menuData.find((
|
|
2361
|
-
e.onSelect(z && I ? w.filter((
|
|
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 &&
|
|
2374
|
+
e.onOpenKeys && v === "openKeys" && e.onOpenKeys(z ? w.filter((I) => I.path !== m.path).map((I) => I.path) : c);
|
|
2364
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
|
}
|
|
@@ -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,
|
|
@@ -2410,37 +2421,37 @@ const {
|
|
|
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
2440
|
class: [`${h}-logo`, e.isMobile && "mobile", f.value]
|
|
2430
|
-
}, [n("a", null, [
|
|
2441
|
+
}, [n("a", null, [Sn(e.logo, e.logoStyle)])]);
|
|
2431
2442
|
return g(n("div", {
|
|
2432
2443
|
class: d.value
|
|
2433
|
-
}, [e.isMobile ? n(J, null, [qo(e.logoContentRender,
|
|
2444
|
+
}, [e.isMobile ? n(J, null, [qo(e.logoContentRender, v), e.isMobile && se(u) && n("span", {
|
|
2434
2445
|
class: `${h}-collapsed-button ${f.value}`,
|
|
2435
2446
|
onClick: b
|
|
2436
|
-
}, [se(u)(e.collapsed)]),
|
|
2447
|
+
}, [se(u)(e.collapsed)]), x()]) : Yo.includes(e.layout) ? n("div", {
|
|
2437
2448
|
class: `${h}-main ${f.value}`,
|
|
2438
2449
|
style: {
|
|
2439
2450
|
width: Ae(e.headerMainWidth)
|
|
2440
2451
|
}
|
|
2441
2452
|
}, [n("div", {
|
|
2442
2453
|
class: `${h}-main-left ${f.value}`
|
|
2443
|
-
}, [e.layout !== "wide" && e.appLogoListRender && n(
|
|
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];
|
|
@@ -2448,7 +2459,7 @@ const {
|
|
|
2448
2459
|
}), n(kt, te({
|
|
2449
2460
|
hashId: f.value,
|
|
2450
2461
|
baseClassName: h
|
|
2451
|
-
}, e), null)]),
|
|
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,
|
|
@@ -2481,20 +2492,20 @@ const {
|
|
|
2481
2492
|
}), b = r({
|
|
2482
2493
|
suffixCls: "fixed-header",
|
|
2483
2494
|
isPor: !0
|
|
2484
|
-
}), u = R(() => o.value === "wide"),
|
|
2485
|
-
wrapSSR:
|
|
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,
|
|
2486
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
2503
|
[`${O.antCls}-layout-header${O.componentCls}${O.componentCls}-${se(f.value.key)}`]: {
|
|
2493
|
-
color:
|
|
2494
|
-
backgroundColor: (T == null ? void 0 : T.colorBgMenu) || (
|
|
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}`]: {
|
|
@@ -2539,8 +2550,8 @@ const {
|
|
|
2539
2550
|
[`${m.value}`]: !0,
|
|
2540
2551
|
[`${y}`]: !0,
|
|
2541
2552
|
[`${y}-${f.value.key}`]: !0,
|
|
2542
|
-
[`${b}`]:
|
|
2543
|
-
})), z = R(() =>
|
|
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,21 +2563,21 @@ 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
2568
|
height: `${d.value}px`,
|
|
2558
2569
|
lineHeight: `${d.value}px`,
|
|
2559
2570
|
background: "transparent",
|
|
2560
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
2576
|
height: `${d.value}px`,
|
|
2566
2577
|
lineHeight: `${d.value}px`,
|
|
2567
2578
|
width: I.value,
|
|
2568
|
-
zIndex:
|
|
2569
|
-
right:
|
|
2579
|
+
zIndex: v.value ? 100 : 101,
|
|
2580
|
+
right: M.value,
|
|
2570
2581
|
marginTop: g.value ? `-${d.value}px` : void 0
|
|
2571
2582
|
}
|
|
2572
2583
|
}, Jo(O = k()) ? O : {
|
|
@@ -2574,7 +2585,7 @@ const {
|
|
|
2574
2585
|
})]));
|
|
2575
2586
|
};
|
|
2576
2587
|
}
|
|
2577
|
-
}),
|
|
2588
|
+
}), Gt = /* @__PURE__ */ j({
|
|
2578
2589
|
name: "SiderMenuWrapper",
|
|
2579
2590
|
inheritAttrs: !1,
|
|
2580
2591
|
props: {
|
|
@@ -2604,10 +2615,10 @@ 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
2624
|
function Pt(e, { change: t }) {
|
|
@@ -2626,7 +2637,7 @@ function Pt(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));
|
|
@@ -2708,9 +2719,9 @@ 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,33 +2741,33 @@ 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(), h = me(bt().uuid(10)), g = me(!1), f = me(!1), d = me(!1), y =
|
|
2747
|
+
} = Oe(), h = me(bt().uuid(10)), g = me(!1), f = me(!1), d = me(!1), y = pe({
|
|
2737
2748
|
position: "relative"
|
|
2738
2749
|
}), b = R(() => {
|
|
2739
|
-
var
|
|
2740
|
-
return (
|
|
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
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]);
|
|
2756
|
-
ne([() => e.layout, () => e.theme], ([
|
|
2757
|
-
(
|
|
2758
|
-
}), ne(() =>
|
|
2759
|
-
if (
|
|
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
|
}
|
|
@@ -2768,7 +2779,7 @@ const ti = /* @__PURE__ */ j({
|
|
|
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);
|
|
@@ -2779,36 +2790,36 @@ const ti = /* @__PURE__ */ j({
|
|
|
2779
2790
|
lockOpen: g,
|
|
2780
2791
|
settingsOpen: f,
|
|
2781
2792
|
contentFullScreen: d,
|
|
2782
|
-
hasContentWide:
|
|
2783
|
-
isMobile:
|
|
2793
|
+
hasContentWide: v,
|
|
2794
|
+
isMobile: p,
|
|
2784
2795
|
siderWidth: $,
|
|
2785
2796
|
headerHeight: z,
|
|
2786
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,26 +2828,26 @@ 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(
|
|
2850
|
+
}, oe(M, yn)), null), n(We, {
|
|
2840
2851
|
style: y
|
|
2841
2852
|
}, {
|
|
2842
2853
|
default: () => [e.layout !== "simple" && z.value > 0 && ee, n(Ft, te(oe(e, ro), {
|
|
@@ -2845,9 +2856,9 @@ const ti = /* @__PURE__ */ j({
|
|
|
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({
|
|
@@ -2884,15 +2895,15 @@ const ti = /* @__PURE__ */ j({
|
|
|
2884
2895
|
}), r = R(() => {
|
|
2885
2896
|
var b, u;
|
|
2886
2897
|
let y = e.token || {};
|
|
2887
|
-
return (u = (b = y.layout) == null ? void 0 : b.header) != null && u.heightLayoutHeader || (y =
|
|
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
2909
|
}), h = (y) => {
|
|
@@ -2934,7 +2945,7 @@ const ti = /* @__PURE__ */ j({
|
|
|
2934
2945
|
default: () => []
|
|
2935
2946
|
},
|
|
2936
2947
|
historyKey: String
|
|
2937
|
-
},
|
|
2948
|
+
}, kn = () => ({
|
|
2938
2949
|
...Ot,
|
|
2939
2950
|
...Nt,
|
|
2940
2951
|
actions: {
|
|
@@ -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,7 +3006,7 @@ 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: () => ({
|
|
@@ -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: {
|
|
@@ -3169,15 +3180,15 @@ const Pn = /* @__PURE__ */ j({
|
|
|
3169
3180
|
class: h("user-form")
|
|
3170
3181
|
}, [n("div", {
|
|
3171
3182
|
class: h("user-info")
|
|
3172
|
-
}, [n(
|
|
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
3188
|
class: h("user-name")
|
|
3178
|
-
}, [e.name])]), n(
|
|
3179
|
-
default: () => [n(
|
|
3180
|
-
default: () => [n(
|
|
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
3194
|
onChange: (d) => o.password = d.target.value
|
|
@@ -3198,7 +3209,7 @@ const Pn = /* @__PURE__ */ j({
|
|
|
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,15 +3225,15 @@ 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] =
|
|
3236
|
+
}), [o, i] = Ce(!1), l = ri(), s = (r = "", h) => {
|
|
3226
3237
|
const g = r ? `${e.className}-popup-${r}` : `${e.className}-popup`;
|
|
3227
3238
|
return Q(g, e.hashId, h || "");
|
|
3228
3239
|
};
|
|
@@ -3230,7 +3241,7 @@ const si = /* @__PURE__ */ j({
|
|
|
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,
|
|
@@ -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")
|
|
@@ -3306,26 +3317,26 @@ const si = /* @__PURE__ */ j({
|
|
|
3306
3317
|
var w, z;
|
|
3307
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
|
-
}), [g, f] =
|
|
3320
|
+
}), [g, f] = Ce(!1), d = me();
|
|
3310
3321
|
function y(m) {
|
|
3311
3322
|
return e.cryptoFn ? e.cryptoFn(m) : m;
|
|
3312
3323
|
}
|
|
3313
3324
|
function b(m) {
|
|
3314
3325
|
l.value.open = g.value, l.value.password = y(m);
|
|
3315
3326
|
}
|
|
3316
|
-
const u = R(() => e.shortsKey),
|
|
3317
|
-
gt(
|
|
3327
|
+
const u = R(() => e.shortsKey), x = R(() => l.value.open && !!l.value.password), v = an();
|
|
3328
|
+
gt(v["Alt+KeyL"], () => {
|
|
3318
3329
|
var m;
|
|
3319
3330
|
(m = u.value) != null && m.disabeld || h.value || r(!0);
|
|
3320
3331
|
}), ne(g, (m) => {
|
|
3321
3332
|
var w, z;
|
|
3322
3333
|
b(m && (((z = (w = d.value) == null ? void 0 : w.formState) == null ? void 0 : z.password) || l.value.password) || "");
|
|
3323
3334
|
}), St(() => {
|
|
3324
|
-
|
|
3335
|
+
x.value ? f(!0) : b("");
|
|
3325
3336
|
});
|
|
3326
3337
|
const c = () => {
|
|
3327
3338
|
r(!1), f(!0);
|
|
3328
|
-
},
|
|
3339
|
+
}, p = () => {
|
|
3329
3340
|
var m;
|
|
3330
3341
|
r(!1), b(""), (m = d.value) == null || m.resetFields();
|
|
3331
3342
|
};
|
|
@@ -3342,9 +3353,9 @@ const si = /* @__PURE__ */ j({
|
|
|
3342
3353
|
title: "锁定屏幕",
|
|
3343
3354
|
open: h.value,
|
|
3344
3355
|
footer: !1,
|
|
3345
|
-
onCancel:
|
|
3356
|
+
onCancel: p
|
|
3346
3357
|
}, {
|
|
3347
|
-
default: () => [n(
|
|
3358
|
+
default: () => [n(Nn, te({
|
|
3348
3359
|
ref: d
|
|
3349
3360
|
}, oe(e, ["name", "avatar"]), {
|
|
3350
3361
|
submitText: "锁定",
|
|
@@ -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,12 +3475,12 @@ 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,
|
|
@@ -3487,20 +3498,20 @@ 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
|
-
}), m.push(
|
|
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
|
}
|
|
@@ -3524,10 +3535,10 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3524
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 m = c[
|
|
3541
|
+
const m = c[p];
|
|
3531
3542
|
m && (a.value.push(m), r(), await xt(), mi(m.path) ? window.open(m.path, "_blank") : t.push({
|
|
3532
3543
|
path: m.path,
|
|
3533
3544
|
replace: !0
|
|
@@ -3537,8 +3548,8 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3537
3548
|
return fi.has(c) ? `\\${c}` : c;
|
|
3538
3549
|
}
|
|
3539
3550
|
function d(c) {
|
|
3540
|
-
const
|
|
3541
|
-
return new RegExp(`.*${
|
|
3551
|
+
const p = [...c].map((m) => f(m)).join(".*");
|
|
3552
|
+
return new RegExp(`.*${p}.*`);
|
|
3542
3553
|
}
|
|
3543
3554
|
function y() {
|
|
3544
3555
|
i.value.length !== 0 && (o.value--, o.value < 0 && (o.value = i.value.length - 1), h());
|
|
@@ -3552,35 +3563,35 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
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,
|
|
3571
|
+
class: v("panel-title")
|
|
3572
|
+
}, [_("搜索历史")]), n("div", {
|
|
3573
|
+
class: v("panel-list")
|
|
3574
|
+
}, [di(i.value, "path").map((c, p) => {
|
|
3564
3575
|
var m, w, z, $;
|
|
3565
3576
|
return n("div", {
|
|
3566
3577
|
key: c.name,
|
|
3567
|
-
class:
|
|
3568
|
-
"data-search-item":
|
|
3578
|
+
class: v(Q("panel-item", p === o.value && "active")),
|
|
3579
|
+
"data-search-item": p,
|
|
3569
3580
|
onClick: () => g(),
|
|
3570
|
-
onMouseenter: () => u(
|
|
3581
|
+
onMouseenter: () => u(p)
|
|
3571
3582
|
}, [n("div", {
|
|
3572
|
-
class:
|
|
3583
|
+
class: v("panel-item-left")
|
|
3573
3584
|
}, [n(et, te(c.meta || {}, {
|
|
3574
3585
|
icon: ((m = c.meta) == null ? void 0 : m.icon) || n(Da, null, null),
|
|
3575
|
-
classNames:
|
|
3576
|
-
}), null), ($ = (z = (w = c.meta) == null ? void 0 : w.title) == null ? void 0 : z.split("**")) == null ? void 0 : $.map((I,
|
|
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,11 +3602,11 @@ 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,
|
|
@@ -3615,9 +3626,9 @@ 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
|
|
3631
|
+
return Bt(e.dataSource || ((u = h == null ? void 0 : h.menuData) == null ? void 0 : u.value));
|
|
3621
3632
|
});
|
|
3622
3633
|
gt(f, () => {
|
|
3623
3634
|
e.disabeldShortKey || r(!0);
|
|
@@ -3634,23 +3645,23 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
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
|
|
@@ -3660,12 +3671,12 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
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
3682
|
onCancel: () => b()
|
|
@@ -3679,7 +3690,7 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
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,51 +3772,51 @@ 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
|
-
}), [h, g] =
|
|
3778
|
+
}), [h, g] = Ce(!1), {
|
|
3768
3779
|
wrapSSR: f,
|
|
3769
3780
|
hashId: d
|
|
3770
|
-
} = pi(r), [y, b] =
|
|
3781
|
+
} = pi(r), [y, b] = Ce("auto"), {
|
|
3771
3782
|
isDark: u,
|
|
3772
|
-
toggleMode:
|
|
3783
|
+
toggleMode: x
|
|
3773
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) ? (
|
|
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";
|
|
3793
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
3812
|
isDark: m,
|
|
3802
|
-
toggle:
|
|
3813
|
+
toggle: x
|
|
3803
3814
|
});
|
|
3804
3815
|
}, $ = () => {
|
|
3805
3816
|
e != null && e.onLogout && (g(!0), e.onLogout(() => g(!1)));
|
|
3806
3817
|
};
|
|
3807
3818
|
return () => {
|
|
3808
|
-
const I =
|
|
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;
|
|
3809
3820
|
return f(n("div", {
|
|
3810
3821
|
class: `${r}-right-content ${d.value}`.trim(),
|
|
3811
3822
|
style: {
|
|
@@ -3819,58 +3830,58 @@ 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
3841
|
class: `${r}-header-actions ${d.value}`.trim()
|
|
3831
|
-
}, [e.actions.search && !
|
|
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
3846
|
class: `${r}-header-actions-item ${d.value}`.trim()
|
|
3836
3847
|
}, [n(_e, {
|
|
3837
3848
|
class: `${r}-header-actions-icon ${d.value}`.trim(),
|
|
3838
3849
|
name: m.value ? "liangse" : "anhei",
|
|
3839
|
-
onClick: (
|
|
3840
|
-
}, null)]), e.actions.settings && !
|
|
3850
|
+
onClick: (E) => z(E)
|
|
3851
|
+
}, null)]), e.actions.settings && !p.value && n("div", {
|
|
3841
3852
|
class: `${r}-header-actions-item ${d.value}`.trim()
|
|
3842
|
-
}, [n(
|
|
3843
|
-
onClick: () => c(!
|
|
3844
|
-
}, null)]), e.actions.fullScreen && !
|
|
3853
|
+
}, [n(dn, {
|
|
3854
|
+
onClick: () => c(!v.value)
|
|
3855
|
+
}, null)]), e.actions.fullScreen && !p.value && n("div", {
|
|
3845
3856
|
class: `${r}-header-actions-item ${d.value}`.trim()
|
|
3846
3857
|
}, [n(T, {
|
|
3847
3858
|
onClick: () => o()
|
|
3848
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
3874
|
disabled: h.value
|
|
3864
3875
|
}, {
|
|
3865
|
-
default: () => [
|
|
3876
|
+
default: () => [_("退出登录")]
|
|
3866
3877
|
})]
|
|
3867
3878
|
})
|
|
3868
3879
|
}, {
|
|
3869
|
-
default: () => [
|
|
3880
|
+
default: () => [M || n("div", {
|
|
3870
3881
|
class: `${r}-header-actions-avatar ${d.value}`.trim()
|
|
3871
|
-
}, [n(
|
|
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
3887
|
class: `${r}-header-actions-name ${d.value}`.trim()
|
|
@@ -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]: {
|
|
@@ -4017,37 +4028,37 @@ const os = /* @__PURE__ */ j({
|
|
|
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
4033
|
return ae(e.usePageCard) ? e.usePageCard : ae(($ = g.value) == null ? void 0 : $.usePageCard) ? (I = g.value) == null ? void 0 : I.usePageCard : !0;
|
|
4023
|
-
}),
|
|
4024
|
-
var $, I,
|
|
4025
|
-
return (
|
|
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:
|
|
4038
|
+
wrapSSR: p,
|
|
4028
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 = () => {
|
|
@@ -4059,8 +4070,8 @@ const os = /* @__PURE__ */ j({
|
|
|
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,
|
|
@@ -4073,7 +4084,7 @@ const os = /* @__PURE__ */ j({
|
|
|
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
4089
|
class: [h, m.value]
|
|
4079
4090
|
}, [n("div", {
|
|
@@ -4084,25 +4095,25 @@ const os = /* @__PURE__ */ j({
|
|
|
4084
4095
|
}
|
|
4085
4096
|
});
|
|
4086
4097
|
function is({ menuData: e, watchOpenKeys: t = !0 }) {
|
|
4087
|
-
const a = Ge(), o = a.getRoutes(), i =
|
|
4098
|
+
const a = Ge(), o = a.getRoutes(), i = pe({
|
|
4088
4099
|
menuData: [],
|
|
4089
4100
|
levelMenuData: []
|
|
4090
|
-
}), l =
|
|
4101
|
+
}), l = pe({
|
|
4091
4102
|
openKeys: [],
|
|
4092
4103
|
selectedKeys: []
|
|
4093
4104
|
}), s = R(() => a.currentRoute.value), r = (d) => {
|
|
4094
|
-
var b;
|
|
4105
|
+
var b, u;
|
|
4095
4106
|
const y = No(zo(d));
|
|
4096
|
-
(b = s.value) != null &&
|
|
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 h = R(() => Ho(i, { path:
|
|
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(() => {
|
|
4100
4111
|
const d = h.value.map((y) => {
|
|
4101
|
-
var u,
|
|
4102
|
-
const b =
|
|
4112
|
+
var u, x;
|
|
4113
|
+
const b = $n((u = y.meta) != null && u.hideChildrenInMenu ? [] : y.children || []);
|
|
4103
4114
|
return {
|
|
4104
4115
|
path: y.redirect || b || y.path || "",
|
|
4105
|
-
breadcrumbName: ((
|
|
4116
|
+
breadcrumbName: ((x = y.meta) == null ? void 0 : x.title) || ""
|
|
4106
4117
|
};
|
|
4107
4118
|
}).filter((y) => y.breadcrumbName);
|
|
4108
4119
|
return Vo(d, "breadcrumbName");
|
|
@@ -4110,7 +4121,7 @@ function is({ menuData: e, watchOpenKeys: t = !0 }) {
|
|
|
4110
4121
|
l.openKeys = h.value.filter((d) => d.path !== s.value.path).map((d) => d.path);
|
|
4111
4122
|
};
|
|
4112
4123
|
return ne(() => s.value, (d) => {
|
|
4113
|
-
d && (l.selectedKeys = h.value.map((y) => y.path), t && f());
|
|
4124
|
+
d && (r(e ? zt(e) ? e.value : e : o), l.selectedKeys = h.value.map((y) => y.path), t && f());
|
|
4114
4125
|
}, { immediate: !0, deep: !0 }), St(() => {
|
|
4115
4126
|
t || f();
|
|
4116
4127
|
}), {
|
|
@@ -4130,7 +4141,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4130
4141
|
}
|
|
4131
4142
|
}, [n(_e, {
|
|
4132
4143
|
name: "liangse"
|
|
4133
|
-
}, null),
|
|
4144
|
+
}, null), _("亮色")])
|
|
4134
4145
|
}, {
|
|
4135
4146
|
value: "dark",
|
|
4136
4147
|
label: () => n("div", {
|
|
@@ -4141,7 +4152,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4141
4152
|
}
|
|
4142
4153
|
}, [n(_e, {
|
|
4143
4154
|
name: "anhei"
|
|
4144
|
-
}, null),
|
|
4155
|
+
}, null), _("深色")])
|
|
4145
4156
|
}, {
|
|
4146
4157
|
value: "system",
|
|
4147
4158
|
label: () => n("div", {
|
|
@@ -4150,8 +4161,8 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4150
4161
|
alignItems: "center",
|
|
4151
4162
|
gap: "6px"
|
|
4152
4163
|
}
|
|
4153
|
-
}, [n(Wa, null, null),
|
|
4154
|
-
}],
|
|
4164
|
+
}, [n(Wa, null, null), _("自动")])
|
|
4165
|
+
}], zn = [
|
|
4155
4166
|
{
|
|
4156
4167
|
key: "light",
|
|
4157
4168
|
title: "亮色菜单风格"
|
|
@@ -4164,7 +4175,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4164
4175
|
// key: 'systemDark',
|
|
4165
4176
|
// title: '暗黑模式'
|
|
4166
4177
|
// }
|
|
4167
|
-
],
|
|
4178
|
+
], Dn = [{
|
|
4168
4179
|
key: "side",
|
|
4169
4180
|
title: "侧边菜单布局"
|
|
4170
4181
|
}, {
|
|
@@ -4185,7 +4196,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4185
4196
|
}, {
|
|
4186
4197
|
key: "sider",
|
|
4187
4198
|
title: "左侧主题"
|
|
4188
|
-
}],
|
|
4199
|
+
}], Mi = [{
|
|
4189
4200
|
key: "colorBgMenu",
|
|
4190
4201
|
name: "全部背景"
|
|
4191
4202
|
}, {
|
|
@@ -4206,7 +4217,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4206
4217
|
}, {
|
|
4207
4218
|
key: "colorTextMenuSelected",
|
|
4208
4219
|
name: "菜单文字选中颜色"
|
|
4209
|
-
}],
|
|
4220
|
+
}], Bi = [{
|
|
4210
4221
|
label: "fixedHeader",
|
|
4211
4222
|
title: "固定 Header"
|
|
4212
4223
|
}, {
|
|
@@ -4222,7 +4233,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4222
4233
|
label: "fixedTabsBar",
|
|
4223
4234
|
title: "固定多标签"
|
|
4224
4235
|
}], Oi = (e) => {
|
|
4225
|
-
const { dark: t } =
|
|
4236
|
+
const { dark: t } = ye(e);
|
|
4226
4237
|
return {
|
|
4227
4238
|
[e.componentCls]: {
|
|
4228
4239
|
[`${e.antCls}-drawer-content-wrapper`]: {
|
|
@@ -4402,7 +4413,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4402
4413
|
}
|
|
4403
4414
|
}
|
|
4404
4415
|
};
|
|
4405
|
-
},
|
|
4416
|
+
}, Yt = /* @__PURE__ */ j({
|
|
4406
4417
|
name: "BlockCheckbox",
|
|
4407
4418
|
props: {
|
|
4408
4419
|
value: q.string,
|
|
@@ -4432,7 +4443,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4432
4443
|
}
|
|
4433
4444
|
}, [a.key === "wide" && n("div", {
|
|
4434
4445
|
class: [`${t}-item-${a.key}-content`, e.hashId]
|
|
4435
|
-
}, null), n(
|
|
4446
|
+
}, null), n(mn, {
|
|
4436
4447
|
class: `${t}-selectIcon ${e.hashId}`.trim(),
|
|
4437
4448
|
style: {
|
|
4438
4449
|
display: e.value === a.key ? "block" : "none"
|
|
@@ -4478,7 +4489,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4478
4489
|
backgroundColor: i
|
|
4479
4490
|
},
|
|
4480
4491
|
onClick: () => e.onChange && e.onChange(i)
|
|
4481
|
-
}, [((r = e.settingValue) == null ? void 0 : r.primaryColor) === i && n(
|
|
4492
|
+
}, [((r = e.settingValue) == null ? void 0 : r.primaryColor) === i && n(mn, null, null)])];
|
|
4482
4493
|
}
|
|
4483
4494
|
}) : null)]);
|
|
4484
4495
|
};
|
|
@@ -4495,7 +4506,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4495
4506
|
onChange: Function
|
|
4496
4507
|
},
|
|
4497
4508
|
setup(e) {
|
|
4498
|
-
return () => n(
|
|
4509
|
+
return () => n(Me, {
|
|
4499
4510
|
class: `${e.prefixCls}-list ${e.hashId}`.trim(),
|
|
4500
4511
|
split: !1,
|
|
4501
4512
|
size: "small",
|
|
@@ -4505,7 +4516,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4505
4516
|
title: t.disabled ? t.disabledReason : "",
|
|
4506
4517
|
placement: "left"
|
|
4507
4518
|
}, {
|
|
4508
|
-
default: () => [n(
|
|
4519
|
+
default: () => [n(Me.Item, {
|
|
4509
4520
|
actions: [t.action]
|
|
4510
4521
|
}, {
|
|
4511
4522
|
default: () => [n("span", {
|
|
@@ -4517,7 +4528,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4517
4528
|
}),
|
|
4518
4529
|
dataSource: [{
|
|
4519
4530
|
title: e.label,
|
|
4520
|
-
action: n(
|
|
4531
|
+
action: n(nn, {
|
|
4521
4532
|
size: "small",
|
|
4522
4533
|
disabled: e.disabled,
|
|
4523
4534
|
checked: !!e.value,
|
|
@@ -4565,10 +4576,10 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4565
4576
|
function Ti(e) {
|
|
4566
4577
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
4567
4578
|
}
|
|
4568
|
-
const
|
|
4579
|
+
const An = [];
|
|
4569
4580
|
Ca.forEach((e) => {
|
|
4570
4581
|
xa.forEach((t) => {
|
|
4571
|
-
|
|
4582
|
+
An.push({
|
|
4572
4583
|
key: `${e}:${t}`,
|
|
4573
4584
|
token: {}
|
|
4574
4585
|
});
|
|
@@ -4584,7 +4595,7 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4584
4595
|
setup(e) {
|
|
4585
4596
|
const {
|
|
4586
4597
|
getPrefixCls: t
|
|
4587
|
-
} = le(), [a, o] =
|
|
4598
|
+
} = le(), [a, o] = Ce("header"), i = t({
|
|
4588
4599
|
suffixCls: "theme-editor",
|
|
4589
4600
|
isPor: !0
|
|
4590
4601
|
}), {
|
|
@@ -4597,18 +4608,18 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4597
4608
|
return (b = r.value) == null ? void 0 : b.layout;
|
|
4598
4609
|
});
|
|
4599
4610
|
function g(b) {
|
|
4600
|
-
return Se(
|
|
4601
|
-
var
|
|
4602
|
-
const
|
|
4603
|
-
if (u.token =
|
|
4611
|
+
return Se(An).map((u) => {
|
|
4612
|
+
var v;
|
|
4613
|
+
const x = it(b, r.value, u.key);
|
|
4614
|
+
if (u.token = x, x)
|
|
4604
4615
|
for (const c in u.token) {
|
|
4605
|
-
const
|
|
4616
|
+
const p = (v = h.value) == null ? void 0 : v[b], m = (p == null ? void 0 : p[c]) || u.token[c];
|
|
4606
4617
|
u.token[c] = m;
|
|
4607
4618
|
}
|
|
4608
4619
|
return u;
|
|
4609
4620
|
}).filter((u) => u.token);
|
|
4610
4621
|
}
|
|
4611
|
-
const f =
|
|
4622
|
+
const f = pe({
|
|
4612
4623
|
header: g("header"),
|
|
4613
4624
|
sider: g("sider")
|
|
4614
4625
|
});
|
|
@@ -4625,50 +4636,50 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4625
4636
|
});
|
|
4626
4637
|
const d = R(() => {
|
|
4627
4638
|
var u;
|
|
4628
|
-
const b = (u = f[a.value].find((
|
|
4629
|
-
var
|
|
4630
|
-
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);
|
|
4631
4642
|
})) == null ? void 0 : u.token;
|
|
4632
|
-
return Object.keys(b || {}).map((
|
|
4643
|
+
return Object.keys(b || {}).map((x) => {
|
|
4633
4644
|
var c;
|
|
4634
4645
|
return {
|
|
4635
|
-
title: ((c =
|
|
4636
|
-
key:
|
|
4637
|
-
value: (b == null ? void 0 : b[
|
|
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]) || ""
|
|
4638
4649
|
};
|
|
4639
4650
|
});
|
|
4640
4651
|
}), y = (b, u) => {
|
|
4641
|
-
var
|
|
4642
|
-
f[a.value] = f[a.value].map((
|
|
4652
|
+
var x;
|
|
4653
|
+
f[a.value] = f[a.value].map((v) => {
|
|
4643
4654
|
var c;
|
|
4644
|
-
return
|
|
4645
|
-
}), (
|
|
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);
|
|
4646
4657
|
};
|
|
4647
4658
|
return () => {
|
|
4648
|
-
var u,
|
|
4659
|
+
var u, x, v;
|
|
4649
4660
|
let b;
|
|
4650
4661
|
return l(n("div", {
|
|
4651
4662
|
class: [i, s.value]
|
|
4652
4663
|
}, [n("h3", {
|
|
4653
4664
|
class: [`${i}-title`, s.value]
|
|
4654
|
-
}, [
|
|
4665
|
+
}, [_("主题编辑器"), n("div", {
|
|
4655
4666
|
class: [`${i}-sub-title`, s.value]
|
|
4656
|
-
}, [n("span", null, [(u =
|
|
4667
|
+
}, [n("span", null, [(u = zn.find((c) => c.key === e.theme)) == null ? void 0 : u.title]), n("span", {
|
|
4657
4668
|
style: {
|
|
4658
4669
|
marginInline: "8px"
|
|
4659
4670
|
}
|
|
4660
|
-
}, [
|
|
4661
|
-
var
|
|
4662
|
-
return c.key === ((
|
|
4663
|
-
})) == 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", {
|
|
4664
4675
|
class: [`${i}-content`, s.value]
|
|
4665
|
-
}, [n(
|
|
4676
|
+
}, [n(Me, {
|
|
4666
4677
|
class: `${i}-list ${s.value}`.trim(),
|
|
4667
4678
|
split: !1,
|
|
4668
4679
|
size: "small",
|
|
4669
4680
|
renderItem: ({
|
|
4670
4681
|
item: c
|
|
4671
|
-
}) => n(
|
|
4682
|
+
}) => n(Me.Item, {
|
|
4672
4683
|
actions: [c.action]
|
|
4673
4684
|
}, {
|
|
4674
4685
|
default: () => [n("span", {
|
|
@@ -4679,8 +4690,8 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4679
4690
|
}),
|
|
4680
4691
|
dataSource: [{
|
|
4681
4692
|
title: "自定义主题色",
|
|
4682
|
-
action: n(
|
|
4683
|
-
value: (
|
|
4693
|
+
action: n(Kt, {
|
|
4694
|
+
value: (v = e.settingValue) == null ? void 0 : v.primaryColor,
|
|
4684
4695
|
size: "small",
|
|
4685
4696
|
onChangeComplete: (c) => e.onChange && e.onChange(c.toCssString(), "primaryColor")
|
|
4686
4697
|
}, null)
|
|
@@ -4692,27 +4703,27 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4692
4703
|
key: c.key,
|
|
4693
4704
|
tab: c.title
|
|
4694
4705
|
}, {
|
|
4695
|
-
default: () => [n(
|
|
4706
|
+
default: () => [n(Me, {
|
|
4696
4707
|
class: `${i}-list ${s.value}`.trim(),
|
|
4697
4708
|
split: !1,
|
|
4698
4709
|
size: "small",
|
|
4699
4710
|
renderItem: ({
|
|
4700
|
-
item:
|
|
4701
|
-
}) => n(
|
|
4702
|
-
actions: [
|
|
4711
|
+
item: p
|
|
4712
|
+
}) => n(Me.Item, {
|
|
4713
|
+
actions: [p.action]
|
|
4703
4714
|
}, {
|
|
4704
4715
|
default: () => [n("span", {
|
|
4705
4716
|
style: {
|
|
4706
|
-
opacity:
|
|
4717
|
+
opacity: p.disabled ? 0.5 : 1
|
|
4707
4718
|
}
|
|
4708
|
-
}, [
|
|
4719
|
+
}, [p.title])]
|
|
4709
4720
|
}),
|
|
4710
|
-
dataSource: d.value.map((
|
|
4711
|
-
...
|
|
4712
|
-
action: n(
|
|
4713
|
-
value:
|
|
4721
|
+
dataSource: d.value.map((p) => ({
|
|
4722
|
+
...p,
|
|
4723
|
+
action: n(Kt, {
|
|
4724
|
+
value: p.value,
|
|
4714
4725
|
size: "small",
|
|
4715
|
-
onChangeComplete: (m) => y(m.toCssString(),
|
|
4726
|
+
onChangeComplete: (m) => y(m.toCssString(), p.key)
|
|
4716
4727
|
}, null)
|
|
4717
4728
|
}))
|
|
4718
4729
|
}, null)]
|
|
@@ -4752,11 +4763,11 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4752
4763
|
}
|
|
4753
4764
|
}
|
|
4754
4765
|
});
|
|
4755
|
-
function
|
|
4766
|
+
function qt(e) {
|
|
4756
4767
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
4757
4768
|
}
|
|
4758
4769
|
const {
|
|
4759
|
-
preset:
|
|
4770
|
+
preset: Qt
|
|
4760
4771
|
} = Tt, zi = /* @__PURE__ */ j({
|
|
4761
4772
|
name: "OthersChange",
|
|
4762
4773
|
props: {
|
|
@@ -4773,13 +4784,13 @@ const {
|
|
|
4773
4784
|
hashId: o
|
|
4774
4785
|
} = fe("SettingsDrawOthers", [Ni], t);
|
|
4775
4786
|
return () => {
|
|
4776
|
-
var l, s, r, h, g, f, d, y, b, u,
|
|
4787
|
+
var l, s, r, h, g, f, d, y, b, u, x, v, c, p;
|
|
4777
4788
|
let i;
|
|
4778
4789
|
return a(n("div", {
|
|
4779
4790
|
class: [t, o.value]
|
|
4780
4791
|
}, [n("h3", {
|
|
4781
4792
|
class: [`${t}-title`, o.value]
|
|
4782
|
-
}, [
|
|
4793
|
+
}, [_("页面动画设置")]), n(Me, {
|
|
4783
4794
|
class: `${t}-list ${o.value}`.trim(),
|
|
4784
4795
|
split: !1,
|
|
4785
4796
|
size: "small",
|
|
@@ -4789,7 +4800,7 @@ const {
|
|
|
4789
4800
|
title: m.disabled ? m.disabledReason : "",
|
|
4790
4801
|
placement: "left"
|
|
4791
4802
|
}, {
|
|
4792
|
-
default: () => [n(
|
|
4803
|
+
default: () => [n(Me.Item, {
|
|
4793
4804
|
actions: [m.action]
|
|
4794
4805
|
}, {
|
|
4795
4806
|
default: () => [n("span", {
|
|
@@ -4801,7 +4812,7 @@ const {
|
|
|
4801
4812
|
}),
|
|
4802
4813
|
dataSource: [{
|
|
4803
4814
|
title: "禁用动画",
|
|
4804
|
-
action: n(
|
|
4815
|
+
action: n(nn, {
|
|
4805
4816
|
checked: !((s = (l = e.settingValue) == null ? void 0 : l.animate) != null && s.disabled),
|
|
4806
4817
|
size: "small",
|
|
4807
4818
|
onChange: (m) => {
|
|
@@ -4824,7 +4835,7 @@ const {
|
|
|
4824
4835
|
var w;
|
|
4825
4836
|
return (w = e.onChange) == null ? void 0 : w.call(e, "animate", "name", m);
|
|
4826
4837
|
}
|
|
4827
|
-
},
|
|
4838
|
+
}, qt(i = Qt.map((m) => n(Ye.Option, {
|
|
4828
4839
|
value: m.name
|
|
4829
4840
|
}, {
|
|
4830
4841
|
default: () => [m.alias]
|
|
@@ -4835,7 +4846,7 @@ const {
|
|
|
4835
4846
|
title: "动画方向",
|
|
4836
4847
|
disabled: (u = (b = e.settingValue) == null ? void 0 : b.animate) == null ? void 0 : u.disabled,
|
|
4837
4848
|
action: n(Ye, {
|
|
4838
|
-
value: (
|
|
4849
|
+
value: (v = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : v.direction,
|
|
4839
4850
|
style: {
|
|
4840
4851
|
width: "100px"
|
|
4841
4852
|
},
|
|
@@ -4843,7 +4854,7 @@ const {
|
|
|
4843
4854
|
dropdownStyle: {
|
|
4844
4855
|
minWidth: "120px"
|
|
4845
4856
|
},
|
|
4846
|
-
disabled: (
|
|
4857
|
+
disabled: (p = (c = e.settingValue) == null ? void 0 : c.animate) == null ? void 0 : p.disabled,
|
|
4847
4858
|
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
4848
4859
|
onChange: (m) => {
|
|
4849
4860
|
var w;
|
|
@@ -4852,12 +4863,12 @@ const {
|
|
|
4852
4863
|
}, {
|
|
4853
4864
|
default: () => {
|
|
4854
4865
|
var m;
|
|
4855
|
-
return [(m =
|
|
4866
|
+
return [(m = Qt.find((w) => {
|
|
4856
4867
|
var z, $;
|
|
4857
4868
|
return w.name === (($ = (z = e.settingValue) == null ? void 0 : z.animate) == null ? void 0 : $.name);
|
|
4858
4869
|
})) == null ? void 0 : m.directions.map((w) => n(Ye.Option, {
|
|
4859
4870
|
value: w
|
|
4860
|
-
},
|
|
4871
|
+
}, qt(w) ? w : {
|
|
4861
4872
|
default: () => [w]
|
|
4862
4873
|
}))];
|
|
4863
4874
|
}
|
|
@@ -4871,7 +4882,7 @@ const {
|
|
|
4871
4882
|
} = Tt, Ai = {
|
|
4872
4883
|
color: "#fff",
|
|
4873
4884
|
fontSize: 20
|
|
4874
|
-
},
|
|
4885
|
+
}, Zt = (e) => ha() ? {
|
|
4875
4886
|
...oe(Z, Ct),
|
|
4876
4887
|
...e || {}
|
|
4877
4888
|
} : Se(Z), Ke = (e, {
|
|
@@ -4921,7 +4932,7 @@ const {
|
|
|
4921
4932
|
const t = Oe(), a = le(), o = ie({
|
|
4922
4933
|
suffixCls: "setting-drawer",
|
|
4923
4934
|
isPor: !0
|
|
4924
|
-
}), i =
|
|
4935
|
+
}), i = pe({}), l = at(ie({
|
|
4925
4936
|
suffixCls: "settings-state",
|
|
4926
4937
|
isPor: !0
|
|
4927
4938
|
}), {}), {
|
|
@@ -4945,20 +4956,20 @@ const {
|
|
|
4945
4956
|
return Xe(e.dark) ? e.dark : (L = a == null ? void 0 : a.dark) == null ? void 0 : L.value;
|
|
4946
4957
|
}), {
|
|
4947
4958
|
change: (L) => {
|
|
4948
|
-
var F, P,
|
|
4949
|
-
(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);
|
|
4950
4961
|
}
|
|
4951
|
-
}), [u,
|
|
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)), {
|
|
4952
4963
|
value: m,
|
|
4953
4964
|
onChange: (L) => {
|
|
4954
4965
|
var F;
|
|
4955
|
-
l.value =
|
|
4966
|
+
l.value = ve(l.value, L), (F = e.onChange) == null || F.call(e, L);
|
|
4956
4967
|
}
|
|
4957
4968
|
}), $ = R(() => {
|
|
4958
4969
|
var L;
|
|
4959
4970
|
return Xe(e.dark) ? y.value : (L = t == null ? void 0 : t.dark) == null ? void 0 : L.value;
|
|
4960
4971
|
}), I = (L, F) => {
|
|
4961
|
-
|
|
4972
|
+
Fn({
|
|
4962
4973
|
event: L,
|
|
4963
4974
|
isDark: $,
|
|
4964
4975
|
toggle: b,
|
|
@@ -4966,7 +4977,7 @@ const {
|
|
|
4966
4977
|
});
|
|
4967
4978
|
};
|
|
4968
4979
|
ne(() => e.storage, (L) => {
|
|
4969
|
-
L && (
|
|
4980
|
+
L && (p.value ? (Object.assign(i, {
|
|
4970
4981
|
dark: d.value,
|
|
4971
4982
|
...Se(w.value)
|
|
4972
4983
|
}), fa($e(l.value, "dark"), w.value) || z($e(l.value, "dark")), I(null, l.value.dark)) : l.value = {
|
|
@@ -4976,10 +4987,10 @@ const {
|
|
|
4976
4987
|
}, {
|
|
4977
4988
|
immediate: !0
|
|
4978
4989
|
});
|
|
4979
|
-
const
|
|
4990
|
+
const M = R(() => e.colorList && Mt(e.colorList) ? e.colorList : []), k = R(() => Xo(se(w))), {
|
|
4980
4991
|
copy: O,
|
|
4981
4992
|
copied: T,
|
|
4982
|
-
isSupported:
|
|
4993
|
+
isSupported: X
|
|
4983
4994
|
} = ia();
|
|
4984
4995
|
ne(g, () => {
|
|
4985
4996
|
h.value || (h.value = !0);
|
|
@@ -4993,11 +5004,11 @@ const {
|
|
|
4993
5004
|
}), ne(() => d.value, (L) => {
|
|
4994
5005
|
e.storage && (l.value.dark = L);
|
|
4995
5006
|
});
|
|
4996
|
-
const
|
|
4997
|
-
var
|
|
4998
|
-
const
|
|
4999
|
-
if (P != null && P.subKey &&
|
|
5000
|
-
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));
|
|
5001
5012
|
return;
|
|
5002
5013
|
} else
|
|
5003
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;
|
|
@@ -5005,18 +5016,18 @@ const {
|
|
|
5005
5016
|
const V = document.querySelector("body");
|
|
5006
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);
|
|
5007
5018
|
}
|
|
5008
|
-
z(
|
|
5009
|
-
..._o($e(ee,
|
|
5019
|
+
z(ve(se(w), {
|
|
5020
|
+
..._o($e(ee, W))
|
|
5010
5021
|
}));
|
|
5011
|
-
},
|
|
5022
|
+
}, K = (L) => {
|
|
5012
5023
|
l.value.dark = L === "system" ? L : L === "dark", I(null, L === "system" ? L : L === "dark");
|
|
5013
5024
|
}, he = () => {
|
|
5014
|
-
|
|
5025
|
+
X.value && O(JSON.stringify(se(w)));
|
|
5015
5026
|
}, de = () => {
|
|
5016
5027
|
z($e(Se(i), "dark")), I(null, i.dark), l.value = Se(i);
|
|
5017
5028
|
};
|
|
5018
5029
|
return () => {
|
|
5019
|
-
const L = g.value ? lt :
|
|
5030
|
+
const L = g.value ? lt : dn;
|
|
5020
5031
|
return s(n(Qe, {
|
|
5021
5032
|
width: 300,
|
|
5022
5033
|
closable: !1,
|
|
@@ -5050,57 +5061,57 @@ const {
|
|
|
5050
5061
|
default: () => [n(Zn, {
|
|
5051
5062
|
value: ae(d.value) ? d.value ? "dark" : "light" : "system",
|
|
5052
5063
|
options: Ri,
|
|
5053
|
-
onChange: (F) =>
|
|
5064
|
+
onChange: (F) => K(F)
|
|
5054
5065
|
}, null)]
|
|
5055
5066
|
}), n(Ke, {
|
|
5056
5067
|
prefixCls: o,
|
|
5057
5068
|
hashId: r.value,
|
|
5058
5069
|
title: "菜单风格"
|
|
5059
5070
|
}, {
|
|
5060
|
-
default: () => [n(
|
|
5071
|
+
default: () => [n(Yt, {
|
|
5061
5072
|
hashId: r.value,
|
|
5062
5073
|
prefixCls: o,
|
|
5063
|
-
list:
|
|
5074
|
+
list: zn,
|
|
5064
5075
|
value: w.value.theme,
|
|
5065
5076
|
configType: "theme",
|
|
5066
5077
|
key: "navTheme",
|
|
5067
|
-
onChange: (F, P) =>
|
|
5078
|
+
onChange: (F, P) => E("theme", F, {
|
|
5068
5079
|
event: P
|
|
5069
5080
|
})
|
|
5070
5081
|
}, null)]
|
|
5071
5082
|
}), n(Ke, {
|
|
5072
5083
|
hashId: r.value,
|
|
5073
|
-
title: n("span", null, [
|
|
5084
|
+
title: n("span", null, [_("配色模式"), n("a", {
|
|
5074
5085
|
style: {
|
|
5075
5086
|
fontSize: "12px",
|
|
5076
5087
|
marginLeft: "4px"
|
|
5077
5088
|
},
|
|
5078
|
-
onClick: () =>
|
|
5079
|
-
}, [
|
|
5089
|
+
onClick: () => x(!0)
|
|
5090
|
+
}, [_("更多配置")])]),
|
|
5080
5091
|
prefixCls: o
|
|
5081
5092
|
}, {
|
|
5082
5093
|
default: () => [n(Fi, {
|
|
5083
5094
|
hashId: r.value,
|
|
5084
5095
|
prefixCls: o,
|
|
5085
|
-
colorList:
|
|
5096
|
+
colorList: M.value,
|
|
5086
5097
|
settingValue: w.value,
|
|
5087
|
-
onChange: (F, P) =>
|
|
5098
|
+
onChange: (F, P) => E(P || "primaryColor", F)
|
|
5088
5099
|
}, null)]
|
|
5089
5100
|
}), !e.themeOnly && n(J, null, [n(ct, null, null), n(Ke, {
|
|
5090
5101
|
hashId: r.value,
|
|
5091
5102
|
prefixCls: o,
|
|
5092
5103
|
title: "导航模式"
|
|
5093
5104
|
}, {
|
|
5094
|
-
default: () => [n(
|
|
5105
|
+
default: () => [n(Yt, {
|
|
5095
5106
|
prefixCls: o,
|
|
5096
5107
|
value: se(w).layout,
|
|
5097
5108
|
key: "layout",
|
|
5098
5109
|
hashId: r.value,
|
|
5099
5110
|
configType: "layout",
|
|
5100
|
-
list:
|
|
5101
|
-
onChange: (F) =>
|
|
5111
|
+
list: Dn,
|
|
5112
|
+
onChange: (F) => E("layout", F)
|
|
5102
5113
|
}, null)]
|
|
5103
|
-
}),
|
|
5114
|
+
}), Bi.map(({
|
|
5104
5115
|
label: F,
|
|
5105
5116
|
title: P
|
|
5106
5117
|
}) => n(qe, {
|
|
@@ -5110,17 +5121,17 @@ const {
|
|
|
5110
5121
|
prefixCls: o,
|
|
5111
5122
|
hashId: r.value,
|
|
5112
5123
|
valueKey: F,
|
|
5113
|
-
onChange: (
|
|
5124
|
+
onChange: (W, ee) => E(W, ee)
|
|
5114
5125
|
}, null)), n(ct, null, null), n(Ke, {
|
|
5115
5126
|
hashId: r.value,
|
|
5116
5127
|
prefixCls: o,
|
|
5117
|
-
title: n("span", null, [
|
|
5128
|
+
title: n("span", null, [_("其他设置"), n("a", {
|
|
5118
5129
|
style: {
|
|
5119
5130
|
fontSize: "12px",
|
|
5120
5131
|
marginLeft: "4px"
|
|
5121
5132
|
},
|
|
5122
5133
|
onClick: () => c(!0)
|
|
5123
|
-
}, [
|
|
5134
|
+
}, [_("更多配置")])])
|
|
5124
5135
|
}, {
|
|
5125
5136
|
default: () => [Li.map(({
|
|
5126
5137
|
label: F,
|
|
@@ -5132,21 +5143,21 @@ const {
|
|
|
5132
5143
|
prefixCls: o,
|
|
5133
5144
|
hashId: r.value,
|
|
5134
5145
|
valueKey: F,
|
|
5135
|
-
onChange: (
|
|
5146
|
+
onChange: (W, ee) => E(W, ee)
|
|
5136
5147
|
}, null)), e.weakmode && n(qe, {
|
|
5137
5148
|
label: "色弱模式",
|
|
5138
5149
|
value: se(w).colorWeak,
|
|
5139
5150
|
prefixCls: o,
|
|
5140
5151
|
hashId: r.value,
|
|
5141
5152
|
valueKey: "colorWeak",
|
|
5142
|
-
onChange: (F, P) =>
|
|
5153
|
+
onChange: (F, P) => E(F, P)
|
|
5143
5154
|
}, null), e.showProgress && n(qe, {
|
|
5144
5155
|
label: "顶部进度条",
|
|
5145
5156
|
value: se(w).showProgressBar,
|
|
5146
5157
|
prefixCls: o,
|
|
5147
5158
|
hashId: r.value,
|
|
5148
5159
|
valueKey: "showProgressBar",
|
|
5149
|
-
onChange: (F, P) =>
|
|
5160
|
+
onChange: (F, P) => E(F, P)
|
|
5150
5161
|
}, null)]
|
|
5151
5162
|
})]), e.hideHintAlert && e.hideCopyButton ? null : n(ct, null, null), e.hideHintAlert ? null : n(Jn, {
|
|
5152
5163
|
type: "warning",
|
|
@@ -5165,12 +5176,12 @@ const {
|
|
|
5165
5176
|
onClick: () => he(),
|
|
5166
5177
|
block: !0
|
|
5167
5178
|
}, {
|
|
5168
|
-
default: () => [n(_a, null, null),
|
|
5179
|
+
default: () => [n(_a, null, null), _("拷贝设置")]
|
|
5169
5180
|
}), n(Ze, {
|
|
5170
5181
|
block: !0,
|
|
5171
5182
|
onClick: () => de()
|
|
5172
5183
|
}, {
|
|
5173
|
-
default: () => [n(Xa, null, null),
|
|
5184
|
+
default: () => [n(Xa, null, null), _("清空缓存")]
|
|
5174
5185
|
})])])]
|
|
5175
5186
|
})]), n(Qe, {
|
|
5176
5187
|
width: 320,
|
|
@@ -5180,20 +5191,20 @@ const {
|
|
|
5180
5191
|
bodyStyle: {
|
|
5181
5192
|
padding: 0
|
|
5182
5193
|
},
|
|
5183
|
-
onClose: () =>
|
|
5194
|
+
onClose: () => x(!1)
|
|
5184
5195
|
}, {
|
|
5185
5196
|
default: () => [n(Pi, {
|
|
5186
5197
|
theme: w.value.theme,
|
|
5187
5198
|
settingValue: w.value,
|
|
5188
|
-
onChange: (F, P,
|
|
5189
|
-
subKey:
|
|
5199
|
+
onChange: (F, P, W) => E(P || "primaryColor", F, {
|
|
5200
|
+
subKey: W
|
|
5190
5201
|
})
|
|
5191
5202
|
}, null)]
|
|
5192
5203
|
}), n(Qe, {
|
|
5193
5204
|
width: 320,
|
|
5194
5205
|
closable: !1,
|
|
5195
5206
|
placement: "right",
|
|
5196
|
-
open:
|
|
5207
|
+
open: v.value,
|
|
5197
5208
|
bodyStyle: {
|
|
5198
5209
|
padding: 0
|
|
5199
5210
|
},
|
|
@@ -5201,7 +5212,7 @@ const {
|
|
|
5201
5212
|
}, {
|
|
5202
5213
|
default: () => [n(zi, {
|
|
5203
5214
|
settingValue: w.value,
|
|
5204
|
-
onChange: (F, P,
|
|
5215
|
+
onChange: (F, P, W) => E(F, W, {
|
|
5205
5216
|
subKey: P
|
|
5206
5217
|
})
|
|
5207
5218
|
}, null)]
|
|
@@ -5717,7 +5728,7 @@ const {
|
|
|
5717
5728
|
opacity: 0,
|
|
5718
5729
|
transform: "translate3d(0, 2000px, 0)"
|
|
5719
5730
|
}
|
|
5720
|
-
}),
|
|
5731
|
+
}), Ml = new S("fadeOutUpBig", {
|
|
5721
5732
|
from: {
|
|
5722
5733
|
opacity: 1
|
|
5723
5734
|
},
|
|
@@ -5725,7 +5736,7 @@ const {
|
|
|
5725
5736
|
opacity: 0,
|
|
5726
5737
|
transform: "translate3d(0, -2000px, 0)"
|
|
5727
5738
|
}
|
|
5728
|
-
}),
|
|
5739
|
+
}), Bl = new S("fadeOutLeftBig", {
|
|
5729
5740
|
from: {
|
|
5730
5741
|
opacity: 1
|
|
5731
5742
|
},
|
|
@@ -5857,11 +5868,11 @@ const {
|
|
|
5857
5868
|
},
|
|
5858
5869
|
"&.fadeOutUpBig": {
|
|
5859
5870
|
animationFillMode: "both",
|
|
5860
|
-
animationName:
|
|
5871
|
+
animationName: Ml
|
|
5861
5872
|
},
|
|
5862
5873
|
"&.fadeOutLeftBig": {
|
|
5863
5874
|
animationFillMode: "both",
|
|
5864
|
-
animationName:
|
|
5875
|
+
animationName: Bl
|
|
5865
5876
|
},
|
|
5866
5877
|
"&.fadeOutRightBig": {
|
|
5867
5878
|
animationFillMode: "both",
|
|
@@ -6392,7 +6403,7 @@ const {
|
|
|
6392
6403
|
transform: "translate3d(0, 100%, 0)",
|
|
6393
6404
|
visibility: "hidden"
|
|
6394
6405
|
}
|
|
6395
|
-
}),
|
|
6406
|
+
}), Mr = new S("slideOutLeft", {
|
|
6396
6407
|
from: {
|
|
6397
6408
|
transform: "translate3d(0, 0, 0)"
|
|
6398
6409
|
},
|
|
@@ -6400,7 +6411,7 @@ const {
|
|
|
6400
6411
|
transform: "translate3d(-100%, 0, 0)",
|
|
6401
6412
|
visibility: "hidden"
|
|
6402
6413
|
}
|
|
6403
|
-
}),
|
|
6414
|
+
}), Br = new S("slideOutRight", {
|
|
6404
6415
|
from: {
|
|
6405
6416
|
transform: "translate3d(0, 0, 0)"
|
|
6406
6417
|
},
|
|
@@ -6440,11 +6451,11 @@ const {
|
|
|
6440
6451
|
},
|
|
6441
6452
|
"&.slideOutLeft": {
|
|
6442
6453
|
animationFillMode: "both",
|
|
6443
|
-
animationName:
|
|
6454
|
+
animationName: Mr
|
|
6444
6455
|
},
|
|
6445
6456
|
"&.slideOutRight": {
|
|
6446
6457
|
animationFillMode: "both",
|
|
6447
|
-
animationName:
|
|
6458
|
+
animationName: Br
|
|
6448
6459
|
},
|
|
6449
6460
|
"&.slideOutUp": {
|
|
6450
6461
|
animationFillMode: "both",
|
|
@@ -6565,7 +6576,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6565
6576
|
}, [a]);
|
|
6566
6577
|
}
|
|
6567
6578
|
return e;
|
|
6568
|
-
},
|
|
6579
|
+
}, Hn = /* @__PURE__ */ j({
|
|
6569
6580
|
props: {
|
|
6570
6581
|
hashId: String,
|
|
6571
6582
|
baseClassName: String,
|
|
@@ -6586,7 +6597,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6586
6597
|
class: `${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()
|
|
6587
6598
|
}, [n("div", {
|
|
6588
6599
|
class: `${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()
|
|
6589
|
-
}, [a.title]), n(
|
|
6600
|
+
}, [a.title]), n(Hn, {
|
|
6590
6601
|
hashId: e.hashId,
|
|
6591
6602
|
onItemClick: e.onItemClick,
|
|
6592
6603
|
appList: a == null ? void 0 : a.children,
|
|
@@ -6606,7 +6617,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6606
6617
|
})])]);
|
|
6607
6618
|
};
|
|
6608
6619
|
}
|
|
6609
|
-
}),
|
|
6620
|
+
}), jn = /* @__PURE__ */ j({
|
|
6610
6621
|
props: {
|
|
6611
6622
|
hashId: String,
|
|
6612
6623
|
baseClassName: String,
|
|
@@ -6627,7 +6638,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6627
6638
|
class: `${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()
|
|
6628
6639
|
}, [n("div", {
|
|
6629
6640
|
class: `${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()
|
|
6630
|
-
}, [a.title]), n(
|
|
6641
|
+
}, [a.title]), n(jn, {
|
|
6631
6642
|
hashId: e.hashId,
|
|
6632
6643
|
onItemClick: e.onItemClick,
|
|
6633
6644
|
appList: a == null ? void 0 : a.children,
|
|
@@ -6643,7 +6654,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6643
6654
|
href: e.onItemClick ? void 0 : a.url,
|
|
6644
6655
|
target: a.target,
|
|
6645
6656
|
rel: "noreferrer"
|
|
6646
|
-
}, [n(
|
|
6657
|
+
}, [n(Mo, {
|
|
6647
6658
|
logo: a.icon
|
|
6648
6659
|
}, null), n("div", null, [n("div", null, [a.title]), a.desc ? n("span", null, [a.desc]) : null])])]);
|
|
6649
6660
|
})])]);
|
|
@@ -6665,12 +6676,12 @@ const rs = /* @__PURE__ */ j({
|
|
|
6665
6676
|
};
|
|
6666
6677
|
return () => {
|
|
6667
6678
|
var s;
|
|
6668
|
-
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, {
|
|
6669
6680
|
hashId: o.value,
|
|
6670
6681
|
appList: e.appList,
|
|
6671
6682
|
onItemClick: e.onItemClick ? i : void 0,
|
|
6672
6683
|
baseClassName: `${t}-simple`
|
|
6673
|
-
}, null)) : a(n(
|
|
6684
|
+
}, null)) : a(n(jn, {
|
|
6674
6685
|
hashId: o.value,
|
|
6675
6686
|
appList: e.appList,
|
|
6676
6687
|
onItemClick: e.onItemClick ? i : void 0,
|
|
@@ -6681,10 +6692,10 @@ const rs = /* @__PURE__ */ j({
|
|
|
6681
6692
|
});
|
|
6682
6693
|
export {
|
|
6683
6694
|
ss as AppsLogoList,
|
|
6684
|
-
|
|
6695
|
+
Cn as BaseMenu,
|
|
6685
6696
|
Zo as DefaultHeader,
|
|
6686
6697
|
ts as GProLayout,
|
|
6687
|
-
|
|
6698
|
+
Wt as GlobalFooter,
|
|
6688
6699
|
os as PageContainer,
|
|
6689
6700
|
so as PageLoading,
|
|
6690
6701
|
ns as PageLock,
|
|
@@ -6692,7 +6703,7 @@ export {
|
|
|
6692
6703
|
as as RightContent,
|
|
6693
6704
|
bi as SearchPageInput,
|
|
6694
6705
|
ls as SettingDrawer,
|
|
6695
|
-
|
|
6706
|
+
Gt as SiderMenuWrapper,
|
|
6696
6707
|
Tt as animateSeting,
|
|
6697
6708
|
st as baseMenuProps,
|
|
6698
6709
|
Xo as checkThemeStatus,
|
|
@@ -6700,14 +6711,14 @@ export {
|
|
|
6700
6711
|
Bn as coverToNewToken,
|
|
6701
6712
|
to as defaultContextKey,
|
|
6702
6713
|
jo as filterTree,
|
|
6703
|
-
|
|
6714
|
+
Mn as findLastKey,
|
|
6704
6715
|
Do as flatMap,
|
|
6705
|
-
|
|
6716
|
+
$n as getLastPath,
|
|
6706
6717
|
Ho as getMatchedList,
|
|
6707
6718
|
No as getMenuData,
|
|
6708
6719
|
Ao as getMenuFirstChildren,
|
|
6709
6720
|
_o as handleThemeConfig,
|
|
6710
|
-
|
|
6721
|
+
Rn as hanlePathKey,
|
|
6711
6722
|
no as provideProLayoutContext,
|
|
6712
6723
|
Vo as removeDuplicatesByName,
|
|
6713
6724
|
is as useLayoutMenu,
|