@gx-design-vue/pro-layout 0.1.0-beta.45 → 0.1.0-beta.47
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 +787 -778
- package/dist/pro-layout.umd.cjs +1 -1
- package/dist/route.d.ts +1 -0
- 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 d,
|
|
257
|
-
const
|
|
258
|
-
return a === "light" ? (
|
|
255
|
+
function ft(e, t, a, i) {
|
|
256
|
+
var d, g, m, w, p, R, h, F, l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B, T;
|
|
257
|
+
const o = { ...e };
|
|
258
|
+
return a === "light" ? (o.colorItemBg = (g = (d = t.layout) == null ? void 0 : d[i]) == null ? void 0 : g.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 = (F = (h = t.layout) == null ? void 0 : h[i]) == null ? void 0 : F.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 = (f = t.layout) == null ? void 0 : f[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 = (T = (B = t.layout) == null ? void 0 : B[i]) == null ? void 0 : T.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((
|
|
285
|
+
if (a.children.some((o) => {
|
|
286
286
|
var d;
|
|
287
|
-
return
|
|
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
|
-
const a = function(
|
|
311
|
+
const a = function(o) {
|
|
312
312
|
let d = "";
|
|
313
|
-
return
|
|
314
|
-
},
|
|
315
|
-
if (
|
|
316
|
-
t = a(
|
|
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
|
|
319
|
-
t = (
|
|
318
|
+
const o = i.length > 0 ? i[0] : void 0;
|
|
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 d = [],
|
|
328
|
-
for (let
|
|
329
|
-
d.push(
|
|
330
|
-
return e.filter((
|
|
327
|
+
const d = [], g = a.split("-");
|
|
328
|
+
for (let m = 0; m < g.length; m += 1)
|
|
329
|
+
d.push(Ve(g).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(
|
|
358
|
+
setup(i, { slots: o }) {
|
|
359
|
+
return it(e, Rt(i.value)), () => {
|
|
360
360
|
var d;
|
|
361
|
-
return (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;
|
|
@@ -385,21 +385,21 @@ const Ce = (e) => {
|
|
|
385
385
|
}, null);
|
|
386
386
|
if (a === 1) {
|
|
387
387
|
const d = Wt({
|
|
388
|
-
scriptUrl:
|
|
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
|
+
}, g = (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,
|
|
432
|
+
}, w = lt("router-link"), p = (l = []) => l.map((r) => R(r)).filter((r) => r), R = (l) => {
|
|
433
|
+
var k, x, y, f, 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 = (f = l.meta) != null && f.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
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, $, u, S,
|
|
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
|
-
}),
|
|
493
|
-
className:
|
|
492
|
+
}), f = ((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
|
-
return [y,
|
|
499
|
-
},
|
|
500
|
-
return () => n(
|
|
498
|
+
return [y, f];
|
|
499
|
+
}, F = 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:
|
|
507
|
+
onOpenChange: o,
|
|
508
508
|
onSelect: d,
|
|
509
|
-
onClick:
|
|
509
|
+
onClick: g
|
|
510
510
|
}, e.menuProps), {
|
|
511
|
-
default: () => [
|
|
511
|
+
default: () => [F.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, g, m, w, p, R, h, F;
|
|
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: (
|
|
569
|
+
color: (g = (d = e.layout) == null ? void 0 : d.sider) == null ? void 0 : g.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: `${((F = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : F.heightLayoutHeader) || j.headerHeight}px`
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
@@ -678,106 +678,106 @@ 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:
|
|
681
|
+
logoStyle: i,
|
|
682
|
+
title: o,
|
|
683
683
|
layout: d
|
|
684
|
-
} = e,
|
|
685
|
-
if (
|
|
684
|
+
} = e, g = e[t || ""];
|
|
685
|
+
if (g === !1)
|
|
686
686
|
return null;
|
|
687
|
-
const
|
|
688
|
-
return typeof
|
|
689
|
-
},
|
|
687
|
+
const m = yt(a, i), w = o && n("h1", null, [o]);
|
|
688
|
+
return typeof g == "function" ? g(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:
|
|
699
|
+
wrapSSR: o,
|
|
700
700
|
hashId: d
|
|
701
|
-
} =
|
|
702
|
-
return () =>
|
|
701
|
+
} = ae("ProLayoutLogo", [Fn]), g = b(() => Tn(e, e.renderKey));
|
|
702
|
+
return () => o(n("div", {
|
|
703
703
|
id: "logo",
|
|
704
704
|
class: {
|
|
705
705
|
[`${d.value}`]: !0,
|
|
706
|
-
[`${
|
|
707
|
-
[`${
|
|
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
|
-
}, [n("a", null, [
|
|
713
|
+
}, [n("a", null, [g.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:
|
|
731
|
+
flatMenuData: i,
|
|
732
|
+
menuData: o,
|
|
733
733
|
openKeys: d
|
|
734
734
|
} = te(), {
|
|
735
|
-
indicator:
|
|
736
|
-
} =
|
|
737
|
-
token:
|
|
738
|
-
} =
|
|
735
|
+
indicator: g
|
|
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: F,
|
|
744
744
|
fixSiderbar: l,
|
|
745
745
|
collapsed: r,
|
|
746
746
|
siderWidth: I,
|
|
747
747
|
collapsedWidth: k,
|
|
748
748
|
menuExtraRender: x,
|
|
749
749
|
menuContentRender: y,
|
|
750
|
-
menuFooterRender:
|
|
750
|
+
menuFooterRender: f,
|
|
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: `${u}-menu ${
|
|
773
|
+
var T;
|
|
774
|
+
const c = H.value ? n(Ae, G({
|
|
775
|
+
drawer: R.value
|
|
776
|
+
}, e), null) : null, v = x.value && ((T = x.value) == null ? void 0 : T.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
782
|
openKeys: d.value,
|
|
783
783
|
selectedKeys: a.value,
|
|
@@ -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: F.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
|
-
indicator:
|
|
842
|
-
}, null)]),
|
|
841
|
+
indicator: g == null ? void 0 : g.value
|
|
842
|
+
}, null)]), c || null, v && !e.collapsed && n("div", {
|
|
843
843
|
class: {
|
|
844
|
-
[`${
|
|
844
|
+
[`${M.value}`]: !0,
|
|
845
845
|
[`${u}-extra`]: !0,
|
|
846
|
-
[`${u}-extra-no-logo`]: !
|
|
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: `${u}-links ${
|
|
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: `${u}-link-menu ${
|
|
858
|
+
class: `${u}-link-menu ${M.value}`,
|
|
859
859
|
selectedKeys: [],
|
|
860
860
|
openKeys: [],
|
|
861
861
|
mode: "inline"
|
|
862
862
|
}, {
|
|
863
|
-
default: () => [(
|
|
864
|
-
class: `${u}-link ${
|
|
865
|
-
key:
|
|
866
|
-
}, Pn(
|
|
867
|
-
default: () => [
|
|
868
|
-
})),
|
|
869
|
-
class: `${u}-collapsed-button ${
|
|
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
|
-
})]),
|
|
883
|
-
class: `${u}-footer ${
|
|
884
|
-
}, [(
|
|
882
|
+
})]), f.value && n("div", {
|
|
883
|
+
class: `${u}-footer ${M.value}`
|
|
884
|
+
}, [(q = f.value) == null ? void 0 : q.call(f, 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:
|
|
987
|
+
wrapSSR: o,
|
|
988
988
|
hashId: d
|
|
989
|
-
} =
|
|
990
|
-
var
|
|
989
|
+
} = ae("ProPageHeader", [Dn], i), g = 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, g.value) : n(Pt, g.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, g, 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,85 +1022,85 @@ const {
|
|
|
1022
1022
|
},
|
|
1023
1023
|
[e.componentCls]: {
|
|
1024
1024
|
"&-children-content": {
|
|
1025
|
-
marginInline: ((
|
|
1026
|
-
marginBlockStart: ((w = (
|
|
1025
|
+
marginInline: ((g = (d = e.layout) == null ? void 0 : d.pageContainer) == null ? void 0 : g.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:
|
|
1052
|
+
getPrefixCls: i,
|
|
1053
|
+
hasContentWide: o,
|
|
1054
1054
|
waterMark: d,
|
|
1055
|
-
pageHeaderRender:
|
|
1056
|
-
pageContentStyle:
|
|
1055
|
+
pageHeaderRender: g,
|
|
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: F
|
|
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), f = b(() => e.pageChildrenContentStyle || w.value || {}), C = b(() => _e(e.usePageCard) ? e.usePageCard : _e(R.value) ? R.value : !0), {
|
|
1070
1070
|
wrapSSR: $,
|
|
1071
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
1076
|
class: `${r}-children-content ${u.value}`,
|
|
1077
|
-
style:
|
|
1078
|
-
}, [
|
|
1079
|
-
style:
|
|
1077
|
+
style: f.value
|
|
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") || g.value, P = K(t, e, "breadcrumbRender"), H = K(t, e, "contentRender");
|
|
1101
|
+
return $(n(Ce, {
|
|
1102
1102
|
spinning: e.loading,
|
|
1103
|
-
indicator:
|
|
1103
|
+
indicator: F == null ? void 0 : F.value
|
|
1104
1104
|
}, {
|
|
1105
1105
|
default: () => [n("div", {
|
|
1106
1106
|
style: a.style,
|
|
@@ -1108,25 +1108,25 @@ const Mi = /* @__PURE__ */ j({
|
|
|
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
1116
|
class: [I, u.value]
|
|
1117
1117
|
}, [n("div", {
|
|
1118
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
|
-
}), d =
|
|
1479
|
-
menuData:
|
|
1480
|
-
flatMenuData:
|
|
1478
|
+
}), d = Ne(), {
|
|
1479
|
+
menuData: g,
|
|
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: F,
|
|
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 &&
|
|
1500
|
-
}),
|
|
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 || g.value.length === 0 || w.value === "top");
|
|
1499
|
+
return x.value && c ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
|
|
1500
|
+
}), f = 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), T = {
|
|
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, T) :
|
|
1528
|
+
B ? Object.assign(B, T) : c.meta.tagFixed ? r.value.unshift(T) : r.value.push(T), $(c) && (o.activeKey = v);
|
|
1528
1529
|
}
|
|
1529
|
-
}, S = (
|
|
1530
|
-
|
|
1530
|
+
}, S = (c) => {
|
|
1531
|
+
c.forEach((v) => {
|
|
1531
1532
|
v.meta && v.meta.tagFixed && u(v), v.children && S(v.children);
|
|
1532
1533
|
});
|
|
1533
1534
|
};
|
|
1534
|
-
|
|
1535
|
-
S(
|
|
1535
|
+
me(() => g.value, (c) => {
|
|
1536
|
+
S(c);
|
|
1536
1537
|
}, {
|
|
1537
1538
|
deep: !0,
|
|
1538
1539
|
immediate: !0
|
|
1539
|
-
}),
|
|
1540
|
-
u(
|
|
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((T) => (c || o.activeKey) === A(T))) == 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((T) =>
|
|
1561
|
-
switch (
|
|
1567
|
+
}, D = (c) => c.meta && c.meta.tagFixed, V = (c) => o[c], Y = (c, v) => {
|
|
1568
|
+
const B = r.value.findIndex((T) => A(T) === V(v));
|
|
1569
|
+
switch (c) {
|
|
1562
1570
|
case "closeOthersTabs":
|
|
1563
1571
|
r.value = r.value.filter((T) => {
|
|
1564
1572
|
var z;
|
|
1565
|
-
return
|
|
1573
|
+
return A(T) === V(v) || ((z = T.meta) == null ? void 0 : z.tagFixed);
|
|
1566
1574
|
});
|
|
1567
1575
|
break;
|
|
1568
1576
|
case "closeLeftTabs":
|
|
1569
1577
|
B && (r.value = r.value.filter((T, z) => {
|
|
1570
|
-
var
|
|
1571
|
-
return z >= B || ((
|
|
1578
|
+
var q;
|
|
1579
|
+
return z >= B || ((q = T.meta) == null ? void 0 : q.tagFixed);
|
|
1572
1580
|
}));
|
|
1573
1581
|
break;
|
|
1574
1582
|
case "closeRightTabs":
|
|
1575
1583
|
B && (r.value = r.value.filter((T, z) => {
|
|
1576
|
-
var
|
|
1577
|
-
return z <= B || ((
|
|
1584
|
+
var q;
|
|
1585
|
+
return z <= B || ((q = T.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((T) =>
|
|
1587
|
-
switch (
|
|
1592
|
+
o.activeKey !== V(v) && d.push(M(V(v)));
|
|
1593
|
+
}, _ = (c, v) => {
|
|
1594
|
+
const B = r.value.findIndex((T) => A(T) === 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
1616
|
stateType: T
|
|
1609
|
-
} =
|
|
1610
|
-
return n(
|
|
1617
|
+
} = c;
|
|
1618
|
+
return n(ie, {
|
|
1611
1619
|
selectedKeys: [],
|
|
1612
1620
|
onClick: ({
|
|
1613
1621
|
key: z
|
|
1614
|
-
}) =>
|
|
1622
|
+
}) => Y(z, T)
|
|
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:
|
|
1651
|
+
spin: i.value,
|
|
1644
1652
|
onClick: (T) => {
|
|
1645
|
-
T.stopPropagation(), !
|
|
1653
|
+
T.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
1657
|
onClick: (T) => {
|
|
1650
|
-
T.stopPropagation(), !
|
|
1658
|
+
T.stopPropagation(), !i.value && P(A(v) || "");
|
|
1651
1659
|
}
|
|
1652
1660
|
}, null)])];
|
|
1653
1661
|
}
|
|
1654
1662
|
});
|
|
1655
1663
|
};
|
|
1656
|
-
return () =>
|
|
1664
|
+
return () => F(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
|
-
class:
|
|
1663
|
-
activeKey:
|
|
1664
|
-
onTabClick:
|
|
1670
|
+
class: f.value,
|
|
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:
|
|
1702
|
+
hashId: i,
|
|
1703
|
+
prefixCls: o,
|
|
1696
1704
|
isMobile: d,
|
|
1697
|
-
loading:
|
|
1698
|
-
collapsed:
|
|
1705
|
+
loading: g,
|
|
1706
|
+
collapsed: m,
|
|
1699
1707
|
siderWidth: w,
|
|
1700
1708
|
isShowTabsBar: p,
|
|
1701
|
-
isFixedMultiTab:
|
|
1709
|
+
isFixedMultiTab: R,
|
|
1702
1710
|
onReloadPage: h,
|
|
1703
|
-
onChangeTabs:
|
|
1711
|
+
onChangeTabs: F
|
|
1704
1712
|
} = e;
|
|
1705
1713
|
if (e.isChildrenLayout)
|
|
1706
1714
|
return (I = t.default) == null ? void 0 : I.call(t);
|
|
@@ -1708,41 +1716,41 @@ 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: (
|
|
1719
|
+
return n(Q, null, [n(Gn, {
|
|
1720
|
+
visible: (U(r) === "mix" ? U(l).length > 0 : !0) && p,
|
|
1713
1721
|
isMobile: d,
|
|
1714
|
-
loading:
|
|
1715
|
-
isFixedMultiTab:
|
|
1722
|
+
loading: g,
|
|
1723
|
+
isFixedMultiTab: R,
|
|
1716
1724
|
siderWidth: w,
|
|
1717
|
-
collapsed:
|
|
1725
|
+
collapsed: m,
|
|
1718
1726
|
onReloadPage: h,
|
|
1719
|
-
onChangeTabs:
|
|
1727
|
+
onChangeTabs: F
|
|
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
|
-
return [
|
|
1727
|
-
class: [`${
|
|
1734
|
+
return [g && n(un, null, null), n("div", {
|
|
1735
|
+
class: [`${o}-content-spin-container`, i],
|
|
1728
1736
|
style: {
|
|
1729
|
-
opacity:
|
|
1737
|
+
opacity: g ? "0" : void 0
|
|
1730
1738
|
}
|
|
1731
1739
|
}, [(k = t.default) == null ? void 0 : k.call(t)])];
|
|
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
|
-
} =
|
|
1897
|
+
const i = Ne(), {
|
|
1898
|
+
token: o
|
|
1899
|
+
} = he(), {
|
|
1892
1900
|
getPrefixCls: d,
|
|
1893
|
-
openKeys:
|
|
1894
|
-
selectedKeys:
|
|
1901
|
+
openKeys: g,
|
|
1902
|
+
selectedKeys: m
|
|
1895
1903
|
} = te(), {
|
|
1896
1904
|
width: w
|
|
1897
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), F = b(() => e.isMobile ? !1 : 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
|
-
var
|
|
1909
|
-
if (
|
|
1910
|
-
const C =
|
|
1911
|
-
e.onSelect && y === "select" && e.onSelect(C.filter(($) => $.name !== "index").map(($) => $.path)), e.onOpenKeys && y === "openKeys" && ((
|
|
1916
|
+
var f;
|
|
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" && ((f = e.onOpenKeys) == null || f.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
|
-
var y;
|
|
1917
|
-
return n(
|
|
1924
|
+
var y, f;
|
|
1925
|
+
return n(Q, null, [F.value ? n("div", {
|
|
1918
1926
|
style: {
|
|
1919
1927
|
flex: 1
|
|
1920
1928
|
},
|
|
1921
1929
|
class: [`${p}-menu`, h.value]
|
|
1922
|
-
}, [n(
|
|
1930
|
+
}, [((y = e.menuData) == null ? void 0 : y.length) > 0 && 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
|
-
openKeys:
|
|
1945
|
-
selectedKeys:
|
|
1952
|
+
openKeys: g.value,
|
|
1953
|
+
selectedKeys: m.value,
|
|
1946
1954
|
iconfontUrl: e.iconfontUrl,
|
|
1947
1955
|
menuItemRender: e.menuItemRender,
|
|
1948
1956
|
subMenuItemRender: e.subMenuItemRender,
|
|
@@ -1958,26 +1966,27 @@ const Zn = (e) => {
|
|
|
1958
1966
|
style: {
|
|
1959
1967
|
flex: 1
|
|
1960
1968
|
}
|
|
1961
|
-
}, [(
|
|
1969
|
+
}, [(f = t.default) == null ? void 0 : f.call(t)]), e.layout !== "simple" && n(ea, G(e, {
|
|
1962
1970
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
1963
1971
|
rightContentRender: e.rightContentRender
|
|
1964
1972
|
}), null)]);
|
|
1965
1973
|
};
|
|
1966
1974
|
return () => {
|
|
1975
|
+
console.log(F.value);
|
|
1967
1976
|
const y = n("span", {
|
|
1968
1977
|
key: "logo",
|
|
1969
1978
|
onClick: () => {
|
|
1970
|
-
var
|
|
1971
|
-
return (
|
|
1979
|
+
var f;
|
|
1980
|
+
return (f = e.onMenuHeaderClick) == null ? void 0 : f.call(e);
|
|
1972
1981
|
},
|
|
1973
1982
|
class: [`${p}-logo`, e.isMobile ? "mobile" : "", h.value]
|
|
1974
1983
|
}, [n("a", null, [yt(e.logo)])]);
|
|
1975
|
-
return
|
|
1984
|
+
return R(n("div", {
|
|
1976
1985
|
class: l.value
|
|
1977
|
-
}, [e.isMobile ? n(
|
|
1986
|
+
}, [e.isMobile ? n(Q, null, [Qn(e.menuHeaderRender, y), e.isMobile && U(k) && n("span", {
|
|
1978
1987
|
class: `${p}-collapsed-button ${h.value}`,
|
|
1979
1988
|
onClick: I
|
|
1980
|
-
}, [
|
|
1989
|
+
}, [U(k)(e.collapsed)]), x()]) : ["mix", "wide", "top"].includes(e.layout) ? n(Q, null, [n("div", {
|
|
1981
1990
|
style: {
|
|
1982
1991
|
width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
|
|
1983
1992
|
padding: e.layout === "wide" && w.value < e.wideWidth ? "0 50px" : void 0
|
|
@@ -1985,181 +1994,181 @@ const Zn = (e) => {
|
|
|
1985
1994
|
class: `${p}-main ${h.value}`
|
|
1986
1995
|
}, [n("div", {
|
|
1987
1996
|
class: `${p}-main-left ${h.value}`
|
|
1988
|
-
}, [n(
|
|
1997
|
+
}, [n(Ae, G(e, {
|
|
1989
1998
|
renderKey: "headerTitleRender"
|
|
1990
1999
|
}), null)]), x()])]) : x()]));
|
|
1991
2000
|
};
|
|
1992
2001
|
}
|
|
1993
2002
|
});
|
|
1994
2003
|
function na(e) {
|
|
1995
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2004
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
|
|
1996
2005
|
}
|
|
1997
2006
|
const {
|
|
1998
2007
|
Header: Qe
|
|
1999
|
-
} =
|
|
2008
|
+
} = fe, Fe = /* @__PURE__ */ W({
|
|
2000
2009
|
inheritAttrs: !1,
|
|
2001
2010
|
props: vt,
|
|
2002
2011
|
setup(e) {
|
|
2003
2012
|
const {
|
|
2004
2013
|
theme: t,
|
|
2005
2014
|
isMobile: a,
|
|
2006
|
-
fixedHeader:
|
|
2007
|
-
headerHeight:
|
|
2015
|
+
fixedHeader: i,
|
|
2016
|
+
headerHeight: o,
|
|
2008
2017
|
layout: d,
|
|
2009
|
-
onCollapse:
|
|
2010
|
-
splitMenus:
|
|
2011
|
-
} =
|
|
2018
|
+
onCollapse: g,
|
|
2019
|
+
splitMenus: m
|
|
2020
|
+
} = Ie(e), {
|
|
2012
2021
|
getPrefixCls: w,
|
|
2013
2022
|
menuData: p
|
|
2014
|
-
} = te(),
|
|
2023
|
+
} = te(), R = w({
|
|
2015
2024
|
suffixCls: "header",
|
|
2016
2025
|
isPor: !0
|
|
2017
2026
|
}), h = w({
|
|
2018
2027
|
suffixCls: "fixed-header",
|
|
2019
2028
|
isPor: !0
|
|
2020
2029
|
}), {
|
|
2021
|
-
wrapSSR:
|
|
2030
|
+
wrapSSR: F,
|
|
2022
2031
|
hashId: l
|
|
2023
|
-
} =
|
|
2032
|
+
} = 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), f = b(() => ({
|
|
2024
2033
|
[`${l.value}`]: !0,
|
|
2025
|
-
[`${
|
|
2026
|
-
[`${
|
|
2034
|
+
[`${R}-${y.value}`]: !0,
|
|
2035
|
+
[`${R}`]: !0,
|
|
2027
2036
|
[`${h}`]: I.value
|
|
2028
|
-
})), C = b(() => I.value && !a.value), $ = b(() =>
|
|
2029
|
-
const
|
|
2037
|
+
})), 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 = () => {
|
|
2038
|
+
const O = n(ta, G(e, {
|
|
2030
2039
|
theme: y.value,
|
|
2031
2040
|
mode: "horizontal",
|
|
2032
|
-
onCollapse:
|
|
2041
|
+
onCollapse: g.value,
|
|
2033
2042
|
menuData: $.value
|
|
2034
2043
|
}), {
|
|
2035
2044
|
default: () => [k.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
|
|
2036
2045
|
});
|
|
2037
|
-
return e.headerRender ? e.headerRender(e,
|
|
2046
|
+
return e.headerRender ? e.headerRender(e, O) : O;
|
|
2038
2047
|
};
|
|
2039
2048
|
return () => {
|
|
2040
|
-
let
|
|
2041
|
-
return
|
|
2049
|
+
let O;
|
|
2050
|
+
return F(n(Q, null, [I.value && !r.value && n(Qe, {
|
|
2042
2051
|
theme: y.value,
|
|
2043
2052
|
style: {
|
|
2044
|
-
height: `${
|
|
2045
|
-
lineHeight: `${
|
|
2053
|
+
height: `${o.value}px`,
|
|
2054
|
+
lineHeight: `${o.value}px`,
|
|
2046
2055
|
background: "transparent"
|
|
2047
2056
|
}
|
|
2048
2057
|
}, null), n(Qe, {
|
|
2049
2058
|
theme: y.value,
|
|
2050
|
-
class:
|
|
2059
|
+
class: f.value,
|
|
2051
2060
|
style: {
|
|
2052
|
-
height: `${
|
|
2053
|
-
lineHeight: `${
|
|
2061
|
+
height: `${o.value}px`,
|
|
2062
|
+
lineHeight: `${o.value}px`,
|
|
2054
2063
|
width: u.value,
|
|
2055
2064
|
zIndex: x.value ? 100 : 101,
|
|
2056
2065
|
right: S.value
|
|
2057
2066
|
}
|
|
2058
|
-
}, na(
|
|
2059
|
-
default: () => [
|
|
2067
|
+
}, na(O = M()) ? O : {
|
|
2068
|
+
default: () => [O]
|
|
2060
2069
|
})]));
|
|
2061
2070
|
};
|
|
2062
2071
|
}
|
|
2063
|
-
}), aa = /* @__PURE__ */
|
|
2072
|
+
}), aa = /* @__PURE__ */ W({
|
|
2064
2073
|
name: "BaseProLayout",
|
|
2065
2074
|
inheritAttrs: !1,
|
|
2066
2075
|
components: {
|
|
2067
|
-
GlobalHeader:
|
|
2068
|
-
GlobalFooter:
|
|
2069
|
-
SiderMenuWrapper:
|
|
2076
|
+
GlobalHeader: Fe,
|
|
2077
|
+
GlobalFooter: $e,
|
|
2078
|
+
SiderMenuWrapper: Be
|
|
2070
2079
|
},
|
|
2071
2080
|
props: wt,
|
|
2072
2081
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2073
2082
|
setup(e, {
|
|
2074
2083
|
slots: t
|
|
2075
2084
|
}) {
|
|
2076
|
-
const a =
|
|
2085
|
+
const a = ge({
|
|
2077
2086
|
suffixCls: "basic-layout",
|
|
2078
2087
|
isPor: !0
|
|
2079
2088
|
}), {
|
|
2080
|
-
wrapSSR:
|
|
2081
|
-
hashId:
|
|
2082
|
-
} =
|
|
2083
|
-
token:
|
|
2084
|
-
} =
|
|
2089
|
+
wrapSSR: i,
|
|
2090
|
+
hashId: o
|
|
2091
|
+
} = ae("ProLayout", [Wn, Kn], a), d = on(), {
|
|
2092
|
+
token: g
|
|
2093
|
+
} = he(), m = b(() => {
|
|
2085
2094
|
var y;
|
|
2086
|
-
return (y =
|
|
2095
|
+
return (y = g == null ? void 0 : g.value) == null ? void 0 : y.colorPrimary;
|
|
2087
2096
|
});
|
|
2088
2097
|
Ft(() => {
|
|
2089
|
-
|
|
2098
|
+
m.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", m.value);
|
|
2090
2099
|
});
|
|
2091
|
-
const w = b(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = b(() => e.layout === "wide"),
|
|
2100
|
+
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), F = b(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = b(() => (d.value === "sm" || d.value === "xs") && !e.disableMobile && !p.value), r = rt({
|
|
2092
2101
|
position: "relative"
|
|
2093
2102
|
});
|
|
2094
2103
|
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (r.minHeight = 0);
|
|
2095
|
-
const I = (y,
|
|
2096
|
-
matchMenuKeys:
|
|
2104
|
+
const I = (y, f) => y.headerRender === !1 || y.pure ? null : n(Fe, G(y, {
|
|
2105
|
+
matchMenuKeys: f || []
|
|
2097
2106
|
}), null), k = b(() => ({
|
|
2098
2107
|
...e.breadcrumb,
|
|
2099
2108
|
itemRender: K(t, e, "breadcrumbRender")
|
|
2100
|
-
})), x = b(() =>
|
|
2109
|
+
})), x = b(() => R.value && e.selectedKeys ? vn(e.menuData, e.selectedKeys[0]) : []);
|
|
2101
2110
|
return Rn({
|
|
2102
|
-
getPrefixCls:
|
|
2103
|
-
...
|
|
2104
|
-
theme:
|
|
2111
|
+
getPrefixCls: ge,
|
|
2112
|
+
...se(Ie(e), ["layout", "waterMark", "menuData", "openKeys", "splitMenus", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps"].concat(Object.keys(pt))),
|
|
2113
|
+
theme: F.value,
|
|
2105
2114
|
hasContentWide: p,
|
|
2106
2115
|
isMobile: l,
|
|
2107
2116
|
siderWidth: h,
|
|
2108
2117
|
breadcrumb: k,
|
|
2109
2118
|
flatMenuData: x,
|
|
2110
2119
|
hasSide: w,
|
|
2111
|
-
flatMenu:
|
|
2120
|
+
flatMenu: R,
|
|
2112
2121
|
pageHeaderRender: b(() => K(t, e, "pageHeaderRender"))
|
|
2113
2122
|
}), () => {
|
|
2114
|
-
var
|
|
2115
|
-
const y = K(t, e, "collapsedButtonRender"),
|
|
2116
|
-
menuItemRender:
|
|
2117
|
-
subMenuItemRender:
|
|
2118
|
-
},
|
|
2123
|
+
var T;
|
|
2124
|
+
const y = K(t, e, "collapsedButtonRender"), f = 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"), _ = {
|
|
2125
|
+
menuItemRender: V,
|
|
2126
|
+
subMenuItemRender: Y
|
|
2127
|
+
}, E = b(() => I({
|
|
2119
2128
|
...e,
|
|
2120
|
-
...
|
|
2129
|
+
..._,
|
|
2121
2130
|
hasSiderMenu: w.value,
|
|
2122
2131
|
menuData: e.menuData,
|
|
2123
|
-
isMobile:
|
|
2132
|
+
isMobile: U(l),
|
|
2124
2133
|
rightContentRender: C,
|
|
2125
|
-
extraRightDropdownRender:
|
|
2126
|
-
headerTitleRender:
|
|
2127
|
-
headerContentRender:
|
|
2134
|
+
extraRightDropdownRender: O,
|
|
2135
|
+
headerTitleRender: P,
|
|
2136
|
+
headerContentRender: f,
|
|
2128
2137
|
headerRender: $,
|
|
2129
|
-
theme:
|
|
2130
|
-
}, e.matchMenuKeys)),
|
|
2131
|
-
[`${
|
|
2138
|
+
theme: F.value
|
|
2139
|
+
}, e.matchMenuKeys)), J = b(() => ({
|
|
2140
|
+
[`${o.value}`]: !0,
|
|
2132
2141
|
[`${a}`]: !0,
|
|
2133
2142
|
[`${a}-${e.layout}`]: !0
|
|
2134
|
-
})),
|
|
2143
|
+
})), c = b(() => p.value ? {
|
|
2135
2144
|
minWidth: `${e.wideWidth}px`
|
|
2136
|
-
} : void 0),
|
|
2145
|
+
} : void 0), v = b(() => p.value ? {
|
|
2137
2146
|
width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
|
|
2138
2147
|
paddingTop: `${e.headerHeight + 20}px`,
|
|
2139
2148
|
margin: p.value ? "0 auto" : void 0
|
|
2140
|
-
} : void 0),
|
|
2149
|
+
} : void 0), B = b(() => p.value ? {
|
|
2141
2150
|
minHeight: "835px"
|
|
2142
2151
|
} : {});
|
|
2143
|
-
return
|
|
2144
|
-
class:
|
|
2152
|
+
return i(n(Q, null, [e.pure ? (T = t.default) == null ? void 0 : T.call(t) : n("div", {
|
|
2153
|
+
class: J.value,
|
|
2154
|
+
style: c.value
|
|
2155
|
+
}, [n(fe, {
|
|
2145
2156
|
style: v.value
|
|
2146
|
-
}, [n(me, {
|
|
2147
|
-
style: B.value
|
|
2148
2157
|
}, {
|
|
2149
|
-
default: () => [n(
|
|
2158
|
+
default: () => [n(Be, G(je(e, ["pure", "theme"]), {
|
|
2150
2159
|
links: S,
|
|
2151
|
-
theme:
|
|
2160
|
+
theme: F.value,
|
|
2152
2161
|
isMobile: l.value,
|
|
2153
|
-
menuHeaderRender:
|
|
2162
|
+
menuHeaderRender: P,
|
|
2154
2163
|
menuContentRender: N,
|
|
2155
2164
|
menuExtraRender: H,
|
|
2156
|
-
menuFooterRender:
|
|
2165
|
+
menuFooterRender: D,
|
|
2157
2166
|
collapsedButtonRender: y
|
|
2158
|
-
}), null), n(
|
|
2167
|
+
}), null), n(fe, {
|
|
2159
2168
|
style: r
|
|
2160
2169
|
}, {
|
|
2161
|
-
default: () => [
|
|
2162
|
-
hashId:
|
|
2170
|
+
default: () => [E.value, n(Ee, G({
|
|
2171
|
+
hashId: o.value,
|
|
2163
2172
|
isMobile: l.value,
|
|
2164
2173
|
prefixCls: a,
|
|
2165
2174
|
collapsedWidth: e.collapsedWidth,
|
|
@@ -2169,27 +2178,27 @@ const {
|
|
|
2169
2178
|
isFixedMultiTab: e.fixedMultiTab,
|
|
2170
2179
|
siderWidth: e.siderWidth,
|
|
2171
2180
|
collapsed: e.collapsed,
|
|
2172
|
-
style: e.disableContentMargin ?
|
|
2181
|
+
style: e.disableContentMargin ? B.value : {
|
|
2173
2182
|
...e.contentStyle,
|
|
2174
|
-
...
|
|
2183
|
+
...B.value
|
|
2175
2184
|
}
|
|
2176
|
-
},
|
|
2185
|
+
}, se(e, ["onReloadPage", "onChangeTabs"])), {
|
|
2177
2186
|
default: () => {
|
|
2178
|
-
var
|
|
2179
|
-
return [(
|
|
2187
|
+
var z;
|
|
2188
|
+
return [(z = t.default) == null ? void 0 : z.call(t)];
|
|
2180
2189
|
}
|
|
2181
|
-
}), u === !1 ? null : u ? u(e) : n(
|
|
2182
|
-
copyright:
|
|
2190
|
+
}), u === !1 ? null : u ? u(e) : n($e, {
|
|
2191
|
+
copyright: M
|
|
2183
2192
|
}, null)]
|
|
2184
2193
|
})]
|
|
2185
2194
|
})])]));
|
|
2186
2195
|
};
|
|
2187
2196
|
}
|
|
2188
|
-
}), Oi = /* @__PURE__ */
|
|
2197
|
+
}), Oi = /* @__PURE__ */ W({
|
|
2189
2198
|
components: {
|
|
2190
|
-
GlobalHeader:
|
|
2191
|
-
GlobalFooter:
|
|
2192
|
-
SiderMenuWrapper:
|
|
2199
|
+
GlobalHeader: Fe,
|
|
2200
|
+
GlobalFooter: $e,
|
|
2201
|
+
SiderMenuWrapper: Be
|
|
2193
2202
|
},
|
|
2194
2203
|
props: wt,
|
|
2195
2204
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
@@ -2197,42 +2206,42 @@ const {
|
|
|
2197
2206
|
slots: t,
|
|
2198
2207
|
emit: a
|
|
2199
2208
|
}) {
|
|
2200
|
-
const
|
|
2209
|
+
const i = b(() => e.theme !== void 0 ? {
|
|
2201
2210
|
dark: e.theme === "realDark"
|
|
2202
|
-
} : {}),
|
|
2203
|
-
a("update:collapsed",
|
|
2204
|
-
}, d = (
|
|
2205
|
-
a("update:open-keys",
|
|
2206
|
-
},
|
|
2207
|
-
a("update:selected-keys",
|
|
2211
|
+
} : {}), o = (m) => {
|
|
2212
|
+
a("update:collapsed", m), a("collapse", m);
|
|
2213
|
+
}, d = (m) => {
|
|
2214
|
+
a("update:open-keys", m), a("openKeys", m);
|
|
2215
|
+
}, g = (m) => {
|
|
2216
|
+
a("update:selected-keys", m), a("select", m);
|
|
2208
2217
|
};
|
|
2209
|
-
return () => n(
|
|
2218
|
+
return () => n(Pe, {
|
|
2210
2219
|
theme: e.primaryColor ? {
|
|
2211
2220
|
token: {
|
|
2212
2221
|
colorPrimary: e.primaryColor
|
|
2213
2222
|
}
|
|
2214
2223
|
} : void 0
|
|
2215
2224
|
}, {
|
|
2216
|
-
default: () => [n(qt,
|
|
2225
|
+
default: () => [n(qt, G({
|
|
2217
2226
|
token: e.token
|
|
2218
|
-
},
|
|
2219
|
-
default: () => [n(aa,
|
|
2220
|
-
onSelect:
|
|
2227
|
+
}, i.value), {
|
|
2228
|
+
default: () => [n(aa, G(je(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
|
|
2229
|
+
onSelect: g,
|
|
2221
2230
|
onOpenKeys: d,
|
|
2222
|
-
onCollapse:
|
|
2231
|
+
onCollapse: o
|
|
2223
2232
|
}), t)]
|
|
2224
2233
|
})]
|
|
2225
2234
|
});
|
|
2226
2235
|
}
|
|
2227
|
-
}), It = (e, t, a) => e.map((
|
|
2236
|
+
}), It = (e, t, a) => e.map((i, o) => {
|
|
2228
2237
|
var d;
|
|
2229
|
-
return
|
|
2238
|
+
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
2239
|
}), Ri = (e) => {
|
|
2231
|
-
const t = e.find((
|
|
2240
|
+
const t = e.find((o) => o.path === "/"), a = {}, i = It((t == null ? void 0 : t.children) || [], a);
|
|
2232
2241
|
return {
|
|
2233
|
-
menuData:
|
|
2242
|
+
menuData: i,
|
|
2234
2243
|
breadcrumb: a,
|
|
2235
|
-
levelMenuData: en(
|
|
2244
|
+
levelMenuData: en(i)
|
|
2236
2245
|
};
|
|
2237
2246
|
}, Mt = [
|
|
2238
2247
|
{
|
|
@@ -2438,17 +2447,17 @@ const {
|
|
|
2438
2447
|
}
|
|
2439
2448
|
}
|
|
2440
2449
|
}
|
|
2441
|
-
}), et = /* @__PURE__ */
|
|
2450
|
+
}), et = /* @__PURE__ */ W({
|
|
2442
2451
|
name: "BlockCheckbox",
|
|
2443
2452
|
props: {
|
|
2444
|
-
value:
|
|
2453
|
+
value: L.string,
|
|
2445
2454
|
list: {
|
|
2446
2455
|
type: Array,
|
|
2447
2456
|
default: () => []
|
|
2448
2457
|
},
|
|
2449
|
-
configType:
|
|
2450
|
-
prefixCls:
|
|
2451
|
-
hashId:
|
|
2458
|
+
configType: L.string,
|
|
2459
|
+
prefixCls: L.string,
|
|
2460
|
+
hashId: L.string,
|
|
2452
2461
|
onChange: Function
|
|
2453
2462
|
},
|
|
2454
2463
|
setup(e) {
|
|
@@ -2456,15 +2465,15 @@ const {
|
|
|
2456
2465
|
const t = `${e.prefixCls}-block-checkbox`;
|
|
2457
2466
|
return n("div", {
|
|
2458
2467
|
class: [t, e.hashId]
|
|
2459
|
-
}, [e.list.map((a) => n(
|
|
2468
|
+
}, [e.list.map((a) => n(Me, {
|
|
2460
2469
|
title: a.title,
|
|
2461
2470
|
key: a.key
|
|
2462
2471
|
}, {
|
|
2463
2472
|
default: () => [n("div", {
|
|
2464
2473
|
class: ct(e.hashId, `${t}-item`, `${t}-item-${a.key}`, `${t}-${e.configType}-item`),
|
|
2465
2474
|
onClick: () => {
|
|
2466
|
-
var
|
|
2467
|
-
return (
|
|
2475
|
+
var i;
|
|
2476
|
+
return (i = e.onChange) == null ? void 0 : i.call(e, a.key);
|
|
2468
2477
|
}
|
|
2469
2478
|
}, [a.key === "wide" && n("div", {
|
|
2470
2479
|
class: [`${t}-item-${a.key}-content`, e.hashId]
|
|
@@ -2479,7 +2488,7 @@ const {
|
|
|
2479
2488
|
}))]);
|
|
2480
2489
|
};
|
|
2481
2490
|
}
|
|
2482
|
-
}), la = /* @__PURE__ */
|
|
2491
|
+
}), la = /* @__PURE__ */ W({
|
|
2483
2492
|
name: "ThemeColor",
|
|
2484
2493
|
inheritAttrs: !1,
|
|
2485
2494
|
props: {
|
|
@@ -2488,60 +2497,60 @@ const {
|
|
|
2488
2497
|
type: Array,
|
|
2489
2498
|
default: () => []
|
|
2490
2499
|
},
|
|
2491
|
-
prefixCls:
|
|
2492
|
-
hashId:
|
|
2500
|
+
prefixCls: L.string,
|
|
2501
|
+
hashId: L.string,
|
|
2493
2502
|
onChange: Function
|
|
2494
2503
|
},
|
|
2495
2504
|
setup(e) {
|
|
2496
2505
|
return () => {
|
|
2497
2506
|
var a;
|
|
2498
2507
|
const t = `${e.prefixCls}-theme-color`;
|
|
2499
|
-
return n(
|
|
2508
|
+
return n(Q, null, [n("div", {
|
|
2500
2509
|
class: `${t} ${e.hashId}`.trim()
|
|
2501
2510
|
}, [(a = e.colorList) == null ? void 0 : a.map(({
|
|
2502
|
-
key: o,
|
|
2503
|
-
color: i,
|
|
2504
|
-
title: d
|
|
2505
|
-
}) => o ? n(Ie, {
|
|
2506
2511
|
key: i,
|
|
2512
|
+
color: o,
|
|
2513
|
+
title: d
|
|
2514
|
+
}) => i ? n(Me, {
|
|
2515
|
+
key: o,
|
|
2507
2516
|
title: d
|
|
2508
2517
|
}, {
|
|
2509
2518
|
default: () => {
|
|
2510
|
-
var
|
|
2519
|
+
var g, m;
|
|
2511
2520
|
return [n("div", {
|
|
2512
|
-
class: [`${t}-block ${e.hashId}`.trim(), ((
|
|
2521
|
+
class: [`${t}-block ${e.hashId}`.trim(), ((g = e.settingValue) == null ? void 0 : g.primaryColor) === o ? `${t}-block-checked` : ""],
|
|
2513
2522
|
style: {
|
|
2514
|
-
backgroundColor:
|
|
2523
|
+
backgroundColor: o
|
|
2515
2524
|
},
|
|
2516
|
-
onClick: () => e.onChange && e.onChange(
|
|
2517
|
-
}, [((
|
|
2525
|
+
onClick: () => e.onChange && e.onChange(o)
|
|
2526
|
+
}, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === o && n(ut, null, null)])];
|
|
2518
2527
|
}
|
|
2519
2528
|
}) : null)])]);
|
|
2520
2529
|
};
|
|
2521
2530
|
}
|
|
2522
|
-
}),
|
|
2531
|
+
}), be = /* @__PURE__ */ W({
|
|
2523
2532
|
name: "RegionalChange",
|
|
2524
2533
|
props: {
|
|
2525
|
-
label:
|
|
2526
|
-
value:
|
|
2527
|
-
prefixCls:
|
|
2534
|
+
label: L.string,
|
|
2535
|
+
value: L.bool,
|
|
2536
|
+
prefixCls: L.string,
|
|
2528
2537
|
valueKey: String,
|
|
2529
|
-
hashId:
|
|
2530
|
-
disabled:
|
|
2538
|
+
hashId: L.string,
|
|
2539
|
+
disabled: L.bool,
|
|
2531
2540
|
onChange: Function
|
|
2532
2541
|
},
|
|
2533
2542
|
setup(e) {
|
|
2534
|
-
return () => n(
|
|
2543
|
+
return () => n(le, {
|
|
2535
2544
|
class: `${e.prefixCls}-list ${e.hashId}`.trim(),
|
|
2536
2545
|
split: !1,
|
|
2537
2546
|
size: "small",
|
|
2538
2547
|
renderItem: ({
|
|
2539
2548
|
item: t
|
|
2540
|
-
}) => n(
|
|
2549
|
+
}) => n(Me, {
|
|
2541
2550
|
title: t.disabled ? t.disabledReason : "",
|
|
2542
2551
|
placement: "left"
|
|
2543
2552
|
}, {
|
|
2544
|
-
default: () => [n(
|
|
2553
|
+
default: () => [n(le.Item, {
|
|
2545
2554
|
actions: [t.action]
|
|
2546
2555
|
}, {
|
|
2547
2556
|
default: () => [n("span", {
|
|
@@ -2596,9 +2605,9 @@ const {
|
|
|
2596
2605
|
}
|
|
2597
2606
|
});
|
|
2598
2607
|
function sa(e) {
|
|
2599
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2608
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
|
|
2600
2609
|
}
|
|
2601
|
-
const da = /* @__PURE__ */
|
|
2610
|
+
const da = /* @__PURE__ */ W({
|
|
2602
2611
|
name: "ThemeEditor",
|
|
2603
2612
|
props: {
|
|
2604
2613
|
settingValue: Object,
|
|
@@ -2607,19 +2616,19 @@ const da = /* @__PURE__ */ j({
|
|
|
2607
2616
|
setup(e) {
|
|
2608
2617
|
const {
|
|
2609
2618
|
getPrefixCls: t
|
|
2610
|
-
} = te(), [a,
|
|
2619
|
+
} = te(), [a, i] = xe("header"), o = t({
|
|
2611
2620
|
suffixCls: "theme-editor",
|
|
2612
2621
|
isPor: !0
|
|
2613
2622
|
}), {
|
|
2614
2623
|
wrapSSR: d,
|
|
2615
|
-
hashId:
|
|
2616
|
-
} =
|
|
2617
|
-
token:
|
|
2618
|
-
} =
|
|
2624
|
+
hashId: g
|
|
2625
|
+
} = ae("ProThemeEditor", [ra], o), {
|
|
2626
|
+
token: m
|
|
2627
|
+
} = he(), w = b(() => {
|
|
2619
2628
|
var l;
|
|
2620
|
-
return (l =
|
|
2629
|
+
return (l = m.value) == null ? void 0 : l.layout;
|
|
2621
2630
|
}), p = b(() => {
|
|
2622
|
-
var l, r, I, k, x, y,
|
|
2631
|
+
var l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B;
|
|
2623
2632
|
return [{
|
|
2624
2633
|
key: "colorBgMenu",
|
|
2625
2634
|
title: "全部背景",
|
|
@@ -2639,7 +2648,7 @@ const da = /* @__PURE__ */ j({
|
|
|
2639
2648
|
}, {
|
|
2640
2649
|
key: "colorBgMenuItemSelected",
|
|
2641
2650
|
title: "菜单选中背景",
|
|
2642
|
-
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["mix", "wide"].includes((
|
|
2651
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["mix", "wide"].includes((f = e.settingValue) == null ? void 0 : f.layout)
|
|
2643
2652
|
}, {
|
|
2644
2653
|
key: "colorDarkBgMenuItemSelected",
|
|
2645
2654
|
title: "菜单选中背景",
|
|
@@ -2647,30 +2656,30 @@ const da = /* @__PURE__ */ j({
|
|
|
2647
2656
|
}, {
|
|
2648
2657
|
key: "colorTextMenu",
|
|
2649
2658
|
title: "菜单文字颜色",
|
|
2650
|
-
disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ["mix", "wide"].includes((
|
|
2659
|
+
disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ["mix", "wide"].includes((M = e.settingValue) == null ? void 0 : M.layout)
|
|
2651
2660
|
}, {
|
|
2652
2661
|
key: "colorDarkTextMenu",
|
|
2653
2662
|
title: "菜单文字颜色",
|
|
2654
|
-
disabled: ((
|
|
2663
|
+
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
2664
|
}, {
|
|
2656
2665
|
key: "colorTextMenuHover",
|
|
2657
2666
|
title: "菜单文字移入颜色",
|
|
2658
|
-
disabled: ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((
|
|
2667
|
+
disabled: ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
|
|
2659
2668
|
}, {
|
|
2660
2669
|
key: "colorDarkTextMenuHover",
|
|
2661
2670
|
title: "菜单文字移入颜色",
|
|
2662
|
-
disabled: ((
|
|
2671
|
+
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
2672
|
}, {
|
|
2664
2673
|
key: "colorTextMenuSelected",
|
|
2665
2674
|
title: "菜单文字选中颜色",
|
|
2666
|
-
disabled: ((
|
|
2675
|
+
disabled: ((E = e.settingValue) == null ? void 0 : E.theme) === "dark" && ["mix", "wide"].includes((J = e.settingValue) == null ? void 0 : J.layout)
|
|
2667
2676
|
}, {
|
|
2668
2677
|
key: "colorDarkTextMenuSelected",
|
|
2669
2678
|
title: "菜单文字选中颜色",
|
|
2670
|
-
disabled: ((
|
|
2679
|
+
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
2680
|
}];
|
|
2672
|
-
}),
|
|
2673
|
-
var l, r, I, k, x, y,
|
|
2681
|
+
}), R = b(() => {
|
|
2682
|
+
var l, r, I, k, x, y, f, C, $, u, S, M, O, P, H, N, D, V, Y, _, E, J, c, v, B, T, z, q, X, ne, ee, Xe;
|
|
2674
2683
|
return [{
|
|
2675
2684
|
key: "colorBgMenu",
|
|
2676
2685
|
title: "全部背景",
|
|
@@ -2682,7 +2691,7 @@ const da = /* @__PURE__ */ j({
|
|
|
2682
2691
|
}, {
|
|
2683
2692
|
key: "colorSubItemBg",
|
|
2684
2693
|
title: "子菜单背景",
|
|
2685
|
-
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["side", "simple"].includes((
|
|
2694
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["side", "simple"].includes((f = e.settingValue) == null ? void 0 : f.layout)
|
|
2686
2695
|
}, {
|
|
2687
2696
|
key: "colorDarkSubItemBg",
|
|
2688
2697
|
title: "子菜单背景",
|
|
@@ -2690,41 +2699,41 @@ const da = /* @__PURE__ */ j({
|
|
|
2690
2699
|
}, {
|
|
2691
2700
|
key: "colorBgMenuItemHover",
|
|
2692
2701
|
title: "菜单移入背景",
|
|
2693
|
-
disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ((
|
|
2702
|
+
disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ((M = e.settingValue) == null ? void 0 : M.layout) !== "mix"
|
|
2694
2703
|
}, {
|
|
2695
2704
|
key: "colorBgMenuItemSelected",
|
|
2696
2705
|
title: "菜单选中背景",
|
|
2697
|
-
disabled: ((
|
|
2706
|
+
disabled: ((O = e.settingValue) == null ? void 0 : O.theme) === "dark" && ((P = e.settingValue) == null ? void 0 : P.layout) !== "mix"
|
|
2698
2707
|
}, {
|
|
2699
2708
|
key: "colorDarkBgMenuItemSelected",
|
|
2700
2709
|
title: "菜单选中背景",
|
|
2701
|
-
disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "light" || ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((
|
|
2710
|
+
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
2711
|
}, {
|
|
2703
2712
|
key: "colorTextMenu",
|
|
2704
2713
|
title: "菜单文字颜色",
|
|
2705
|
-
disabled: ((
|
|
2714
|
+
disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "dark" && ((Y = e.settingValue) == null ? void 0 : Y.layout) !== "mix"
|
|
2706
2715
|
}, {
|
|
2707
2716
|
key: "colorDarkTextMenu",
|
|
2708
2717
|
title: "菜单文字颜色",
|
|
2709
|
-
disabled: ((
|
|
2718
|
+
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
2719
|
}, {
|
|
2711
2720
|
key: "colorTextMenuHover",
|
|
2712
2721
|
title: "菜单文字移入颜色",
|
|
2713
|
-
disabled: ((
|
|
2722
|
+
disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ((v = e.settingValue) == null ? void 0 : v.layout) !== "mix"
|
|
2714
2723
|
}, {
|
|
2715
2724
|
key: "colorDarkTextMenuHover",
|
|
2716
2725
|
title: "菜单文字移入颜色",
|
|
2717
|
-
disabled: ((
|
|
2726
|
+
disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "light" || ((T = e.settingValue) == null ? void 0 : T.theme) === "dark" && ["mix", "wide"].includes((z = e.settingValue) == null ? void 0 : z.layout)
|
|
2718
2727
|
}, {
|
|
2719
2728
|
key: "colorTextMenuSelected",
|
|
2720
2729
|
title: "菜单文字选中颜色",
|
|
2721
|
-
disabled: ((
|
|
2730
|
+
disabled: ((q = e.settingValue) == null ? void 0 : q.theme) === "dark" && ((X = e.settingValue) == null ? void 0 : X.layout) !== "mix"
|
|
2722
2731
|
}, {
|
|
2723
2732
|
key: "colorDarkTextMenuSelected",
|
|
2724
2733
|
title: "菜单文字选中颜色",
|
|
2725
|
-
disabled: ((
|
|
2734
|
+
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
2735
|
}];
|
|
2727
|
-
}), h = b(() => a.value === "header" ? p.value : a.value === "sider" ?
|
|
2736
|
+
}), h = b(() => a.value === "header" ? p.value : a.value === "sider" ? R.value : []), F = (l) => {
|
|
2728
2737
|
var r, I;
|
|
2729
2738
|
return (I = (r = w.value) == null ? void 0 : r[a.value]) == null ? void 0 : I[l];
|
|
2730
2739
|
};
|
|
@@ -2732,11 +2741,11 @@ const da = /* @__PURE__ */ j({
|
|
|
2732
2741
|
var r, I, k;
|
|
2733
2742
|
let l;
|
|
2734
2743
|
return d(n("div", {
|
|
2735
|
-
class: [
|
|
2744
|
+
class: [o, g.value]
|
|
2736
2745
|
}, [n("h3", {
|
|
2737
|
-
class: [`${
|
|
2738
|
-
}, [
|
|
2739
|
-
class: [`${
|
|
2746
|
+
class: [`${o}-title`, g.value]
|
|
2747
|
+
}, [oe("主题编辑器"), n("div", {
|
|
2748
|
+
class: [`${o}-sub-title`, g.value]
|
|
2740
2749
|
}, [n("span", null, [(r = Mt.find((x) => {
|
|
2741
2750
|
var y;
|
|
2742
2751
|
return x.key === ((y = e.settingValue) == null ? void 0 : y.theme);
|
|
@@ -2744,18 +2753,18 @@ const da = /* @__PURE__ */ j({
|
|
|
2744
2753
|
style: {
|
|
2745
2754
|
marginInline: "8px"
|
|
2746
2755
|
}
|
|
2747
|
-
}, [
|
|
2756
|
+
}, [oe("/")]), n("span", null, [(I = Ot.find((x) => {
|
|
2748
2757
|
var y;
|
|
2749
2758
|
return x.key === ((y = e.settingValue) == null ? void 0 : y.layout);
|
|
2750
2759
|
})) == null ? void 0 : I.title])])]), n("div", {
|
|
2751
|
-
class: [`${
|
|
2752
|
-
}, [n(
|
|
2753
|
-
class: `${
|
|
2760
|
+
class: [`${o}-content`, g.value]
|
|
2761
|
+
}, [n(le, {
|
|
2762
|
+
class: `${o}-list ${g.value}`.trim(),
|
|
2754
2763
|
split: !1,
|
|
2755
2764
|
size: "small",
|
|
2756
2765
|
renderItem: ({
|
|
2757
2766
|
item: x
|
|
2758
|
-
}) => n(
|
|
2767
|
+
}) => n(le.Item, {
|
|
2759
2768
|
actions: [x.action]
|
|
2760
2769
|
}, {
|
|
2761
2770
|
default: () => [n("span", {
|
|
@@ -2774,20 +2783,20 @@ const da = /* @__PURE__ */ j({
|
|
|
2774
2783
|
onConfirm: (x) => e.onChange && e.onChange(x, "primaryColor")
|
|
2775
2784
|
}, null)
|
|
2776
2785
|
}]
|
|
2777
|
-
}, null), n(
|
|
2786
|
+
}, null), n(Le, {
|
|
2778
2787
|
activeKey: a.value,
|
|
2779
|
-
onChange:
|
|
2788
|
+
onChange: i
|
|
2780
2789
|
}, sa(l = oa.map((x) => n(Nt, {
|
|
2781
2790
|
key: x.key,
|
|
2782
2791
|
tab: x.title
|
|
2783
2792
|
}, {
|
|
2784
|
-
default: () => [n(
|
|
2785
|
-
class: `${
|
|
2793
|
+
default: () => [n(le, {
|
|
2794
|
+
class: `${o}-list ${g.value}`.trim(),
|
|
2786
2795
|
split: !1,
|
|
2787
2796
|
size: "small",
|
|
2788
2797
|
renderItem: ({
|
|
2789
2798
|
item: y
|
|
2790
|
-
}) => n(
|
|
2799
|
+
}) => n(le.Item, {
|
|
2791
2800
|
actions: [y.action]
|
|
2792
2801
|
}, {
|
|
2793
2802
|
default: () => [n("span", {
|
|
@@ -2799,11 +2808,11 @@ const da = /* @__PURE__ */ j({
|
|
|
2799
2808
|
dataSource: h.value.filter((y) => !y.disabled).map((y) => ({
|
|
2800
2809
|
...y,
|
|
2801
2810
|
action: n(Ge, {
|
|
2802
|
-
value:
|
|
2811
|
+
value: F(y.key),
|
|
2803
2812
|
actions: ["confirm"],
|
|
2804
2813
|
modes: ["rgb"],
|
|
2805
2814
|
size: "small",
|
|
2806
|
-
onConfirm: (
|
|
2815
|
+
onConfirm: (f) => e.onChange && e.onChange(f, a.value, y.key)
|
|
2807
2816
|
}, null)
|
|
2808
2817
|
}))
|
|
2809
2818
|
}, null)]
|
|
@@ -2844,88 +2853,88 @@ const da = /* @__PURE__ */ j({
|
|
|
2844
2853
|
}
|
|
2845
2854
|
});
|
|
2846
2855
|
function tt(e) {
|
|
2847
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2856
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !re(e);
|
|
2848
2857
|
}
|
|
2849
2858
|
const {
|
|
2850
2859
|
preset: nt
|
|
2851
|
-
} =
|
|
2860
|
+
} = We, ca = /* @__PURE__ */ W({
|
|
2852
2861
|
name: "OthersChange",
|
|
2853
2862
|
props: {
|
|
2854
|
-
prefixCls:
|
|
2863
|
+
prefixCls: L.string,
|
|
2855
2864
|
settingValue: Object,
|
|
2856
2865
|
onChange: Function
|
|
2857
2866
|
},
|
|
2858
2867
|
setup(e) {
|
|
2859
|
-
const t =
|
|
2868
|
+
const t = ge({
|
|
2860
2869
|
suffixCls: "others",
|
|
2861
2870
|
isPor: !0
|
|
2862
2871
|
}), {
|
|
2863
2872
|
wrapSSR: a,
|
|
2864
|
-
hashId:
|
|
2865
|
-
} =
|
|
2873
|
+
hashId: i
|
|
2874
|
+
} = ae("SettingsDrawOthers", [ua], t);
|
|
2866
2875
|
return () => {
|
|
2867
|
-
var d,
|
|
2868
|
-
let
|
|
2876
|
+
var d, g, m, w, p, R, h, F, l, r, I, k, x, y;
|
|
2877
|
+
let o;
|
|
2869
2878
|
return a(n("div", {
|
|
2870
|
-
class: [t,
|
|
2879
|
+
class: [t, i.value]
|
|
2871
2880
|
}, [n("h3", {
|
|
2872
|
-
class: [`${t}-title`,
|
|
2873
|
-
}, [
|
|
2874
|
-
class: `${t}-list ${
|
|
2881
|
+
class: [`${t}-title`, i.value]
|
|
2882
|
+
}, [oe("页面动画设置")]), n(le, {
|
|
2883
|
+
class: `${t}-list ${i.value}`.trim(),
|
|
2875
2884
|
split: !1,
|
|
2876
2885
|
size: "small",
|
|
2877
2886
|
renderItem: ({
|
|
2878
|
-
item:
|
|
2879
|
-
}) => n(
|
|
2880
|
-
title:
|
|
2887
|
+
item: f
|
|
2888
|
+
}) => n(Me, {
|
|
2889
|
+
title: f.disabled ? f.disabledReason : "",
|
|
2881
2890
|
placement: "left"
|
|
2882
2891
|
}, {
|
|
2883
|
-
default: () => [n(
|
|
2884
|
-
actions: [
|
|
2892
|
+
default: () => [n(le.Item, {
|
|
2893
|
+
actions: [f.action]
|
|
2885
2894
|
}, {
|
|
2886
2895
|
default: () => [n("span", {
|
|
2887
2896
|
style: {
|
|
2888
|
-
opacity:
|
|
2897
|
+
opacity: f.disabled ? 0.5 : 1
|
|
2889
2898
|
}
|
|
2890
|
-
}, [
|
|
2899
|
+
}, [f.title])]
|
|
2891
2900
|
})]
|
|
2892
2901
|
}),
|
|
2893
2902
|
dataSource: [{
|
|
2894
2903
|
title: "禁用动画",
|
|
2895
2904
|
action: n(st, {
|
|
2896
|
-
checked: !((
|
|
2905
|
+
checked: !((g = (d = e.settingValue) == null ? void 0 : d.animate) != null && g.disabled),
|
|
2897
2906
|
size: "small",
|
|
2898
|
-
onChange: (
|
|
2907
|
+
onChange: (f) => {
|
|
2899
2908
|
var C;
|
|
2900
|
-
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "disabled", !
|
|
2909
|
+
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "disabled", !f);
|
|
2901
2910
|
}
|
|
2902
2911
|
}, null)
|
|
2903
2912
|
}, {
|
|
2904
2913
|
title: "动画效果",
|
|
2905
|
-
disabled: (w = (
|
|
2906
|
-
action: n(
|
|
2907
|
-
value: (
|
|
2914
|
+
disabled: (w = (m = e.settingValue) == null ? void 0 : m.animate) == null ? void 0 : w.disabled,
|
|
2915
|
+
action: n(ye, {
|
|
2916
|
+
value: (R = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : R.name,
|
|
2908
2917
|
style: {
|
|
2909
2918
|
width: "100px"
|
|
2910
2919
|
},
|
|
2911
2920
|
size: "small",
|
|
2912
|
-
disabled: (
|
|
2913
|
-
getPopupContainer: (
|
|
2914
|
-
onChange: (
|
|
2921
|
+
disabled: (F = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : F.disabled,
|
|
2922
|
+
getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
|
|
2923
|
+
onChange: (f) => {
|
|
2915
2924
|
var C;
|
|
2916
|
-
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "name",
|
|
2925
|
+
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "name", f);
|
|
2917
2926
|
}
|
|
2918
|
-
}, tt(
|
|
2919
|
-
value:
|
|
2927
|
+
}, tt(o = nt.map((f) => n(ye.Option, {
|
|
2928
|
+
value: f.name
|
|
2920
2929
|
}, {
|
|
2921
|
-
default: () => [
|
|
2922
|
-
}))) ?
|
|
2923
|
-
default: () => [
|
|
2930
|
+
default: () => [f.alias]
|
|
2931
|
+
}))) ? o : {
|
|
2932
|
+
default: () => [o]
|
|
2924
2933
|
})
|
|
2925
2934
|
}, {
|
|
2926
2935
|
title: "动画方向",
|
|
2927
2936
|
disabled: (r = (l = e.settingValue) == null ? void 0 : l.animate) == null ? void 0 : r.disabled,
|
|
2928
|
-
action: n(
|
|
2937
|
+
action: n(ye, {
|
|
2929
2938
|
value: (k = (I = e.settingValue) == null ? void 0 : I.animate) == null ? void 0 : k.direction,
|
|
2930
2939
|
style: {
|
|
2931
2940
|
width: "100px"
|
|
@@ -2935,18 +2944,18 @@ const {
|
|
|
2935
2944
|
minWidth: "120px"
|
|
2936
2945
|
},
|
|
2937
2946
|
disabled: (y = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : y.disabled,
|
|
2938
|
-
getPopupContainer: (
|
|
2939
|
-
onChange: (
|
|
2947
|
+
getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
|
|
2948
|
+
onChange: (f) => {
|
|
2940
2949
|
var C;
|
|
2941
|
-
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "direction",
|
|
2950
|
+
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "direction", f);
|
|
2942
2951
|
}
|
|
2943
2952
|
}, {
|
|
2944
2953
|
default: () => {
|
|
2945
|
-
var
|
|
2946
|
-
return [(
|
|
2954
|
+
var f;
|
|
2955
|
+
return [(f = nt.find((C) => {
|
|
2947
2956
|
var $, u;
|
|
2948
2957
|
return C.name === ((u = ($ = e.settingValue) == null ? void 0 : $.animate) == null ? void 0 : u.name);
|
|
2949
|
-
})) == null ? void 0 :
|
|
2958
|
+
})) == null ? void 0 : f.directions.map((C) => n(ye.Option, {
|
|
2950
2959
|
value: C
|
|
2951
2960
|
}, tt(C) ? C : {
|
|
2952
2961
|
default: () => [C]
|
|
@@ -2959,7 +2968,7 @@ const {
|
|
|
2959
2968
|
}
|
|
2960
2969
|
}), {
|
|
2961
2970
|
preset: ma
|
|
2962
|
-
} =
|
|
2971
|
+
} = We, Te = Object.keys(j).filter((e) => e !== "title"), at = {
|
|
2963
2972
|
color: "#fff",
|
|
2964
2973
|
fontSize: 20
|
|
2965
2974
|
}, fa = [{
|
|
@@ -2978,9 +2987,9 @@ const {
|
|
|
2978
2987
|
label: "fixedMultiTab",
|
|
2979
2988
|
title: "固定多标签"
|
|
2980
2989
|
}], ot = (e) => nn() ? {
|
|
2981
|
-
...
|
|
2990
|
+
...se(j, Te),
|
|
2982
2991
|
...e || {}
|
|
2983
|
-
} :
|
|
2992
|
+
} : Ve(j), pe = (e, {
|
|
2984
2993
|
slots: t
|
|
2985
2994
|
}) => {
|
|
2986
2995
|
var a;
|
|
@@ -2991,7 +3000,7 @@ const {
|
|
|
2991
3000
|
}, [n("h3", {
|
|
2992
3001
|
class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
|
|
2993
3002
|
}, [e.title]), (a = t.default) == null ? void 0 : a.call(t)]);
|
|
2994
|
-
}, ki = /* @__PURE__ */
|
|
3003
|
+
}, ki = /* @__PURE__ */ W({
|
|
2995
3004
|
name: "SettingDrawer",
|
|
2996
3005
|
props: {
|
|
2997
3006
|
themeOnly: Boolean,
|
|
@@ -3017,44 +3026,44 @@ const {
|
|
|
3017
3026
|
suffixCls: "setting-drawer",
|
|
3018
3027
|
isPor: !0
|
|
3019
3028
|
}), {
|
|
3020
|
-
wrapSSR:
|
|
3021
|
-
hashId:
|
|
3022
|
-
} =
|
|
3023
|
-
value:
|
|
3029
|
+
wrapSSR: i,
|
|
3030
|
+
hashId: o
|
|
3031
|
+
} = ae("ProSettingDraw", [ia], a), d = ke(!1), [g, m] = xe(!1), [w, p] = xe(!1), [R, h] = xe(!1), F = b(() => ot(se(e.settings, Te))), [l, r] = ln(() => ot(se(e.settings, Te)), {
|
|
3032
|
+
value: F,
|
|
3024
3033
|
onChange: e.onChange
|
|
3025
|
-
}), I = b(() => e.colorList && tn(e.colorList) ? e.colorList : []), k = b(() => wn(
|
|
3034
|
+
}), I = b(() => e.colorList && tn(e.colorList) ? e.colorList : []), k = b(() => wn(U(l))), {
|
|
3026
3035
|
copy: x,
|
|
3027
3036
|
copied: y,
|
|
3028
|
-
isSupported:
|
|
3037
|
+
isSupported: f
|
|
3029
3038
|
} = sn();
|
|
3030
|
-
|
|
3039
|
+
me(g, () => {
|
|
3031
3040
|
d.value || (d.value = !0);
|
|
3032
3041
|
});
|
|
3033
|
-
const C = (u, S,
|
|
3042
|
+
const C = (u, S, M) => {
|
|
3034
3043
|
var H, N;
|
|
3035
|
-
const
|
|
3036
|
-
if (
|
|
3037
|
-
|
|
3044
|
+
const O = ["header", "sider"], P = {};
|
|
3045
|
+
if (M && O.includes(u)) {
|
|
3046
|
+
P[u] = {}, P[u][M] = S, e.onChangeLayout && e.onChangeLayout(se(P, O));
|
|
3038
3047
|
return;
|
|
3039
3048
|
} else
|
|
3040
|
-
u === "animate" ? (
|
|
3049
|
+
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;
|
|
3041
3050
|
if (u === "colorWeak") {
|
|
3042
|
-
const
|
|
3043
|
-
|
|
3051
|
+
const D = document.querySelector("body");
|
|
3052
|
+
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
3053
|
}
|
|
3045
|
-
r(an(
|
|
3046
|
-
...Cn(
|
|
3054
|
+
r(an(U(l), {
|
|
3055
|
+
...Cn(je(P, O))
|
|
3047
3056
|
}));
|
|
3048
3057
|
}, $ = () => {
|
|
3049
|
-
|
|
3058
|
+
f.value && x(JSON.stringify(U(l)));
|
|
3050
3059
|
};
|
|
3051
|
-
return
|
|
3060
|
+
return me(y, (u) => {
|
|
3052
3061
|
u && zt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
3053
|
-
}), () =>
|
|
3062
|
+
}), () => i(n(ve, {
|
|
3054
3063
|
width: 300,
|
|
3055
3064
|
closable: !1,
|
|
3056
|
-
open:
|
|
3057
|
-
rootClassName: `${a} ${
|
|
3065
|
+
open: g.value,
|
|
3066
|
+
rootClassName: `${a} ${o.value} ${g.value && `${a}-show`} ${!d.value && `${a}-trantion-none`}`,
|
|
3058
3067
|
placement: "right",
|
|
3059
3068
|
rootStyle: {
|
|
3060
3069
|
zIndex: 999
|
|
@@ -3062,28 +3071,28 @@ const {
|
|
|
3062
3071
|
bodyStyle: {
|
|
3063
3072
|
padding: 0
|
|
3064
3073
|
},
|
|
3065
|
-
onClose: () =>
|
|
3074
|
+
onClose: () => m(!1),
|
|
3066
3075
|
handle: n("div", {
|
|
3067
|
-
class: [`${a}-handle`,
|
|
3068
|
-
onClick: () =>
|
|
3069
|
-
}, [
|
|
3076
|
+
class: [`${a}-handle`, o.value],
|
|
3077
|
+
onClick: () => m(!g.value)
|
|
3078
|
+
}, [g.value ? n(dt, {
|
|
3070
3079
|
style: at
|
|
3071
3080
|
}, null) : n(Yt, {
|
|
3072
3081
|
style: at
|
|
3073
3082
|
}, null)])
|
|
3074
3083
|
}, {
|
|
3075
3084
|
default: () => [n("div", {
|
|
3076
|
-
class: [`${a}-wrapper`,
|
|
3085
|
+
class: [`${a}-wrapper`, o.value]
|
|
3077
3086
|
}, [n(dn, null, {
|
|
3078
3087
|
default: () => [n("div", {
|
|
3079
|
-
class: [`${a}-content`,
|
|
3080
|
-
}, [n(
|
|
3088
|
+
class: [`${a}-content`, o.value]
|
|
3089
|
+
}, [n(pe, {
|
|
3081
3090
|
prefixCls: a,
|
|
3082
|
-
hashId:
|
|
3091
|
+
hashId: o.value,
|
|
3083
3092
|
title: "整体风格设置"
|
|
3084
3093
|
}, {
|
|
3085
3094
|
default: () => [n(et, {
|
|
3086
|
-
hashId:
|
|
3095
|
+
hashId: o.value,
|
|
3087
3096
|
prefixCls: a,
|
|
3088
3097
|
list: Mt,
|
|
3089
3098
|
value: l.value.theme,
|
|
@@ -3091,33 +3100,33 @@ const {
|
|
|
3091
3100
|
key: "navTheme",
|
|
3092
3101
|
onChange: (u) => C("theme", u)
|
|
3093
3102
|
}, null)]
|
|
3094
|
-
}), n(
|
|
3095
|
-
hashId:
|
|
3096
|
-
title: n("span", null, [
|
|
3103
|
+
}), n(pe, {
|
|
3104
|
+
hashId: o.value,
|
|
3105
|
+
title: n("span", null, [oe("主题色 "), n("a", {
|
|
3097
3106
|
style: {
|
|
3098
3107
|
fontSize: "12px"
|
|
3099
3108
|
},
|
|
3100
3109
|
onClick: () => p(!0)
|
|
3101
|
-
}, [
|
|
3110
|
+
}, [oe("更多配置")])]),
|
|
3102
3111
|
prefixCls: a
|
|
3103
3112
|
}, {
|
|
3104
3113
|
default: () => [n(la, {
|
|
3105
|
-
hashId:
|
|
3114
|
+
hashId: o.value,
|
|
3106
3115
|
prefixCls: a,
|
|
3107
3116
|
colorList: I.value,
|
|
3108
3117
|
settingValue: l.value,
|
|
3109
3118
|
onChange: (u, S) => C(S || "primaryColor", u)
|
|
3110
3119
|
}, null)]
|
|
3111
|
-
}), !e.themeOnly && n(
|
|
3112
|
-
hashId:
|
|
3120
|
+
}), !e.themeOnly && n(Q, null, [n(Re, null, null), n(pe, {
|
|
3121
|
+
hashId: o.value,
|
|
3113
3122
|
prefixCls: a,
|
|
3114
3123
|
title: "导航模式"
|
|
3115
3124
|
}, {
|
|
3116
3125
|
default: () => [n(et, {
|
|
3117
3126
|
prefixCls: a,
|
|
3118
|
-
value:
|
|
3127
|
+
value: U(l).layout,
|
|
3119
3128
|
key: "layout",
|
|
3120
|
-
hashId:
|
|
3129
|
+
hashId: o.value,
|
|
3121
3130
|
configType: "layout",
|
|
3122
3131
|
list: Ot,
|
|
3123
3132
|
onChange: (u) => C("layout", u)
|
|
@@ -3125,51 +3134,51 @@ const {
|
|
|
3125
3134
|
}), fa.map(({
|
|
3126
3135
|
label: u,
|
|
3127
3136
|
title: S
|
|
3128
|
-
}) => n(
|
|
3137
|
+
}) => n(be, {
|
|
3129
3138
|
label: S,
|
|
3130
|
-
disabled:
|
|
3131
|
-
value:
|
|
3139
|
+
disabled: U(k)[u],
|
|
3140
|
+
value: U(l)[u],
|
|
3132
3141
|
prefixCls: a,
|
|
3133
|
-
hashId:
|
|
3142
|
+
hashId: o.value,
|
|
3134
3143
|
valueKey: u,
|
|
3135
|
-
onChange: (
|
|
3136
|
-
}, null)), n(
|
|
3137
|
-
hashId:
|
|
3144
|
+
onChange: (M, O) => C(M, O)
|
|
3145
|
+
}, null)), n(Re, null, null), n(pe, {
|
|
3146
|
+
hashId: o.value,
|
|
3138
3147
|
prefixCls: a,
|
|
3139
|
-
title: n("span", null, [
|
|
3148
|
+
title: n("span", null, [oe("其他设置 "), n("a", {
|
|
3140
3149
|
style: {
|
|
3141
3150
|
fontSize: "12px"
|
|
3142
3151
|
},
|
|
3143
3152
|
onClick: () => h(!0)
|
|
3144
|
-
}, [
|
|
3153
|
+
}, [oe("更多配置")])])
|
|
3145
3154
|
}, {
|
|
3146
3155
|
default: () => [ga.map(({
|
|
3147
3156
|
label: u,
|
|
3148
3157
|
title: S
|
|
3149
|
-
}) => n(
|
|
3158
|
+
}) => n(be, {
|
|
3150
3159
|
label: S,
|
|
3151
|
-
disabled:
|
|
3152
|
-
value:
|
|
3160
|
+
disabled: U(k)[u],
|
|
3161
|
+
value: U(l)[u],
|
|
3153
3162
|
prefixCls: a,
|
|
3154
|
-
hashId:
|
|
3163
|
+
hashId: o.value,
|
|
3155
3164
|
valueKey: u,
|
|
3156
|
-
onChange: (
|
|
3157
|
-
}, null)), e.weakmode && n(
|
|
3165
|
+
onChange: (M, O) => C(M, O)
|
|
3166
|
+
}, null)), e.weakmode && n(be, {
|
|
3158
3167
|
label: "色弱模式",
|
|
3159
|
-
value:
|
|
3168
|
+
value: U(l).colorWeak,
|
|
3160
3169
|
prefixCls: a,
|
|
3161
|
-
hashId:
|
|
3170
|
+
hashId: o.value,
|
|
3162
3171
|
valueKey: "colorWeak",
|
|
3163
3172
|
onChange: (u, S) => C(u, S)
|
|
3164
|
-
}, null), e.showProgress && n(
|
|
3173
|
+
}, null), e.showProgress && n(be, {
|
|
3165
3174
|
label: "顶部进度条",
|
|
3166
|
-
value:
|
|
3175
|
+
value: U(l).showProgressBar,
|
|
3167
3176
|
prefixCls: a,
|
|
3168
|
-
hashId:
|
|
3177
|
+
hashId: o.value,
|
|
3169
3178
|
valueKey: "showProgressBar",
|
|
3170
3179
|
onChange: (u, S) => C(u, S)
|
|
3171
3180
|
}, null)]
|
|
3172
|
-
})]), e.hideHintAlert && e.hideCopyButton ? null : n(
|
|
3181
|
+
})]), e.hideHintAlert && e.hideCopyButton ? null : n(Re, null, null), e.hideHintAlert ? null : n(Ht, {
|
|
3173
3182
|
type: "warning",
|
|
3174
3183
|
message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
|
|
3175
3184
|
icon: n(_t, null, null),
|
|
@@ -3181,9 +3190,9 @@ const {
|
|
|
3181
3190
|
onClick: () => $(),
|
|
3182
3191
|
block: !0
|
|
3183
3192
|
}, {
|
|
3184
|
-
default: () => [n(Gt, null, null),
|
|
3193
|
+
default: () => [n(Gt, null, null), oe("拷贝设置")]
|
|
3185
3194
|
})])]
|
|
3186
|
-
})]), n(
|
|
3195
|
+
})]), n(ve, {
|
|
3187
3196
|
width: 320,
|
|
3188
3197
|
closable: !1,
|
|
3189
3198
|
placement: "right",
|
|
@@ -3195,13 +3204,13 @@ const {
|
|
|
3195
3204
|
}, {
|
|
3196
3205
|
default: () => [n(da, {
|
|
3197
3206
|
settingValue: l.value,
|
|
3198
|
-
onChange: (u, S,
|
|
3207
|
+
onChange: (u, S, M) => C(S || "primaryColor", u, M)
|
|
3199
3208
|
}, null)]
|
|
3200
|
-
}), n(
|
|
3209
|
+
}), n(ve, {
|
|
3201
3210
|
width: 320,
|
|
3202
3211
|
closable: !1,
|
|
3203
3212
|
placement: "right",
|
|
3204
|
-
open:
|
|
3213
|
+
open: R.value,
|
|
3205
3214
|
bodyStyle: {
|
|
3206
3215
|
padding: 0
|
|
3207
3216
|
},
|
|
@@ -3209,7 +3218,7 @@ const {
|
|
|
3209
3218
|
}, {
|
|
3210
3219
|
default: () => [n(ca, {
|
|
3211
3220
|
settingValue: l.value,
|
|
3212
|
-
onChange: (u, S,
|
|
3221
|
+
onChange: (u, S, M) => C(u, M, S)
|
|
3213
3222
|
}, null)]
|
|
3214
3223
|
})]
|
|
3215
3224
|
}));
|
|
@@ -4487,12 +4496,12 @@ const {
|
|
|
4487
4496
|
}
|
|
4488
4497
|
});
|
|
4489
4498
|
function di(e) {
|
|
4490
|
-
return
|
|
4491
|
-
const a =
|
|
4499
|
+
return ze("LayoutPageTranstion", (t) => {
|
|
4500
|
+
const a = He(t);
|
|
4492
4501
|
return [si(a)];
|
|
4493
4502
|
}, e);
|
|
4494
4503
|
}
|
|
4495
|
-
const Bi = /* @__PURE__ */
|
|
4504
|
+
const Bi = /* @__PURE__ */ W({
|
|
4496
4505
|
name: "PageTranstion",
|
|
4497
4506
|
props: {
|
|
4498
4507
|
disabled: {
|
|
@@ -4512,35 +4521,35 @@ const Bi = /* @__PURE__ */ j({
|
|
|
4512
4521
|
setup(e, {
|
|
4513
4522
|
slots: t
|
|
4514
4523
|
}) {
|
|
4515
|
-
const a =
|
|
4524
|
+
const a = ge({
|
|
4516
4525
|
suffixCls: "page-transtion",
|
|
4517
4526
|
isPor: !0
|
|
4518
4527
|
}), {
|
|
4519
|
-
wrapSSR:
|
|
4520
|
-
hashId:
|
|
4521
|
-
} = di(a), d = b(() => [
|
|
4522
|
-
const
|
|
4523
|
-
if (
|
|
4528
|
+
wrapSSR: i,
|
|
4529
|
+
hashId: o
|
|
4530
|
+
} = di(a), d = b(() => [m(!1), `${a}-enter`, o.value].join(" ")), g = b(() => [m(!0), `${a}-leave`, o.value].join(" ")), m = (p) => {
|
|
4531
|
+
const R = We.preset.find((l) => e.name == l.name);
|
|
4532
|
+
if (R == null)
|
|
4524
4533
|
return "";
|
|
4525
4534
|
let h = "";
|
|
4526
|
-
e.direction == null ? h =
|
|
4527
|
-
const
|
|
4528
|
-
return
|
|
4529
|
-
}, w = (p,
|
|
4535
|
+
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));
|
|
4536
|
+
const F = p ? "Out" : "In";
|
|
4537
|
+
return R.name + F + h;
|
|
4538
|
+
}, w = (p, R) => {
|
|
4530
4539
|
if (p.length == 0 || p == "x" || p == "y")
|
|
4531
4540
|
return p;
|
|
4532
|
-
let h =
|
|
4533
|
-
return h = h % 2 == 1 ? h - 1 : h + 1,
|
|
4541
|
+
let h = R.indexOf(p);
|
|
4542
|
+
return h = h % 2 == 1 ? h - 1 : h + 1, R[h];
|
|
4534
4543
|
};
|
|
4535
4544
|
return () => {
|
|
4536
4545
|
var p;
|
|
4537
|
-
return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) :
|
|
4546
|
+
return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) : i(n(Tt, {
|
|
4538
4547
|
enterActiveClass: d.value,
|
|
4539
|
-
leaveActiveClass:
|
|
4548
|
+
leaveActiveClass: g.value
|
|
4540
4549
|
}, {
|
|
4541
4550
|
default: () => {
|
|
4542
|
-
var
|
|
4543
|
-
return [(
|
|
4551
|
+
var R;
|
|
4552
|
+
return [(R = t.default) == null ? void 0 : R.call(t)];
|
|
4544
4553
|
}
|
|
4545
4554
|
}));
|
|
4546
4555
|
};
|
|
@@ -4550,14 +4559,14 @@ export {
|
|
|
4550
4559
|
gt as BaseMenu,
|
|
4551
4560
|
ta as DefaultHeader,
|
|
4552
4561
|
Oi as GProLayout,
|
|
4553
|
-
|
|
4562
|
+
$e as GlobalFooter,
|
|
4554
4563
|
Mi as PageContainer,
|
|
4555
4564
|
un as PageLoading,
|
|
4556
4565
|
Bi as PageTranstion,
|
|
4557
4566
|
ki as SettingDrawer,
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4567
|
+
Be as SiderMenuWrapper,
|
|
4568
|
+
Ee as WrapContent,
|
|
4569
|
+
Oe as baseMenuProps,
|
|
4561
4570
|
bn as clearMenuItem,
|
|
4562
4571
|
In as createContext,
|
|
4563
4572
|
On as createRouteContext,
|
|
@@ -4567,7 +4576,7 @@ export {
|
|
|
4567
4576
|
vn as getMenuFirstChildren,
|
|
4568
4577
|
xn as getMenuFirstLastChildPath,
|
|
4569
4578
|
Cn as handleThemeConfig,
|
|
4570
|
-
|
|
4579
|
+
A as hanlePathKey,
|
|
4571
4580
|
Rn as provideProLayoutContext,
|
|
4572
4581
|
Mn as useContext,
|
|
4573
4582
|
te as useProLayoutContext
|