@gx-design-vue/pro-layout 0.1.0-beta.73 → 0.1.0-beta.75
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/ProLayout.d.ts +9 -0
- package/dist/components/GlobalHeader/DefaultHeader.d.ts +16 -3
- package/dist/components/GlobalHeader/index.d.ts +9 -0
- package/dist/components/GlobalHeader/props.d.ts +5 -1
- package/dist/pro-layout.js +211 -210
- package/dist/pro-layout.umd.cjs +2 -2
- package/dist/props.d.ts +4 -0
- package/package.json +1 -1
package/dist/pro-layout.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { createVNode as t, defineComponent as E, createTextVNode as U, mergeProps as te, toRefs as Je, ref as me, reactive as Be, watch as
|
|
2
|
-
import { pick as ae, cloneDeep as Re, omit as
|
|
3
|
-
import { LayoutFooter as jn, Spin as Ct, Tabs as xt, Menu as ye, Dropdown as dt, Layout as Ke, Popover as En, Badge as Kn, ConfigProvider as St, Drawer as
|
|
1
|
+
import { createVNode as t, defineComponent as E, createTextVNode as U, mergeProps as te, toRefs as Je, ref as me, reactive as Be, watch as se, computed as $, unref as re, Fragment as J, withDirectives as zn, vShow as Nn, isVNode as Le, resolveComponent as Gt, nextTick as pt, watchEffect as An, onMounted as Yt, Transition as Hn } from "vue";
|
|
2
|
+
import { pick as ae, cloneDeep as Re, omit as Oe } from "lodash-es";
|
|
3
|
+
import { LayoutFooter as jn, Spin as Ct, Tabs as xt, Menu as ye, Dropdown as dt, Layout as Ke, Popover as En, Badge as Kn, ConfigProvider as St, Drawer as qe, Avatar as qt, Form as Ft, Input as Qt, Button as Qe, Empty as Pt, MenuItem as Tt, Breadcrumb as Wn, Card as Un, Tooltip as et, List as Ie, Switch as Zt, TabPane as _n, Select as Ve, message as Xn, Segmented as Vn, Divider as st, Alert as Gn } from "ant-design-vue";
|
|
4
4
|
import { useLocalStorage as tt, useColorMode as Yn, useStyleTag as qn, useMagicKeys as Jt, whenever as mt, useThrottleFn as Qn, onKeyStroke as ct, useFullscreen as Zn, useDebounceFn as Jn, useClipboard as ea } from "@vueuse/core";
|
|
5
5
|
import { useState as be, useMemo as ft, useMergedState as ze, useMediaQuery as en } from "@gx-design-vue/pro-hooks";
|
|
6
|
-
import { getPrefixCls as oe, arrayRepeat as ta, getSlotVNode as $e, classNames as q, isBoolean as ne, merge as Ce, isNumber as
|
|
7
|
-
import ca, { themeConfig as Y, useContext as ua, useProStyle as fe, useStyle as Pe, mergeToken as He, getTokenLayoutTheme as ve, resetComponent as da, Keyframe as v, checkMenuDark as nt, getDefaultLayoutToken as at, useProConfigContext as
|
|
6
|
+
import { getPrefixCls as oe, arrayRepeat as ta, getSlotVNode as $e, classNames as q, isBoolean as ne, merge as Ce, isNumber as We, isUrl as wt, isImg as na, convertValueBoolean as Ne, isObject as aa, getLevelData as It, deepCopy as oa, isArray as tn, getRandomNumber as ht, getSlot as le, getSlotsProps as ia, isWindowsOs as la, isDeepEqualReact as ra, isBrowser as sa } from "@gx-design-vue/pro-utils";
|
|
7
|
+
import ca, { themeConfig as Y, useContext as ua, useProStyle as fe, useStyle as Pe, mergeToken as He, getTokenLayoutTheme as ve, resetComponent as da, Keyframe as v, checkMenuDark as nt, getDefaultLayoutToken as at, useProConfigContext as Me, getLayoutTheme as nn, useProForm as ma, unit as an, setAlpha as fa, defaultSystemTheme as ha, defaultLayout as ga, colorList as ya } from "@gx-design-vue/pro-provider";
|
|
8
8
|
import { createTypes as ba } from "vue-types";
|
|
9
9
|
import { spinProps as va } from "ant-design-vue/es/spin";
|
|
10
10
|
import we from "dayjs";
|
|
11
|
-
import { GithubOutlined as pa, CloseOutlined as ot, FullscreenExitOutlined as on, FullscreenOutlined as ln, ReloadOutlined as gt, ExportOutlined as Ca, VerticalRightOutlined as xa, VerticalLeftOutlined as Sa, VerticalAlignMiddleOutlined as wa, SwapOutlined as Ia, DownOutlined as Ra, AppstoreOutlined as $a, createFromIconfontCN as Ba, ArrowLeftOutlined as La, MenuUnfoldOutlined as
|
|
11
|
+
import { GithubOutlined as pa, CloseOutlined as ot, FullscreenExitOutlined as on, FullscreenOutlined as ln, ReloadOutlined as gt, ExportOutlined as Ca, VerticalRightOutlined as xa, VerticalLeftOutlined as Sa, VerticalAlignMiddleOutlined as wa, SwapOutlined as Ia, DownOutlined as Ra, AppstoreOutlined as $a, createFromIconfontCN as Ba, ArrowLeftOutlined as La, MenuUnfoldOutlined as Ma, MenuFoldOutlined as Oa, UserOutlined as rn, LockOutlined as sn, MenuOutlined as ka, ArrowRightOutlined as Fa, SearchOutlined as Dt, EnterOutlined as Pa, ArrowUpOutlined as zt, CompressOutlined as Ta, ExpandOutlined as Da, SettingOutlined as cn, LogoutOutlined as za, DesktopOutlined as Na, CheckOutlined as un, NotificationOutlined as Aa, CopyOutlined as Ha, ClearOutlined as ja } from "@ant-design/icons-vue";
|
|
12
12
|
import { useProAppContext as Rt } from "@gx-design-vue/pro-app";
|
|
13
13
|
import { useRouter as it, RouterLink as Ea } from "vue-router";
|
|
14
14
|
import { getAlphaColor as ke } from "ant-design-vue/es/theme/themes/dark/colorAlgorithm";
|
|
@@ -170,7 +170,7 @@ const Fe = {
|
|
|
170
170
|
onSelect: {
|
|
171
171
|
type: Function
|
|
172
172
|
}
|
|
173
|
-
},
|
|
173
|
+
}, ce = {
|
|
174
174
|
...Fe,
|
|
175
175
|
...rt,
|
|
176
176
|
...lt,
|
|
@@ -241,7 +241,10 @@ const Fe = {
|
|
|
241
241
|
menuLoading: Boolean,
|
|
242
242
|
autoHideHeader: Boolean,
|
|
243
243
|
isMobile: Boolean,
|
|
244
|
-
|
|
244
|
+
headerMainWidth: {
|
|
245
|
+
type: Number,
|
|
246
|
+
default: void 0
|
|
247
|
+
},
|
|
245
248
|
menuData: {
|
|
246
249
|
type: Array,
|
|
247
250
|
default: () => []
|
|
@@ -276,22 +279,22 @@ const Fe = {
|
|
|
276
279
|
default: () => {
|
|
277
280
|
}
|
|
278
281
|
},
|
|
279
|
-
collapsedButtonRender:
|
|
280
|
-
matchMenuKeys:
|
|
281
|
-
onCollapse:
|
|
282
|
-
onOpenKeys:
|
|
283
|
-
onSelect:
|
|
282
|
+
collapsedButtonRender: ce.collapsedButtonRender,
|
|
283
|
+
matchMenuKeys: ce.matchMenuKeys,
|
|
284
|
+
onCollapse: ce.onCollapse,
|
|
285
|
+
onOpenKeys: ce.onOpenKeys,
|
|
286
|
+
onSelect: ce.onSelect
|
|
284
287
|
}, mn = {
|
|
285
288
|
...dn,
|
|
286
289
|
hasSiderMenu: Boolean,
|
|
287
|
-
collapsedWidth:
|
|
288
|
-
siderWidth:
|
|
290
|
+
collapsedWidth: ce.collapsedWidth,
|
|
291
|
+
siderWidth: ce.siderWidth
|
|
289
292
|
}, yt = {
|
|
290
293
|
loading: V.looseBool,
|
|
291
|
-
isMobile:
|
|
294
|
+
isMobile: ce.isMobile,
|
|
292
295
|
collapsed: rt.collapsed,
|
|
293
|
-
siderWidth:
|
|
294
|
-
collapsedWidth:
|
|
296
|
+
siderWidth: ce.siderWidth,
|
|
297
|
+
collapsedWidth: ce.collapsedWidth,
|
|
295
298
|
fixedTabsBar: Fe.fixedTabsBar,
|
|
296
299
|
storageTabsBar: Fe.storageTabsBar,
|
|
297
300
|
visible: {
|
|
@@ -412,7 +415,7 @@ const Fe = {
|
|
|
412
415
|
}, Ae = {
|
|
413
416
|
...$t,
|
|
414
417
|
...Fe,
|
|
415
|
-
...
|
|
418
|
+
...ce,
|
|
416
419
|
...mn,
|
|
417
420
|
...ae(yt, ["onTabsChange", "onReloadPage", "onUpdate:tabs"]),
|
|
418
421
|
pageContainerProps: {
|
|
@@ -664,7 +667,7 @@ function io(e) {
|
|
|
664
667
|
return [oo(a)];
|
|
665
668
|
}, e);
|
|
666
669
|
}
|
|
667
|
-
const
|
|
670
|
+
const Ue = /* @__PURE__ */ E({
|
|
668
671
|
name: "GIcon",
|
|
669
672
|
props: {
|
|
670
673
|
name: String,
|
|
@@ -700,7 +703,7 @@ const We = /* @__PURE__ */ E({
|
|
|
700
703
|
}), lo = [{
|
|
701
704
|
key: "fixed",
|
|
702
705
|
label: "置顶",
|
|
703
|
-
icon: (e) => t(
|
|
706
|
+
icon: (e) => t(Ue, {
|
|
704
707
|
name: e ? "unpinned" : "fixed"
|
|
705
708
|
}, null)
|
|
706
709
|
}, {
|
|
@@ -789,7 +792,7 @@ const co = xt.TabPane, uo = ye.Item, mo = /* @__PURE__ */ E({
|
|
|
789
792
|
fixed: o.value && ((pe = S.value) != null && pe.fixed) ? (Te = S.value) == null ? void 0 : Te.fixed : [],
|
|
790
793
|
normal: o.value && ((xe = S.value) != null && xe.normal) ? (Se = S.value) == null ? void 0 : Se.normal : []
|
|
791
794
|
});
|
|
792
|
-
|
|
795
|
+
se(o, (g) => {
|
|
793
796
|
S.value = g ? Re(s) : {
|
|
794
797
|
fixed: [],
|
|
795
798
|
normal: []
|
|
@@ -815,27 +818,27 @@ const co = xt.TabPane, uo = ye.Item, mo = /* @__PURE__ */ E({
|
|
|
815
818
|
...g
|
|
816
819
|
} : g;
|
|
817
820
|
});
|
|
818
|
-
|
|
819
|
-
var
|
|
820
|
-
o.value && (S.value = Re(g)), (
|
|
821
|
+
se(() => s, (g) => {
|
|
822
|
+
var M;
|
|
823
|
+
o.value && (S.value = Re(g)), (M = e.onTabsChange) == null || M.call(e, [...s.fixed, ...s.normal]);
|
|
821
824
|
}, {
|
|
822
825
|
deep: !0
|
|
823
826
|
});
|
|
824
|
-
const P = (g,
|
|
825
|
-
let T = s.fixed.find((j) => W(j) === g || j.name ===
|
|
826
|
-
return T || (T = s.normal.find((j) => W(j) === g || j.name ===
|
|
827
|
-
},
|
|
827
|
+
const P = (g, M) => {
|
|
828
|
+
let T = s.fixed.find((j) => W(j) === g || j.name === M);
|
|
829
|
+
return T || (T = s.normal.find((j) => W(j) === g || j.name === M)), T;
|
|
830
|
+
}, O = (g) => W(g) === x.value, N = (g) => {
|
|
828
831
|
var T;
|
|
829
832
|
const {
|
|
830
|
-
fixed:
|
|
833
|
+
fixed: M
|
|
831
834
|
} = ((T = g == null ? void 0 : g.meta) == null ? void 0 : T.tabState) || {};
|
|
832
|
-
return g != null && g.meta ? ne(
|
|
835
|
+
return g != null && g.meta ? ne(M) ? M : M === 0 : !1;
|
|
833
836
|
}, Q = (g) => {
|
|
834
837
|
var T, j;
|
|
835
838
|
const {
|
|
836
|
-
hidden:
|
|
839
|
+
hidden: M
|
|
837
840
|
} = ((T = g == null ? void 0 : g.meta) == null ? void 0 : T.tabState) || {};
|
|
838
|
-
if (g.name && g.meta &&
|
|
841
|
+
if (g.name && g.meta && M !== !0) {
|
|
839
842
|
const z = N(g), A = W(g), ue = P(A, g.name), De = {
|
|
840
843
|
path: g.path,
|
|
841
844
|
fullPath: A,
|
|
@@ -849,49 +852,49 @@ const co = xt.TabPane, uo = ye.Item, mo = /* @__PURE__ */ E({
|
|
|
849
852
|
}
|
|
850
853
|
})
|
|
851
854
|
};
|
|
852
|
-
ue ? Ce(ue, De) : z ? s.fixed.push(De) : s.normal.push(De),
|
|
855
|
+
ue ? Ce(ue, De) : z ? s.fixed.push(De) : s.normal.push(De), O(g) && (l.activeKey = A);
|
|
853
856
|
}
|
|
854
857
|
}, _ = (g) => {
|
|
855
|
-
g.forEach((
|
|
856
|
-
N(
|
|
858
|
+
g.forEach((M) => {
|
|
859
|
+
N(M) && Q(re(M));
|
|
857
860
|
});
|
|
858
861
|
};
|
|
859
|
-
|
|
862
|
+
se(() => y.value, (g) => {
|
|
860
863
|
_(g);
|
|
861
864
|
}, {
|
|
862
865
|
deep: !0,
|
|
863
866
|
immediate: !0
|
|
864
|
-
}),
|
|
867
|
+
}), se(() => r.currentRoute.value, (g) => {
|
|
865
868
|
Q(g);
|
|
866
869
|
}, {
|
|
867
870
|
deep: !0,
|
|
868
871
|
immediate: !0
|
|
869
872
|
});
|
|
870
873
|
const X = (g) => {
|
|
871
|
-
var
|
|
872
|
-
return ((j = (T = (
|
|
874
|
+
var M, T, j;
|
|
875
|
+
return ((j = (T = (M = h.value.find((z) => (g || l.activeKey) === W(z))) == null ? void 0 : M.meta) == null ? void 0 : T.tabState) == null ? void 0 : j.originPath) || g || l.activeKey;
|
|
873
876
|
}, he = (g, {
|
|
874
|
-
type:
|
|
877
|
+
type: M,
|
|
875
878
|
addType: T,
|
|
876
879
|
params: j
|
|
877
880
|
}) => {
|
|
878
881
|
const z = N(g) ? "fixed" : "normal";
|
|
879
|
-
|
|
882
|
+
M === "add" && T ? s[z][T](j) : M === "merge" ? s[z] = s[z].map((A) => W(A) === W(g) ? Ce(A, j) : A) : M === "remove" && (s[z] = s[z].filter((A) => W(A) !== W(g)));
|
|
880
883
|
}, de = () => {
|
|
881
884
|
const g = h.value.slice(-1)[0];
|
|
882
885
|
g ? r.push({
|
|
883
886
|
path: X(W(g))
|
|
884
887
|
}) : r.push("/");
|
|
885
888
|
}, L = async (g) => {
|
|
886
|
-
const
|
|
887
|
-
|
|
889
|
+
const M = h.value.find((T) => g === W(T));
|
|
890
|
+
M && (he(M, {
|
|
888
891
|
type: "remove",
|
|
889
|
-
params:
|
|
890
|
-
}), M
|
|
892
|
+
params: M
|
|
893
|
+
}), O(M) && de());
|
|
891
894
|
}, k = (g) => {
|
|
892
|
-
const
|
|
893
|
-
|
|
894
|
-
path: X(W(
|
|
895
|
+
const M = h.value.find((T) => W(T) === g);
|
|
896
|
+
M && l.activeKey !== W(M) && r.push({
|
|
897
|
+
path: X(W(M))
|
|
895
898
|
});
|
|
896
899
|
}, D = () => {
|
|
897
900
|
var g;
|
|
@@ -899,14 +902,14 @@ const co = xt.TabPane, uo = ye.Item, mo = /* @__PURE__ */ E({
|
|
|
899
902
|
i.value = !1;
|
|
900
903
|
}, 500);
|
|
901
904
|
}, K = (g) => l[g], ee = (g) => {
|
|
902
|
-
const
|
|
903
|
-
l.activeKey !== K(g) && (s.normal.length > 0 ? P(W(
|
|
904
|
-
}, ge = (g,
|
|
905
|
-
let T = s.normal.findIndex((A) => W(A) === K(
|
|
906
|
-
const j = h.value.find((A) => W(A) === K(
|
|
905
|
+
const M = h.value.find((T) => W(T) === K(g));
|
|
906
|
+
l.activeKey !== K(g) && (s.normal.length > 0 ? P(W(M)) || r.push(X(K(g))) : de());
|
|
907
|
+
}, ge = (g, M) => {
|
|
908
|
+
let T = s.normal.findIndex((A) => W(A) === K(M));
|
|
909
|
+
const j = h.value.find((A) => W(A) === K(M)), z = N(j);
|
|
907
910
|
switch (g) {
|
|
908
911
|
case "fixed":
|
|
909
|
-
z ? (T = s.fixed.findIndex((A) => W(A) === K(
|
|
912
|
+
z ? (T = s.fixed.findIndex((A) => W(A) === K(M)), s.normal.unshift(Ce(j, {
|
|
910
913
|
meta: {
|
|
911
914
|
tabState: {
|
|
912
915
|
fixed: !z
|
|
@@ -924,19 +927,19 @@ const co = xt.TabPane, uo = ye.Item, mo = /* @__PURE__ */ E({
|
|
|
924
927
|
!i.value && L(W(j) || "");
|
|
925
928
|
break;
|
|
926
929
|
case "closeOthersTabs":
|
|
927
|
-
s.normal = s.normal.filter((A) => W(A) === K(
|
|
930
|
+
s.normal = s.normal.filter((A) => W(A) === K(M) || N(A)), ee(M);
|
|
928
931
|
break;
|
|
929
932
|
case "closeLeftTabs":
|
|
930
|
-
|
|
933
|
+
We(T) && (s.normal = s.normal.filter((A, ue) => ue >= T || N(A))), ee(M);
|
|
931
934
|
break;
|
|
932
935
|
case "closeRightTabs":
|
|
933
|
-
|
|
936
|
+
We(T) && (s.normal = s.normal.filter((A, ue) => ue <= T || N(A))), ee(M);
|
|
934
937
|
break;
|
|
935
938
|
case "closeAllTabs":
|
|
936
939
|
s.normal = s.normal.filter((A) => N(A)), de();
|
|
937
940
|
break;
|
|
938
941
|
case "reloadPage":
|
|
939
|
-
(T === 0 || T) && l.activeKey === K(
|
|
942
|
+
(T === 0 || T) && l.activeKey === K(M) && D();
|
|
940
943
|
break;
|
|
941
944
|
case "newBlank":
|
|
942
945
|
window.open(location.href);
|
|
@@ -945,8 +948,8 @@ const co = xt.TabPane, uo = ye.Item, mo = /* @__PURE__ */ E({
|
|
|
945
948
|
c.value = !c.value;
|
|
946
949
|
break;
|
|
947
950
|
}
|
|
948
|
-
}, H = (g,
|
|
949
|
-
const T = h.value.findIndex((j) => W(j) ===
|
|
951
|
+
}, H = (g, M) => {
|
|
952
|
+
const T = h.value.findIndex((j) => W(j) === M);
|
|
950
953
|
if (g === "closeOthersTabs")
|
|
951
954
|
return h.value.filter((z, A) => A !== T && !N(z)).length === 0;
|
|
952
955
|
if (g === "closeLeftTabs")
|
|
@@ -954,7 +957,7 @@ const co = xt.TabPane, uo = ye.Item, mo = /* @__PURE__ */ E({
|
|
|
954
957
|
if (g === "closeRightTabs")
|
|
955
958
|
return h.value.filter((z, A) => A > T && !N(z)).length === 0;
|
|
956
959
|
}, G = (g) => {
|
|
957
|
-
let
|
|
960
|
+
let M;
|
|
958
961
|
const {
|
|
959
962
|
path: T,
|
|
960
963
|
stateType: j
|
|
@@ -962,7 +965,7 @@ const co = xt.TabPane, uo = ye.Item, mo = /* @__PURE__ */ E({
|
|
|
962
965
|
return t(ye, {
|
|
963
966
|
selectedKeys: [],
|
|
964
967
|
onClick: (z) => ge(z.key, j)
|
|
965
|
-
}, so(
|
|
968
|
+
}, so(M = lo.map((z) => {
|
|
966
969
|
if (z.key === "divider") return t(ye.Divider, {
|
|
967
970
|
key: z.key
|
|
968
971
|
}, null);
|
|
@@ -983,13 +986,13 @@ const co = xt.TabPane, uo = ye.Item, mo = /* @__PURE__ */ E({
|
|
|
983
986
|
})])];
|
|
984
987
|
}
|
|
985
988
|
});
|
|
986
|
-
})) ?
|
|
987
|
-
default: () => [
|
|
989
|
+
})) ? M : {
|
|
990
|
+
default: () => [M]
|
|
988
991
|
});
|
|
989
992
|
}, Z = ({
|
|
990
993
|
router: g
|
|
991
994
|
}) => {
|
|
992
|
-
const
|
|
995
|
+
const M = e.itemRender ? e.itemRender(g) : null, T = N(g);
|
|
993
996
|
return t(dt, {
|
|
994
997
|
trigger: "contextmenu",
|
|
995
998
|
overlay: t(G, {
|
|
@@ -1002,7 +1005,7 @@ const co = xt.TabPane, uo = ye.Item, mo = /* @__PURE__ */ E({
|
|
|
1002
1005
|
}, {
|
|
1003
1006
|
default: () => {
|
|
1004
1007
|
var j;
|
|
1005
|
-
return [
|
|
1008
|
+
return [M || t("div", {
|
|
1006
1009
|
class: [`${C}-title`, p.value]
|
|
1007
1010
|
}, [l.activeKey === W(g) && t(gt, {
|
|
1008
1011
|
class: [`${C}-reload-btn`, p.value],
|
|
@@ -1010,7 +1013,7 @@ const co = xt.TabPane, uo = ye.Item, mo = /* @__PURE__ */ E({
|
|
|
1010
1013
|
onClick: (z) => {
|
|
1011
1014
|
z.stopPropagation(), !i.value && D();
|
|
1012
1015
|
}
|
|
1013
|
-
}, null), (j = g.meta) == null ? void 0 : j.title, T && t(
|
|
1016
|
+
}, null), (j = g.meta) == null ? void 0 : j.title, T && t(Ue, {
|
|
1014
1017
|
class: [`${C}-icon`, p.value],
|
|
1015
1018
|
name: "fixed"
|
|
1016
1019
|
}, null), h.value.length > 1 && !N(g) && t(ot, {
|
|
@@ -1034,11 +1037,11 @@ const co = xt.TabPane, uo = ye.Item, mo = /* @__PURE__ */ E({
|
|
|
1034
1037
|
activeKey: l.activeKey,
|
|
1035
1038
|
onTabClick: k
|
|
1036
1039
|
}, {
|
|
1037
|
-
default: () => [h.value.map((
|
|
1038
|
-
key: W(
|
|
1040
|
+
default: () => [h.value.map((M) => t(co, {
|
|
1041
|
+
key: W(M),
|
|
1039
1042
|
closable: !1,
|
|
1040
1043
|
tab: t(Z, {
|
|
1041
|
-
router:
|
|
1044
|
+
router: M
|
|
1042
1045
|
}, null)
|
|
1043
1046
|
}, null))],
|
|
1044
1047
|
rightExtra: () => t("div", {
|
|
@@ -1457,7 +1460,7 @@ const ho = (e) => {
|
|
|
1457
1460
|
};
|
|
1458
1461
|
}
|
|
1459
1462
|
});
|
|
1460
|
-
function
|
|
1463
|
+
function Ge(e) {
|
|
1461
1464
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
1462
1465
|
}
|
|
1463
1466
|
const Ze = (e) => {
|
|
@@ -1516,7 +1519,7 @@ const Ze = (e) => {
|
|
|
1516
1519
|
var f;
|
|
1517
1520
|
const S = Ne(u == null ? void 0 : u.icon), s = typeof u.badge == "function" ? t("div", {
|
|
1518
1521
|
class: `${o}-item-bradde`
|
|
1519
|
-
}, [(f = u.badge) == null ? void 0 : f.call(u,
|
|
1522
|
+
}, [(f = u.badge) == null ? void 0 : f.call(u, Oe(u, "badge"))]) : null, h = t("span", {
|
|
1520
1523
|
class: [`${o}-title`, !S && `${o}-title-no-icon`]
|
|
1521
1524
|
}, [u.title]);
|
|
1522
1525
|
return p ? h : t(J, null, [h, s ?? (aa(u.badge) && t(Kn, te({
|
|
@@ -1533,12 +1536,12 @@ const Ze = (e) => {
|
|
|
1533
1536
|
}, x = (F = u.meta) != null && F.icon ? t(h, te(f, {
|
|
1534
1537
|
class: "gx-pro-menu-item",
|
|
1535
1538
|
onClick: () => y(s, f)
|
|
1536
|
-
}),
|
|
1539
|
+
}), Ge(p = m(s)) ? p : {
|
|
1537
1540
|
default: () => [p]
|
|
1538
1541
|
}) : t(h, te(f, {
|
|
1539
1542
|
class: "gx-pro-menu-item",
|
|
1540
1543
|
onClick: () => y(s, f)
|
|
1541
|
-
}),
|
|
1544
|
+
}), Ge(S = m(s, !0)) ? S : {
|
|
1542
1545
|
default: () => [S]
|
|
1543
1546
|
}), I = ((R = u.meta) == null ? void 0 : R.icon) && t(Ze, {
|
|
1544
1547
|
className: o,
|
|
@@ -1558,17 +1561,17 @@ const Ze = (e) => {
|
|
|
1558
1561
|
});
|
|
1559
1562
|
const P = (f = u.meta) != null && f.icon ? t("span", {
|
|
1560
1563
|
class: "gx-pro-menu-item"
|
|
1561
|
-
}, [m(u.meta)]) : u.meta && m(u.meta),
|
|
1564
|
+
}, [m(u.meta)]) : u.meta && m(u.meta), O = ((x = u.meta) == null ? void 0 : x.type) === "group", N = O ? ye.ItemGroup : ye.SubMenu;
|
|
1562
1565
|
return t(N, {
|
|
1563
1566
|
title: P,
|
|
1564
1567
|
key: u.path,
|
|
1565
|
-
icon:
|
|
1568
|
+
icon: O ? null : t(Ze, {
|
|
1566
1569
|
className: o,
|
|
1567
1570
|
icon: (I = u.meta) == null ? void 0 : I.icon,
|
|
1568
1571
|
iconfontUrl: e.iconfontUrl,
|
|
1569
1572
|
iconType: (F = u.meta) == null ? void 0 : F.iconType
|
|
1570
1573
|
}, null)
|
|
1571
|
-
},
|
|
1574
|
+
}, Ge(B = C(u.children)) ? B : {
|
|
1572
1575
|
default: () => [B]
|
|
1573
1576
|
});
|
|
1574
1577
|
}
|
|
@@ -1581,7 +1584,7 @@ const Ze = (e) => {
|
|
|
1581
1584
|
disabled: (R = u.meta) == null ? void 0 : R.disabled,
|
|
1582
1585
|
key: u.path,
|
|
1583
1586
|
icon: S
|
|
1584
|
-
},
|
|
1587
|
+
}, Ge(p) ? p : {
|
|
1585
1588
|
default: () => [p]
|
|
1586
1589
|
});
|
|
1587
1590
|
};
|
|
@@ -1969,14 +1972,14 @@ function Lo(e) {
|
|
|
1969
1972
|
return e.map((n) => {
|
|
1970
1973
|
var o;
|
|
1971
1974
|
const a = { ...n };
|
|
1972
|
-
return (o = a.meta) != null && o.hidden ? null : (a.linkPath =
|
|
1975
|
+
return (o = a.meta) != null && o.hidden ? null : (a.linkPath = Oo(a.children || []), a.children && delete a.children, a);
|
|
1973
1976
|
}).filter((n) => n);
|
|
1974
1977
|
}
|
|
1975
|
-
function
|
|
1978
|
+
function Mo(e, n) {
|
|
1976
1979
|
const a = (n || "").split("/").length === 2 ? n || "" : `/${(n || "").split("/")[1]}`, o = e.find((i) => i.path === a);
|
|
1977
1980
|
return n === void 0 ? [] : (o == null ? void 0 : o.children) || [];
|
|
1978
1981
|
}
|
|
1979
|
-
function
|
|
1982
|
+
function Oo(e) {
|
|
1980
1983
|
let n = "";
|
|
1981
1984
|
const a = function(i) {
|
|
1982
1985
|
let l = "";
|
|
@@ -2001,7 +2004,7 @@ function Vr(e, n) {
|
|
|
2001
2004
|
}
|
|
2002
2005
|
return [];
|
|
2003
2006
|
}
|
|
2004
|
-
const ko = ["left", "right"], je = ["left", "right", "down", "up"], Fo = ["downBig", "upBig", "leftBig", "rightBig"], Po = ["topLeft", "bottomRight", "topRight", "bottomLeft"], To = ["downLeft", "upRight", "downRight", "upLeft"],
|
|
2007
|
+
const ko = ["left", "right"], je = ["left", "right", "down", "up"], Fo = ["downBig", "upBig", "leftBig", "rightBig"], Po = ["topLeft", "bottomRight", "topRight", "bottomLeft"], To = ["downLeft", "upRight", "downRight", "upLeft"], Mt = {
|
|
2005
2008
|
preset: [
|
|
2006
2009
|
// 预设动画配置
|
|
2007
2010
|
{ name: "back", alias: "渐近", directions: je },
|
|
@@ -2051,8 +2054,8 @@ function Ht(e) {
|
|
|
2051
2054
|
}
|
|
2052
2055
|
const {
|
|
2053
2056
|
Sider: No
|
|
2054
|
-
} = Ke, In = (e) => e ? t(
|
|
2055
|
-
props:
|
|
2057
|
+
} = Ke, In = (e) => e ? t(Ma, null, null) : t(Oa, null, null), jt = /* @__PURE__ */ E({
|
|
2058
|
+
props: ce,
|
|
2056
2059
|
inheritAttrs: !1,
|
|
2057
2060
|
setup(e) {
|
|
2058
2061
|
const {
|
|
@@ -2065,7 +2068,7 @@ const {
|
|
|
2065
2068
|
contentFullScreen: c
|
|
2066
2069
|
} = ie(), y = Rt(), {
|
|
2067
2070
|
token: b
|
|
2068
|
-
} =
|
|
2071
|
+
} = Me(), {
|
|
2069
2072
|
theme: m,
|
|
2070
2073
|
layout: d,
|
|
2071
2074
|
isMobile: w,
|
|
@@ -2082,7 +2085,7 @@ const {
|
|
|
2082
2085
|
} = Je(e), R = n({
|
|
2083
2086
|
suffixCls: "sider",
|
|
2084
2087
|
isPor: !0
|
|
2085
|
-
}), B = $(() => e.layout === "wide"), P = $(() => e.layout === "mix" && !e.isMobile && e.splitMenus),
|
|
2088
|
+
}), B = $(() => e.layout === "wide"), P = $(() => e.layout === "mix" && !e.isMobile && e.splitMenus), O = $(() => d.value === "side" || d.value === "simple"), N = $(() => e.isMobile || B.value ? !1 : p.value), Q = $(() => (e.layout === "mix" || B.value) && "light" || r.value.theme), {
|
|
2086
2089
|
wrapSSR: _,
|
|
2087
2090
|
hashId: X
|
|
2088
2091
|
} = fe("ProLayoutSiderMenu", [wo, So, xo, xn, (H) => {
|
|
@@ -2133,7 +2136,7 @@ const {
|
|
|
2133
2136
|
return () => {
|
|
2134
2137
|
var Se;
|
|
2135
2138
|
let H;
|
|
2136
|
-
const G =
|
|
2139
|
+
const G = O.value && t(Lt, te({
|
|
2137
2140
|
hashId: X.value,
|
|
2138
2141
|
baseClassName: R
|
|
2139
2142
|
}, ae(e, Object.keys(lt))), {
|
|
@@ -2153,8 +2156,8 @@ const {
|
|
|
2153
2156
|
width: "100%"
|
|
2154
2157
|
},
|
|
2155
2158
|
onOpenKeys: (g) => {
|
|
2156
|
-
var
|
|
2157
|
-
return e.onOpenKeys && ((
|
|
2159
|
+
var M;
|
|
2160
|
+
return e.onOpenKeys && ((M = e.onOpenKeys) == null ? void 0 : M.call(e, g));
|
|
2158
2161
|
},
|
|
2159
2162
|
onSelect: ge
|
|
2160
2163
|
}, null);
|
|
@@ -2201,7 +2204,7 @@ const {
|
|
|
2201
2204
|
collapsedWidth: f.value
|
|
2202
2205
|
}, {
|
|
2203
2206
|
default: () => {
|
|
2204
|
-
var g,
|
|
2207
|
+
var g, M, T, j;
|
|
2205
2208
|
return [C.value && t("div", {
|
|
2206
2209
|
class: ["gx-pro-sider-loading", X.value]
|
|
2207
2210
|
}, [t(Ct, {
|
|
@@ -2214,7 +2217,7 @@ const {
|
|
|
2214
2217
|
flex: "1 1 0%",
|
|
2215
2218
|
overflow: "hidden auto"
|
|
2216
2219
|
}
|
|
2217
|
-
}, [x.value && ((
|
|
2220
|
+
}, [x.value && ((M = x.value) == null ? void 0 : M.call(x, e, xe)) || xe]), e.layout !== "wide" && t(J, null, [Ne(pe) && tn(pe) && pe.length > 0 && t("div", {
|
|
2218
2221
|
class: `${R}-links ${X.value}`
|
|
2219
2222
|
}, [t(ye, {
|
|
2220
2223
|
theme: Q.value,
|
|
@@ -2244,7 +2247,7 @@ const {
|
|
|
2244
2247
|
};
|
|
2245
2248
|
}
|
|
2246
2249
|
}), Rn = {
|
|
2247
|
-
...
|
|
2250
|
+
...ce,
|
|
2248
2251
|
...dn
|
|
2249
2252
|
}, Ao = ["mix", "top", "wide"], Ho = (e, n) => e === !1 ? null : e ? e(n, null) : n, jo = /* @__PURE__ */ E({
|
|
2250
2253
|
props: Rn,
|
|
@@ -2259,7 +2262,7 @@ const {
|
|
|
2259
2262
|
}) {
|
|
2260
2263
|
const a = it(), {
|
|
2261
2264
|
token: o
|
|
2262
|
-
} =
|
|
2265
|
+
} = Me(), {
|
|
2263
2266
|
getPrefixCls: i,
|
|
2264
2267
|
openKeys: l,
|
|
2265
2268
|
selectedKeys: r,
|
|
@@ -2281,11 +2284,6 @@ const {
|
|
|
2281
2284
|
n("collapse", !e.collapsed);
|
|
2282
2285
|
}, u = $(() => e.collapsedButtonRender || In), p = () => {
|
|
2283
2286
|
var s;
|
|
2284
|
-
if (e.headerContentRender) return t("div", {
|
|
2285
|
-
style: {
|
|
2286
|
-
flex: 1
|
|
2287
|
-
}
|
|
2288
|
-
}, [e.headerContentRender]);
|
|
2289
2287
|
const S = e.headerContentRender ? t("div", {
|
|
2290
2288
|
style: {
|
|
2291
2289
|
flex: 1
|
|
@@ -2356,7 +2354,10 @@ const {
|
|
|
2356
2354
|
class: `${y}-collapsed-button ${m.value}`,
|
|
2357
2355
|
onClick: C
|
|
2358
2356
|
}, [re(u)(e.collapsed)]), p()]) : Ao.includes(e.layout) ? t("div", {
|
|
2359
|
-
class: `${y}-main ${m.value}
|
|
2357
|
+
class: `${y}-main ${m.value}`,
|
|
2358
|
+
style: {
|
|
2359
|
+
width: We(e.headerMainWidth) && e.headerMainWidth !== 0 ? `${e.headerMainWidth}px` : void 0
|
|
2360
|
+
}
|
|
2360
2361
|
}, [t("div", {
|
|
2361
2362
|
class: `${y}-main-left ${m.value}`
|
|
2362
2363
|
}, [e.layout !== "wide" && e.appLogoListRender && t(bn, null, {
|
|
@@ -2388,7 +2389,7 @@ const {
|
|
|
2388
2389
|
splitMenus: l
|
|
2389
2390
|
} = Je(e), {
|
|
2390
2391
|
dark: r
|
|
2391
|
-
} =
|
|
2392
|
+
} = Me(), {
|
|
2392
2393
|
getPrefixCls: c,
|
|
2393
2394
|
menuData: y,
|
|
2394
2395
|
contentFullScreen: b,
|
|
@@ -2403,27 +2404,27 @@ const {
|
|
|
2403
2404
|
}), u = $(() => o.value === "wide"), p = $(() => a.value), S = $(() => o.value === "side" || o.value === "simple"), s = $(() => S.value && "light" || m.value.theme), {
|
|
2404
2405
|
wrapSSR: h,
|
|
2405
2406
|
hashId: f
|
|
2406
|
-
} = Pe("ProLayoutHeader", (
|
|
2407
|
+
} = Pe("ProLayoutHeader", (O) => {
|
|
2407
2408
|
var X, he;
|
|
2408
|
-
const N = (X =
|
|
2409
|
+
const N = (X = O.layout) == null ? void 0 : X.header, Q = at("header", O, (he = O.layout) == null ? void 0 : he.key), _ = nt(O, "header");
|
|
2409
2410
|
return {
|
|
2410
|
-
[`${
|
|
2411
|
-
[`${
|
|
2412
|
-
color: _ ?
|
|
2411
|
+
[`${O.proComponentsCls}-basic-layout`]: {
|
|
2412
|
+
[`${O.antCls}-layout-header${O.componentCls}${O.componentCls}-${re(m.value.key)}`]: {
|
|
2413
|
+
color: _ ? O.colorWhite : O.colorText,
|
|
2413
2414
|
backgroundColor: (N == null ? void 0 : N.colorBgMenu) || (Q == null ? void 0 : Q.colorBgMenu),
|
|
2414
2415
|
boxShadow: r.value ? "#0d0d0da6 0 2px 8px" : "",
|
|
2415
|
-
[`${
|
|
2416
|
-
color: _ ?
|
|
2416
|
+
[`${O.proComponentsCls}-global-header-collapsed-button`]: {
|
|
2417
|
+
color: _ ? O.colorWhite : void 0
|
|
2417
2418
|
}
|
|
2418
2419
|
},
|
|
2419
|
-
[`${
|
|
2420
|
+
[`${O.antCls}-layout-header${O.componentCls}`]: {
|
|
2420
2421
|
zIndex: 19,
|
|
2421
2422
|
paddingBlock: 0,
|
|
2422
2423
|
paddingInline: 0,
|
|
2423
2424
|
WebkitBackdropFilter: "blur(8px)",
|
|
2424
2425
|
backdropFilter: "blur(8px)",
|
|
2425
2426
|
transition: "background-color 0.2s cubic-bezier(.645,.045,.355,1)",
|
|
2426
|
-
[`&${
|
|
2427
|
+
[`&${O.proComponentsCls}`]: {
|
|
2427
2428
|
"&-fixed-header": {
|
|
2428
2429
|
position: "fixed",
|
|
2429
2430
|
width: "100%",
|
|
@@ -2443,7 +2444,7 @@ const {
|
|
|
2443
2444
|
paddingBlock: 0,
|
|
2444
2445
|
paddingInline: 8,
|
|
2445
2446
|
"&:hover": {
|
|
2446
|
-
color:
|
|
2447
|
+
color: O.colorText
|
|
2447
2448
|
}
|
|
2448
2449
|
}
|
|
2449
2450
|
},
|
|
@@ -2460,17 +2461,17 @@ const {
|
|
|
2460
2461
|
[`${w}-${m.value.key}`]: !0,
|
|
2461
2462
|
[`${C}`]: p.value
|
|
2462
2463
|
})), I = $(() => p.value && !n.value), F = $(() => l.value ? y.value && Lo(y.value) || [] : o.value === "top" ? y.value : []), R = $(() => S.value && I.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), B = $(() => p.value ? 0 : void 0), P = () => {
|
|
2463
|
-
const
|
|
2464
|
+
const O = t(Eo, te(e, {
|
|
2464
2465
|
mode: "horizontal",
|
|
2465
2466
|
theme: s.value,
|
|
2466
2467
|
onCollapse: i.value,
|
|
2467
2468
|
menuData: F.value,
|
|
2468
2469
|
headerContentRender: e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender
|
|
2469
2470
|
}), null);
|
|
2470
|
-
return e.headerRender ? e.headerRender(e,
|
|
2471
|
+
return e.headerRender ? e.headerRender(e, O) : O;
|
|
2471
2472
|
};
|
|
2472
2473
|
return () => {
|
|
2473
|
-
let
|
|
2474
|
+
let O;
|
|
2474
2475
|
return h(t(J, null, [p.value && !u.value && t(Et, {
|
|
2475
2476
|
style: {
|
|
2476
2477
|
height: `${d.value}px`,
|
|
@@ -2488,8 +2489,8 @@ const {
|
|
|
2488
2489
|
right: B.value,
|
|
2489
2490
|
marginTop: b.value ? `-${d.value}px` : void 0
|
|
2490
2491
|
}
|
|
2491
|
-
}, Ko(
|
|
2492
|
-
default: () => [
|
|
2492
|
+
}, Ko(O = P()) ? O : {
|
|
2493
|
+
default: () => [O]
|
|
2493
2494
|
})]));
|
|
2494
2495
|
};
|
|
2495
2496
|
}
|
|
@@ -2497,14 +2498,14 @@ const {
|
|
|
2497
2498
|
name: "SiderMenuWrapper",
|
|
2498
2499
|
inheritAttrs: !1,
|
|
2499
2500
|
props: {
|
|
2500
|
-
...
|
|
2501
|
+
...ce,
|
|
2501
2502
|
matchMenuKeys: {
|
|
2502
2503
|
type: Array,
|
|
2503
2504
|
default: () => []
|
|
2504
2505
|
}
|
|
2505
2506
|
},
|
|
2506
2507
|
setup(e) {
|
|
2507
|
-
return () => t(J, null, [e.isMobile ? t(
|
|
2508
|
+
return () => t(J, null, [e.isMobile ? t(qe, {
|
|
2508
2509
|
maskClosable: !0,
|
|
2509
2510
|
open: !e.collapsed,
|
|
2510
2511
|
closable: !1,
|
|
@@ -2529,9 +2530,9 @@ const {
|
|
|
2529
2530
|
}) : t(jt, e, null)]);
|
|
2530
2531
|
}
|
|
2531
2532
|
});
|
|
2532
|
-
function
|
|
2533
|
+
function Ot(e, { change: n }) {
|
|
2533
2534
|
const { system: a } = Yn(), [o, i, l] = ze("system", {
|
|
2534
|
-
value: $(() =>
|
|
2535
|
+
value: $(() => _e(e.value) ? e.value : "system"),
|
|
2535
2536
|
onChange: (c) => {
|
|
2536
2537
|
n == null || n(c);
|
|
2537
2538
|
}
|
|
@@ -2542,7 +2543,7 @@ function Mt(e, { change: n }) {
|
|
|
2542
2543
|
toggleMode: i
|
|
2543
2544
|
};
|
|
2544
2545
|
}
|
|
2545
|
-
function
|
|
2546
|
+
function _e(e) {
|
|
2546
2547
|
return ne(e) || e === "system";
|
|
2547
2548
|
}
|
|
2548
2549
|
function $n({ event: e, isDark: n, value: a, toggle: o }) {
|
|
@@ -2652,7 +2653,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2652
2653
|
} = fe("ProLayout", [Qa, Za], a), l = en(), {
|
|
2653
2654
|
token: r,
|
|
2654
2655
|
dark: c
|
|
2655
|
-
} =
|
|
2656
|
+
} = Me(), y = me(ht().uuid(10)), b = me(!1), m = me(!1), d = me(!1), w = Be({
|
|
2656
2657
|
position: "relative"
|
|
2657
2658
|
}), C = $(() => {
|
|
2658
2659
|
var B;
|
|
@@ -2671,23 +2672,23 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2671
2672
|
})), h = $(() => (l.value === "sm" || l.value === "xs") && !e.disableMobile && !S.value), f = $(() => ({
|
|
2672
2673
|
...e.breadcrumb || {},
|
|
2673
2674
|
itemRender: le(n, e, "pageContainerProps:breadcrumbRender")
|
|
2674
|
-
})), x = $(() => u.value && e.selectedKeys ?
|
|
2675
|
-
|
|
2675
|
+
})), x = $(() => u.value && e.selectedKeys ? Mo(e.menuData, e.selectedKeys[0]) : []), I = $(() => We(e.headerHeight) ? e.headerHeight : Y.headerHeight), F = ft(() => d.value ? 0 : We(e.siderWidth) ? e.siderWidth : e.layout === "mix" ? 215 : e.layout === "wide" ? 208 : 256, [() => e.layout, () => e.siderWidth, () => d.value]);
|
|
2676
|
+
se([() => e.layout, () => e.theme], ([B]) => {
|
|
2676
2677
|
(B === "wide" || B === "simple") && (d.value = !1), y.value = ht().uuid(10);
|
|
2677
|
-
}),
|
|
2678
|
+
}), se(() => S.value, (B) => {
|
|
2678
2679
|
if (B) {
|
|
2679
2680
|
const P = document.querySelector('meta[name="viewport"]');
|
|
2680
2681
|
P && (P.content = "");
|
|
2681
2682
|
}
|
|
2682
2683
|
}, {
|
|
2683
2684
|
immediate: !0
|
|
2684
|
-
}),
|
|
2685
|
+
}), se([() => e.contentStyle, () => e.isChildrenLayout], () => {
|
|
2685
2686
|
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (w.minHeight = 0);
|
|
2686
2687
|
}, {
|
|
2687
2688
|
immediate: !0,
|
|
2688
2689
|
deep: !0
|
|
2689
2690
|
});
|
|
2690
|
-
const R = (B, P) => B.headerRender === !1 || B.pure ? null : t(Kt, te(
|
|
2691
|
+
const R = (B, P) => B.headerRender === !1 || B.pure ? null : t(Kt, te(Oe(B, "headerHeight"), {
|
|
2691
2692
|
headerHeight: I.value,
|
|
2692
2693
|
matchMenuKeys: P || []
|
|
2693
2694
|
}), null);
|
|
@@ -2712,7 +2713,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2712
2713
|
var G;
|
|
2713
2714
|
const B = ia(yn, n, e, {
|
|
2714
2715
|
render: !0
|
|
2715
|
-
}), P = le(n, e, "collapsedButtonRender"),
|
|
2716
|
+
}), P = le(n, e, "collapsedButtonRender"), O = le(n, e, "footerRender"), N = le(n, e, "headerRender"), Q = le(n, e, "headerContentRender"), _ = le(n, e, "rightContentRender"), X = le(n, e, "tabsRouteItemRender"), he = le(n, e, "menuItemRender"), de = le(n, e, "menuHeaderRender"), L = le(n, e, "logoContentRender"), k = le(n, e, "menuFooterRender"), D = le(n, e, "subMenuItemRender"), K = le(n, e, "menuContentRender"), ee = R({
|
|
2716
2717
|
...e,
|
|
2717
2718
|
...ae(B, gn),
|
|
2718
2719
|
menuItemRender: he,
|
|
@@ -2726,7 +2727,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2726
2727
|
}, e.matchMenuKeys), ge = S.value ? {
|
|
2727
2728
|
minHeight: "835px",
|
|
2728
2729
|
marginInlineStart: F.value === 0 ? 0 : void 0
|
|
2729
|
-
} : {}, H =
|
|
2730
|
+
} : {}, H = O === !1 ? null : O ? typeof O == "function" ? O(e) : O : t(At, {
|
|
2730
2731
|
copyright: B.copyrightRender,
|
|
2731
2732
|
links: e.footerLinks
|
|
2732
2733
|
}, null);
|
|
@@ -2795,7 +2796,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2795
2796
|
isDark: i,
|
|
2796
2797
|
innerDark: l,
|
|
2797
2798
|
toggleMode: r
|
|
2798
|
-
} =
|
|
2799
|
+
} = Ot($(() => e.dark), {
|
|
2799
2800
|
change: (w) => {
|
|
2800
2801
|
var C, u;
|
|
2801
2802
|
(C = e.onDarkChange) == null || C.call(e, w), (u = e == null ? void 0 : e["onUpdate:dark"]) == null || u.call(e, w);
|
|
@@ -2826,7 +2827,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2826
2827
|
}, {
|
|
2827
2828
|
default: () => [t(Uo, te({
|
|
2828
2829
|
style: o.style
|
|
2829
|
-
},
|
|
2830
|
+
}, Oe(e, ["onSelect", "onOpenKeys", "onCollapse", "onTabsChange", "onDarkChange", "dark"]), {
|
|
2830
2831
|
dark: l.value,
|
|
2831
2832
|
onSelect: m,
|
|
2832
2833
|
onOpenKeys: b,
|
|
@@ -2894,7 +2895,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2894
2895
|
}), _o = Bn(), Ln = {
|
|
2895
2896
|
hashId: String,
|
|
2896
2897
|
className: String
|
|
2897
|
-
},
|
|
2898
|
+
}, Mn = {
|
|
2898
2899
|
open: {
|
|
2899
2900
|
type: Boolean,
|
|
2900
2901
|
default: void 0
|
|
@@ -2904,7 +2905,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2904
2905
|
cryptoFn: Function,
|
|
2905
2906
|
...ae(_o, ["name", "avatar"])
|
|
2906
2907
|
}, Xo = {
|
|
2907
|
-
...
|
|
2908
|
+
...Mn,
|
|
2908
2909
|
shortsKey: {
|
|
2909
2910
|
type: Object,
|
|
2910
2911
|
default: () => ({
|
|
@@ -3033,7 +3034,7 @@ function Yo(e) {
|
|
|
3033
3034
|
}));
|
|
3034
3035
|
return { formState: n, validate: a, resetFields: o, validateInfos: i };
|
|
3035
3036
|
}
|
|
3036
|
-
const
|
|
3037
|
+
const On = /* @__PURE__ */ E({
|
|
3037
3038
|
props: {
|
|
3038
3039
|
...Ln,
|
|
3039
3040
|
name: String,
|
|
@@ -3092,7 +3093,7 @@ const Mn = /* @__PURE__ */ E({
|
|
|
3092
3093
|
onChange: (d) => o.password = d.target.value
|
|
3093
3094
|
}, null)]
|
|
3094
3095
|
})]
|
|
3095
|
-
}), t(
|
|
3096
|
+
}), t(Qe, {
|
|
3096
3097
|
block: !0,
|
|
3097
3098
|
type: "primary",
|
|
3098
3099
|
onClick: () => b(),
|
|
@@ -3124,7 +3125,7 @@ const Qo = /* @__PURE__ */ E({
|
|
|
3124
3125
|
name: "PageLock",
|
|
3125
3126
|
props: {
|
|
3126
3127
|
...Ln,
|
|
3127
|
-
...
|
|
3128
|
+
...Mn,
|
|
3128
3129
|
password: String
|
|
3129
3130
|
},
|
|
3130
3131
|
setup(e) {
|
|
@@ -3139,7 +3140,7 @@ const Qo = /* @__PURE__ */ E({
|
|
|
3139
3140
|
class: r()
|
|
3140
3141
|
}, [o.value ? t("div", {
|
|
3141
3142
|
class: r("form")
|
|
3142
|
-
}, [t(
|
|
3143
|
+
}, [t(On, {
|
|
3143
3144
|
avatarSize: 70,
|
|
3144
3145
|
submitText: "进入系统",
|
|
3145
3146
|
avatar: e.avatar,
|
|
@@ -3151,7 +3152,7 @@ const Qo = /* @__PURE__ */ E({
|
|
|
3151
3152
|
},
|
|
3152
3153
|
onSubmit: () => a(!1)
|
|
3153
3154
|
}, {
|
|
3154
|
-
default: () => [t(
|
|
3155
|
+
default: () => [t(Qe, {
|
|
3155
3156
|
style: {
|
|
3156
3157
|
marginBlockStart: "16px"
|
|
3157
3158
|
},
|
|
@@ -3226,7 +3227,7 @@ const Qo = /* @__PURE__ */ E({
|
|
|
3226
3227
|
mt(S["Alt+KeyL"], () => {
|
|
3227
3228
|
var f;
|
|
3228
3229
|
(f = u.value) != null && f.disabeld || y.value || c(!0);
|
|
3229
|
-
}),
|
|
3230
|
+
}), se(b, (f) => {
|
|
3230
3231
|
var x, I;
|
|
3231
3232
|
C(f && (((I = (x = d.value) == null ? void 0 : x.formState) == null ? void 0 : I.password) || l.value.password) || "");
|
|
3232
3233
|
}), Yt(() => {
|
|
@@ -3253,7 +3254,7 @@ const Qo = /* @__PURE__ */ E({
|
|
|
3253
3254
|
footer: !1,
|
|
3254
3255
|
onCancel: h
|
|
3255
3256
|
}, {
|
|
3256
|
-
default: () => [t(
|
|
3257
|
+
default: () => [t(On, te({
|
|
3257
3258
|
ref: d
|
|
3258
3259
|
}, ae(e, ["name", "avatar"]), {
|
|
3259
3260
|
submitText: "锁定",
|
|
@@ -3403,9 +3404,9 @@ const ni = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3403
3404
|
const I = ((R = x.meta) == null ? void 0 : R.title) || x.name || "";
|
|
3404
3405
|
if (h.test(I.toLowerCase())) {
|
|
3405
3406
|
let P = [];
|
|
3406
|
-
const
|
|
3407
|
-
for (let N = 0; N <
|
|
3408
|
-
P.push(
|
|
3407
|
+
const O = ((B = x == null ? void 0 : x.key) == null ? void 0 : B.split("-")) || [];
|
|
3408
|
+
for (let N = 0; N < O.length; N++)
|
|
3409
|
+
P.push(O.slice(0, N + 1).join("-"));
|
|
3409
3410
|
P = P.map((N) => {
|
|
3410
3411
|
var Q, _;
|
|
3411
3412
|
return ((_ = (Q = e.dataSource.find((X) => (X == null ? void 0 : X.key) === N)) == null ? void 0 : Q.meta) == null ? void 0 : _.title) || "";
|
|
@@ -3417,7 +3418,7 @@ const ni = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3417
3418
|
}
|
|
3418
3419
|
}), i.value = f, f.length > 0 && (o.value = 0), o.value = 0;
|
|
3419
3420
|
}
|
|
3420
|
-
|
|
3421
|
+
se(() => e.keyword, (s) => {
|
|
3421
3422
|
s ? l(s) : i.value = [...a.value];
|
|
3422
3423
|
});
|
|
3423
3424
|
function c() {
|
|
@@ -3483,8 +3484,8 @@ const ni = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3483
3484
|
icon: ((f = s.meta) == null ? void 0 : f.icon) || t(ka, null, null),
|
|
3484
3485
|
classNames: S("panel-icon")
|
|
3485
3486
|
}), null), (F = (I = (x = s.meta) == null ? void 0 : x.title) == null ? void 0 : I.split("**")) == null ? void 0 : F.map((R, B) => {
|
|
3486
|
-
var P,
|
|
3487
|
-
return t(J, null, [R, B < ((N = (
|
|
3487
|
+
var P, O, N;
|
|
3488
|
+
return t(J, null, [R, B < ((N = (O = (P = s.meta) == null ? void 0 : P.title) == null ? void 0 : O.split("**")) == null ? void 0 : N.length) - 1 && t(Fa, null, null)]);
|
|
3488
3489
|
}), t("span", null, null)]), t(ot, {
|
|
3489
3490
|
onClick: (R) => p(R, h)
|
|
3490
3491
|
}, null)]);
|
|
@@ -3670,7 +3671,7 @@ const Qr = /* @__PURE__ */ E({
|
|
|
3670
3671
|
const {
|
|
3671
3672
|
isFullscreen: a,
|
|
3672
3673
|
toggle: o
|
|
3673
|
-
} = Zn(), i =
|
|
3674
|
+
} = Zn(), i = Me(), l = ie(), r = en(), c = oe({
|
|
3674
3675
|
suffixCls: "global-header",
|
|
3675
3676
|
isPor: !0
|
|
3676
3677
|
}), [y, b] = be(!1), {
|
|
@@ -3679,13 +3680,13 @@ const Qr = /* @__PURE__ */ E({
|
|
|
3679
3680
|
} = si(c), [w, C] = be("auto"), {
|
|
3680
3681
|
isDark: u,
|
|
3681
3682
|
toggleMode: p
|
|
3682
|
-
} =
|
|
3683
|
+
} = Ot($(() => {
|
|
3683
3684
|
var R;
|
|
3684
|
-
return
|
|
3685
|
+
return _e(e.dark) ? e.dark : (R = l == null ? void 0 : l.dark) == null ? void 0 : R.value;
|
|
3685
3686
|
}), {
|
|
3686
3687
|
change: (R) => {
|
|
3687
|
-
var B, P,
|
|
3688
|
-
(B = e.onDarkChange) == null || B.call(e, R), (P = e == null ? void 0 : e["onUpdate:dark"]) == null || P.call(e, R), (
|
|
3688
|
+
var B, P, O;
|
|
3689
|
+
(B = e.onDarkChange) == null || B.call(e, R), (P = e == null ? void 0 : e["onUpdate:dark"]) == null || P.call(e, R), (O = l == null ? void 0 : l.onDarkChange) == null || O.call(l, R);
|
|
3689
3690
|
}
|
|
3690
3691
|
}), [S, s] = ze(!1, {
|
|
3691
3692
|
value: $(() => {
|
|
@@ -3701,7 +3702,7 @@ const Qr = /* @__PURE__ */ E({
|
|
|
3701
3702
|
return ne((R = l == null ? void 0 : l.isMobile) == null ? void 0 : R.value) ? (B = l == null ? void 0 : l.isMobile) == null ? void 0 : B.value : r.value === "sm" || r.value === "xs";
|
|
3702
3703
|
}), f = $(() => {
|
|
3703
3704
|
var R;
|
|
3704
|
-
return
|
|
3705
|
+
return _e(e.dark) ? u.value : (R = i == null ? void 0 : i.dark) == null ? void 0 : R.value;
|
|
3705
3706
|
}), x = Jn(async (R) => {
|
|
3706
3707
|
C(R);
|
|
3707
3708
|
}, 160), I = (R) => {
|
|
@@ -3714,7 +3715,7 @@ const Qr = /* @__PURE__ */ E({
|
|
|
3714
3715
|
e != null && e.onLogout && (b(!0), e.onLogout(() => b(!1)));
|
|
3715
3716
|
};
|
|
3716
3717
|
return () => {
|
|
3717
|
-
const R = $e(n, e, "dropdownMenuRender"), B = $e(n, e, "dropdownRender"), P = $e(n, e, "dropdownMenuExtraItemRender"),
|
|
3718
|
+
const R = $e(n, e, "dropdownMenuRender"), B = $e(n, e, "dropdownRender"), P = $e(n, e, "dropdownMenuExtraItemRender"), O = le(n, e, "actionsRender"), N = a.value ? Ta : Da;
|
|
3718
3719
|
return m(t("div", {
|
|
3719
3720
|
class: `${c}-right-content ${d.value}`.trim(),
|
|
3720
3721
|
style: {
|
|
@@ -3742,7 +3743,7 @@ const Qr = /* @__PURE__ */ E({
|
|
|
3742
3743
|
disabeldShortKey: (Q = e.shortsKey) == null ? void 0 : Q.disabeld
|
|
3743
3744
|
}, null), e.actions.theme && t("div", {
|
|
3744
3745
|
class: `${c}-header-actions-item ${d.value}`.trim()
|
|
3745
|
-
}, [t(
|
|
3746
|
+
}, [t(Ue, {
|
|
3746
3747
|
class: `${c}-header-actions-icon ${d.value}`.trim(),
|
|
3747
3748
|
name: f.value ? "liangse" : "anhei",
|
|
3748
3749
|
onClick: (_) => I(_)
|
|
@@ -3754,7 +3755,7 @@ const Qr = /* @__PURE__ */ E({
|
|
|
3754
3755
|
class: `${c}-header-actions-item ${d.value}`.trim()
|
|
3755
3756
|
}, [t(N, {
|
|
3756
3757
|
onClick: () => o()
|
|
3757
|
-
}, null)]),
|
|
3758
|
+
}, null)]), O ? O == null ? void 0 : O([`${c}-header-actions-item`, d.value]) : null, t(dt, {
|
|
3758
3759
|
overlay: R || t(ye, null, {
|
|
3759
3760
|
default: () => [P, e.actions.lock && t(J, null, [t(Tt, {
|
|
3760
3761
|
key: "lock",
|
|
@@ -3941,7 +3942,7 @@ const Zr = /* @__PURE__ */ E({
|
|
|
3941
3942
|
slots: n,
|
|
3942
3943
|
attrs: a
|
|
3943
3944
|
}) {
|
|
3944
|
-
const o = ie(), i = Rt(), l =
|
|
3945
|
+
const o = ie(), i = Rt(), l = Me(), r = (o == null ? void 0 : o.getPrefixCls) || oe, c = r({
|
|
3945
3946
|
suffixCls: "page-container",
|
|
3946
3947
|
isPor: !0
|
|
3947
3948
|
}), y = r({
|
|
@@ -3987,8 +3988,8 @@ const Zr = /* @__PURE__ */ E({
|
|
|
3987
3988
|
bordered: !1
|
|
3988
3989
|
}), {
|
|
3989
3990
|
default: () => {
|
|
3990
|
-
var
|
|
3991
|
-
return [(
|
|
3991
|
+
var O;
|
|
3992
|
+
return [(O = n.default) == null ? void 0 : O.call(n)];
|
|
3992
3993
|
}
|
|
3993
3994
|
}) : Ne(I) ? t("div", {
|
|
3994
3995
|
style: (F = S.value) != null && F.marginBlockPageContainerContent ? {
|
|
@@ -4035,7 +4036,7 @@ const Zr = /* @__PURE__ */ E({
|
|
|
4035
4036
|
alignItems: "center",
|
|
4036
4037
|
gap: "6px"
|
|
4037
4038
|
}
|
|
4038
|
-
}, [t(
|
|
4039
|
+
}, [t(Ue, {
|
|
4039
4040
|
name: "liangse"
|
|
4040
4041
|
}, null), U("亮色")])
|
|
4041
4042
|
}, {
|
|
@@ -4046,7 +4047,7 @@ const Zr = /* @__PURE__ */ E({
|
|
|
4046
4047
|
alignItems: "center",
|
|
4047
4048
|
gap: "6px"
|
|
4048
4049
|
}
|
|
4049
|
-
}, [t(
|
|
4050
|
+
}, [t(Ue, {
|
|
4050
4051
|
name: "anhei"
|
|
4051
4052
|
}, null), U("深色")])
|
|
4052
4053
|
}, {
|
|
@@ -4390,7 +4391,7 @@ const Zr = /* @__PURE__ */ E({
|
|
|
4390
4391
|
}) : null)]);
|
|
4391
4392
|
};
|
|
4392
4393
|
}
|
|
4393
|
-
}),
|
|
4394
|
+
}), Ye = /* @__PURE__ */ E({
|
|
4394
4395
|
name: "RegionalChange",
|
|
4395
4396
|
props: {
|
|
4396
4397
|
label: V.string,
|
|
@@ -4499,7 +4500,7 @@ const Ii = /* @__PURE__ */ E({
|
|
|
4499
4500
|
hashId: r
|
|
4500
4501
|
} = fe("ProThemeEditor", [Si], i), {
|
|
4501
4502
|
token: c
|
|
4502
|
-
} =
|
|
4503
|
+
} = Me(), y = $(() => {
|
|
4503
4504
|
var C;
|
|
4504
4505
|
return (C = c.value) == null ? void 0 : C.layout;
|
|
4505
4506
|
});
|
|
@@ -4519,7 +4520,7 @@ const Ii = /* @__PURE__ */ E({
|
|
|
4519
4520
|
header: b("header"),
|
|
4520
4521
|
sider: b("sider")
|
|
4521
4522
|
});
|
|
4522
|
-
|
|
4523
|
+
se([() => {
|
|
4523
4524
|
var C, u;
|
|
4524
4525
|
return (u = (C = c.value) == null ? void 0 : C.layout) == null ? void 0 : u.header;
|
|
4525
4526
|
}, () => {
|
|
@@ -4664,7 +4665,7 @@ function _t(e) {
|
|
|
4664
4665
|
}
|
|
4665
4666
|
const {
|
|
4666
4667
|
preset: Xt
|
|
4667
|
-
} =
|
|
4668
|
+
} = Mt, $i = /* @__PURE__ */ E({
|
|
4668
4669
|
name: "OthersChange",
|
|
4669
4670
|
props: {
|
|
4670
4671
|
prefixCls: V.string,
|
|
@@ -4719,7 +4720,7 @@ const {
|
|
|
4719
4720
|
}, {
|
|
4720
4721
|
title: "动画效果",
|
|
4721
4722
|
disabled: (y = (c = e.settingValue) == null ? void 0 : c.animate) == null ? void 0 : y.disabled,
|
|
4722
|
-
action: t(
|
|
4723
|
+
action: t(Ve, {
|
|
4723
4724
|
value: (m = (b = e.settingValue) == null ? void 0 : b.animate) == null ? void 0 : m.name,
|
|
4724
4725
|
style: {
|
|
4725
4726
|
width: "100px"
|
|
@@ -4731,7 +4732,7 @@ const {
|
|
|
4731
4732
|
var x;
|
|
4732
4733
|
return (x = e.onChange) == null ? void 0 : x.call(e, "animate", "name", f);
|
|
4733
4734
|
}
|
|
4734
|
-
}, _t(i = Xt.map((f) => t(
|
|
4735
|
+
}, _t(i = Xt.map((f) => t(Ve.Option, {
|
|
4735
4736
|
value: f.name
|
|
4736
4737
|
}, {
|
|
4737
4738
|
default: () => [f.alias]
|
|
@@ -4741,7 +4742,7 @@ const {
|
|
|
4741
4742
|
}, {
|
|
4742
4743
|
title: "动画方向",
|
|
4743
4744
|
disabled: (u = (C = e.settingValue) == null ? void 0 : C.animate) == null ? void 0 : u.disabled,
|
|
4744
|
-
action: t(
|
|
4745
|
+
action: t(Ve, {
|
|
4745
4746
|
value: (S = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : S.direction,
|
|
4746
4747
|
style: {
|
|
4747
4748
|
width: "100px"
|
|
@@ -4762,7 +4763,7 @@ const {
|
|
|
4762
4763
|
return [(f = Xt.find((x) => {
|
|
4763
4764
|
var I, F;
|
|
4764
4765
|
return x.name === ((F = (I = e.settingValue) == null ? void 0 : I.animate) == null ? void 0 : F.name);
|
|
4765
|
-
})) == null ? void 0 : f.directions.map((x) => t(
|
|
4766
|
+
})) == null ? void 0 : f.directions.map((x) => t(Ve.Option, {
|
|
4766
4767
|
value: x
|
|
4767
4768
|
}, _t(x) ? x : {
|
|
4768
4769
|
default: () => [x]
|
|
@@ -4775,7 +4776,7 @@ const {
|
|
|
4775
4776
|
}
|
|
4776
4777
|
}), {
|
|
4777
4778
|
preset: Bi
|
|
4778
|
-
} =
|
|
4779
|
+
} = Mt, Li = {
|
|
4779
4780
|
color: "#fff",
|
|
4780
4781
|
fontSize: 20
|
|
4781
4782
|
}, Vt = (e) => sa() ? {
|
|
@@ -4792,7 +4793,7 @@ const {
|
|
|
4792
4793
|
}, [t("h3", {
|
|
4793
4794
|
class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
|
|
4794
4795
|
}, [e.title]), (a = n.default) == null ? void 0 : a.call(n)]);
|
|
4795
|
-
},
|
|
4796
|
+
}, Mi = () => ({
|
|
4796
4797
|
...$t,
|
|
4797
4798
|
open: {
|
|
4798
4799
|
type: Boolean,
|
|
@@ -4822,10 +4823,10 @@ const {
|
|
|
4822
4823
|
onLayoutChange: Function
|
|
4823
4824
|
}), Jr = /* @__PURE__ */ E({
|
|
4824
4825
|
name: "SettingDrawer",
|
|
4825
|
-
props:
|
|
4826
|
+
props: Mi(),
|
|
4826
4827
|
emits: ["change", "layoutChange", "openChange", "update:open", "update:dark", "darkChange"],
|
|
4827
4828
|
setup(e) {
|
|
4828
|
-
const n =
|
|
4829
|
+
const n = Me(), a = ie(), o = oe({
|
|
4829
4830
|
suffixCls: "setting-drawer",
|
|
4830
4831
|
isPor: !0
|
|
4831
4832
|
}), i = Be({}), l = tt(oe({
|
|
@@ -4847,9 +4848,9 @@ const {
|
|
|
4847
4848
|
innerDark: d,
|
|
4848
4849
|
isDark: w,
|
|
4849
4850
|
toggleMode: C
|
|
4850
|
-
} =
|
|
4851
|
+
} = Ot($(() => {
|
|
4851
4852
|
var L;
|
|
4852
|
-
return
|
|
4853
|
+
return _e(e.dark) ? e.dark : (L = a == null ? void 0 : a.dark) == null ? void 0 : L.value;
|
|
4853
4854
|
}), {
|
|
4854
4855
|
change: (L) => {
|
|
4855
4856
|
var k, D, K;
|
|
@@ -4863,7 +4864,7 @@ const {
|
|
|
4863
4864
|
}
|
|
4864
4865
|
}), F = $(() => {
|
|
4865
4866
|
var L;
|
|
4866
|
-
return
|
|
4867
|
+
return _e(e.dark) ? w.value : (L = n == null ? void 0 : n.dark) == null ? void 0 : L.value;
|
|
4867
4868
|
}), R = (L, k) => {
|
|
4868
4869
|
$n({
|
|
4869
4870
|
event: L,
|
|
@@ -4872,11 +4873,11 @@ const {
|
|
|
4872
4873
|
value: k
|
|
4873
4874
|
});
|
|
4874
4875
|
};
|
|
4875
|
-
|
|
4876
|
+
se(() => e.storage, (L) => {
|
|
4876
4877
|
L && (h.value ? (Object.assign(i, {
|
|
4877
4878
|
dark: d.value,
|
|
4878
4879
|
...Re(x.value)
|
|
4879
|
-
}), ra(
|
|
4880
|
+
}), ra(Oe(l.value, "dark"), x.value) || I(Oe(l.value, "dark")), R(null, l.value.dark)) : l.value = {
|
|
4880
4881
|
...x.value,
|
|
4881
4882
|
dark: d.value
|
|
4882
4883
|
});
|
|
@@ -4884,20 +4885,20 @@ const {
|
|
|
4884
4885
|
immediate: !0
|
|
4885
4886
|
});
|
|
4886
4887
|
const B = $(() => e.colorList && tn(e.colorList) ? e.colorList : []), P = $(() => zo(re(x))), {
|
|
4887
|
-
copy:
|
|
4888
|
+
copy: O,
|
|
4888
4889
|
copied: N,
|
|
4889
4890
|
isSupported: Q
|
|
4890
4891
|
} = ea();
|
|
4891
|
-
|
|
4892
|
+
se(b, () => {
|
|
4892
4893
|
y.value || (y.value = !0);
|
|
4893
|
-
}),
|
|
4894
|
+
}), se(() => {
|
|
4894
4895
|
var L;
|
|
4895
4896
|
return (L = a == null ? void 0 : a.settingsOpen) == null ? void 0 : L.value;
|
|
4896
4897
|
}, (L) => {
|
|
4897
4898
|
ne(e.open) || m(L);
|
|
4898
|
-
}),
|
|
4899
|
+
}), se(N, (L) => {
|
|
4899
4900
|
L && Xn.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
4900
|
-
}),
|
|
4901
|
+
}), se(() => d.value, (L) => {
|
|
4901
4902
|
e.storage && (l.value.dark = L);
|
|
4902
4903
|
});
|
|
4903
4904
|
const _ = (L, k, D) => {
|
|
@@ -4913,18 +4914,18 @@ const {
|
|
|
4913
4914
|
Z && (Z.dataset.prosettingdrawer = k === !0 ? Z.style.filter : Z.dataset.prosettingdrawer || "none", k === !0 && (Z.dataset.prosettingdrawer = Z.style.filter), Z.style.filter = k === !0 ? "invert(80%)" : Z.dataset.prosettingdrawer || "none", k || delete Z.dataset.prosettingdrawer);
|
|
4914
4915
|
}
|
|
4915
4916
|
I(Ce(re(x), {
|
|
4916
|
-
...Do(
|
|
4917
|
+
...Do(Oe(ee, K))
|
|
4917
4918
|
}));
|
|
4918
4919
|
}, X = (L) => {
|
|
4919
4920
|
l.value.dark = L === "system" ? L : L === "dark", R(null, L === "system" ? L : L === "dark");
|
|
4920
4921
|
}, he = () => {
|
|
4921
|
-
Q.value &&
|
|
4922
|
+
Q.value && O(JSON.stringify(re(x)));
|
|
4922
4923
|
}, de = () => {
|
|
4923
|
-
I(
|
|
4924
|
+
I(Oe(Re(i), "dark")), R(null, i.dark), l.value = Re(i);
|
|
4924
4925
|
};
|
|
4925
4926
|
return () => {
|
|
4926
4927
|
const L = b.value ? ot : cn;
|
|
4927
|
-
return r(t(
|
|
4928
|
+
return r(t(qe, {
|
|
4928
4929
|
width: 300,
|
|
4929
4930
|
closable: !1,
|
|
4930
4931
|
open: b.value,
|
|
@@ -5010,7 +5011,7 @@ const {
|
|
|
5010
5011
|
}), vi.map(({
|
|
5011
5012
|
label: k,
|
|
5012
5013
|
title: D
|
|
5013
|
-
}) => t(
|
|
5014
|
+
}) => t(Ye, {
|
|
5014
5015
|
label: D,
|
|
5015
5016
|
disabled: P.value[k],
|
|
5016
5017
|
value: x.value[k],
|
|
@@ -5032,7 +5033,7 @@ const {
|
|
|
5032
5033
|
default: () => [pi.map(({
|
|
5033
5034
|
label: k,
|
|
5034
5035
|
title: D
|
|
5035
|
-
}) => t(
|
|
5036
|
+
}) => t(Ye, {
|
|
5036
5037
|
label: D,
|
|
5037
5038
|
disabled: re(P)[k],
|
|
5038
5039
|
value: re(x)[k],
|
|
@@ -5040,14 +5041,14 @@ const {
|
|
|
5040
5041
|
hashId: c.value,
|
|
5041
5042
|
valueKey: k,
|
|
5042
5043
|
onChange: (K, ee) => _(K, ee)
|
|
5043
|
-
}, null)), e.weakmode && t(
|
|
5044
|
+
}, null)), e.weakmode && t(Ye, {
|
|
5044
5045
|
label: "色弱模式",
|
|
5045
5046
|
value: re(x).colorWeak,
|
|
5046
5047
|
prefixCls: o,
|
|
5047
5048
|
hashId: c.value,
|
|
5048
5049
|
valueKey: "colorWeak",
|
|
5049
5050
|
onChange: (k, D) => _(k, D)
|
|
5050
|
-
}, null), e.showProgress && t(
|
|
5051
|
+
}, null), e.showProgress && t(Ye, {
|
|
5051
5052
|
label: "顶部进度条",
|
|
5052
5053
|
value: re(x).showProgressBar,
|
|
5053
5054
|
prefixCls: o,
|
|
@@ -5068,18 +5069,18 @@ const {
|
|
|
5068
5069
|
display: "flex",
|
|
5069
5070
|
gap: "10px"
|
|
5070
5071
|
}
|
|
5071
|
-
}, [e.hideCopyButton ? null : t(
|
|
5072
|
+
}, [e.hideCopyButton ? null : t(Qe, {
|
|
5072
5073
|
onClick: () => he(),
|
|
5073
5074
|
block: !0
|
|
5074
5075
|
}, {
|
|
5075
5076
|
default: () => [t(Ha, null, null), U("拷贝设置")]
|
|
5076
|
-
}), t(
|
|
5077
|
+
}), t(Qe, {
|
|
5077
5078
|
block: !0,
|
|
5078
5079
|
onClick: () => de()
|
|
5079
5080
|
}, {
|
|
5080
5081
|
default: () => [t(ja, null, null), U("清空缓存")]
|
|
5081
5082
|
})])])]
|
|
5082
|
-
})]), t(
|
|
5083
|
+
})]), t(qe, {
|
|
5083
5084
|
width: 320,
|
|
5084
5085
|
closable: !1,
|
|
5085
5086
|
placement: "right",
|
|
@@ -5096,7 +5097,7 @@ const {
|
|
|
5096
5097
|
subKey: K
|
|
5097
5098
|
})
|
|
5098
5099
|
}, null)]
|
|
5099
|
-
}), t(
|
|
5100
|
+
}), t(qe, {
|
|
5100
5101
|
width: 320,
|
|
5101
5102
|
closable: !1,
|
|
5102
5103
|
placement: "right",
|
|
@@ -5116,7 +5117,7 @@ const {
|
|
|
5116
5117
|
}));
|
|
5117
5118
|
};
|
|
5118
5119
|
}
|
|
5119
|
-
}),
|
|
5120
|
+
}), Oi = new v("backInLeft", {
|
|
5120
5121
|
"0%": {
|
|
5121
5122
|
opacity: 0.7,
|
|
5122
5123
|
transform: "translateX(-2000px) scale(0.7)"
|
|
@@ -5223,7 +5224,7 @@ const {
|
|
|
5223
5224
|
}), Ai = () => ({
|
|
5224
5225
|
"&.backInLeft": {
|
|
5225
5226
|
animationFillMode: "both",
|
|
5226
|
-
animationName:
|
|
5227
|
+
animationName: Oi
|
|
5227
5228
|
},
|
|
5228
5229
|
"&.backInRight": {
|
|
5229
5230
|
animationFillMode: "both",
|
|
@@ -5842,7 +5843,7 @@ const {
|
|
|
5842
5843
|
opacity: 0,
|
|
5843
5844
|
transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
|
|
5844
5845
|
}
|
|
5845
|
-
}),
|
|
5846
|
+
}), Ml = new v("flipOutY", {
|
|
5846
5847
|
from: {
|
|
5847
5848
|
transform: "perspective(400px)"
|
|
5848
5849
|
},
|
|
@@ -5854,7 +5855,7 @@ const {
|
|
|
5854
5855
|
opacity: 0,
|
|
5855
5856
|
transform: "perspective(400px) rotate3d(0, 1, 0, 90deg)"
|
|
5856
5857
|
}
|
|
5857
|
-
}),
|
|
5858
|
+
}), Ol = () => ({
|
|
5858
5859
|
"&.flipInX": {
|
|
5859
5860
|
animationFillMode: "both",
|
|
5860
5861
|
backfaceVisibility: "visible !important",
|
|
@@ -5876,7 +5877,7 @@ const {
|
|
|
5876
5877
|
animationFillMode: "both",
|
|
5877
5878
|
backfaceVisibility: "visible !important",
|
|
5878
5879
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
5879
|
-
animationName:
|
|
5880
|
+
animationName: Ml
|
|
5880
5881
|
}
|
|
5881
5882
|
}), Fl = new v("lightSpeedInLeft", {
|
|
5882
5883
|
from: {
|
|
@@ -6365,7 +6366,7 @@ const {
|
|
|
6365
6366
|
...Ai(),
|
|
6366
6367
|
...qi(),
|
|
6367
6368
|
...Il(),
|
|
6368
|
-
...
|
|
6369
|
+
...Ol(),
|
|
6369
6370
|
...zl(),
|
|
6370
6371
|
...Gl(),
|
|
6371
6372
|
...Zl(),
|
|
@@ -6426,7 +6427,7 @@ const es = /* @__PURE__ */ E({
|
|
|
6426
6427
|
let d = m.indexOf(b);
|
|
6427
6428
|
return d = d % 2 === 1 ? d - 1 : d + 1, m[d];
|
|
6428
6429
|
}, r = (b) => {
|
|
6429
|
-
const m =
|
|
6430
|
+
const m = Mt.preset.find((C) => e.name === C.name);
|
|
6430
6431
|
if (m === void 0)
|
|
6431
6432
|
return "";
|
|
6432
6433
|
let d = "";
|
|
@@ -6447,7 +6448,7 @@ const es = /* @__PURE__ */ E({
|
|
|
6447
6448
|
}));
|
|
6448
6449
|
};
|
|
6449
6450
|
}
|
|
6450
|
-
}),
|
|
6451
|
+
}), Xe = {
|
|
6451
6452
|
appList: {
|
|
6452
6453
|
type: Array,
|
|
6453
6454
|
default: void 0
|
|
@@ -6476,8 +6477,8 @@ const es = /* @__PURE__ */ E({
|
|
|
6476
6477
|
props: {
|
|
6477
6478
|
hashId: String,
|
|
6478
6479
|
baseClassName: String,
|
|
6479
|
-
appList:
|
|
6480
|
-
onItemClick:
|
|
6480
|
+
appList: Xe.appList,
|
|
6481
|
+
onItemClick: Xe.onItemClick
|
|
6481
6482
|
},
|
|
6482
6483
|
setup(e) {
|
|
6483
6484
|
return () => {
|
|
@@ -6517,8 +6518,8 @@ const es = /* @__PURE__ */ E({
|
|
|
6517
6518
|
props: {
|
|
6518
6519
|
hashId: String,
|
|
6519
6520
|
baseClassName: String,
|
|
6520
|
-
appList:
|
|
6521
|
-
onItemClick:
|
|
6521
|
+
appList: Xe.appList,
|
|
6522
|
+
onItemClick: Xe.onItemClick
|
|
6522
6523
|
},
|
|
6523
6524
|
setup(e) {
|
|
6524
6525
|
return () => {
|
|
@@ -6557,7 +6558,7 @@ const es = /* @__PURE__ */ E({
|
|
|
6557
6558
|
};
|
|
6558
6559
|
}
|
|
6559
6560
|
}), ts = /* @__PURE__ */ E({
|
|
6560
|
-
props:
|
|
6561
|
+
props: Xe,
|
|
6561
6562
|
emits: ["itemClick"],
|
|
6562
6563
|
setup(e) {
|
|
6563
6564
|
const n = oe({
|
|
@@ -6600,7 +6601,7 @@ export {
|
|
|
6600
6601
|
li as SearchPageInput,
|
|
6601
6602
|
Jr as SettingDrawer,
|
|
6602
6603
|
Wt as SiderMenuWrapper,
|
|
6603
|
-
|
|
6604
|
+
Mt as animateSeting,
|
|
6604
6605
|
rt as baseMenuProps,
|
|
6605
6606
|
zo as checkThemeStatus,
|
|
6606
6607
|
Xr as clearMenuItem,
|
|
@@ -6609,8 +6610,8 @@ export {
|
|
|
6609
6610
|
Lo as flatMap,
|
|
6610
6611
|
Vr as getMatchedList,
|
|
6611
6612
|
_r as getMenuData,
|
|
6612
|
-
|
|
6613
|
-
|
|
6613
|
+
Mo as getMenuFirstChildren,
|
|
6614
|
+
Oo as getMenuFirstLastChildPath,
|
|
6614
6615
|
Do as handleThemeConfig,
|
|
6615
6616
|
W as hanlePathKey,
|
|
6616
6617
|
qa as provideProLayoutContext,
|