@gx-design-vue/pro-layout 0.1.0-beta.44 → 0.1.0-beta.46
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 +781 -773
- package/dist/pro-layout.umd.cjs +1 -1
- package/dist/route.d.ts +4 -1
- package/package.json +1 -1
package/dist/pro-layout.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Spin as
|
|
3
|
-
import { useProAppContext as
|
|
4
|
-
import { useRouter as
|
|
1
|
+
import { defineComponent as W, createVNode as n, mergeProps as G, provide as it, readonly as Rt, inject as kt, resolveComponent as lt, computed as b, isVNode as re, Fragment as Q, toRefs as Ie, unref as U, createTextVNode as oe, ref as ke, reactive as rt, watch as me, withDirectives as Bt, vShow as $t, watchEffect as Ft, Transition as Tt } from "vue";
|
|
2
|
+
import { Spin as Ce, Menu as ie, ConfigProvider as Pe, Layout as fe, Drawer as ve, Breadcrumb as Pt, Card as Lt, LayoutFooter as Dt, Tabs as Le, Dropdown as Ye, Tooltip as Me, List as le, Switch as st, TabPane as Nt, Select as ye, message as zt, Divider as Re, Alert as Ht, Button as Vt } from "ant-design-vue";
|
|
3
|
+
import { useProAppContext as De } from "@gx-design-vue/pro-app";
|
|
4
|
+
import { useRouter as Ne, RouterLink as jt } from "vue-router";
|
|
5
5
|
import { createFromIconfontCN as Wt, MenuUnfoldOutlined as Kt, MenuFoldOutlined as At, GithubOutlined as Ut, EllipsisOutlined as Et, ReloadOutlined as Xt, CloseOutlined as dt, CheckOutlined as ut, SettingOutlined as Yt, NotificationOutlined as _t, CopyOutlined as Gt } from "@ant-design/icons-vue";
|
|
6
|
-
import qt, { themeConfig as
|
|
6
|
+
import qt, { themeConfig as j, Keyframe as s, useProStyle as ae, useProConfigContext as he, useStyle as ze, mergeToken as He, colorList as Zt } from "@gx-design-vue/pro-provider";
|
|
7
7
|
import { createTypes as Jt } from "vue-types";
|
|
8
|
-
import { cloneDeep as
|
|
8
|
+
import { cloneDeep as Ve, pick as se, omit as je } from "lodash-es";
|
|
9
9
|
import { GPorWaterMark as Qt } from "@gx-design-vue/pro-watermark";
|
|
10
|
-
import { isBoolean as _e, getSlot as K, getPrefixCls as
|
|
11
|
-
import { useMediaQuery as on, useState as
|
|
10
|
+
import { isBoolean as _e, getSlot as K, getPrefixCls as ge, classNames as ct, getLevelData as en, isArray as tn, isBrowser as nn, merge as an } from "@gx-design-vue/pro-utils";
|
|
11
|
+
import { useMediaQuery as on, useState as xe, useMergedState as ln } from "@gx-design-vue/pro-hooks";
|
|
12
12
|
import { useWindowSize as rn, useClipboard as sn } from "@vueuse/core";
|
|
13
13
|
import dn from "@gx-design-vue/scrollbar";
|
|
14
14
|
import { GColorPicker as Ge } from "@gx-design-vue/color-picker";
|
|
15
|
-
const un = /* @__PURE__ */
|
|
15
|
+
const un = /* @__PURE__ */ W({
|
|
16
16
|
name: "PageLoading",
|
|
17
17
|
props: {
|
|
18
|
-
...
|
|
18
|
+
...Ce.props
|
|
19
19
|
},
|
|
20
20
|
setup(e) {
|
|
21
21
|
const {
|
|
22
22
|
indicator: t
|
|
23
|
-
} =
|
|
23
|
+
} = De();
|
|
24
24
|
return n("div", {
|
|
25
25
|
style: {
|
|
26
26
|
paddingTop: "100px",
|
|
27
27
|
textAlign: "center"
|
|
28
28
|
}
|
|
29
|
-
}, [n(
|
|
29
|
+
}, [n(Ce, G(e, {
|
|
30
30
|
indicator: t == null ? void 0 : t.value
|
|
31
31
|
}), null)]);
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), L = Jt({
|
|
34
34
|
func: void 0,
|
|
35
35
|
bool: void 0,
|
|
36
36
|
string: void 0,
|
|
@@ -39,7 +39,7 @@ const un = /* @__PURE__ */ j({
|
|
|
39
39
|
object: void 0,
|
|
40
40
|
integer: void 0
|
|
41
41
|
});
|
|
42
|
-
|
|
42
|
+
L.extend([{
|
|
43
43
|
name: "looseBool",
|
|
44
44
|
getter: !0,
|
|
45
45
|
type: Boolean,
|
|
@@ -54,75 +54,75 @@ D.extend([{
|
|
|
54
54
|
getter: !0,
|
|
55
55
|
type: null
|
|
56
56
|
}]);
|
|
57
|
-
const
|
|
57
|
+
const ue = {
|
|
58
58
|
theme: {
|
|
59
59
|
type: String,
|
|
60
|
-
default:
|
|
60
|
+
default: j.theme
|
|
61
61
|
},
|
|
62
62
|
layout: {
|
|
63
63
|
type: String,
|
|
64
|
-
default:
|
|
64
|
+
default: j.layout
|
|
65
65
|
},
|
|
66
66
|
wideWidth: {
|
|
67
67
|
type: Number,
|
|
68
|
-
default:
|
|
68
|
+
default: j.wideWidth
|
|
69
69
|
},
|
|
70
70
|
splitMenus: {
|
|
71
71
|
type: Boolean,
|
|
72
|
-
default:
|
|
72
|
+
default: j.splitMenus
|
|
73
73
|
},
|
|
74
74
|
fixedMultiTab: {
|
|
75
75
|
type: Boolean,
|
|
76
|
-
default:
|
|
76
|
+
default: j.fixedMultiTab
|
|
77
77
|
},
|
|
78
78
|
showProgressBar: {
|
|
79
79
|
type: Boolean,
|
|
80
|
-
default:
|
|
80
|
+
default: j.showProgressBar
|
|
81
81
|
},
|
|
82
82
|
fixedHeader: {
|
|
83
83
|
type: Boolean,
|
|
84
|
-
default:
|
|
84
|
+
default: j.fixedHeader
|
|
85
85
|
},
|
|
86
86
|
fixSiderbar: {
|
|
87
87
|
type: Boolean,
|
|
88
|
-
default:
|
|
88
|
+
default: j.fixSiderbar
|
|
89
89
|
},
|
|
90
90
|
showTabsBar: {
|
|
91
91
|
type: Boolean,
|
|
92
|
-
default:
|
|
92
|
+
default: j.showTabsBar
|
|
93
93
|
},
|
|
94
94
|
showFullScreen: {
|
|
95
95
|
type: Boolean,
|
|
96
|
-
default:
|
|
96
|
+
default: j.showFullScreen
|
|
97
97
|
},
|
|
98
98
|
autoHideHeader: {
|
|
99
99
|
type: Boolean,
|
|
100
|
-
default:
|
|
100
|
+
default: j.autoHideHeader
|
|
101
101
|
},
|
|
102
102
|
headerHeight: {
|
|
103
103
|
type: Number,
|
|
104
|
-
default:
|
|
104
|
+
default: j.headerHeight
|
|
105
105
|
},
|
|
106
106
|
title: {
|
|
107
107
|
type: String,
|
|
108
|
-
default:
|
|
108
|
+
default: j.title
|
|
109
109
|
},
|
|
110
110
|
iconfontUrl: {
|
|
111
111
|
type: String,
|
|
112
|
-
default:
|
|
112
|
+
default: j.iconfontUrl
|
|
113
113
|
},
|
|
114
114
|
animate: {
|
|
115
115
|
type: Object,
|
|
116
|
-
default:
|
|
116
|
+
default: j.animate
|
|
117
117
|
},
|
|
118
118
|
primaryColor: {
|
|
119
119
|
type: String,
|
|
120
|
-
default:
|
|
120
|
+
default: j.primaryColor
|
|
121
121
|
}
|
|
122
|
-
},
|
|
123
|
-
renderKey:
|
|
124
|
-
title:
|
|
125
|
-
layout:
|
|
122
|
+
}, de = {
|
|
123
|
+
renderKey: L.string.def("menuHeaderRender"),
|
|
124
|
+
title: ue.title,
|
|
125
|
+
layout: ue.layout,
|
|
126
126
|
logo: {
|
|
127
127
|
type: [Object, String, Function],
|
|
128
128
|
default: () => {
|
|
@@ -137,16 +137,16 @@ const de = {
|
|
|
137
137
|
type: String,
|
|
138
138
|
default: "horizontal"
|
|
139
139
|
},
|
|
140
|
-
drawer:
|
|
141
|
-
collapsed:
|
|
140
|
+
drawer: L.looseBool,
|
|
141
|
+
collapsed: L.looseBool,
|
|
142
142
|
menuHeaderRender: {
|
|
143
143
|
type: [Object, Function],
|
|
144
144
|
default: () => {
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
onMenuHeaderClick: Function
|
|
148
|
-
},
|
|
149
|
-
...
|
|
148
|
+
}, Oe = {
|
|
149
|
+
...ue,
|
|
150
150
|
mode: {
|
|
151
151
|
type: String,
|
|
152
152
|
default: "inline"
|
|
@@ -197,15 +197,15 @@ const de = {
|
|
|
197
197
|
type: Function
|
|
198
198
|
}
|
|
199
199
|
}, Z = {
|
|
200
|
-
...
|
|
201
|
-
...
|
|
202
|
-
menuLoading:
|
|
203
|
-
logo:
|
|
204
|
-
logoStyle:
|
|
205
|
-
logoDirection:
|
|
206
|
-
siderWidth:
|
|
207
|
-
headerHeight:
|
|
208
|
-
collapsedWidth:
|
|
200
|
+
...ue,
|
|
201
|
+
...Oe,
|
|
202
|
+
menuLoading: L.looseBool,
|
|
203
|
+
logo: de.logo,
|
|
204
|
+
logoStyle: de.logoStyle,
|
|
205
|
+
logoDirection: de.logoDirection,
|
|
206
|
+
siderWidth: L.number.def(208),
|
|
207
|
+
headerHeight: L.number.def(48),
|
|
208
|
+
collapsedWidth: L.number.def(48),
|
|
209
209
|
links: {
|
|
210
210
|
type: [Function, Object, Array],
|
|
211
211
|
default: () => {
|
|
@@ -237,14 +237,14 @@ const de = {
|
|
|
237
237
|
type: [Object, Boolean],
|
|
238
238
|
default: () => !1
|
|
239
239
|
},
|
|
240
|
-
isMobile:
|
|
240
|
+
isMobile: L.looseBool,
|
|
241
241
|
matchMenuKeys: {
|
|
242
242
|
type: Array,
|
|
243
243
|
default: () => []
|
|
244
244
|
},
|
|
245
245
|
// events
|
|
246
|
-
onMenuHeaderClick:
|
|
247
|
-
onMenuClick:
|
|
246
|
+
onMenuHeaderClick: L.func,
|
|
247
|
+
onMenuClick: L.func,
|
|
248
248
|
onCollapse: {
|
|
249
249
|
type: Function
|
|
250
250
|
}
|
|
@@ -252,39 +252,39 @@ const de = {
|
|
|
252
252
|
function mn(e) {
|
|
253
253
|
return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
|
|
254
254
|
}
|
|
255
|
-
function ft(e, t, a,
|
|
256
|
-
var
|
|
257
|
-
const
|
|
258
|
-
return a === "light" ? (
|
|
255
|
+
function ft(e, t, a, i) {
|
|
256
|
+
var d, f, m, w, p, R, h, T, l, r, I, k, x, y, g, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B, F;
|
|
257
|
+
const o = { ...e };
|
|
258
|
+
return a === "light" ? (o.colorItemBg = (f = (d = t.layout) == null ? void 0 : d[i]) == null ? void 0 : f.colorBgMenu, o.colorSubItemBg = (w = (m = t.layout) == null ? void 0 : m[i]) == null ? void 0 : w.colorSubItemBg, o.colorItemBgSelected = (R = (p = t.layout) == null ? void 0 : p[i]) == null ? void 0 : R.colorBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (T = (h = t.layout) == null ? void 0 : h[i]) == null ? void 0 : T.colorBgMenuItemSelected, o.colorItemText = (r = (l = t.layout) == null ? void 0 : l[i]) == null ? void 0 : r.colorTextMenu, o.colorItemTextHover = (k = (I = t.layout) == null ? void 0 : I[i]) == null ? void 0 : k.colorTextMenuHover, o.colorItemTextSelected = (y = (x = t.layout) == null ? void 0 : x[i]) == null ? void 0 : y.colorTextMenuSelected, o.colorItemTextSelectedHorizontal = (C = (g = t.layout) == null ? void 0 : g[i]) == null ? void 0 : C.colorTextMenuSelected, i === "sider" && (o.colorItemBgHover = (u = ($ = t.layout) == null ? void 0 : $[i]) == null ? void 0 : u.colorBgMenuItemHover)) : a === "dark" && (o.colorItemBg = (M = (S = t.layout) == null ? void 0 : S[i]) == null ? void 0 : M.colorDarkBgMenu, o.colorSubItemBg = (P = (O = t.layout) == null ? void 0 : O[i]) == null ? void 0 : P.colorDarkSubItemBg, o.colorItemBgSelected = (N = (H = t.layout) == null ? void 0 : H[i]) == null ? void 0 : N.colorDarkBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (V = (D = t.layout) == null ? void 0 : D[i]) == null ? void 0 : V.colorDarkBgMenuItemSelected, o.colorItemText = (_ = (Y = t.layout) == null ? void 0 : Y[i]) == null ? void 0 : _.colorDarkTextMenu, o.colorItemTextHover = (J = (E = t.layout) == null ? void 0 : E[i]) == null ? void 0 : J.colorDarkTextMenuHover, o.colorItemTextSelected = (v = (c = t.layout) == null ? void 0 : c[i]) == null ? void 0 : v.colorDarkTextMenuSelected, o.colorItemTextSelectedHorizontal = (F = (B = t.layout) == null ? void 0 : B[i]) == null ? void 0 : F.colorDarkTextMenuSelected, i === "header" && (o.colorActiveBarHeight = 0)), o;
|
|
259
259
|
}
|
|
260
|
-
const fn = ["left", "right"],
|
|
260
|
+
const fn = ["left", "right"], ce = ["left", "right", "down", "up"], gn = ["downBig", "upBig", "leftBig", "rightBig"], hn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], yn = ["downLeft", "upRight", "downRight", "upLeft"], We = {
|
|
261
261
|
preset: [
|
|
262
262
|
//预设动画配置
|
|
263
|
-
{ name: "back", alias: "渐近", directions:
|
|
264
|
-
{ name: "bounce", alias: "弹跳", directions:
|
|
263
|
+
{ name: "back", alias: "渐近", directions: ce },
|
|
264
|
+
{ name: "bounce", alias: "弹跳", directions: ce.concat("default") },
|
|
265
265
|
{
|
|
266
266
|
name: "fade",
|
|
267
267
|
alias: "淡化",
|
|
268
|
-
directions:
|
|
268
|
+
directions: ce.concat(gn).concat(hn).concat("default")
|
|
269
269
|
},
|
|
270
270
|
{ name: "flip", alias: "翻转", directions: ["x", "y"] },
|
|
271
271
|
{ name: "lightSpeed", alias: "光速", directions: fn },
|
|
272
272
|
{ name: "rotate", alias: "旋转", directions: yn.concat("default") },
|
|
273
273
|
{ name: "roll", alias: "翻滚", directions: ["default"] },
|
|
274
|
-
{ name: "zoom", alias: "缩放", directions:
|
|
275
|
-
{ name: "slide", alias: "滑动", directions:
|
|
274
|
+
{ name: "zoom", alias: "缩放", directions: ce.concat("default") },
|
|
275
|
+
{ name: "slide", alias: "滑动", directions: ce }
|
|
276
276
|
]
|
|
277
277
|
};
|
|
278
278
|
function bn(e) {
|
|
279
279
|
return e.map((t) => {
|
|
280
|
-
var
|
|
280
|
+
var i;
|
|
281
281
|
const a = { ...t };
|
|
282
|
-
if ((
|
|
282
|
+
if ((i = a.meta) != null && i.hideInMenu)
|
|
283
283
|
return null;
|
|
284
284
|
if (a && (a != null && a.children)) {
|
|
285
|
-
if (a.children.some((
|
|
286
|
-
var
|
|
287
|
-
return
|
|
285
|
+
if (a.children.some((o) => {
|
|
286
|
+
var d;
|
|
287
|
+
return o && !((d = o.meta) != null && d.hideInMenu);
|
|
288
288
|
}))
|
|
289
289
|
return {
|
|
290
290
|
...a,
|
|
@@ -297,39 +297,39 @@ function bn(e) {
|
|
|
297
297
|
}
|
|
298
298
|
function pn(e) {
|
|
299
299
|
return e.map((t) => {
|
|
300
|
-
var
|
|
300
|
+
var i;
|
|
301
301
|
const a = { ...t };
|
|
302
|
-
return (
|
|
302
|
+
return (i = a.meta) != null && i.hideInMenu ? null : (a.linkPath = xn(a.children || []), a.children && delete a.children, a);
|
|
303
303
|
}).filter((t) => t);
|
|
304
304
|
}
|
|
305
305
|
function vn(e, t) {
|
|
306
|
-
const a = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`,
|
|
307
|
-
return t === void 0 ? [] : (
|
|
306
|
+
const a = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`, i = e.find((o) => o.path === a);
|
|
307
|
+
return t === void 0 ? [] : (i == null ? void 0 : i.children) || [];
|
|
308
308
|
}
|
|
309
309
|
function xn(e) {
|
|
310
310
|
let t = "";
|
|
311
311
|
const a = function(o) {
|
|
312
|
-
let
|
|
313
|
-
return o.children && o.children.length > 0 ?
|
|
314
|
-
};
|
|
315
|
-
if (
|
|
316
|
-
t = a(
|
|
312
|
+
let d = "";
|
|
313
|
+
return o.children && o.children.length > 0 ? d = a(o.children[0]) : d = o.path, d;
|
|
314
|
+
}, i = e == null ? void 0 : e.filter((o) => !o.hidden);
|
|
315
|
+
if (i.length > 0 && i[0].children && i[0].children.length > 0)
|
|
316
|
+
t = a(i[0].children[0]);
|
|
317
317
|
else {
|
|
318
|
-
const o =
|
|
318
|
+
const o = i.length > 0 ? i[0] : void 0;
|
|
319
319
|
t = (o == null ? void 0 : o.path) || "";
|
|
320
320
|
}
|
|
321
321
|
return t;
|
|
322
322
|
}
|
|
323
323
|
function Ii(e, t) {
|
|
324
|
-
var
|
|
325
|
-
const a = ((
|
|
324
|
+
var i, o;
|
|
325
|
+
const a = ((o = (i = e.find((d) => d.path === t)) == null ? void 0 : i.meta) == null ? void 0 : o.key) || "";
|
|
326
326
|
if (a) {
|
|
327
|
-
const
|
|
328
|
-
for (let
|
|
329
|
-
|
|
330
|
-
return e.filter((
|
|
327
|
+
const d = [], f = a.split("-");
|
|
328
|
+
for (let m = 0; m < f.length; m += 1)
|
|
329
|
+
d.push(Ve(f).splice(0, m + 1).join("-"));
|
|
330
|
+
return e.filter((m) => d.some((w) => {
|
|
331
331
|
var p;
|
|
332
|
-
return w === ((p =
|
|
332
|
+
return w === ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.key) || "";
|
|
333
333
|
}));
|
|
334
334
|
}
|
|
335
335
|
return [];
|
|
@@ -339,15 +339,15 @@ function Cn(e) {
|
|
|
339
339
|
}
|
|
340
340
|
function wn(e) {
|
|
341
341
|
const t = ["showTabsBar", "fixedMultiTab", "fixSiderbar", "fixedHeader", "splitMenus"];
|
|
342
|
-
let
|
|
343
|
-
return
|
|
342
|
+
let i = Object.keys(e).reduce((o, d) => (o[d] = !1, o), {});
|
|
343
|
+
return i = Sn(i, t), e.layout === "mix" && (i.fixSiderbar = !0, i.fixedHeader = !0), e.layout === "side" && (i.splitMenus = !0), e.layout === "simple" && (i.splitMenus = !0, i.fixedHeader = !0, i.showTabsBar = !0, i.fixedMultiTab = !0), e.layout === "wide" && (i.splitMenus = !0, i.fixedHeader = !0, i.fixSiderbar = !0, i.showTabsBar = !0, i.fixedMultiTab = !0), i;
|
|
344
344
|
}
|
|
345
345
|
function Sn(e, t) {
|
|
346
346
|
return {
|
|
347
|
-
...t.reduce((a,
|
|
347
|
+
...t.reduce((a, i) => ({ ...a, [i]: e[i] }), {})
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
|
-
const In = (e = Symbol(), t = "Context.Provider") =>
|
|
350
|
+
const In = (e = Symbol(), t = "Context.Provider") => W({
|
|
351
351
|
name: t,
|
|
352
352
|
props: {
|
|
353
353
|
value: {
|
|
@@ -355,24 +355,24 @@ const In = (e = Symbol(), t = "Context.Provider") => j({
|
|
|
355
355
|
required: !0
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
|
-
setup(
|
|
359
|
-
return it(e, Rt(
|
|
360
|
-
var
|
|
361
|
-
return (
|
|
358
|
+
setup(i, { slots: o }) {
|
|
359
|
+
return it(e, Rt(i.value)), () => {
|
|
360
|
+
var d;
|
|
361
|
+
return (d = o.default) == null ? void 0 : d.call(o);
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
}), Mn = (e = Symbol(), t) => kt(e, t || {}),
|
|
365
|
-
it(
|
|
366
|
-
}, te = () => Mn(
|
|
364
|
+
}), Mn = (e = Symbol(), t) => kt(e, t || {}), Ke = Symbol("pro-layout-context"), On = () => In(Ke, "ProLayoutContext.Provider"), Rn = (e) => {
|
|
365
|
+
it(Ke, e);
|
|
366
|
+
}, te = () => Mn(Ke);
|
|
367
367
|
On();
|
|
368
368
|
function qe(e) {
|
|
369
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
369
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
|
|
370
370
|
}
|
|
371
|
-
const
|
|
371
|
+
const we = (e) => {
|
|
372
372
|
const {
|
|
373
373
|
icon: t,
|
|
374
374
|
iconType: a,
|
|
375
|
-
iconfontUrl:
|
|
375
|
+
iconfontUrl: i
|
|
376
376
|
} = e;
|
|
377
377
|
if (!t)
|
|
378
378
|
return null;
|
|
@@ -384,22 +384,22 @@ const Ce = (e) => {
|
|
|
384
384
|
class: `${e.className}-icon-image`
|
|
385
385
|
}, null);
|
|
386
386
|
if (a === 1) {
|
|
387
|
-
const
|
|
388
|
-
scriptUrl:
|
|
387
|
+
const d = Wt({
|
|
388
|
+
scriptUrl: i || j.iconfontUrl
|
|
389
389
|
});
|
|
390
|
-
return
|
|
390
|
+
return i ? n(d, {
|
|
391
391
|
type: t
|
|
392
392
|
}, null) : n("i", {
|
|
393
393
|
class: `iconfont ${t} ${e.className}-icon`
|
|
394
394
|
}, null);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
if (
|
|
397
|
+
if (re(t))
|
|
398
398
|
return t;
|
|
399
|
-
const
|
|
400
|
-
return typeof
|
|
399
|
+
const o = lt(t);
|
|
400
|
+
return typeof we == "function" && n(o, null, null) || null;
|
|
401
401
|
};
|
|
402
|
-
|
|
402
|
+
we.props = {
|
|
403
403
|
icon: {
|
|
404
404
|
type: [String, Function, Object]
|
|
405
405
|
},
|
|
@@ -407,55 +407,55 @@ Ce.props = {
|
|
|
407
407
|
className: String,
|
|
408
408
|
iconfontUrl: String
|
|
409
409
|
};
|
|
410
|
-
const gt = /* @__PURE__ */
|
|
410
|
+
const gt = /* @__PURE__ */ W({
|
|
411
411
|
name: "BaseMenu",
|
|
412
|
-
props:
|
|
412
|
+
props: Oe,
|
|
413
413
|
setup(e) {
|
|
414
|
-
const t =
|
|
414
|
+
const t = Ne(), {
|
|
415
415
|
getPrefixCls: a
|
|
416
|
-
} = te(),
|
|
416
|
+
} = te(), i = a({
|
|
417
417
|
suffixCls: "menu-item",
|
|
418
418
|
isPor: !0
|
|
419
|
-
}),
|
|
419
|
+
}), o = (l) => {
|
|
420
420
|
var r;
|
|
421
421
|
(r = e.onOpenKeys) == null || r.call(e, l);
|
|
422
|
-
},
|
|
422
|
+
}, d = (l) => {
|
|
423
423
|
var r;
|
|
424
424
|
(r = e.onSelect) == null || r.call(e, l.selectedKeys);
|
|
425
425
|
}, f = (l) => {
|
|
426
426
|
var r;
|
|
427
427
|
(r = e.onClick) == null || r.call(e, ...l);
|
|
428
|
-
},
|
|
428
|
+
}, m = (l, r) => {
|
|
429
429
|
var x;
|
|
430
430
|
const I = l.target || "", k = mt(I);
|
|
431
431
|
((x = t.currentRoute.value) == null ? void 0 : x.fullPath) !== r.to && k && I && l.targetStatus === 1 && window.open(I);
|
|
432
|
-
}, w = lt("router-link"), p = (l = []) => l.map((r) =>
|
|
433
|
-
var k, x, y, g, C, $,
|
|
432
|
+
}, w = lt("router-link"), p = (l = []) => l.map((r) => R(r)).filter((r) => r), R = (l) => {
|
|
433
|
+
var k, x, y, g, C, $, u, S, M;
|
|
434
434
|
if (Array.isArray(l.children) && l.children.length > 0 && !((k = l == null ? void 0 : l.meta) != null && k.hideInMenu) && !((x = l == null ? void 0 : l.meta) != null && x.hideChildrenInMenu)) {
|
|
435
|
-
let
|
|
435
|
+
let O;
|
|
436
436
|
if (e.subMenuItemRender)
|
|
437
437
|
return e.subMenuItemRender({
|
|
438
438
|
item: l,
|
|
439
439
|
children: p(l.children)
|
|
440
440
|
});
|
|
441
|
-
const
|
|
441
|
+
const P = (y = l.meta) == null ? void 0 : y.title, H = (g = l.meta) != null && g.icon ? n("span", {
|
|
442
442
|
class: "gx-pro-sider-menu-item"
|
|
443
443
|
}, [n("span", {
|
|
444
444
|
class: "gx-pro-sider-menu-item-title"
|
|
445
|
-
}, [
|
|
445
|
+
}, [P])]) : n("span", {
|
|
446
446
|
class: "gx-pro-sider-menu-item"
|
|
447
|
-
}, [
|
|
448
|
-
return n(
|
|
447
|
+
}, [P]), N = ((C = l.meta) == null ? void 0 : C.type) === "group", D = N ? ie.ItemGroup : ie.SubMenu;
|
|
448
|
+
return n(D, {
|
|
449
449
|
title: H,
|
|
450
450
|
key: l.path,
|
|
451
|
-
icon: N ? null : n(
|
|
452
|
-
className:
|
|
451
|
+
icon: N ? null : n(we, {
|
|
452
|
+
className: i,
|
|
453
453
|
icon: ($ = l.meta) == null ? void 0 : $.icon,
|
|
454
454
|
iconfontUrl: e.iconfontUrl,
|
|
455
|
-
iconType: (
|
|
455
|
+
iconType: (u = l.meta) == null ? void 0 : u.iconType
|
|
456
456
|
}, null)
|
|
457
|
-
}, qe(
|
|
458
|
-
default: () => [
|
|
457
|
+
}, qe(O = p(l.children)) ? O : {
|
|
458
|
+
default: () => [O]
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
const [r, I] = h(l);
|
|
@@ -463,52 +463,52 @@ const gt = /* @__PURE__ */ j({
|
|
|
463
463
|
item: l,
|
|
464
464
|
title: r,
|
|
465
465
|
icon: I
|
|
466
|
-
}) || n(
|
|
466
|
+
}) || n(ie.Item, {
|
|
467
467
|
disabled: (S = l.meta) == null ? void 0 : S.disabled,
|
|
468
|
-
danger: (
|
|
468
|
+
danger: (M = l.meta) == null ? void 0 : M.danger,
|
|
469
469
|
key: l.path,
|
|
470
470
|
icon: I
|
|
471
471
|
}, qe(r) ? r : {
|
|
472
472
|
default: () => [r]
|
|
473
473
|
});
|
|
474
474
|
}, h = (l) => {
|
|
475
|
-
var C, $,
|
|
475
|
+
var C, $, u, S, M;
|
|
476
476
|
const r = {
|
|
477
477
|
...l.meta
|
|
478
478
|
}, I = r.targetStatus === 1 && r.target ? "a" : w, k = {
|
|
479
479
|
to: l.linkPath || l.path || ""
|
|
480
|
-
}, x = (C = l.meta) == null ? void 0 : C.title, y = ($ = l.meta) != null && $.icon ? n(I,
|
|
480
|
+
}, x = (C = l.meta) == null ? void 0 : C.title, y = ($ = l.meta) != null && $.icon ? n(I, G(k, {
|
|
481
481
|
class: "gx-pro-sider-menu-item",
|
|
482
|
-
onClick: () =>
|
|
482
|
+
onClick: () => m(r, k)
|
|
483
483
|
}), {
|
|
484
484
|
default: () => [n("span", {
|
|
485
485
|
class: "gx-pro-sider-menu-item-title"
|
|
486
486
|
}, [x])]
|
|
487
|
-
}) : n(I,
|
|
487
|
+
}) : n(I, G(k, {
|
|
488
488
|
class: "gx-pro-sider-menu-item",
|
|
489
|
-
onClick: () =>
|
|
489
|
+
onClick: () => m(r, k)
|
|
490
490
|
}), {
|
|
491
491
|
default: () => [n("span", null, [x])]
|
|
492
|
-
}), g = ((
|
|
493
|
-
className:
|
|
492
|
+
}), g = ((u = l.meta) == null ? void 0 : u.icon) && n(we, {
|
|
493
|
+
className: i,
|
|
494
494
|
icon: (S = l.meta) == null ? void 0 : S.icon,
|
|
495
495
|
iconfontUrl: e.iconfontUrl,
|
|
496
|
-
iconType: (
|
|
496
|
+
iconType: (M = l.meta) == null ? void 0 : M.iconType
|
|
497
497
|
}, null) || void 0;
|
|
498
498
|
return [y, g];
|
|
499
|
-
},
|
|
500
|
-
return () => n(
|
|
499
|
+
}, T = b(() => p(e.menuData));
|
|
500
|
+
return () => n(ie, G({
|
|
501
501
|
key: "Menu",
|
|
502
502
|
inlineIndent: 16,
|
|
503
503
|
mode: e.mode,
|
|
504
504
|
theme: e.theme,
|
|
505
505
|
openKeys: e.openKeys === !1 ? [] : e.openKeys,
|
|
506
506
|
selectedKeys: e.selectedKeys || [],
|
|
507
|
-
onOpenChange:
|
|
508
|
-
onSelect:
|
|
507
|
+
onOpenChange: o,
|
|
508
|
+
onSelect: d,
|
|
509
509
|
onClick: f
|
|
510
510
|
}, e.menuProps), {
|
|
511
|
-
default: () => [
|
|
511
|
+
default: () => [T.value]
|
|
512
512
|
});
|
|
513
513
|
}
|
|
514
514
|
}), ht = new s("pro-layout-title-hide", {
|
|
@@ -533,7 +533,7 @@ const gt = /* @__PURE__ */ j({
|
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
535
|
}, Bn = (e) => {
|
|
536
|
-
var t, a,
|
|
536
|
+
var t, a, i, o, d, f, m, w, p, R, h, T;
|
|
537
537
|
return {
|
|
538
538
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
539
539
|
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
@@ -563,10 +563,10 @@ const gt = /* @__PURE__ */ j({
|
|
|
563
563
|
height: "100%"
|
|
564
564
|
},
|
|
565
565
|
"&-light": {
|
|
566
|
-
background: (
|
|
566
|
+
background: (o = (i = e.layout) == null ? void 0 : i.sider) == null ? void 0 : o.colorBgMenu,
|
|
567
567
|
boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
|
|
568
568
|
[`${e.componentCls}-footer`]: {
|
|
569
|
-
color: (f = (
|
|
569
|
+
color: (f = (d = e.layout) == null ? void 0 : d.sider) == null ? void 0 : f.colorTextMenu
|
|
570
570
|
}
|
|
571
571
|
},
|
|
572
572
|
"&-links": {
|
|
@@ -582,7 +582,7 @@ const gt = /* @__PURE__ */ j({
|
|
|
582
582
|
background: "transparent"
|
|
583
583
|
},
|
|
584
584
|
"&-footer": {
|
|
585
|
-
color: (w = (
|
|
585
|
+
color: (w = (m = e.layout) == null ? void 0 : m.sider) == null ? void 0 : w.colorDarkTextMenu,
|
|
586
586
|
paddingBlockEnd: 16,
|
|
587
587
|
fontSize: e.fontSize,
|
|
588
588
|
animationName: ht,
|
|
@@ -597,8 +597,8 @@ const gt = /* @__PURE__ */ j({
|
|
|
597
597
|
zIndex: "100",
|
|
598
598
|
height: "100%",
|
|
599
599
|
"&-mix": {
|
|
600
|
-
height: `calc(100% - ${((
|
|
601
|
-
insetBlockStart: `${((
|
|
600
|
+
height: `calc(100% - ${((R = (p = e.layout) == null ? void 0 : p.header) == null ? void 0 : R.heightLayoutHeader) || j.headerHeight}px)`,
|
|
601
|
+
insetBlockStart: `${((T = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : T.heightLayoutHeader) || j.headerHeight}px`
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
@@ -678,69 +678,69 @@ const gt = /* @__PURE__ */ j({
|
|
|
678
678
|
}, null) : typeof e == "function" ? e() : e : null, Tn = (e, t = "menuHeaderRender") => {
|
|
679
679
|
const {
|
|
680
680
|
logo: a,
|
|
681
|
-
logoStyle:
|
|
682
|
-
title:
|
|
683
|
-
layout:
|
|
681
|
+
logoStyle: i,
|
|
682
|
+
title: o,
|
|
683
|
+
layout: d
|
|
684
684
|
} = e, f = e[t || ""];
|
|
685
685
|
if (f === !1)
|
|
686
686
|
return null;
|
|
687
|
-
const
|
|
688
|
-
return typeof f == "function" ? f(
|
|
689
|
-
},
|
|
687
|
+
const m = yt(a, i), w = o && n("h1", null, [o]);
|
|
688
|
+
return typeof f == "function" ? f(m, e.collapsed ? null : w, e) : n(Q, null, [m || null, e.collapsed && d === "side" ? null : w]);
|
|
689
|
+
}, Ae = /* @__PURE__ */ W({
|
|
690
690
|
name: "LogoContent",
|
|
691
|
-
props:
|
|
691
|
+
props: de,
|
|
692
692
|
setup(e) {
|
|
693
693
|
const {
|
|
694
694
|
getPrefixCls: t
|
|
695
|
-
} = te(), a = b(() => e.layout === "side" || e.layout === "simple"),
|
|
695
|
+
} = te(), a = b(() => e.layout === "side" || e.layout === "simple"), i = b(() => t({
|
|
696
696
|
suffixCls: a.value || e.drawer ? "sider" : "global-header",
|
|
697
697
|
isPor: !0
|
|
698
698
|
})), {
|
|
699
|
-
wrapSSR:
|
|
700
|
-
hashId:
|
|
701
|
-
} =
|
|
702
|
-
return () =>
|
|
699
|
+
wrapSSR: o,
|
|
700
|
+
hashId: d
|
|
701
|
+
} = ae("ProLayoutLogo", [Fn]), f = b(() => Tn(e, e.renderKey));
|
|
702
|
+
return () => o(n("div", {
|
|
703
703
|
id: "logo",
|
|
704
704
|
class: {
|
|
705
|
-
[`${
|
|
706
|
-
[`${
|
|
707
|
-
[`${
|
|
705
|
+
[`${d.value}`]: !0,
|
|
706
|
+
[`${i.value}-logo`]: !0,
|
|
707
|
+
[`${i.value}-logo-collapsed`]: !!e.collapsed
|
|
708
708
|
},
|
|
709
709
|
onClick: () => {
|
|
710
|
-
var
|
|
711
|
-
return (
|
|
710
|
+
var m;
|
|
711
|
+
return (m = e.onMenuHeaderClick) == null ? void 0 : m.call(e);
|
|
712
712
|
}
|
|
713
713
|
}, [n("a", null, [f.value || null])]));
|
|
714
714
|
}
|
|
715
715
|
});
|
|
716
|
-
|
|
716
|
+
Ae.inheritAttrs = !1;
|
|
717
717
|
function Pn(e) {
|
|
718
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
718
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
|
|
719
719
|
}
|
|
720
720
|
const {
|
|
721
721
|
Sider: Ln
|
|
722
|
-
} =
|
|
722
|
+
} = fe, {
|
|
723
723
|
Item: Ze
|
|
724
|
-
} =
|
|
724
|
+
} = ie, bt = (e) => e ? n(Kt, null, null) : n(At, null, null), Je = /* @__PURE__ */ W({
|
|
725
725
|
props: Z,
|
|
726
726
|
inheritAttrs: !1,
|
|
727
727
|
setup(e) {
|
|
728
728
|
const {
|
|
729
729
|
getPrefixCls: t,
|
|
730
730
|
selectedKeys: a,
|
|
731
|
-
flatMenuData:
|
|
732
|
-
menuData:
|
|
733
|
-
openKeys:
|
|
731
|
+
flatMenuData: i,
|
|
732
|
+
menuData: o,
|
|
733
|
+
openKeys: d
|
|
734
734
|
} = te(), {
|
|
735
735
|
indicator: f
|
|
736
|
-
} =
|
|
737
|
-
token:
|
|
738
|
-
} =
|
|
736
|
+
} = De(), {
|
|
737
|
+
token: m
|
|
738
|
+
} = he(), {
|
|
739
739
|
theme: w,
|
|
740
740
|
layout: p,
|
|
741
|
-
isMobile:
|
|
741
|
+
isMobile: R,
|
|
742
742
|
menuLoading: h,
|
|
743
|
-
breakpoint:
|
|
743
|
+
breakpoint: T,
|
|
744
744
|
fixSiderbar: l,
|
|
745
745
|
collapsed: r,
|
|
746
746
|
siderWidth: I,
|
|
@@ -750,36 +750,36 @@ const {
|
|
|
750
750
|
menuFooterRender: g,
|
|
751
751
|
collapsedButtonRender: C,
|
|
752
752
|
links: $
|
|
753
|
-
} =
|
|
753
|
+
} = Ie(e), u = t({
|
|
754
754
|
suffixCls: "sider",
|
|
755
755
|
isPor: !0
|
|
756
756
|
}), {
|
|
757
757
|
wrapSSR: S,
|
|
758
|
-
hashId:
|
|
759
|
-
} =
|
|
758
|
+
hashId: M
|
|
759
|
+
} = ae("ProLayoutSiderMenu", [kn, Bn, $n], u), O = b(() => e.layout === "wide"), P = b(() => e.layout === "mix" && !e.isMobile && e.splitMenus), H = b(() => p.value === "side" || p.value === "simple"), N = b(() => (e.layout === "mix" || O.value) && "light" || w.value), D = b(() => p.value === "top" ? [] : o.value), V = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), Y = b(() => [M.value, u, R.value ? "shadow" : null, `${u}-${N.value}`, l.value && e.layout !== "wide" ? `${u}-fixed` : null]), _ = b(() => {
|
|
760
|
+
var c;
|
|
761
|
+
return typeof $.value == "function" ? (c = $.value) == null ? void 0 : c.call($) : $.value;
|
|
762
|
+
}), E = b(() => C.value !== !1 ? C.value || bt : !1), J = (c) => {
|
|
760
763
|
var v;
|
|
761
|
-
return typeof $.value == "function" ? (v = $.value) == null ? void 0 : v.call($) : $.value;
|
|
762
|
-
}), Y = b(() => C.value !== !1 ? C.value || bt : !1), m = (v) => {
|
|
763
|
-
var B;
|
|
764
764
|
if (e.onSelect) {
|
|
765
|
-
if (
|
|
766
|
-
e.onSelect([(
|
|
765
|
+
if (U(P)) {
|
|
766
|
+
e.onSelect([(v = a == null ? void 0 : a.value) == null ? void 0 : v[0], ...c]);
|
|
767
767
|
return;
|
|
768
768
|
}
|
|
769
|
-
e.onSelect(
|
|
769
|
+
e.onSelect(c);
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
772
|
return () => {
|
|
773
|
-
var
|
|
774
|
-
const
|
|
775
|
-
drawer:
|
|
776
|
-
}, e), null) : null,
|
|
777
|
-
class: `${
|
|
773
|
+
var F;
|
|
774
|
+
const c = H.value ? n(Ae, G({
|
|
775
|
+
drawer: R.value
|
|
776
|
+
}, e), null) : null, v = x.value && ((F = x.value) == null ? void 0 : F.call(x, e)), B = n(gt, {
|
|
777
|
+
class: `${u}-menu ${M.value}`,
|
|
778
778
|
theme: N.value,
|
|
779
779
|
mode: "inline",
|
|
780
|
-
menuData:
|
|
780
|
+
menuData: P.value ? i.value : D.value,
|
|
781
781
|
iconfontUrl: e.iconfontUrl,
|
|
782
|
-
openKeys:
|
|
782
|
+
openKeys: d.value,
|
|
783
783
|
selectedKeys: a.value,
|
|
784
784
|
menuItemRender: e.menuItemRender,
|
|
785
785
|
subMenuItemRender: e.subMenuItemRender,
|
|
@@ -787,13 +787,13 @@ const {
|
|
|
787
787
|
style: {
|
|
788
788
|
width: "100%"
|
|
789
789
|
},
|
|
790
|
-
onOpenKeys: (
|
|
791
|
-
var
|
|
792
|
-
return e.onOpenKeys && ((
|
|
790
|
+
onOpenKeys: (z) => {
|
|
791
|
+
var q;
|
|
792
|
+
return e.onOpenKeys && ((q = e.onOpenKeys) == null ? void 0 : q.call(e, z));
|
|
793
793
|
},
|
|
794
|
-
onSelect:
|
|
794
|
+
onSelect: J
|
|
795
795
|
}, null);
|
|
796
|
-
return
|
|
796
|
+
return P.value && U(i.value).length === 0 || D.value.length === 0 ? null : S(n(Pe, {
|
|
797
797
|
theme: {
|
|
798
798
|
components: {
|
|
799
799
|
Menu: ft({
|
|
@@ -802,92 +802,92 @@ const {
|
|
|
802
802
|
colorActiveBarHeight: 0,
|
|
803
803
|
colorActiveBarBorderSize: 0
|
|
804
804
|
// 主题颜色
|
|
805
|
-
}, (
|
|
805
|
+
}, (m == null ? void 0 : m.value) || {}, N.value, "sider")
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
808
|
}, {
|
|
809
809
|
default: () => [l.value && n("div", {
|
|
810
810
|
style: {
|
|
811
|
-
width: `${
|
|
811
|
+
width: `${V.value}px`,
|
|
812
812
|
overflow: "hidden",
|
|
813
|
-
flex: `0 0 ${
|
|
814
|
-
maxWidth: `${
|
|
815
|
-
minWidth: `${
|
|
813
|
+
flex: `0 0 ${V.value}px`,
|
|
814
|
+
maxWidth: `${V.value}px`,
|
|
815
|
+
minWidth: `${V.value}px`,
|
|
816
816
|
transition: "background-color 0.2s, min-width 0.2s, max-width 0.2s"
|
|
817
817
|
}
|
|
818
818
|
}, null), n(Ln, {
|
|
819
819
|
collapsible: !0,
|
|
820
820
|
trigger: null,
|
|
821
|
-
class:
|
|
821
|
+
class: Y.value,
|
|
822
822
|
style: {
|
|
823
823
|
overflow: "hidden",
|
|
824
824
|
zIndex: l.value ? 101 : void 0,
|
|
825
|
-
paddingTop: H.value || e.isMobile ||
|
|
825
|
+
paddingTop: H.value || e.isMobile || O.value ? 0 : `${e.headerHeight}px`,
|
|
826
826
|
top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
|
|
827
827
|
height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
|
|
828
828
|
},
|
|
829
829
|
theme: N.value,
|
|
830
|
-
breakpoint:
|
|
830
|
+
breakpoint: T.value || void 0,
|
|
831
831
|
collapsed: r.value,
|
|
832
832
|
width: I.value,
|
|
833
833
|
collapsedWidth: k.value
|
|
834
834
|
}, {
|
|
835
835
|
default: () => {
|
|
836
|
-
var
|
|
836
|
+
var z, q;
|
|
837
837
|
return [h.value && n("div", {
|
|
838
|
-
class: ["gx-pro-sider-loading",
|
|
839
|
-
}, [n(
|
|
838
|
+
class: ["gx-pro-sider-loading", M.value]
|
|
839
|
+
}, [n(Ce, {
|
|
840
840
|
spinning: h.value,
|
|
841
841
|
indicator: f == null ? void 0 : f.value
|
|
842
|
-
}, null)]),
|
|
842
|
+
}, null)]), c || null, v && !e.collapsed && n("div", {
|
|
843
843
|
class: {
|
|
844
|
-
[`${
|
|
845
|
-
[`${
|
|
846
|
-
[`${
|
|
844
|
+
[`${M.value}`]: !0,
|
|
845
|
+
[`${u}-extra`]: !0,
|
|
846
|
+
[`${u}-extra-no-logo`]: !c
|
|
847
847
|
}
|
|
848
|
-
}, [
|
|
848
|
+
}, [v]), n("div", {
|
|
849
849
|
style: {
|
|
850
850
|
flex: "1 1 0%",
|
|
851
851
|
overflow: "hidden auto"
|
|
852
852
|
}
|
|
853
|
-
}, [y.value && ((
|
|
854
|
-
class: `${
|
|
855
|
-
}, [n(
|
|
853
|
+
}, [y.value && ((z = y.value) == null ? void 0 : z.call(y, e, B)) || B]), e.layout !== "wide" && n("div", {
|
|
854
|
+
class: `${u}-links ${M.value}`
|
|
855
|
+
}, [n(ie, {
|
|
856
856
|
theme: N.value,
|
|
857
857
|
inlineIndent: 16,
|
|
858
|
-
class: `${
|
|
858
|
+
class: `${u}-link-menu ${M.value}`,
|
|
859
859
|
selectedKeys: [],
|
|
860
860
|
openKeys: [],
|
|
861
861
|
mode: "inline"
|
|
862
862
|
}, {
|
|
863
|
-
default: () => [(
|
|
864
|
-
class: `${
|
|
865
|
-
key:
|
|
866
|
-
}, Pn(
|
|
867
|
-
default: () => [
|
|
868
|
-
})),
|
|
869
|
-
class: `${
|
|
863
|
+
default: () => [(_.value || []).map((X, ne) => n(Ze, {
|
|
864
|
+
class: `${u}-link ${M.value}`,
|
|
865
|
+
key: ne
|
|
866
|
+
}, Pn(X) ? X : {
|
|
867
|
+
default: () => [X]
|
|
868
|
+
})), E.value && !R.value && n(Ze, {
|
|
869
|
+
class: `${u}-collapsed-button ${M.value}`,
|
|
870
870
|
title: !1,
|
|
871
871
|
key: "collapsed",
|
|
872
872
|
onClick: () => {
|
|
873
|
-
var
|
|
874
|
-
e.onCollapse && ((
|
|
873
|
+
var X;
|
|
874
|
+
e.onCollapse && ((X = e.onCollapse) == null || X.call(e, !r.value));
|
|
875
875
|
}
|
|
876
876
|
}, {
|
|
877
877
|
default: () => {
|
|
878
|
-
var
|
|
879
|
-
return [(
|
|
878
|
+
var X;
|
|
879
|
+
return [(X = E.value) == null ? void 0 : X.call(E, r.value)];
|
|
880
880
|
}
|
|
881
881
|
})]
|
|
882
882
|
})]), g.value && n("div", {
|
|
883
|
-
class: `${
|
|
884
|
-
}, [(
|
|
883
|
+
class: `${u}-footer ${M.value}`
|
|
884
|
+
}, [(q = g.value) == null ? void 0 : q.call(g, e)])];
|
|
885
885
|
}
|
|
886
886
|
})]
|
|
887
887
|
}));
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
|
-
}),
|
|
890
|
+
}), Be = /* @__PURE__ */ W({
|
|
891
891
|
name: "SiderMenuWrapper",
|
|
892
892
|
inheritAttrs: !1,
|
|
893
893
|
props: {
|
|
@@ -898,7 +898,7 @@ const {
|
|
|
898
898
|
}
|
|
899
899
|
},
|
|
900
900
|
setup(e) {
|
|
901
|
-
return () => n(
|
|
901
|
+
return () => n(Q, null, [e.isMobile ? n(ve, {
|
|
902
902
|
maskClosable: !0,
|
|
903
903
|
open: !e.collapsed,
|
|
904
904
|
closable: !1,
|
|
@@ -917,7 +917,7 @@ const {
|
|
|
917
917
|
flexDirection: "row"
|
|
918
918
|
}
|
|
919
919
|
}, {
|
|
920
|
-
default: () => [n(Je,
|
|
920
|
+
default: () => [n(Je, G(e, {
|
|
921
921
|
collapsed: e.isMobile ? !1 : e.collapsed
|
|
922
922
|
}), null)]
|
|
923
923
|
}) : n(Je, e, null)]);
|
|
@@ -929,18 +929,18 @@ const {
|
|
|
929
929
|
}
|
|
930
930
|
},
|
|
931
931
|
pageCardProps: Object,
|
|
932
|
-
pageContentStyle:
|
|
933
|
-
pageChildrenContentStyle:
|
|
932
|
+
pageContentStyle: L.style,
|
|
933
|
+
pageChildrenContentStyle: L.style,
|
|
934
934
|
waterMarkProps: {
|
|
935
935
|
type: Object
|
|
936
936
|
},
|
|
937
|
-
waterMark:
|
|
937
|
+
waterMark: L.bool.def(!0),
|
|
938
938
|
pageHeaderRender: {
|
|
939
939
|
type: [Object, Function, Boolean],
|
|
940
940
|
default: () => {
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
|
-
},
|
|
943
|
+
}, Se = {
|
|
944
944
|
pageChildrenExtraRender: {
|
|
945
945
|
type: [Object, Function, Boolean],
|
|
946
946
|
default: () => {
|
|
@@ -956,8 +956,8 @@ const {
|
|
|
956
956
|
default: () => {
|
|
957
957
|
}
|
|
958
958
|
},
|
|
959
|
-
pageHeaderStyle:
|
|
960
|
-
loading:
|
|
959
|
+
pageHeaderStyle: L.style,
|
|
960
|
+
loading: L.bool.def(!1),
|
|
961
961
|
...pt
|
|
962
962
|
}, Dn = (e) => ({
|
|
963
963
|
[e.componentCls]: {
|
|
@@ -970,27 +970,27 @@ const {
|
|
|
970
970
|
marginTop: "8px"
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
|
-
}), Nn = /* @__PURE__ */
|
|
973
|
+
}), Nn = /* @__PURE__ */ W({
|
|
974
974
|
name: "ProPageHeader",
|
|
975
975
|
props: {
|
|
976
|
-
content:
|
|
977
|
-
breadcrumb:
|
|
976
|
+
content: Se.contentRender,
|
|
977
|
+
breadcrumb: Se.breadcrumbRender
|
|
978
978
|
},
|
|
979
979
|
setup(e) {
|
|
980
980
|
const {
|
|
981
981
|
breadcrumb: t,
|
|
982
982
|
getPrefixCls: a
|
|
983
|
-
} = te(),
|
|
983
|
+
} = te(), i = a({
|
|
984
984
|
isPor: !0,
|
|
985
985
|
suffixCls: "page-header"
|
|
986
986
|
}), {
|
|
987
|
-
wrapSSR:
|
|
988
|
-
hashId:
|
|
989
|
-
} =
|
|
990
|
-
var
|
|
987
|
+
wrapSSR: o,
|
|
988
|
+
hashId: d
|
|
989
|
+
} = ae("ProPageHeader", [Dn], i), f = b(() => {
|
|
990
|
+
var m;
|
|
991
991
|
return {
|
|
992
992
|
...t.value,
|
|
993
|
-
itemRender: ((
|
|
993
|
+
itemRender: ((m = t.value) == null ? void 0 : m.itemRender) || (({
|
|
994
994
|
route: w
|
|
995
995
|
}) => w.path ? n(jt, {
|
|
996
996
|
to: w.path
|
|
@@ -1000,21 +1000,21 @@ const {
|
|
|
1000
1000
|
};
|
|
1001
1001
|
});
|
|
1002
1002
|
return () => {
|
|
1003
|
-
var
|
|
1004
|
-
return
|
|
1005
|
-
class: [`${
|
|
1006
|
-
}, [e.breadcrumb ? (
|
|
1007
|
-
class: [`${
|
|
1003
|
+
var m, w;
|
|
1004
|
+
return o(n("div", {
|
|
1005
|
+
class: [`${i}`, d.value, `${i}-has-breadcrumb`]
|
|
1006
|
+
}, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, f.value) : n(Pt, f.value, null), e.content && n("div", {
|
|
1007
|
+
class: [`${i}-content`, d.value]
|
|
1008
1008
|
}, [(w = e.content) == null ? void 0 : w.call(e)])]));
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
1011
|
}), zn = (e) => {
|
|
1012
|
-
var t, a,
|
|
1012
|
+
var t, a, i, o, d, f, m, w;
|
|
1013
1013
|
return {
|
|
1014
1014
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1015
1015
|
[e.componentCls]: {
|
|
1016
1016
|
marginInline: -(((a = (t = e.layout) == null ? void 0 : t.pageContainer) == null ? void 0 : a.paddingBlockPageContainerContent) ?? 24),
|
|
1017
|
-
marginBlockStart: -(((
|
|
1017
|
+
marginBlockStart: -(((o = (i = e.layout) == null ? void 0 : i.pageContainer) == null ? void 0 : o.paddingBlockPageContainerContent) ?? 24)
|
|
1018
1018
|
},
|
|
1019
1019
|
[e.gridContent]: {
|
|
1020
1020
|
width: "100%"
|
|
@@ -1022,111 +1022,111 @@ const {
|
|
|
1022
1022
|
},
|
|
1023
1023
|
[e.componentCls]: {
|
|
1024
1024
|
"&-children-content": {
|
|
1025
|
-
marginInline: ((f = (
|
|
1026
|
-
marginBlockStart: ((w = (
|
|
1025
|
+
marginInline: ((f = (d = e.layout) == null ? void 0 : d.pageContainer) == null ? void 0 : f.marginInlinePageContainerContent) ?? 24,
|
|
1026
|
+
marginBlockStart: ((w = (m = e.layout) == null ? void 0 : m.pageContainer) == null ? void 0 : w.marginBlockPageContainerContent) ?? 24,
|
|
1027
1027
|
padding: "inherit"
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
1030
|
};
|
|
1031
1031
|
};
|
|
1032
1032
|
function Hn(e) {
|
|
1033
|
-
return
|
|
1034
|
-
const a =
|
|
1033
|
+
return ze("ProPageContainter", (t) => {
|
|
1034
|
+
const a = He(t, {
|
|
1035
1035
|
gridContent: `${t.proComponentsCls}-grid-content`
|
|
1036
1036
|
});
|
|
1037
1037
|
return [zn(a)];
|
|
1038
1038
|
}, e);
|
|
1039
1039
|
}
|
|
1040
1040
|
function Vn(e) {
|
|
1041
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1041
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
|
|
1042
1042
|
}
|
|
1043
|
-
const Mi = /* @__PURE__ */
|
|
1043
|
+
const Mi = /* @__PURE__ */ W({
|
|
1044
1044
|
inheritAttrs: !1,
|
|
1045
1045
|
name: "GProPageContainer",
|
|
1046
|
-
props:
|
|
1046
|
+
props: Se,
|
|
1047
1047
|
setup(e, {
|
|
1048
1048
|
slots: t,
|
|
1049
1049
|
attrs: a
|
|
1050
1050
|
}) {
|
|
1051
1051
|
const {
|
|
1052
|
-
getPrefixCls:
|
|
1053
|
-
hasContentWide:
|
|
1054
|
-
waterMark:
|
|
1052
|
+
getPrefixCls: i,
|
|
1053
|
+
hasContentWide: o,
|
|
1054
|
+
waterMark: d,
|
|
1055
1055
|
pageHeaderRender: f,
|
|
1056
|
-
pageContentStyle:
|
|
1056
|
+
pageContentStyle: m,
|
|
1057
1057
|
pageChildrenContentStyle: w,
|
|
1058
1058
|
pageCardProps: p,
|
|
1059
|
-
usePageCard:
|
|
1059
|
+
usePageCard: R,
|
|
1060
1060
|
waterMarkProps: h
|
|
1061
1061
|
} = te(), {
|
|
1062
|
-
indicator:
|
|
1063
|
-
} =
|
|
1062
|
+
indicator: T
|
|
1063
|
+
} = De(), l = he(), r = i({
|
|
1064
1064
|
suffixCls: "page-container",
|
|
1065
1065
|
isPor: !0
|
|
1066
|
-
}), I =
|
|
1066
|
+
}), I = i({
|
|
1067
1067
|
suffixCls: "grid-content",
|
|
1068
1068
|
isPor: !0
|
|
1069
|
-
}), k = b(() => e.pageCardProps || p.value), x = b(() => e.waterMarkProps || h.value || {}), y = b(() => e.pageContentStyle ||
|
|
1069
|
+
}), k = b(() => e.pageCardProps || p.value), x = b(() => e.waterMarkProps || h.value || {}), y = b(() => e.pageContentStyle || m.value), g = b(() => e.pageChildrenContentStyle || w.value || {}), C = b(() => _e(e.usePageCard) ? e.usePageCard : _e(R.value) ? R.value : !0), {
|
|
1070
1070
|
wrapSSR: $,
|
|
1071
|
-
hashId:
|
|
1071
|
+
hashId: u
|
|
1072
1072
|
} = Hn(r), S = () => {
|
|
1073
|
-
var
|
|
1074
|
-
const
|
|
1073
|
+
var P, H, N, D, V, Y;
|
|
1074
|
+
const O = K(t, e, "pageChildrenExtraRender");
|
|
1075
1075
|
return n("div", {
|
|
1076
|
-
class: `${r}-children-content ${
|
|
1076
|
+
class: `${r}-children-content ${u.value}`,
|
|
1077
1077
|
style: g.value
|
|
1078
|
-
}, [
|
|
1079
|
-
style:
|
|
1078
|
+
}, [O && (O == null ? void 0 : O()), C.value ? n(Lt, G(k.value ? se(k.value, ["loading", "bodyStyle"]) : {}, {
|
|
1079
|
+
style: o.value ? {
|
|
1080
1080
|
minHeight: "853px"
|
|
1081
1081
|
} : void 0,
|
|
1082
1082
|
bordered: !1
|
|
1083
1083
|
}), {
|
|
1084
1084
|
default: () => {
|
|
1085
|
-
var
|
|
1086
|
-
return [(
|
|
1085
|
+
var _;
|
|
1086
|
+
return [(_ = t.default) == null ? void 0 : _.call(t)];
|
|
1087
1087
|
}
|
|
1088
|
-
}) :
|
|
1088
|
+
}) : O ? n("div", {
|
|
1089
1089
|
style: {
|
|
1090
|
-
marginBlockStart: `${(
|
|
1090
|
+
marginBlockStart: `${(D = (N = (H = (P = l == null ? void 0 : l.token) == null ? void 0 : P.value) == null ? void 0 : H.layout) == null ? void 0 : N.pageContainer) == null ? void 0 : D.marginBlockPageContainerContent}px`
|
|
1091
1091
|
}
|
|
1092
|
-
}, [(
|
|
1093
|
-
},
|
|
1094
|
-
let
|
|
1095
|
-
return n(
|
|
1096
|
-
default: () => [
|
|
1092
|
+
}, [(V = t.default) == null ? void 0 : V.call(t)]) : (Y = t.default) == null ? void 0 : Y.call(t)]);
|
|
1093
|
+
}, M = () => {
|
|
1094
|
+
let O;
|
|
1095
|
+
return n(Q, null, [e.waterMark && d.value ? n(Qt, x.value, Vn(O = S()) ? O : {
|
|
1096
|
+
default: () => [O]
|
|
1097
1097
|
}) : S()]);
|
|
1098
1098
|
};
|
|
1099
1099
|
return () => {
|
|
1100
|
-
const
|
|
1101
|
-
return $(n(
|
|
1100
|
+
const O = K(t, e, "pageHeaderRender") || f.value, P = K(t, e, "breadcrumbRender"), H = K(t, e, "contentRender");
|
|
1101
|
+
return $(n(Ce, {
|
|
1102
1102
|
spinning: e.loading,
|
|
1103
|
-
indicator:
|
|
1103
|
+
indicator: T == null ? void 0 : T.value
|
|
1104
1104
|
}, {
|
|
1105
1105
|
default: () => [n("div", {
|
|
1106
1106
|
style: a.style,
|
|
1107
1107
|
class: {
|
|
1108
|
-
[`${
|
|
1108
|
+
[`${u.value}`]: !0,
|
|
1109
1109
|
[`${r}`]: !0
|
|
1110
1110
|
}
|
|
1111
|
-
}, [!
|
|
1111
|
+
}, [!o.value && O !== !1 && (O || n(Nn, {
|
|
1112
1112
|
style: e.pageHeaderStyle,
|
|
1113
|
-
breadcrumb:
|
|
1113
|
+
breadcrumb: P,
|
|
1114
1114
|
content: H
|
|
1115
1115
|
}, null)), n("div", {
|
|
1116
|
-
class: [I,
|
|
1116
|
+
class: [I, u.value]
|
|
1117
1117
|
}, [n("div", {
|
|
1118
|
-
class: `${I}-children ${
|
|
1118
|
+
class: `${I}-children ${u.value}`,
|
|
1119
1119
|
style: y.value
|
|
1120
|
-
}, [
|
|
1120
|
+
}, [M()])])])]
|
|
1121
1121
|
}));
|
|
1122
1122
|
};
|
|
1123
1123
|
}
|
|
1124
|
-
}),
|
|
1125
|
-
...
|
|
1126
|
-
...
|
|
1127
|
-
logo:
|
|
1128
|
-
logoStyle:
|
|
1129
|
-
logoDirection:
|
|
1124
|
+
}), Ue = {
|
|
1125
|
+
...ue,
|
|
1126
|
+
...Oe,
|
|
1127
|
+
logo: de.logo,
|
|
1128
|
+
logoStyle: de.logoStyle,
|
|
1129
|
+
logoDirection: de.logoDirection,
|
|
1130
1130
|
menuLoading: Boolean,
|
|
1131
1131
|
autoHideHeader: Boolean,
|
|
1132
1132
|
collapsed: Boolean,
|
|
@@ -1162,7 +1162,7 @@ const Mi = /* @__PURE__ */ j({
|
|
|
1162
1162
|
onMenuHeaderClick: Function,
|
|
1163
1163
|
onSelect: Z.onSelect
|
|
1164
1164
|
}, vt = {
|
|
1165
|
-
...
|
|
1165
|
+
...Ue,
|
|
1166
1166
|
headerTitleRender: {
|
|
1167
1167
|
type: [Object, Function],
|
|
1168
1168
|
default: () => {
|
|
@@ -1182,12 +1182,12 @@ const Mi = /* @__PURE__ */ j({
|
|
|
1182
1182
|
collapsedWidth: Z.collapsedWidth,
|
|
1183
1183
|
siderWidth: Z.siderWidth
|
|
1184
1184
|
}, xt = {
|
|
1185
|
-
loading:
|
|
1185
|
+
loading: L.looseBool,
|
|
1186
1186
|
isMobile: Z.isMobile,
|
|
1187
|
-
collapsed:
|
|
1187
|
+
collapsed: Oe.collapsed,
|
|
1188
1188
|
siderWidth: Z.siderWidth,
|
|
1189
1189
|
collapsedWidth: Z.collapsedWidth,
|
|
1190
|
-
isFixedMultiTab:
|
|
1190
|
+
isFixedMultiTab: ue.fixedMultiTab,
|
|
1191
1191
|
onReloadPage: {
|
|
1192
1192
|
type: Function
|
|
1193
1193
|
},
|
|
@@ -1243,7 +1243,7 @@ const Mi = /* @__PURE__ */ j({
|
|
|
1243
1243
|
title: "Ant Design Vue",
|
|
1244
1244
|
href: "https://next.antdv.com/components/overview-cn/",
|
|
1245
1245
|
blankTarget: !0
|
|
1246
|
-
}],
|
|
1246
|
+
}], $e = /* @__PURE__ */ W({
|
|
1247
1247
|
name: "GlobalFooter",
|
|
1248
1248
|
props: {
|
|
1249
1249
|
links: {
|
|
@@ -1256,41 +1256,41 @@ const Mi = /* @__PURE__ */ j({
|
|
|
1256
1256
|
}
|
|
1257
1257
|
},
|
|
1258
1258
|
setup(e) {
|
|
1259
|
-
const t =
|
|
1259
|
+
const t = ge({
|
|
1260
1260
|
suffixCls: "global-footer",
|
|
1261
1261
|
isPor: !0
|
|
1262
1262
|
}), {
|
|
1263
1263
|
wrapSSR: a,
|
|
1264
|
-
hashId:
|
|
1265
|
-
} =
|
|
1264
|
+
hashId: i
|
|
1265
|
+
} = ae("ProLayoutFooter", [jn], t);
|
|
1266
1266
|
return () => a(n(Dt, {
|
|
1267
1267
|
style: {
|
|
1268
1268
|
padding: 0
|
|
1269
1269
|
}
|
|
1270
1270
|
}, {
|
|
1271
1271
|
default: () => [n("div", {
|
|
1272
|
-
class: [t,
|
|
1272
|
+
class: [t, i.value]
|
|
1273
1273
|
}, [e.links && n("div", {
|
|
1274
|
-
class: `${t}-links ${
|
|
1275
|
-
}, [e.links.map((
|
|
1276
|
-
key:
|
|
1277
|
-
title:
|
|
1278
|
-
target:
|
|
1279
|
-
href:
|
|
1280
|
-
}, [
|
|
1281
|
-
class: `${t}-copyright ${
|
|
1282
|
-
}, [
|
|
1274
|
+
class: `${t}-links ${i.value}`
|
|
1275
|
+
}, [e.links.map((o) => n("a", {
|
|
1276
|
+
key: o.key,
|
|
1277
|
+
title: o.key,
|
|
1278
|
+
target: o.blankTarget ? "_blank" : "_self",
|
|
1279
|
+
href: o.href
|
|
1280
|
+
}, [o.title]))]), e.copyright && n("div", {
|
|
1281
|
+
class: `${t}-copyright ${i.value}`
|
|
1282
|
+
}, [oe("Copyright 2022 "), n("a", {
|
|
1283
1283
|
href: "https://beian.miit.gov.cn/"
|
|
1284
1284
|
}, [e.copyright])])])]
|
|
1285
1285
|
}));
|
|
1286
1286
|
}
|
|
1287
1287
|
}), wt = {
|
|
1288
|
-
...
|
|
1289
|
-
...
|
|
1288
|
+
...ue,
|
|
1289
|
+
...Ue,
|
|
1290
1290
|
...Z,
|
|
1291
1291
|
...vt,
|
|
1292
1292
|
...xt,
|
|
1293
|
-
...
|
|
1293
|
+
...Se,
|
|
1294
1294
|
pure: Boolean,
|
|
1295
1295
|
token: Object,
|
|
1296
1296
|
waterMark: {
|
|
@@ -1312,9 +1312,9 @@ const Mi = /* @__PURE__ */ j({
|
|
|
1312
1312
|
type: [Object, Function],
|
|
1313
1313
|
default: () => null
|
|
1314
1314
|
},
|
|
1315
|
-
disableContentMargin:
|
|
1316
|
-
isChildrenLayout:
|
|
1317
|
-
loading:
|
|
1315
|
+
disableContentMargin: L.looseBool,
|
|
1316
|
+
isChildrenLayout: L.looseBool,
|
|
1317
|
+
loading: L.looseBool,
|
|
1318
1318
|
footerLinks: {
|
|
1319
1319
|
type: [Array, Boolean],
|
|
1320
1320
|
default: Ct
|
|
@@ -1337,7 +1337,7 @@ const Mi = /* @__PURE__ */ j({
|
|
|
1337
1337
|
type: Array,
|
|
1338
1338
|
default: () => []
|
|
1339
1339
|
},
|
|
1340
|
-
collapsed:
|
|
1340
|
+
collapsed: L.looseBool
|
|
1341
1341
|
}, Wn = (e) => ({
|
|
1342
1342
|
[e.componentCls]: {
|
|
1343
1343
|
display: "flex",
|
|
@@ -1418,7 +1418,7 @@ const Mi = /* @__PURE__ */ j({
|
|
|
1418
1418
|
"&-fixed": {
|
|
1419
1419
|
position: "fixed",
|
|
1420
1420
|
height: 62,
|
|
1421
|
-
top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) ||
|
|
1421
|
+
top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) || j.headerHeight,
|
|
1422
1422
|
right: 0,
|
|
1423
1423
|
zIndex: 9,
|
|
1424
1424
|
transition: "width .2s"
|
|
@@ -1427,8 +1427,8 @@ const Mi = /* @__PURE__ */ j({
|
|
|
1427
1427
|
};
|
|
1428
1428
|
};
|
|
1429
1429
|
function Un(e) {
|
|
1430
|
-
return
|
|
1431
|
-
const a =
|
|
1430
|
+
return ze("ProMultiTabs", (t) => {
|
|
1431
|
+
const a = He(t, {
|
|
1432
1432
|
componentWrapCls: `${t.componentCls}-wrap`
|
|
1433
1433
|
});
|
|
1434
1434
|
return [An(a)];
|
|
@@ -1453,13 +1453,13 @@ const En = [
|
|
|
1453
1453
|
}
|
|
1454
1454
|
];
|
|
1455
1455
|
function Xn(e) {
|
|
1456
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1456
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function A(e) {
|
|
1459
1459
|
var t;
|
|
1460
1460
|
return ((t = e == null ? void 0 : e.meta) == null ? void 0 : t.currenFulltPath) || e.fullPath || e.path;
|
|
1461
1461
|
}
|
|
1462
|
-
const Yn =
|
|
1462
|
+
const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
1463
1463
|
props: {
|
|
1464
1464
|
...xt,
|
|
1465
1465
|
visible: {
|
|
@@ -1472,37 +1472,37 @@ const Yn = Pe.TabPane, _n = oe.Item, Gn = /* @__PURE__ */ j({
|
|
|
1472
1472
|
const {
|
|
1473
1473
|
isMobile: t,
|
|
1474
1474
|
isFixedMultiTab: a
|
|
1475
|
-
} =
|
|
1475
|
+
} = Ie(e), i = ke(!1), o = rt({
|
|
1476
1476
|
activeKey: "",
|
|
1477
1477
|
contextMenuActiveKey: ""
|
|
1478
|
-
}),
|
|
1478
|
+
}), d = Ne(), {
|
|
1479
1479
|
menuData: f,
|
|
1480
|
-
flatMenuData:
|
|
1480
|
+
flatMenuData: m,
|
|
1481
1481
|
layout: w,
|
|
1482
1482
|
splitMenus: p,
|
|
1483
|
-
getPrefixCls:
|
|
1484
|
-
} = te(), h =
|
|
1483
|
+
getPrefixCls: R
|
|
1484
|
+
} = te(), h = R({
|
|
1485
1485
|
isPor: !0,
|
|
1486
1486
|
suffixCls: "multi-tab"
|
|
1487
1487
|
}), {
|
|
1488
|
-
wrapSSR:
|
|
1488
|
+
wrapSSR: T,
|
|
1489
1489
|
hashId: l
|
|
1490
|
-
} = Un(h), r =
|
|
1491
|
-
|
|
1492
|
-
var
|
|
1493
|
-
(
|
|
1490
|
+
} = Un(h), r = ke([]);
|
|
1491
|
+
me(r, () => {
|
|
1492
|
+
var c;
|
|
1493
|
+
(c = e.onChangeTabs) == null || c.call(e, Ve(U(r)));
|
|
1494
1494
|
}, {
|
|
1495
1495
|
deep: !0
|
|
1496
1496
|
});
|
|
1497
|
-
const I = b(() => w.value === "mix" && !e.isMobile && p.value), k = b(() =>
|
|
1498
|
-
const
|
|
1499
|
-
return x.value &&
|
|
1497
|
+
const I = b(() => w.value === "mix" && !e.isMobile && p.value), k = b(() => A(d.currentRoute.value)), x = b(() => a.value && !t.value), y = b(() => {
|
|
1498
|
+
const c = !(I.value && U(m.value).length === 0 || f.value.length === 0 || w.value === "top");
|
|
1499
|
+
return x.value && c ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
|
|
1500
1500
|
}), g = b(() => ct(`${h}-wrap`, {
|
|
1501
1501
|
[`${l.value}`]: !0,
|
|
1502
1502
|
[`${h}-wrap-fixed`]: e.isFixedMultiTab,
|
|
1503
1503
|
[`${h}-wrap-loading`]: e.loading
|
|
1504
1504
|
})), C = b(() => {
|
|
1505
|
-
const
|
|
1505
|
+
const c = {
|
|
1506
1506
|
display: e.visible ? void 0 : "none"
|
|
1507
1507
|
};
|
|
1508
1508
|
return e.isFixedMultiTab ? {
|
|
@@ -1510,169 +1510,177 @@ const Yn = Pe.TabPane, _n = oe.Item, Gn = /* @__PURE__ */ j({
|
|
|
1510
1510
|
width: y.value,
|
|
1511
1511
|
paddingTop: "6px",
|
|
1512
1512
|
zIndex: 99,
|
|
1513
|
-
...
|
|
1514
|
-
} :
|
|
1515
|
-
}), $ = (
|
|
1516
|
-
if (
|
|
1517
|
-
const v =
|
|
1518
|
-
path:
|
|
1513
|
+
...c
|
|
1514
|
+
} : c;
|
|
1515
|
+
}), $ = (c) => A(c) === k.value, u = (c) => {
|
|
1516
|
+
if (c.name && c.meta && c.meta.tagHidden !== !0) {
|
|
1517
|
+
const v = A(c), B = r.value.find((z) => A(z) === v), F = {
|
|
1518
|
+
path: c.path,
|
|
1519
1519
|
fullPath: v,
|
|
1520
|
-
query:
|
|
1521
|
-
params:
|
|
1522
|
-
name:
|
|
1520
|
+
query: c.query,
|
|
1521
|
+
params: c.params,
|
|
1522
|
+
name: c.name,
|
|
1523
1523
|
meta: {
|
|
1524
|
-
...
|
|
1524
|
+
...c.meta,
|
|
1525
|
+
originTagPath: c.fullPath
|
|
1525
1526
|
}
|
|
1526
1527
|
};
|
|
1527
|
-
B ? Object.assign(B,
|
|
1528
|
+
B ? Object.assign(B, F) : c.meta.tagFixed ? r.value.unshift(F) : r.value.push(F), $(c) && (o.activeKey = v);
|
|
1528
1529
|
}
|
|
1529
|
-
}, S = (
|
|
1530
|
-
|
|
1531
|
-
v.meta && v.meta.tagFixed &&
|
|
1530
|
+
}, S = (c) => {
|
|
1531
|
+
c.forEach((v) => {
|
|
1532
|
+
v.meta && v.meta.tagFixed && u(v), v.children && S(v.children);
|
|
1532
1533
|
});
|
|
1533
1534
|
};
|
|
1534
|
-
|
|
1535
|
-
S(
|
|
1535
|
+
me(() => f.value, (c) => {
|
|
1536
|
+
S(c);
|
|
1536
1537
|
}, {
|
|
1537
1538
|
deep: !0,
|
|
1538
1539
|
immediate: !0
|
|
1539
|
-
}),
|
|
1540
|
-
|
|
1540
|
+
}), me(() => d.currentRoute.value, (c) => {
|
|
1541
|
+
u(c);
|
|
1541
1542
|
}, {
|
|
1542
1543
|
deep: !0,
|
|
1543
1544
|
immediate: !0
|
|
1544
1545
|
});
|
|
1545
|
-
const
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
},
|
|
1549
|
-
const
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1546
|
+
const M = (c) => {
|
|
1547
|
+
var v, B;
|
|
1548
|
+
return ((B = (v = r.value.find((F) => (c || o.activeKey) === A(F))) == null ? void 0 : v.meta) == null ? void 0 : B.originTagPath) || c || o.activeKey;
|
|
1549
|
+
}, O = () => {
|
|
1550
|
+
const c = r.value.slice(-1)[0];
|
|
1551
|
+
c ? d.push({
|
|
1552
|
+
path: M(A(c))
|
|
1553
|
+
}) : d.push("/");
|
|
1554
|
+
}, P = async (c) => {
|
|
1555
|
+
const v = r.value.find((B) => c === A(B));
|
|
1556
|
+
r.value = r.value.filter((B) => A(B) !== c), v && $(v) && O();
|
|
1557
|
+
}, H = (c) => {
|
|
1558
|
+
const v = r.value.find((B) => A(B) === c);
|
|
1559
|
+
v && o.activeKey !== A(v) && d.push({
|
|
1560
|
+
path: M(A(v))
|
|
1561
|
+
});
|
|
1562
|
+
}, N = () => {
|
|
1563
|
+
var c;
|
|
1564
|
+
i.value = !0, e.onReloadPage && ((c = e.onReloadPage) == null || c.call(e)), setTimeout(() => {
|
|
1565
|
+
i.value = !1;
|
|
1558
1566
|
}, 500);
|
|
1559
|
-
},
|
|
1560
|
-
const B = r.value.findIndex((
|
|
1561
|
-
switch (
|
|
1567
|
+
}, D = (c) => c.meta && c.meta.tagFixed, V = (c) => o[c], Y = (c, v) => {
|
|
1568
|
+
const B = r.value.findIndex((F) => A(F) === V(v));
|
|
1569
|
+
switch (c) {
|
|
1562
1570
|
case "closeOthersTabs":
|
|
1563
|
-
r.value = r.value.filter((
|
|
1571
|
+
r.value = r.value.filter((F) => {
|
|
1564
1572
|
var z;
|
|
1565
|
-
return
|
|
1573
|
+
return A(F) === V(v) || ((z = F.meta) == null ? void 0 : z.tagFixed);
|
|
1566
1574
|
});
|
|
1567
1575
|
break;
|
|
1568
1576
|
case "closeLeftTabs":
|
|
1569
|
-
B && (r.value = r.value.filter((
|
|
1570
|
-
var
|
|
1571
|
-
return z >= B || ((
|
|
1577
|
+
B && (r.value = r.value.filter((F, z) => {
|
|
1578
|
+
var q;
|
|
1579
|
+
return z >= B || ((q = F.meta) == null ? void 0 : q.tagFixed);
|
|
1572
1580
|
}));
|
|
1573
1581
|
break;
|
|
1574
1582
|
case "closeRightTabs":
|
|
1575
|
-
B && (r.value = r.value.filter((
|
|
1576
|
-
var
|
|
1577
|
-
return z <= B || ((
|
|
1583
|
+
B && (r.value = r.value.filter((F, z) => {
|
|
1584
|
+
var q;
|
|
1585
|
+
return z <= B || ((q = F.meta) == null ? void 0 : q.tagFixed);
|
|
1578
1586
|
}));
|
|
1579
1587
|
break;
|
|
1580
1588
|
case "reloadPage":
|
|
1581
|
-
(B === 0 || B) &&
|
|
1589
|
+
(B === 0 || B) && o.activeKey === V(v) && N();
|
|
1582
1590
|
break;
|
|
1583
1591
|
}
|
|
1584
|
-
|
|
1585
|
-
},
|
|
1586
|
-
const B = r.value.findIndex((
|
|
1587
|
-
switch (
|
|
1592
|
+
o.activeKey !== V(v) && d.push(M(V(v)));
|
|
1593
|
+
}, _ = (c, v) => {
|
|
1594
|
+
const B = r.value.findIndex((F) => A(F) === v);
|
|
1595
|
+
switch (c) {
|
|
1588
1596
|
case "closeOthersTabs":
|
|
1589
|
-
return r.value.filter((
|
|
1590
|
-
var
|
|
1591
|
-
return
|
|
1597
|
+
return r.value.filter((X, ne) => {
|
|
1598
|
+
var ee;
|
|
1599
|
+
return ne !== B && !((ee = X.meta) != null && ee.tagFixed);
|
|
1592
1600
|
}).length === 0;
|
|
1593
1601
|
case "closeLeftTabs":
|
|
1594
|
-
return r.value.filter((
|
|
1595
|
-
var
|
|
1596
|
-
return
|
|
1602
|
+
return r.value.filter((X, ne) => {
|
|
1603
|
+
var ee;
|
|
1604
|
+
return ne < B && !((ee = X.meta) != null && ee.tagFixed);
|
|
1597
1605
|
}).length === 0;
|
|
1598
1606
|
case "closeRightTabs":
|
|
1599
|
-
return r.value.filter((
|
|
1600
|
-
var
|
|
1601
|
-
return
|
|
1607
|
+
return r.value.filter((X, ne) => {
|
|
1608
|
+
var ee;
|
|
1609
|
+
return ne > B && !((ee = X.meta) != null && ee.tagFixed);
|
|
1602
1610
|
}).length === 0;
|
|
1603
1611
|
}
|
|
1604
|
-
},
|
|
1612
|
+
}, E = (c) => {
|
|
1605
1613
|
let v;
|
|
1606
1614
|
const {
|
|
1607
1615
|
path: B,
|
|
1608
|
-
stateType:
|
|
1609
|
-
} =
|
|
1610
|
-
return n(
|
|
1616
|
+
stateType: F
|
|
1617
|
+
} = c;
|
|
1618
|
+
return n(ie, {
|
|
1611
1619
|
selectedKeys: [],
|
|
1612
1620
|
onClick: ({
|
|
1613
1621
|
key: z
|
|
1614
|
-
}) =>
|
|
1622
|
+
}) => Y(z, F)
|
|
1615
1623
|
}, Xn(v = En.map((z) => n(_n, {
|
|
1616
1624
|
key: z.key,
|
|
1617
|
-
disabled:
|
|
1625
|
+
disabled: _(z.key, B)
|
|
1618
1626
|
}, {
|
|
1619
1627
|
default: () => [z.label]
|
|
1620
1628
|
}))) ? v : {
|
|
1621
1629
|
default: () => [v]
|
|
1622
1630
|
});
|
|
1623
|
-
},
|
|
1631
|
+
}, J = (c) => {
|
|
1624
1632
|
const {
|
|
1625
1633
|
router: v
|
|
1626
|
-
} =
|
|
1634
|
+
} = c;
|
|
1627
1635
|
return n(Ye, {
|
|
1628
1636
|
trigger: "contextmenu",
|
|
1629
|
-
overlay: n(
|
|
1630
|
-
path:
|
|
1637
|
+
overlay: n(E, {
|
|
1638
|
+
path: A(v) || "",
|
|
1631
1639
|
stateType: "contextMenuActiveKey"
|
|
1632
1640
|
}, null),
|
|
1633
1641
|
onOpenChange: (B) => {
|
|
1634
|
-
|
|
1642
|
+
o.contextMenuActiveKey = B && A(v) || "";
|
|
1635
1643
|
}
|
|
1636
1644
|
}, {
|
|
1637
1645
|
default: () => {
|
|
1638
1646
|
var B;
|
|
1639
1647
|
return [n("div", {
|
|
1640
1648
|
class: [`${h}-title`, l.value]
|
|
1641
|
-
}, [(B = v.meta) == null ? void 0 : B.title,
|
|
1649
|
+
}, [(B = v.meta) == null ? void 0 : B.title, o.activeKey === A(v) && n(Xt, {
|
|
1642
1650
|
class: [`${h}-reload-btn`, l.value],
|
|
1643
|
-
spin:
|
|
1644
|
-
onClick: (
|
|
1645
|
-
|
|
1651
|
+
spin: i.value,
|
|
1652
|
+
onClick: (F) => {
|
|
1653
|
+
F.stopPropagation(), !i.value && N();
|
|
1646
1654
|
}
|
|
1647
|
-
}, null), r.value.length > 1 && !
|
|
1655
|
+
}, null), r.value.length > 1 && !D(v) && n(dt, {
|
|
1648
1656
|
class: [`${h}-close-btn`, l.value],
|
|
1649
|
-
onClick: (
|
|
1650
|
-
|
|
1657
|
+
onClick: (F) => {
|
|
1658
|
+
F.stopPropagation(), !i.value && P(A(v) || "");
|
|
1651
1659
|
}
|
|
1652
1660
|
}, null)])];
|
|
1653
1661
|
}
|
|
1654
1662
|
});
|
|
1655
1663
|
};
|
|
1656
|
-
return () =>
|
|
1664
|
+
return () => T(n(Q, null, [!!e.isFixedMultiTab && Bt(n("div", {
|
|
1657
1665
|
class: [`${h}-fixed`, l.value]
|
|
1658
|
-
}, null), [[$t, e.visible]]), n(
|
|
1666
|
+
}, null), [[$t, e.visible]]), n(Le, {
|
|
1659
1667
|
hideAdd: !0,
|
|
1660
1668
|
type: "editable-card",
|
|
1661
1669
|
style: C.value,
|
|
1662
1670
|
class: g.value,
|
|
1663
|
-
activeKey:
|
|
1664
|
-
onTabClick:
|
|
1671
|
+
activeKey: o.activeKey,
|
|
1672
|
+
onTabClick: H
|
|
1665
1673
|
}, {
|
|
1666
|
-
default: () => [r.value.map((
|
|
1667
|
-
key:
|
|
1674
|
+
default: () => [r.value.map((c) => n(Yn, {
|
|
1675
|
+
key: A(c),
|
|
1668
1676
|
closable: !1,
|
|
1669
|
-
tab: n(
|
|
1670
|
-
router:
|
|
1677
|
+
tab: n(J, {
|
|
1678
|
+
router: c
|
|
1671
1679
|
}, null)
|
|
1672
1680
|
}, null))],
|
|
1673
1681
|
rightExtra: () => n(Ye, {
|
|
1674
|
-
overlay: n(
|
|
1675
|
-
path:
|
|
1682
|
+
overlay: n(E, {
|
|
1683
|
+
path: o.activeKey,
|
|
1676
1684
|
stateType: "activeKey"
|
|
1677
1685
|
}, null)
|
|
1678
1686
|
}, {
|
|
@@ -1685,22 +1693,22 @@ const Yn = Pe.TabPane, _n = oe.Item, Gn = /* @__PURE__ */ j({
|
|
|
1685
1693
|
}
|
|
1686
1694
|
}), {
|
|
1687
1695
|
Content: qn
|
|
1688
|
-
} =
|
|
1696
|
+
} = fe, Ee = (e, {
|
|
1689
1697
|
slots: t,
|
|
1690
1698
|
attrs: a
|
|
1691
1699
|
}) => {
|
|
1692
1700
|
var I;
|
|
1693
1701
|
const {
|
|
1694
|
-
hashId:
|
|
1695
|
-
prefixCls:
|
|
1696
|
-
isMobile:
|
|
1702
|
+
hashId: i,
|
|
1703
|
+
prefixCls: o,
|
|
1704
|
+
isMobile: d,
|
|
1697
1705
|
loading: f,
|
|
1698
|
-
collapsed:
|
|
1706
|
+
collapsed: m,
|
|
1699
1707
|
siderWidth: w,
|
|
1700
1708
|
isShowTabsBar: p,
|
|
1701
|
-
isFixedMultiTab:
|
|
1709
|
+
isFixedMultiTab: R,
|
|
1702
1710
|
onReloadPage: h,
|
|
1703
|
-
onChangeTabs:
|
|
1711
|
+
onChangeTabs: T
|
|
1704
1712
|
} = e;
|
|
1705
1713
|
if (e.isChildrenLayout)
|
|
1706
1714
|
return (I = t.default) == null ? void 0 : I.call(t);
|
|
@@ -1708,23 +1716,23 @@ const Yn = Pe.TabPane, _n = oe.Item, Gn = /* @__PURE__ */ j({
|
|
|
1708
1716
|
flatMenuData: l,
|
|
1709
1717
|
layout: r
|
|
1710
1718
|
} = te();
|
|
1711
|
-
return n(
|
|
1712
|
-
visible: (
|
|
1713
|
-
isMobile:
|
|
1719
|
+
return n(Q, null, [n(Gn, {
|
|
1720
|
+
visible: (U(r) === "mix" ? U(l).length > 0 : !0) && p,
|
|
1721
|
+
isMobile: d,
|
|
1714
1722
|
loading: f,
|
|
1715
|
-
isFixedMultiTab:
|
|
1723
|
+
isFixedMultiTab: R,
|
|
1716
1724
|
siderWidth: w,
|
|
1717
|
-
collapsed:
|
|
1725
|
+
collapsed: m,
|
|
1718
1726
|
onReloadPage: h,
|
|
1719
|
-
onChangeTabs:
|
|
1727
|
+
onChangeTabs: T
|
|
1720
1728
|
}, null), n(qn, {
|
|
1721
1729
|
style: a.style,
|
|
1722
|
-
class: [`${
|
|
1730
|
+
class: [`${o}-content`]
|
|
1723
1731
|
}, {
|
|
1724
1732
|
default: () => {
|
|
1725
1733
|
var k;
|
|
1726
1734
|
return [f && n(un, null, null), n("div", {
|
|
1727
|
-
class: [`${
|
|
1735
|
+
class: [`${o}-content-spin-container`, i],
|
|
1728
1736
|
style: {
|
|
1729
1737
|
opacity: f ? "0" : void 0
|
|
1730
1738
|
}
|
|
@@ -1732,17 +1740,17 @@ const Yn = Pe.TabPane, _n = oe.Item, Gn = /* @__PURE__ */ j({
|
|
|
1732
1740
|
}
|
|
1733
1741
|
})]);
|
|
1734
1742
|
};
|
|
1735
|
-
|
|
1736
|
-
|
|
1743
|
+
Ee.inheritAttrs = !1;
|
|
1744
|
+
Ee.displayName = "wrap-content";
|
|
1737
1745
|
const Zn = (e) => {
|
|
1738
|
-
var t, a,
|
|
1746
|
+
var t, a, i, o;
|
|
1739
1747
|
return {
|
|
1740
1748
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1741
1749
|
[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]: {
|
|
1742
1750
|
backgroundColor: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.colorBgMenu) || e.colorBgElevated
|
|
1743
1751
|
},
|
|
1744
1752
|
[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]: {
|
|
1745
|
-
backgroundColor: (
|
|
1753
|
+
backgroundColor: (o = (i = e.layout) == null ? void 0 : i.header) == null ? void 0 : o.colorDarkBgMenu,
|
|
1746
1754
|
[`${e.proComponentsCls}-global-header-collapsed-button`]: {
|
|
1747
1755
|
color: "#fff"
|
|
1748
1756
|
}
|
|
@@ -1871,55 +1879,55 @@ const Zn = (e) => {
|
|
|
1871
1879
|
}
|
|
1872
1880
|
}), St = {
|
|
1873
1881
|
...Z,
|
|
1874
|
-
...
|
|
1875
|
-
}, Qn = (e, t) => e === !1 ? null : e ? e(t, null) : t, ea = /* @__PURE__ */
|
|
1882
|
+
...Ue
|
|
1883
|
+
}, Qn = (e, t) => e === !1 ? null : e ? e(t, null) : t, ea = /* @__PURE__ */ W({
|
|
1876
1884
|
props: St,
|
|
1877
1885
|
setup(e) {
|
|
1878
|
-
return () => e.rightContentRender && typeof e.rightContentRender == "function" && n(
|
|
1886
|
+
return () => e.rightContentRender && typeof e.rightContentRender == "function" && n(Q, null, [e.rightContentRender({
|
|
1879
1887
|
...e
|
|
1880
1888
|
})]);
|
|
1881
1889
|
}
|
|
1882
|
-
}), ta = /* @__PURE__ */
|
|
1890
|
+
}), ta = /* @__PURE__ */ W({
|
|
1883
1891
|
props: St,
|
|
1884
1892
|
inheritAttrs: !1,
|
|
1885
1893
|
setup(e, {
|
|
1886
1894
|
slots: t,
|
|
1887
1895
|
emit: a
|
|
1888
1896
|
}) {
|
|
1889
|
-
const
|
|
1890
|
-
token:
|
|
1891
|
-
} =
|
|
1892
|
-
getPrefixCls:
|
|
1897
|
+
const i = Ne(), {
|
|
1898
|
+
token: o
|
|
1899
|
+
} = he(), {
|
|
1900
|
+
getPrefixCls: d,
|
|
1893
1901
|
openKeys: f,
|
|
1894
|
-
selectedKeys:
|
|
1902
|
+
selectedKeys: m
|
|
1895
1903
|
} = te(), {
|
|
1896
1904
|
width: w
|
|
1897
|
-
} = rn(), p =
|
|
1905
|
+
} = rn(), p = d({
|
|
1898
1906
|
suffixCls: "global-header",
|
|
1899
1907
|
isPor: !0
|
|
1900
1908
|
}), {
|
|
1901
|
-
wrapSSR:
|
|
1909
|
+
wrapSSR: R,
|
|
1902
1910
|
hashId: h
|
|
1903
|
-
} =
|
|
1911
|
+
} = ae("ProGlobalHeader", [Jn], p), T = b(() => !e.isMobile || e.layout === "top" || e.layout === "mix" && e.splitMenus), l = b(() => ({
|
|
1904
1912
|
[`${h.value}`]: !0,
|
|
1905
1913
|
[`${p}`]: !0,
|
|
1906
1914
|
[`${p}-${e.layout}`]: !0
|
|
1907
1915
|
})), r = (y) => {
|
|
1908
1916
|
var g;
|
|
1909
|
-
if (
|
|
1910
|
-
const C =
|
|
1911
|
-
e.onSelect && y === "select" && e.onSelect(C.filter(($) => $.name !== "index").map(($) => $.path)), e.onOpenKeys && y === "openKeys" && ((g = e.onOpenKeys) == null || g.call(e, C.filter(($) => $.path !==
|
|
1917
|
+
if (i.currentRoute) {
|
|
1918
|
+
const C = i.currentRoute.value.matched.concat();
|
|
1919
|
+
e.onSelect && y === "select" && e.onSelect(C.filter(($) => $.name !== "index").map(($) => $.path)), e.onOpenKeys && y === "openKeys" && ((g = e.onOpenKeys) == null || g.call(e, C.filter(($) => $.path !== i.currentRoute.value.path).map(($) => $.path)));
|
|
1912
1920
|
}
|
|
1913
1921
|
}, I = () => {
|
|
1914
1922
|
a("collapse", !e.collapsed);
|
|
1915
1923
|
}, k = b(() => e.collapsedButtonRender || bt), x = () => {
|
|
1916
1924
|
var y;
|
|
1917
|
-
return n(
|
|
1925
|
+
return n(Q, null, [T.value ? n("div", {
|
|
1918
1926
|
style: {
|
|
1919
1927
|
flex: 1
|
|
1920
1928
|
},
|
|
1921
1929
|
class: [`${p}-menu`, h.value]
|
|
1922
|
-
}, [n(
|
|
1930
|
+
}, [n(Pe, {
|
|
1923
1931
|
theme: {
|
|
1924
1932
|
components: {
|
|
1925
1933
|
Layout: {
|
|
@@ -1932,17 +1940,17 @@ const Zn = (e) => {
|
|
|
1932
1940
|
colorActiveBarHeight: 2,
|
|
1933
1941
|
colorActiveBarBorderSize: 0,
|
|
1934
1942
|
horizontalItemBorderRadius: 4
|
|
1935
|
-
},
|
|
1943
|
+
}, o.value || {}, e.theme, "header")
|
|
1936
1944
|
}
|
|
1937
1945
|
}
|
|
1938
1946
|
}, {
|
|
1939
|
-
default: () => [n(gt,
|
|
1947
|
+
default: () => [n(gt, G({
|
|
1940
1948
|
theme: e.theme,
|
|
1941
1949
|
mode: e.mode,
|
|
1942
1950
|
collapsed: e.collapsed,
|
|
1943
1951
|
menuData: e.menuData,
|
|
1944
1952
|
openKeys: f.value,
|
|
1945
|
-
selectedKeys:
|
|
1953
|
+
selectedKeys: m.value,
|
|
1946
1954
|
iconfontUrl: e.iconfontUrl,
|
|
1947
1955
|
menuItemRender: e.menuItemRender,
|
|
1948
1956
|
subMenuItemRender: e.subMenuItemRender,
|
|
@@ -1958,7 +1966,7 @@ const Zn = (e) => {
|
|
|
1958
1966
|
style: {
|
|
1959
1967
|
flex: 1
|
|
1960
1968
|
}
|
|
1961
|
-
}, [(y = t.default) == null ? void 0 : y.call(t)]), e.layout !== "simple" && n(ea,
|
|
1969
|
+
}, [(y = t.default) == null ? void 0 : y.call(t)]), e.layout !== "simple" && n(ea, G(e, {
|
|
1962
1970
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
1963
1971
|
rightContentRender: e.rightContentRender
|
|
1964
1972
|
}), null)]);
|
|
@@ -1972,12 +1980,12 @@ const Zn = (e) => {
|
|
|
1972
1980
|
},
|
|
1973
1981
|
class: [`${p}-logo`, e.isMobile ? "mobile" : "", h.value]
|
|
1974
1982
|
}, [n("a", null, [yt(e.logo)])]);
|
|
1975
|
-
return
|
|
1983
|
+
return R(n("div", {
|
|
1976
1984
|
class: l.value
|
|
1977
|
-
}, [e.isMobile ? n(
|
|
1985
|
+
}, [e.isMobile ? n(Q, null, [Qn(e.menuHeaderRender, y), e.isMobile && U(k) && n("span", {
|
|
1978
1986
|
class: `${p}-collapsed-button ${h.value}`,
|
|
1979
1987
|
onClick: I
|
|
1980
|
-
}, [
|
|
1988
|
+
}, [U(k)(e.collapsed)]), x()]) : ["mix", "wide", "top"].includes(e.layout) ? n(Q, null, [n("div", {
|
|
1981
1989
|
style: {
|
|
1982
1990
|
width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
|
|
1983
1991
|
padding: e.layout === "wide" && w.value < e.wideWidth ? "0 50px" : void 0
|
|
@@ -1985,48 +1993,48 @@ const Zn = (e) => {
|
|
|
1985
1993
|
class: `${p}-main ${h.value}`
|
|
1986
1994
|
}, [n("div", {
|
|
1987
1995
|
class: `${p}-main-left ${h.value}`
|
|
1988
|
-
}, [n(
|
|
1996
|
+
}, [n(Ae, G(e, {
|
|
1989
1997
|
renderKey: "headerTitleRender"
|
|
1990
1998
|
}), null)]), x()])]) : x()]));
|
|
1991
1999
|
};
|
|
1992
2000
|
}
|
|
1993
2001
|
});
|
|
1994
2002
|
function na(e) {
|
|
1995
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2003
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
|
|
1996
2004
|
}
|
|
1997
2005
|
const {
|
|
1998
2006
|
Header: Qe
|
|
1999
|
-
} =
|
|
2007
|
+
} = fe, Fe = /* @__PURE__ */ W({
|
|
2000
2008
|
inheritAttrs: !1,
|
|
2001
2009
|
props: vt,
|
|
2002
2010
|
setup(e) {
|
|
2003
2011
|
const {
|
|
2004
2012
|
theme: t,
|
|
2005
2013
|
isMobile: a,
|
|
2006
|
-
fixedHeader:
|
|
2007
|
-
headerHeight:
|
|
2008
|
-
layout:
|
|
2014
|
+
fixedHeader: i,
|
|
2015
|
+
headerHeight: o,
|
|
2016
|
+
layout: d,
|
|
2009
2017
|
onCollapse: f,
|
|
2010
|
-
splitMenus:
|
|
2011
|
-
} =
|
|
2018
|
+
splitMenus: m
|
|
2019
|
+
} = Ie(e), {
|
|
2012
2020
|
getPrefixCls: w,
|
|
2013
2021
|
menuData: p
|
|
2014
|
-
} = te(),
|
|
2022
|
+
} = te(), R = w({
|
|
2015
2023
|
suffixCls: "header",
|
|
2016
2024
|
isPor: !0
|
|
2017
2025
|
}), h = w({
|
|
2018
2026
|
suffixCls: "fixed-header",
|
|
2019
2027
|
isPor: !0
|
|
2020
2028
|
}), {
|
|
2021
|
-
wrapSSR:
|
|
2029
|
+
wrapSSR: T,
|
|
2022
2030
|
hashId: l
|
|
2023
|
-
} =
|
|
2031
|
+
} = ae("ProLayoutHeader", [Zn], R), r = b(() => d.value === "wide"), I = b(() => i.value), k = b(() => d.value === "mix" || r.value), x = b(() => d.value === "side" || d.value === "simple"), y = b(() => x.value && "light" || t.value), g = b(() => ({
|
|
2024
2032
|
[`${l.value}`]: !0,
|
|
2025
|
-
[`${
|
|
2026
|
-
[`${
|
|
2033
|
+
[`${R}-${y.value}`]: !0,
|
|
2034
|
+
[`${R}`]: !0,
|
|
2027
2035
|
[`${h}`]: I.value
|
|
2028
|
-
})), C = b(() => I.value && !a.value), $ = b(() =>
|
|
2029
|
-
const
|
|
2036
|
+
})), C = b(() => I.value && !a.value), $ = b(() => m.value ? p.value && pn(p.value) || [] : d.value === "top" ? p.value : []), u = b(() => x.value && C.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), S = b(() => I.value ? 0 : void 0), M = () => {
|
|
2037
|
+
const O = n(ta, G(e, {
|
|
2030
2038
|
theme: y.value,
|
|
2031
2039
|
mode: "horizontal",
|
|
2032
2040
|
onCollapse: f.value,
|
|
@@ -2034,132 +2042,132 @@ const {
|
|
|
2034
2042
|
}), {
|
|
2035
2043
|
default: () => [k.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
|
|
2036
2044
|
});
|
|
2037
|
-
return e.headerRender ? e.headerRender(e,
|
|
2045
|
+
return e.headerRender ? e.headerRender(e, O) : O;
|
|
2038
2046
|
};
|
|
2039
2047
|
return () => {
|
|
2040
|
-
let
|
|
2041
|
-
return
|
|
2048
|
+
let O;
|
|
2049
|
+
return T(n(Q, null, [I.value && !r.value && n(Qe, {
|
|
2042
2050
|
theme: y.value,
|
|
2043
2051
|
style: {
|
|
2044
|
-
height: `${
|
|
2045
|
-
lineHeight: `${
|
|
2052
|
+
height: `${o.value}px`,
|
|
2053
|
+
lineHeight: `${o.value}px`,
|
|
2046
2054
|
background: "transparent"
|
|
2047
2055
|
}
|
|
2048
2056
|
}, null), n(Qe, {
|
|
2049
2057
|
theme: y.value,
|
|
2050
2058
|
class: g.value,
|
|
2051
2059
|
style: {
|
|
2052
|
-
height: `${
|
|
2053
|
-
lineHeight: `${
|
|
2054
|
-
width:
|
|
2060
|
+
height: `${o.value}px`,
|
|
2061
|
+
lineHeight: `${o.value}px`,
|
|
2062
|
+
width: u.value,
|
|
2055
2063
|
zIndex: x.value ? 100 : 101,
|
|
2056
2064
|
right: S.value
|
|
2057
2065
|
}
|
|
2058
|
-
}, na(
|
|
2059
|
-
default: () => [
|
|
2066
|
+
}, na(O = M()) ? O : {
|
|
2067
|
+
default: () => [O]
|
|
2060
2068
|
})]));
|
|
2061
2069
|
};
|
|
2062
2070
|
}
|
|
2063
|
-
}), aa = /* @__PURE__ */
|
|
2071
|
+
}), aa = /* @__PURE__ */ W({
|
|
2064
2072
|
name: "BaseProLayout",
|
|
2065
2073
|
inheritAttrs: !1,
|
|
2066
2074
|
components: {
|
|
2067
|
-
GlobalHeader:
|
|
2068
|
-
GlobalFooter:
|
|
2069
|
-
SiderMenuWrapper:
|
|
2075
|
+
GlobalHeader: Fe,
|
|
2076
|
+
GlobalFooter: $e,
|
|
2077
|
+
SiderMenuWrapper: Be
|
|
2070
2078
|
},
|
|
2071
2079
|
props: wt,
|
|
2072
2080
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2073
2081
|
setup(e, {
|
|
2074
2082
|
slots: t
|
|
2075
2083
|
}) {
|
|
2076
|
-
const a =
|
|
2084
|
+
const a = ge({
|
|
2077
2085
|
suffixCls: "basic-layout",
|
|
2078
2086
|
isPor: !0
|
|
2079
2087
|
}), {
|
|
2080
|
-
wrapSSR:
|
|
2081
|
-
hashId:
|
|
2082
|
-
} =
|
|
2088
|
+
wrapSSR: i,
|
|
2089
|
+
hashId: o
|
|
2090
|
+
} = ae("ProLayout", [Wn, Kn], a), d = on(), {
|
|
2083
2091
|
token: f
|
|
2084
|
-
} =
|
|
2092
|
+
} = he(), m = b(() => {
|
|
2085
2093
|
var y;
|
|
2086
2094
|
return (y = f == null ? void 0 : f.value) == null ? void 0 : y.colorPrimary;
|
|
2087
2095
|
});
|
|
2088
2096
|
Ft(() => {
|
|
2089
|
-
|
|
2097
|
+
m.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", m.value);
|
|
2090
2098
|
});
|
|
2091
|
-
const w = b(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = b(() => e.layout === "wide"),
|
|
2099
|
+
const w = b(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = b(() => e.layout === "wide"), R = b(() => w.value), h = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), T = b(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = b(() => (d.value === "sm" || d.value === "xs") && !e.disableMobile && !p.value), r = rt({
|
|
2092
2100
|
position: "relative"
|
|
2093
2101
|
});
|
|
2094
2102
|
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (r.minHeight = 0);
|
|
2095
|
-
const I = (y, g) => y.headerRender === !1 || y.pure ? null : n(
|
|
2103
|
+
const I = (y, g) => y.headerRender === !1 || y.pure ? null : n(Fe, G(y, {
|
|
2096
2104
|
matchMenuKeys: g || []
|
|
2097
2105
|
}), null), k = b(() => ({
|
|
2098
2106
|
...e.breadcrumb,
|
|
2099
2107
|
itemRender: K(t, e, "breadcrumbRender")
|
|
2100
|
-
})), x = b(() =>
|
|
2108
|
+
})), x = b(() => R.value && e.selectedKeys ? vn(e.menuData, e.selectedKeys[0]) : []);
|
|
2101
2109
|
return Rn({
|
|
2102
|
-
getPrefixCls:
|
|
2103
|
-
...
|
|
2104
|
-
theme:
|
|
2110
|
+
getPrefixCls: ge,
|
|
2111
|
+
...se(Ie(e), ["layout", "waterMark", "menuData", "openKeys", "splitMenus", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps"].concat(Object.keys(pt))),
|
|
2112
|
+
theme: T.value,
|
|
2105
2113
|
hasContentWide: p,
|
|
2106
2114
|
isMobile: l,
|
|
2107
2115
|
siderWidth: h,
|
|
2108
2116
|
breadcrumb: k,
|
|
2109
2117
|
flatMenuData: x,
|
|
2110
2118
|
hasSide: w,
|
|
2111
|
-
flatMenu:
|
|
2119
|
+
flatMenu: R,
|
|
2112
2120
|
pageHeaderRender: b(() => K(t, e, "pageHeaderRender"))
|
|
2113
2121
|
}), () => {
|
|
2114
|
-
var
|
|
2115
|
-
const y = K(t, e, "collapsedButtonRender"), g = K(t, e, "headerContentRender"), C = K(t, e, "rightContentRender"), $ = K(t, e, "headerRender"),
|
|
2116
|
-
menuItemRender:
|
|
2117
|
-
subMenuItemRender:
|
|
2118
|
-
},
|
|
2122
|
+
var F;
|
|
2123
|
+
const y = K(t, e, "collapsedButtonRender"), g = K(t, e, "headerContentRender"), C = K(t, e, "rightContentRender"), $ = K(t, e, "headerRender"), u = K(t, e, "footerRender"), S = K(t, e, "links"), M = K(t, e, "copyrightRender"), O = K(t, e, "extraRightDropdownRender"), P = K(t, e, "menuHeaderRender"), H = K(t, e, "menuExtraRender"), N = K(t, e, "menuContentRender"), D = K(t, e, "menuFooterRender"), V = K(t, e, "menuItemRender"), Y = K(t, e, "subMenuItemRender"), _ = {
|
|
2124
|
+
menuItemRender: V,
|
|
2125
|
+
subMenuItemRender: Y
|
|
2126
|
+
}, E = b(() => I({
|
|
2119
2127
|
...e,
|
|
2120
|
-
...
|
|
2128
|
+
..._,
|
|
2121
2129
|
hasSiderMenu: w.value,
|
|
2122
2130
|
menuData: e.menuData,
|
|
2123
|
-
isMobile:
|
|
2131
|
+
isMobile: U(l),
|
|
2124
2132
|
rightContentRender: C,
|
|
2125
|
-
extraRightDropdownRender:
|
|
2126
|
-
headerTitleRender:
|
|
2133
|
+
extraRightDropdownRender: O,
|
|
2134
|
+
headerTitleRender: P,
|
|
2127
2135
|
headerContentRender: g,
|
|
2128
2136
|
headerRender: $,
|
|
2129
|
-
theme:
|
|
2130
|
-
}, e.matchMenuKeys)),
|
|
2131
|
-
[`${
|
|
2137
|
+
theme: T.value
|
|
2138
|
+
}, e.matchMenuKeys)), J = b(() => ({
|
|
2139
|
+
[`${o.value}`]: !0,
|
|
2132
2140
|
[`${a}`]: !0,
|
|
2133
2141
|
[`${a}-${e.layout}`]: !0
|
|
2134
|
-
})),
|
|
2142
|
+
})), c = b(() => p.value ? {
|
|
2135
2143
|
minWidth: `${e.wideWidth}px`
|
|
2136
|
-
} : void 0),
|
|
2144
|
+
} : void 0), v = b(() => p.value ? {
|
|
2137
2145
|
width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
|
|
2138
2146
|
paddingTop: `${e.headerHeight + 20}px`,
|
|
2139
2147
|
margin: p.value ? "0 auto" : void 0
|
|
2140
|
-
} : void 0),
|
|
2148
|
+
} : void 0), B = b(() => p.value ? {
|
|
2141
2149
|
minHeight: "835px"
|
|
2142
2150
|
} : {});
|
|
2143
|
-
return
|
|
2144
|
-
class:
|
|
2151
|
+
return i(n(Q, null, [e.pure ? (F = t.default) == null ? void 0 : F.call(t) : n("div", {
|
|
2152
|
+
class: J.value,
|
|
2153
|
+
style: c.value
|
|
2154
|
+
}, [n(fe, {
|
|
2145
2155
|
style: v.value
|
|
2146
|
-
}, [n(me, {
|
|
2147
|
-
style: B.value
|
|
2148
2156
|
}, {
|
|
2149
|
-
default: () => [n(
|
|
2157
|
+
default: () => [n(Be, G(je(e, ["pure", "theme"]), {
|
|
2150
2158
|
links: S,
|
|
2151
|
-
theme:
|
|
2159
|
+
theme: T.value,
|
|
2152
2160
|
isMobile: l.value,
|
|
2153
|
-
menuHeaderRender:
|
|
2161
|
+
menuHeaderRender: P,
|
|
2154
2162
|
menuContentRender: N,
|
|
2155
2163
|
menuExtraRender: H,
|
|
2156
|
-
menuFooterRender:
|
|
2164
|
+
menuFooterRender: D,
|
|
2157
2165
|
collapsedButtonRender: y
|
|
2158
|
-
}), null), n(
|
|
2166
|
+
}), null), n(fe, {
|
|
2159
2167
|
style: r
|
|
2160
2168
|
}, {
|
|
2161
|
-
default: () => [
|
|
2162
|
-
hashId:
|
|
2169
|
+
default: () => [E.value, n(Ee, G({
|
|
2170
|
+
hashId: o.value,
|
|
2163
2171
|
isMobile: l.value,
|
|
2164
2172
|
prefixCls: a,
|
|
2165
2173
|
collapsedWidth: e.collapsedWidth,
|
|
@@ -2169,27 +2177,27 @@ const {
|
|
|
2169
2177
|
isFixedMultiTab: e.fixedMultiTab,
|
|
2170
2178
|
siderWidth: e.siderWidth,
|
|
2171
2179
|
collapsed: e.collapsed,
|
|
2172
|
-
style: e.disableContentMargin ?
|
|
2180
|
+
style: e.disableContentMargin ? B.value : {
|
|
2173
2181
|
...e.contentStyle,
|
|
2174
|
-
...
|
|
2182
|
+
...B.value
|
|
2175
2183
|
}
|
|
2176
|
-
},
|
|
2184
|
+
}, se(e, ["onReloadPage", "onChangeTabs"])), {
|
|
2177
2185
|
default: () => {
|
|
2178
|
-
var
|
|
2179
|
-
return [(
|
|
2186
|
+
var z;
|
|
2187
|
+
return [(z = t.default) == null ? void 0 : z.call(t)];
|
|
2180
2188
|
}
|
|
2181
|
-
}),
|
|
2182
|
-
copyright:
|
|
2189
|
+
}), u === !1 ? null : u ? u(e) : n($e, {
|
|
2190
|
+
copyright: M
|
|
2183
2191
|
}, null)]
|
|
2184
2192
|
})]
|
|
2185
2193
|
})])]));
|
|
2186
2194
|
};
|
|
2187
2195
|
}
|
|
2188
|
-
}), Oi = /* @__PURE__ */
|
|
2196
|
+
}), Oi = /* @__PURE__ */ W({
|
|
2189
2197
|
components: {
|
|
2190
|
-
GlobalHeader:
|
|
2191
|
-
GlobalFooter:
|
|
2192
|
-
SiderMenuWrapper:
|
|
2198
|
+
GlobalHeader: Fe,
|
|
2199
|
+
GlobalFooter: $e,
|
|
2200
|
+
SiderMenuWrapper: Be
|
|
2193
2201
|
},
|
|
2194
2202
|
props: wt,
|
|
2195
2203
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
@@ -2197,42 +2205,42 @@ const {
|
|
|
2197
2205
|
slots: t,
|
|
2198
2206
|
emit: a
|
|
2199
2207
|
}) {
|
|
2200
|
-
const
|
|
2208
|
+
const i = b(() => e.theme !== void 0 ? {
|
|
2201
2209
|
dark: e.theme === "realDark"
|
|
2202
|
-
} : {}),
|
|
2203
|
-
a("update:collapsed",
|
|
2204
|
-
},
|
|
2205
|
-
a("update:open-keys",
|
|
2206
|
-
}, f = (
|
|
2207
|
-
a("update:selected-keys",
|
|
2210
|
+
} : {}), o = (m) => {
|
|
2211
|
+
a("update:collapsed", m), a("collapse", m);
|
|
2212
|
+
}, d = (m) => {
|
|
2213
|
+
a("update:open-keys", m), a("openKeys", m);
|
|
2214
|
+
}, f = (m) => {
|
|
2215
|
+
a("update:selected-keys", m), a("select", m);
|
|
2208
2216
|
};
|
|
2209
|
-
return () => n(
|
|
2217
|
+
return () => n(Pe, {
|
|
2210
2218
|
theme: e.primaryColor ? {
|
|
2211
2219
|
token: {
|
|
2212
2220
|
colorPrimary: e.primaryColor
|
|
2213
2221
|
}
|
|
2214
2222
|
} : void 0
|
|
2215
2223
|
}, {
|
|
2216
|
-
default: () => [n(qt,
|
|
2224
|
+
default: () => [n(qt, G({
|
|
2217
2225
|
token: e.token
|
|
2218
|
-
},
|
|
2219
|
-
default: () => [n(aa,
|
|
2226
|
+
}, i.value), {
|
|
2227
|
+
default: () => [n(aa, G(je(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
|
|
2220
2228
|
onSelect: f,
|
|
2221
|
-
onOpenKeys:
|
|
2222
|
-
onCollapse:
|
|
2229
|
+
onOpenKeys: d,
|
|
2230
|
+
onCollapse: o
|
|
2223
2231
|
}), t)]
|
|
2224
2232
|
})]
|
|
2225
2233
|
});
|
|
2226
2234
|
}
|
|
2227
|
-
}), It = (e, t, a) => e.map((
|
|
2228
|
-
var
|
|
2229
|
-
return
|
|
2235
|
+
}), It = (e, t, a) => e.map((i, o) => {
|
|
2236
|
+
var d;
|
|
2237
|
+
return i.meta && (i.meta.key = a ? `${a}-${o}` : `${o}`), i.path = i.path.replace("//", "/"), i.children && i.children.length > 0 && (i.children = It(i.children, t, (d = i.meta) == null ? void 0 : d.key)), t[`${i.path}`] = i, i;
|
|
2230
2238
|
}), Ri = (e) => {
|
|
2231
|
-
const t = e.find((
|
|
2239
|
+
const t = e.find((o) => o.path === "/"), a = {}, i = It((t == null ? void 0 : t.children) || [], a);
|
|
2232
2240
|
return {
|
|
2233
|
-
menuData:
|
|
2241
|
+
menuData: i,
|
|
2234
2242
|
breadcrumb: a,
|
|
2235
|
-
levelMenuData: en(
|
|
2243
|
+
levelMenuData: en(i)
|
|
2236
2244
|
};
|
|
2237
2245
|
}, Mt = [
|
|
2238
2246
|
{
|
|
@@ -2438,17 +2446,17 @@ const {
|
|
|
2438
2446
|
}
|
|
2439
2447
|
}
|
|
2440
2448
|
}
|
|
2441
|
-
}), et = /* @__PURE__ */
|
|
2449
|
+
}), et = /* @__PURE__ */ W({
|
|
2442
2450
|
name: "BlockCheckbox",
|
|
2443
2451
|
props: {
|
|
2444
|
-
value:
|
|
2452
|
+
value: L.string,
|
|
2445
2453
|
list: {
|
|
2446
2454
|
type: Array,
|
|
2447
2455
|
default: () => []
|
|
2448
2456
|
},
|
|
2449
|
-
configType:
|
|
2450
|
-
prefixCls:
|
|
2451
|
-
hashId:
|
|
2457
|
+
configType: L.string,
|
|
2458
|
+
prefixCls: L.string,
|
|
2459
|
+
hashId: L.string,
|
|
2452
2460
|
onChange: Function
|
|
2453
2461
|
},
|
|
2454
2462
|
setup(e) {
|
|
@@ -2456,15 +2464,15 @@ const {
|
|
|
2456
2464
|
const t = `${e.prefixCls}-block-checkbox`;
|
|
2457
2465
|
return n("div", {
|
|
2458
2466
|
class: [t, e.hashId]
|
|
2459
|
-
}, [e.list.map((a) => n(
|
|
2467
|
+
}, [e.list.map((a) => n(Me, {
|
|
2460
2468
|
title: a.title,
|
|
2461
2469
|
key: a.key
|
|
2462
2470
|
}, {
|
|
2463
2471
|
default: () => [n("div", {
|
|
2464
2472
|
class: ct(e.hashId, `${t}-item`, `${t}-item-${a.key}`, `${t}-${e.configType}-item`),
|
|
2465
2473
|
onClick: () => {
|
|
2466
|
-
var
|
|
2467
|
-
return (
|
|
2474
|
+
var i;
|
|
2475
|
+
return (i = e.onChange) == null ? void 0 : i.call(e, a.key);
|
|
2468
2476
|
}
|
|
2469
2477
|
}, [a.key === "wide" && n("div", {
|
|
2470
2478
|
class: [`${t}-item-${a.key}-content`, e.hashId]
|
|
@@ -2479,7 +2487,7 @@ const {
|
|
|
2479
2487
|
}))]);
|
|
2480
2488
|
};
|
|
2481
2489
|
}
|
|
2482
|
-
}), la = /* @__PURE__ */
|
|
2490
|
+
}), la = /* @__PURE__ */ W({
|
|
2483
2491
|
name: "ThemeColor",
|
|
2484
2492
|
inheritAttrs: !1,
|
|
2485
2493
|
props: {
|
|
@@ -2488,60 +2496,60 @@ const {
|
|
|
2488
2496
|
type: Array,
|
|
2489
2497
|
default: () => []
|
|
2490
2498
|
},
|
|
2491
|
-
prefixCls:
|
|
2492
|
-
hashId:
|
|
2499
|
+
prefixCls: L.string,
|
|
2500
|
+
hashId: L.string,
|
|
2493
2501
|
onChange: Function
|
|
2494
2502
|
},
|
|
2495
2503
|
setup(e) {
|
|
2496
2504
|
return () => {
|
|
2497
2505
|
var a;
|
|
2498
2506
|
const t = `${e.prefixCls}-theme-color`;
|
|
2499
|
-
return n(
|
|
2507
|
+
return n(Q, null, [n("div", {
|
|
2500
2508
|
class: `${t} ${e.hashId}`.trim()
|
|
2501
2509
|
}, [(a = e.colorList) == null ? void 0 : a.map(({
|
|
2502
|
-
key: o,
|
|
2503
|
-
color: i,
|
|
2504
|
-
title: u
|
|
2505
|
-
}) => o ? n(Ie, {
|
|
2506
2510
|
key: i,
|
|
2507
|
-
|
|
2511
|
+
color: o,
|
|
2512
|
+
title: d
|
|
2513
|
+
}) => i ? n(Me, {
|
|
2514
|
+
key: o,
|
|
2515
|
+
title: d
|
|
2508
2516
|
}, {
|
|
2509
2517
|
default: () => {
|
|
2510
|
-
var f,
|
|
2518
|
+
var f, m;
|
|
2511
2519
|
return [n("div", {
|
|
2512
|
-
class: [`${t}-block ${e.hashId}`.trim(), ((f = e.settingValue) == null ? void 0 : f.primaryColor) ===
|
|
2520
|
+
class: [`${t}-block ${e.hashId}`.trim(), ((f = e.settingValue) == null ? void 0 : f.primaryColor) === o ? `${t}-block-checked` : ""],
|
|
2513
2521
|
style: {
|
|
2514
|
-
backgroundColor:
|
|
2522
|
+
backgroundColor: o
|
|
2515
2523
|
},
|
|
2516
|
-
onClick: () => e.onChange && e.onChange(
|
|
2517
|
-
}, [((
|
|
2524
|
+
onClick: () => e.onChange && e.onChange(o)
|
|
2525
|
+
}, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === o && n(ut, null, null)])];
|
|
2518
2526
|
}
|
|
2519
2527
|
}) : null)])]);
|
|
2520
2528
|
};
|
|
2521
2529
|
}
|
|
2522
|
-
}),
|
|
2530
|
+
}), be = /* @__PURE__ */ W({
|
|
2523
2531
|
name: "RegionalChange",
|
|
2524
2532
|
props: {
|
|
2525
|
-
label:
|
|
2526
|
-
value:
|
|
2527
|
-
prefixCls:
|
|
2533
|
+
label: L.string,
|
|
2534
|
+
value: L.bool,
|
|
2535
|
+
prefixCls: L.string,
|
|
2528
2536
|
valueKey: String,
|
|
2529
|
-
hashId:
|
|
2530
|
-
disabled:
|
|
2537
|
+
hashId: L.string,
|
|
2538
|
+
disabled: L.bool,
|
|
2531
2539
|
onChange: Function
|
|
2532
2540
|
},
|
|
2533
2541
|
setup(e) {
|
|
2534
|
-
return () => n(
|
|
2542
|
+
return () => n(le, {
|
|
2535
2543
|
class: `${e.prefixCls}-list ${e.hashId}`.trim(),
|
|
2536
2544
|
split: !1,
|
|
2537
2545
|
size: "small",
|
|
2538
2546
|
renderItem: ({
|
|
2539
2547
|
item: t
|
|
2540
|
-
}) => n(
|
|
2548
|
+
}) => n(Me, {
|
|
2541
2549
|
title: t.disabled ? t.disabledReason : "",
|
|
2542
2550
|
placement: "left"
|
|
2543
2551
|
}, {
|
|
2544
|
-
default: () => [n(
|
|
2552
|
+
default: () => [n(le.Item, {
|
|
2545
2553
|
actions: [t.action]
|
|
2546
2554
|
}, {
|
|
2547
2555
|
default: () => [n("span", {
|
|
@@ -2596,9 +2604,9 @@ const {
|
|
|
2596
2604
|
}
|
|
2597
2605
|
});
|
|
2598
2606
|
function sa(e) {
|
|
2599
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2607
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
|
|
2600
2608
|
}
|
|
2601
|
-
const da = /* @__PURE__ */
|
|
2609
|
+
const da = /* @__PURE__ */ W({
|
|
2602
2610
|
name: "ThemeEditor",
|
|
2603
2611
|
props: {
|
|
2604
2612
|
settingValue: Object,
|
|
@@ -2607,19 +2615,19 @@ const da = /* @__PURE__ */ j({
|
|
|
2607
2615
|
setup(e) {
|
|
2608
2616
|
const {
|
|
2609
2617
|
getPrefixCls: t
|
|
2610
|
-
} = te(), [a,
|
|
2618
|
+
} = te(), [a, i] = xe("header"), o = t({
|
|
2611
2619
|
suffixCls: "theme-editor",
|
|
2612
2620
|
isPor: !0
|
|
2613
2621
|
}), {
|
|
2614
|
-
wrapSSR:
|
|
2622
|
+
wrapSSR: d,
|
|
2615
2623
|
hashId: f
|
|
2616
|
-
} =
|
|
2617
|
-
token:
|
|
2618
|
-
} =
|
|
2624
|
+
} = ae("ProThemeEditor", [ra], o), {
|
|
2625
|
+
token: m
|
|
2626
|
+
} = he(), w = b(() => {
|
|
2619
2627
|
var l;
|
|
2620
|
-
return (l =
|
|
2628
|
+
return (l = m.value) == null ? void 0 : l.layout;
|
|
2621
2629
|
}), p = b(() => {
|
|
2622
|
-
var l, r, I, k, x, y, g, C, $,
|
|
2630
|
+
var l, r, I, k, x, y, g, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B;
|
|
2623
2631
|
return [{
|
|
2624
2632
|
key: "colorBgMenu",
|
|
2625
2633
|
title: "全部背景",
|
|
@@ -2643,34 +2651,34 @@ const da = /* @__PURE__ */ j({
|
|
|
2643
2651
|
}, {
|
|
2644
2652
|
key: "colorDarkBgMenuItemSelected",
|
|
2645
2653
|
title: "菜单选中背景",
|
|
2646
|
-
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["side", "simple"].includes((
|
|
2654
|
+
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["side", "simple"].includes((u = e.settingValue) == null ? void 0 : u.layout)
|
|
2647
2655
|
}, {
|
|
2648
2656
|
key: "colorTextMenu",
|
|
2649
2657
|
title: "菜单文字颜色",
|
|
2650
|
-
disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ["mix", "wide"].includes((
|
|
2658
|
+
disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ["mix", "wide"].includes((M = e.settingValue) == null ? void 0 : M.layout)
|
|
2651
2659
|
}, {
|
|
2652
2660
|
key: "colorDarkTextMenu",
|
|
2653
2661
|
title: "菜单文字颜色",
|
|
2654
|
-
disabled: ((
|
|
2662
|
+
disabled: ((O = e.settingValue) == null ? void 0 : O.theme) === "light" || ((P = e.settingValue) == null ? void 0 : P.theme) === "dark" && ["side", "simple"].includes((H = e.settingValue) == null ? void 0 : H.layout)
|
|
2655
2663
|
}, {
|
|
2656
2664
|
key: "colorTextMenuHover",
|
|
2657
2665
|
title: "菜单文字移入颜色",
|
|
2658
|
-
disabled: ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((
|
|
2666
|
+
disabled: ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
|
|
2659
2667
|
}, {
|
|
2660
2668
|
key: "colorDarkTextMenuHover",
|
|
2661
2669
|
title: "菜单文字移入颜色",
|
|
2662
|
-
disabled: ((
|
|
2670
|
+
disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "light" || ((Y = e.settingValue) == null ? void 0 : Y.theme) === "dark" && ["side", "simple"].includes((_ = e.settingValue) == null ? void 0 : _.layout)
|
|
2663
2671
|
}, {
|
|
2664
2672
|
key: "colorTextMenuSelected",
|
|
2665
2673
|
title: "菜单文字选中颜色",
|
|
2666
|
-
disabled: ((
|
|
2674
|
+
disabled: ((E = e.settingValue) == null ? void 0 : E.theme) === "dark" && ["mix", "wide"].includes((J = e.settingValue) == null ? void 0 : J.layout)
|
|
2667
2675
|
}, {
|
|
2668
2676
|
key: "colorDarkTextMenuSelected",
|
|
2669
2677
|
title: "菜单文字选中颜色",
|
|
2670
|
-
disabled: ((
|
|
2678
|
+
disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "light" || ((v = e.settingValue) == null ? void 0 : v.theme) === "dark" && ["side", "simple"].includes((B = e.settingValue) == null ? void 0 : B.layout)
|
|
2671
2679
|
}];
|
|
2672
|
-
}),
|
|
2673
|
-
var l, r, I, k, x, y, g, C, $,
|
|
2680
|
+
}), R = b(() => {
|
|
2681
|
+
var l, r, I, k, x, y, g, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B, F, z, q, X, ne, ee, Xe;
|
|
2674
2682
|
return [{
|
|
2675
2683
|
key: "colorBgMenu",
|
|
2676
2684
|
title: "全部背景",
|
|
@@ -2686,57 +2694,57 @@ const da = /* @__PURE__ */ j({
|
|
|
2686
2694
|
}, {
|
|
2687
2695
|
key: "colorDarkSubItemBg",
|
|
2688
2696
|
title: "子菜单背景",
|
|
2689
|
-
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["mix", "wide"].includes((
|
|
2697
|
+
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["mix", "wide"].includes((u = e.settingValue) == null ? void 0 : u.layout)
|
|
2690
2698
|
}, {
|
|
2691
2699
|
key: "colorBgMenuItemHover",
|
|
2692
2700
|
title: "菜单移入背景",
|
|
2693
|
-
disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ((
|
|
2701
|
+
disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ((M = e.settingValue) == null ? void 0 : M.layout) !== "mix"
|
|
2694
2702
|
}, {
|
|
2695
2703
|
key: "colorBgMenuItemSelected",
|
|
2696
2704
|
title: "菜单选中背景",
|
|
2697
|
-
disabled: ((
|
|
2705
|
+
disabled: ((O = e.settingValue) == null ? void 0 : O.theme) === "dark" && ((P = e.settingValue) == null ? void 0 : P.layout) !== "mix"
|
|
2698
2706
|
}, {
|
|
2699
2707
|
key: "colorDarkBgMenuItemSelected",
|
|
2700
2708
|
title: "菜单选中背景",
|
|
2701
|
-
disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "light" || ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((
|
|
2709
|
+
disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "light" || ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
|
|
2702
2710
|
}, {
|
|
2703
2711
|
key: "colorTextMenu",
|
|
2704
2712
|
title: "菜单文字颜色",
|
|
2705
|
-
disabled: ((
|
|
2713
|
+
disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "dark" && ((Y = e.settingValue) == null ? void 0 : Y.layout) !== "mix"
|
|
2706
2714
|
}, {
|
|
2707
2715
|
key: "colorDarkTextMenu",
|
|
2708
2716
|
title: "菜单文字颜色",
|
|
2709
|
-
disabled: ((
|
|
2717
|
+
disabled: ((_ = e.settingValue) == null ? void 0 : _.theme) === "light" || ((E = e.settingValue) == null ? void 0 : E.theme) === "dark" && ["mix", "wide"].includes((J = e.settingValue) == null ? void 0 : J.layout)
|
|
2710
2718
|
}, {
|
|
2711
2719
|
key: "colorTextMenuHover",
|
|
2712
2720
|
title: "菜单文字移入颜色",
|
|
2713
|
-
disabled: ((
|
|
2721
|
+
disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ((v = e.settingValue) == null ? void 0 : v.layout) !== "mix"
|
|
2714
2722
|
}, {
|
|
2715
2723
|
key: "colorDarkTextMenuHover",
|
|
2716
2724
|
title: "菜单文字移入颜色",
|
|
2717
|
-
disabled: ((
|
|
2725
|
+
disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "light" || ((F = e.settingValue) == null ? void 0 : F.theme) === "dark" && ["mix", "wide"].includes((z = e.settingValue) == null ? void 0 : z.layout)
|
|
2718
2726
|
}, {
|
|
2719
2727
|
key: "colorTextMenuSelected",
|
|
2720
2728
|
title: "菜单文字选中颜色",
|
|
2721
|
-
disabled: ((
|
|
2729
|
+
disabled: ((q = e.settingValue) == null ? void 0 : q.theme) === "dark" && ((X = e.settingValue) == null ? void 0 : X.layout) !== "mix"
|
|
2722
2730
|
}, {
|
|
2723
2731
|
key: "colorDarkTextMenuSelected",
|
|
2724
2732
|
title: "菜单文字选中颜色",
|
|
2725
|
-
disabled: ((
|
|
2733
|
+
disabled: ((ne = e.settingValue) == null ? void 0 : ne.theme) === "light" || ((ee = e.settingValue) == null ? void 0 : ee.theme) === "dark" && ["mix", "wide"].includes((Xe = e.settingValue) == null ? void 0 : Xe.layout)
|
|
2726
2734
|
}];
|
|
2727
|
-
}), h = b(() => a.value === "header" ? p.value : a.value === "sider" ?
|
|
2735
|
+
}), h = b(() => a.value === "header" ? p.value : a.value === "sider" ? R.value : []), T = (l) => {
|
|
2728
2736
|
var r, I;
|
|
2729
2737
|
return (I = (r = w.value) == null ? void 0 : r[a.value]) == null ? void 0 : I[l];
|
|
2730
2738
|
};
|
|
2731
2739
|
return () => {
|
|
2732
2740
|
var r, I, k;
|
|
2733
2741
|
let l;
|
|
2734
|
-
return
|
|
2735
|
-
class: [
|
|
2742
|
+
return d(n("div", {
|
|
2743
|
+
class: [o, f.value]
|
|
2736
2744
|
}, [n("h3", {
|
|
2737
|
-
class: [`${
|
|
2738
|
-
}, [
|
|
2739
|
-
class: [`${
|
|
2745
|
+
class: [`${o}-title`, f.value]
|
|
2746
|
+
}, [oe("主题编辑器"), n("div", {
|
|
2747
|
+
class: [`${o}-sub-title`, f.value]
|
|
2740
2748
|
}, [n("span", null, [(r = Mt.find((x) => {
|
|
2741
2749
|
var y;
|
|
2742
2750
|
return x.key === ((y = e.settingValue) == null ? void 0 : y.theme);
|
|
@@ -2744,18 +2752,18 @@ const da = /* @__PURE__ */ j({
|
|
|
2744
2752
|
style: {
|
|
2745
2753
|
marginInline: "8px"
|
|
2746
2754
|
}
|
|
2747
|
-
}, [
|
|
2755
|
+
}, [oe("/")]), n("span", null, [(I = Ot.find((x) => {
|
|
2748
2756
|
var y;
|
|
2749
2757
|
return x.key === ((y = e.settingValue) == null ? void 0 : y.layout);
|
|
2750
2758
|
})) == null ? void 0 : I.title])])]), n("div", {
|
|
2751
|
-
class: [`${
|
|
2752
|
-
}, [n(
|
|
2753
|
-
class: `${
|
|
2759
|
+
class: [`${o}-content`, f.value]
|
|
2760
|
+
}, [n(le, {
|
|
2761
|
+
class: `${o}-list ${f.value}`.trim(),
|
|
2754
2762
|
split: !1,
|
|
2755
2763
|
size: "small",
|
|
2756
2764
|
renderItem: ({
|
|
2757
2765
|
item: x
|
|
2758
|
-
}) => n(
|
|
2766
|
+
}) => n(le.Item, {
|
|
2759
2767
|
actions: [x.action]
|
|
2760
2768
|
}, {
|
|
2761
2769
|
default: () => [n("span", {
|
|
@@ -2774,20 +2782,20 @@ const da = /* @__PURE__ */ j({
|
|
|
2774
2782
|
onConfirm: (x) => e.onChange && e.onChange(x, "primaryColor")
|
|
2775
2783
|
}, null)
|
|
2776
2784
|
}]
|
|
2777
|
-
}, null), n(
|
|
2785
|
+
}, null), n(Le, {
|
|
2778
2786
|
activeKey: a.value,
|
|
2779
|
-
onChange:
|
|
2787
|
+
onChange: i
|
|
2780
2788
|
}, sa(l = oa.map((x) => n(Nt, {
|
|
2781
2789
|
key: x.key,
|
|
2782
2790
|
tab: x.title
|
|
2783
2791
|
}, {
|
|
2784
|
-
default: () => [n(
|
|
2785
|
-
class: `${
|
|
2792
|
+
default: () => [n(le, {
|
|
2793
|
+
class: `${o}-list ${f.value}`.trim(),
|
|
2786
2794
|
split: !1,
|
|
2787
2795
|
size: "small",
|
|
2788
2796
|
renderItem: ({
|
|
2789
2797
|
item: y
|
|
2790
|
-
}) => n(
|
|
2798
|
+
}) => n(le.Item, {
|
|
2791
2799
|
actions: [y.action]
|
|
2792
2800
|
}, {
|
|
2793
2801
|
default: () => [n("span", {
|
|
@@ -2799,7 +2807,7 @@ const da = /* @__PURE__ */ j({
|
|
|
2799
2807
|
dataSource: h.value.filter((y) => !y.disabled).map((y) => ({
|
|
2800
2808
|
...y,
|
|
2801
2809
|
action: n(Ge, {
|
|
2802
|
-
value:
|
|
2810
|
+
value: T(y.key),
|
|
2803
2811
|
actions: ["confirm"],
|
|
2804
2812
|
modes: ["rgb"],
|
|
2805
2813
|
size: "small",
|
|
@@ -2844,43 +2852,43 @@ const da = /* @__PURE__ */ j({
|
|
|
2844
2852
|
}
|
|
2845
2853
|
});
|
|
2846
2854
|
function tt(e) {
|
|
2847
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2855
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
|
|
2848
2856
|
}
|
|
2849
2857
|
const {
|
|
2850
2858
|
preset: nt
|
|
2851
|
-
} =
|
|
2859
|
+
} = We, ca = /* @__PURE__ */ W({
|
|
2852
2860
|
name: "OthersChange",
|
|
2853
2861
|
props: {
|
|
2854
|
-
prefixCls:
|
|
2862
|
+
prefixCls: L.string,
|
|
2855
2863
|
settingValue: Object,
|
|
2856
2864
|
onChange: Function
|
|
2857
2865
|
},
|
|
2858
2866
|
setup(e) {
|
|
2859
|
-
const t =
|
|
2867
|
+
const t = ge({
|
|
2860
2868
|
suffixCls: "others",
|
|
2861
2869
|
isPor: !0
|
|
2862
2870
|
}), {
|
|
2863
2871
|
wrapSSR: a,
|
|
2864
|
-
hashId:
|
|
2865
|
-
} =
|
|
2872
|
+
hashId: i
|
|
2873
|
+
} = ae("SettingsDrawOthers", [ua], t);
|
|
2866
2874
|
return () => {
|
|
2867
|
-
var
|
|
2868
|
-
let
|
|
2875
|
+
var d, f, m, w, p, R, h, T, l, r, I, k, x, y;
|
|
2876
|
+
let o;
|
|
2869
2877
|
return a(n("div", {
|
|
2870
|
-
class: [t,
|
|
2878
|
+
class: [t, i.value]
|
|
2871
2879
|
}, [n("h3", {
|
|
2872
|
-
class: [`${t}-title`,
|
|
2873
|
-
}, [
|
|
2874
|
-
class: `${t}-list ${
|
|
2880
|
+
class: [`${t}-title`, i.value]
|
|
2881
|
+
}, [oe("页面动画设置")]), n(le, {
|
|
2882
|
+
class: `${t}-list ${i.value}`.trim(),
|
|
2875
2883
|
split: !1,
|
|
2876
2884
|
size: "small",
|
|
2877
2885
|
renderItem: ({
|
|
2878
2886
|
item: g
|
|
2879
|
-
}) => n(
|
|
2887
|
+
}) => n(Me, {
|
|
2880
2888
|
title: g.disabled ? g.disabledReason : "",
|
|
2881
2889
|
placement: "left"
|
|
2882
2890
|
}, {
|
|
2883
|
-
default: () => [n(
|
|
2891
|
+
default: () => [n(le.Item, {
|
|
2884
2892
|
actions: [g.action]
|
|
2885
2893
|
}, {
|
|
2886
2894
|
default: () => [n("span", {
|
|
@@ -2893,7 +2901,7 @@ const {
|
|
|
2893
2901
|
dataSource: [{
|
|
2894
2902
|
title: "禁用动画",
|
|
2895
2903
|
action: n(st, {
|
|
2896
|
-
checked: !((f = (
|
|
2904
|
+
checked: !((f = (d = e.settingValue) == null ? void 0 : d.animate) != null && f.disabled),
|
|
2897
2905
|
size: "small",
|
|
2898
2906
|
onChange: (g) => {
|
|
2899
2907
|
var C;
|
|
@@ -2902,30 +2910,30 @@ const {
|
|
|
2902
2910
|
}, null)
|
|
2903
2911
|
}, {
|
|
2904
2912
|
title: "动画效果",
|
|
2905
|
-
disabled: (w = (
|
|
2906
|
-
action: n(
|
|
2907
|
-
value: (
|
|
2913
|
+
disabled: (w = (m = e.settingValue) == null ? void 0 : m.animate) == null ? void 0 : w.disabled,
|
|
2914
|
+
action: n(ye, {
|
|
2915
|
+
value: (R = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : R.name,
|
|
2908
2916
|
style: {
|
|
2909
2917
|
width: "100px"
|
|
2910
2918
|
},
|
|
2911
2919
|
size: "small",
|
|
2912
|
-
disabled: (
|
|
2920
|
+
disabled: (T = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : T.disabled,
|
|
2913
2921
|
getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
|
|
2914
2922
|
onChange: (g) => {
|
|
2915
2923
|
var C;
|
|
2916
2924
|
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "name", g);
|
|
2917
2925
|
}
|
|
2918
|
-
}, tt(
|
|
2926
|
+
}, tt(o = nt.map((g) => n(ye.Option, {
|
|
2919
2927
|
value: g.name
|
|
2920
2928
|
}, {
|
|
2921
2929
|
default: () => [g.alias]
|
|
2922
|
-
}))) ?
|
|
2923
|
-
default: () => [
|
|
2930
|
+
}))) ? o : {
|
|
2931
|
+
default: () => [o]
|
|
2924
2932
|
})
|
|
2925
2933
|
}, {
|
|
2926
2934
|
title: "动画方向",
|
|
2927
2935
|
disabled: (r = (l = e.settingValue) == null ? void 0 : l.animate) == null ? void 0 : r.disabled,
|
|
2928
|
-
action: n(
|
|
2936
|
+
action: n(ye, {
|
|
2929
2937
|
value: (k = (I = e.settingValue) == null ? void 0 : I.animate) == null ? void 0 : k.direction,
|
|
2930
2938
|
style: {
|
|
2931
2939
|
width: "100px"
|
|
@@ -2944,9 +2952,9 @@ const {
|
|
|
2944
2952
|
default: () => {
|
|
2945
2953
|
var g;
|
|
2946
2954
|
return [(g = nt.find((C) => {
|
|
2947
|
-
var $,
|
|
2948
|
-
return C.name === ((
|
|
2949
|
-
})) == null ? void 0 : g.directions.map((C) => n(
|
|
2955
|
+
var $, u;
|
|
2956
|
+
return C.name === ((u = ($ = e.settingValue) == null ? void 0 : $.animate) == null ? void 0 : u.name);
|
|
2957
|
+
})) == null ? void 0 : g.directions.map((C) => n(ye.Option, {
|
|
2950
2958
|
value: C
|
|
2951
2959
|
}, tt(C) ? C : {
|
|
2952
2960
|
default: () => [C]
|
|
@@ -2959,7 +2967,7 @@ const {
|
|
|
2959
2967
|
}
|
|
2960
2968
|
}), {
|
|
2961
2969
|
preset: ma
|
|
2962
|
-
} =
|
|
2970
|
+
} = We, Te = Object.keys(j).filter((e) => e !== "title"), at = {
|
|
2963
2971
|
color: "#fff",
|
|
2964
2972
|
fontSize: 20
|
|
2965
2973
|
}, fa = [{
|
|
@@ -2978,9 +2986,9 @@ const {
|
|
|
2978
2986
|
label: "fixedMultiTab",
|
|
2979
2987
|
title: "固定多标签"
|
|
2980
2988
|
}], ot = (e) => nn() ? {
|
|
2981
|
-
...
|
|
2989
|
+
...se(j, Te),
|
|
2982
2990
|
...e || {}
|
|
2983
|
-
} :
|
|
2991
|
+
} : Ve(j), pe = (e, {
|
|
2984
2992
|
slots: t
|
|
2985
2993
|
}) => {
|
|
2986
2994
|
var a;
|
|
@@ -2991,7 +2999,7 @@ const {
|
|
|
2991
2999
|
}, [n("h3", {
|
|
2992
3000
|
class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
|
|
2993
3001
|
}, [e.title]), (a = t.default) == null ? void 0 : a.call(t)]);
|
|
2994
|
-
}, ki = /* @__PURE__ */
|
|
3002
|
+
}, ki = /* @__PURE__ */ W({
|
|
2995
3003
|
name: "SettingDrawer",
|
|
2996
3004
|
props: {
|
|
2997
3005
|
themeOnly: Boolean,
|
|
@@ -3017,44 +3025,44 @@ const {
|
|
|
3017
3025
|
suffixCls: "setting-drawer",
|
|
3018
3026
|
isPor: !0
|
|
3019
3027
|
}), {
|
|
3020
|
-
wrapSSR:
|
|
3021
|
-
hashId:
|
|
3022
|
-
} =
|
|
3023
|
-
value:
|
|
3028
|
+
wrapSSR: i,
|
|
3029
|
+
hashId: o
|
|
3030
|
+
} = ae("ProSettingDraw", [ia], a), d = ke(!1), [f, m] = xe(!1), [w, p] = xe(!1), [R, h] = xe(!1), T = b(() => ot(se(e.settings, Te))), [l, r] = ln(() => ot(se(e.settings, Te)), {
|
|
3031
|
+
value: T,
|
|
3024
3032
|
onChange: e.onChange
|
|
3025
|
-
}), I = b(() => e.colorList && tn(e.colorList) ? e.colorList : []), k = b(() => wn(
|
|
3033
|
+
}), I = b(() => e.colorList && tn(e.colorList) ? e.colorList : []), k = b(() => wn(U(l))), {
|
|
3026
3034
|
copy: x,
|
|
3027
3035
|
copied: y,
|
|
3028
3036
|
isSupported: g
|
|
3029
3037
|
} = sn();
|
|
3030
|
-
|
|
3031
|
-
|
|
3038
|
+
me(f, () => {
|
|
3039
|
+
d.value || (d.value = !0);
|
|
3032
3040
|
});
|
|
3033
|
-
const C = (
|
|
3041
|
+
const C = (u, S, M) => {
|
|
3034
3042
|
var H, N;
|
|
3035
|
-
const
|
|
3036
|
-
if (
|
|
3037
|
-
|
|
3043
|
+
const O = ["header", "sider"], P = {};
|
|
3044
|
+
if (M && O.includes(u)) {
|
|
3045
|
+
P[u] = {}, P[u][M] = S, e.onChangeLayout && e.onChangeLayout(se(P, O));
|
|
3038
3046
|
return;
|
|
3039
3047
|
} else
|
|
3040
|
-
|
|
3041
|
-
if (
|
|
3042
|
-
const
|
|
3043
|
-
|
|
3048
|
+
u === "animate" ? (P[u] = {}, P[u][M] = S, M === "name" && (P[u].direction = (N = (H = ma.find((D) => D.name === S)) == null ? void 0 : H.directions) == null ? void 0 : N[0])) : P[u] = S;
|
|
3049
|
+
if (u === "colorWeak") {
|
|
3050
|
+
const D = document.querySelector("body");
|
|
3051
|
+
D && (D.dataset.prosettingdrawer = S === !0 ? D.style.filter : D.dataset.prosettingdrawer || "none", S === !0 && (D.dataset.prosettingdrawer = D.style.filter), D.style.filter = S === !0 ? "invert(80%)" : D.dataset.prosettingdrawer || "none", S || delete D.dataset.prosettingdrawer);
|
|
3044
3052
|
}
|
|
3045
|
-
r(an(
|
|
3046
|
-
...Cn(
|
|
3053
|
+
r(an(U(l), {
|
|
3054
|
+
...Cn(je(P, O))
|
|
3047
3055
|
}));
|
|
3048
3056
|
}, $ = () => {
|
|
3049
|
-
g.value && x(JSON.stringify(
|
|
3057
|
+
g.value && x(JSON.stringify(U(l)));
|
|
3050
3058
|
};
|
|
3051
|
-
return
|
|
3052
|
-
|
|
3053
|
-
}), () =>
|
|
3059
|
+
return me(y, (u) => {
|
|
3060
|
+
u && zt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
3061
|
+
}), () => i(n(ve, {
|
|
3054
3062
|
width: 300,
|
|
3055
3063
|
closable: !1,
|
|
3056
3064
|
open: f.value,
|
|
3057
|
-
rootClassName: `${a} ${
|
|
3065
|
+
rootClassName: `${a} ${o.value} ${f.value && `${a}-show`} ${!d.value && `${a}-trantion-none`}`,
|
|
3058
3066
|
placement: "right",
|
|
3059
3067
|
rootStyle: {
|
|
3060
3068
|
zIndex: 999
|
|
@@ -3062,10 +3070,10 @@ const {
|
|
|
3062
3070
|
bodyStyle: {
|
|
3063
3071
|
padding: 0
|
|
3064
3072
|
},
|
|
3065
|
-
onClose: () =>
|
|
3073
|
+
onClose: () => m(!1),
|
|
3066
3074
|
handle: n("div", {
|
|
3067
|
-
class: [`${a}-handle`,
|
|
3068
|
-
onClick: () =>
|
|
3075
|
+
class: [`${a}-handle`, o.value],
|
|
3076
|
+
onClick: () => m(!f.value)
|
|
3069
3077
|
}, [f.value ? n(dt, {
|
|
3070
3078
|
style: at
|
|
3071
3079
|
}, null) : n(Yt, {
|
|
@@ -3073,103 +3081,103 @@ const {
|
|
|
3073
3081
|
}, null)])
|
|
3074
3082
|
}, {
|
|
3075
3083
|
default: () => [n("div", {
|
|
3076
|
-
class: [`${a}-wrapper`,
|
|
3084
|
+
class: [`${a}-wrapper`, o.value]
|
|
3077
3085
|
}, [n(dn, null, {
|
|
3078
3086
|
default: () => [n("div", {
|
|
3079
|
-
class: [`${a}-content`,
|
|
3080
|
-
}, [n(
|
|
3087
|
+
class: [`${a}-content`, o.value]
|
|
3088
|
+
}, [n(pe, {
|
|
3081
3089
|
prefixCls: a,
|
|
3082
|
-
hashId:
|
|
3090
|
+
hashId: o.value,
|
|
3083
3091
|
title: "整体风格设置"
|
|
3084
3092
|
}, {
|
|
3085
3093
|
default: () => [n(et, {
|
|
3086
|
-
hashId:
|
|
3094
|
+
hashId: o.value,
|
|
3087
3095
|
prefixCls: a,
|
|
3088
3096
|
list: Mt,
|
|
3089
3097
|
value: l.value.theme,
|
|
3090
3098
|
configType: "theme",
|
|
3091
3099
|
key: "navTheme",
|
|
3092
|
-
onChange: (
|
|
3100
|
+
onChange: (u) => C("theme", u)
|
|
3093
3101
|
}, null)]
|
|
3094
|
-
}), n(
|
|
3095
|
-
hashId:
|
|
3096
|
-
title: n("span", null, [
|
|
3102
|
+
}), n(pe, {
|
|
3103
|
+
hashId: o.value,
|
|
3104
|
+
title: n("span", null, [oe("主题色 "), n("a", {
|
|
3097
3105
|
style: {
|
|
3098
3106
|
fontSize: "12px"
|
|
3099
3107
|
},
|
|
3100
3108
|
onClick: () => p(!0)
|
|
3101
|
-
}, [
|
|
3109
|
+
}, [oe("更多配置")])]),
|
|
3102
3110
|
prefixCls: a
|
|
3103
3111
|
}, {
|
|
3104
3112
|
default: () => [n(la, {
|
|
3105
|
-
hashId:
|
|
3113
|
+
hashId: o.value,
|
|
3106
3114
|
prefixCls: a,
|
|
3107
3115
|
colorList: I.value,
|
|
3108
3116
|
settingValue: l.value,
|
|
3109
|
-
onChange: (
|
|
3117
|
+
onChange: (u, S) => C(S || "primaryColor", u)
|
|
3110
3118
|
}, null)]
|
|
3111
|
-
}), !e.themeOnly && n(
|
|
3112
|
-
hashId:
|
|
3119
|
+
}), !e.themeOnly && n(Q, null, [n(Re, null, null), n(pe, {
|
|
3120
|
+
hashId: o.value,
|
|
3113
3121
|
prefixCls: a,
|
|
3114
3122
|
title: "导航模式"
|
|
3115
3123
|
}, {
|
|
3116
3124
|
default: () => [n(et, {
|
|
3117
3125
|
prefixCls: a,
|
|
3118
|
-
value:
|
|
3126
|
+
value: U(l).layout,
|
|
3119
3127
|
key: "layout",
|
|
3120
|
-
hashId:
|
|
3128
|
+
hashId: o.value,
|
|
3121
3129
|
configType: "layout",
|
|
3122
3130
|
list: Ot,
|
|
3123
|
-
onChange: (
|
|
3131
|
+
onChange: (u) => C("layout", u)
|
|
3124
3132
|
}, null)]
|
|
3125
3133
|
}), fa.map(({
|
|
3126
|
-
label:
|
|
3134
|
+
label: u,
|
|
3127
3135
|
title: S
|
|
3128
|
-
}) => n(
|
|
3136
|
+
}) => n(be, {
|
|
3129
3137
|
label: S,
|
|
3130
|
-
disabled:
|
|
3131
|
-
value:
|
|
3138
|
+
disabled: U(k)[u],
|
|
3139
|
+
value: U(l)[u],
|
|
3132
3140
|
prefixCls: a,
|
|
3133
|
-
hashId:
|
|
3134
|
-
valueKey:
|
|
3135
|
-
onChange: (
|
|
3136
|
-
}, null)), n(
|
|
3137
|
-
hashId:
|
|
3141
|
+
hashId: o.value,
|
|
3142
|
+
valueKey: u,
|
|
3143
|
+
onChange: (M, O) => C(M, O)
|
|
3144
|
+
}, null)), n(Re, null, null), n(pe, {
|
|
3145
|
+
hashId: o.value,
|
|
3138
3146
|
prefixCls: a,
|
|
3139
|
-
title: n("span", null, [
|
|
3147
|
+
title: n("span", null, [oe("其他设置 "), n("a", {
|
|
3140
3148
|
style: {
|
|
3141
3149
|
fontSize: "12px"
|
|
3142
3150
|
},
|
|
3143
3151
|
onClick: () => h(!0)
|
|
3144
|
-
}, [
|
|
3152
|
+
}, [oe("更多配置")])])
|
|
3145
3153
|
}, {
|
|
3146
3154
|
default: () => [ga.map(({
|
|
3147
|
-
label:
|
|
3155
|
+
label: u,
|
|
3148
3156
|
title: S
|
|
3149
|
-
}) => n(
|
|
3157
|
+
}) => n(be, {
|
|
3150
3158
|
label: S,
|
|
3151
|
-
disabled:
|
|
3152
|
-
value:
|
|
3159
|
+
disabled: U(k)[u],
|
|
3160
|
+
value: U(l)[u],
|
|
3153
3161
|
prefixCls: a,
|
|
3154
|
-
hashId:
|
|
3155
|
-
valueKey:
|
|
3156
|
-
onChange: (
|
|
3157
|
-
}, null)), e.weakmode && n(
|
|
3162
|
+
hashId: o.value,
|
|
3163
|
+
valueKey: u,
|
|
3164
|
+
onChange: (M, O) => C(M, O)
|
|
3165
|
+
}, null)), e.weakmode && n(be, {
|
|
3158
3166
|
label: "色弱模式",
|
|
3159
|
-
value:
|
|
3167
|
+
value: U(l).colorWeak,
|
|
3160
3168
|
prefixCls: a,
|
|
3161
|
-
hashId:
|
|
3169
|
+
hashId: o.value,
|
|
3162
3170
|
valueKey: "colorWeak",
|
|
3163
|
-
onChange: (
|
|
3164
|
-
}, null), e.showProgress && n(
|
|
3171
|
+
onChange: (u, S) => C(u, S)
|
|
3172
|
+
}, null), e.showProgress && n(be, {
|
|
3165
3173
|
label: "顶部进度条",
|
|
3166
|
-
value:
|
|
3174
|
+
value: U(l).showProgressBar,
|
|
3167
3175
|
prefixCls: a,
|
|
3168
|
-
hashId:
|
|
3176
|
+
hashId: o.value,
|
|
3169
3177
|
valueKey: "showProgressBar",
|
|
3170
|
-
onChange: (
|
|
3178
|
+
onChange: (u, S) => C(u, S)
|
|
3171
3179
|
}, null)]
|
|
3172
|
-
})]), e.hideHintAlert && e.hideCopyButton ? null : n(
|
|
3180
|
+
})]), e.hideHintAlert && e.hideCopyButton ? null : n(Re, null, null), e.hideHintAlert ? null : n(Ht, {
|
|
3173
3181
|
type: "warning",
|
|
3174
3182
|
message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
|
|
3175
3183
|
icon: n(_t, null, null),
|
|
@@ -3181,9 +3189,9 @@ const {
|
|
|
3181
3189
|
onClick: () => $(),
|
|
3182
3190
|
block: !0
|
|
3183
3191
|
}, {
|
|
3184
|
-
default: () => [n(Gt, null, null),
|
|
3192
|
+
default: () => [n(Gt, null, null), oe("拷贝设置")]
|
|
3185
3193
|
})])]
|
|
3186
|
-
})]), n(
|
|
3194
|
+
})]), n(ve, {
|
|
3187
3195
|
width: 320,
|
|
3188
3196
|
closable: !1,
|
|
3189
3197
|
placement: "right",
|
|
@@ -3195,13 +3203,13 @@ const {
|
|
|
3195
3203
|
}, {
|
|
3196
3204
|
default: () => [n(da, {
|
|
3197
3205
|
settingValue: l.value,
|
|
3198
|
-
onChange: (
|
|
3206
|
+
onChange: (u, S, M) => C(S || "primaryColor", u, M)
|
|
3199
3207
|
}, null)]
|
|
3200
|
-
}), n(
|
|
3208
|
+
}), n(ve, {
|
|
3201
3209
|
width: 320,
|
|
3202
3210
|
closable: !1,
|
|
3203
3211
|
placement: "right",
|
|
3204
|
-
open:
|
|
3212
|
+
open: R.value,
|
|
3205
3213
|
bodyStyle: {
|
|
3206
3214
|
padding: 0
|
|
3207
3215
|
},
|
|
@@ -3209,7 +3217,7 @@ const {
|
|
|
3209
3217
|
}, {
|
|
3210
3218
|
default: () => [n(ca, {
|
|
3211
3219
|
settingValue: l.value,
|
|
3212
|
-
onChange: (
|
|
3220
|
+
onChange: (u, S, M) => C(u, M, S)
|
|
3213
3221
|
}, null)]
|
|
3214
3222
|
})]
|
|
3215
3223
|
}));
|
|
@@ -4487,12 +4495,12 @@ const {
|
|
|
4487
4495
|
}
|
|
4488
4496
|
});
|
|
4489
4497
|
function di(e) {
|
|
4490
|
-
return
|
|
4491
|
-
const a =
|
|
4498
|
+
return ze("LayoutPageTranstion", (t) => {
|
|
4499
|
+
const a = He(t);
|
|
4492
4500
|
return [si(a)];
|
|
4493
4501
|
}, e);
|
|
4494
4502
|
}
|
|
4495
|
-
const Bi = /* @__PURE__ */
|
|
4503
|
+
const Bi = /* @__PURE__ */ W({
|
|
4496
4504
|
name: "PageTranstion",
|
|
4497
4505
|
props: {
|
|
4498
4506
|
disabled: {
|
|
@@ -4512,35 +4520,35 @@ const Bi = /* @__PURE__ */ j({
|
|
|
4512
4520
|
setup(e, {
|
|
4513
4521
|
slots: t
|
|
4514
4522
|
}) {
|
|
4515
|
-
const a =
|
|
4523
|
+
const a = ge({
|
|
4516
4524
|
suffixCls: "page-transtion",
|
|
4517
4525
|
isPor: !0
|
|
4518
4526
|
}), {
|
|
4519
|
-
wrapSSR:
|
|
4520
|
-
hashId:
|
|
4521
|
-
} = di(a),
|
|
4522
|
-
const
|
|
4523
|
-
if (
|
|
4527
|
+
wrapSSR: i,
|
|
4528
|
+
hashId: o
|
|
4529
|
+
} = di(a), d = b(() => [m(!1), `${a}-enter`, o.value].join(" ")), f = b(() => [m(!0), `${a}-leave`, o.value].join(" ")), m = (p) => {
|
|
4530
|
+
const R = We.preset.find((l) => e.name == l.name);
|
|
4531
|
+
if (R == null)
|
|
4524
4532
|
return "";
|
|
4525
4533
|
let h = "";
|
|
4526
|
-
e.direction == null ? h =
|
|
4527
|
-
const
|
|
4528
|
-
return
|
|
4529
|
-
}, w = (p,
|
|
4534
|
+
e.direction == null ? h = R.directions[0] : h = R.directions.find((l) => l == e.direction) || "", h = h == null || h === "default" ? "" : h, h != "" && (h = p && e.reverse ? w(h, R.directions) : h, h = h[0].toUpperCase() + h.substring(1));
|
|
4535
|
+
const T = p ? "Out" : "In";
|
|
4536
|
+
return R.name + T + h;
|
|
4537
|
+
}, w = (p, R) => {
|
|
4530
4538
|
if (p.length == 0 || p == "x" || p == "y")
|
|
4531
4539
|
return p;
|
|
4532
|
-
let h =
|
|
4533
|
-
return h = h % 2 == 1 ? h - 1 : h + 1,
|
|
4540
|
+
let h = R.indexOf(p);
|
|
4541
|
+
return h = h % 2 == 1 ? h - 1 : h + 1, R[h];
|
|
4534
4542
|
};
|
|
4535
4543
|
return () => {
|
|
4536
4544
|
var p;
|
|
4537
|
-
return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) :
|
|
4538
|
-
enterActiveClass:
|
|
4545
|
+
return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) : i(n(Tt, {
|
|
4546
|
+
enterActiveClass: d.value,
|
|
4539
4547
|
leaveActiveClass: f.value
|
|
4540
4548
|
}, {
|
|
4541
4549
|
default: () => {
|
|
4542
|
-
var
|
|
4543
|
-
return [(
|
|
4550
|
+
var R;
|
|
4551
|
+
return [(R = t.default) == null ? void 0 : R.call(t)];
|
|
4544
4552
|
}
|
|
4545
4553
|
}));
|
|
4546
4554
|
};
|
|
@@ -4550,14 +4558,14 @@ export {
|
|
|
4550
4558
|
gt as BaseMenu,
|
|
4551
4559
|
ta as DefaultHeader,
|
|
4552
4560
|
Oi as GProLayout,
|
|
4553
|
-
|
|
4561
|
+
$e as GlobalFooter,
|
|
4554
4562
|
Mi as PageContainer,
|
|
4555
4563
|
un as PageLoading,
|
|
4556
4564
|
Bi as PageTranstion,
|
|
4557
4565
|
ki as SettingDrawer,
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4566
|
+
Be as SiderMenuWrapper,
|
|
4567
|
+
Ee as WrapContent,
|
|
4568
|
+
Oe as baseMenuProps,
|
|
4561
4569
|
bn as clearMenuItem,
|
|
4562
4570
|
In as createContext,
|
|
4563
4571
|
On as createRouteContext,
|
|
@@ -4567,7 +4575,7 @@ export {
|
|
|
4567
4575
|
vn as getMenuFirstChildren,
|
|
4568
4576
|
xn as getMenuFirstLastChildPath,
|
|
4569
4577
|
Cn as handleThemeConfig,
|
|
4570
|
-
|
|
4578
|
+
A as hanlePathKey,
|
|
4571
4579
|
Rn as provideProLayoutContext,
|
|
4572
4580
|
Mn as useContext,
|
|
4573
4581
|
te as useProLayoutContext
|