@gx-design-vue/pro-layout 0.1.0-beta.63 → 0.1.0-beta.64
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 +78 -80
- package/dist/pro-layout.umd.cjs +2 -2
- package/package.json +2 -2
package/dist/pro-layout.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createVNode as t, defineComponent as E, createTextVNode as X, mergeProps as J, toRefs as qe, ref as me, reactive as Re, watch as ue, computed as R, unref as
|
|
1
|
+
import { createVNode as t, defineComponent as E, createTextVNode as X, mergeProps as J, toRefs as qe, ref as me, reactive as Re, watch as ue, computed as R, unref as ie, Fragment as Z, withDirectives as Tn, vShow as Dn, isVNode as Be, resolveComponent as Yt, nextTick as gt, watchEffect as zn, onMounted as Gt, Transition as Nn } from "vue";
|
|
2
2
|
import { pick as ce, cloneDeep as we, omit as Pe } from "lodash-es";
|
|
3
3
|
import { LayoutFooter as An, Spin as yt, Tabs as bt, Menu as ge, Dropdown as st, Layout as je, Popover as Hn, Badge as jn, ConfigProvider as vt, Drawer as Ve, Avatar as qt, Form as kt, Input as Qt, Button as Ye, Empty as Ft, MenuItem as Pt, Breadcrumb as En, Card as Kn, Tooltip as Qe, List as Se, Switch as Zt, TabPane as Wn, Select as _e, message as Un, Segmented as _n, Divider as ot, Alert as Xn } from "ant-design-vue";
|
|
4
4
|
import { useLocalStorage as Ze, useWindowSize as Vn, useColorMode as Yn, useStyleTag as Gn, useMagicKeys as Jt, whenever as ut, useThrottleFn as qn, onKeyStroke as it, useFullscreen as Qn, useDebounceFn as Zn, useClipboard as Jn } from "@vueuse/core";
|
|
5
5
|
import { useState as be, useMemo as ct, useMergedState as Te, useMediaQuery as en } from "@gx-design-vue/pro-hooks";
|
|
6
|
-
import {
|
|
6
|
+
import { getPrefixCls as ne, arrayRepeat as ea, getSlotVNode as Ie, classNames as G, isBoolean as te, merge as ve, isNumber as ta, isArray as pt, isUrl as Ct, isImg as na, isObject as aa, getLevelData as xt, deepCopy as oa, convertValueBoolean as St, getRandomNumber as Tt, getSlot as oe, getSlotsProps as ia, isWindowsOs as la, isDeepEqualReact as ra, isBrowser as sa } from "@gx-design-vue/pro-utils";
|
|
7
7
|
import ua, { themeConfig as Q, useContext as ca, useProStyle as fe, useStyle as ke, mergeToken as ze, resetComponent as da, getTokenLayoutTheme as Ne, Keyframe as p, checkMenuDark as Je, getDefaultLayoutToken as et, useProConfigContext as Me, getLayoutTheme as tn, useProForm as ma, unit as nn, setAlpha as fa, defaultSystemTheme as ha, defaultLayout as ga, colorList as ya } from "@gx-design-vue/pro-provider";
|
|
8
8
|
import { createTypes as ba } from "vue-types";
|
|
9
9
|
import { spinProps as va } from "ant-design-vue/es/spin";
|
|
@@ -172,7 +172,7 @@ const $e = {
|
|
|
172
172
|
onSelect: {
|
|
173
173
|
type: Function
|
|
174
174
|
}
|
|
175
|
-
},
|
|
175
|
+
}, le = {
|
|
176
176
|
...$e,
|
|
177
177
|
...at,
|
|
178
178
|
menuLoading: W.looseBool,
|
|
@@ -251,7 +251,7 @@ const $e = {
|
|
|
251
251
|
menuLoading: Boolean,
|
|
252
252
|
autoHideHeader: Boolean,
|
|
253
253
|
isMobile: Boolean,
|
|
254
|
-
siderWidth:
|
|
254
|
+
siderWidth: le.siderWidth,
|
|
255
255
|
menuData: {
|
|
256
256
|
type: Array,
|
|
257
257
|
default: () => []
|
|
@@ -276,12 +276,12 @@ const $e = {
|
|
|
276
276
|
default: () => {
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
|
-
collapsedButtonRender:
|
|
280
|
-
matchMenuKeys:
|
|
281
|
-
onCollapse:
|
|
282
|
-
onOpenKeys:
|
|
279
|
+
collapsedButtonRender: le.collapsedButtonRender,
|
|
280
|
+
matchMenuKeys: le.matchMenuKeys,
|
|
281
|
+
onCollapse: le.onCollapse,
|
|
282
|
+
onOpenKeys: le.onOpenKeys,
|
|
283
283
|
onMenuHeaderClick: Function,
|
|
284
|
-
onSelect:
|
|
284
|
+
onSelect: le.onSelect
|
|
285
285
|
}, cn = {
|
|
286
286
|
...It,
|
|
287
287
|
headerTitleRender: {
|
|
@@ -300,14 +300,14 @@ const $e = {
|
|
|
300
300
|
}
|
|
301
301
|
},
|
|
302
302
|
hasSiderMenu: Boolean,
|
|
303
|
-
collapsedWidth:
|
|
304
|
-
siderWidth:
|
|
303
|
+
collapsedWidth: le.collapsedWidth,
|
|
304
|
+
siderWidth: le.siderWidth
|
|
305
305
|
}, mt = {
|
|
306
306
|
loading: W.looseBool,
|
|
307
|
-
isMobile:
|
|
307
|
+
isMobile: le.isMobile,
|
|
308
308
|
collapsed: at.collapsed,
|
|
309
|
-
siderWidth:
|
|
310
|
-
collapsedWidth:
|
|
309
|
+
siderWidth: le.siderWidth,
|
|
310
|
+
collapsedWidth: le.collapsedWidth,
|
|
311
311
|
fixedTabsBar: $e.fixedTabsBar,
|
|
312
312
|
storageTabsBar: $e.storageTabsBar,
|
|
313
313
|
visible: {
|
|
@@ -390,31 +390,29 @@ const $e = {
|
|
|
390
390
|
}
|
|
391
391
|
},
|
|
392
392
|
setup(e) {
|
|
393
|
-
const {
|
|
394
|
-
getPrefixCls: n
|
|
395
|
-
} = re(), a = n({
|
|
393
|
+
const n = re(), o = ((n == null ? void 0 : n.getPrefixCls) || ne)({
|
|
396
394
|
suffixCls: "global-footer",
|
|
397
395
|
isPor: !0
|
|
398
396
|
}), {
|
|
399
|
-
wrapSSR:
|
|
400
|
-
hashId:
|
|
401
|
-
} = fe("ProLayoutFooter", [Va],
|
|
402
|
-
return () =>
|
|
397
|
+
wrapSSR: i,
|
|
398
|
+
hashId: l
|
|
399
|
+
} = fe("ProLayoutFooter", [Va], o);
|
|
400
|
+
return () => i(t(An, {
|
|
403
401
|
style: {
|
|
404
402
|
padding: 0
|
|
405
403
|
}
|
|
406
404
|
}, {
|
|
407
405
|
default: () => [t("div", {
|
|
408
|
-
class: [
|
|
406
|
+
class: [o, l.value]
|
|
409
407
|
}, [e.links && t("div", {
|
|
410
|
-
class: `${
|
|
411
|
-
}, [e.links.map((
|
|
412
|
-
key:
|
|
413
|
-
title:
|
|
414
|
-
target:
|
|
415
|
-
href:
|
|
416
|
-
}, [
|
|
417
|
-
class: `${
|
|
408
|
+
class: `${o}-links ${l.value}`
|
|
409
|
+
}, [e.links.map((r) => t("a", {
|
|
410
|
+
key: r.key,
|
|
411
|
+
title: r.key,
|
|
412
|
+
target: r.blankTarget ? "_blank" : "_self",
|
|
413
|
+
href: r.href
|
|
414
|
+
}, [r.title]))]), e.copyright && t("div", {
|
|
415
|
+
class: `${o}-copyright ${l.value}`
|
|
418
416
|
}, [X("Copyright "), xe().format("YYYY"), X(" "), t("a", {
|
|
419
417
|
href: "https://beian.miit.gov.cn/"
|
|
420
418
|
}, [e.copyright])])])]
|
|
@@ -431,7 +429,7 @@ const $e = {
|
|
|
431
429
|
...Rt,
|
|
432
430
|
...$e,
|
|
433
431
|
...It,
|
|
434
|
-
...
|
|
432
|
+
...le,
|
|
435
433
|
...cn,
|
|
436
434
|
...ce(mt, ["onTabsChange", "onReloadPage", "onUpdate:tabs"]),
|
|
437
435
|
pageContainerProps: {
|
|
@@ -696,7 +694,7 @@ const Ke = /* @__PURE__ */ E({
|
|
|
696
694
|
setup(e, {
|
|
697
695
|
attrs: n
|
|
698
696
|
}) {
|
|
699
|
-
const a =
|
|
697
|
+
const a = ne({
|
|
700
698
|
suffixCls: "icon"
|
|
701
699
|
}), {
|
|
702
700
|
hashId: o,
|
|
@@ -818,7 +816,7 @@ const so = bt.TabPane, uo = ge.Item, co = /* @__PURE__ */ E({
|
|
|
818
816
|
};
|
|
819
817
|
});
|
|
820
818
|
const v = R(() => u.fixed.concat(u.normal)), m = R(() => f.value === "mix" && !e.isMobile && d.value), S = R(() => V(r.currentRoute.value)), x = R(() => a.value && !n.value), O = R(() => {
|
|
821
|
-
const y = !(m.value &&
|
|
819
|
+
const y = !(m.value && ie(h.value).length === 0 || C.value.length === 0 || f.value === "top");
|
|
822
820
|
return x.value && y ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
|
|
823
821
|
}), g = R(() => G(`${w}-wrap`, {
|
|
824
822
|
[`${b.value}`]: !0,
|
|
@@ -875,7 +873,7 @@ const so = bt.TabPane, uo = ge.Item, co = /* @__PURE__ */ E({
|
|
|
875
873
|
}
|
|
876
874
|
}, _ = (y) => {
|
|
877
875
|
y.forEach((L) => {
|
|
878
|
-
M(L) && U(
|
|
876
|
+
M(L) && U(ie(L));
|
|
879
877
|
});
|
|
880
878
|
};
|
|
881
879
|
ue(() => C.value, (y) => {
|
|
@@ -972,7 +970,7 @@ const so = bt.TabPane, uo = ge.Item, co = /* @__PURE__ */ E({
|
|
|
972
970
|
return v.value.filter((N, H) => H < z && !M(N)).length === 0;
|
|
973
971
|
if (y === "closeRightTabs")
|
|
974
972
|
return v.value.filter((N, H) => H > z && !M(N)).length === 0;
|
|
975
|
-
},
|
|
973
|
+
}, ae = (y) => {
|
|
976
974
|
let L;
|
|
977
975
|
const {
|
|
978
976
|
path: z,
|
|
@@ -1011,7 +1009,7 @@ const so = bt.TabPane, uo = ge.Item, co = /* @__PURE__ */ E({
|
|
|
1011
1009
|
const L = e.itemRender ? e.itemRender(y) : null, z = M(y);
|
|
1012
1010
|
return t(st, {
|
|
1013
1011
|
trigger: "contextmenu",
|
|
1014
|
-
overlay: t(
|
|
1012
|
+
overlay: t(ae, {
|
|
1015
1013
|
path: V(y) || "",
|
|
1016
1014
|
stateType: "contextMenuActiveKey"
|
|
1017
1015
|
}, null),
|
|
@@ -1068,7 +1066,7 @@ const so = bt.TabPane, uo = ge.Item, co = /* @__PURE__ */ E({
|
|
|
1068
1066
|
}, null), t("div", {
|
|
1069
1067
|
class: [`${w}-dropdown-menu-btn-divider`, b.value]
|
|
1070
1068
|
}, null), t(st, {
|
|
1071
|
-
overlay: t(
|
|
1069
|
+
overlay: t(ae, {
|
|
1072
1070
|
path: l.activeKey,
|
|
1073
1071
|
stateType: "activeKey"
|
|
1074
1072
|
}, null)
|
|
@@ -1436,7 +1434,7 @@ const fo = (e) => ({
|
|
|
1436
1434
|
setup(e, {
|
|
1437
1435
|
slots: n
|
|
1438
1436
|
}) {
|
|
1439
|
-
const a =
|
|
1437
|
+
const a = ne({
|
|
1440
1438
|
suffixCls: "layout-app",
|
|
1441
1439
|
isPor: !0
|
|
1442
1440
|
}), {
|
|
@@ -2050,7 +2048,7 @@ function Ht(e) {
|
|
|
2050
2048
|
const {
|
|
2051
2049
|
Sider: zo
|
|
2052
2050
|
} = je, Sn = (e) => e ? t(La, null, null) : t(Oa, null, null), jt = /* @__PURE__ */ E({
|
|
2053
|
-
props:
|
|
2051
|
+
props: le,
|
|
2054
2052
|
inheritAttrs: !1,
|
|
2055
2053
|
setup(e) {
|
|
2056
2054
|
const {
|
|
@@ -2084,13 +2082,13 @@ const {
|
|
|
2084
2082
|
hashId: U
|
|
2085
2083
|
} = fe("ProLayoutSiderMenu", [So, xo, Co, pn, (F) => {
|
|
2086
2084
|
var pe, Ce;
|
|
2087
|
-
const Y = (pe = F == null ? void 0 : F.layout) == null ? void 0 : pe.sider,
|
|
2085
|
+
const Y = (pe = F == null ? void 0 : F.layout) == null ? void 0 : pe.sider, ae = et("sider", F, (Ce = F.layout) == null ? void 0 : Ce.key), {
|
|
2088
2086
|
dark: he
|
|
2089
2087
|
} = Ne(F), ee = Je(F, "sider");
|
|
2090
2088
|
return {
|
|
2091
2089
|
[`${F.proComponentsCls}-basic-layout`]: {
|
|
2092
2090
|
[F.componentCls]: {
|
|
2093
|
-
background: (Y == null ? void 0 : Y.colorBgMenu) || (
|
|
2091
|
+
background: (Y == null ? void 0 : Y.colorBgMenu) || (ae == null ? void 0 : ae.colorBgMenu),
|
|
2094
2092
|
boxShadow: ee || he ? "#0d0d0da6 0 2px 8px" : "2px 0 8px 0 rgba(29,35,41,.05)",
|
|
2095
2093
|
[`${F.componentCls}-footer`]: {
|
|
2096
2094
|
color: Y == null ? void 0 : Y.colorTextMenu
|
|
@@ -2120,7 +2118,7 @@ const {
|
|
|
2120
2118
|
}, [() => e.collapsedButtonRender, () => e.isMobile, () => e.collapsed]), K = (F) => {
|
|
2121
2119
|
var Y;
|
|
2122
2120
|
if (e.onSelect) {
|
|
2123
|
-
if (
|
|
2121
|
+
if (ie(T)) {
|
|
2124
2122
|
e.onSelect([(Y = a == null ? void 0 : a.value) == null ? void 0 : Y[0], ...F]);
|
|
2125
2123
|
return;
|
|
2126
2124
|
}
|
|
@@ -2136,7 +2134,7 @@ const {
|
|
|
2136
2134
|
drawer: $.value
|
|
2137
2135
|
}, e), {
|
|
2138
2136
|
default: () => [B.value]
|
|
2139
|
-
}) : null,
|
|
2137
|
+
}) : null, ae = e.menuExtraRender && ((Ce = e.menuExtraRender) == null ? void 0 : Ce.call(e, e)), he = e.menuLinksRender, ee = e.siderActionsRender, pe = t(yn, {
|
|
2140
2138
|
class: `${O}-menu ${U.value}`,
|
|
2141
2139
|
theme: j.value,
|
|
2142
2140
|
mode: "inline",
|
|
@@ -2156,7 +2154,7 @@ const {
|
|
|
2156
2154
|
},
|
|
2157
2155
|
onSelect: K
|
|
2158
2156
|
}, null);
|
|
2159
|
-
return T.value &&
|
|
2157
|
+
return T.value && ie(o.value).length === 0 && e.suppressSiderWhenMenuEmpty || _.value.length === 0 && e.suppressSiderWhenMenuEmpty ? null : M(t(vt, {
|
|
2160
2158
|
theme: {
|
|
2161
2159
|
components: {
|
|
2162
2160
|
Menu: xn({
|
|
@@ -2205,9 +2203,9 @@ const {
|
|
|
2205
2203
|
}, [t(yt, {
|
|
2206
2204
|
spinning: w.value,
|
|
2207
2205
|
indicator: (Le = C == null ? void 0 : C.indicator) == null ? void 0 : Le.value
|
|
2208
|
-
}, null)]), Y || null,
|
|
2206
|
+
}, null)]), Y || null, ae && t("div", {
|
|
2209
2207
|
class: G([U.value, `${O}-extra`, !Y && `${O}-extra-no-logo`])
|
|
2210
|
-
}, [
|
|
2208
|
+
}, [ae]), t("div", {
|
|
2211
2209
|
style: {
|
|
2212
2210
|
flex: "1 1 0%",
|
|
2213
2211
|
overflow: "hidden auto"
|
|
@@ -2242,7 +2240,7 @@ const {
|
|
|
2242
2240
|
};
|
|
2243
2241
|
}
|
|
2244
2242
|
}), wn = {
|
|
2245
|
-
...
|
|
2243
|
+
...le,
|
|
2246
2244
|
...It
|
|
2247
2245
|
}, No = (e, n) => e === !1 ? null : e ? e(n, null) : n, Ao = /* @__PURE__ */ E({
|
|
2248
2246
|
props: wn,
|
|
@@ -2347,10 +2345,10 @@ const {
|
|
|
2347
2345
|
}, [t("a", null, [vn(e.logo)])]);
|
|
2348
2346
|
return d(t("div", {
|
|
2349
2347
|
class: c.value
|
|
2350
|
-
}, [e.isMobile ? t(Z, null, [No(e.menuHeaderRender, m), e.isMobile &&
|
|
2348
|
+
}, [e.isMobile ? t(Z, null, [No(e.menuHeaderRender, m), e.isMobile && ie(u) && t("span", {
|
|
2351
2349
|
class: `${f}-collapsed-button ${$.value}`,
|
|
2352
2350
|
onClick: I
|
|
2353
|
-
}, [
|
|
2351
|
+
}, [ie(u)(e.collapsed)]), v()]) : ["mix", "wide", "top"].includes(e.layout) ? t("div", {
|
|
2354
2352
|
style: {
|
|
2355
2353
|
width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
|
|
2356
2354
|
padding: e.layout === "wide" && h.value < e.wideWidth ? "0 50px" : void 0
|
|
@@ -2409,7 +2407,7 @@ const {
|
|
|
2409
2407
|
const U = (ye = M.layout) == null ? void 0 : ye.header, _ = et("header", M, (se = M.layout) == null ? void 0 : se.key), q = Je(M, "header");
|
|
2410
2408
|
return {
|
|
2411
2409
|
[`${M.proComponentsCls}-basic-layout`]: {
|
|
2412
|
-
[`${M.antCls}-layout-header${M.componentCls}${M.componentCls}-${
|
|
2410
|
+
[`${M.antCls}-layout-header${M.componentCls}${M.componentCls}-${ie(d.value.key)}`]: {
|
|
2413
2411
|
color: q ? M.colorWhite : M.colorText,
|
|
2414
2412
|
backgroundColor: (U == null ? void 0 : U.colorBgMenu) || (_ == null ? void 0 : _.colorBgMenu),
|
|
2415
2413
|
boxShadow: s.value ? "#0d0d0da6 0 2px 8px" : "",
|
|
@@ -2499,7 +2497,7 @@ const {
|
|
|
2499
2497
|
name: "SiderMenuWrapper",
|
|
2500
2498
|
inheritAttrs: !1,
|
|
2501
2499
|
props: {
|
|
2502
|
-
...
|
|
2500
|
+
...le,
|
|
2503
2501
|
matchMenuKeys: {
|
|
2504
2502
|
type: Array,
|
|
2505
2503
|
default: () => []
|
|
@@ -2637,7 +2635,7 @@ const Ko = /* @__PURE__ */ E({
|
|
|
2637
2635
|
setup(e, {
|
|
2638
2636
|
slots: n
|
|
2639
2637
|
}) {
|
|
2640
|
-
const a =
|
|
2638
|
+
const a = ne({
|
|
2641
2639
|
suffixCls: "basic-layout",
|
|
2642
2640
|
isPor: !0
|
|
2643
2641
|
});
|
|
@@ -2666,7 +2664,7 @@ const Ko = /* @__PURE__ */ E({
|
|
|
2666
2664
|
theme: s.value ? "dark" : e.theme
|
|
2667
2665
|
})), v = R(() => (l.value === "sm" || l.value === "xs") && !e.disableMobile && !I.value), m = R(() => ({
|
|
2668
2666
|
...e.breadcrumb || {},
|
|
2669
|
-
itemRender:
|
|
2667
|
+
itemRender: oe(n, e, "pageContainerProps:breadcrumbRender")
|
|
2670
2668
|
})), S = R(() => c.value && e.selectedKeys ? Mo(e.menuData, e.selectedKeys[0]) : []), x = ct(() => d.value ? 0 : e.siderWidth ? e.siderWidth : e.layout === "mix" ? 215 : e.layout === "wide" ? 208 : 256, [() => e.layout, () => e.siderWidth, () => d.value]);
|
|
2671
2669
|
ue([() => e.layout, () => e.theme], ([g]) => {
|
|
2672
2670
|
(g === "wide" || g === "simple") && (d.value = !1), C.value = Tt().uuid(10);
|
|
@@ -2681,7 +2679,7 @@ const Ko = /* @__PURE__ */ E({
|
|
|
2681
2679
|
}), null);
|
|
2682
2680
|
return Ga({
|
|
2683
2681
|
...ce(qe(e), Ya),
|
|
2684
|
-
getPrefixCls:
|
|
2682
|
+
getPrefixCls: ne,
|
|
2685
2683
|
menuState: u,
|
|
2686
2684
|
lockOpen: h,
|
|
2687
2685
|
settingsOpen: f,
|
|
@@ -2699,7 +2697,7 @@ const Ko = /* @__PURE__ */ E({
|
|
|
2699
2697
|
var Y;
|
|
2700
2698
|
const g = ia(hn, n, e, {
|
|
2701
2699
|
render: !0
|
|
2702
|
-
}), T =
|
|
2700
|
+
}), T = oe(n, e, "collapsedButtonRender"), D = oe(n, e, "footerRender"), j = oe(n, e, "headerRender"), M = oe(n, e, "headerContentRender"), U = oe(n, e, "rightContentRender"), _ = oe(n, e, "tabsRouteItemRender"), q = oe(n, e, "menuItemRender"), ye = oe(n, e, "menuExtraRender"), se = oe(n, e, "menuHeaderRender"), B = oe(n, e, "menuFooterRender"), k = oe(n, e, "subMenuItemRender"), P = oe(n, e, "menuContentRender"), K = O({
|
|
2703
2701
|
...e,
|
|
2704
2702
|
...ce(g, fn),
|
|
2705
2703
|
menuItemRender: q,
|
|
@@ -2752,8 +2750,8 @@ const Ko = /* @__PURE__ */ E({
|
|
|
2752
2750
|
itemRender: _
|
|
2753
2751
|
}, ce(e, Ja)), {
|
|
2754
2752
|
default: () => {
|
|
2755
|
-
var
|
|
2756
|
-
return [(
|
|
2753
|
+
var ae;
|
|
2754
|
+
return [(ae = n.default) == null ? void 0 : ae.call(n)];
|
|
2757
2755
|
}
|
|
2758
2756
|
}), D ? typeof D == "function" ? D(e) : D : t(At, {
|
|
2759
2757
|
copyright: g.copyrightRender,
|
|
@@ -3180,7 +3178,7 @@ const Go = /* @__PURE__ */ E({
|
|
|
3180
3178
|
props: Uo,
|
|
3181
3179
|
emits: ["update:open", "openChange"],
|
|
3182
3180
|
setup(e) {
|
|
3183
|
-
const n =
|
|
3181
|
+
const n = ne({
|
|
3184
3182
|
suffixCls: "page-lock",
|
|
3185
3183
|
isPor: !0
|
|
3186
3184
|
}), a = re(), {
|
|
@@ -3370,7 +3368,7 @@ const ei = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3370
3368
|
onClose: Function
|
|
3371
3369
|
},
|
|
3372
3370
|
setup(e) {
|
|
3373
|
-
const n = nt(), a = Ze(e.historyKey ||
|
|
3371
|
+
const n = nt(), a = Ze(e.historyKey || ne({
|
|
3374
3372
|
suffixCls: "layout-search-history",
|
|
3375
3373
|
isPor: !0
|
|
3376
3374
|
}), []), o = me(0), i = me([]), l = qn(r, 200);
|
|
@@ -3501,7 +3499,7 @@ const ei = /* @__PURE__ */ new Set(["$", "(", ")", "*", "+", ".", "?", "[", "\\"
|
|
|
3501
3499
|
}
|
|
3502
3500
|
},
|
|
3503
3501
|
setup(e) {
|
|
3504
|
-
const n =
|
|
3502
|
+
const n = ne({
|
|
3505
3503
|
suffixCls: "page-search",
|
|
3506
3504
|
isPor: !0
|
|
3507
3505
|
}), {
|
|
@@ -3651,7 +3649,7 @@ const Gr = /* @__PURE__ */ E({
|
|
|
3651
3649
|
const {
|
|
3652
3650
|
isFullscreen: a,
|
|
3653
3651
|
toggle: o
|
|
3654
|
-
} = Qn(), i = Me(), l = re(), r = en(), s =
|
|
3652
|
+
} = Qn(), i = Me(), l = re(), r = en(), s = ne({
|
|
3655
3653
|
suffixCls: "global-header",
|
|
3656
3654
|
isPor: !0
|
|
3657
3655
|
}), [C, h] = be(!1), {
|
|
@@ -3695,7 +3693,7 @@ const Gr = /* @__PURE__ */ E({
|
|
|
3695
3693
|
e != null && e.onLogout && (h(!0), e.onLogout(() => h(!1)));
|
|
3696
3694
|
};
|
|
3697
3695
|
return () => {
|
|
3698
|
-
const g = Ie(n, e, "dropdownMenuRender"), T = Ie(n, e, "dropdownRender"), D = Ie(n, e, "dropdownMenuExtraItemRender"), j =
|
|
3696
|
+
const g = Ie(n, e, "dropdownMenuRender"), T = Ie(n, e, "dropdownRender"), D = Ie(n, e, "dropdownMenuExtraItemRender"), j = oe(n, e, "actionsRender"), M = a.value ? Ta : Da;
|
|
3699
3697
|
return f(t("div", {
|
|
3700
3698
|
class: `${s}-right-content ${d.value}`.trim(),
|
|
3701
3699
|
style: {
|
|
@@ -3826,7 +3824,7 @@ const Gr = /* @__PURE__ */ E({
|
|
|
3826
3824
|
breadcrumb: ft.breadcrumbRender
|
|
3827
3825
|
},
|
|
3828
3826
|
setup(e) {
|
|
3829
|
-
const n = re(), o = ((n == null ? void 0 : n.getPrefixCls) ||
|
|
3827
|
+
const n = re(), o = ((n == null ? void 0 : n.getPrefixCls) || ne)({
|
|
3830
3828
|
isPor: !0,
|
|
3831
3829
|
suffixCls: "page-header"
|
|
3832
3830
|
}), {
|
|
@@ -3913,7 +3911,7 @@ const qr = /* @__PURE__ */ E({
|
|
|
3913
3911
|
slots: n,
|
|
3914
3912
|
attrs: a
|
|
3915
3913
|
}) {
|
|
3916
|
-
const o = re(), i = wt(), l = Me(), r = (o == null ? void 0 : o.getPrefixCls) ||
|
|
3914
|
+
const o = re(), i = wt(), l = Me(), r = (o == null ? void 0 : o.getPrefixCls) || ne, s = r({
|
|
3917
3915
|
suffixCls: "page-container",
|
|
3918
3916
|
isPor: !0
|
|
3919
3917
|
}), C = r({
|
|
@@ -3976,7 +3974,7 @@ const qr = /* @__PURE__ */ E({
|
|
|
3976
3974
|
};
|
|
3977
3975
|
return () => {
|
|
3978
3976
|
var T, D;
|
|
3979
|
-
const x = Ie(n, e, "pageHeaderRender") || ((T = o == null ? void 0 : o.pageHeaderRender) == null ? void 0 : T.value), O =
|
|
3977
|
+
const x = Ie(n, e, "pageHeaderRender") || ((T = o == null ? void 0 : o.pageHeaderRender) == null ? void 0 : T.value), O = oe(n, e, "breadcrumbRender"), g = Ie(n, e, "contentRender");
|
|
3980
3978
|
return u(t("div", {
|
|
3981
3979
|
style: a.style,
|
|
3982
3980
|
class: {
|
|
@@ -4644,7 +4642,7 @@ const {
|
|
|
4644
4642
|
onChange: Function
|
|
4645
4643
|
},
|
|
4646
4644
|
setup(e) {
|
|
4647
|
-
const n =
|
|
4645
|
+
const n = ne({
|
|
4648
4646
|
suffixCls: "others",
|
|
4649
4647
|
isPor: !0
|
|
4650
4648
|
}), {
|
|
@@ -4796,10 +4794,10 @@ const {
|
|
|
4796
4794
|
props: Bi(),
|
|
4797
4795
|
emits: ["change", "layoutChange", "openChange", "update:open"],
|
|
4798
4796
|
setup(e) {
|
|
4799
|
-
const n = Me(), a = re(), o =
|
|
4797
|
+
const n = Me(), a = re(), o = ne({
|
|
4800
4798
|
suffixCls: "setting-drawer",
|
|
4801
4799
|
isPor: !0
|
|
4802
|
-
}), i = Re({}), l = Ze(
|
|
4800
|
+
}), i = Re({}), l = Ze(ne({
|
|
4803
4801
|
suffixCls: "settings-state",
|
|
4804
4802
|
isPor: !0
|
|
4805
4803
|
}), {}), {
|
|
@@ -4854,7 +4852,7 @@ const {
|
|
|
4854
4852
|
}, {
|
|
4855
4853
|
immediate: !0
|
|
4856
4854
|
});
|
|
4857
|
-
const T = R(() => e.colorList && pt(e.colorList) ? e.colorList : []), D = R(() => Do(
|
|
4855
|
+
const T = R(() => e.colorList && pt(e.colorList) ? e.colorList : []), D = R(() => Do(ie(S))), {
|
|
4858
4856
|
copy: j,
|
|
4859
4857
|
copied: M,
|
|
4860
4858
|
isSupported: U
|
|
@@ -4872,24 +4870,24 @@ const {
|
|
|
4872
4870
|
e.storage && (l.value.dark = B);
|
|
4873
4871
|
});
|
|
4874
4872
|
const _ = (B, k, P) => {
|
|
4875
|
-
var Y,
|
|
4873
|
+
var Y, ae, he;
|
|
4876
4874
|
const K = ["header", "sider"], F = {};
|
|
4877
4875
|
if (P != null && P.subKey && K.includes(B)) {
|
|
4878
4876
|
F[B] = {}, F[B][P == null ? void 0 : P.subKey] = k, (Y = e.onLayoutChange) == null || Y.call(e, ce(F, K));
|
|
4879
4877
|
return;
|
|
4880
4878
|
} else
|
|
4881
|
-
B === "animate" ? (F[B] = {}, P != null && P.subKey && (F[B][P == null ? void 0 : P.subKey] = k), (P == null ? void 0 : P.subKey) === "name" && (F[B].direction = (he = (
|
|
4879
|
+
B === "animate" ? (F[B] = {}, P != null && P.subKey && (F[B][P == null ? void 0 : P.subKey] = k), (P == null ? void 0 : P.subKey) === "name" && (F[B].direction = (he = (ae = Ri.find((ee) => ee.name === k)) == null ? void 0 : ae.directions) == null ? void 0 : he[0])) : F[B] = k;
|
|
4882
4880
|
if (B === "colorWeak") {
|
|
4883
4881
|
const ee = document.querySelector("body");
|
|
4884
4882
|
ee && (ee.dataset.prosettingdrawer = k === !0 ? ee.style.filter : ee.dataset.prosettingdrawer || "none", k === !0 && (ee.dataset.prosettingdrawer = ee.style.filter), ee.style.filter = k === !0 ? "invert(80%)" : ee.dataset.prosettingdrawer || "none", k || delete ee.dataset.prosettingdrawer);
|
|
4885
4883
|
}
|
|
4886
|
-
x(ve(
|
|
4884
|
+
x(ve(ie(S), {
|
|
4887
4885
|
...To(Pe(F, K))
|
|
4888
4886
|
}));
|
|
4889
4887
|
}, q = (B) => {
|
|
4890
4888
|
l.value.dark = B === "system" ? B : B === "dark", g(null, B === "system" ? B : B === "dark");
|
|
4891
4889
|
}, ye = () => {
|
|
4892
|
-
U.value && j(JSON.stringify(
|
|
4890
|
+
U.value && j(JSON.stringify(ie(S)));
|
|
4893
4891
|
}, se = () => {
|
|
4894
4892
|
x(Pe(we(i), "dark")), g(null, i.dark), l.value = we(i);
|
|
4895
4893
|
};
|
|
@@ -4971,7 +4969,7 @@ const {
|
|
|
4971
4969
|
}, {
|
|
4972
4970
|
default: () => [t(Ut, {
|
|
4973
4971
|
prefixCls: o,
|
|
4974
|
-
value:
|
|
4972
|
+
value: ie(S).layout,
|
|
4975
4973
|
key: "layout",
|
|
4976
4974
|
hashId: s.value,
|
|
4977
4975
|
configType: "layout",
|
|
@@ -5005,22 +5003,22 @@ const {
|
|
|
5005
5003
|
title: P
|
|
5006
5004
|
}) => t(Xe, {
|
|
5007
5005
|
label: P,
|
|
5008
|
-
disabled:
|
|
5009
|
-
value:
|
|
5006
|
+
disabled: ie(D)[k],
|
|
5007
|
+
value: ie(S)[k],
|
|
5010
5008
|
prefixCls: o,
|
|
5011
5009
|
hashId: s.value,
|
|
5012
5010
|
valueKey: k,
|
|
5013
5011
|
onChange: (K, F) => _(K, F)
|
|
5014
5012
|
}, null)), e.weakmode && t(Xe, {
|
|
5015
5013
|
label: "色弱模式",
|
|
5016
|
-
value:
|
|
5014
|
+
value: ie(S).colorWeak,
|
|
5017
5015
|
prefixCls: o,
|
|
5018
5016
|
hashId: s.value,
|
|
5019
5017
|
valueKey: "colorWeak",
|
|
5020
5018
|
onChange: (k, P) => _(k, P)
|
|
5021
5019
|
}, null), e.showProgress && t(Xe, {
|
|
5022
5020
|
label: "顶部进度条",
|
|
5023
|
-
value:
|
|
5021
|
+
value: ie(S).showProgressBar,
|
|
5024
5022
|
prefixCls: o,
|
|
5025
5023
|
hashId: s.value,
|
|
5026
5024
|
valueKey: "showProgressBar",
|
|
@@ -6385,7 +6383,7 @@ const Zr = /* @__PURE__ */ E({
|
|
|
6385
6383
|
setup(e, {
|
|
6386
6384
|
slots: n
|
|
6387
6385
|
}) {
|
|
6388
|
-
const a =
|
|
6386
|
+
const a = ne({
|
|
6389
6387
|
suffixCls: "page-transtion",
|
|
6390
6388
|
isPor: !0
|
|
6391
6389
|
}), {
|
|
@@ -6530,7 +6528,7 @@ const Zr = /* @__PURE__ */ E({
|
|
|
6530
6528
|
}), Jr = /* @__PURE__ */ E({
|
|
6531
6529
|
props: Ue,
|
|
6532
6530
|
setup(e) {
|
|
6533
|
-
const n =
|
|
6531
|
+
const n = ne({
|
|
6534
6532
|
suffixCls: "layout-app",
|
|
6535
6533
|
isPor: !0
|
|
6536
6534
|
}), {
|