@gx-design-vue/pro-layout 0.1.0-beta.74 → 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 -205
- 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,
|
|
@@ -2351,7 +2354,10 @@ const {
|
|
|
2351
2354
|
class: `${y}-collapsed-button ${m.value}`,
|
|
2352
2355
|
onClick: C
|
|
2353
2356
|
}, [re(u)(e.collapsed)]), p()]) : Ao.includes(e.layout) ? t("div", {
|
|
2354
|
-
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
|
+
}
|
|
2355
2361
|
}, [t("div", {
|
|
2356
2362
|
class: `${y}-main-left ${m.value}`
|
|
2357
2363
|
}, [e.layout !== "wide" && e.appLogoListRender && t(bn, null, {
|
|
@@ -2383,7 +2389,7 @@ const {
|
|
|
2383
2389
|
splitMenus: l
|
|
2384
2390
|
} = Je(e), {
|
|
2385
2391
|
dark: r
|
|
2386
|
-
} =
|
|
2392
|
+
} = Me(), {
|
|
2387
2393
|
getPrefixCls: c,
|
|
2388
2394
|
menuData: y,
|
|
2389
2395
|
contentFullScreen: b,
|
|
@@ -2398,27 +2404,27 @@ const {
|
|
|
2398
2404
|
}), u = $(() => o.value === "wide"), p = $(() => a.value), S = $(() => o.value === "side" || o.value === "simple"), s = $(() => S.value && "light" || m.value.theme), {
|
|
2399
2405
|
wrapSSR: h,
|
|
2400
2406
|
hashId: f
|
|
2401
|
-
} = Pe("ProLayoutHeader", (
|
|
2407
|
+
} = Pe("ProLayoutHeader", (O) => {
|
|
2402
2408
|
var X, he;
|
|
2403
|
-
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");
|
|
2404
2410
|
return {
|
|
2405
|
-
[`${
|
|
2406
|
-
[`${
|
|
2407
|
-
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,
|
|
2408
2414
|
backgroundColor: (N == null ? void 0 : N.colorBgMenu) || (Q == null ? void 0 : Q.colorBgMenu),
|
|
2409
2415
|
boxShadow: r.value ? "#0d0d0da6 0 2px 8px" : "",
|
|
2410
|
-
[`${
|
|
2411
|
-
color: _ ?
|
|
2416
|
+
[`${O.proComponentsCls}-global-header-collapsed-button`]: {
|
|
2417
|
+
color: _ ? O.colorWhite : void 0
|
|
2412
2418
|
}
|
|
2413
2419
|
},
|
|
2414
|
-
[`${
|
|
2420
|
+
[`${O.antCls}-layout-header${O.componentCls}`]: {
|
|
2415
2421
|
zIndex: 19,
|
|
2416
2422
|
paddingBlock: 0,
|
|
2417
2423
|
paddingInline: 0,
|
|
2418
2424
|
WebkitBackdropFilter: "blur(8px)",
|
|
2419
2425
|
backdropFilter: "blur(8px)",
|
|
2420
2426
|
transition: "background-color 0.2s cubic-bezier(.645,.045,.355,1)",
|
|
2421
|
-
[`&${
|
|
2427
|
+
[`&${O.proComponentsCls}`]: {
|
|
2422
2428
|
"&-fixed-header": {
|
|
2423
2429
|
position: "fixed",
|
|
2424
2430
|
width: "100%",
|
|
@@ -2438,7 +2444,7 @@ const {
|
|
|
2438
2444
|
paddingBlock: 0,
|
|
2439
2445
|
paddingInline: 8,
|
|
2440
2446
|
"&:hover": {
|
|
2441
|
-
color:
|
|
2447
|
+
color: O.colorText
|
|
2442
2448
|
}
|
|
2443
2449
|
}
|
|
2444
2450
|
},
|
|
@@ -2455,17 +2461,17 @@ const {
|
|
|
2455
2461
|
[`${w}-${m.value.key}`]: !0,
|
|
2456
2462
|
[`${C}`]: p.value
|
|
2457
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 = () => {
|
|
2458
|
-
const
|
|
2464
|
+
const O = t(Eo, te(e, {
|
|
2459
2465
|
mode: "horizontal",
|
|
2460
2466
|
theme: s.value,
|
|
2461
2467
|
onCollapse: i.value,
|
|
2462
2468
|
menuData: F.value,
|
|
2463
2469
|
headerContentRender: e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender
|
|
2464
2470
|
}), null);
|
|
2465
|
-
return e.headerRender ? e.headerRender(e,
|
|
2471
|
+
return e.headerRender ? e.headerRender(e, O) : O;
|
|
2466
2472
|
};
|
|
2467
2473
|
return () => {
|
|
2468
|
-
let
|
|
2474
|
+
let O;
|
|
2469
2475
|
return h(t(J, null, [p.value && !u.value && t(Et, {
|
|
2470
2476
|
style: {
|
|
2471
2477
|
height: `${d.value}px`,
|
|
@@ -2483,8 +2489,8 @@ const {
|
|
|
2483
2489
|
right: B.value,
|
|
2484
2490
|
marginTop: b.value ? `-${d.value}px` : void 0
|
|
2485
2491
|
}
|
|
2486
|
-
}, Ko(
|
|
2487
|
-
default: () => [
|
|
2492
|
+
}, Ko(O = P()) ? O : {
|
|
2493
|
+
default: () => [O]
|
|
2488
2494
|
})]));
|
|
2489
2495
|
};
|
|
2490
2496
|
}
|
|
@@ -2492,14 +2498,14 @@ const {
|
|
|
2492
2498
|
name: "SiderMenuWrapper",
|
|
2493
2499
|
inheritAttrs: !1,
|
|
2494
2500
|
props: {
|
|
2495
|
-
...
|
|
2501
|
+
...ce,
|
|
2496
2502
|
matchMenuKeys: {
|
|
2497
2503
|
type: Array,
|
|
2498
2504
|
default: () => []
|
|
2499
2505
|
}
|
|
2500
2506
|
},
|
|
2501
2507
|
setup(e) {
|
|
2502
|
-
return () => t(J, null, [e.isMobile ? t(
|
|
2508
|
+
return () => t(J, null, [e.isMobile ? t(qe, {
|
|
2503
2509
|
maskClosable: !0,
|
|
2504
2510
|
open: !e.collapsed,
|
|
2505
2511
|
closable: !1,
|
|
@@ -2524,9 +2530,9 @@ const {
|
|
|
2524
2530
|
}) : t(jt, e, null)]);
|
|
2525
2531
|
}
|
|
2526
2532
|
});
|
|
2527
|
-
function
|
|
2533
|
+
function Ot(e, { change: n }) {
|
|
2528
2534
|
const { system: a } = Yn(), [o, i, l] = ze("system", {
|
|
2529
|
-
value: $(() =>
|
|
2535
|
+
value: $(() => _e(e.value) ? e.value : "system"),
|
|
2530
2536
|
onChange: (c) => {
|
|
2531
2537
|
n == null || n(c);
|
|
2532
2538
|
}
|
|
@@ -2537,7 +2543,7 @@ function Mt(e, { change: n }) {
|
|
|
2537
2543
|
toggleMode: i
|
|
2538
2544
|
};
|
|
2539
2545
|
}
|
|
2540
|
-
function
|
|
2546
|
+
function _e(e) {
|
|
2541
2547
|
return ne(e) || e === "system";
|
|
2542
2548
|
}
|
|
2543
2549
|
function $n({ event: e, isDark: n, value: a, toggle: o }) {
|
|
@@ -2647,7 +2653,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2647
2653
|
} = fe("ProLayout", [Qa, Za], a), l = en(), {
|
|
2648
2654
|
token: r,
|
|
2649
2655
|
dark: c
|
|
2650
|
-
} =
|
|
2656
|
+
} = Me(), y = me(ht().uuid(10)), b = me(!1), m = me(!1), d = me(!1), w = Be({
|
|
2651
2657
|
position: "relative"
|
|
2652
2658
|
}), C = $(() => {
|
|
2653
2659
|
var B;
|
|
@@ -2666,23 +2672,23 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2666
2672
|
})), h = $(() => (l.value === "sm" || l.value === "xs") && !e.disableMobile && !S.value), f = $(() => ({
|
|
2667
2673
|
...e.breadcrumb || {},
|
|
2668
2674
|
itemRender: le(n, e, "pageContainerProps:breadcrumbRender")
|
|
2669
|
-
})), x = $(() => u.value && e.selectedKeys ?
|
|
2670
|
-
|
|
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]) => {
|
|
2671
2677
|
(B === "wide" || B === "simple") && (d.value = !1), y.value = ht().uuid(10);
|
|
2672
|
-
}),
|
|
2678
|
+
}), se(() => S.value, (B) => {
|
|
2673
2679
|
if (B) {
|
|
2674
2680
|
const P = document.querySelector('meta[name="viewport"]');
|
|
2675
2681
|
P && (P.content = "");
|
|
2676
2682
|
}
|
|
2677
2683
|
}, {
|
|
2678
2684
|
immediate: !0
|
|
2679
|
-
}),
|
|
2685
|
+
}), se([() => e.contentStyle, () => e.isChildrenLayout], () => {
|
|
2680
2686
|
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (w.minHeight = 0);
|
|
2681
2687
|
}, {
|
|
2682
2688
|
immediate: !0,
|
|
2683
2689
|
deep: !0
|
|
2684
2690
|
});
|
|
2685
|
-
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"), {
|
|
2686
2692
|
headerHeight: I.value,
|
|
2687
2693
|
matchMenuKeys: P || []
|
|
2688
2694
|
}), null);
|
|
@@ -2707,7 +2713,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2707
2713
|
var G;
|
|
2708
2714
|
const B = ia(yn, n, e, {
|
|
2709
2715
|
render: !0
|
|
2710
|
-
}), 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({
|
|
2711
2717
|
...e,
|
|
2712
2718
|
...ae(B, gn),
|
|
2713
2719
|
menuItemRender: he,
|
|
@@ -2721,7 +2727,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2721
2727
|
}, e.matchMenuKeys), ge = S.value ? {
|
|
2722
2728
|
minHeight: "835px",
|
|
2723
2729
|
marginInlineStart: F.value === 0 ? 0 : void 0
|
|
2724
|
-
} : {}, H =
|
|
2730
|
+
} : {}, H = O === !1 ? null : O ? typeof O == "function" ? O(e) : O : t(At, {
|
|
2725
2731
|
copyright: B.copyrightRender,
|
|
2726
2732
|
links: e.footerLinks
|
|
2727
2733
|
}, null);
|
|
@@ -2790,7 +2796,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2790
2796
|
isDark: i,
|
|
2791
2797
|
innerDark: l,
|
|
2792
2798
|
toggleMode: r
|
|
2793
|
-
} =
|
|
2799
|
+
} = Ot($(() => e.dark), {
|
|
2794
2800
|
change: (w) => {
|
|
2795
2801
|
var C, u;
|
|
2796
2802
|
(C = e.onDarkChange) == null || C.call(e, w), (u = e == null ? void 0 : e["onUpdate:dark"]) == null || u.call(e, w);
|
|
@@ -2821,7 +2827,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2821
2827
|
}, {
|
|
2822
2828
|
default: () => [t(Uo, te({
|
|
2823
2829
|
style: o.style
|
|
2824
|
-
},
|
|
2830
|
+
}, Oe(e, ["onSelect", "onOpenKeys", "onCollapse", "onTabsChange", "onDarkChange", "dark"]), {
|
|
2825
2831
|
dark: l.value,
|
|
2826
2832
|
onSelect: m,
|
|
2827
2833
|
onOpenKeys: b,
|
|
@@ -2889,7 +2895,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2889
2895
|
}), _o = Bn(), Ln = {
|
|
2890
2896
|
hashId: String,
|
|
2891
2897
|
className: String
|
|
2892
|
-
},
|
|
2898
|
+
}, Mn = {
|
|
2893
2899
|
open: {
|
|
2894
2900
|
type: Boolean,
|
|
2895
2901
|
default: void 0
|
|
@@ -2899,7 +2905,7 @@ const Uo = /* @__PURE__ */ E({
|
|
|
2899
2905
|
cryptoFn: Function,
|
|
2900
2906
|
...ae(_o, ["name", "avatar"])
|
|
2901
2907
|
}, Xo = {
|
|
2902
|
-
...
|
|
2908
|
+
...Mn,
|
|
2903
2909
|
shortsKey: {
|
|
2904
2910
|
type: Object,
|
|
2905
2911
|
default: () => ({
|
|
@@ -3028,7 +3034,7 @@ function Yo(e) {
|
|
|
3028
3034
|
}));
|
|
3029
3035
|
return { formState: n, validate: a, resetFields: o, validateInfos: i };
|
|
3030
3036
|
}
|
|
3031
|
-
const
|
|
3037
|
+
const On = /* @__PURE__ */ E({
|
|
3032
3038
|
props: {
|
|
3033
3039
|
...Ln,
|
|
3034
3040
|
name: String,
|
|
@@ -3087,7 +3093,7 @@ const Mn = /* @__PURE__ */ E({
|
|
|
3087
3093
|
onChange: (d) => o.password = d.target.value
|
|
3088
3094
|
}, null)]
|
|
3089
3095
|
})]
|
|
3090
|
-
}), t(
|
|
3096
|
+
}), t(Qe, {
|
|
3091
3097
|
block: !0,
|
|
3092
3098
|
type: "primary",
|
|
3093
3099
|
onClick: () => b(),
|
|
@@ -3119,7 +3125,7 @@ const Qo = /* @__PURE__ */ E({
|
|
|
3119
3125
|
name: "PageLock",
|
|
3120
3126
|
props: {
|
|
3121
3127
|
...Ln,
|
|
3122
|
-
...
|
|
3128
|
+
...Mn,
|
|
3123
3129
|
password: String
|
|
3124
3130
|
},
|
|
3125
3131
|
setup(e) {
|
|
@@ -3134,7 +3140,7 @@ const Qo = /* @__PURE__ */ E({
|
|
|
3134
3140
|
class: r()
|
|
3135
3141
|
}, [o.value ? t("div", {
|
|
3136
3142
|
class: r("form")
|
|
3137
|
-
}, [t(
|
|
3143
|
+
}, [t(On, {
|
|
3138
3144
|
avatarSize: 70,
|
|
3139
3145
|
submitText: "进入系统",
|
|
3140
3146
|
avatar: e.avatar,
|
|
@@ -3146,7 +3152,7 @@ const Qo = /* @__PURE__ */ E({
|
|
|
3146
3152
|
},
|
|
3147
3153
|
onSubmit: () => a(!1)
|
|
3148
3154
|
}, {
|
|
3149
|
-
default: () => [t(
|
|
3155
|
+
default: () => [t(Qe, {
|
|
3150
3156
|
style: {
|
|
3151
3157
|
marginBlockStart: "16px"
|
|
3152
3158
|
},
|
|
@@ -3221,7 +3227,7 @@ const Qo = /* @__PURE__ */ E({
|
|
|
3221
3227
|
mt(S["Alt+KeyL"], () => {
|
|
3222
3228
|
var f;
|
|
3223
3229
|
(f = u.value) != null && f.disabeld || y.value || c(!0);
|
|
3224
|
-
}),
|
|
3230
|
+
}), se(b, (f) => {
|
|
3225
3231
|
var x, I;
|
|
3226
3232
|
C(f && (((I = (x = d.value) == null ? void 0 : x.formState) == null ? void 0 : I.password) || l.value.password) || "");
|
|
3227
3233
|
}), Yt(() => {
|
|
@@ -3248,7 +3254,7 @@ const Qo = /* @__PURE__ */ E({
|
|
|
3248
3254
|
footer: !1,
|
|
3249
3255
|
onCancel: h
|
|
3250
3256
|
}, {
|
|
3251
|
-
default: () => [t(
|
|
3257
|
+
default: () => [t(On, te({
|
|
3252
3258
|
ref: d
|
|
3253
3259
|
}, ae(e, ["name", "avatar"]), {
|
|
3254
3260
|
submitText: "锁定",
|
|
@@ -3398,9 +3404,9 @@ const ni = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3398
3404
|
const I = ((R = x.meta) == null ? void 0 : R.title) || x.name || "";
|
|
3399
3405
|
if (h.test(I.toLowerCase())) {
|
|
3400
3406
|
let P = [];
|
|
3401
|
-
const
|
|
3402
|
-
for (let N = 0; N <
|
|
3403
|
-
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("-"));
|
|
3404
3410
|
P = P.map((N) => {
|
|
3405
3411
|
var Q, _;
|
|
3406
3412
|
return ((_ = (Q = e.dataSource.find((X) => (X == null ? void 0 : X.key) === N)) == null ? void 0 : Q.meta) == null ? void 0 : _.title) || "";
|
|
@@ -3412,7 +3418,7 @@ const ni = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3412
3418
|
}
|
|
3413
3419
|
}), i.value = f, f.length > 0 && (o.value = 0), o.value = 0;
|
|
3414
3420
|
}
|
|
3415
|
-
|
|
3421
|
+
se(() => e.keyword, (s) => {
|
|
3416
3422
|
s ? l(s) : i.value = [...a.value];
|
|
3417
3423
|
});
|
|
3418
3424
|
function c() {
|
|
@@ -3478,8 +3484,8 @@ const ni = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3478
3484
|
icon: ((f = s.meta) == null ? void 0 : f.icon) || t(ka, null, null),
|
|
3479
3485
|
classNames: S("panel-icon")
|
|
3480
3486
|
}), null), (F = (I = (x = s.meta) == null ? void 0 : x.title) == null ? void 0 : I.split("**")) == null ? void 0 : F.map((R, B) => {
|
|
3481
|
-
var P,
|
|
3482
|
-
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)]);
|
|
3483
3489
|
}), t("span", null, null)]), t(ot, {
|
|
3484
3490
|
onClick: (R) => p(R, h)
|
|
3485
3491
|
}, null)]);
|
|
@@ -3665,7 +3671,7 @@ const Qr = /* @__PURE__ */ E({
|
|
|
3665
3671
|
const {
|
|
3666
3672
|
isFullscreen: a,
|
|
3667
3673
|
toggle: o
|
|
3668
|
-
} = Zn(), i =
|
|
3674
|
+
} = Zn(), i = Me(), l = ie(), r = en(), c = oe({
|
|
3669
3675
|
suffixCls: "global-header",
|
|
3670
3676
|
isPor: !0
|
|
3671
3677
|
}), [y, b] = be(!1), {
|
|
@@ -3674,13 +3680,13 @@ const Qr = /* @__PURE__ */ E({
|
|
|
3674
3680
|
} = si(c), [w, C] = be("auto"), {
|
|
3675
3681
|
isDark: u,
|
|
3676
3682
|
toggleMode: p
|
|
3677
|
-
} =
|
|
3683
|
+
} = Ot($(() => {
|
|
3678
3684
|
var R;
|
|
3679
|
-
return
|
|
3685
|
+
return _e(e.dark) ? e.dark : (R = l == null ? void 0 : l.dark) == null ? void 0 : R.value;
|
|
3680
3686
|
}), {
|
|
3681
3687
|
change: (R) => {
|
|
3682
|
-
var B, P,
|
|
3683
|
-
(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);
|
|
3684
3690
|
}
|
|
3685
3691
|
}), [S, s] = ze(!1, {
|
|
3686
3692
|
value: $(() => {
|
|
@@ -3696,7 +3702,7 @@ const Qr = /* @__PURE__ */ E({
|
|
|
3696
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";
|
|
3697
3703
|
}), f = $(() => {
|
|
3698
3704
|
var R;
|
|
3699
|
-
return
|
|
3705
|
+
return _e(e.dark) ? u.value : (R = i == null ? void 0 : i.dark) == null ? void 0 : R.value;
|
|
3700
3706
|
}), x = Jn(async (R) => {
|
|
3701
3707
|
C(R);
|
|
3702
3708
|
}, 160), I = (R) => {
|
|
@@ -3709,7 +3715,7 @@ const Qr = /* @__PURE__ */ E({
|
|
|
3709
3715
|
e != null && e.onLogout && (b(!0), e.onLogout(() => b(!1)));
|
|
3710
3716
|
};
|
|
3711
3717
|
return () => {
|
|
3712
|
-
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;
|
|
3713
3719
|
return m(t("div", {
|
|
3714
3720
|
class: `${c}-right-content ${d.value}`.trim(),
|
|
3715
3721
|
style: {
|
|
@@ -3737,7 +3743,7 @@ const Qr = /* @__PURE__ */ E({
|
|
|
3737
3743
|
disabeldShortKey: (Q = e.shortsKey) == null ? void 0 : Q.disabeld
|
|
3738
3744
|
}, null), e.actions.theme && t("div", {
|
|
3739
3745
|
class: `${c}-header-actions-item ${d.value}`.trim()
|
|
3740
|
-
}, [t(
|
|
3746
|
+
}, [t(Ue, {
|
|
3741
3747
|
class: `${c}-header-actions-icon ${d.value}`.trim(),
|
|
3742
3748
|
name: f.value ? "liangse" : "anhei",
|
|
3743
3749
|
onClick: (_) => I(_)
|
|
@@ -3749,7 +3755,7 @@ const Qr = /* @__PURE__ */ E({
|
|
|
3749
3755
|
class: `${c}-header-actions-item ${d.value}`.trim()
|
|
3750
3756
|
}, [t(N, {
|
|
3751
3757
|
onClick: () => o()
|
|
3752
|
-
}, null)]),
|
|
3758
|
+
}, null)]), O ? O == null ? void 0 : O([`${c}-header-actions-item`, d.value]) : null, t(dt, {
|
|
3753
3759
|
overlay: R || t(ye, null, {
|
|
3754
3760
|
default: () => [P, e.actions.lock && t(J, null, [t(Tt, {
|
|
3755
3761
|
key: "lock",
|
|
@@ -3936,7 +3942,7 @@ const Zr = /* @__PURE__ */ E({
|
|
|
3936
3942
|
slots: n,
|
|
3937
3943
|
attrs: a
|
|
3938
3944
|
}) {
|
|
3939
|
-
const o = ie(), i = Rt(), l =
|
|
3945
|
+
const o = ie(), i = Rt(), l = Me(), r = (o == null ? void 0 : o.getPrefixCls) || oe, c = r({
|
|
3940
3946
|
suffixCls: "page-container",
|
|
3941
3947
|
isPor: !0
|
|
3942
3948
|
}), y = r({
|
|
@@ -3982,8 +3988,8 @@ const Zr = /* @__PURE__ */ E({
|
|
|
3982
3988
|
bordered: !1
|
|
3983
3989
|
}), {
|
|
3984
3990
|
default: () => {
|
|
3985
|
-
var
|
|
3986
|
-
return [(
|
|
3991
|
+
var O;
|
|
3992
|
+
return [(O = n.default) == null ? void 0 : O.call(n)];
|
|
3987
3993
|
}
|
|
3988
3994
|
}) : Ne(I) ? t("div", {
|
|
3989
3995
|
style: (F = S.value) != null && F.marginBlockPageContainerContent ? {
|
|
@@ -4030,7 +4036,7 @@ const Zr = /* @__PURE__ */ E({
|
|
|
4030
4036
|
alignItems: "center",
|
|
4031
4037
|
gap: "6px"
|
|
4032
4038
|
}
|
|
4033
|
-
}, [t(
|
|
4039
|
+
}, [t(Ue, {
|
|
4034
4040
|
name: "liangse"
|
|
4035
4041
|
}, null), U("亮色")])
|
|
4036
4042
|
}, {
|
|
@@ -4041,7 +4047,7 @@ const Zr = /* @__PURE__ */ E({
|
|
|
4041
4047
|
alignItems: "center",
|
|
4042
4048
|
gap: "6px"
|
|
4043
4049
|
}
|
|
4044
|
-
}, [t(
|
|
4050
|
+
}, [t(Ue, {
|
|
4045
4051
|
name: "anhei"
|
|
4046
4052
|
}, null), U("深色")])
|
|
4047
4053
|
}, {
|
|
@@ -4385,7 +4391,7 @@ const Zr = /* @__PURE__ */ E({
|
|
|
4385
4391
|
}) : null)]);
|
|
4386
4392
|
};
|
|
4387
4393
|
}
|
|
4388
|
-
}),
|
|
4394
|
+
}), Ye = /* @__PURE__ */ E({
|
|
4389
4395
|
name: "RegionalChange",
|
|
4390
4396
|
props: {
|
|
4391
4397
|
label: V.string,
|
|
@@ -4494,7 +4500,7 @@ const Ii = /* @__PURE__ */ E({
|
|
|
4494
4500
|
hashId: r
|
|
4495
4501
|
} = fe("ProThemeEditor", [Si], i), {
|
|
4496
4502
|
token: c
|
|
4497
|
-
} =
|
|
4503
|
+
} = Me(), y = $(() => {
|
|
4498
4504
|
var C;
|
|
4499
4505
|
return (C = c.value) == null ? void 0 : C.layout;
|
|
4500
4506
|
});
|
|
@@ -4514,7 +4520,7 @@ const Ii = /* @__PURE__ */ E({
|
|
|
4514
4520
|
header: b("header"),
|
|
4515
4521
|
sider: b("sider")
|
|
4516
4522
|
});
|
|
4517
|
-
|
|
4523
|
+
se([() => {
|
|
4518
4524
|
var C, u;
|
|
4519
4525
|
return (u = (C = c.value) == null ? void 0 : C.layout) == null ? void 0 : u.header;
|
|
4520
4526
|
}, () => {
|
|
@@ -4659,7 +4665,7 @@ function _t(e) {
|
|
|
4659
4665
|
}
|
|
4660
4666
|
const {
|
|
4661
4667
|
preset: Xt
|
|
4662
|
-
} =
|
|
4668
|
+
} = Mt, $i = /* @__PURE__ */ E({
|
|
4663
4669
|
name: "OthersChange",
|
|
4664
4670
|
props: {
|
|
4665
4671
|
prefixCls: V.string,
|
|
@@ -4714,7 +4720,7 @@ const {
|
|
|
4714
4720
|
}, {
|
|
4715
4721
|
title: "动画效果",
|
|
4716
4722
|
disabled: (y = (c = e.settingValue) == null ? void 0 : c.animate) == null ? void 0 : y.disabled,
|
|
4717
|
-
action: t(
|
|
4723
|
+
action: t(Ve, {
|
|
4718
4724
|
value: (m = (b = e.settingValue) == null ? void 0 : b.animate) == null ? void 0 : m.name,
|
|
4719
4725
|
style: {
|
|
4720
4726
|
width: "100px"
|
|
@@ -4726,7 +4732,7 @@ const {
|
|
|
4726
4732
|
var x;
|
|
4727
4733
|
return (x = e.onChange) == null ? void 0 : x.call(e, "animate", "name", f);
|
|
4728
4734
|
}
|
|
4729
|
-
}, _t(i = Xt.map((f) => t(
|
|
4735
|
+
}, _t(i = Xt.map((f) => t(Ve.Option, {
|
|
4730
4736
|
value: f.name
|
|
4731
4737
|
}, {
|
|
4732
4738
|
default: () => [f.alias]
|
|
@@ -4736,7 +4742,7 @@ const {
|
|
|
4736
4742
|
}, {
|
|
4737
4743
|
title: "动画方向",
|
|
4738
4744
|
disabled: (u = (C = e.settingValue) == null ? void 0 : C.animate) == null ? void 0 : u.disabled,
|
|
4739
|
-
action: t(
|
|
4745
|
+
action: t(Ve, {
|
|
4740
4746
|
value: (S = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : S.direction,
|
|
4741
4747
|
style: {
|
|
4742
4748
|
width: "100px"
|
|
@@ -4757,7 +4763,7 @@ const {
|
|
|
4757
4763
|
return [(f = Xt.find((x) => {
|
|
4758
4764
|
var I, F;
|
|
4759
4765
|
return x.name === ((F = (I = e.settingValue) == null ? void 0 : I.animate) == null ? void 0 : F.name);
|
|
4760
|
-
})) == null ? void 0 : f.directions.map((x) => t(
|
|
4766
|
+
})) == null ? void 0 : f.directions.map((x) => t(Ve.Option, {
|
|
4761
4767
|
value: x
|
|
4762
4768
|
}, _t(x) ? x : {
|
|
4763
4769
|
default: () => [x]
|
|
@@ -4770,7 +4776,7 @@ const {
|
|
|
4770
4776
|
}
|
|
4771
4777
|
}), {
|
|
4772
4778
|
preset: Bi
|
|
4773
|
-
} =
|
|
4779
|
+
} = Mt, Li = {
|
|
4774
4780
|
color: "#fff",
|
|
4775
4781
|
fontSize: 20
|
|
4776
4782
|
}, Vt = (e) => sa() ? {
|
|
@@ -4787,7 +4793,7 @@ const {
|
|
|
4787
4793
|
}, [t("h3", {
|
|
4788
4794
|
class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
|
|
4789
4795
|
}, [e.title]), (a = n.default) == null ? void 0 : a.call(n)]);
|
|
4790
|
-
},
|
|
4796
|
+
}, Mi = () => ({
|
|
4791
4797
|
...$t,
|
|
4792
4798
|
open: {
|
|
4793
4799
|
type: Boolean,
|
|
@@ -4817,10 +4823,10 @@ const {
|
|
|
4817
4823
|
onLayoutChange: Function
|
|
4818
4824
|
}), Jr = /* @__PURE__ */ E({
|
|
4819
4825
|
name: "SettingDrawer",
|
|
4820
|
-
props:
|
|
4826
|
+
props: Mi(),
|
|
4821
4827
|
emits: ["change", "layoutChange", "openChange", "update:open", "update:dark", "darkChange"],
|
|
4822
4828
|
setup(e) {
|
|
4823
|
-
const n =
|
|
4829
|
+
const n = Me(), a = ie(), o = oe({
|
|
4824
4830
|
suffixCls: "setting-drawer",
|
|
4825
4831
|
isPor: !0
|
|
4826
4832
|
}), i = Be({}), l = tt(oe({
|
|
@@ -4842,9 +4848,9 @@ const {
|
|
|
4842
4848
|
innerDark: d,
|
|
4843
4849
|
isDark: w,
|
|
4844
4850
|
toggleMode: C
|
|
4845
|
-
} =
|
|
4851
|
+
} = Ot($(() => {
|
|
4846
4852
|
var L;
|
|
4847
|
-
return
|
|
4853
|
+
return _e(e.dark) ? e.dark : (L = a == null ? void 0 : a.dark) == null ? void 0 : L.value;
|
|
4848
4854
|
}), {
|
|
4849
4855
|
change: (L) => {
|
|
4850
4856
|
var k, D, K;
|
|
@@ -4858,7 +4864,7 @@ const {
|
|
|
4858
4864
|
}
|
|
4859
4865
|
}), F = $(() => {
|
|
4860
4866
|
var L;
|
|
4861
|
-
return
|
|
4867
|
+
return _e(e.dark) ? w.value : (L = n == null ? void 0 : n.dark) == null ? void 0 : L.value;
|
|
4862
4868
|
}), R = (L, k) => {
|
|
4863
4869
|
$n({
|
|
4864
4870
|
event: L,
|
|
@@ -4867,11 +4873,11 @@ const {
|
|
|
4867
4873
|
value: k
|
|
4868
4874
|
});
|
|
4869
4875
|
};
|
|
4870
|
-
|
|
4876
|
+
se(() => e.storage, (L) => {
|
|
4871
4877
|
L && (h.value ? (Object.assign(i, {
|
|
4872
4878
|
dark: d.value,
|
|
4873
4879
|
...Re(x.value)
|
|
4874
|
-
}), ra(
|
|
4880
|
+
}), ra(Oe(l.value, "dark"), x.value) || I(Oe(l.value, "dark")), R(null, l.value.dark)) : l.value = {
|
|
4875
4881
|
...x.value,
|
|
4876
4882
|
dark: d.value
|
|
4877
4883
|
});
|
|
@@ -4879,20 +4885,20 @@ const {
|
|
|
4879
4885
|
immediate: !0
|
|
4880
4886
|
});
|
|
4881
4887
|
const B = $(() => e.colorList && tn(e.colorList) ? e.colorList : []), P = $(() => zo(re(x))), {
|
|
4882
|
-
copy:
|
|
4888
|
+
copy: O,
|
|
4883
4889
|
copied: N,
|
|
4884
4890
|
isSupported: Q
|
|
4885
4891
|
} = ea();
|
|
4886
|
-
|
|
4892
|
+
se(b, () => {
|
|
4887
4893
|
y.value || (y.value = !0);
|
|
4888
|
-
}),
|
|
4894
|
+
}), se(() => {
|
|
4889
4895
|
var L;
|
|
4890
4896
|
return (L = a == null ? void 0 : a.settingsOpen) == null ? void 0 : L.value;
|
|
4891
4897
|
}, (L) => {
|
|
4892
4898
|
ne(e.open) || m(L);
|
|
4893
|
-
}),
|
|
4899
|
+
}), se(N, (L) => {
|
|
4894
4900
|
L && Xn.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
4895
|
-
}),
|
|
4901
|
+
}), se(() => d.value, (L) => {
|
|
4896
4902
|
e.storage && (l.value.dark = L);
|
|
4897
4903
|
});
|
|
4898
4904
|
const _ = (L, k, D) => {
|
|
@@ -4908,18 +4914,18 @@ const {
|
|
|
4908
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);
|
|
4909
4915
|
}
|
|
4910
4916
|
I(Ce(re(x), {
|
|
4911
|
-
...Do(
|
|
4917
|
+
...Do(Oe(ee, K))
|
|
4912
4918
|
}));
|
|
4913
4919
|
}, X = (L) => {
|
|
4914
4920
|
l.value.dark = L === "system" ? L : L === "dark", R(null, L === "system" ? L : L === "dark");
|
|
4915
4921
|
}, he = () => {
|
|
4916
|
-
Q.value &&
|
|
4922
|
+
Q.value && O(JSON.stringify(re(x)));
|
|
4917
4923
|
}, de = () => {
|
|
4918
|
-
I(
|
|
4924
|
+
I(Oe(Re(i), "dark")), R(null, i.dark), l.value = Re(i);
|
|
4919
4925
|
};
|
|
4920
4926
|
return () => {
|
|
4921
4927
|
const L = b.value ? ot : cn;
|
|
4922
|
-
return r(t(
|
|
4928
|
+
return r(t(qe, {
|
|
4923
4929
|
width: 300,
|
|
4924
4930
|
closable: !1,
|
|
4925
4931
|
open: b.value,
|
|
@@ -5005,7 +5011,7 @@ const {
|
|
|
5005
5011
|
}), vi.map(({
|
|
5006
5012
|
label: k,
|
|
5007
5013
|
title: D
|
|
5008
|
-
}) => t(
|
|
5014
|
+
}) => t(Ye, {
|
|
5009
5015
|
label: D,
|
|
5010
5016
|
disabled: P.value[k],
|
|
5011
5017
|
value: x.value[k],
|
|
@@ -5027,7 +5033,7 @@ const {
|
|
|
5027
5033
|
default: () => [pi.map(({
|
|
5028
5034
|
label: k,
|
|
5029
5035
|
title: D
|
|
5030
|
-
}) => t(
|
|
5036
|
+
}) => t(Ye, {
|
|
5031
5037
|
label: D,
|
|
5032
5038
|
disabled: re(P)[k],
|
|
5033
5039
|
value: re(x)[k],
|
|
@@ -5035,14 +5041,14 @@ const {
|
|
|
5035
5041
|
hashId: c.value,
|
|
5036
5042
|
valueKey: k,
|
|
5037
5043
|
onChange: (K, ee) => _(K, ee)
|
|
5038
|
-
}, null)), e.weakmode && t(
|
|
5044
|
+
}, null)), e.weakmode && t(Ye, {
|
|
5039
5045
|
label: "色弱模式",
|
|
5040
5046
|
value: re(x).colorWeak,
|
|
5041
5047
|
prefixCls: o,
|
|
5042
5048
|
hashId: c.value,
|
|
5043
5049
|
valueKey: "colorWeak",
|
|
5044
5050
|
onChange: (k, D) => _(k, D)
|
|
5045
|
-
}, null), e.showProgress && t(
|
|
5051
|
+
}, null), e.showProgress && t(Ye, {
|
|
5046
5052
|
label: "顶部进度条",
|
|
5047
5053
|
value: re(x).showProgressBar,
|
|
5048
5054
|
prefixCls: o,
|
|
@@ -5063,18 +5069,18 @@ const {
|
|
|
5063
5069
|
display: "flex",
|
|
5064
5070
|
gap: "10px"
|
|
5065
5071
|
}
|
|
5066
|
-
}, [e.hideCopyButton ? null : t(
|
|
5072
|
+
}, [e.hideCopyButton ? null : t(Qe, {
|
|
5067
5073
|
onClick: () => he(),
|
|
5068
5074
|
block: !0
|
|
5069
5075
|
}, {
|
|
5070
5076
|
default: () => [t(Ha, null, null), U("拷贝设置")]
|
|
5071
|
-
}), t(
|
|
5077
|
+
}), t(Qe, {
|
|
5072
5078
|
block: !0,
|
|
5073
5079
|
onClick: () => de()
|
|
5074
5080
|
}, {
|
|
5075
5081
|
default: () => [t(ja, null, null), U("清空缓存")]
|
|
5076
5082
|
})])])]
|
|
5077
|
-
})]), t(
|
|
5083
|
+
})]), t(qe, {
|
|
5078
5084
|
width: 320,
|
|
5079
5085
|
closable: !1,
|
|
5080
5086
|
placement: "right",
|
|
@@ -5091,7 +5097,7 @@ const {
|
|
|
5091
5097
|
subKey: K
|
|
5092
5098
|
})
|
|
5093
5099
|
}, null)]
|
|
5094
|
-
}), t(
|
|
5100
|
+
}), t(qe, {
|
|
5095
5101
|
width: 320,
|
|
5096
5102
|
closable: !1,
|
|
5097
5103
|
placement: "right",
|
|
@@ -5111,7 +5117,7 @@ const {
|
|
|
5111
5117
|
}));
|
|
5112
5118
|
};
|
|
5113
5119
|
}
|
|
5114
|
-
}),
|
|
5120
|
+
}), Oi = new v("backInLeft", {
|
|
5115
5121
|
"0%": {
|
|
5116
5122
|
opacity: 0.7,
|
|
5117
5123
|
transform: "translateX(-2000px) scale(0.7)"
|
|
@@ -5218,7 +5224,7 @@ const {
|
|
|
5218
5224
|
}), Ai = () => ({
|
|
5219
5225
|
"&.backInLeft": {
|
|
5220
5226
|
animationFillMode: "both",
|
|
5221
|
-
animationName:
|
|
5227
|
+
animationName: Oi
|
|
5222
5228
|
},
|
|
5223
5229
|
"&.backInRight": {
|
|
5224
5230
|
animationFillMode: "both",
|
|
@@ -5837,7 +5843,7 @@ const {
|
|
|
5837
5843
|
opacity: 0,
|
|
5838
5844
|
transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
|
|
5839
5845
|
}
|
|
5840
|
-
}),
|
|
5846
|
+
}), Ml = new v("flipOutY", {
|
|
5841
5847
|
from: {
|
|
5842
5848
|
transform: "perspective(400px)"
|
|
5843
5849
|
},
|
|
@@ -5849,7 +5855,7 @@ const {
|
|
|
5849
5855
|
opacity: 0,
|
|
5850
5856
|
transform: "perspective(400px) rotate3d(0, 1, 0, 90deg)"
|
|
5851
5857
|
}
|
|
5852
|
-
}),
|
|
5858
|
+
}), Ol = () => ({
|
|
5853
5859
|
"&.flipInX": {
|
|
5854
5860
|
animationFillMode: "both",
|
|
5855
5861
|
backfaceVisibility: "visible !important",
|
|
@@ -5871,7 +5877,7 @@ const {
|
|
|
5871
5877
|
animationFillMode: "both",
|
|
5872
5878
|
backfaceVisibility: "visible !important",
|
|
5873
5879
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
5874
|
-
animationName:
|
|
5880
|
+
animationName: Ml
|
|
5875
5881
|
}
|
|
5876
5882
|
}), Fl = new v("lightSpeedInLeft", {
|
|
5877
5883
|
from: {
|
|
@@ -6360,7 +6366,7 @@ const {
|
|
|
6360
6366
|
...Ai(),
|
|
6361
6367
|
...qi(),
|
|
6362
6368
|
...Il(),
|
|
6363
|
-
...
|
|
6369
|
+
...Ol(),
|
|
6364
6370
|
...zl(),
|
|
6365
6371
|
...Gl(),
|
|
6366
6372
|
...Zl(),
|
|
@@ -6421,7 +6427,7 @@ const es = /* @__PURE__ */ E({
|
|
|
6421
6427
|
let d = m.indexOf(b);
|
|
6422
6428
|
return d = d % 2 === 1 ? d - 1 : d + 1, m[d];
|
|
6423
6429
|
}, r = (b) => {
|
|
6424
|
-
const m =
|
|
6430
|
+
const m = Mt.preset.find((C) => e.name === C.name);
|
|
6425
6431
|
if (m === void 0)
|
|
6426
6432
|
return "";
|
|
6427
6433
|
let d = "";
|
|
@@ -6442,7 +6448,7 @@ const es = /* @__PURE__ */ E({
|
|
|
6442
6448
|
}));
|
|
6443
6449
|
};
|
|
6444
6450
|
}
|
|
6445
|
-
}),
|
|
6451
|
+
}), Xe = {
|
|
6446
6452
|
appList: {
|
|
6447
6453
|
type: Array,
|
|
6448
6454
|
default: void 0
|
|
@@ -6471,8 +6477,8 @@ const es = /* @__PURE__ */ E({
|
|
|
6471
6477
|
props: {
|
|
6472
6478
|
hashId: String,
|
|
6473
6479
|
baseClassName: String,
|
|
6474
|
-
appList:
|
|
6475
|
-
onItemClick:
|
|
6480
|
+
appList: Xe.appList,
|
|
6481
|
+
onItemClick: Xe.onItemClick
|
|
6476
6482
|
},
|
|
6477
6483
|
setup(e) {
|
|
6478
6484
|
return () => {
|
|
@@ -6512,8 +6518,8 @@ const es = /* @__PURE__ */ E({
|
|
|
6512
6518
|
props: {
|
|
6513
6519
|
hashId: String,
|
|
6514
6520
|
baseClassName: String,
|
|
6515
|
-
appList:
|
|
6516
|
-
onItemClick:
|
|
6521
|
+
appList: Xe.appList,
|
|
6522
|
+
onItemClick: Xe.onItemClick
|
|
6517
6523
|
},
|
|
6518
6524
|
setup(e) {
|
|
6519
6525
|
return () => {
|
|
@@ -6552,7 +6558,7 @@ const es = /* @__PURE__ */ E({
|
|
|
6552
6558
|
};
|
|
6553
6559
|
}
|
|
6554
6560
|
}), ts = /* @__PURE__ */ E({
|
|
6555
|
-
props:
|
|
6561
|
+
props: Xe,
|
|
6556
6562
|
emits: ["itemClick"],
|
|
6557
6563
|
setup(e) {
|
|
6558
6564
|
const n = oe({
|
|
@@ -6595,7 +6601,7 @@ export {
|
|
|
6595
6601
|
li as SearchPageInput,
|
|
6596
6602
|
Jr as SettingDrawer,
|
|
6597
6603
|
Wt as SiderMenuWrapper,
|
|
6598
|
-
|
|
6604
|
+
Mt as animateSeting,
|
|
6599
6605
|
rt as baseMenuProps,
|
|
6600
6606
|
zo as checkThemeStatus,
|
|
6601
6607
|
Xr as clearMenuItem,
|
|
@@ -6604,8 +6610,8 @@ export {
|
|
|
6604
6610
|
Lo as flatMap,
|
|
6605
6611
|
Vr as getMatchedList,
|
|
6606
6612
|
_r as getMenuData,
|
|
6607
|
-
|
|
6608
|
-
|
|
6613
|
+
Mo as getMenuFirstChildren,
|
|
6614
|
+
Oo as getMenuFirstLastChildPath,
|
|
6609
6615
|
Do as handleThemeConfig,
|
|
6610
6616
|
W as hanlePathKey,
|
|
6611
6617
|
qa as provideProLayoutContext,
|