@gx-design-vue/pro-layout 0.1.0-beta.82 → 0.1.0-beta.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/pro-layout.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { createVNode as n, defineComponent as j, createTextVNode as
|
|
1
|
+
import { createVNode as n, defineComponent as j, createTextVNode as _, mergeProps as te, toRefs as tt, ref as me, reactive as pe, watch as ne, computed as R, unref as se, Fragment as J, withDirectives as En, vShow as Kn, isVNode as Le, resolveComponent as Jt, nextTick as xt, watchEffect as Wn, onMounted as St, isRef as zt, Transition as Un } from "vue";
|
|
2
2
|
import { pick as oe, cloneDeep as Se, omit as $e } from "lodash-es";
|
|
3
|
-
import { LayoutFooter as _n, Spin as It, Tabs as wt, Menu as ge, Dropdown as ht, Layout as We, Popover as Xn, Badge as Vn, ConfigProvider as Rt, Drawer as Qe, Avatar as
|
|
4
|
-
import { useLocalStorage as at, useColorMode as ea, useStyleTag as ta, useMagicKeys as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { getPrefixCls as ie, arrayRepeat as la, getSlotVNode as
|
|
7
|
-
import ga, { themeConfig as Z, useContext as ya, useProStyle as fe, useStyle as Pe, mergeToken as je, getTokenLayoutTheme as
|
|
3
|
+
import { LayoutFooter as _n, Spin as It, Tabs as wt, Menu as ge, Dropdown as ht, Layout as We, Popover as Xn, Badge as Vn, ConfigProvider as Rt, Drawer as Qe, Avatar as en, Form as Dt, Input as tn, Button as Ze, Empty as At, MenuItem as Ht, Breadcrumb as Gn, Card as Yn, Tooltip as nt, List as Me, Switch as nn, TabPane as qn, Select as Ye, message as Qn, Segmented as Zn, Divider as ct, Alert as Jn } from "ant-design-vue";
|
|
4
|
+
import { useLocalStorage as at, useColorMode as ea, useStyleTag as ta, useMagicKeys as an, whenever as gt, useThrottleFn as na, onKeyStroke as ut, useFullscreen as aa, useDebounceFn as oa, useClipboard as ia } from "@vueuse/core";
|
|
5
|
+
import { useState as Ce, useMemo as yt, useMergedState as De, useMediaQuery as on } from "@gx-design-vue/pro-hooks";
|
|
6
|
+
import { getPrefixCls as ie, arrayRepeat as la, getSlotVNode as Be, classNames as Y, isBoolean as ae, merge as ve, isNumber as Ue, isUrl as $t, isImg as ra, isArray as Mt, convertValueBoolean as Fe, isObject as sa, isString as ca, getLevelData as Bt, deepCopy as ua, getRandomNumber as bt, getSlot as re, getSlotsProps as da, isWindowsOs as ma, isDeepEqualReact as fa, isBrowser as ha } from "@gx-design-vue/pro-utils";
|
|
7
|
+
import ga, { themeConfig as Z, useContext as ya, useProStyle as fe, useStyle as Pe, mergeToken as je, getTokenLayoutTheme as ye, resetComponent as ba, Keyframe as S, checkMenuDark as ot, calcUnit as dt, getDefaultLayoutToken as it, useProConfigContext as Oe, unit as Ae, getLayoutTheme as ln, useProForm as va, setAlpha as pa, defaultSystemTheme as Ca, defaultLayout as xa, colorList as Sa } from "@gx-design-vue/pro-provider";
|
|
8
8
|
import { createTypes as Ia } from "vue-types";
|
|
9
9
|
import { spinProps as wa } from "ant-design-vue/es/spin";
|
|
10
10
|
import Re from "dayjs";
|
|
11
|
-
import { GithubOutlined as Ra, CloseOutlined as lt, FullscreenExitOutlined as
|
|
11
|
+
import { GithubOutlined as Ra, CloseOutlined as lt, FullscreenExitOutlined as rn, FullscreenOutlined as sn, ReloadOutlined as vt, ExportOutlined as $a, VerticalRightOutlined as Ma, VerticalLeftOutlined as Ba, VerticalAlignMiddleOutlined as La, SwapOutlined as Oa, DownOutlined as Fa, AppstoreOutlined as ka, createFromIconfontCN as Ta, ArrowLeftOutlined as Pa, MenuUnfoldOutlined as Na, MenuFoldOutlined as za, UserOutlined as cn, LockOutlined as un, MenuOutlined as Da, ArrowRightOutlined as Aa, SearchOutlined as jt, EnterOutlined as Ha, ArrowUpOutlined as Et, CompressOutlined as ja, ExpandOutlined as Ea, SettingOutlined as dn, LogoutOutlined as Ka, DesktopOutlined as Wa, CheckOutlined as mn, NotificationOutlined as Ua, CopyOutlined as _a, ClearOutlined as Xa } from "@ant-design/icons-vue";
|
|
12
12
|
import { useProAppContext as Lt } from "@gx-design-vue/pro-app";
|
|
13
13
|
import { useRouter as Ge, RouterLink as Va } from "vue-router";
|
|
14
14
|
import { getAlphaColor as ke } from "ant-design-vue/es/theme/themes/dark/colorAlgorithm";
|
|
@@ -17,8 +17,8 @@ import "dayjs/locale/zh-cn";
|
|
|
17
17
|
import qa from "ant-design-vue/es/vc-resize-observer";
|
|
18
18
|
import { GPorWaterMark as Qa } from "@gx-design-vue/pro-watermark";
|
|
19
19
|
import Za from "@gx-design-vue/scrollbar";
|
|
20
|
-
import { GColorPicker as
|
|
21
|
-
const
|
|
20
|
+
import { GColorPicker as Kt } from "@gx-design-vue/color-picker";
|
|
21
|
+
const Q = Ia({
|
|
22
22
|
func: void 0,
|
|
23
23
|
bool: void 0,
|
|
24
24
|
string: void 0,
|
|
@@ -27,7 +27,7 @@ const q = Ia({
|
|
|
27
27
|
object: void 0,
|
|
28
28
|
integer: void 0
|
|
29
29
|
});
|
|
30
|
-
|
|
30
|
+
Q.extend([{
|
|
31
31
|
name: "looseBool",
|
|
32
32
|
getter: !0,
|
|
33
33
|
type: Boolean,
|
|
@@ -170,7 +170,7 @@ const Te = {
|
|
|
170
170
|
...Te,
|
|
171
171
|
...st,
|
|
172
172
|
...rt,
|
|
173
|
-
menuLoading:
|
|
173
|
+
menuLoading: Q.looseBool,
|
|
174
174
|
suppressSiderWhenMenuEmpty: {
|
|
175
175
|
type: Boolean,
|
|
176
176
|
default: !0
|
|
@@ -179,12 +179,12 @@ const Te = {
|
|
|
179
179
|
type: Number,
|
|
180
180
|
default: void 0
|
|
181
181
|
},
|
|
182
|
-
collapsedWidth:
|
|
182
|
+
collapsedWidth: Q.number.def(64),
|
|
183
183
|
breakpoint: {
|
|
184
184
|
type: [Object, Boolean],
|
|
185
185
|
default: () => !1
|
|
186
186
|
},
|
|
187
|
-
isMobile:
|
|
187
|
+
isMobile: Q.looseBool,
|
|
188
188
|
matchMenuKeys: {
|
|
189
189
|
type: Array,
|
|
190
190
|
default: () => []
|
|
@@ -226,11 +226,11 @@ const Te = {
|
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
228
|
// events
|
|
229
|
-
onMenuClick:
|
|
229
|
+
onMenuClick: Q.func,
|
|
230
230
|
onCollapse: {
|
|
231
231
|
type: Function
|
|
232
232
|
}
|
|
233
|
-
},
|
|
233
|
+
}, fn = {
|
|
234
234
|
...Te,
|
|
235
235
|
...st,
|
|
236
236
|
...rt,
|
|
@@ -280,13 +280,13 @@ const Te = {
|
|
|
280
280
|
onCollapse: ce.onCollapse,
|
|
281
281
|
onOpenKeys: ce.onOpenKeys,
|
|
282
282
|
onSelect: ce.onSelect
|
|
283
|
-
},
|
|
284
|
-
...
|
|
283
|
+
}, hn = {
|
|
284
|
+
...fn,
|
|
285
285
|
hasSiderMenu: Boolean,
|
|
286
286
|
collapsedWidth: ce.collapsedWidth,
|
|
287
287
|
siderWidth: ce.siderWidth
|
|
288
288
|
}, pt = {
|
|
289
|
-
loading:
|
|
289
|
+
loading: Q.looseBool,
|
|
290
290
|
isMobile: ce.isMobile,
|
|
291
291
|
collapsed: st.collapsed,
|
|
292
292
|
siderWidth: ce.siderWidth,
|
|
@@ -345,7 +345,7 @@ const Te = {
|
|
|
345
345
|
}), to = ["dark", "layout", "theme", "wideWidth", "contentWidth", "collapsed", "waterMark", "menuData", "openKeys", "splitMenus", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps", "shortcutKey", "pageContainerProps"], {
|
|
346
346
|
provideContext: no,
|
|
347
347
|
useInjectContext: le
|
|
348
|
-
} = ya("pro-layout"),
|
|
348
|
+
} = ya("pro-layout"), gn = [{
|
|
349
349
|
key: "Ant Design Pro",
|
|
350
350
|
title: "Ant Design Pro",
|
|
351
351
|
href: "https://pro.ant.design",
|
|
@@ -360,12 +360,12 @@ const Te = {
|
|
|
360
360
|
title: "Ant Design Vue",
|
|
361
361
|
href: "https://next.antdv.com/components/overview-cn/",
|
|
362
362
|
blankTarget: !0
|
|
363
|
-
}],
|
|
363
|
+
}], Wt = /* @__PURE__ */ j({
|
|
364
364
|
name: "GlobalFooter",
|
|
365
365
|
props: {
|
|
366
366
|
links: {
|
|
367
367
|
type: [Array, Boolean],
|
|
368
|
-
default:
|
|
368
|
+
default: gn
|
|
369
369
|
},
|
|
370
370
|
copyright: {
|
|
371
371
|
type: [Object, Function, Boolean, String],
|
|
@@ -396,7 +396,7 @@ const Te = {
|
|
|
396
396
|
href: s.href
|
|
397
397
|
}, [s.title]))]), e.copyright && n("div", {
|
|
398
398
|
class: `${o}-copyright ${l.value}`
|
|
399
|
-
}, [
|
|
399
|
+
}, [_("Copyright "), Re().format("YYYY"), _(" "), n("a", {
|
|
400
400
|
href: "https://beian.miit.gov.cn/"
|
|
401
401
|
}, [e.copyright])])])]
|
|
402
402
|
}));
|
|
@@ -408,8 +408,8 @@ const Te = {
|
|
|
408
408
|
}
|
|
409
409
|
},
|
|
410
410
|
pageCardProps: Object,
|
|
411
|
-
pageContentStyle:
|
|
412
|
-
pageChildrenContentStyle:
|
|
411
|
+
pageContentStyle: Q.style,
|
|
412
|
+
pageChildrenContentStyle: Q.style,
|
|
413
413
|
waterMarkProps: {
|
|
414
414
|
type: Object
|
|
415
415
|
},
|
|
@@ -434,7 +434,7 @@ const Te = {
|
|
|
434
434
|
default: () => {
|
|
435
435
|
}
|
|
436
436
|
},
|
|
437
|
-
pageHeaderStyle:
|
|
437
|
+
pageHeaderStyle: Q.style,
|
|
438
438
|
waterMark: {
|
|
439
439
|
type: Boolean,
|
|
440
440
|
default: () => {
|
|
@@ -445,7 +445,7 @@ const Te = {
|
|
|
445
445
|
default: () => {
|
|
446
446
|
}
|
|
447
447
|
},
|
|
448
|
-
loading:
|
|
448
|
+
loading: Q.bool.def(!1),
|
|
449
449
|
...ao
|
|
450
450
|
}, Ot = {
|
|
451
451
|
dark: {
|
|
@@ -458,7 +458,7 @@ const Te = {
|
|
|
458
458
|
...Ot,
|
|
459
459
|
...Te,
|
|
460
460
|
...ce,
|
|
461
|
-
...
|
|
461
|
+
...hn,
|
|
462
462
|
...oe(pt, ["onTabsChange", "onReloadPage", "onUpdate:tabs"]),
|
|
463
463
|
contentWidth: Je.contentWidth,
|
|
464
464
|
pageContainerProps: {
|
|
@@ -495,11 +495,11 @@ const Te = {
|
|
|
495
495
|
default: () => null
|
|
496
496
|
},
|
|
497
497
|
breadcrumb: [Object, Function],
|
|
498
|
-
isChildrenLayout:
|
|
499
|
-
loading:
|
|
498
|
+
isChildrenLayout: Q.looseBool,
|
|
499
|
+
loading: Q.looseBool,
|
|
500
500
|
footerLinks: {
|
|
501
501
|
type: [Array, Boolean],
|
|
502
|
-
default:
|
|
502
|
+
default: gn
|
|
503
503
|
},
|
|
504
504
|
tabsVisible: Boolean,
|
|
505
505
|
tabsRouteItemRender: pt.itemRender,
|
|
@@ -553,9 +553,9 @@ const Te = {
|
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
};
|
|
556
|
-
},
|
|
556
|
+
}, yn = ["menuLinksRender", "appLogoListRender", "siderActionsRender"], bn = ["appLogoListRender", "extraRightDropdownRender"], vn = la([
|
|
557
|
+
...bn,
|
|
557
558
|
...yn,
|
|
558
|
-
...gn,
|
|
559
559
|
"pageHeaderRender",
|
|
560
560
|
"pageLockRender",
|
|
561
561
|
"copyrightRender"
|
|
@@ -572,7 +572,7 @@ const Te = {
|
|
|
572
572
|
"breadcrumbRender",
|
|
573
573
|
"collapsedButtonRender"
|
|
574
574
|
];
|
|
575
|
-
[...
|
|
575
|
+
[...vn, ...lo];
|
|
576
576
|
const ro = ["tabsVisible", "storageTabsBar", "collapsedWidth", "isChildrenLayout", "loading", "showTabsBar", "fixedTabsBar", "collapsed", "onReloadPage", "onTabsChange"], so = /* @__PURE__ */ j({
|
|
577
577
|
name: "PageLoading",
|
|
578
578
|
props: wa(),
|
|
@@ -585,7 +585,7 @@ const ro = ["tabsVisible", "storageTabsBar", "collapsedWidth", "isChildrenLayout
|
|
|
585
585
|
const o = Lt();
|
|
586
586
|
return () => {
|
|
587
587
|
var s;
|
|
588
|
-
const i = a.style || {}, l =
|
|
588
|
+
const i = a.style || {}, l = Be(t, e, "indicator");
|
|
589
589
|
return e.spinning ? n("div", {
|
|
590
590
|
style: {
|
|
591
591
|
paddingTop: "100px",
|
|
@@ -733,7 +733,7 @@ const _e = /* @__PURE__ */ j({
|
|
|
733
733
|
return (s = e.onClick) == null ? void 0 : s.call(e, l);
|
|
734
734
|
}
|
|
735
735
|
}, [n("svg", {
|
|
736
|
-
class:
|
|
736
|
+
class: Y(a, o.value),
|
|
737
737
|
"aria-hidden": "true"
|
|
738
738
|
}, [
|
|
739
739
|
// @ts-ignore
|
|
@@ -754,7 +754,7 @@ const _e = /* @__PURE__ */ j({
|
|
|
754
754
|
icon: n(lt, null, null)
|
|
755
755
|
}, {
|
|
756
756
|
key: "fullScreen",
|
|
757
|
-
icon: (e) => e ? n(
|
|
757
|
+
icon: (e) => e ? n(rn, null, null) : n(sn, null, null)
|
|
758
758
|
}, {
|
|
759
759
|
key: "reloadPage",
|
|
760
760
|
label: "重新加载",
|
|
@@ -768,11 +768,11 @@ const _e = /* @__PURE__ */ j({
|
|
|
768
768
|
}, {
|
|
769
769
|
key: "closeLeftTabs",
|
|
770
770
|
label: "关闭左侧",
|
|
771
|
-
icon: n(
|
|
771
|
+
icon: n(Ma, null, null)
|
|
772
772
|
}, {
|
|
773
773
|
key: "closeRightTabs",
|
|
774
774
|
label: "关闭右侧",
|
|
775
|
-
icon: n(
|
|
775
|
+
icon: n(Ba, null, null)
|
|
776
776
|
}, {
|
|
777
777
|
key: "divider"
|
|
778
778
|
}, {
|
|
@@ -796,7 +796,7 @@ function yo(e) {
|
|
|
796
796
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
797
797
|
}
|
|
798
798
|
const bo = wt.TabPane, vo = ge.Item;
|
|
799
|
-
function
|
|
799
|
+
function U(e) {
|
|
800
800
|
return e.name;
|
|
801
801
|
}
|
|
802
802
|
const po = /* @__PURE__ */ j({
|
|
@@ -808,7 +808,7 @@ const po = /* @__PURE__ */ j({
|
|
|
808
808
|
isMobile: t,
|
|
809
809
|
fixedTabsBar: a,
|
|
810
810
|
storageTabsBar: o
|
|
811
|
-
} = tt(e), i = me(!1), l =
|
|
811
|
+
} = tt(e), i = me(!1), l = pe({
|
|
812
812
|
activeKey: "",
|
|
813
813
|
contextMenuActiveKey: ""
|
|
814
814
|
}), s = Ge(), {
|
|
@@ -823,29 +823,29 @@ const po = /* @__PURE__ */ j({
|
|
|
823
823
|
suffixCls: "tabs-route"
|
|
824
824
|
}), {
|
|
825
825
|
wrapSSR: u,
|
|
826
|
-
hashId:
|
|
827
|
-
} = uo(b),
|
|
826
|
+
hashId: x
|
|
827
|
+
} = uo(b), v = at(b, {
|
|
828
828
|
fixed: [],
|
|
829
829
|
normal: []
|
|
830
|
-
}), c =
|
|
831
|
-
fixed: o.value && ((xe =
|
|
832
|
-
normal: o.value && ((Ie =
|
|
830
|
+
}), c = pe({
|
|
831
|
+
fixed: o.value && ((xe = v.value) != null && xe.fixed) ? (Ne = v.value) == null ? void 0 : Ne.fixed : [],
|
|
832
|
+
normal: o.value && ((Ie = v.value) != null && Ie.normal) ? (we = v.value) == null ? void 0 : we.normal : []
|
|
833
833
|
});
|
|
834
|
-
ne(o, (
|
|
835
|
-
|
|
834
|
+
ne(o, (C) => {
|
|
835
|
+
v.value = C ? Se(c) : {
|
|
836
836
|
fixed: [],
|
|
837
837
|
normal: []
|
|
838
838
|
};
|
|
839
839
|
});
|
|
840
|
-
const
|
|
841
|
-
const
|
|
842
|
-
return z.value &&
|
|
843
|
-
}), I = R(() =>
|
|
844
|
-
[`${
|
|
840
|
+
const p = R(() => c.fixed.concat(c.normal)), m = R(() => f.value === "mix" && !e.isMobile && d.value), w = R(() => U(s.currentRoute.value)), z = R(() => a.value && !t.value), $ = R(() => {
|
|
841
|
+
const C = !(m.value && se(g.value).length === 0 || h.value.length === 0 || f.value === "top");
|
|
842
|
+
return z.value && C ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
|
|
843
|
+
}), I = R(() => Y(`${b}-wrap`, {
|
|
844
|
+
[`${x.value}`]: !0,
|
|
845
845
|
[`${b}-wrap-fixed`]: a.value,
|
|
846
846
|
[`${b}-wrap-loading`]: e.loading
|
|
847
|
-
})),
|
|
848
|
-
const
|
|
847
|
+
})), M = R(() => {
|
|
848
|
+
const C = {
|
|
849
849
|
display: e.visible ? void 0 : "none"
|
|
850
850
|
};
|
|
851
851
|
return a.value ? {
|
|
@@ -854,104 +854,104 @@ const po = /* @__PURE__ */ j({
|
|
|
854
854
|
paddingTop: "6px",
|
|
855
855
|
zIndex: 99,
|
|
856
856
|
top: r.value ? 0 : void 0,
|
|
857
|
-
...
|
|
858
|
-
} :
|
|
857
|
+
...C
|
|
858
|
+
} : C;
|
|
859
859
|
});
|
|
860
|
-
ne(() => c, (
|
|
861
|
-
var
|
|
862
|
-
o.value && (
|
|
860
|
+
ne(() => c, (C) => {
|
|
861
|
+
var B;
|
|
862
|
+
o.value && (v.value = Se(C)), (B = e.onTabsChange) == null || B.call(e, [...c.fixed, ...c.normal]);
|
|
863
863
|
}, {
|
|
864
864
|
deep: !0
|
|
865
865
|
});
|
|
866
|
-
const k = (
|
|
867
|
-
let
|
|
868
|
-
return
|
|
869
|
-
}, O = (
|
|
866
|
+
const k = (C) => {
|
|
867
|
+
let B = c.fixed.find((N) => U(N) === C);
|
|
868
|
+
return B || (B = c.normal.find((N) => U(N) === C)), B;
|
|
869
|
+
}, O = (C) => U(C) === w.value, T = (C) => {
|
|
870
870
|
var N;
|
|
871
871
|
const {
|
|
872
|
-
fixed:
|
|
873
|
-
} = ((N =
|
|
874
|
-
return
|
|
875
|
-
},
|
|
872
|
+
fixed: B
|
|
873
|
+
} = ((N = C == null ? void 0 : C.meta) == null ? void 0 : N.tabState) || {};
|
|
874
|
+
return C != null && C.meta ? ae(B) ? B : B === 0 : !1;
|
|
875
|
+
}, X = (C) => {
|
|
876
876
|
var N, G;
|
|
877
877
|
const {
|
|
878
|
-
hidden:
|
|
879
|
-
} = ((N =
|
|
880
|
-
if (
|
|
881
|
-
const D = T(
|
|
878
|
+
hidden: B
|
|
879
|
+
} = ((N = C == null ? void 0 : C.meta) == null ? void 0 : N.tabState) || {};
|
|
880
|
+
if (C.name && C.meta && B !== !0) {
|
|
881
|
+
const D = T(C), A = U(C), ue = k(A), ze = {
|
|
882
882
|
name: A,
|
|
883
|
-
path:
|
|
884
|
-
fullPath:
|
|
885
|
-
query:
|
|
886
|
-
params:
|
|
887
|
-
meta:
|
|
888
|
-
tabState: (G =
|
|
883
|
+
path: C.path,
|
|
884
|
+
fullPath: C.fullPath,
|
|
885
|
+
query: C.query,
|
|
886
|
+
params: C.params,
|
|
887
|
+
meta: ve(C.meta, {
|
|
888
|
+
tabState: (G = C.meta) == null ? void 0 : G.tabState
|
|
889
889
|
})
|
|
890
890
|
};
|
|
891
|
-
ue ?
|
|
891
|
+
ue ? ve(ue, ze) : D ? c.fixed.push(ze) : c.normal.push(ze), O(C) && (l.activeKey = A);
|
|
892
892
|
}
|
|
893
|
-
},
|
|
894
|
-
|
|
895
|
-
T(
|
|
893
|
+
}, E = (C) => {
|
|
894
|
+
C.forEach((B) => {
|
|
895
|
+
T(B) && X(se(B));
|
|
896
896
|
});
|
|
897
897
|
};
|
|
898
|
-
ne(() => h.value, (
|
|
899
|
-
|
|
898
|
+
ne(() => h.value, (C) => {
|
|
899
|
+
E(C);
|
|
900
900
|
}, {
|
|
901
901
|
deep: !0,
|
|
902
902
|
immediate: !0
|
|
903
|
-
}), ne(() => s.currentRoute.value, (
|
|
904
|
-
|
|
903
|
+
}), ne(() => s.currentRoute.value, (C) => {
|
|
904
|
+
X(C);
|
|
905
905
|
}, {
|
|
906
906
|
deep: !0,
|
|
907
907
|
immediate: !0
|
|
908
908
|
});
|
|
909
|
-
const
|
|
910
|
-
const
|
|
911
|
-
return (
|
|
912
|
-
}, he = (
|
|
913
|
-
type:
|
|
909
|
+
const K = (C) => {
|
|
910
|
+
const B = p.value.find((N) => (C || l.activeKey) === U(N));
|
|
911
|
+
return (B == null ? void 0 : B.redirect) || (B == null ? void 0 : B.fullPath) || (B == null ? void 0 : B.path) || "";
|
|
912
|
+
}, he = (C, {
|
|
913
|
+
type: B,
|
|
914
914
|
addType: N,
|
|
915
915
|
params: G
|
|
916
916
|
}) => {
|
|
917
|
-
const D = T(
|
|
918
|
-
|
|
917
|
+
const D = T(C) ? "fixed" : "normal";
|
|
918
|
+
B === "add" && N ? c[D][N](G) : B === "merge" ? c[D] = c[D].map((A) => U(A) === U(C) ? ve(A, G) : A) : B === "remove" && (c[D] = c[D].filter((A) => U(A) !== U(C)));
|
|
919
919
|
}, de = () => {
|
|
920
|
-
const
|
|
921
|
-
|
|
922
|
-
path:
|
|
920
|
+
const C = p.value.slice(-1)[0];
|
|
921
|
+
C ? s.push({
|
|
922
|
+
path: K(U(C))
|
|
923
923
|
}) : s.push("/");
|
|
924
|
-
}, L = async (
|
|
925
|
-
const
|
|
926
|
-
|
|
924
|
+
}, L = async (C) => {
|
|
925
|
+
const B = p.value.find((N) => C === U(N));
|
|
926
|
+
B && (he(B, {
|
|
927
927
|
type: "remove",
|
|
928
|
-
params:
|
|
929
|
-
}), O(
|
|
930
|
-
}, F = (
|
|
931
|
-
const
|
|
932
|
-
|
|
933
|
-
path:
|
|
928
|
+
params: B
|
|
929
|
+
}), O(B) && de());
|
|
930
|
+
}, F = (C) => {
|
|
931
|
+
const B = p.value.find((N) => U(N) === C);
|
|
932
|
+
B && l.activeKey !== U(B) && s.push({
|
|
933
|
+
path: K(U(B))
|
|
934
934
|
});
|
|
935
935
|
}, P = () => {
|
|
936
|
-
var
|
|
937
|
-
i.value = !0, e.onReloadPage && ((
|
|
936
|
+
var C;
|
|
937
|
+
i.value = !0, e.onReloadPage && ((C = e.onReloadPage) == null || C.call(e)), setTimeout(() => {
|
|
938
938
|
i.value = !1;
|
|
939
939
|
}, 500);
|
|
940
|
-
},
|
|
941
|
-
const
|
|
942
|
-
l.activeKey !==
|
|
943
|
-
},
|
|
944
|
-
let N = c.normal.findIndex((A) =>
|
|
945
|
-
const G =
|
|
946
|
-
switch (
|
|
940
|
+
}, W = (C) => l[C], ee = (C) => {
|
|
941
|
+
const B = p.value.find((N) => U(N) === W(C));
|
|
942
|
+
l.activeKey !== W(C) && (c.normal.length > 0 ? k(U(B)) || s.push(K(W(C))) : de());
|
|
943
|
+
}, be = (C, B) => {
|
|
944
|
+
let N = c.normal.findIndex((A) => U(A) === W(B));
|
|
945
|
+
const G = p.value.find((A) => U(A) === W(B)), D = T(G);
|
|
946
|
+
switch (C) {
|
|
947
947
|
case "fixed":
|
|
948
|
-
D ? (N = c.fixed.findIndex((A) =>
|
|
948
|
+
D ? (N = c.fixed.findIndex((A) => U(A) === W(B)), c.normal.unshift(ve(G, {
|
|
949
949
|
meta: {
|
|
950
950
|
tabState: {
|
|
951
951
|
fixed: !D
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
|
-
})), c.fixed = c.fixed.filter((A, ue) => ue !== N)) : (c.fixed.push(
|
|
954
|
+
})), c.fixed = c.fixed.filter((A, ue) => ue !== N)) : (c.fixed.push(ve(G, {
|
|
955
955
|
meta: {
|
|
956
956
|
tabState: {
|
|
957
957
|
fixed: !D
|
|
@@ -960,22 +960,22 @@ const po = /* @__PURE__ */ j({
|
|
|
960
960
|
})), c.normal = c.normal.filter((A, ue) => ue !== N));
|
|
961
961
|
break;
|
|
962
962
|
case "close":
|
|
963
|
-
!i.value && L(
|
|
963
|
+
!i.value && L(U(G) || "");
|
|
964
964
|
break;
|
|
965
965
|
case "closeOthersTabs":
|
|
966
|
-
c.normal = c.normal.filter((A) =>
|
|
966
|
+
c.normal = c.normal.filter((A) => U(A) === W(B) || T(A)), ee(B);
|
|
967
967
|
break;
|
|
968
968
|
case "closeLeftTabs":
|
|
969
|
-
Ue(N) && (c.normal = c.normal.filter((A, ue) => ue >= N || T(A))), ee(
|
|
969
|
+
Ue(N) && (c.normal = c.normal.filter((A, ue) => ue >= N || T(A))), ee(B);
|
|
970
970
|
break;
|
|
971
971
|
case "closeRightTabs":
|
|
972
|
-
Ue(N) && (c.normal = c.normal.filter((A, ue) => ue <= N || T(A))), ee(
|
|
972
|
+
Ue(N) && (c.normal = c.normal.filter((A, ue) => ue <= N || T(A))), ee(B);
|
|
973
973
|
break;
|
|
974
974
|
case "closeAllTabs":
|
|
975
975
|
c.normal = c.normal.filter((A) => T(A)), de();
|
|
976
976
|
break;
|
|
977
977
|
case "reloadPage":
|
|
978
|
-
(N === 0 || N) && l.activeKey ===
|
|
978
|
+
(N === 0 || N) && l.activeKey === W(B) && P();
|
|
979
979
|
break;
|
|
980
980
|
case "newBlank":
|
|
981
981
|
window.open(location.href);
|
|
@@ -984,24 +984,24 @@ const po = /* @__PURE__ */ j({
|
|
|
984
984
|
r.value = !r.value;
|
|
985
985
|
break;
|
|
986
986
|
}
|
|
987
|
-
}, H = (
|
|
988
|
-
const N =
|
|
989
|
-
if (
|
|
990
|
-
return
|
|
991
|
-
if (
|
|
992
|
-
return
|
|
993
|
-
if (
|
|
994
|
-
return
|
|
995
|
-
},
|
|
996
|
-
let
|
|
987
|
+
}, H = (C, B) => {
|
|
988
|
+
const N = p.value.findIndex((G) => U(G) === B);
|
|
989
|
+
if (C === "closeOthersTabs")
|
|
990
|
+
return p.value.filter((D, A) => A !== N && !T(D)).length === 0;
|
|
991
|
+
if (C === "closeLeftTabs")
|
|
992
|
+
return p.value.filter((D, A) => A < N && !T(D)).length === 0;
|
|
993
|
+
if (C === "closeRightTabs")
|
|
994
|
+
return p.value.filter((D, A) => A > N && !T(D)).length === 0;
|
|
995
|
+
}, q = (C) => {
|
|
996
|
+
let B;
|
|
997
997
|
const {
|
|
998
998
|
name: N,
|
|
999
999
|
stateType: G
|
|
1000
|
-
} =
|
|
1000
|
+
} = C;
|
|
1001
1001
|
return n(ge, {
|
|
1002
1002
|
selectedKeys: [],
|
|
1003
|
-
onClick: (D) =>
|
|
1004
|
-
}, yo(
|
|
1003
|
+
onClick: (D) => be(D.key, G)
|
|
1004
|
+
}, yo(B = ho.map((D) => {
|
|
1005
1005
|
if (D.key === "divider") return n(ge.Divider, {
|
|
1006
1006
|
key: D.key
|
|
1007
1007
|
}, null);
|
|
@@ -1022,85 +1022,85 @@ const po = /* @__PURE__ */ j({
|
|
|
1022
1022
|
})])];
|
|
1023
1023
|
}
|
|
1024
1024
|
});
|
|
1025
|
-
})) ?
|
|
1026
|
-
default: () => [
|
|
1025
|
+
})) ? B : {
|
|
1026
|
+
default: () => [B]
|
|
1027
1027
|
});
|
|
1028
1028
|
}, V = ({
|
|
1029
|
-
router:
|
|
1029
|
+
router: C
|
|
1030
1030
|
}) => {
|
|
1031
|
-
const
|
|
1031
|
+
const B = e.itemRender ? e.itemRender(C) : null, N = T(C);
|
|
1032
1032
|
return n(ht, {
|
|
1033
1033
|
trigger: "contextmenu",
|
|
1034
|
-
overlay: n(
|
|
1035
|
-
name:
|
|
1034
|
+
overlay: n(q, {
|
|
1035
|
+
name: U(C) || "",
|
|
1036
1036
|
stateType: "contextMenuActiveKey"
|
|
1037
1037
|
}, null),
|
|
1038
1038
|
onOpenChange: (G) => {
|
|
1039
|
-
l.contextMenuActiveKey = G &&
|
|
1039
|
+
l.contextMenuActiveKey = G && U(C) || "";
|
|
1040
1040
|
}
|
|
1041
1041
|
}, {
|
|
1042
1042
|
default: () => {
|
|
1043
1043
|
var G;
|
|
1044
|
-
return [
|
|
1045
|
-
class: [`${b}-title`,
|
|
1046
|
-
}, [l.activeKey ===
|
|
1047
|
-
class: [`${b}-reload-btn`,
|
|
1044
|
+
return [B || n("div", {
|
|
1045
|
+
class: [`${b}-title`, x.value]
|
|
1046
|
+
}, [l.activeKey === U(C) && n(vt, {
|
|
1047
|
+
class: [`${b}-reload-btn`, x.value],
|
|
1048
1048
|
spin: i.value,
|
|
1049
1049
|
onClick: (D) => {
|
|
1050
1050
|
D.stopPropagation(), !i.value && P();
|
|
1051
1051
|
}
|
|
1052
|
-
}, null), (G =
|
|
1053
|
-
class: [`${b}-icon`,
|
|
1052
|
+
}, null), (G = C.meta) == null ? void 0 : G.title, N && n(_e, {
|
|
1053
|
+
class: [`${b}-icon`, x.value],
|
|
1054
1054
|
name: "fixed"
|
|
1055
|
-
}, null),
|
|
1056
|
-
class: [`${b}-close-btn`,
|
|
1055
|
+
}, null), p.value.length > 1 && !T(C) && n(lt, {
|
|
1056
|
+
class: [`${b}-close-btn`, x.value],
|
|
1057
1057
|
onClick: (D) => {
|
|
1058
|
-
D.stopPropagation(), !i.value && L(
|
|
1058
|
+
D.stopPropagation(), !i.value && L(U(C) || "");
|
|
1059
1059
|
}
|
|
1060
1060
|
}, null)])];
|
|
1061
1061
|
}
|
|
1062
1062
|
});
|
|
1063
1063
|
};
|
|
1064
1064
|
return () => {
|
|
1065
|
-
const
|
|
1066
|
-
return u(n(J, null, [a.value &&
|
|
1067
|
-
class: [`${b}-fixed`,
|
|
1068
|
-
}, null), [[
|
|
1065
|
+
const C = r.value ? rn : sn;
|
|
1066
|
+
return u(n(J, null, [a.value && En(n("div", {
|
|
1067
|
+
class: [`${b}-fixed`, x.value]
|
|
1068
|
+
}, null), [[Kn, e.visible]]), n(wt, {
|
|
1069
1069
|
hideAdd: !0,
|
|
1070
1070
|
type: "editable-card",
|
|
1071
|
-
style:
|
|
1071
|
+
style: M.value,
|
|
1072
1072
|
class: I.value,
|
|
1073
1073
|
activeKey: l.activeKey,
|
|
1074
1074
|
onTabClick: F
|
|
1075
1075
|
}, {
|
|
1076
|
-
default: () => [
|
|
1077
|
-
key:
|
|
1076
|
+
default: () => [p.value.map((B) => n(bo, {
|
|
1077
|
+
key: U(B),
|
|
1078
1078
|
closable: !1,
|
|
1079
1079
|
tab: n(V, {
|
|
1080
|
-
router:
|
|
1080
|
+
router: B
|
|
1081
1081
|
}, null)
|
|
1082
1082
|
}, null))],
|
|
1083
1083
|
rightExtra: () => n("div", {
|
|
1084
|
-
class:
|
|
1084
|
+
class: Y(`${b}-dropdown-menu`, x.value)
|
|
1085
1085
|
}, [n(vt, {
|
|
1086
|
-
class: [`${b}-dropdown-menu-btn`,
|
|
1087
|
-
onClick: () =>
|
|
1086
|
+
class: [`${b}-dropdown-menu-btn`, x.value],
|
|
1087
|
+
onClick: () => be("reloadPage", "activeKey")
|
|
1088
1088
|
}, null), n("div", {
|
|
1089
|
-
class: [`${b}-dropdown-menu-btn-divider`,
|
|
1089
|
+
class: [`${b}-dropdown-menu-btn-divider`, x.value]
|
|
1090
1090
|
}, null), n(ht, {
|
|
1091
|
-
overlay: n(
|
|
1091
|
+
overlay: n(q, {
|
|
1092
1092
|
name: l.activeKey,
|
|
1093
1093
|
stateType: "activeKey"
|
|
1094
1094
|
}, null)
|
|
1095
1095
|
}, {
|
|
1096
1096
|
default: () => [n(Fa, {
|
|
1097
|
-
class: [`${b}-dropdown-menu-btn`,
|
|
1097
|
+
class: [`${b}-dropdown-menu-btn`, x.value]
|
|
1098
1098
|
}, null)]
|
|
1099
1099
|
}), n("div", {
|
|
1100
|
-
class: [`${b}-dropdown-menu-btn-divider`,
|
|
1101
|
-
}, null), n(
|
|
1102
|
-
class: [`${b}-dropdown-menu-btn`,
|
|
1103
|
-
onClick: () =>
|
|
1100
|
+
class: [`${b}-dropdown-menu-btn-divider`, x.value]
|
|
1101
|
+
}, null), n(C, {
|
|
1102
|
+
class: [`${b}-dropdown-menu-btn`, x.value],
|
|
1103
|
+
onClick: () => be("fullScreen", "activeKey")
|
|
1104
1104
|
}, null)])
|
|
1105
1105
|
})]));
|
|
1106
1106
|
};
|
|
@@ -1145,7 +1145,7 @@ const po = /* @__PURE__ */ j({
|
|
|
1145
1145
|
Ft.inheritAttrs = !1;
|
|
1146
1146
|
Ft.displayName = "wrap-content";
|
|
1147
1147
|
const xo = (e) => {
|
|
1148
|
-
const { layout: t } =
|
|
1148
|
+
const { layout: t } = ye(e);
|
|
1149
1149
|
return {
|
|
1150
1150
|
[`${e.proComponentsCls}-header`]: {
|
|
1151
1151
|
"&-light": {
|
|
@@ -1396,7 +1396,7 @@ const xo = (e) => {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
}), $o = (e) => {
|
|
1398
1398
|
var a, o, i, l, s;
|
|
1399
|
-
const { theme: t } =
|
|
1399
|
+
const { theme: t } = ye(e);
|
|
1400
1400
|
return {
|
|
1401
1401
|
[e.componentCls]: {
|
|
1402
1402
|
"&-icon": {
|
|
@@ -1445,14 +1445,14 @@ const xo = (e) => {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
};
|
|
1448
|
-
},
|
|
1448
|
+
}, Mo = ({
|
|
1449
1449
|
logo: e
|
|
1450
1450
|
}) => typeof e == "string" ? n("img", {
|
|
1451
1451
|
width: "auto",
|
|
1452
1452
|
height: 22,
|
|
1453
1453
|
src: e,
|
|
1454
1454
|
alt: "logo"
|
|
1455
|
-
}, null) : typeof e == "function" ? e() : e,
|
|
1455
|
+
}, null) : typeof e == "function" ? e() : e, pn = /* @__PURE__ */ j({
|
|
1456
1456
|
name: "AppsLogoIcon",
|
|
1457
1457
|
inheritAttrs: !1,
|
|
1458
1458
|
setup(e, {
|
|
@@ -1464,7 +1464,7 @@ const xo = (e) => {
|
|
|
1464
1464
|
}), {
|
|
1465
1465
|
wrapSSR: o,
|
|
1466
1466
|
hashId: i
|
|
1467
|
-
} = fe("AppsLogoIcon", [$o], a), [l, s] =
|
|
1467
|
+
} = fe("AppsLogoIcon", [$o], a), [l, s] = Ce(!1), r = me(), h = me();
|
|
1468
1468
|
return () => {
|
|
1469
1469
|
var g;
|
|
1470
1470
|
return o(n(J, null, [n("div", {
|
|
@@ -1488,7 +1488,7 @@ const xo = (e) => {
|
|
|
1488
1488
|
onClick: (f) => {
|
|
1489
1489
|
f.stopPropagation();
|
|
1490
1490
|
},
|
|
1491
|
-
class:
|
|
1491
|
+
class: Y(`${a}-icon`, i.value, {
|
|
1492
1492
|
[`${a}-icon-active`]: l.value
|
|
1493
1493
|
})
|
|
1494
1494
|
}, [n(So, null, null)])]
|
|
@@ -1527,9 +1527,9 @@ const et = (e) => {
|
|
|
1527
1527
|
}
|
|
1528
1528
|
if (Le(t))
|
|
1529
1529
|
return t;
|
|
1530
|
-
const i =
|
|
1530
|
+
const i = Jt(t);
|
|
1531
1531
|
return typeof et == "function" && n(i, null, null) || null;
|
|
1532
|
-
},
|
|
1532
|
+
}, Cn = /* @__PURE__ */ j({
|
|
1533
1533
|
name: "BaseMenu",
|
|
1534
1534
|
props: {
|
|
1535
1535
|
...$e(st, "onSelect"),
|
|
@@ -1544,89 +1544,89 @@ const et = (e) => {
|
|
|
1544
1544
|
suffixCls: "menu-item",
|
|
1545
1545
|
isPor: !0
|
|
1546
1546
|
}), i = R(() => b(e.menuData)), l = (u) => {
|
|
1547
|
-
var
|
|
1548
|
-
(
|
|
1547
|
+
var x;
|
|
1548
|
+
(x = e.onOpenKeys) == null || x.call(e, u);
|
|
1549
1549
|
}, s = (u) => {
|
|
1550
|
-
var
|
|
1551
|
-
(
|
|
1550
|
+
var x;
|
|
1551
|
+
(x = e.onSelect) == null || x.call(e, u);
|
|
1552
1552
|
}, r = (u) => {
|
|
1553
|
-
var
|
|
1554
|
-
(
|
|
1555
|
-
}, h = (u,
|
|
1556
|
-
var
|
|
1557
|
-
const
|
|
1558
|
-
((
|
|
1559
|
-
}, g =
|
|
1553
|
+
var x;
|
|
1554
|
+
(x = e.onClick) == null || x.call(e, u);
|
|
1555
|
+
}, h = (u, x) => {
|
|
1556
|
+
var p;
|
|
1557
|
+
const v = u.link || "", c = $t(v);
|
|
1558
|
+
((p = t.currentRoute.value) == null ? void 0 : p.fullPath) !== x.to && c && v && u.linkStatus === 1 && window.open(v);
|
|
1559
|
+
}, g = Jt("router-link"), f = (u, x) => {
|
|
1560
1560
|
var m;
|
|
1561
|
-
const
|
|
1561
|
+
const v = Fe(u == null ? void 0 : u.icon), c = typeof u.badge == "function" ? n("div", {
|
|
1562
1562
|
class: `${o}-item-bradde`
|
|
1563
|
-
}, [(m = u.badge) == null ? void 0 : m.call(u, $e(u, "badge"))]) : null,
|
|
1564
|
-
class: [`${o}-title`, !
|
|
1563
|
+
}, [(m = u.badge) == null ? void 0 : m.call(u, $e(u, "badge"))]) : null, p = n("span", {
|
|
1564
|
+
class: [`${o}-title`, !v && `${o}-title-no-icon`]
|
|
1565
1565
|
}, [u.title]);
|
|
1566
|
-
return
|
|
1566
|
+
return x ? p : n(J, null, [p, c ?? (sa(u.badge) && n(Vn, te({
|
|
1567
1567
|
class: `${o}-item-bradde`,
|
|
1568
1568
|
overflowCount: 999
|
|
1569
1569
|
}, u.badge), null))]);
|
|
1570
1570
|
}, d = (u) => {
|
|
1571
|
-
var $, I,
|
|
1572
|
-
let
|
|
1573
|
-
const
|
|
1571
|
+
var $, I, M;
|
|
1572
|
+
let x;
|
|
1573
|
+
const v = {
|
|
1574
1574
|
...u.meta
|
|
1575
|
-
}, c =
|
|
1575
|
+
}, c = v.linkStatus === 1 && v.link ? "a" : g, p = {
|
|
1576
1576
|
to: ca(u.redirect) ? u.redirect : u.path || ""
|
|
1577
|
-
}, m = Fe(($ = u.meta) == null ? void 0 : $.icon), w = n(c, te(
|
|
1577
|
+
}, m = Fe(($ = u.meta) == null ? void 0 : $.icon), w = n(c, te(p, {
|
|
1578
1578
|
class: "gx-pro-menu-item",
|
|
1579
|
-
onClick: () => h(
|
|
1580
|
-
}), mt(
|
|
1581
|
-
default: () => [
|
|
1579
|
+
onClick: () => h(v, p)
|
|
1580
|
+
}), mt(x = f(v, !m)) ? x : {
|
|
1581
|
+
default: () => [x]
|
|
1582
1582
|
}), z = m && n(et, {
|
|
1583
1583
|
className: o,
|
|
1584
1584
|
icon: (I = u.meta) == null ? void 0 : I.icon,
|
|
1585
1585
|
iconfontUrl: e.iconfontUrl,
|
|
1586
|
-
iconFont: (
|
|
1586
|
+
iconFont: (M = u.meta) == null ? void 0 : M.iconFont
|
|
1587
1587
|
}, null) || void 0;
|
|
1588
1588
|
return [w, z];
|
|
1589
1589
|
}, y = (u) => {
|
|
1590
|
-
var
|
|
1591
|
-
if (
|
|
1592
|
-
let
|
|
1590
|
+
var p, m, w, z, $, I, M, k, O;
|
|
1591
|
+
if (((p = u == null ? void 0 : u.meta) == null ? void 0 : p.menuType) === "C" ? !1 : Mt(u.children) && !((m = u == null ? void 0 : u.meta) != null && m.hideInMenu) && !((w = u == null ? void 0 : u.meta) != null && w.hideChildrenInMenu)) {
|
|
1592
|
+
let T;
|
|
1593
1593
|
if (e.subMenuItemRender)
|
|
1594
1594
|
return e.subMenuItemRender({
|
|
1595
1595
|
item: u,
|
|
1596
1596
|
children: b(u.children)
|
|
1597
1597
|
});
|
|
1598
|
-
const
|
|
1598
|
+
const X = (z = u.meta) != null && z.icon ? n("span", {
|
|
1599
1599
|
class: "gx-pro-menu-item"
|
|
1600
|
-
}, [f(u.meta)]) : u.meta && f(u.meta),
|
|
1601
|
-
return n(
|
|
1602
|
-
title:
|
|
1600
|
+
}, [f(u.meta)]) : u.meta && f(u.meta), E = (($ = u.meta) == null ? void 0 : $.type) === "group", K = E ? ge.ItemGroup : ge.SubMenu;
|
|
1601
|
+
return n(K, {
|
|
1602
|
+
title: X,
|
|
1603
1603
|
key: u.path,
|
|
1604
|
-
icon:
|
|
1604
|
+
icon: E ? null : n(et, {
|
|
1605
1605
|
className: o,
|
|
1606
|
-
icon: (
|
|
1606
|
+
icon: (I = u.meta) == null ? void 0 : I.icon,
|
|
1607
1607
|
iconfontUrl: e.iconfontUrl,
|
|
1608
|
-
iconFont: (
|
|
1608
|
+
iconFont: (M = u.meta) == null ? void 0 : M.iconFont
|
|
1609
1609
|
}, null)
|
|
1610
|
-
}, mt(
|
|
1611
|
-
default: () => [
|
|
1610
|
+
}, mt(T = b(u.children)) ? T : {
|
|
1611
|
+
default: () => [T]
|
|
1612
1612
|
});
|
|
1613
1613
|
}
|
|
1614
|
-
if ((
|
|
1615
|
-
const [v,
|
|
1614
|
+
if ((k = u == null ? void 0 : u.meta) != null && k.hideInMenu) return null;
|
|
1615
|
+
const [v, c] = d(u);
|
|
1616
1616
|
return e.menuItemRender && e.menuItemRender({
|
|
1617
1617
|
item: u,
|
|
1618
1618
|
title: v,
|
|
1619
|
-
icon:
|
|
1619
|
+
icon: c
|
|
1620
1620
|
}) || n(ge.Item, {
|
|
1621
|
-
disabled: (
|
|
1621
|
+
disabled: (O = u.meta) == null ? void 0 : O.disabled,
|
|
1622
1622
|
key: u.path,
|
|
1623
|
-
icon:
|
|
1623
|
+
icon: c
|
|
1624
1624
|
}, mt(v) ? v : {
|
|
1625
1625
|
default: () => [v]
|
|
1626
1626
|
});
|
|
1627
1627
|
};
|
|
1628
1628
|
function b(u = []) {
|
|
1629
|
-
return u.map((
|
|
1629
|
+
return u.map((x) => y(x)).filter((x) => x);
|
|
1630
1630
|
}
|
|
1631
1631
|
return () => n(ge, te({
|
|
1632
1632
|
key: "Menu",
|
|
@@ -1642,7 +1642,7 @@ const et = (e) => {
|
|
|
1642
1642
|
default: () => [i.value]
|
|
1643
1643
|
});
|
|
1644
1644
|
}
|
|
1645
|
-
}),
|
|
1645
|
+
}), xn = new S("pro-layout-title-hide", {
|
|
1646
1646
|
"0%": { display: "none", opacity: 0 },
|
|
1647
1647
|
"80%": {
|
|
1648
1648
|
overflow: "hidden"
|
|
@@ -1651,9 +1651,9 @@ const et = (e) => {
|
|
|
1651
1651
|
display: "unset",
|
|
1652
1652
|
opacity: 1
|
|
1653
1653
|
}
|
|
1654
|
-
}),
|
|
1654
|
+
}), Bo = (e) => {
|
|
1655
1655
|
var o, i, l, s;
|
|
1656
|
-
const t = ot(e, "sider"), { layout: a } =
|
|
1656
|
+
const t = ot(e, "sider"), { layout: a } = ye(e);
|
|
1657
1657
|
return {
|
|
1658
1658
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1659
1659
|
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
@@ -1673,6 +1673,20 @@ const et = (e) => {
|
|
|
1673
1673
|
minHeight: "100%",
|
|
1674
1674
|
"&-icon": {
|
|
1675
1675
|
verticalAlign: "unset"
|
|
1676
|
+
},
|
|
1677
|
+
"&-container": {
|
|
1678
|
+
"&::-webkit-scrollbar": {
|
|
1679
|
+
width: 6,
|
|
1680
|
+
height: 6
|
|
1681
|
+
},
|
|
1682
|
+
"&::-webkit-scrollbar-thumb": {
|
|
1683
|
+
backgroundColor: "rgba(0, 0, 0, 0.2)",
|
|
1684
|
+
borderRadius: "1em"
|
|
1685
|
+
},
|
|
1686
|
+
"&::-webkit-scrollbar-track": {
|
|
1687
|
+
background: "hsla(0, 0%, 100%, 0.15)",
|
|
1688
|
+
borderRadius: "1em"
|
|
1689
|
+
}
|
|
1676
1690
|
}
|
|
1677
1691
|
},
|
|
1678
1692
|
[`& ${e.antCls}-layout-sider-children`]: {
|
|
@@ -1725,7 +1739,7 @@ const et = (e) => {
|
|
|
1725
1739
|
"&-footer": {
|
|
1726
1740
|
paddingBlockEnd: 16,
|
|
1727
1741
|
fontSize: e.fontSize,
|
|
1728
|
-
animationName:
|
|
1742
|
+
animationName: xn,
|
|
1729
1743
|
animationDuration: ".4s",
|
|
1730
1744
|
animationTimingFunction: "ease"
|
|
1731
1745
|
}
|
|
@@ -1745,7 +1759,7 @@ const et = (e) => {
|
|
|
1745
1759
|
};
|
|
1746
1760
|
}, Lo = (e) => {
|
|
1747
1761
|
var l;
|
|
1748
|
-
const t = `${e.antCls}-menu`, a = `${e.proComponentsCls}-menu-item`, { layout: o } =
|
|
1762
|
+
const t = `${e.antCls}-menu`, a = `${e.proComponentsCls}-menu-item`, { layout: o } = ye(e), i = (l = e == null ? void 0 : e.layout) == null ? void 0 : l.sider;
|
|
1749
1763
|
return {
|
|
1750
1764
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1751
1765
|
[`${e.proComponentsCls}-sider`]: {
|
|
@@ -1768,7 +1782,10 @@ const et = (e) => {
|
|
|
1768
1782
|
lineHeight: i == null ? void 0 : i.menuItemHeight
|
|
1769
1783
|
},
|
|
1770
1784
|
[`${a}-title:not(${a}-title-no-icon)`]: {
|
|
1771
|
-
fontWeight: o === "wide" ? 500 :
|
|
1785
|
+
fontWeight: o === "wide" ? 500 : "normal"
|
|
1786
|
+
},
|
|
1787
|
+
[`${t}-item-selected ${a}-title:not(${a}-title-no-icon)`]: {
|
|
1788
|
+
fontWeight: "normal"
|
|
1772
1789
|
},
|
|
1773
1790
|
[`${t}-item a`]: {
|
|
1774
1791
|
transition: "none"
|
|
@@ -1777,16 +1794,20 @@ const et = (e) => {
|
|
|
1777
1794
|
}
|
|
1778
1795
|
}
|
|
1779
1796
|
};
|
|
1780
|
-
}, Oo = (e) =>
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1797
|
+
}, Oo = (e) => {
|
|
1798
|
+
const { layout: t } = ye(e);
|
|
1799
|
+
return {
|
|
1800
|
+
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1801
|
+
[`${e.antCls}-menu`]: {
|
|
1802
|
+
[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]: {
|
|
1803
|
+
verticalAlign: "unset",
|
|
1804
|
+
lineHeight: 1,
|
|
1805
|
+
fontSize: t === "wide" ? e.fontSizeLG : e.fontSize
|
|
1806
|
+
}
|
|
1786
1807
|
}
|
|
1787
1808
|
}
|
|
1788
|
-
}
|
|
1789
|
-
}
|
|
1809
|
+
};
|
|
1810
|
+
}, Sn = (e, t) => e === !1 ? null : typeof e == "string" ? n("img", {
|
|
1790
1811
|
src: e,
|
|
1791
1812
|
alt: "logo",
|
|
1792
1813
|
style: t
|
|
@@ -1798,7 +1819,7 @@ const et = (e) => {
|
|
|
1798
1819
|
layout: i
|
|
1799
1820
|
} = e, l = e.logoContentRender;
|
|
1800
1821
|
if (l === !1) return null;
|
|
1801
|
-
const s =
|
|
1822
|
+
const s = Sn(t, a), r = o && n("h1", null, [o]);
|
|
1802
1823
|
return typeof l == "function" ? l(s, e.collapsed ? null : r, e) : l || n(J, null, [s || null, e.collapsed && (i === "side" || i === "simple") ? null : r]);
|
|
1803
1824
|
}, kt = /* @__PURE__ */ j({
|
|
1804
1825
|
name: "LogoContent",
|
|
@@ -1836,9 +1857,9 @@ const et = (e) => {
|
|
|
1836
1857
|
}
|
|
1837
1858
|
});
|
|
1838
1859
|
kt.inheritAttrs = !1;
|
|
1839
|
-
const
|
|
1860
|
+
const In = (e) => {
|
|
1840
1861
|
var i;
|
|
1841
|
-
const { theme: t, layout: a } =
|
|
1862
|
+
const { theme: t, layout: a } = ye(e), o = (i = e.layout) == null ? void 0 : i.sider;
|
|
1842
1863
|
return {
|
|
1843
1864
|
[`${e.componentCls}-logo`]: {
|
|
1844
1865
|
position: "relative",
|
|
@@ -1868,7 +1889,7 @@ const Sn = (e) => {
|
|
|
1868
1889
|
marginInlineEnd: 0,
|
|
1869
1890
|
marginInlineStart: 8,
|
|
1870
1891
|
color: t === "dark" ? e.colorWhite : o == null ? void 0 : o.colorTextMenuTitle,
|
|
1871
|
-
animationName:
|
|
1892
|
+
animationName: xn,
|
|
1872
1893
|
animationDuration: ".4s",
|
|
1873
1894
|
animationTimingFunction: "ease",
|
|
1874
1895
|
fontWeight: 600,
|
|
@@ -1956,7 +1977,7 @@ const Po = /* @__PURE__ */ j({
|
|
|
1956
1977
|
hashId: i
|
|
1957
1978
|
} = fe("SiderMenuCollapsedIcon", [ko], a);
|
|
1958
1979
|
return () => o(n("div", {
|
|
1959
|
-
class:
|
|
1980
|
+
class: Y(a, i.value, {
|
|
1960
1981
|
[`${a}-collapsed`]: e.collapsed,
|
|
1961
1982
|
[`${a}-is-mobile`]: e.isMobile
|
|
1962
1983
|
}),
|
|
@@ -1966,15 +1987,15 @@ const Po = /* @__PURE__ */ j({
|
|
|
1966
1987
|
}
|
|
1967
1988
|
}, [n(To, null, null)]));
|
|
1968
1989
|
}
|
|
1969
|
-
}),
|
|
1990
|
+
}), wn = (e, t, a) => e.sort((o, i) => {
|
|
1970
1991
|
var r, h;
|
|
1971
1992
|
const l = ((r = o.meta) == null ? void 0 : r.order) || 0, s = ((h = i.meta) == null ? void 0 : h.order) || 0;
|
|
1972
1993
|
return l - s > 0 ? 1 : -1;
|
|
1973
1994
|
}).map((o, i) => {
|
|
1974
|
-
var l, s;
|
|
1975
|
-
return o.meta = o.meta || {}, o.meta.order = o.meta.order || i + 1, o.key = a != null && a.key ? `${a == null ? void 0 : a.key}-${i}` : `${i}`, a != null &&
|
|
1995
|
+
var l, s, r, h;
|
|
1996
|
+
return o.meta = o.meta || {}, o.meta.order = o.meta.order || i + 1, o.key = a != null && a.key ? `${a == null ? void 0 : a.key}-${i}` : `${i}`, (l = a == null ? void 0 : a.meta) != null && l.hidden && (o.meta.hidden = !0), (s = a == null ? void 0 : a.meta) != null && s.hideChildren && (o.meta.hidden = !0), (r = a == null ? void 0 : a.meta) != null && r.hideInMenu && (o.meta.hideInMenu = !0), (h = a == null ? void 0 : a.meta) != null && h.hideChildrenInMenu && (o.meta.hideInMenu = !0), o.path = o.path.replace("//", "/"), o.children && o.children.length > 0 && (o.children = wn(o.children, t, o)), t[`${o.path}`] = o, o;
|
|
1976
1997
|
});
|
|
1977
|
-
function
|
|
1998
|
+
function Rn(e) {
|
|
1978
1999
|
const { menuSelectKey: t } = (e == null ? void 0 : e.meta) || {};
|
|
1979
2000
|
return t || e.fullPath || e.path;
|
|
1980
2001
|
}
|
|
@@ -1982,22 +2003,23 @@ const No = (e) => {
|
|
|
1982
2003
|
const t = e.find((i) => {
|
|
1983
2004
|
var l;
|
|
1984
2005
|
return i.path === "/" && ((l = i.children) == null ? void 0 : l.length);
|
|
1985
|
-
}), a = {}, o =
|
|
2006
|
+
}), a = {}, o = wn((t == null ? void 0 : t.children) || [], a);
|
|
1986
2007
|
return {
|
|
1987
2008
|
menuData: o,
|
|
1988
2009
|
breadcrumb: a,
|
|
1989
|
-
getLevel: () =>
|
|
2010
|
+
getLevel: () => Bt(o)
|
|
1990
2011
|
};
|
|
1991
2012
|
};
|
|
1992
2013
|
function zo(e) {
|
|
1993
2014
|
const t = /* @__PURE__ */ new Map(), a = [];
|
|
1994
2015
|
function o(l) {
|
|
1995
2016
|
return l.map((s) => {
|
|
2017
|
+
var f, d;
|
|
1996
2018
|
const r = s.path, h = s.name, g = t.has(h) && t.get(h) !== r;
|
|
1997
|
-
if (s.hidden || !h || g)
|
|
1998
|
-
return (!h || g) && (a.some((
|
|
2019
|
+
if ((f = s == null ? void 0 : s.meta) != null && f.hidden || !h || g)
|
|
2020
|
+
return (!h || g) && (a.some((y) => y.name === h && r === s.path) || a.push({ ...s })), null;
|
|
1999
2021
|
if (t.set(h, r), s && (s != null && s.children))
|
|
2000
|
-
if (s.hideChildren)
|
|
2022
|
+
if ((d = s == null ? void 0 : s.meta) != null && d.hideChildren)
|
|
2001
2023
|
s.children = [];
|
|
2002
2024
|
else
|
|
2003
2025
|
return {
|
|
@@ -2011,17 +2033,20 @@ function zo(e) {
|
|
|
2011
2033
|
return a.length > 0 && console.warn("The menu contains duplicate names or name undefined: ", a), i;
|
|
2012
2034
|
}
|
|
2013
2035
|
function Do(e) {
|
|
2014
|
-
return e.map((t) =>
|
|
2036
|
+
return e.map((t) => {
|
|
2037
|
+
var a;
|
|
2038
|
+
return (a = t == null ? void 0 : t.meta) != null && a.hidden ? null : (t.redirect = t.redirect === void 0 ? $n(t.children || []) || void 0 : t.redirect, t.children && delete t.children, t);
|
|
2039
|
+
}).filter((t) => t);
|
|
2015
2040
|
}
|
|
2016
2041
|
function Ao(e, t) {
|
|
2017
2042
|
const a = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`, o = e.find((i) => i.path === a);
|
|
2018
2043
|
return t === void 0 ? [] : (o == null ? void 0 : o.children) || [];
|
|
2019
2044
|
}
|
|
2020
|
-
function
|
|
2045
|
+
function $n(e) {
|
|
2021
2046
|
var l, s;
|
|
2022
2047
|
const t = e == null ? void 0 : e.filter((r) => {
|
|
2023
|
-
var h;
|
|
2024
|
-
return !r.hidden && !((
|
|
2048
|
+
var h, g;
|
|
2049
|
+
return !((h = r == null ? void 0 : r.meta) != null && h.hidden) && !((g = r.meta) != null && g.hideInMenu);
|
|
2025
2050
|
}), a = t[0];
|
|
2026
2051
|
let o = "";
|
|
2027
2052
|
const i = function(r) {
|
|
@@ -2037,7 +2062,7 @@ function Rn(e) {
|
|
|
2037
2062
|
}
|
|
2038
2063
|
return o;
|
|
2039
2064
|
}
|
|
2040
|
-
function
|
|
2065
|
+
function Mn(e, t) {
|
|
2041
2066
|
var a;
|
|
2042
2067
|
for (const o of e) {
|
|
2043
2068
|
if (o.key === t) {
|
|
@@ -2050,23 +2075,23 @@ function $n(e, t) {
|
|
|
2050
2075
|
return i.key;
|
|
2051
2076
|
}
|
|
2052
2077
|
if (o.children) {
|
|
2053
|
-
const i =
|
|
2078
|
+
const i = Mn(o.children, t);
|
|
2054
2079
|
if (i)
|
|
2055
2080
|
return i;
|
|
2056
2081
|
}
|
|
2057
2082
|
}
|
|
2058
2083
|
}
|
|
2059
2084
|
function Ho({ menuData: e, levelMenuData: t }, { path: a, name: o }) {
|
|
2060
|
-
var y, b, u,
|
|
2061
|
-
const i = t.find((
|
|
2062
|
-
let r = ((b = t.find((
|
|
2063
|
-
const h = !r || s, g = l.split("-").slice(0, -1).join("-"), f = t.find((
|
|
2064
|
-
if (r = h ? (u = f == null ? void 0 : f.meta) != null && u.menuSelectKey && ((
|
|
2065
|
-
const
|
|
2085
|
+
var y, b, u, x;
|
|
2086
|
+
const i = t.find((v) => v.name === o), l = (i == null ? void 0 : i.key) || "", s = (y = i == null ? void 0 : i.meta) == null ? void 0 : y.hideInMenu;
|
|
2087
|
+
let r = ((b = t.find((v) => v.path === a)) == null ? void 0 : b.key) || "";
|
|
2088
|
+
const h = !r || s, g = l.split("-").slice(0, -1).join("-"), f = t.find((v) => v.key === g), d = Mn(e, g) || r;
|
|
2089
|
+
if (r = h ? (u = f == null ? void 0 : f.meta) != null && u.menuSelectKey && ((x = t.find((v) => v.path === Rn(f))) == null ? void 0 : x.key) || d : r, r) {
|
|
2090
|
+
const v = [], c = r.split("-");
|
|
2066
2091
|
for (let m = 0; m < c.length; m += 1)
|
|
2067
|
-
|
|
2068
|
-
const
|
|
2069
|
-
return t.filter((m) =>
|
|
2092
|
+
v.push(Se(c).splice(0, m + 1).join("-"));
|
|
2093
|
+
const p = l === r || s ? [] : t.filter((m) => l === m.key);
|
|
2094
|
+
return t.filter((m) => v.some((w) => w === (m == null ? void 0 : m.key) || "")).concat(p);
|
|
2070
2095
|
}
|
|
2071
2096
|
return [];
|
|
2072
2097
|
}
|
|
@@ -2124,12 +2149,12 @@ function Vo(e, t) {
|
|
|
2124
2149
|
const a = /* @__PURE__ */ new Set();
|
|
2125
2150
|
return e.filter((o) => a.has(o[t]) ? !1 : (a.add(o[t]), !0));
|
|
2126
2151
|
}
|
|
2127
|
-
function
|
|
2152
|
+
function Ut(e) {
|
|
2128
2153
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
2129
2154
|
}
|
|
2130
2155
|
const {
|
|
2131
2156
|
Sider: Go
|
|
2132
|
-
} = We,
|
|
2157
|
+
} = We, Ln = (e) => e ? n(Na, null, null) : n(za, null, null), _t = /* @__PURE__ */ j({
|
|
2133
2158
|
props: ce,
|
|
2134
2159
|
inheritAttrs: !1,
|
|
2135
2160
|
setup(e) {
|
|
@@ -2149,10 +2174,10 @@ const {
|
|
|
2149
2174
|
isMobile: y,
|
|
2150
2175
|
menuLoading: b,
|
|
2151
2176
|
breakpoint: u,
|
|
2152
|
-
fixSiderbar:
|
|
2153
|
-
fixedHeader:
|
|
2177
|
+
fixSiderbar: x,
|
|
2178
|
+
fixedHeader: v,
|
|
2154
2179
|
collapsed: c,
|
|
2155
|
-
siderWidth:
|
|
2180
|
+
siderWidth: p,
|
|
2156
2181
|
collapsedWidth: m,
|
|
2157
2182
|
menuContentRender: w,
|
|
2158
2183
|
menuFooterRender: z,
|
|
@@ -2160,50 +2185,50 @@ const {
|
|
|
2160
2185
|
} = tt(e), I = t({
|
|
2161
2186
|
suffixCls: "sider",
|
|
2162
2187
|
isPor: !0
|
|
2163
|
-
}),
|
|
2164
|
-
wrapSSR:
|
|
2165
|
-
hashId:
|
|
2166
|
-
} = fe("ProLayoutSiderMenu", [Oo, Lo,
|
|
2188
|
+
}), M = R(() => e.layout === "wide"), k = R(() => e.layout === "mix" && !e.isMobile && e.splitMenus), O = R(() => d.value === "side" || d.value === "simple"), T = R(() => e.isMobile || M.value ? !1 : x.value), X = R(() => (e.layout === "mix" || M.value) && "light" || s.value.theme), {
|
|
2189
|
+
wrapSSR: E,
|
|
2190
|
+
hashId: K
|
|
2191
|
+
} = fe("ProLayoutSiderMenu", [Oo, Lo, Bo, In, (H) => {
|
|
2167
2192
|
var Ie, we;
|
|
2168
|
-
const
|
|
2193
|
+
const q = (Ie = H == null ? void 0 : H.layout) == null ? void 0 : Ie.sider, V = it("sider", H, (we = H.layout) == null ? void 0 : we.key), {
|
|
2169
2194
|
dark: xe
|
|
2170
|
-
} =
|
|
2195
|
+
} = ye(H), Ne = ot(H, "sider");
|
|
2171
2196
|
return {
|
|
2172
2197
|
[`${H.proComponentsCls}-basic-layout`]: {
|
|
2173
2198
|
[H.componentCls]: {
|
|
2174
|
-
background: (
|
|
2199
|
+
background: (q == null ? void 0 : q.colorBgMenu) || (V == null ? void 0 : V.colorBgMenu),
|
|
2175
2200
|
boxShadow: Ne || xe ? "#0d0d0da6 0 2px 8px" : "2px 0 8px 0 rgba(29,35,41,.05)",
|
|
2176
2201
|
[`${H.componentCls}-footer`]: {
|
|
2177
|
-
color:
|
|
2202
|
+
color: q == null ? void 0 : q.colorTextMenu
|
|
2178
2203
|
}
|
|
2179
2204
|
}
|
|
2180
2205
|
}
|
|
2181
2206
|
};
|
|
2182
|
-
}], I), he = R(() => d.value === "top" ? [] : i.value), de = R(() => e.collapsed ? m.value :
|
|
2207
|
+
}], I), he = R(() => d.value === "top" ? [] : i.value), de = R(() => e.collapsed ? m.value : p.value), L = R(() => Y([K.value, I, y.value ? "shadow" : null, `${I}-${f.value}`, T.value ? `${I}-fixed` : null])), F = R(() => $.value !== !1 ? $.value || Ln : !1), P = yt(() => e.layout === "simple" || !e.appLogoListRender ? null : n(pn, null, {
|
|
2183
2208
|
default: () => {
|
|
2184
2209
|
var H;
|
|
2185
2210
|
return [typeof e.appLogoListRender == "function" ? (H = e.appLogoListRender) == null ? void 0 : H.call(e) : e.appLogoListRender];
|
|
2186
2211
|
}
|
|
2187
2212
|
}), [() => e.appLogoListRender]);
|
|
2188
|
-
function
|
|
2213
|
+
function W() {
|
|
2189
2214
|
var H;
|
|
2190
2215
|
e.onCollapse && ((H = e.onCollapse) == null || H.call(e, !c.value));
|
|
2191
2216
|
}
|
|
2192
2217
|
const ee = yt(() => {
|
|
2193
|
-
var
|
|
2218
|
+
var q;
|
|
2194
2219
|
if ($.value === !1) return null;
|
|
2195
2220
|
const H = n(Po, {
|
|
2196
2221
|
isMobile: y.value,
|
|
2197
2222
|
collapsed: c.value,
|
|
2198
|
-
onClick: () =>
|
|
2223
|
+
onClick: () => W()
|
|
2199
2224
|
}, null);
|
|
2200
|
-
return $.value ? (
|
|
2201
|
-
}, [() => e.collapsedButtonRender, () => e.isMobile, () => e.collapsed]),
|
|
2202
|
-
var
|
|
2225
|
+
return $.value ? (q = $.value) == null ? void 0 : q.call($, c.value, H) : H;
|
|
2226
|
+
}, [() => e.collapsedButtonRender, () => e.isMobile, () => e.collapsed]), be = (H) => {
|
|
2227
|
+
var q;
|
|
2203
2228
|
if (e.onSelect) {
|
|
2204
2229
|
const V = H.selectedKeys;
|
|
2205
2230
|
if (se(k)) {
|
|
2206
|
-
e.onSelect([(
|
|
2231
|
+
e.onSelect([(q = a == null ? void 0 : a.value) == null ? void 0 : q[0], ...V]);
|
|
2207
2232
|
return;
|
|
2208
2233
|
}
|
|
2209
2234
|
e.onSelect(V);
|
|
@@ -2212,14 +2237,14 @@ const {
|
|
|
2212
2237
|
return () => {
|
|
2213
2238
|
var we;
|
|
2214
2239
|
let H;
|
|
2215
|
-
const
|
|
2216
|
-
hashId:
|
|
2240
|
+
const q = O.value && n(kt, te({
|
|
2241
|
+
hashId: K.value,
|
|
2217
2242
|
baseClassName: I
|
|
2218
2243
|
}, oe(e, Object.keys(rt))), {
|
|
2219
2244
|
default: () => [P.value]
|
|
2220
|
-
}), V = e.menuHeaderRender && ((we = e.menuHeaderRender) == null ? void 0 : we.call(e, e)), xe = e.menuLinksRender, Ne = e.siderActionsRender, Ie = n(
|
|
2221
|
-
class: `${I}-menu ${
|
|
2222
|
-
theme:
|
|
2245
|
+
}), V = e.menuHeaderRender && ((we = e.menuHeaderRender) == null ? void 0 : we.call(e, e)), xe = e.menuLinksRender, Ne = e.siderActionsRender, Ie = n(Cn, {
|
|
2246
|
+
class: `${I}-menu ${K.value}`,
|
|
2247
|
+
theme: X.value,
|
|
2223
2248
|
mode: "inline",
|
|
2224
2249
|
menuData: k.value ? o.value : he.value,
|
|
2225
2250
|
iconfontUrl: e.iconfontUrl,
|
|
@@ -2231,13 +2256,13 @@ const {
|
|
|
2231
2256
|
style: {
|
|
2232
2257
|
width: "100%"
|
|
2233
2258
|
},
|
|
2234
|
-
onOpenKeys: (
|
|
2235
|
-
var
|
|
2236
|
-
return e.onOpenKeys && ((
|
|
2259
|
+
onOpenKeys: (C) => {
|
|
2260
|
+
var B;
|
|
2261
|
+
return e.onOpenKeys && ((B = e.onOpenKeys) == null ? void 0 : B.call(e, C));
|
|
2237
2262
|
},
|
|
2238
|
-
onSelect:
|
|
2263
|
+
onSelect: be
|
|
2239
2264
|
}, null);
|
|
2240
|
-
return k.value && se(o.value).length === 0 && e.suppressSiderWhenMenuEmpty || he.value.length === 0 && e.suppressSiderWhenMenuEmpty ? null :
|
|
2265
|
+
return k.value && se(o.value).length === 0 && e.suppressSiderWhenMenuEmpty || he.value.length === 0 && e.suppressSiderWhenMenuEmpty ? null : E(n(Rt, {
|
|
2241
2266
|
theme: {
|
|
2242
2267
|
components: {
|
|
2243
2268
|
Menu: Bn({
|
|
@@ -2269,69 +2294,70 @@ const {
|
|
|
2269
2294
|
class: L.value,
|
|
2270
2295
|
style: {
|
|
2271
2296
|
zIndex: T.value ? 101 : void 0,
|
|
2272
|
-
paddingTop: T.value &&
|
|
2297
|
+
paddingTop: T.value && v.value && d.value === "mix" ? `${e.headerHeight}px` : 0,
|
|
2273
2298
|
top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
|
|
2274
2299
|
height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
|
|
2275
2300
|
},
|
|
2276
|
-
theme:
|
|
2301
|
+
theme: X.value,
|
|
2277
2302
|
breakpoint: u.value || void 0,
|
|
2278
2303
|
collapsed: c.value,
|
|
2279
|
-
width:
|
|
2304
|
+
width: p.value,
|
|
2280
2305
|
collapsedWidth: m.value
|
|
2281
2306
|
}, {
|
|
2282
2307
|
default: () => {
|
|
2283
|
-
var
|
|
2308
|
+
var C, B, N, G;
|
|
2284
2309
|
return [b.value && n("div", {
|
|
2285
|
-
class: ["gx-pro-sider-loading",
|
|
2310
|
+
class: ["gx-pro-sider-loading", K.value]
|
|
2286
2311
|
}, [n(It, {
|
|
2287
2312
|
spinning: b.value,
|
|
2288
|
-
indicator: (
|
|
2289
|
-
}, null)]),
|
|
2290
|
-
class:
|
|
2313
|
+
indicator: (C = h == null ? void 0 : h.indicator) == null ? void 0 : C.value
|
|
2314
|
+
}, null)]), q || null, Fe(e.menuHeaderRender) && n("div", {
|
|
2315
|
+
class: Y([K.value, `${I}-extra`, !q && `${I}-extra-no-logo`])
|
|
2291
2316
|
}, [V]), n("div", {
|
|
2292
2317
|
style: {
|
|
2293
2318
|
flex: "1 1 0%",
|
|
2294
2319
|
overflow: "hidden auto"
|
|
2295
|
-
}
|
|
2296
|
-
|
|
2297
|
-
|
|
2320
|
+
},
|
|
2321
|
+
class: Y(`${I}-menu-container`)
|
|
2322
|
+
}, [w.value && ((B = w.value) == null ? void 0 : B.call(w, e, Ie)) || Ie]), e.layout !== "wide" && n(J, null, [Fe(xe) && Mt(xe) && xe.length > 0 && n("div", {
|
|
2323
|
+
class: `${I}-links ${K.value}`
|
|
2298
2324
|
}, [n(ge, {
|
|
2299
|
-
theme:
|
|
2325
|
+
theme: X.value,
|
|
2300
2326
|
inlineIndent: 16,
|
|
2301
|
-
class: `${I}-link-menu ${
|
|
2327
|
+
class: `${I}-link-menu ${K.value}`,
|
|
2302
2328
|
selectedKeys: [],
|
|
2303
2329
|
openKeys: [],
|
|
2304
2330
|
mode: "inline"
|
|
2305
|
-
},
|
|
2306
|
-
class: `${I}-link ${
|
|
2331
|
+
}, Ut(H = (xe || []).map((D, A) => n(ge.Item, {
|
|
2332
|
+
class: `${I}-link ${K.value}`,
|
|
2307
2333
|
key: A
|
|
2308
|
-
},
|
|
2334
|
+
}, Ut(D) ? D : {
|
|
2309
2335
|
default: () => [D]
|
|
2310
2336
|
}))) ? H : {
|
|
2311
2337
|
default: () => [H]
|
|
2312
2338
|
})]), y.value ? null : n("div", {
|
|
2313
|
-
class:
|
|
2339
|
+
class: Y(`${I}-actions`, K.value)
|
|
2314
2340
|
}, [Ne || n(J, null, [n("div", {
|
|
2315
|
-
class:
|
|
2316
|
-
onClick: () =>
|
|
2341
|
+
class: Y(`${I}-actions-item`, K.value),
|
|
2342
|
+
onClick: () => W()
|
|
2317
2343
|
}, [F.value && ((N = F.value) == null ? void 0 : N.call(F, c.value))])])])]), z.value && n("div", {
|
|
2318
|
-
class: `${I}-footer ${
|
|
2344
|
+
class: `${I}-footer ${K.value}`
|
|
2319
2345
|
}, [(G = z.value) == null ? void 0 : G.call(z, e)]), r.value || d.value === "wide" ? null : ee.value];
|
|
2320
2346
|
}
|
|
2321
2347
|
})]
|
|
2322
2348
|
}));
|
|
2323
2349
|
};
|
|
2324
2350
|
}
|
|
2325
|
-
}),
|
|
2351
|
+
}), On = {
|
|
2326
2352
|
...ce,
|
|
2327
|
-
...
|
|
2353
|
+
...fn
|
|
2328
2354
|
}, Yo = ["mix", "top", "wide"], qo = (e, t) => e === !1 ? null : e ? e(t, null) : t, Qo = /* @__PURE__ */ j({
|
|
2329
|
-
props:
|
|
2355
|
+
props: On,
|
|
2330
2356
|
setup(e) {
|
|
2331
2357
|
return () => e.rightContentRender && typeof e.rightContentRender == "function" ? e.rightContentRender(e) : n(J, null, null);
|
|
2332
2358
|
}
|
|
2333
2359
|
}), Zo = /* @__PURE__ */ j({
|
|
2334
|
-
props:
|
|
2360
|
+
props: On,
|
|
2335
2361
|
inheritAttrs: !1,
|
|
2336
2362
|
setup(e, {
|
|
2337
2363
|
emit: t
|
|
@@ -2349,23 +2375,23 @@ const {
|
|
|
2349
2375
|
}), {
|
|
2350
2376
|
wrapSSR: g,
|
|
2351
2377
|
hashId: f
|
|
2352
|
-
} = fe("ProGlobalHeader", [xo,
|
|
2378
|
+
} = fe("ProGlobalHeader", [xo, In], h), d = R(() => ({
|
|
2353
2379
|
[`${f.value}`]: !0,
|
|
2354
2380
|
[`${h}`]: !0,
|
|
2355
2381
|
[`${h}-${e.layout}`]: !0
|
|
2356
|
-
})), y = (
|
|
2382
|
+
})), y = (v, c, p) => {
|
|
2357
2383
|
var $;
|
|
2358
2384
|
const m = a.currentRoute.value, w = m.matched.concat(), z = e.layout === "mix";
|
|
2359
|
-
if (e.onSelect &&
|
|
2360
|
-
const I = ($ = e.menuData.find((
|
|
2361
|
-
e.onSelect(z && I ? w.filter((
|
|
2385
|
+
if (e.onSelect && v === "select") {
|
|
2386
|
+
const I = ($ = e.menuData.find((M) => M.path === p)) == null ? void 0 : $.redirect;
|
|
2387
|
+
e.onSelect(z && I ? w.filter((M) => M.name !== "index").map((M) => M.path) : c);
|
|
2362
2388
|
}
|
|
2363
|
-
e.onOpenKeys &&
|
|
2389
|
+
e.onOpenKeys && v === "openKeys" && e.onOpenKeys(z ? w.filter((I) => I.path !== m.path).map((I) => I.path) : c);
|
|
2364
2390
|
}, b = () => {
|
|
2365
2391
|
t("collapse", !e.collapsed);
|
|
2366
|
-
}, u = R(() => e.collapsedButtonRender ||
|
|
2392
|
+
}, u = R(() => e.collapsedButtonRender || Ln), x = () => {
|
|
2367
2393
|
var c;
|
|
2368
|
-
const
|
|
2394
|
+
const v = e.headerContentRender || e.headerContentRender === !1 ? n("div", {
|
|
2369
2395
|
style: {
|
|
2370
2396
|
flex: 1
|
|
2371
2397
|
}
|
|
@@ -2396,7 +2422,7 @@ const {
|
|
|
2396
2422
|
}
|
|
2397
2423
|
}
|
|
2398
2424
|
}, {
|
|
2399
|
-
default: () => [n(
|
|
2425
|
+
default: () => [n(Cn, {
|
|
2400
2426
|
theme: e.theme,
|
|
2401
2427
|
mode: e.mode,
|
|
2402
2428
|
collapsed: e.collapsed,
|
|
@@ -2410,37 +2436,37 @@ const {
|
|
|
2410
2436
|
"top-nav-menu": e.mode === "horizontal",
|
|
2411
2437
|
[`${f.value}`]: !0
|
|
2412
2438
|
},
|
|
2413
|
-
onSelect: (
|
|
2414
|
-
onOpenKeys: (
|
|
2439
|
+
onSelect: (p) => y("select", p.selectedKeys, p.key),
|
|
2440
|
+
onOpenKeys: (p) => y("openKeys", p)
|
|
2415
2441
|
}, null)]
|
|
2416
2442
|
})]);
|
|
2417
|
-
return n(J, null, [
|
|
2443
|
+
return n(J, null, [v, e.layout !== "simple" && n(Qo, te(e, {
|
|
2418
2444
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
2419
2445
|
rightContentRender: e.rightContentRender
|
|
2420
2446
|
}), null)]);
|
|
2421
2447
|
};
|
|
2422
2448
|
return () => {
|
|
2423
|
-
const
|
|
2449
|
+
const v = n("span", {
|
|
2424
2450
|
key: "logo",
|
|
2425
2451
|
onClick: () => {
|
|
2426
2452
|
var c;
|
|
2427
2453
|
return (c = e.onLogoClick) == null ? void 0 : c.call(e);
|
|
2428
2454
|
},
|
|
2429
2455
|
class: [`${h}-logo`, e.isMobile && "mobile", f.value]
|
|
2430
|
-
}, [n("a", null, [
|
|
2456
|
+
}, [n("a", null, [Sn(e.logo, e.logoStyle)])]);
|
|
2431
2457
|
return g(n("div", {
|
|
2432
2458
|
class: d.value
|
|
2433
|
-
}, [e.isMobile ? n(J, null, [qo(e.logoContentRender,
|
|
2459
|
+
}, [e.isMobile ? n(J, null, [qo(e.logoContentRender, v), e.isMobile && se(u) && n("span", {
|
|
2434
2460
|
class: `${h}-collapsed-button ${f.value}`,
|
|
2435
2461
|
onClick: b
|
|
2436
|
-
}, [se(u)(e.collapsed)]),
|
|
2462
|
+
}, [se(u)(e.collapsed)]), x()]) : Yo.includes(e.layout) ? n("div", {
|
|
2437
2463
|
class: `${h}-main ${f.value}`,
|
|
2438
2464
|
style: {
|
|
2439
2465
|
width: Ae(e.headerMainWidth)
|
|
2440
2466
|
}
|
|
2441
2467
|
}, [n("div", {
|
|
2442
2468
|
class: `${h}-main-left ${f.value}`
|
|
2443
|
-
}, [e.layout !== "wide" && e.appLogoListRender && n(
|
|
2469
|
+
}, [e.layout !== "wide" && e.appLogoListRender && n(pn, null, {
|
|
2444
2470
|
default: () => {
|
|
2445
2471
|
var c;
|
|
2446
2472
|
return [typeof e.appLogoListRender == "function" ? (c = e.appLogoListRender) == null ? void 0 : c.call(e) : e.appLogoListRender];
|
|
@@ -2448,7 +2474,7 @@ const {
|
|
|
2448
2474
|
}), n(kt, te({
|
|
2449
2475
|
hashId: f.value,
|
|
2450
2476
|
baseClassName: h
|
|
2451
|
-
}, e), null)]),
|
|
2477
|
+
}, e), null)]), x()]) : x()]));
|
|
2452
2478
|
};
|
|
2453
2479
|
}
|
|
2454
2480
|
});
|
|
@@ -2456,10 +2482,10 @@ function Jo(e) {
|
|
|
2456
2482
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
2457
2483
|
}
|
|
2458
2484
|
const {
|
|
2459
|
-
Header:
|
|
2460
|
-
} = We,
|
|
2485
|
+
Header: Xt
|
|
2486
|
+
} = We, Vt = /* @__PURE__ */ j({
|
|
2461
2487
|
inheritAttrs: !1,
|
|
2462
|
-
props:
|
|
2488
|
+
props: hn,
|
|
2463
2489
|
setup(e) {
|
|
2464
2490
|
const {
|
|
2465
2491
|
isMobile: t,
|
|
@@ -2481,20 +2507,20 @@ const {
|
|
|
2481
2507
|
}), b = r({
|
|
2482
2508
|
suffixCls: "fixed-header",
|
|
2483
2509
|
isPor: !0
|
|
2484
|
-
}), u = R(() => o.value === "wide"),
|
|
2485
|
-
wrapSSR:
|
|
2510
|
+
}), u = R(() => o.value === "wide"), x = R(() => a.value), v = R(() => o.value === "side" || o.value === "simple"), c = R(() => v.value && "light" || f.value.theme), {
|
|
2511
|
+
wrapSSR: p,
|
|
2486
2512
|
hashId: m
|
|
2487
2513
|
} = Pe("ProLayoutHeader", (O) => {
|
|
2488
|
-
var
|
|
2489
|
-
const T = (
|
|
2514
|
+
var K, he;
|
|
2515
|
+
const T = (K = O.layout) == null ? void 0 : K.header, X = it("header", O, (he = O.layout) == null ? void 0 : he.key), E = ot(O, "header");
|
|
2490
2516
|
return {
|
|
2491
2517
|
[`${O.proComponentsCls}-basic-layout`]: {
|
|
2492
2518
|
[`${O.antCls}-layout-header${O.componentCls}${O.componentCls}-${se(f.value.key)}`]: {
|
|
2493
|
-
color:
|
|
2494
|
-
backgroundColor: (T == null ? void 0 : T.colorBgMenu) || (
|
|
2519
|
+
color: E ? O.colorWhite : O.colorText,
|
|
2520
|
+
backgroundColor: (T == null ? void 0 : T.colorBgMenu) || (X == null ? void 0 : X.colorBgMenu),
|
|
2495
2521
|
boxShadow: s.value ? "#0d0d0da6 0 2px 8px" : "",
|
|
2496
2522
|
[`${O.proComponentsCls}-global-header-collapsed-button`]: {
|
|
2497
|
-
color:
|
|
2523
|
+
color: E ? O.colorWhite : void 0
|
|
2498
2524
|
}
|
|
2499
2525
|
},
|
|
2500
2526
|
[`${O.antCls}-layout-header${O.componentCls}`]: {
|
|
@@ -2539,8 +2565,8 @@ const {
|
|
|
2539
2565
|
[`${m.value}`]: !0,
|
|
2540
2566
|
[`${y}`]: !0,
|
|
2541
2567
|
[`${y}-${f.value.key}`]: !0,
|
|
2542
|
-
[`${b}`]:
|
|
2543
|
-
})), z = R(() =>
|
|
2568
|
+
[`${b}`]: x.value
|
|
2569
|
+
})), z = R(() => x.value && !t.value), $ = R(() => l.value && o.value === "mix" ? Do(Se(h.value)) : o.value === "top" ? h.value : []), I = R(() => v.value && z.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), M = R(() => x.value ? 0 : void 0), k = () => {
|
|
2544
2570
|
const O = n(Zo, te(e, {
|
|
2545
2571
|
mode: "horizontal",
|
|
2546
2572
|
theme: c.value,
|
|
@@ -2552,21 +2578,21 @@ const {
|
|
|
2552
2578
|
};
|
|
2553
2579
|
return () => {
|
|
2554
2580
|
let O;
|
|
2555
|
-
return
|
|
2581
|
+
return p(n(J, null, [x.value && !u.value && n(Xt, {
|
|
2556
2582
|
style: {
|
|
2557
2583
|
height: `${d.value}px`,
|
|
2558
2584
|
lineHeight: `${d.value}px`,
|
|
2559
2585
|
background: "transparent",
|
|
2560
2586
|
marginTop: g.value ? `-${d.value}px` : void 0
|
|
2561
2587
|
}
|
|
2562
|
-
}, null), n(
|
|
2588
|
+
}, null), n(Xt, {
|
|
2563
2589
|
class: w.value,
|
|
2564
2590
|
style: {
|
|
2565
2591
|
height: `${d.value}px`,
|
|
2566
2592
|
lineHeight: `${d.value}px`,
|
|
2567
2593
|
width: I.value,
|
|
2568
|
-
zIndex:
|
|
2569
|
-
right:
|
|
2594
|
+
zIndex: v.value ? 100 : 101,
|
|
2595
|
+
right: M.value,
|
|
2570
2596
|
marginTop: g.value ? `-${d.value}px` : void 0
|
|
2571
2597
|
}
|
|
2572
2598
|
}, Jo(O = k()) ? O : {
|
|
@@ -2574,7 +2600,7 @@ const {
|
|
|
2574
2600
|
})]));
|
|
2575
2601
|
};
|
|
2576
2602
|
}
|
|
2577
|
-
}),
|
|
2603
|
+
}), Gt = /* @__PURE__ */ j({
|
|
2578
2604
|
name: "SiderMenuWrapper",
|
|
2579
2605
|
inheritAttrs: !1,
|
|
2580
2606
|
props: {
|
|
@@ -2604,10 +2630,10 @@ const {
|
|
|
2604
2630
|
flexDirection: "row"
|
|
2605
2631
|
}
|
|
2606
2632
|
}, {
|
|
2607
|
-
default: () => [n(
|
|
2633
|
+
default: () => [n(_t, te(e, {
|
|
2608
2634
|
collapsed: e.isMobile ? !1 : e.collapsed
|
|
2609
2635
|
}), null)]
|
|
2610
|
-
}) : n(
|
|
2636
|
+
}) : n(_t, e, null)]);
|
|
2611
2637
|
}
|
|
2612
2638
|
});
|
|
2613
2639
|
function Pt(e, { change: t }) {
|
|
@@ -2626,7 +2652,7 @@ function Pt(e, { change: t }) {
|
|
|
2626
2652
|
function Xe(e) {
|
|
2627
2653
|
return ae(e) || e === "system";
|
|
2628
2654
|
}
|
|
2629
|
-
function
|
|
2655
|
+
function Fn({ event: e, isDark: t, value: a, toggle: o }) {
|
|
2630
2656
|
if (!// @ts-expect-error
|
|
2631
2657
|
(document.startViewTransition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches) || !e || e && !e.clientX) {
|
|
2632
2658
|
o == null || o(ae(a) || a === "system" ? a : !(t != null && t.value));
|
|
@@ -2708,9 +2734,9 @@ const ti = /* @__PURE__ */ j({
|
|
|
2708
2734
|
name: "BaseProLayout",
|
|
2709
2735
|
inheritAttrs: !1,
|
|
2710
2736
|
components: {
|
|
2711
|
-
GlobalHeader:
|
|
2712
|
-
GlobalFooter:
|
|
2713
|
-
SiderMenuWrapper:
|
|
2737
|
+
GlobalHeader: Vt,
|
|
2738
|
+
GlobalFooter: Wt,
|
|
2739
|
+
SiderMenuWrapper: Gt
|
|
2714
2740
|
},
|
|
2715
2741
|
props: {
|
|
2716
2742
|
...He,
|
|
@@ -2730,33 +2756,33 @@ const ti = /* @__PURE__ */ j({
|
|
|
2730
2756
|
const {
|
|
2731
2757
|
wrapSSR: o,
|
|
2732
2758
|
hashId: i
|
|
2733
|
-
} = fe("ProLayout", [oo, io], a), l =
|
|
2759
|
+
} = fe("ProLayout", [oo, io], a), l = on(), {
|
|
2734
2760
|
token: s,
|
|
2735
2761
|
dark: r
|
|
2736
|
-
} = Oe(), h = me(bt().uuid(10)), g = me(!1), f = me(!1), d = me(!1), y =
|
|
2762
|
+
} = Oe(), h = me(bt().uuid(10)), g = me(!1), f = me(!1), d = me(!1), y = pe({
|
|
2737
2763
|
position: "relative"
|
|
2738
2764
|
}), b = R(() => {
|
|
2739
|
-
var
|
|
2740
|
-
return (
|
|
2765
|
+
var M;
|
|
2766
|
+
return (M = s == null ? void 0 : s.value) == null ? void 0 : M.colorPrimary;
|
|
2741
2767
|
});
|
|
2742
|
-
|
|
2743
|
-
const
|
|
2744
|
-
|
|
2768
|
+
Wn(() => {
|
|
2769
|
+
const M = document.querySelector("html");
|
|
2770
|
+
M && (b.value && M.style.setProperty("--gx-primary-color", b.value), M.setAttribute("data-theme", r.value ? "dark" : "light"));
|
|
2745
2771
|
});
|
|
2746
|
-
const u = R(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1),
|
|
2747
|
-
var
|
|
2748
|
-
return e.levelMenuData && ((
|
|
2749
|
-
}),
|
|
2750
|
-
key:
|
|
2772
|
+
const u = R(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), x = R(() => {
|
|
2773
|
+
var M;
|
|
2774
|
+
return e.levelMenuData && ((M = e.levelMenuData) != null && M.length) ? e.levelMenuData : Bt(e.menuData);
|
|
2775
|
+
}), v = R(() => e.layout === "wide"), c = R(() => ({
|
|
2776
|
+
key: ln(r.value, e.theme),
|
|
2751
2777
|
theme: r.value ? "dark" : e.theme
|
|
2752
|
-
})),
|
|
2778
|
+
})), p = R(() => (l.value === "sm" || l.value === "xs") && !e.disableMobile && !v.value), m = R(() => ({
|
|
2753
2779
|
...e.breadcrumb || {},
|
|
2754
2780
|
itemRender: re(t, e, "pageContainerProps:breadcrumbRender")
|
|
2755
2781
|
})), w = R(() => u.value && e.selectedKeys ? Ao(e.menuData, e.selectedKeys[0]) : []), z = R(() => Ue(e.headerHeight) ? e.headerHeight : Z.headerHeight), $ = yt(() => d.value ? 0 : Ue(e.siderWidth) ? e.siderWidth : e.layout === "mix" ? 215 : e.layout === "wide" ? 208 : 256, [() => e.layout, () => e.siderWidth, () => d.value]);
|
|
2756
|
-
ne([() => e.layout, () => e.theme], ([
|
|
2757
|
-
(
|
|
2758
|
-
}), ne(() =>
|
|
2759
|
-
if (
|
|
2782
|
+
ne([() => e.layout, () => e.theme], ([M]) => {
|
|
2783
|
+
(M === "wide" || M === "simple") && (d.value = !1), h.value = bt().uuid(10);
|
|
2784
|
+
}), ne(() => v.value, (M) => {
|
|
2785
|
+
if (M) {
|
|
2760
2786
|
const k = document.querySelector('meta[name="viewport"]');
|
|
2761
2787
|
k && (k.content = "");
|
|
2762
2788
|
}
|
|
@@ -2768,7 +2794,7 @@ const ti = /* @__PURE__ */ j({
|
|
|
2768
2794
|
immediate: !0,
|
|
2769
2795
|
deep: !0
|
|
2770
2796
|
});
|
|
2771
|
-
const I = (
|
|
2797
|
+
const I = (M, k) => M.headerRender === !1 || M.pure ? null : n(Vt, te($e(M, "headerHeight"), {
|
|
2772
2798
|
headerHeight: z.value,
|
|
2773
2799
|
matchMenuKeys: k || []
|
|
2774
2800
|
}), null);
|
|
@@ -2779,64 +2805,64 @@ const ti = /* @__PURE__ */ j({
|
|
|
2779
2805
|
lockOpen: g,
|
|
2780
2806
|
settingsOpen: f,
|
|
2781
2807
|
contentFullScreen: d,
|
|
2782
|
-
hasContentWide:
|
|
2783
|
-
isMobile:
|
|
2808
|
+
hasContentWide: v,
|
|
2809
|
+
isMobile: p,
|
|
2784
2810
|
siderWidth: $,
|
|
2785
2811
|
headerHeight: z,
|
|
2786
2812
|
breadcrumb: m,
|
|
2787
2813
|
flatMenuData: w,
|
|
2788
2814
|
hasSide: u,
|
|
2789
|
-
levelMenuData:
|
|
2815
|
+
levelMenuData: x,
|
|
2790
2816
|
onDarkChange: e.onDarkChange,
|
|
2791
|
-
pageHeaderRender: R(() =>
|
|
2817
|
+
pageHeaderRender: R(() => Be(t, e, "pageContainerProps:pageHeaderRender"))
|
|
2792
2818
|
}), () => {
|
|
2793
|
-
var
|
|
2794
|
-
const
|
|
2819
|
+
var q;
|
|
2820
|
+
const M = da(vn, t, e, {
|
|
2795
2821
|
render: !0
|
|
2796
|
-
}), k = re(t, e, "collapsedButtonRender"), O = re(t, e, "footerRender"), T = re(t, e, "headerRender"),
|
|
2822
|
+
}), k = re(t, e, "collapsedButtonRender"), O = re(t, e, "footerRender"), T = re(t, e, "headerRender"), X = re(t, e, "headerContentRender"), E = re(t, e, "rightContentRender"), K = re(t, e, "tabsRouteItemRender"), he = re(t, e, "menuItemRender"), de = re(t, e, "menuHeaderRender"), L = re(t, e, "logoContentRender"), F = re(t, e, "menuFooterRender"), P = re(t, e, "subMenuItemRender"), W = re(t, e, "menuContentRender"), ee = I({
|
|
2797
2823
|
...e,
|
|
2798
|
-
...oe(
|
|
2824
|
+
...oe(M, bn),
|
|
2799
2825
|
menuItemRender: he,
|
|
2800
2826
|
subMenuItemRender: P,
|
|
2801
2827
|
hasSiderMenu: u.value,
|
|
2802
|
-
isMobile:
|
|
2803
|
-
rightContentRender:
|
|
2828
|
+
isMobile: p.value,
|
|
2829
|
+
rightContentRender: E,
|
|
2804
2830
|
logoContentRender: L,
|
|
2805
|
-
headerContentRender:
|
|
2831
|
+
headerContentRender: X,
|
|
2806
2832
|
headerRender: T
|
|
2807
|
-
}, e.matchMenuKeys),
|
|
2833
|
+
}, e.matchMenuKeys), be = v.value ? {
|
|
2808
2834
|
minHeight: "835px",
|
|
2809
2835
|
marginInlineStart: $.value === 0 ? 0 : void 0
|
|
2810
|
-
} : {}, H = O === !1 ? null : O ? typeof O == "function" ? O(e) : O : n(
|
|
2811
|
-
copyright:
|
|
2836
|
+
} : {}, H = O === !1 ? null : O ? typeof O == "function" ? O(e) : O : n(Wt, {
|
|
2837
|
+
copyright: M.copyrightRender,
|
|
2812
2838
|
links: e.footerLinks
|
|
2813
2839
|
}, null);
|
|
2814
|
-
return o(n(J, null, [e.pure ? (
|
|
2815
|
-
class:
|
|
2840
|
+
return o(n(J, null, [e.pure ? (q = t.default) == null ? void 0 : q.call(t) : n("div", {
|
|
2841
|
+
class: Y({
|
|
2816
2842
|
[`${i.value}`]: !0,
|
|
2817
2843
|
[`${a}`]: !0,
|
|
2818
2844
|
[`${a}-${e.layout}`]: !0
|
|
2819
2845
|
}),
|
|
2820
|
-
style:
|
|
2846
|
+
style: v.value ? {
|
|
2821
2847
|
minWidth: Ae(e.wideWidth),
|
|
2822
2848
|
...e.style
|
|
2823
2849
|
} : e.style
|
|
2824
2850
|
}, [n(We, {
|
|
2825
|
-
style:
|
|
2851
|
+
style: v.value ? {
|
|
2826
2852
|
width: Ae(e.wideWidth),
|
|
2827
2853
|
paddingTop: `${z.value + 20}px`,
|
|
2828
|
-
margin:
|
|
2854
|
+
margin: v.value ? "0 auto" : void 0
|
|
2829
2855
|
} : void 0
|
|
2830
2856
|
}, {
|
|
2831
|
-
default: () => [$.value > 0 && n(
|
|
2857
|
+
default: () => [$.value > 0 && n(Gt, te(e, {
|
|
2832
2858
|
siderWidth: $.value,
|
|
2833
|
-
isMobile:
|
|
2859
|
+
isMobile: p.value,
|
|
2834
2860
|
menuHeaderRender: de,
|
|
2835
2861
|
logoContentRender: L,
|
|
2836
2862
|
menuFooterRender: F,
|
|
2837
|
-
menuContentRender:
|
|
2863
|
+
menuContentRender: W,
|
|
2838
2864
|
collapsedButtonRender: k
|
|
2839
|
-
}, oe(
|
|
2865
|
+
}, oe(M, yn)), null), n(We, {
|
|
2840
2866
|
style: y
|
|
2841
2867
|
}, {
|
|
2842
2868
|
default: () => [e.layout !== "simple" && z.value > 0 && ee, n(Ft, te(oe(e, ro), {
|
|
@@ -2845,9 +2871,9 @@ const ti = /* @__PURE__ */ j({
|
|
|
2845
2871
|
siderWidth: $.value,
|
|
2846
2872
|
style: {
|
|
2847
2873
|
...e.contentStyle,
|
|
2848
|
-
...
|
|
2874
|
+
...be
|
|
2849
2875
|
},
|
|
2850
|
-
itemRender:
|
|
2876
|
+
itemRender: K
|
|
2851
2877
|
}), {
|
|
2852
2878
|
default: () => {
|
|
2853
2879
|
var V;
|
|
@@ -2855,7 +2881,7 @@ const ti = /* @__PURE__ */ j({
|
|
|
2855
2881
|
}
|
|
2856
2882
|
}), e.layout !== "wide" && H]
|
|
2857
2883
|
})]
|
|
2858
|
-
}),
|
|
2884
|
+
}), M.pageLockRender, e.layout === "wide" && H])]));
|
|
2859
2885
|
};
|
|
2860
2886
|
}
|
|
2861
2887
|
}), ts = /* @__PURE__ */ j({
|
|
@@ -2884,15 +2910,15 @@ const ti = /* @__PURE__ */ j({
|
|
|
2884
2910
|
}), r = R(() => {
|
|
2885
2911
|
var b, u;
|
|
2886
2912
|
let y = e.token || {};
|
|
2887
|
-
return (u = (b = y.layout) == null ? void 0 : b.header) != null && u.heightLayoutHeader || (y =
|
|
2913
|
+
return (u = (b = y.layout) == null ? void 0 : b.header) != null && u.heightLayoutHeader || (y = ve(y, {
|
|
2888
2914
|
layout: {
|
|
2889
2915
|
header: {
|
|
2890
2916
|
heightLayoutHeader: e.headerHeight
|
|
2891
2917
|
}
|
|
2892
2918
|
}
|
|
2893
|
-
})),
|
|
2919
|
+
})), ve(y, {
|
|
2894
2920
|
layout: {
|
|
2895
|
-
key: `${
|
|
2921
|
+
key: `${ln(i.value, e.theme)}:${e.layout}`
|
|
2896
2922
|
}
|
|
2897
2923
|
});
|
|
2898
2924
|
}), h = (y) => {
|
|
@@ -2934,7 +2960,7 @@ const ti = /* @__PURE__ */ j({
|
|
|
2934
2960
|
default: () => []
|
|
2935
2961
|
},
|
|
2936
2962
|
historyKey: String
|
|
2937
|
-
},
|
|
2963
|
+
}, kn = () => ({
|
|
2938
2964
|
...Ot,
|
|
2939
2965
|
...Nt,
|
|
2940
2966
|
actions: {
|
|
@@ -2982,10 +3008,10 @@ const ti = /* @__PURE__ */ j({
|
|
|
2982
3008
|
onLockOpenChange: Function,
|
|
2983
3009
|
onSettingsOpenChange: Function,
|
|
2984
3010
|
"onUpdate:settingsOpen": Function
|
|
2985
|
-
}), ni =
|
|
3011
|
+
}), ni = kn(), Tn = {
|
|
2986
3012
|
hashId: String,
|
|
2987
3013
|
className: String
|
|
2988
|
-
},
|
|
3014
|
+
}, Pn = {
|
|
2989
3015
|
open: {
|
|
2990
3016
|
type: Boolean,
|
|
2991
3017
|
default: void 0
|
|
@@ -2995,7 +3021,7 @@ const ti = /* @__PURE__ */ j({
|
|
|
2995
3021
|
cryptoFn: Function,
|
|
2996
3022
|
...oe(ni, ["name", "avatar"])
|
|
2997
3023
|
}, ai = {
|
|
2998
|
-
...
|
|
3024
|
+
...Pn,
|
|
2999
3025
|
shortsKey: {
|
|
3000
3026
|
type: Object,
|
|
3001
3027
|
default: () => ({
|
|
@@ -3113,9 +3139,9 @@ const ti = /* @__PURE__ */ j({
|
|
|
3113
3139
|
}
|
|
3114
3140
|
});
|
|
3115
3141
|
function li(e) {
|
|
3116
|
-
const t =
|
|
3142
|
+
const t = pe({
|
|
3117
3143
|
password: ""
|
|
3118
|
-
}), { validate: a, resetFields: o, validateInfos: i } = va(t,
|
|
3144
|
+
}), { validate: a, resetFields: o, validateInfos: i } = va(t, pe({
|
|
3119
3145
|
password: [
|
|
3120
3146
|
{
|
|
3121
3147
|
validator: (l, s) => (e && s ? e == null ? void 0 : e(s) : s) ? Promise.resolve() : Promise.reject(e && s ? "密码错误" : "请输入锁屏密码")
|
|
@@ -3124,9 +3150,9 @@ function li(e) {
|
|
|
3124
3150
|
}));
|
|
3125
3151
|
return { formState: t, validate: a, resetFields: o, validateInfos: i };
|
|
3126
3152
|
}
|
|
3127
|
-
const
|
|
3153
|
+
const Nn = /* @__PURE__ */ j({
|
|
3128
3154
|
props: {
|
|
3129
|
-
...
|
|
3155
|
+
...Tn,
|
|
3130
3156
|
name: String,
|
|
3131
3157
|
avatar: String,
|
|
3132
3158
|
avatarSize: {
|
|
@@ -3150,7 +3176,7 @@ const Pn = /* @__PURE__ */ j({
|
|
|
3150
3176
|
Object.assign(o, f);
|
|
3151
3177
|
}, h = (f = "", d) => {
|
|
3152
3178
|
const y = f ? `${e.className}-${f}` : e.className;
|
|
3153
|
-
return
|
|
3179
|
+
return Y(y, e.hashId, "");
|
|
3154
3180
|
}, g = () => {
|
|
3155
3181
|
i().then(() => {
|
|
3156
3182
|
var f;
|
|
@@ -3169,15 +3195,15 @@ const Pn = /* @__PURE__ */ j({
|
|
|
3169
3195
|
class: h("user-form")
|
|
3170
3196
|
}, [n("div", {
|
|
3171
3197
|
class: h("user-info")
|
|
3172
|
-
}, [n(
|
|
3198
|
+
}, [n(en, {
|
|
3173
3199
|
size: e.avatarSize,
|
|
3174
|
-
icon: n(
|
|
3200
|
+
icon: n(cn, null, null),
|
|
3175
3201
|
src: e.avatar
|
|
3176
3202
|
}, null), e.name && n("div", {
|
|
3177
3203
|
class: h("user-name")
|
|
3178
|
-
}, [e.name])]), n(
|
|
3179
|
-
default: () => [n(
|
|
3180
|
-
default: () => [n(
|
|
3204
|
+
}, [e.name])]), n(Dt, null, {
|
|
3205
|
+
default: () => [n(Dt.Item, l.password, {
|
|
3206
|
+
default: () => [n(tn.Password, {
|
|
3181
3207
|
value: o.password,
|
|
3182
3208
|
placeholder: "请输入锁屏密码",
|
|
3183
3209
|
onChange: (d) => o.password = d.target.value
|
|
@@ -3198,7 +3224,7 @@ const Pn = /* @__PURE__ */ j({
|
|
|
3198
3224
|
});
|
|
3199
3225
|
Re.locale("zh-cn");
|
|
3200
3226
|
function ri() {
|
|
3201
|
-
const e =
|
|
3227
|
+
const e = pe({
|
|
3202
3228
|
hh: "",
|
|
3203
3229
|
mm: "",
|
|
3204
3230
|
ss: "",
|
|
@@ -3214,23 +3240,23 @@ function ri() {
|
|
|
3214
3240
|
const si = /* @__PURE__ */ j({
|
|
3215
3241
|
name: "PageLock",
|
|
3216
3242
|
props: {
|
|
3217
|
-
...kn,
|
|
3218
3243
|
...Tn,
|
|
3244
|
+
...Pn,
|
|
3219
3245
|
password: String
|
|
3220
3246
|
},
|
|
3221
3247
|
setup(e) {
|
|
3222
3248
|
const [t, a] = De(!1, {
|
|
3223
3249
|
value: R(() => ae(e.open) ? e.open : !1),
|
|
3224
3250
|
onChange: e.onOpenChange
|
|
3225
|
-
}), [o, i] =
|
|
3251
|
+
}), [o, i] = Ce(!1), l = ri(), s = (r = "", h) => {
|
|
3226
3252
|
const g = r ? `${e.className}-popup-${r}` : `${e.className}-popup`;
|
|
3227
|
-
return
|
|
3253
|
+
return Y(g, e.hashId, h || "");
|
|
3228
3254
|
};
|
|
3229
3255
|
return () => t.value ? n("div", {
|
|
3230
3256
|
class: s()
|
|
3231
3257
|
}, [o.value ? n("div", {
|
|
3232
3258
|
class: s("form")
|
|
3233
|
-
}, [n(
|
|
3259
|
+
}, [n(Nn, {
|
|
3234
3260
|
avatarSize: 70,
|
|
3235
3261
|
submitText: "进入系统",
|
|
3236
3262
|
avatar: e.avatar,
|
|
@@ -3250,7 +3276,7 @@ const si = /* @__PURE__ */ j({
|
|
|
3250
3276
|
block: !0,
|
|
3251
3277
|
onClick: () => i(!1)
|
|
3252
3278
|
}, {
|
|
3253
|
-
default: () => [
|
|
3279
|
+
default: () => [_("返回")]
|
|
3254
3280
|
})]
|
|
3255
3281
|
}), n("div", {
|
|
3256
3282
|
class: s("form-time")
|
|
@@ -3258,22 +3284,22 @@ const si = /* @__PURE__ */ j({
|
|
|
3258
3284
|
style: {
|
|
3259
3285
|
fontSize: "26px"
|
|
3260
3286
|
}
|
|
3261
|
-
}, [`${l.hh}:${l.mm}`,
|
|
3287
|
+
}, [`${l.hh}:${l.mm}`, _(" "), l.a]), n("span", {
|
|
3262
3288
|
style: {
|
|
3263
3289
|
fontSize: "30px"
|
|
3264
3290
|
}
|
|
3265
|
-
}, [l.day,
|
|
3291
|
+
}, [l.day, _(" "), l.dddd])])]) : n(J, null, [n("div", {
|
|
3266
3292
|
class: s("head")
|
|
3267
|
-
}, [n("span", null, [l.day,
|
|
3293
|
+
}, [n("span", null, [l.day, _(" "), l.dddd]), n("span", {
|
|
3268
3294
|
class: s("lock-icon"),
|
|
3269
3295
|
onClick: () => i(!0)
|
|
3270
|
-
}, [n(
|
|
3296
|
+
}, [n(un, {
|
|
3271
3297
|
style: {
|
|
3272
3298
|
position: "relative",
|
|
3273
3299
|
top: "1px",
|
|
3274
3300
|
marginInlineEnd: "4px"
|
|
3275
3301
|
}
|
|
3276
|
-
}, null),
|
|
3302
|
+
}, null), _("点击解锁")])]), n("div", {
|
|
3277
3303
|
class: s("time", s("enter", "fadeIn"))
|
|
3278
3304
|
}, [n("div", {
|
|
3279
3305
|
class: s("time-card")
|
|
@@ -3306,26 +3332,26 @@ const si = /* @__PURE__ */ j({
|
|
|
3306
3332
|
var w, z;
|
|
3307
3333
|
(w = e.onOpenChange) == null || w.call(e, m), (z = e["onUpdate:open"]) == null || z.call(e, m), a && (a.lockOpen.value = m);
|
|
3308
3334
|
}
|
|
3309
|
-
}), [g, f] =
|
|
3335
|
+
}), [g, f] = Ce(!1), d = me();
|
|
3310
3336
|
function y(m) {
|
|
3311
3337
|
return e.cryptoFn ? e.cryptoFn(m) : m;
|
|
3312
3338
|
}
|
|
3313
3339
|
function b(m) {
|
|
3314
3340
|
l.value.open = g.value, l.value.password = y(m);
|
|
3315
3341
|
}
|
|
3316
|
-
const u = R(() => e.shortsKey),
|
|
3317
|
-
gt(
|
|
3342
|
+
const u = R(() => e.shortsKey), x = R(() => l.value.open && !!l.value.password), v = an();
|
|
3343
|
+
gt(v["Alt+KeyL"], () => {
|
|
3318
3344
|
var m;
|
|
3319
3345
|
(m = u.value) != null && m.disabeld || h.value || r(!0);
|
|
3320
3346
|
}), ne(g, (m) => {
|
|
3321
3347
|
var w, z;
|
|
3322
3348
|
b(m && (((z = (w = d.value) == null ? void 0 : w.formState) == null ? void 0 : z.password) || l.value.password) || "");
|
|
3323
3349
|
}), St(() => {
|
|
3324
|
-
|
|
3350
|
+
x.value ? f(!0) : b("");
|
|
3325
3351
|
});
|
|
3326
3352
|
const c = () => {
|
|
3327
3353
|
r(!1), f(!0);
|
|
3328
|
-
},
|
|
3354
|
+
}, p = () => {
|
|
3329
3355
|
var m;
|
|
3330
3356
|
r(!1), b(""), (m = d.value) == null || m.resetFields();
|
|
3331
3357
|
};
|
|
@@ -3342,9 +3368,9 @@ const si = /* @__PURE__ */ j({
|
|
|
3342
3368
|
title: "锁定屏幕",
|
|
3343
3369
|
open: h.value,
|
|
3344
3370
|
footer: !1,
|
|
3345
|
-
onCancel:
|
|
3371
|
+
onCancel: p
|
|
3346
3372
|
}, {
|
|
3347
|
-
default: () => [n(
|
|
3373
|
+
default: () => [n(Nn, te({
|
|
3348
3374
|
ref: d
|
|
3349
3375
|
}, oe(e, ["name", "avatar"]), {
|
|
3350
3376
|
submitText: "锁定",
|
|
@@ -3355,7 +3381,7 @@ const si = /* @__PURE__ */ j({
|
|
|
3355
3381
|
})]));
|
|
3356
3382
|
}
|
|
3357
3383
|
}), ci = (e) => {
|
|
3358
|
-
const { dark: t } =
|
|
3384
|
+
const { dark: t } = ye(e);
|
|
3359
3385
|
return {
|
|
3360
3386
|
[e.componentCls]: {
|
|
3361
3387
|
display: "flex",
|
|
@@ -3464,12 +3490,12 @@ function mi(e) {
|
|
|
3464
3490
|
const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\", "]", "^", "{", "|", "}"]), hi = ({
|
|
3465
3491
|
className: e,
|
|
3466
3492
|
value: t
|
|
3467
|
-
}) => t ? n(
|
|
3468
|
-
image:
|
|
3493
|
+
}) => t ? n(At, {
|
|
3494
|
+
image: At.PRESENTED_IMAGE_SIMPLE,
|
|
3469
3495
|
description: `未找到搜索结果 "${t}"`
|
|
3470
3496
|
}, null) : n("div", {
|
|
3471
3497
|
class: e
|
|
3472
|
-
}, [
|
|
3498
|
+
}, [_("没有搜索历史")]), gi = /* @__PURE__ */ j({
|
|
3473
3499
|
props: {
|
|
3474
3500
|
...Nt,
|
|
3475
3501
|
className: String,
|
|
@@ -3487,20 +3513,20 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3487
3513
|
i.value = [];
|
|
3488
3514
|
return;
|
|
3489
3515
|
}
|
|
3490
|
-
const
|
|
3516
|
+
const p = d(c), m = [];
|
|
3491
3517
|
e.dataSource.forEach((w) => {
|
|
3492
|
-
var $, I,
|
|
3518
|
+
var $, I, M;
|
|
3493
3519
|
if (($ = w.meta) != null && $.hideInMenu) return;
|
|
3494
3520
|
const z = ((I = w.meta) == null ? void 0 : I.title) || w.name || "";
|
|
3495
|
-
if (
|
|
3521
|
+
if (p.test(z.toLowerCase())) {
|
|
3496
3522
|
let k = [];
|
|
3497
|
-
const O = ((
|
|
3523
|
+
const O = ((M = w == null ? void 0 : w.key) == null ? void 0 : M.split("-")) || [];
|
|
3498
3524
|
for (let T = 0; T < O.length; T++)
|
|
3499
3525
|
k.push(O.slice(0, T + 1).join("-"));
|
|
3500
3526
|
k = k.map((T) => {
|
|
3501
|
-
var
|
|
3502
|
-
return ((
|
|
3503
|
-
}), m.push(
|
|
3527
|
+
var X, E;
|
|
3528
|
+
return ((E = (X = e.dataSource.find((K) => (K == null ? void 0 : K.key) === T)) == null ? void 0 : X.meta) == null ? void 0 : E.title) || "";
|
|
3529
|
+
}), m.push(ve(w, {
|
|
3504
3530
|
meta: {
|
|
3505
3531
|
title: k.join("**")
|
|
3506
3532
|
}
|
|
@@ -3524,10 +3550,10 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3524
3550
|
async function g() {
|
|
3525
3551
|
if (i.value.length === 0)
|
|
3526
3552
|
return;
|
|
3527
|
-
const c = i.value,
|
|
3528
|
-
if (c.length === 0 ||
|
|
3553
|
+
const c = i.value, p = o.value;
|
|
3554
|
+
if (c.length === 0 || p < 0)
|
|
3529
3555
|
return;
|
|
3530
|
-
const m = c[
|
|
3556
|
+
const m = c[p];
|
|
3531
3557
|
m && (a.value.push(m), r(), await xt(), mi(m.path) ? window.open(m.path, "_blank") : t.push({
|
|
3532
3558
|
path: m.path,
|
|
3533
3559
|
replace: !0
|
|
@@ -3537,8 +3563,8 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3537
3563
|
return fi.has(c) ? `\\${c}` : c;
|
|
3538
3564
|
}
|
|
3539
3565
|
function d(c) {
|
|
3540
|
-
const
|
|
3541
|
-
return new RegExp(`.*${
|
|
3566
|
+
const p = [...c].map((m) => f(m)).join(".*");
|
|
3567
|
+
return new RegExp(`.*${p}.*`);
|
|
3542
3568
|
}
|
|
3543
3569
|
function y() {
|
|
3544
3570
|
i.value.length !== 0 && (o.value--, o.value < 0 && (o.value = i.value.length - 1), h());
|
|
@@ -3552,35 +3578,35 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3552
3578
|
function u(c) {
|
|
3553
3579
|
o.value = c;
|
|
3554
3580
|
}
|
|
3555
|
-
function
|
|
3556
|
-
c.stopPropagation(), e.keyword ? i.value.splice(
|
|
3581
|
+
function x(c, p) {
|
|
3582
|
+
c.stopPropagation(), e.keyword ? i.value.splice(p, 1) : a.value.splice(p, 1), o.value = o.value - 1 >= 0 ? o.value - 1 : 0, h();
|
|
3557
3583
|
}
|
|
3558
|
-
const
|
|
3584
|
+
const v = (c) => Y(`${e.className}${c ? `-${c}` : ""}`, e.hashId);
|
|
3559
3585
|
return () => n(J, null, [i.value.length > 0 ? n(J, null, [a.value.length > 0 && !e.keyword && n("div", {
|
|
3560
|
-
class:
|
|
3561
|
-
}, [
|
|
3562
|
-
class:
|
|
3563
|
-
}, [di(i.value, "path").map((c,
|
|
3586
|
+
class: v("panel-title")
|
|
3587
|
+
}, [_("搜索历史")]), n("div", {
|
|
3588
|
+
class: v("panel-list")
|
|
3589
|
+
}, [di(i.value, "path").map((c, p) => {
|
|
3564
3590
|
var m, w, z, $;
|
|
3565
3591
|
return n("div", {
|
|
3566
3592
|
key: c.name,
|
|
3567
|
-
class:
|
|
3568
|
-
"data-search-item":
|
|
3593
|
+
class: v(Y("panel-item", p === o.value && "active")),
|
|
3594
|
+
"data-search-item": p,
|
|
3569
3595
|
onClick: () => g(),
|
|
3570
|
-
onMouseenter: () => u(
|
|
3596
|
+
onMouseenter: () => u(p)
|
|
3571
3597
|
}, [n("div", {
|
|
3572
|
-
class:
|
|
3598
|
+
class: v("panel-item-left")
|
|
3573
3599
|
}, [n(et, te(c.meta || {}, {
|
|
3574
3600
|
icon: ((m = c.meta) == null ? void 0 : m.icon) || n(Da, null, null),
|
|
3575
|
-
classNames:
|
|
3576
|
-
}), null), ($ = (z = (w = c.meta) == null ? void 0 : w.title) == null ? void 0 : z.split("**")) == null ? void 0 : $.map((I,
|
|
3601
|
+
classNames: v("panel-icon")
|
|
3602
|
+
}), null), ($ = (z = (w = c.meta) == null ? void 0 : w.title) == null ? void 0 : z.split("**")) == null ? void 0 : $.map((I, M) => {
|
|
3577
3603
|
var k, O, T;
|
|
3578
|
-
return n(J, null, [I,
|
|
3604
|
+
return n(J, null, [I, M < ((T = (O = (k = c.meta) == null ? void 0 : k.title) == null ? void 0 : O.split("**")) == null ? void 0 : T.length) - 1 && n(Aa, null, null)]);
|
|
3579
3605
|
}), n("span", null, null)]), n(lt, {
|
|
3580
|
-
onClick: (I) =>
|
|
3606
|
+
onClick: (I) => x(I, p)
|
|
3581
3607
|
}, null)]);
|
|
3582
3608
|
})])]) : n(hi, {
|
|
3583
|
-
className:
|
|
3609
|
+
className: v("result"),
|
|
3584
3610
|
value: e.keyword
|
|
3585
3611
|
}, null)]);
|
|
3586
3612
|
}
|
|
@@ -3588,14 +3614,14 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3588
3614
|
className: e,
|
|
3589
3615
|
hashId: t
|
|
3590
3616
|
}) => n("div", {
|
|
3591
|
-
class:
|
|
3617
|
+
class: Y(`${e}-footer`, t)
|
|
3592
3618
|
}, [n("div", {
|
|
3593
|
-
class:
|
|
3594
|
-
}, [n(Ha, null, null),
|
|
3595
|
-
class:
|
|
3596
|
-
}, [n(
|
|
3619
|
+
class: Y(`${e}-footer-icon`, t)
|
|
3620
|
+
}, [n(Ha, null, null), _("选择")]), n("div", {
|
|
3621
|
+
class: Y(`${e}-footer-icon`, t)
|
|
3622
|
+
}, [n(Et, null, null), n(Et, {
|
|
3597
3623
|
rotate: 180
|
|
3598
|
-
}, null),
|
|
3624
|
+
}, null), _("导航")])]), bi = /* @__PURE__ */ j({
|
|
3599
3625
|
name: "SearchPageInput",
|
|
3600
3626
|
props: {
|
|
3601
3627
|
...Nt,
|
|
@@ -3615,9 +3641,9 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3615
3641
|
}), {
|
|
3616
3642
|
wrapSSR: a,
|
|
3617
3643
|
hashId: o
|
|
3618
|
-
} = ui(t), [i, l] =
|
|
3644
|
+
} = ui(t), [i, l] = Ce(""), [s, r] = Ce(!1), h = le(), g = an(), f = ma() ? g["ctrl+k"] : g["cmd+k"], d = me(), y = R(() => {
|
|
3619
3645
|
var u;
|
|
3620
|
-
return
|
|
3646
|
+
return Bt(e.dataSource || ((u = h == null ? void 0 : h.menuData) == null ? void 0 : u.value));
|
|
3621
3647
|
});
|
|
3622
3648
|
gt(f, () => {
|
|
3623
3649
|
e.disabeldShortKey || r(!0);
|
|
@@ -3634,23 +3660,23 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3634
3660
|
const u = {
|
|
3635
3661
|
className: `${t}`,
|
|
3636
3662
|
hashId: o.value
|
|
3637
|
-
},
|
|
3663
|
+
}, x = `${t}-modal`;
|
|
3638
3664
|
return a(n(J, null, [n("div", {
|
|
3639
|
-
class:
|
|
3665
|
+
class: Y(t, o.value),
|
|
3640
3666
|
onClick: () => r(!0)
|
|
3641
|
-
}, [n(
|
|
3642
|
-
class:
|
|
3643
|
-
}, [
|
|
3644
|
-
class:
|
|
3645
|
-
}, [
|
|
3646
|
-
class:
|
|
3667
|
+
}, [n(jt, null, null), n("span", {
|
|
3668
|
+
class: Y(`${t}-word`, o.value)
|
|
3669
|
+
}, [_("搜索")]), n("span", {
|
|
3670
|
+
class: Y(`${t}-word-icon`, o.value)
|
|
3671
|
+
}, [_("⌘ "), n("kbd", null, [_("K")])])]), n(Ga, {
|
|
3672
|
+
class: Y(`${x}`, o.value),
|
|
3647
3673
|
width: 600,
|
|
3648
3674
|
scrollProps: {
|
|
3649
3675
|
maxHeight: 400,
|
|
3650
3676
|
minHeight: 200
|
|
3651
3677
|
},
|
|
3652
3678
|
centered: !1,
|
|
3653
|
-
title: n(
|
|
3679
|
+
title: n(tn, {
|
|
3654
3680
|
style: {
|
|
3655
3681
|
width: `${600 * 0.8}px`,
|
|
3656
3682
|
padding: 0
|
|
@@ -3660,12 +3686,12 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3660
3686
|
size: "large",
|
|
3661
3687
|
placeholder: "搜索导航菜单",
|
|
3662
3688
|
value: i.value,
|
|
3663
|
-
prefix: n(
|
|
3664
|
-
onChange: (
|
|
3689
|
+
prefix: n(jt, null, null),
|
|
3690
|
+
onChange: (v) => l(v.target.value)
|
|
3665
3691
|
}, null),
|
|
3666
3692
|
open: s.value,
|
|
3667
3693
|
footer: n(yi, {
|
|
3668
|
-
className:
|
|
3694
|
+
className: x,
|
|
3669
3695
|
hashId: o.value
|
|
3670
3696
|
}, null),
|
|
3671
3697
|
onCancel: () => b()
|
|
@@ -3679,7 +3705,7 @@ const fi = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3679
3705
|
};
|
|
3680
3706
|
}
|
|
3681
3707
|
}), vi = (e) => {
|
|
3682
|
-
const { dark: t } =
|
|
3708
|
+
const { dark: t } = ye(e), a = ot(e, "header");
|
|
3683
3709
|
return {
|
|
3684
3710
|
[`${e.componentCls}`]: {
|
|
3685
3711
|
"&-header-actions": {
|
|
@@ -3752,7 +3778,7 @@ function pi(e) {
|
|
|
3752
3778
|
}
|
|
3753
3779
|
const as = /* @__PURE__ */ j({
|
|
3754
3780
|
name: "GlobalRightContent",
|
|
3755
|
-
props:
|
|
3781
|
+
props: kn(),
|
|
3756
3782
|
inheritAttrs: !1,
|
|
3757
3783
|
emits: ["logout", "darkChange", "settingsOpenChange", "update:dark", "update:settingsOpen", "lockOpenChange"],
|
|
3758
3784
|
setup(e, {
|
|
@@ -3761,51 +3787,51 @@ const as = /* @__PURE__ */ j({
|
|
|
3761
3787
|
const {
|
|
3762
3788
|
isFullscreen: a,
|
|
3763
3789
|
toggle: o
|
|
3764
|
-
} = aa(), i = Oe(), l = le(), s =
|
|
3790
|
+
} = aa(), i = Oe(), l = le(), s = on(), r = ie({
|
|
3765
3791
|
suffixCls: "global-header",
|
|
3766
3792
|
isPor: !0
|
|
3767
|
-
}), [h, g] =
|
|
3793
|
+
}), [h, g] = Ce(!1), {
|
|
3768
3794
|
wrapSSR: f,
|
|
3769
3795
|
hashId: d
|
|
3770
|
-
} = pi(r), [y, b] =
|
|
3796
|
+
} = pi(r), [y, b] = Ce("auto"), {
|
|
3771
3797
|
isDark: u,
|
|
3772
|
-
toggleMode:
|
|
3798
|
+
toggleMode: x
|
|
3773
3799
|
} = Pt(R(() => {
|
|
3774
3800
|
var I;
|
|
3775
3801
|
return Xe(e.dark) ? e.dark : (I = l == null ? void 0 : l.dark) == null ? void 0 : I.value;
|
|
3776
3802
|
}), {
|
|
3777
3803
|
change: (I) => {
|
|
3778
|
-
var
|
|
3779
|
-
(
|
|
3804
|
+
var M, k, O;
|
|
3805
|
+
(M = e.onDarkChange) == null || M.call(e, I), (k = e == null ? void 0 : e["onUpdate:dark"]) == null || k.call(e, I), (O = l == null ? void 0 : l.onDarkChange) == null || O.call(l, I);
|
|
3780
3806
|
}
|
|
3781
|
-
}), [
|
|
3807
|
+
}), [v, c] = De(!1, {
|
|
3782
3808
|
value: R(() => {
|
|
3783
3809
|
var I;
|
|
3784
3810
|
return ae(e.settingsOpen) ? e.settingsOpen : (I = l == null ? void 0 : l.settingsOpen) == null ? void 0 : I.value;
|
|
3785
3811
|
}),
|
|
3786
3812
|
onChange: (I) => {
|
|
3787
|
-
var
|
|
3788
|
-
(
|
|
3813
|
+
var M, k;
|
|
3814
|
+
(M = e.onSettingsOpenChange) == null || M.call(e, I), (k = e == null ? void 0 : e["onUpdate:settingsOpen"]) == null || k.call(e, I), l && !ae(e.settingsOpen) && (l.settingsOpen.value = I);
|
|
3789
3815
|
}
|
|
3790
|
-
}),
|
|
3791
|
-
var I,
|
|
3792
|
-
return ae((I = l == null ? void 0 : l.isMobile) == null ? void 0 : I.value) ? (
|
|
3816
|
+
}), p = R(() => {
|
|
3817
|
+
var I, M;
|
|
3818
|
+
return ae((I = l == null ? void 0 : l.isMobile) == null ? void 0 : I.value) ? (M = l == null ? void 0 : l.isMobile) == null ? void 0 : M.value : s.value === "sm" || s.value === "xs";
|
|
3793
3819
|
}), m = R(() => {
|
|
3794
3820
|
var I;
|
|
3795
3821
|
return Xe(e.dark) ? u.value : (I = i == null ? void 0 : i.dark) == null ? void 0 : I.value;
|
|
3796
3822
|
}), w = oa(async (I) => {
|
|
3797
3823
|
b(I);
|
|
3798
3824
|
}, 160), z = (I) => {
|
|
3799
|
-
|
|
3825
|
+
Fn({
|
|
3800
3826
|
event: I,
|
|
3801
3827
|
isDark: m,
|
|
3802
|
-
toggle:
|
|
3828
|
+
toggle: x
|
|
3803
3829
|
});
|
|
3804
3830
|
}, $ = () => {
|
|
3805
3831
|
e != null && e.onLogout && (g(!0), e.onLogout(() => g(!1)));
|
|
3806
3832
|
};
|
|
3807
3833
|
return () => {
|
|
3808
|
-
const I =
|
|
3834
|
+
const I = Be(t, e, "dropdownMenuRender"), M = Be(t, e, "dropdownRender"), k = Be(t, e, "dropdownMenuExtraItemRender"), O = re(t, e, "actionsRender"), T = a.value ? ja : Ea;
|
|
3809
3835
|
return f(n("div", {
|
|
3810
3836
|
class: `${r}-right-content ${d.value}`.trim(),
|
|
3811
3837
|
style: {
|
|
@@ -3819,58 +3845,58 @@ const as = /* @__PURE__ */ j({
|
|
|
3819
3845
|
}, [n(qa, {
|
|
3820
3846
|
key: "resize-observer",
|
|
3821
3847
|
onResize: ({
|
|
3822
|
-
width:
|
|
3848
|
+
width: X
|
|
3823
3849
|
}) => {
|
|
3824
|
-
w(
|
|
3850
|
+
w(X);
|
|
3825
3851
|
}
|
|
3826
3852
|
}, {
|
|
3827
3853
|
default: () => {
|
|
3828
|
-
var
|
|
3854
|
+
var X;
|
|
3829
3855
|
return [n("div", {
|
|
3830
3856
|
class: `${r}-header-actions ${d.value}`.trim()
|
|
3831
|
-
}, [e.actions.search && !
|
|
3857
|
+
}, [e.actions.search && !p.value && n(bi, {
|
|
3832
3858
|
dataSource: e.dataSource,
|
|
3833
|
-
disabeldShortKey: (
|
|
3859
|
+
disabeldShortKey: (X = e.shortsKey) == null ? void 0 : X.disabeld
|
|
3834
3860
|
}, null), e.actions.theme && n("div", {
|
|
3835
3861
|
class: `${r}-header-actions-item ${d.value}`.trim()
|
|
3836
3862
|
}, [n(_e, {
|
|
3837
3863
|
class: `${r}-header-actions-icon ${d.value}`.trim(),
|
|
3838
3864
|
name: m.value ? "liangse" : "anhei",
|
|
3839
|
-
onClick: (
|
|
3840
|
-
}, null)]), e.actions.settings && !
|
|
3865
|
+
onClick: (E) => z(E)
|
|
3866
|
+
}, null)]), e.actions.settings && !p.value && n("div", {
|
|
3841
3867
|
class: `${r}-header-actions-item ${d.value}`.trim()
|
|
3842
|
-
}, [n(
|
|
3843
|
-
onClick: () => c(!
|
|
3844
|
-
}, null)]), e.actions.fullScreen && !
|
|
3868
|
+
}, [n(dn, {
|
|
3869
|
+
onClick: () => c(!v.value)
|
|
3870
|
+
}, null)]), e.actions.fullScreen && !p.value && n("div", {
|
|
3845
3871
|
class: `${r}-header-actions-item ${d.value}`.trim()
|
|
3846
3872
|
}, [n(T, {
|
|
3847
3873
|
onClick: () => o()
|
|
3848
3874
|
}, null)]), O ? O == null ? void 0 : O([`${r}-header-actions-item`, d.value]) : null, n(ht, {
|
|
3849
3875
|
overlay: I || n(ge, null, {
|
|
3850
|
-
default: () => [k, e.actions.lock && n(J, null, [n(
|
|
3876
|
+
default: () => [k, e.actions.lock && n(J, null, [n(Ht, {
|
|
3851
3877
|
key: "lock",
|
|
3852
|
-
icon: n(
|
|
3878
|
+
icon: n(un, null, null),
|
|
3853
3879
|
onClick: () => {
|
|
3854
|
-
var
|
|
3855
|
-
(
|
|
3880
|
+
var E;
|
|
3881
|
+
(E = e.onLockOpenChange) == null || E.call(e, !0), l && (l.lockOpen.value = !0);
|
|
3856
3882
|
}
|
|
3857
3883
|
}, {
|
|
3858
|
-
default: () => [
|
|
3859
|
-
}), n(ge.Divider, null, null)]), n(
|
|
3884
|
+
default: () => [_("锁定屏幕")]
|
|
3885
|
+
}), n(ge.Divider, null, null)]), n(Ht, {
|
|
3860
3886
|
key: "logout",
|
|
3861
3887
|
icon: n(Ka, null, null),
|
|
3862
3888
|
onClick: () => $(),
|
|
3863
3889
|
disabled: h.value
|
|
3864
3890
|
}, {
|
|
3865
|
-
default: () => [
|
|
3891
|
+
default: () => [_("退出登录")]
|
|
3866
3892
|
})]
|
|
3867
3893
|
})
|
|
3868
3894
|
}, {
|
|
3869
|
-
default: () => [
|
|
3895
|
+
default: () => [M || n("div", {
|
|
3870
3896
|
class: `${r}-header-actions-avatar ${d.value}`.trim()
|
|
3871
|
-
}, [n(
|
|
3897
|
+
}, [n(en, {
|
|
3872
3898
|
size: 28,
|
|
3873
|
-
icon: n(
|
|
3899
|
+
icon: n(cn, null, null),
|
|
3874
3900
|
src: e.avatar
|
|
3875
3901
|
}, null), n("div", {
|
|
3876
3902
|
class: `${r}-header-actions-name ${d.value}`.trim()
|
|
@@ -3934,7 +3960,7 @@ const as = /* @__PURE__ */ j({
|
|
|
3934
3960
|
}
|
|
3935
3961
|
}), Si = (e) => {
|
|
3936
3962
|
var o;
|
|
3937
|
-
const t = (o = e.layout) == null ? void 0 : o.pageContainer, { layout: a } =
|
|
3963
|
+
const t = (o = e.layout) == null ? void 0 : o.pageContainer, { layout: a } = ye(e);
|
|
3938
3964
|
return {
|
|
3939
3965
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
3940
3966
|
[e.componentCls]: {
|
|
@@ -4017,37 +4043,37 @@ const os = /* @__PURE__ */ j({
|
|
|
4017
4043
|
}), u = R(() => {
|
|
4018
4044
|
var $;
|
|
4019
4045
|
return ($ = o == null ? void 0 : o.hasContentWide) == null ? void 0 : $.value;
|
|
4020
|
-
}),
|
|
4046
|
+
}), x = R(() => {
|
|
4021
4047
|
var $, I;
|
|
4022
4048
|
return ae(e.usePageCard) ? e.usePageCard : ae(($ = g.value) == null ? void 0 : $.usePageCard) ? (I = g.value) == null ? void 0 : I.usePageCard : !0;
|
|
4023
|
-
}),
|
|
4024
|
-
var $, I,
|
|
4025
|
-
return (
|
|
4049
|
+
}), v = R(() => {
|
|
4050
|
+
var $, I, M;
|
|
4051
|
+
return (M = (I = ($ = l == null ? void 0 : l.token) == null ? void 0 : $.value) == null ? void 0 : I.layout) == null ? void 0 : M.pageContainer;
|
|
4026
4052
|
}), c = R(() => Ae(Ue(e.contentWidth) && e.contentWidth ? e.contentWidth : o == null ? void 0 : o.contentWidth.value)), {
|
|
4027
|
-
wrapSSR:
|
|
4053
|
+
wrapSSR: p,
|
|
4028
4054
|
hashId: m
|
|
4029
4055
|
} = Ii(r), w = () => {
|
|
4030
|
-
var
|
|
4031
|
-
const $ =
|
|
4056
|
+
var M, k, O, T;
|
|
4057
|
+
const $ = Be(t, e, "pageChildrenExtraRender"), I = Y(`${r}-children-content`, m.value, c.value && `${r}-children-content-width`);
|
|
4032
4058
|
return n("div", {
|
|
4033
4059
|
class: I,
|
|
4034
4060
|
style: {
|
|
4035
4061
|
...b.value,
|
|
4036
4062
|
width: c.value
|
|
4037
4063
|
}
|
|
4038
|
-
}, [$,
|
|
4064
|
+
}, [$, x.value ? n(Yn, te(f.value ? oe(f.value, ["loading", "bodyStyle"]) : {}, {
|
|
4039
4065
|
style: u.value ? {
|
|
4040
4066
|
minHeight: "853px"
|
|
4041
4067
|
} : void 0,
|
|
4042
4068
|
bordered: !1
|
|
4043
4069
|
}), {
|
|
4044
4070
|
default: () => {
|
|
4045
|
-
var
|
|
4046
|
-
return [(
|
|
4071
|
+
var X;
|
|
4072
|
+
return [(X = t.default) == null ? void 0 : X.call(t)];
|
|
4047
4073
|
}
|
|
4048
4074
|
}) : Fe($) ? n("div", {
|
|
4049
|
-
style: (
|
|
4050
|
-
marginBlockStart: `${(k =
|
|
4075
|
+
style: (M = v.value) != null && M.marginBlockPageContainerContent ? {
|
|
4076
|
+
marginBlockStart: `${(k = v.value) == null ? void 0 : k.marginBlockPageContainerContent}px`
|
|
4051
4077
|
} : void 0
|
|
4052
4078
|
}, [(O = t.default) == null ? void 0 : O.call(t)]) : (T = t.default) == null ? void 0 : T.call(t)]);
|
|
4053
4079
|
}, z = () => {
|
|
@@ -4059,21 +4085,21 @@ const os = /* @__PURE__ */ j({
|
|
|
4059
4085
|
};
|
|
4060
4086
|
return () => {
|
|
4061
4087
|
var k, O;
|
|
4062
|
-
const $ =
|
|
4063
|
-
return
|
|
4088
|
+
const $ = Be(t, e, "pageHeaderRender") || ((k = o == null ? void 0 : o.pageHeaderRender) == null ? void 0 : k.value), I = re(t, e, "breadcrumbRender"), M = Be(t, e, "contentRender");
|
|
4089
|
+
return p(n("div", {
|
|
4064
4090
|
style: a.style,
|
|
4065
4091
|
class: {
|
|
4066
4092
|
[`${m.value}`]: !0,
|
|
4067
4093
|
[`${r}`]: !0
|
|
4068
4094
|
}
|
|
4069
4095
|
}, [e.loading && n("div", {
|
|
4070
|
-
class:
|
|
4096
|
+
class: Y(`${r}-blur`, m.value)
|
|
4071
4097
|
}, [n(It, {
|
|
4072
4098
|
indicator: (O = i == null ? void 0 : i.indicator) == null ? void 0 : O.value
|
|
4073
4099
|
}, null)]), !u.value && $ !== !1 && ($ || n(xi, {
|
|
4074
4100
|
style: e.pageHeaderStyle,
|
|
4075
4101
|
breadcrumb: I,
|
|
4076
|
-
content:
|
|
4102
|
+
content: M
|
|
4077
4103
|
}, null)), n("div", {
|
|
4078
4104
|
class: [h, m.value]
|
|
4079
4105
|
}, [n("div", {
|
|
@@ -4084,25 +4110,25 @@ const os = /* @__PURE__ */ j({
|
|
|
4084
4110
|
}
|
|
4085
4111
|
});
|
|
4086
4112
|
function is({ menuData: e, watchOpenKeys: t = !0 }) {
|
|
4087
|
-
const a = Ge(), o = a.getRoutes(), i =
|
|
4113
|
+
const a = Ge(), o = a.getRoutes(), i = pe({
|
|
4088
4114
|
menuData: [],
|
|
4089
4115
|
levelMenuData: []
|
|
4090
|
-
}), l =
|
|
4116
|
+
}), l = pe({
|
|
4091
4117
|
openKeys: [],
|
|
4092
4118
|
selectedKeys: []
|
|
4093
4119
|
}), s = R(() => a.currentRoute.value), r = (d) => {
|
|
4094
|
-
var b;
|
|
4120
|
+
var b, u;
|
|
4095
4121
|
const y = No(zo(d));
|
|
4096
|
-
(b = s.value) != null &&
|
|
4122
|
+
(u = (b = s.value) == null ? void 0 : b.meta) != null && u.hidden ? (i.menuData = [], i.levelMenuData = []) : (i.menuData = y.menuData, i.levelMenuData = y.getLevel());
|
|
4097
4123
|
};
|
|
4098
|
-
e
|
|
4099
|
-
const h = R(() => Ho(i, { path:
|
|
4124
|
+
e && zt(e) && ne(() => e.value, (d) => r(d), { deep: !0 });
|
|
4125
|
+
const h = R(() => Ho(i, { path: Rn(s.value), name: s.value.name })), g = R(() => {
|
|
4100
4126
|
const d = h.value.map((y) => {
|
|
4101
|
-
var u,
|
|
4102
|
-
const b =
|
|
4127
|
+
var u, x;
|
|
4128
|
+
const b = $n((u = y.meta) != null && u.hideChildrenInMenu ? [] : y.children || []);
|
|
4103
4129
|
return {
|
|
4104
4130
|
path: y.redirect || b || y.path || "",
|
|
4105
|
-
breadcrumbName: ((
|
|
4131
|
+
breadcrumbName: ((x = y.meta) == null ? void 0 : x.title) || ""
|
|
4106
4132
|
};
|
|
4107
4133
|
}).filter((y) => y.breadcrumbName);
|
|
4108
4134
|
return Vo(d, "breadcrumbName");
|
|
@@ -4110,7 +4136,7 @@ function is({ menuData: e, watchOpenKeys: t = !0 }) {
|
|
|
4110
4136
|
l.openKeys = h.value.filter((d) => d.path !== s.value.path).map((d) => d.path);
|
|
4111
4137
|
};
|
|
4112
4138
|
return ne(() => s.value, (d) => {
|
|
4113
|
-
d && (l.selectedKeys = h.value.map((y) => y.path), t && f());
|
|
4139
|
+
d && (r(e ? zt(e) ? e.value : e : o), l.selectedKeys = h.value.map((y) => y.path), t && f());
|
|
4114
4140
|
}, { immediate: !0, deep: !0 }), St(() => {
|
|
4115
4141
|
t || f();
|
|
4116
4142
|
}), {
|
|
@@ -4130,7 +4156,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4130
4156
|
}
|
|
4131
4157
|
}, [n(_e, {
|
|
4132
4158
|
name: "liangse"
|
|
4133
|
-
}, null),
|
|
4159
|
+
}, null), _("亮色")])
|
|
4134
4160
|
}, {
|
|
4135
4161
|
value: "dark",
|
|
4136
4162
|
label: () => n("div", {
|
|
@@ -4141,7 +4167,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4141
4167
|
}
|
|
4142
4168
|
}, [n(_e, {
|
|
4143
4169
|
name: "anhei"
|
|
4144
|
-
}, null),
|
|
4170
|
+
}, null), _("深色")])
|
|
4145
4171
|
}, {
|
|
4146
4172
|
value: "system",
|
|
4147
4173
|
label: () => n("div", {
|
|
@@ -4150,8 +4176,8 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4150
4176
|
alignItems: "center",
|
|
4151
4177
|
gap: "6px"
|
|
4152
4178
|
}
|
|
4153
|
-
}, [n(Wa, null, null),
|
|
4154
|
-
}],
|
|
4179
|
+
}, [n(Wa, null, null), _("自动")])
|
|
4180
|
+
}], zn = [
|
|
4155
4181
|
{
|
|
4156
4182
|
key: "light",
|
|
4157
4183
|
title: "亮色菜单风格"
|
|
@@ -4164,7 +4190,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4164
4190
|
// key: 'systemDark',
|
|
4165
4191
|
// title: '暗黑模式'
|
|
4166
4192
|
// }
|
|
4167
|
-
],
|
|
4193
|
+
], Dn = [{
|
|
4168
4194
|
key: "side",
|
|
4169
4195
|
title: "侧边菜单布局"
|
|
4170
4196
|
}, {
|
|
@@ -4185,7 +4211,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4185
4211
|
}, {
|
|
4186
4212
|
key: "sider",
|
|
4187
4213
|
title: "左侧主题"
|
|
4188
|
-
}],
|
|
4214
|
+
}], Mi = [{
|
|
4189
4215
|
key: "colorBgMenu",
|
|
4190
4216
|
name: "全部背景"
|
|
4191
4217
|
}, {
|
|
@@ -4206,7 +4232,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4206
4232
|
}, {
|
|
4207
4233
|
key: "colorTextMenuSelected",
|
|
4208
4234
|
name: "菜单文字选中颜色"
|
|
4209
|
-
}],
|
|
4235
|
+
}], Bi = [{
|
|
4210
4236
|
label: "fixedHeader",
|
|
4211
4237
|
title: "固定 Header"
|
|
4212
4238
|
}, {
|
|
@@ -4222,7 +4248,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4222
4248
|
label: "fixedTabsBar",
|
|
4223
4249
|
title: "固定多标签"
|
|
4224
4250
|
}], Oi = (e) => {
|
|
4225
|
-
const { dark: t } =
|
|
4251
|
+
const { dark: t } = ye(e);
|
|
4226
4252
|
return {
|
|
4227
4253
|
[e.componentCls]: {
|
|
4228
4254
|
[`${e.antCls}-drawer-content-wrapper`]: {
|
|
@@ -4402,17 +4428,17 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4402
4428
|
}
|
|
4403
4429
|
}
|
|
4404
4430
|
};
|
|
4405
|
-
},
|
|
4431
|
+
}, Yt = /* @__PURE__ */ j({
|
|
4406
4432
|
name: "BlockCheckbox",
|
|
4407
4433
|
props: {
|
|
4408
|
-
value:
|
|
4434
|
+
value: Q.string,
|
|
4409
4435
|
list: {
|
|
4410
4436
|
type: Array,
|
|
4411
4437
|
default: () => []
|
|
4412
4438
|
},
|
|
4413
|
-
configType:
|
|
4414
|
-
prefixCls:
|
|
4415
|
-
hashId:
|
|
4439
|
+
configType: Q.string,
|
|
4440
|
+
prefixCls: Q.string,
|
|
4441
|
+
hashId: Q.string,
|
|
4416
4442
|
onChange: Function
|
|
4417
4443
|
},
|
|
4418
4444
|
setup(e) {
|
|
@@ -4425,14 +4451,14 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4425
4451
|
key: a.key
|
|
4426
4452
|
}, {
|
|
4427
4453
|
default: () => [n("div", {
|
|
4428
|
-
class:
|
|
4454
|
+
class: Y(e.hashId, `${t}-item`, `${t}-item-${a.key}`, `${t}-${e.configType}-item`),
|
|
4429
4455
|
onClick: (o) => {
|
|
4430
4456
|
var i;
|
|
4431
4457
|
return (i = e.onChange) == null ? void 0 : i.call(e, a.key, o);
|
|
4432
4458
|
}
|
|
4433
4459
|
}, [a.key === "wide" && n("div", {
|
|
4434
4460
|
class: [`${t}-item-${a.key}-content`, e.hashId]
|
|
4435
|
-
}, null), n(
|
|
4461
|
+
}, null), n(mn, {
|
|
4436
4462
|
class: `${t}-selectIcon ${e.hashId}`.trim(),
|
|
4437
4463
|
style: {
|
|
4438
4464
|
display: e.value === a.key ? "block" : "none"
|
|
@@ -4452,8 +4478,8 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4452
4478
|
type: Array,
|
|
4453
4479
|
default: () => []
|
|
4454
4480
|
},
|
|
4455
|
-
prefixCls:
|
|
4456
|
-
hashId:
|
|
4481
|
+
prefixCls: Q.string,
|
|
4482
|
+
hashId: Q.string,
|
|
4457
4483
|
onChange: Function
|
|
4458
4484
|
},
|
|
4459
4485
|
setup(e) {
|
|
@@ -4478,7 +4504,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4478
4504
|
backgroundColor: i
|
|
4479
4505
|
},
|
|
4480
4506
|
onClick: () => e.onChange && e.onChange(i)
|
|
4481
|
-
}, [((r = e.settingValue) == null ? void 0 : r.primaryColor) === i && n(
|
|
4507
|
+
}, [((r = e.settingValue) == null ? void 0 : r.primaryColor) === i && n(mn, null, null)])];
|
|
4482
4508
|
}
|
|
4483
4509
|
}) : null)]);
|
|
4484
4510
|
};
|
|
@@ -4486,16 +4512,16 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4486
4512
|
}), qe = /* @__PURE__ */ j({
|
|
4487
4513
|
name: "RegionalChange",
|
|
4488
4514
|
props: {
|
|
4489
|
-
label:
|
|
4490
|
-
value:
|
|
4491
|
-
prefixCls:
|
|
4515
|
+
label: Q.string,
|
|
4516
|
+
value: Q.bool,
|
|
4517
|
+
prefixCls: Q.string,
|
|
4492
4518
|
valueKey: String,
|
|
4493
|
-
hashId:
|
|
4494
|
-
disabled:
|
|
4519
|
+
hashId: Q.string,
|
|
4520
|
+
disabled: Q.bool,
|
|
4495
4521
|
onChange: Function
|
|
4496
4522
|
},
|
|
4497
4523
|
setup(e) {
|
|
4498
|
-
return () => n(
|
|
4524
|
+
return () => n(Me, {
|
|
4499
4525
|
class: `${e.prefixCls}-list ${e.hashId}`.trim(),
|
|
4500
4526
|
split: !1,
|
|
4501
4527
|
size: "small",
|
|
@@ -4505,7 +4531,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4505
4531
|
title: t.disabled ? t.disabledReason : "",
|
|
4506
4532
|
placement: "left"
|
|
4507
4533
|
}, {
|
|
4508
|
-
default: () => [n(
|
|
4534
|
+
default: () => [n(Me.Item, {
|
|
4509
4535
|
actions: [t.action]
|
|
4510
4536
|
}, {
|
|
4511
4537
|
default: () => [n("span", {
|
|
@@ -4517,7 +4543,7 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4517
4543
|
}),
|
|
4518
4544
|
dataSource: [{
|
|
4519
4545
|
title: e.label,
|
|
4520
|
-
action: n(
|
|
4546
|
+
action: n(nn, {
|
|
4521
4547
|
size: "small",
|
|
4522
4548
|
disabled: e.disabled,
|
|
4523
4549
|
checked: !!e.value,
|
|
@@ -4565,10 +4591,10 @@ const Ct = Object.keys(Z).filter((e) => e !== "title"), Ri = [{
|
|
|
4565
4591
|
function Ti(e) {
|
|
4566
4592
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
4567
4593
|
}
|
|
4568
|
-
const
|
|
4594
|
+
const An = [];
|
|
4569
4595
|
Ca.forEach((e) => {
|
|
4570
4596
|
xa.forEach((t) => {
|
|
4571
|
-
|
|
4597
|
+
An.push({
|
|
4572
4598
|
key: `${e}:${t}`,
|
|
4573
4599
|
token: {}
|
|
4574
4600
|
});
|
|
@@ -4584,7 +4610,7 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4584
4610
|
setup(e) {
|
|
4585
4611
|
const {
|
|
4586
4612
|
getPrefixCls: t
|
|
4587
|
-
} = le(), [a, o] =
|
|
4613
|
+
} = le(), [a, o] = Ce("header"), i = t({
|
|
4588
4614
|
suffixCls: "theme-editor",
|
|
4589
4615
|
isPor: !0
|
|
4590
4616
|
}), {
|
|
@@ -4597,18 +4623,18 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4597
4623
|
return (b = r.value) == null ? void 0 : b.layout;
|
|
4598
4624
|
});
|
|
4599
4625
|
function g(b) {
|
|
4600
|
-
return Se(
|
|
4601
|
-
var
|
|
4602
|
-
const
|
|
4603
|
-
if (u.token =
|
|
4626
|
+
return Se(An).map((u) => {
|
|
4627
|
+
var v;
|
|
4628
|
+
const x = it(b, r.value, u.key);
|
|
4629
|
+
if (u.token = x, x)
|
|
4604
4630
|
for (const c in u.token) {
|
|
4605
|
-
const
|
|
4631
|
+
const p = (v = h.value) == null ? void 0 : v[b], m = (p == null ? void 0 : p[c]) || u.token[c];
|
|
4606
4632
|
u.token[c] = m;
|
|
4607
4633
|
}
|
|
4608
4634
|
return u;
|
|
4609
4635
|
}).filter((u) => u.token);
|
|
4610
4636
|
}
|
|
4611
|
-
const f =
|
|
4637
|
+
const f = pe({
|
|
4612
4638
|
header: g("header"),
|
|
4613
4639
|
sider: g("sider")
|
|
4614
4640
|
});
|
|
@@ -4625,50 +4651,50 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4625
4651
|
});
|
|
4626
4652
|
const d = R(() => {
|
|
4627
4653
|
var u;
|
|
4628
|
-
const b = (u = f[a.value].find((
|
|
4629
|
-
var
|
|
4630
|
-
return
|
|
4654
|
+
const b = (u = f[a.value].find((x) => {
|
|
4655
|
+
var v;
|
|
4656
|
+
return x.key === ((v = h.value) == null ? void 0 : v.key);
|
|
4631
4657
|
})) == null ? void 0 : u.token;
|
|
4632
|
-
return Object.keys(b || {}).map((
|
|
4658
|
+
return Object.keys(b || {}).map((x) => {
|
|
4633
4659
|
var c;
|
|
4634
4660
|
return {
|
|
4635
|
-
title: ((c =
|
|
4636
|
-
key:
|
|
4637
|
-
value: (b == null ? void 0 : b[
|
|
4661
|
+
title: ((c = Mi.find((p) => p.key === x)) == null ? void 0 : c.name) || "",
|
|
4662
|
+
key: x,
|
|
4663
|
+
value: (b == null ? void 0 : b[x]) || ""
|
|
4638
4664
|
};
|
|
4639
4665
|
});
|
|
4640
4666
|
}), y = (b, u) => {
|
|
4641
|
-
var
|
|
4642
|
-
f[a.value] = f[a.value].map((
|
|
4667
|
+
var x;
|
|
4668
|
+
f[a.value] = f[a.value].map((v) => {
|
|
4643
4669
|
var c;
|
|
4644
|
-
return
|
|
4645
|
-
}), (
|
|
4670
|
+
return v.key === ((c = h.value) == null ? void 0 : c.key) && (v.token[u] = b), v;
|
|
4671
|
+
}), (x = e.onChange) == null || x.call(e, b, a.value, u);
|
|
4646
4672
|
};
|
|
4647
4673
|
return () => {
|
|
4648
|
-
var u,
|
|
4674
|
+
var u, x, v;
|
|
4649
4675
|
let b;
|
|
4650
4676
|
return l(n("div", {
|
|
4651
4677
|
class: [i, s.value]
|
|
4652
4678
|
}, [n("h3", {
|
|
4653
4679
|
class: [`${i}-title`, s.value]
|
|
4654
|
-
}, [
|
|
4680
|
+
}, [_("主题编辑器"), n("div", {
|
|
4655
4681
|
class: [`${i}-sub-title`, s.value]
|
|
4656
|
-
}, [n("span", null, [(u =
|
|
4682
|
+
}, [n("span", null, [(u = zn.find((c) => c.key === e.theme)) == null ? void 0 : u.title]), n("span", {
|
|
4657
4683
|
style: {
|
|
4658
4684
|
marginInline: "8px"
|
|
4659
4685
|
}
|
|
4660
|
-
}, [
|
|
4661
|
-
var
|
|
4662
|
-
return c.key === ((
|
|
4663
|
-
})) == null ? void 0 :
|
|
4686
|
+
}, [_("/")]), n("span", null, [(x = Dn.find((c) => {
|
|
4687
|
+
var p;
|
|
4688
|
+
return c.key === ((p = e.settingValue) == null ? void 0 : p.layout);
|
|
4689
|
+
})) == null ? void 0 : x.title])])]), n("div", {
|
|
4664
4690
|
class: [`${i}-content`, s.value]
|
|
4665
|
-
}, [n(
|
|
4691
|
+
}, [n(Me, {
|
|
4666
4692
|
class: `${i}-list ${s.value}`.trim(),
|
|
4667
4693
|
split: !1,
|
|
4668
4694
|
size: "small",
|
|
4669
4695
|
renderItem: ({
|
|
4670
4696
|
item: c
|
|
4671
|
-
}) => n(
|
|
4697
|
+
}) => n(Me.Item, {
|
|
4672
4698
|
actions: [c.action]
|
|
4673
4699
|
}, {
|
|
4674
4700
|
default: () => [n("span", {
|
|
@@ -4679,8 +4705,8 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4679
4705
|
}),
|
|
4680
4706
|
dataSource: [{
|
|
4681
4707
|
title: "自定义主题色",
|
|
4682
|
-
action: n(
|
|
4683
|
-
value: (
|
|
4708
|
+
action: n(Kt, {
|
|
4709
|
+
value: (v = e.settingValue) == null ? void 0 : v.primaryColor,
|
|
4684
4710
|
size: "small",
|
|
4685
4711
|
onChangeComplete: (c) => e.onChange && e.onChange(c.toCssString(), "primaryColor")
|
|
4686
4712
|
}, null)
|
|
@@ -4692,27 +4718,27 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4692
4718
|
key: c.key,
|
|
4693
4719
|
tab: c.title
|
|
4694
4720
|
}, {
|
|
4695
|
-
default: () => [n(
|
|
4721
|
+
default: () => [n(Me, {
|
|
4696
4722
|
class: `${i}-list ${s.value}`.trim(),
|
|
4697
4723
|
split: !1,
|
|
4698
4724
|
size: "small",
|
|
4699
4725
|
renderItem: ({
|
|
4700
|
-
item:
|
|
4701
|
-
}) => n(
|
|
4702
|
-
actions: [
|
|
4726
|
+
item: p
|
|
4727
|
+
}) => n(Me.Item, {
|
|
4728
|
+
actions: [p.action]
|
|
4703
4729
|
}, {
|
|
4704
4730
|
default: () => [n("span", {
|
|
4705
4731
|
style: {
|
|
4706
|
-
opacity:
|
|
4732
|
+
opacity: p.disabled ? 0.5 : 1
|
|
4707
4733
|
}
|
|
4708
|
-
}, [
|
|
4734
|
+
}, [p.title])]
|
|
4709
4735
|
}),
|
|
4710
|
-
dataSource: d.value.map((
|
|
4711
|
-
...
|
|
4712
|
-
action: n(
|
|
4713
|
-
value:
|
|
4736
|
+
dataSource: d.value.map((p) => ({
|
|
4737
|
+
...p,
|
|
4738
|
+
action: n(Kt, {
|
|
4739
|
+
value: p.value,
|
|
4714
4740
|
size: "small",
|
|
4715
|
-
onChangeComplete: (m) => y(m.toCssString(),
|
|
4741
|
+
onChangeComplete: (m) => y(m.toCssString(), p.key)
|
|
4716
4742
|
}, null)
|
|
4717
4743
|
}))
|
|
4718
4744
|
}, null)]
|
|
@@ -4752,15 +4778,15 @@ const Pi = /* @__PURE__ */ j({
|
|
|
4752
4778
|
}
|
|
4753
4779
|
}
|
|
4754
4780
|
});
|
|
4755
|
-
function
|
|
4781
|
+
function qt(e) {
|
|
4756
4782
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Le(e);
|
|
4757
4783
|
}
|
|
4758
4784
|
const {
|
|
4759
|
-
preset:
|
|
4785
|
+
preset: Qt
|
|
4760
4786
|
} = Tt, zi = /* @__PURE__ */ j({
|
|
4761
4787
|
name: "OthersChange",
|
|
4762
4788
|
props: {
|
|
4763
|
-
prefixCls:
|
|
4789
|
+
prefixCls: Q.string,
|
|
4764
4790
|
settingValue: Object,
|
|
4765
4791
|
onChange: Function
|
|
4766
4792
|
},
|
|
@@ -4773,13 +4799,13 @@ const {
|
|
|
4773
4799
|
hashId: o
|
|
4774
4800
|
} = fe("SettingsDrawOthers", [Ni], t);
|
|
4775
4801
|
return () => {
|
|
4776
|
-
var l, s, r, h, g, f, d, y, b, u,
|
|
4802
|
+
var l, s, r, h, g, f, d, y, b, u, x, v, c, p;
|
|
4777
4803
|
let i;
|
|
4778
4804
|
return a(n("div", {
|
|
4779
4805
|
class: [t, o.value]
|
|
4780
4806
|
}, [n("h3", {
|
|
4781
4807
|
class: [`${t}-title`, o.value]
|
|
4782
|
-
}, [
|
|
4808
|
+
}, [_("页面动画设置")]), n(Me, {
|
|
4783
4809
|
class: `${t}-list ${o.value}`.trim(),
|
|
4784
4810
|
split: !1,
|
|
4785
4811
|
size: "small",
|
|
@@ -4789,7 +4815,7 @@ const {
|
|
|
4789
4815
|
title: m.disabled ? m.disabledReason : "",
|
|
4790
4816
|
placement: "left"
|
|
4791
4817
|
}, {
|
|
4792
|
-
default: () => [n(
|
|
4818
|
+
default: () => [n(Me.Item, {
|
|
4793
4819
|
actions: [m.action]
|
|
4794
4820
|
}, {
|
|
4795
4821
|
default: () => [n("span", {
|
|
@@ -4801,7 +4827,7 @@ const {
|
|
|
4801
4827
|
}),
|
|
4802
4828
|
dataSource: [{
|
|
4803
4829
|
title: "禁用动画",
|
|
4804
|
-
action: n(
|
|
4830
|
+
action: n(nn, {
|
|
4805
4831
|
checked: !((s = (l = e.settingValue) == null ? void 0 : l.animate) != null && s.disabled),
|
|
4806
4832
|
size: "small",
|
|
4807
4833
|
onChange: (m) => {
|
|
@@ -4824,7 +4850,7 @@ const {
|
|
|
4824
4850
|
var w;
|
|
4825
4851
|
return (w = e.onChange) == null ? void 0 : w.call(e, "animate", "name", m);
|
|
4826
4852
|
}
|
|
4827
|
-
},
|
|
4853
|
+
}, qt(i = Qt.map((m) => n(Ye.Option, {
|
|
4828
4854
|
value: m.name
|
|
4829
4855
|
}, {
|
|
4830
4856
|
default: () => [m.alias]
|
|
@@ -4835,7 +4861,7 @@ const {
|
|
|
4835
4861
|
title: "动画方向",
|
|
4836
4862
|
disabled: (u = (b = e.settingValue) == null ? void 0 : b.animate) == null ? void 0 : u.disabled,
|
|
4837
4863
|
action: n(Ye, {
|
|
4838
|
-
value: (
|
|
4864
|
+
value: (v = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : v.direction,
|
|
4839
4865
|
style: {
|
|
4840
4866
|
width: "100px"
|
|
4841
4867
|
},
|
|
@@ -4843,7 +4869,7 @@ const {
|
|
|
4843
4869
|
dropdownStyle: {
|
|
4844
4870
|
minWidth: "120px"
|
|
4845
4871
|
},
|
|
4846
|
-
disabled: (
|
|
4872
|
+
disabled: (p = (c = e.settingValue) == null ? void 0 : c.animate) == null ? void 0 : p.disabled,
|
|
4847
4873
|
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
4848
4874
|
onChange: (m) => {
|
|
4849
4875
|
var w;
|
|
@@ -4852,12 +4878,12 @@ const {
|
|
|
4852
4878
|
}, {
|
|
4853
4879
|
default: () => {
|
|
4854
4880
|
var m;
|
|
4855
|
-
return [(m =
|
|
4881
|
+
return [(m = Qt.find((w) => {
|
|
4856
4882
|
var z, $;
|
|
4857
4883
|
return w.name === (($ = (z = e.settingValue) == null ? void 0 : z.animate) == null ? void 0 : $.name);
|
|
4858
4884
|
})) == null ? void 0 : m.directions.map((w) => n(Ye.Option, {
|
|
4859
4885
|
value: w
|
|
4860
|
-
},
|
|
4886
|
+
}, qt(w) ? w : {
|
|
4861
4887
|
default: () => [w]
|
|
4862
4888
|
}))];
|
|
4863
4889
|
}
|
|
@@ -4871,7 +4897,7 @@ const {
|
|
|
4871
4897
|
} = Tt, Ai = {
|
|
4872
4898
|
color: "#fff",
|
|
4873
4899
|
fontSize: 20
|
|
4874
|
-
},
|
|
4900
|
+
}, Zt = (e) => ha() ? {
|
|
4875
4901
|
...oe(Z, Ct),
|
|
4876
4902
|
...e || {}
|
|
4877
4903
|
} : Se(Z), Ke = (e, {
|
|
@@ -4921,7 +4947,7 @@ const {
|
|
|
4921
4947
|
const t = Oe(), a = le(), o = ie({
|
|
4922
4948
|
suffixCls: "setting-drawer",
|
|
4923
4949
|
isPor: !0
|
|
4924
|
-
}), i =
|
|
4950
|
+
}), i = pe({}), l = at(ie({
|
|
4925
4951
|
suffixCls: "settings-state",
|
|
4926
4952
|
isPor: !0
|
|
4927
4953
|
}), {}), {
|
|
@@ -4945,20 +4971,20 @@ const {
|
|
|
4945
4971
|
return Xe(e.dark) ? e.dark : (L = a == null ? void 0 : a.dark) == null ? void 0 : L.value;
|
|
4946
4972
|
}), {
|
|
4947
4973
|
change: (L) => {
|
|
4948
|
-
var F, P,
|
|
4949
|
-
(F = e.onDarkChange) == null || F.call(e, L), (P = e == null ? void 0 : e["onUpdate:dark"]) == null || P.call(e, L), (
|
|
4974
|
+
var F, P, W;
|
|
4975
|
+
(F = e.onDarkChange) == null || F.call(e, L), (P = e == null ? void 0 : e["onUpdate:dark"]) == null || P.call(e, L), (W = a == null ? void 0 : a.onDarkChange) == null || W.call(a, L);
|
|
4950
4976
|
}
|
|
4951
|
-
}), [u,
|
|
4977
|
+
}), [u, x] = Ce(!1), [v, c] = Ce(!1), p = R(() => e.storage ? Object.keys(l.value).length > 0 : !1), m = R(() => Zt(oe(e.settings, Ct))), [w, z] = De(() => Zt(oe(e.settings, Ct)), {
|
|
4952
4978
|
value: m,
|
|
4953
4979
|
onChange: (L) => {
|
|
4954
4980
|
var F;
|
|
4955
|
-
l.value =
|
|
4981
|
+
l.value = ve(l.value, L), (F = e.onChange) == null || F.call(e, L);
|
|
4956
4982
|
}
|
|
4957
4983
|
}), $ = R(() => {
|
|
4958
4984
|
var L;
|
|
4959
4985
|
return Xe(e.dark) ? y.value : (L = t == null ? void 0 : t.dark) == null ? void 0 : L.value;
|
|
4960
4986
|
}), I = (L, F) => {
|
|
4961
|
-
|
|
4987
|
+
Fn({
|
|
4962
4988
|
event: L,
|
|
4963
4989
|
isDark: $,
|
|
4964
4990
|
toggle: b,
|
|
@@ -4966,7 +4992,7 @@ const {
|
|
|
4966
4992
|
});
|
|
4967
4993
|
};
|
|
4968
4994
|
ne(() => e.storage, (L) => {
|
|
4969
|
-
L && (
|
|
4995
|
+
L && (p.value ? (Object.assign(i, {
|
|
4970
4996
|
dark: d.value,
|
|
4971
4997
|
...Se(w.value)
|
|
4972
4998
|
}), fa($e(l.value, "dark"), w.value) || z($e(l.value, "dark")), I(null, l.value.dark)) : l.value = {
|
|
@@ -4976,10 +5002,10 @@ const {
|
|
|
4976
5002
|
}, {
|
|
4977
5003
|
immediate: !0
|
|
4978
5004
|
});
|
|
4979
|
-
const
|
|
5005
|
+
const M = R(() => e.colorList && Mt(e.colorList) ? e.colorList : []), k = R(() => Xo(se(w))), {
|
|
4980
5006
|
copy: O,
|
|
4981
5007
|
copied: T,
|
|
4982
|
-
isSupported:
|
|
5008
|
+
isSupported: X
|
|
4983
5009
|
} = ia();
|
|
4984
5010
|
ne(g, () => {
|
|
4985
5011
|
h.value || (h.value = !0);
|
|
@@ -4993,30 +5019,30 @@ const {
|
|
|
4993
5019
|
}), ne(() => d.value, (L) => {
|
|
4994
5020
|
e.storage && (l.value.dark = L);
|
|
4995
5021
|
});
|
|
4996
|
-
const
|
|
4997
|
-
var
|
|
4998
|
-
const
|
|
4999
|
-
if (P != null && P.subKey &&
|
|
5000
|
-
ee[L] = {}, ee[L][P == null ? void 0 : P.subKey] = F, (
|
|
5022
|
+
const E = (L, F, P) => {
|
|
5023
|
+
var be, H, q;
|
|
5024
|
+
const W = ["header", "sider"], ee = {};
|
|
5025
|
+
if (P != null && P.subKey && W.includes(L)) {
|
|
5026
|
+
ee[L] = {}, ee[L][P == null ? void 0 : P.subKey] = F, (be = e.onLayoutChange) == null || be.call(e, oe(ee, W));
|
|
5001
5027
|
return;
|
|
5002
5028
|
} else
|
|
5003
|
-
L === "animate" ? (ee[L] = {}, P != null && P.subKey && (ee[L][P == null ? void 0 : P.subKey] = F), (P == null ? void 0 : P.subKey) === "name" && (ee[L].direction = (
|
|
5029
|
+
L === "animate" ? (ee[L] = {}, P != null && P.subKey && (ee[L][P == null ? void 0 : P.subKey] = F), (P == null ? void 0 : P.subKey) === "name" && (ee[L].direction = (q = (H = Di.find((V) => V.name === F)) == null ? void 0 : H.directions) == null ? void 0 : q[0])) : ee[L] = F;
|
|
5004
5030
|
if (L === "colorWeak") {
|
|
5005
5031
|
const V = document.querySelector("body");
|
|
5006
5032
|
V && (V.dataset.prosettingdrawer = F === !0 ? V.style.filter : V.dataset.prosettingdrawer || "none", F === !0 && (V.dataset.prosettingdrawer = V.style.filter), V.style.filter = F === !0 ? "invert(80%)" : V.dataset.prosettingdrawer || "none", F || delete V.dataset.prosettingdrawer);
|
|
5007
5033
|
}
|
|
5008
|
-
z(
|
|
5009
|
-
..._o($e(ee,
|
|
5034
|
+
z(ve(se(w), {
|
|
5035
|
+
..._o($e(ee, W))
|
|
5010
5036
|
}));
|
|
5011
|
-
},
|
|
5037
|
+
}, K = (L) => {
|
|
5012
5038
|
l.value.dark = L === "system" ? L : L === "dark", I(null, L === "system" ? L : L === "dark");
|
|
5013
5039
|
}, he = () => {
|
|
5014
|
-
|
|
5040
|
+
X.value && O(JSON.stringify(se(w)));
|
|
5015
5041
|
}, de = () => {
|
|
5016
5042
|
z($e(Se(i), "dark")), I(null, i.dark), l.value = Se(i);
|
|
5017
5043
|
};
|
|
5018
5044
|
return () => {
|
|
5019
|
-
const L = g.value ? lt :
|
|
5045
|
+
const L = g.value ? lt : dn;
|
|
5020
5046
|
return s(n(Qe, {
|
|
5021
5047
|
width: 300,
|
|
5022
5048
|
closable: !1,
|
|
@@ -5050,57 +5076,57 @@ const {
|
|
|
5050
5076
|
default: () => [n(Zn, {
|
|
5051
5077
|
value: ae(d.value) ? d.value ? "dark" : "light" : "system",
|
|
5052
5078
|
options: Ri,
|
|
5053
|
-
onChange: (F) =>
|
|
5079
|
+
onChange: (F) => K(F)
|
|
5054
5080
|
}, null)]
|
|
5055
5081
|
}), n(Ke, {
|
|
5056
5082
|
prefixCls: o,
|
|
5057
5083
|
hashId: r.value,
|
|
5058
5084
|
title: "菜单风格"
|
|
5059
5085
|
}, {
|
|
5060
|
-
default: () => [n(
|
|
5086
|
+
default: () => [n(Yt, {
|
|
5061
5087
|
hashId: r.value,
|
|
5062
5088
|
prefixCls: o,
|
|
5063
|
-
list:
|
|
5089
|
+
list: zn,
|
|
5064
5090
|
value: w.value.theme,
|
|
5065
5091
|
configType: "theme",
|
|
5066
5092
|
key: "navTheme",
|
|
5067
|
-
onChange: (F, P) =>
|
|
5093
|
+
onChange: (F, P) => E("theme", F, {
|
|
5068
5094
|
event: P
|
|
5069
5095
|
})
|
|
5070
5096
|
}, null)]
|
|
5071
5097
|
}), n(Ke, {
|
|
5072
5098
|
hashId: r.value,
|
|
5073
|
-
title: n("span", null, [
|
|
5099
|
+
title: n("span", null, [_("配色模式"), n("a", {
|
|
5074
5100
|
style: {
|
|
5075
5101
|
fontSize: "12px",
|
|
5076
5102
|
marginLeft: "4px"
|
|
5077
5103
|
},
|
|
5078
|
-
onClick: () =>
|
|
5079
|
-
}, [
|
|
5104
|
+
onClick: () => x(!0)
|
|
5105
|
+
}, [_("更多配置")])]),
|
|
5080
5106
|
prefixCls: o
|
|
5081
5107
|
}, {
|
|
5082
5108
|
default: () => [n(Fi, {
|
|
5083
5109
|
hashId: r.value,
|
|
5084
5110
|
prefixCls: o,
|
|
5085
|
-
colorList:
|
|
5111
|
+
colorList: M.value,
|
|
5086
5112
|
settingValue: w.value,
|
|
5087
|
-
onChange: (F, P) =>
|
|
5113
|
+
onChange: (F, P) => E(P || "primaryColor", F)
|
|
5088
5114
|
}, null)]
|
|
5089
5115
|
}), !e.themeOnly && n(J, null, [n(ct, null, null), n(Ke, {
|
|
5090
5116
|
hashId: r.value,
|
|
5091
5117
|
prefixCls: o,
|
|
5092
5118
|
title: "导航模式"
|
|
5093
5119
|
}, {
|
|
5094
|
-
default: () => [n(
|
|
5120
|
+
default: () => [n(Yt, {
|
|
5095
5121
|
prefixCls: o,
|
|
5096
5122
|
value: se(w).layout,
|
|
5097
5123
|
key: "layout",
|
|
5098
5124
|
hashId: r.value,
|
|
5099
5125
|
configType: "layout",
|
|
5100
|
-
list:
|
|
5101
|
-
onChange: (F) =>
|
|
5126
|
+
list: Dn,
|
|
5127
|
+
onChange: (F) => E("layout", F)
|
|
5102
5128
|
}, null)]
|
|
5103
|
-
}),
|
|
5129
|
+
}), Bi.map(({
|
|
5104
5130
|
label: F,
|
|
5105
5131
|
title: P
|
|
5106
5132
|
}) => n(qe, {
|
|
@@ -5110,17 +5136,17 @@ const {
|
|
|
5110
5136
|
prefixCls: o,
|
|
5111
5137
|
hashId: r.value,
|
|
5112
5138
|
valueKey: F,
|
|
5113
|
-
onChange: (
|
|
5139
|
+
onChange: (W, ee) => E(W, ee)
|
|
5114
5140
|
}, null)), n(ct, null, null), n(Ke, {
|
|
5115
5141
|
hashId: r.value,
|
|
5116
5142
|
prefixCls: o,
|
|
5117
|
-
title: n("span", null, [
|
|
5143
|
+
title: n("span", null, [_("其他设置"), n("a", {
|
|
5118
5144
|
style: {
|
|
5119
5145
|
fontSize: "12px",
|
|
5120
5146
|
marginLeft: "4px"
|
|
5121
5147
|
},
|
|
5122
5148
|
onClick: () => c(!0)
|
|
5123
|
-
}, [
|
|
5149
|
+
}, [_("更多配置")])])
|
|
5124
5150
|
}, {
|
|
5125
5151
|
default: () => [Li.map(({
|
|
5126
5152
|
label: F,
|
|
@@ -5132,21 +5158,21 @@ const {
|
|
|
5132
5158
|
prefixCls: o,
|
|
5133
5159
|
hashId: r.value,
|
|
5134
5160
|
valueKey: F,
|
|
5135
|
-
onChange: (
|
|
5161
|
+
onChange: (W, ee) => E(W, ee)
|
|
5136
5162
|
}, null)), e.weakmode && n(qe, {
|
|
5137
5163
|
label: "色弱模式",
|
|
5138
5164
|
value: se(w).colorWeak,
|
|
5139
5165
|
prefixCls: o,
|
|
5140
5166
|
hashId: r.value,
|
|
5141
5167
|
valueKey: "colorWeak",
|
|
5142
|
-
onChange: (F, P) =>
|
|
5168
|
+
onChange: (F, P) => E(F, P)
|
|
5143
5169
|
}, null), e.showProgress && n(qe, {
|
|
5144
5170
|
label: "顶部进度条",
|
|
5145
5171
|
value: se(w).showProgressBar,
|
|
5146
5172
|
prefixCls: o,
|
|
5147
5173
|
hashId: r.value,
|
|
5148
5174
|
valueKey: "showProgressBar",
|
|
5149
|
-
onChange: (F, P) =>
|
|
5175
|
+
onChange: (F, P) => E(F, P)
|
|
5150
5176
|
}, null)]
|
|
5151
5177
|
})]), e.hideHintAlert && e.hideCopyButton ? null : n(ct, null, null), e.hideHintAlert ? null : n(Jn, {
|
|
5152
5178
|
type: "warning",
|
|
@@ -5165,12 +5191,12 @@ const {
|
|
|
5165
5191
|
onClick: () => he(),
|
|
5166
5192
|
block: !0
|
|
5167
5193
|
}, {
|
|
5168
|
-
default: () => [n(_a, null, null),
|
|
5194
|
+
default: () => [n(_a, null, null), _("拷贝设置")]
|
|
5169
5195
|
}), n(Ze, {
|
|
5170
5196
|
block: !0,
|
|
5171
5197
|
onClick: () => de()
|
|
5172
5198
|
}, {
|
|
5173
|
-
default: () => [n(Xa, null, null),
|
|
5199
|
+
default: () => [n(Xa, null, null), _("清空缓存")]
|
|
5174
5200
|
})])])]
|
|
5175
5201
|
})]), n(Qe, {
|
|
5176
5202
|
width: 320,
|
|
@@ -5180,20 +5206,20 @@ const {
|
|
|
5180
5206
|
bodyStyle: {
|
|
5181
5207
|
padding: 0
|
|
5182
5208
|
},
|
|
5183
|
-
onClose: () =>
|
|
5209
|
+
onClose: () => x(!1)
|
|
5184
5210
|
}, {
|
|
5185
5211
|
default: () => [n(Pi, {
|
|
5186
5212
|
theme: w.value.theme,
|
|
5187
5213
|
settingValue: w.value,
|
|
5188
|
-
onChange: (F, P,
|
|
5189
|
-
subKey:
|
|
5214
|
+
onChange: (F, P, W) => E(P || "primaryColor", F, {
|
|
5215
|
+
subKey: W
|
|
5190
5216
|
})
|
|
5191
5217
|
}, null)]
|
|
5192
5218
|
}), n(Qe, {
|
|
5193
5219
|
width: 320,
|
|
5194
5220
|
closable: !1,
|
|
5195
5221
|
placement: "right",
|
|
5196
|
-
open:
|
|
5222
|
+
open: v.value,
|
|
5197
5223
|
bodyStyle: {
|
|
5198
5224
|
padding: 0
|
|
5199
5225
|
},
|
|
@@ -5201,7 +5227,7 @@ const {
|
|
|
5201
5227
|
}, {
|
|
5202
5228
|
default: () => [n(zi, {
|
|
5203
5229
|
settingValue: w.value,
|
|
5204
|
-
onChange: (F, P,
|
|
5230
|
+
onChange: (F, P, W) => E(F, W, {
|
|
5205
5231
|
subKey: P
|
|
5206
5232
|
})
|
|
5207
5233
|
}, null)]
|
|
@@ -5717,7 +5743,7 @@ const {
|
|
|
5717
5743
|
opacity: 0,
|
|
5718
5744
|
transform: "translate3d(0, 2000px, 0)"
|
|
5719
5745
|
}
|
|
5720
|
-
}),
|
|
5746
|
+
}), Ml = new S("fadeOutUpBig", {
|
|
5721
5747
|
from: {
|
|
5722
5748
|
opacity: 1
|
|
5723
5749
|
},
|
|
@@ -5725,7 +5751,7 @@ const {
|
|
|
5725
5751
|
opacity: 0,
|
|
5726
5752
|
transform: "translate3d(0, -2000px, 0)"
|
|
5727
5753
|
}
|
|
5728
|
-
}),
|
|
5754
|
+
}), Bl = new S("fadeOutLeftBig", {
|
|
5729
5755
|
from: {
|
|
5730
5756
|
opacity: 1
|
|
5731
5757
|
},
|
|
@@ -5857,11 +5883,11 @@ const {
|
|
|
5857
5883
|
},
|
|
5858
5884
|
"&.fadeOutUpBig": {
|
|
5859
5885
|
animationFillMode: "both",
|
|
5860
|
-
animationName:
|
|
5886
|
+
animationName: Ml
|
|
5861
5887
|
},
|
|
5862
5888
|
"&.fadeOutLeftBig": {
|
|
5863
5889
|
animationFillMode: "both",
|
|
5864
|
-
animationName:
|
|
5890
|
+
animationName: Bl
|
|
5865
5891
|
},
|
|
5866
5892
|
"&.fadeOutRightBig": {
|
|
5867
5893
|
animationFillMode: "both",
|
|
@@ -6392,7 +6418,7 @@ const {
|
|
|
6392
6418
|
transform: "translate3d(0, 100%, 0)",
|
|
6393
6419
|
visibility: "hidden"
|
|
6394
6420
|
}
|
|
6395
|
-
}),
|
|
6421
|
+
}), Mr = new S("slideOutLeft", {
|
|
6396
6422
|
from: {
|
|
6397
6423
|
transform: "translate3d(0, 0, 0)"
|
|
6398
6424
|
},
|
|
@@ -6400,7 +6426,7 @@ const {
|
|
|
6400
6426
|
transform: "translate3d(-100%, 0, 0)",
|
|
6401
6427
|
visibility: "hidden"
|
|
6402
6428
|
}
|
|
6403
|
-
}),
|
|
6429
|
+
}), Br = new S("slideOutRight", {
|
|
6404
6430
|
from: {
|
|
6405
6431
|
transform: "translate3d(0, 0, 0)"
|
|
6406
6432
|
},
|
|
@@ -6440,11 +6466,11 @@ const {
|
|
|
6440
6466
|
},
|
|
6441
6467
|
"&.slideOutLeft": {
|
|
6442
6468
|
animationFillMode: "both",
|
|
6443
|
-
animationName:
|
|
6469
|
+
animationName: Mr
|
|
6444
6470
|
},
|
|
6445
6471
|
"&.slideOutRight": {
|
|
6446
6472
|
animationFillMode: "both",
|
|
6447
|
-
animationName:
|
|
6473
|
+
animationName: Br
|
|
6448
6474
|
},
|
|
6449
6475
|
"&.slideOutUp": {
|
|
6450
6476
|
animationFillMode: "both",
|
|
@@ -6565,7 +6591,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6565
6591
|
}, [a]);
|
|
6566
6592
|
}
|
|
6567
6593
|
return e;
|
|
6568
|
-
},
|
|
6594
|
+
}, Hn = /* @__PURE__ */ j({
|
|
6569
6595
|
props: {
|
|
6570
6596
|
hashId: String,
|
|
6571
6597
|
baseClassName: String,
|
|
@@ -6586,7 +6612,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6586
6612
|
class: `${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()
|
|
6587
6613
|
}, [n("div", {
|
|
6588
6614
|
class: `${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()
|
|
6589
|
-
}, [a.title]), n(
|
|
6615
|
+
}, [a.title]), n(Hn, {
|
|
6590
6616
|
hashId: e.hashId,
|
|
6591
6617
|
onItemClick: e.onItemClick,
|
|
6592
6618
|
appList: a == null ? void 0 : a.children,
|
|
@@ -6606,7 +6632,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6606
6632
|
})])]);
|
|
6607
6633
|
};
|
|
6608
6634
|
}
|
|
6609
|
-
}),
|
|
6635
|
+
}), jn = /* @__PURE__ */ j({
|
|
6610
6636
|
props: {
|
|
6611
6637
|
hashId: String,
|
|
6612
6638
|
baseClassName: String,
|
|
@@ -6627,7 +6653,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6627
6653
|
class: `${e.baseClassName}-content-list-item-group ${e.hashId}`.trim()
|
|
6628
6654
|
}, [n("div", {
|
|
6629
6655
|
class: `${e.baseClassName}-content-list-item-group-title ${e.hashId}`.trim()
|
|
6630
|
-
}, [a.title]), n(
|
|
6656
|
+
}, [a.title]), n(jn, {
|
|
6631
6657
|
hashId: e.hashId,
|
|
6632
6658
|
onItemClick: e.onItemClick,
|
|
6633
6659
|
appList: a == null ? void 0 : a.children,
|
|
@@ -6643,7 +6669,7 @@ const rs = /* @__PURE__ */ j({
|
|
|
6643
6669
|
href: e.onItemClick ? void 0 : a.url,
|
|
6644
6670
|
target: a.target,
|
|
6645
6671
|
rel: "noreferrer"
|
|
6646
|
-
}, [n(
|
|
6672
|
+
}, [n(Mo, {
|
|
6647
6673
|
logo: a.icon
|
|
6648
6674
|
}, null), n("div", null, [n("div", null, [a.title]), a.desc ? n("span", null, [a.desc]) : null])])]);
|
|
6649
6675
|
})])]);
|
|
@@ -6665,12 +6691,12 @@ const rs = /* @__PURE__ */ j({
|
|
|
6665
6691
|
};
|
|
6666
6692
|
return () => {
|
|
6667
6693
|
var s;
|
|
6668
|
-
return ((s = e.appList) == null ? void 0 : s.some((r) => !(r != null && r.desc))) ? a(n(
|
|
6694
|
+
return ((s = e.appList) == null ? void 0 : s.some((r) => !(r != null && r.desc))) ? a(n(Hn, {
|
|
6669
6695
|
hashId: o.value,
|
|
6670
6696
|
appList: e.appList,
|
|
6671
6697
|
onItemClick: e.onItemClick ? i : void 0,
|
|
6672
6698
|
baseClassName: `${t}-simple`
|
|
6673
|
-
}, null)) : a(n(
|
|
6699
|
+
}, null)) : a(n(jn, {
|
|
6674
6700
|
hashId: o.value,
|
|
6675
6701
|
appList: e.appList,
|
|
6676
6702
|
onItemClick: e.onItemClick ? i : void 0,
|
|
@@ -6681,10 +6707,10 @@ const rs = /* @__PURE__ */ j({
|
|
|
6681
6707
|
});
|
|
6682
6708
|
export {
|
|
6683
6709
|
ss as AppsLogoList,
|
|
6684
|
-
|
|
6710
|
+
Cn as BaseMenu,
|
|
6685
6711
|
Zo as DefaultHeader,
|
|
6686
6712
|
ts as GProLayout,
|
|
6687
|
-
|
|
6713
|
+
Wt as GlobalFooter,
|
|
6688
6714
|
os as PageContainer,
|
|
6689
6715
|
so as PageLoading,
|
|
6690
6716
|
ns as PageLock,
|
|
@@ -6692,7 +6718,7 @@ export {
|
|
|
6692
6718
|
as as RightContent,
|
|
6693
6719
|
bi as SearchPageInput,
|
|
6694
6720
|
ls as SettingDrawer,
|
|
6695
|
-
|
|
6721
|
+
Gt as SiderMenuWrapper,
|
|
6696
6722
|
Tt as animateSeting,
|
|
6697
6723
|
st as baseMenuProps,
|
|
6698
6724
|
Xo as checkThemeStatus,
|
|
@@ -6700,14 +6726,14 @@ export {
|
|
|
6700
6726
|
Bn as coverToNewToken,
|
|
6701
6727
|
to as defaultContextKey,
|
|
6702
6728
|
jo as filterTree,
|
|
6703
|
-
|
|
6729
|
+
Mn as findLastKey,
|
|
6704
6730
|
Do as flatMap,
|
|
6705
|
-
|
|
6731
|
+
$n as getLastPath,
|
|
6706
6732
|
Ho as getMatchedList,
|
|
6707
6733
|
No as getMenuData,
|
|
6708
6734
|
Ao as getMenuFirstChildren,
|
|
6709
6735
|
_o as handleThemeConfig,
|
|
6710
|
-
|
|
6736
|
+
Rn as hanlePathKey,
|
|
6711
6737
|
no as provideProLayoutContext,
|
|
6712
6738
|
Vo as removeDuplicatesByName,
|
|
6713
6739
|
is as useLayoutMenu,
|