@gx-design-vue/pro-layout 0.1.0-beta.31 → 0.1.0-beta.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ProLayout.d.ts +74 -74
- package/dist/components/GlobalHeader/DefaultHeader.d.ts +110 -110
- package/dist/components/GlobalHeader/index.d.ts +87 -10
- package/dist/components/GlobalHeader/props.d.ts +72 -8
- package/dist/components/LogoContent/index.d.ts +5 -5
- package/dist/components/LogoContent/props.d.ts +2 -2
- package/dist/components/SiderMenu/BaseMenu.d.ts +7 -7
- package/dist/components/SiderMenu/SiderMenu.d.ts +7 -7
- package/dist/components/SiderMenu/index.d.ts +7 -7
- package/dist/components/SiderMenu/props.d.ts +6 -6
- package/dist/defaultSettings.d.ts +2 -2
- package/dist/pro-layout.mjs +915 -906
- package/dist/pro-layout.umd.js +1 -1
- package/dist/props.d.ts +36 -36
- package/dist/utils/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/pro-layout.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Spin as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { createFromIconfontCN as jt, MenuUnfoldOutlined as Wt, MenuFoldOutlined as At, GithubOutlined as Kt, EllipsisOutlined as Ut, ReloadOutlined as Et, CloseOutlined as st, CheckOutlined as
|
|
5
|
-
import Gt, { themeConfig as
|
|
1
|
+
import { defineComponent as j, createVNode as n, mergeProps as X, provide as Te, readonly as Rt, inject as ot, resolveComponent as it, computed as v, isVNode as ie, Fragment as q, toRefs as Ce, unref as U, createTextVNode as te, ref as Re, reactive as lt, watch as de, withDirectives as Bt, vShow as kt, watchEffect as $t, Transition as Ft } from "vue";
|
|
2
|
+
import { Spin as ve, Menu as ae, ConfigProvider as Pe, Layout as ce, Drawer as be, Breadcrumb as Tt, Card as Pt, LayoutFooter as Lt, Tabs as Le, Dropdown as Ye, Tooltip as we, List as oe, Switch as rt, TabPane as Dt, Select as ge, message as Nt, Divider as Me, Alert as zt, Button as Ht } from "ant-design-vue";
|
|
3
|
+
import { useRouter as De, RouterLink as Vt } from "vue-router";
|
|
4
|
+
import { createFromIconfontCN as jt, MenuUnfoldOutlined as Wt, MenuFoldOutlined as At, GithubOutlined as Kt, EllipsisOutlined as Ut, ReloadOutlined as Et, CloseOutlined as st, CheckOutlined as ut, SettingOutlined as Xt, NotificationOutlined as Yt, CopyOutlined as _t } from "@ant-design/icons-vue";
|
|
5
|
+
import Gt, { themeConfig as V, Keyframe as r, useProStyle as J, useProConfigContext as Se, useStyle as Ne, mergeToken as ze, colorList as qt } from "@gx-design-vue/pro-provider";
|
|
6
6
|
import { createTypes as Zt } from "vue-types";
|
|
7
|
-
import { cloneDeep as
|
|
7
|
+
import { cloneDeep as He, pick as le, omit as Ve } from "lodash-es";
|
|
8
8
|
import { GPorWaterMark as Jt } from "@gx-design-vue/pro-watermark";
|
|
9
|
-
import { getSlot as
|
|
10
|
-
import { useMediaQuery as on, useState as
|
|
9
|
+
import { getSlot as K, isBoolean as Qt, getPrefixCls as me, classNames as dt, getLevelData as en, isArray as tn, isBrowser as nn, merge as an } from "@gx-design-vue/pro-utils";
|
|
10
|
+
import { useMediaQuery as on, useState as pe, useMergedState as ln } from "@gx-design-vue/pro-hooks";
|
|
11
11
|
import { useWindowSize as rn, useClipboard as sn } from "@vueuse/core";
|
|
12
|
-
import
|
|
12
|
+
import un from "@gx-design-vue/scrollbar";
|
|
13
13
|
import { GColorPicker as _e } from "@gx-design-vue/color-picker";
|
|
14
|
-
const
|
|
14
|
+
const dn = /* @__PURE__ */ j({
|
|
15
15
|
name: "PageLoading",
|
|
16
16
|
props: {
|
|
17
|
-
...
|
|
17
|
+
...ve.props
|
|
18
18
|
},
|
|
19
19
|
setup(e) {
|
|
20
20
|
return n("div", {
|
|
@@ -22,7 +22,7 @@ const un = /* @__PURE__ */ W({
|
|
|
22
22
|
paddingTop: "100px",
|
|
23
23
|
textAlign: "center"
|
|
24
24
|
}
|
|
25
|
-
}, [n(
|
|
25
|
+
}, [n(ve, X(e, {
|
|
26
26
|
indicator: n("i", {
|
|
27
27
|
class: "toolsfont create-spin toolsfont tools-icon-jiazaizhong",
|
|
28
28
|
style: {
|
|
@@ -55,75 +55,75 @@ ct.extend([{
|
|
|
55
55
|
getter: !0,
|
|
56
56
|
type: null
|
|
57
57
|
}]);
|
|
58
|
-
const L = ct,
|
|
58
|
+
const L = ct, se = {
|
|
59
59
|
theme: {
|
|
60
60
|
type: String,
|
|
61
|
-
default:
|
|
61
|
+
default: V.theme
|
|
62
62
|
},
|
|
63
63
|
layout: {
|
|
64
64
|
type: String,
|
|
65
|
-
default:
|
|
65
|
+
default: V.layout
|
|
66
66
|
},
|
|
67
67
|
wideWidth: {
|
|
68
68
|
type: Number,
|
|
69
|
-
default:
|
|
69
|
+
default: V.wideWidth
|
|
70
70
|
},
|
|
71
71
|
splitMenus: {
|
|
72
72
|
type: Boolean,
|
|
73
|
-
default:
|
|
73
|
+
default: V.splitMenus
|
|
74
74
|
},
|
|
75
75
|
fixedMultiTab: {
|
|
76
76
|
type: Boolean,
|
|
77
|
-
default:
|
|
77
|
+
default: V.fixedMultiTab
|
|
78
78
|
},
|
|
79
79
|
showProgressBar: {
|
|
80
80
|
type: Boolean,
|
|
81
|
-
default:
|
|
81
|
+
default: V.showProgressBar
|
|
82
82
|
},
|
|
83
83
|
fixedHeader: {
|
|
84
84
|
type: Boolean,
|
|
85
|
-
default:
|
|
85
|
+
default: V.fixedHeader
|
|
86
86
|
},
|
|
87
87
|
fixSiderbar: {
|
|
88
88
|
type: Boolean,
|
|
89
|
-
default:
|
|
89
|
+
default: V.fixSiderbar
|
|
90
90
|
},
|
|
91
91
|
showTabsBar: {
|
|
92
92
|
type: Boolean,
|
|
93
|
-
default:
|
|
93
|
+
default: V.showTabsBar
|
|
94
94
|
},
|
|
95
95
|
showFullScreen: {
|
|
96
96
|
type: Boolean,
|
|
97
|
-
default:
|
|
97
|
+
default: V.showFullScreen
|
|
98
98
|
},
|
|
99
99
|
autoHideHeader: {
|
|
100
100
|
type: Boolean,
|
|
101
|
-
default:
|
|
101
|
+
default: V.autoHideHeader
|
|
102
102
|
},
|
|
103
103
|
headerHeight: {
|
|
104
104
|
type: Number,
|
|
105
|
-
default:
|
|
105
|
+
default: V.headerHeight
|
|
106
106
|
},
|
|
107
107
|
title: {
|
|
108
108
|
type: String,
|
|
109
|
-
default:
|
|
109
|
+
default: V.title
|
|
110
110
|
},
|
|
111
111
|
iconfontUrl: {
|
|
112
112
|
type: String,
|
|
113
|
-
default:
|
|
113
|
+
default: V.iconfontUrl
|
|
114
114
|
},
|
|
115
115
|
animate: {
|
|
116
116
|
type: Object,
|
|
117
|
-
default:
|
|
117
|
+
default: V.animate
|
|
118
118
|
},
|
|
119
119
|
primaryColor: {
|
|
120
120
|
type: String,
|
|
121
|
-
default:
|
|
121
|
+
default: V.primaryColor
|
|
122
122
|
}
|
|
123
|
-
},
|
|
123
|
+
}, re = {
|
|
124
124
|
renderKey: L.string.def("menuHeaderRender"),
|
|
125
|
-
title:
|
|
126
|
-
layout:
|
|
125
|
+
title: se.title,
|
|
126
|
+
layout: se.layout,
|
|
127
127
|
logo: {
|
|
128
128
|
type: [Object, String, Function],
|
|
129
129
|
default: () => {
|
|
@@ -146,8 +146,8 @@ const L = ct, ie = {
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
onMenuHeaderClick: Function
|
|
149
|
-
},
|
|
150
|
-
...
|
|
149
|
+
}, Ie = {
|
|
150
|
+
...se,
|
|
151
151
|
mode: {
|
|
152
152
|
type: String,
|
|
153
153
|
default: "inline"
|
|
@@ -182,11 +182,13 @@ const L = ct, ie = {
|
|
|
182
182
|
},
|
|
183
183
|
menuItemRender: {
|
|
184
184
|
type: [Function, Boolean],
|
|
185
|
-
default: () =>
|
|
185
|
+
default: () => {
|
|
186
|
+
}
|
|
186
187
|
},
|
|
187
188
|
subMenuItemRender: {
|
|
188
189
|
type: [Function, Boolean],
|
|
189
|
-
default: () =>
|
|
190
|
+
default: () => {
|
|
191
|
+
}
|
|
190
192
|
},
|
|
191
193
|
onClick: [Function, Object],
|
|
192
194
|
onOpenKeys: {
|
|
@@ -195,13 +197,13 @@ const L = ct, ie = {
|
|
|
195
197
|
onSelect: {
|
|
196
198
|
type: Function
|
|
197
199
|
}
|
|
198
|
-
},
|
|
199
|
-
...
|
|
200
|
-
...
|
|
200
|
+
}, _ = {
|
|
201
|
+
...se,
|
|
202
|
+
...Ie,
|
|
201
203
|
menuLoading: L.looseBool,
|
|
202
|
-
logo:
|
|
203
|
-
logoStyle:
|
|
204
|
-
logoDirection:
|
|
204
|
+
logo: re.logo,
|
|
205
|
+
logoStyle: re.logoStyle,
|
|
206
|
+
logoDirection: re.logoDirection,
|
|
205
207
|
siderWidth: L.number.def(208),
|
|
206
208
|
headerHeight: L.number.def(48),
|
|
207
209
|
collapsedWidth: L.number.def(48),
|
|
@@ -252,26 +254,26 @@ function mn(e) {
|
|
|
252
254
|
return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
|
|
253
255
|
}
|
|
254
256
|
function ft(e, t, a, o) {
|
|
255
|
-
var
|
|
257
|
+
var u, f, c, S, b, O, g, F, l, s, M, I, x, y, m, h, R, p, w, $, T, N, z, H, P, G, E, Y, A, d, C, B, k, D;
|
|
256
258
|
const i = { ...e };
|
|
257
|
-
return a === "light" ? (i.colorItemBg = (
|
|
259
|
+
return a === "light" ? (i.colorItemBg = (f = (u = t.layout) == null ? void 0 : u[o]) == null ? void 0 : f.colorBgMenu, i.colorSubItemBg = (S = (c = t.layout) == null ? void 0 : c[o]) == null ? void 0 : S.colorSubItemBg, i.colorItemBgSelected = (O = (b = t.layout) == null ? void 0 : b[o]) == null ? void 0 : O.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (F = (g = t.layout) == null ? void 0 : g[o]) == null ? void 0 : F.colorBgMenuItemSelected, i.colorItemText = (s = (l = t.layout) == null ? void 0 : l[o]) == null ? void 0 : s.colorTextMenu, i.colorItemTextHover = (I = (M = t.layout) == null ? void 0 : M[o]) == null ? void 0 : I.colorTextMenuHover, i.colorItemTextSelected = (y = (x = t.layout) == null ? void 0 : x[o]) == null ? void 0 : y.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (h = (m = t.layout) == null ? void 0 : m[o]) == null ? void 0 : h.colorTextMenuSelected, o === "sider" && (i.colorItemBgHover = (p = (R = t.layout) == null ? void 0 : R[o]) == null ? void 0 : p.colorBgMenuItemHover)) : a === "dark" && (i.colorItemBg = ($ = (w = t.layout) == null ? void 0 : w[o]) == null ? void 0 : $.colorDarkBgMenu, i.colorSubItemBg = (N = (T = t.layout) == null ? void 0 : T[o]) == null ? void 0 : N.colorDarkSubItemBg, i.colorItemBgSelected = (H = (z = t.layout) == null ? void 0 : z[o]) == null ? void 0 : H.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (G = (P = t.layout) == null ? void 0 : P[o]) == null ? void 0 : G.colorDarkBgMenuItemSelected, i.colorItemText = (Y = (E = t.layout) == null ? void 0 : E[o]) == null ? void 0 : Y.colorDarkTextMenu, i.colorItemTextHover = (d = (A = t.layout) == null ? void 0 : A[o]) == null ? void 0 : d.colorDarkTextMenuHover, i.colorItemTextSelected = (B = (C = t.layout) == null ? void 0 : C[o]) == null ? void 0 : B.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (D = (k = t.layout) == null ? void 0 : k[o]) == null ? void 0 : D.colorDarkTextMenuSelected, o === "header" && (i.colorActiveBarHeight = 0)), i;
|
|
258
260
|
}
|
|
259
|
-
const fn = ["left", "right"],
|
|
261
|
+
const fn = ["left", "right"], ue = ["left", "right", "down", "up"], gn = ["downBig", "upBig", "leftBig", "rightBig"], hn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], yn = ["downLeft", "upRight", "downRight", "upLeft"], je = {
|
|
260
262
|
preset: [
|
|
261
263
|
//预设动画配置
|
|
262
|
-
{ name: "back", alias: "渐近", directions:
|
|
263
|
-
{ name: "bounce", alias: "弹跳", directions:
|
|
264
|
+
{ name: "back", alias: "渐近", directions: ue },
|
|
265
|
+
{ name: "bounce", alias: "弹跳", directions: ue.concat("default") },
|
|
264
266
|
{
|
|
265
267
|
name: "fade",
|
|
266
268
|
alias: "淡化",
|
|
267
|
-
directions:
|
|
269
|
+
directions: ue.concat(gn).concat(hn).concat("default")
|
|
268
270
|
},
|
|
269
271
|
{ name: "flip", alias: "翻转", directions: ["x", "y"] },
|
|
270
272
|
{ name: "lightSpeed", alias: "光速", directions: fn },
|
|
271
273
|
{ name: "rotate", alias: "旋转", directions: yn.concat("default") },
|
|
272
274
|
{ name: "roll", alias: "翻滚", directions: ["default"] },
|
|
273
|
-
{ name: "zoom", alias: "缩放", directions:
|
|
274
|
-
{ name: "slide", alias: "滑动", directions:
|
|
275
|
+
{ name: "zoom", alias: "缩放", directions: ue.concat("default") },
|
|
276
|
+
{ name: "slide", alias: "滑动", directions: ue }
|
|
275
277
|
]
|
|
276
278
|
};
|
|
277
279
|
function bn(e) {
|
|
@@ -282,8 +284,8 @@ function bn(e) {
|
|
|
282
284
|
return null;
|
|
283
285
|
if (a && (a != null && a.children)) {
|
|
284
286
|
if (a.children.some((i) => {
|
|
285
|
-
var
|
|
286
|
-
return i && !((
|
|
287
|
+
var u;
|
|
288
|
+
return i && !((u = i.meta) != null && u.hideInMenu);
|
|
287
289
|
}))
|
|
288
290
|
return {
|
|
289
291
|
...a,
|
|
@@ -321,24 +323,24 @@ function xn(e) {
|
|
|
321
323
|
}
|
|
322
324
|
function Li(e, t) {
|
|
323
325
|
var o, i;
|
|
324
|
-
const a = ((i = (o = e.find((
|
|
326
|
+
const a = ((i = (o = e.find((u) => u.path === t)) == null ? void 0 : o.meta) == null ? void 0 : i.key) || "";
|
|
325
327
|
if (a) {
|
|
326
|
-
const
|
|
327
|
-
for (let
|
|
328
|
-
|
|
329
|
-
return e.filter((
|
|
330
|
-
var
|
|
331
|
-
return
|
|
328
|
+
const u = [], f = a.split("-");
|
|
329
|
+
for (let c = 0; c < f.length; c += 1)
|
|
330
|
+
u.push(He(f).splice(0, c + 1).join("-"));
|
|
331
|
+
return e.filter((c) => u.some((S) => {
|
|
332
|
+
var b;
|
|
333
|
+
return S === ((b = c == null ? void 0 : c.meta) == null ? void 0 : b.key) || "";
|
|
332
334
|
}));
|
|
333
335
|
}
|
|
334
336
|
return [];
|
|
335
337
|
}
|
|
336
338
|
function Cn(e) {
|
|
337
|
-
return e.layout === "mix" && (e.fixSiderbar = !0, e.fixedHeader = !0, e.splitMenus = !0), e.layout === "simple" && (e.splitMenus = !1, e.showTabsBar = !1), e.layout === "side" && (e.splitMenus = !1), e.layout === "wide" && (e.splitMenus = !1, e.fixSiderbar = !1, e.fixedHeader = !0, e.showTabsBar = !1, e.fixedMultiTab = !1), { ...e };
|
|
339
|
+
return e.layout === "mix" && (e.fixSiderbar = !0, e.fixedHeader = !0, e.splitMenus = !0), e.layout === "top" && (e.fixSiderbar = !1, e.fixedHeader = !0, e.splitMenus = !1), e.layout === "simple" && (e.splitMenus = !1, e.showTabsBar = !1), e.layout === "side" && (e.splitMenus = !1), e.layout === "wide" && (e.splitMenus = !1, e.fixSiderbar = !1, e.fixedHeader = !0, e.showTabsBar = !1, e.fixedMultiTab = !1), { ...e };
|
|
338
340
|
}
|
|
339
341
|
function wn(e) {
|
|
340
342
|
const t = ["showTabsBar", "fixedMultiTab", "fixSiderbar", "fixedHeader", "splitMenus"];
|
|
341
|
-
let o = Object.keys(e).reduce((i,
|
|
343
|
+
let o = Object.keys(e).reduce((i, u) => (i[u] = !1, i), {});
|
|
342
344
|
return o = Sn(o, t), e.layout === "mix" && (o.fixSiderbar = !0, o.fixedHeader = !0), e.layout === "side" && (o.splitMenus = !0), e.layout === "simple" && (o.splitMenus = !0, o.fixedHeader = !0, o.showTabsBar = !0, o.fixedMultiTab = !0), e.layout === "wide" && (o.splitMenus = !0, o.fixedHeader = !0, o.fixSiderbar = !0, o.showTabsBar = !0, o.fixedMultiTab = !0), o;
|
|
343
345
|
}
|
|
344
346
|
function Sn(e, t) {
|
|
@@ -346,7 +348,7 @@ function Sn(e, t) {
|
|
|
346
348
|
...t.reduce((a, o) => ({ ...a, [o]: e[o] }), {})
|
|
347
349
|
};
|
|
348
350
|
}
|
|
349
|
-
const In = (e = Symbol(), t = "Context.Provider") =>
|
|
351
|
+
const In = (e = Symbol(), t = "Context.Provider") => j({
|
|
350
352
|
name: t,
|
|
351
353
|
props: {
|
|
352
354
|
value: {
|
|
@@ -355,19 +357,19 @@ const In = (e = Symbol(), t = "Context.Provider") => W({
|
|
|
355
357
|
}
|
|
356
358
|
},
|
|
357
359
|
setup(o, { slots: i }) {
|
|
358
|
-
return
|
|
359
|
-
var
|
|
360
|
-
return (
|
|
360
|
+
return Te(e, Rt(o.value)), () => {
|
|
361
|
+
var u;
|
|
362
|
+
return (u = i.default) == null ? void 0 : u.call(i);
|
|
361
363
|
};
|
|
362
364
|
}
|
|
363
|
-
}), Mn = (e = Symbol(), t) => ot(e, t || {}),
|
|
364
|
-
|
|
365
|
-
},
|
|
365
|
+
}), Mn = (e = Symbol(), t) => ot(e, t || {}), We = Symbol("pro-layout-context"), On = () => In(We, "ProLayoutContext.Provider"), Rn = (e) => {
|
|
366
|
+
Te(We, e);
|
|
367
|
+
}, Q = () => Mn(We);
|
|
366
368
|
On();
|
|
367
369
|
function Ge(e) {
|
|
368
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
370
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
369
371
|
}
|
|
370
|
-
const
|
|
372
|
+
const xe = (e) => {
|
|
371
373
|
const {
|
|
372
374
|
icon: t,
|
|
373
375
|
iconType: a,
|
|
@@ -383,22 +385,22 @@ const pe = (e) => {
|
|
|
383
385
|
class: `${e.className}-icon-image`
|
|
384
386
|
}, null);
|
|
385
387
|
if (a === 1) {
|
|
386
|
-
const
|
|
387
|
-
scriptUrl: o ||
|
|
388
|
+
const u = jt({
|
|
389
|
+
scriptUrl: o || V.iconfontUrl
|
|
388
390
|
});
|
|
389
|
-
return o ? n(
|
|
391
|
+
return o ? n(u, {
|
|
390
392
|
type: t
|
|
391
393
|
}, null) : n("i", {
|
|
392
394
|
class: `iconfont ${t} ${e.className}-icon`
|
|
393
395
|
}, null);
|
|
394
396
|
}
|
|
395
397
|
}
|
|
396
|
-
if (
|
|
398
|
+
if (ie(t))
|
|
397
399
|
return t;
|
|
398
400
|
const i = it(t);
|
|
399
|
-
return typeof
|
|
401
|
+
return typeof xe == "function" && n(i, null, null) || null;
|
|
400
402
|
};
|
|
401
|
-
|
|
403
|
+
xe.props = {
|
|
402
404
|
icon: {
|
|
403
405
|
type: [String, Function, Object]
|
|
404
406
|
},
|
|
@@ -406,99 +408,99 @@ pe.props = {
|
|
|
406
408
|
className: String,
|
|
407
409
|
iconfontUrl: String
|
|
408
410
|
};
|
|
409
|
-
const gt = /* @__PURE__ */
|
|
411
|
+
const gt = /* @__PURE__ */ j({
|
|
410
412
|
name: "BaseMenu",
|
|
411
|
-
props:
|
|
413
|
+
props: Ie,
|
|
412
414
|
setup(e) {
|
|
413
|
-
const t =
|
|
415
|
+
const t = De(), {
|
|
414
416
|
getPrefixCls: a
|
|
415
|
-
} =
|
|
417
|
+
} = Q(), o = a({
|
|
416
418
|
suffixCls: "menu-item",
|
|
417
419
|
isPor: !0
|
|
418
420
|
}), i = (l) => {
|
|
421
|
+
var s;
|
|
422
|
+
(s = e.onOpenKeys) == null || s.call(e, l);
|
|
423
|
+
}, u = (l) => {
|
|
424
|
+
var s;
|
|
425
|
+
(s = e.onSelect) == null || s.call(e, l.selectedKeys);
|
|
426
|
+
}, f = (l) => {
|
|
427
|
+
var s;
|
|
428
|
+
(s = e.onClick) == null || s.call(e, ...l);
|
|
429
|
+
}, c = (l, s) => {
|
|
419
430
|
var x;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
(x = e.onClick) == null || x.call(e, ...l);
|
|
427
|
-
}, u = (l, x) => {
|
|
428
|
-
var C;
|
|
429
|
-
const O = l.target || "", I = mt(O);
|
|
430
|
-
((C = t.currentRoute.value) == null ? void 0 : C.fullPath) !== x.to && I && O && l.targetStatus === 1 && window.open(O);
|
|
431
|
-
}, w = it("router-link"), y = (l = []) => l.map((x) => M(x)).filter((x) => x), M = (l) => {
|
|
432
|
-
var I, C, h, c, g, B, b, S, F;
|
|
433
|
-
if (Array.isArray(l.children) && l.children.length > 0 && !((I = l == null ? void 0 : l.meta) != null && I.hideInMenu) && !((C = l == null ? void 0 : l.meta) != null && C.hideChildrenInMenu)) {
|
|
434
|
-
let k;
|
|
431
|
+
const M = l.target || "", I = mt(M);
|
|
432
|
+
((x = t.currentRoute.value) == null ? void 0 : x.fullPath) !== s.to && I && M && l.targetStatus === 1 && window.open(M);
|
|
433
|
+
}, S = it("router-link"), b = (l = []) => l.map((s) => O(s)).filter((s) => s), O = (l) => {
|
|
434
|
+
var I, x, y, m, h, R, p, w, $;
|
|
435
|
+
if (Array.isArray(l.children) && l.children.length > 0 && !((I = l == null ? void 0 : l.meta) != null && I.hideInMenu) && !((x = l == null ? void 0 : l.meta) != null && x.hideChildrenInMenu)) {
|
|
436
|
+
let T;
|
|
435
437
|
if (e.subMenuItemRender)
|
|
436
438
|
return e.subMenuItemRender({
|
|
437
439
|
item: l,
|
|
438
|
-
children:
|
|
440
|
+
children: b(l.children)
|
|
439
441
|
});
|
|
440
|
-
const
|
|
442
|
+
const N = (y = l.meta) == null ? void 0 : y.title, z = (m = l.meta) != null && m.icon ? n("span", {
|
|
441
443
|
class: "gx-pro-sider-menu-item"
|
|
442
444
|
}, [n("span", {
|
|
443
445
|
class: "gx-pro-sider-menu-item-title"
|
|
444
|
-
}, [
|
|
446
|
+
}, [N])]) : n("span", {
|
|
445
447
|
class: "gx-pro-sider-menu-item"
|
|
446
|
-
}, [
|
|
447
|
-
return n(
|
|
448
|
-
title:
|
|
448
|
+
}, [N]), H = ((h = l.meta) == null ? void 0 : h.type) === "group", P = H ? ae.ItemGroup : ae.SubMenu;
|
|
449
|
+
return n(P, {
|
|
450
|
+
title: z,
|
|
449
451
|
key: l.path,
|
|
450
|
-
icon:
|
|
452
|
+
icon: H ? null : n(xe, {
|
|
451
453
|
className: o,
|
|
452
|
-
icon: (
|
|
454
|
+
icon: (R = l.meta) == null ? void 0 : R.icon,
|
|
453
455
|
iconfontUrl: e.iconfontUrl,
|
|
454
|
-
iconType: (
|
|
456
|
+
iconType: (p = l.meta) == null ? void 0 : p.iconType
|
|
455
457
|
}, null)
|
|
456
|
-
}, Ge(
|
|
457
|
-
default: () => [
|
|
458
|
+
}, Ge(T = b(l.children)) ? T : {
|
|
459
|
+
default: () => [T]
|
|
458
460
|
});
|
|
459
461
|
}
|
|
460
|
-
const [
|
|
462
|
+
const [s, M] = g(l);
|
|
461
463
|
return e.menuItemRender && e.menuItemRender({
|
|
462
464
|
item: l,
|
|
463
|
-
title:
|
|
464
|
-
icon:
|
|
465
|
-
}) || n(
|
|
466
|
-
disabled: (
|
|
467
|
-
danger: (
|
|
465
|
+
title: s,
|
|
466
|
+
icon: M
|
|
467
|
+
}) || n(ae.Item, {
|
|
468
|
+
disabled: (w = l.meta) == null ? void 0 : w.disabled,
|
|
469
|
+
danger: ($ = l.meta) == null ? void 0 : $.danger,
|
|
468
470
|
key: l.path,
|
|
469
|
-
icon:
|
|
470
|
-
}, Ge(
|
|
471
|
-
default: () => [
|
|
471
|
+
icon: M
|
|
472
|
+
}, Ge(s) ? s : {
|
|
473
|
+
default: () => [s]
|
|
472
474
|
});
|
|
473
|
-
},
|
|
474
|
-
var
|
|
475
|
-
const
|
|
475
|
+
}, g = (l) => {
|
|
476
|
+
var h, R, p, w, $;
|
|
477
|
+
const s = {
|
|
476
478
|
...l.meta
|
|
477
|
-
},
|
|
479
|
+
}, M = s.targetStatus === 1 && s.target ? "a" : S, I = {
|
|
478
480
|
to: l.linkPath || l.path || ""
|
|
479
481
|
};
|
|
480
482
|
I.to === "/live/list/operation/:id" && (I.to = "/live/list/operation/add");
|
|
481
|
-
const
|
|
483
|
+
const x = (h = l.meta) == null ? void 0 : h.title, y = (R = l.meta) != null && R.icon ? n(M, X(I, {
|
|
482
484
|
class: "gx-pro-sider-menu-item",
|
|
483
|
-
onClick: () =>
|
|
485
|
+
onClick: () => c(s, I)
|
|
484
486
|
}), {
|
|
485
487
|
default: () => [n("span", {
|
|
486
488
|
class: "gx-pro-sider-menu-item-title"
|
|
487
|
-
}, [
|
|
488
|
-
}) : n(
|
|
489
|
+
}, [x])]
|
|
490
|
+
}) : n(M, X(I, {
|
|
489
491
|
class: "gx-pro-sider-menu-item",
|
|
490
|
-
onClick: () =>
|
|
492
|
+
onClick: () => c(s, I)
|
|
491
493
|
}), {
|
|
492
|
-
default: () => [n("span", null, [
|
|
493
|
-
}),
|
|
494
|
+
default: () => [n("span", null, [x])]
|
|
495
|
+
}), m = ((p = l.meta) == null ? void 0 : p.icon) && n(xe, {
|
|
494
496
|
className: o,
|
|
495
|
-
icon: (
|
|
497
|
+
icon: (w = l.meta) == null ? void 0 : w.icon,
|
|
496
498
|
iconfontUrl: e.iconfontUrl,
|
|
497
|
-
iconType: (
|
|
499
|
+
iconType: ($ = l.meta) == null ? void 0 : $.iconType
|
|
498
500
|
}, null) || void 0;
|
|
499
|
-
return [
|
|
500
|
-
},
|
|
501
|
-
return () => n(
|
|
501
|
+
return [y, m];
|
|
502
|
+
}, F = v(() => b(e.menuData));
|
|
503
|
+
return () => n(ae, X({
|
|
502
504
|
key: "Menu",
|
|
503
505
|
inlineIndent: 16,
|
|
504
506
|
mode: e.mode,
|
|
@@ -506,10 +508,10 @@ const gt = /* @__PURE__ */ W({
|
|
|
506
508
|
openKeys: e.openKeys === !1 ? [] : e.openKeys,
|
|
507
509
|
selectedKeys: e.selectedKeys || [],
|
|
508
510
|
onOpenChange: i,
|
|
509
|
-
onSelect:
|
|
510
|
-
onClick:
|
|
511
|
+
onSelect: u,
|
|
512
|
+
onClick: f
|
|
511
513
|
}, e.menuProps), {
|
|
512
|
-
default: () => [
|
|
514
|
+
default: () => [F.value]
|
|
513
515
|
});
|
|
514
516
|
}
|
|
515
517
|
}), ht = new r("pro-layout-title-hide", {
|
|
@@ -534,7 +536,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
534
536
|
}
|
|
535
537
|
};
|
|
536
538
|
}, kn = (e) => {
|
|
537
|
-
var t, a, o, i,
|
|
539
|
+
var t, a, o, i, u, f, c, S, b, O, g, F;
|
|
538
540
|
return {
|
|
539
541
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
540
542
|
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
@@ -567,7 +569,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
567
569
|
background: (i = (o = e.layout) == null ? void 0 : o.sider) == null ? void 0 : i.colorBgMenu,
|
|
568
570
|
boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
|
|
569
571
|
[`${e.componentCls}-footer`]: {
|
|
570
|
-
color: (
|
|
572
|
+
color: (f = (u = e.layout) == null ? void 0 : u.sider) == null ? void 0 : f.colorTextMenu
|
|
571
573
|
}
|
|
572
574
|
},
|
|
573
575
|
"&-links": {
|
|
@@ -583,7 +585,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
583
585
|
background: "transparent"
|
|
584
586
|
},
|
|
585
587
|
"&-footer": {
|
|
586
|
-
color: (
|
|
588
|
+
color: (S = (c = e.layout) == null ? void 0 : c.sider) == null ? void 0 : S.colorDarkTextMenu,
|
|
587
589
|
paddingBlockEnd: 16,
|
|
588
590
|
fontSize: e.fontSize,
|
|
589
591
|
animationName: ht,
|
|
@@ -598,8 +600,8 @@ const gt = /* @__PURE__ */ W({
|
|
|
598
600
|
zIndex: "100",
|
|
599
601
|
height: "100%",
|
|
600
602
|
"&-mix": {
|
|
601
|
-
height: `calc(100% - ${((
|
|
602
|
-
insetBlockStart: `${((
|
|
603
|
+
height: `calc(100% - ${((O = (b = e.layout) == null ? void 0 : b.header) == null ? void 0 : O.heightLayoutHeader) || V.headerHeight}px)`,
|
|
604
|
+
insetBlockStart: `${((F = (g = e.layout) == null ? void 0 : g.header) == null ? void 0 : F.heightLayoutHeader) || V.headerHeight}px`
|
|
603
605
|
}
|
|
604
606
|
}
|
|
605
607
|
}
|
|
@@ -681,49 +683,49 @@ const gt = /* @__PURE__ */ W({
|
|
|
681
683
|
logo: a,
|
|
682
684
|
logoStyle: o,
|
|
683
685
|
title: i,
|
|
684
|
-
layout:
|
|
685
|
-
} = e,
|
|
686
|
-
if (
|
|
686
|
+
layout: u
|
|
687
|
+
} = e, f = e[t || ""];
|
|
688
|
+
if (f === !1)
|
|
687
689
|
return null;
|
|
688
|
-
const
|
|
689
|
-
return typeof
|
|
690
|
-
},
|
|
690
|
+
const c = yt(a, o), S = i && n("h1", null, [i]);
|
|
691
|
+
return typeof f == "function" ? f(c, e.collapsed ? null : S, e) : n(q, null, [c || null, e.collapsed && u === "side" ? null : S]);
|
|
692
|
+
}, Ae = /* @__PURE__ */ j({
|
|
691
693
|
name: "LogoContent",
|
|
692
|
-
props:
|
|
694
|
+
props: re,
|
|
693
695
|
setup(e) {
|
|
694
696
|
const {
|
|
695
697
|
getPrefixCls: t
|
|
696
|
-
} =
|
|
698
|
+
} = Q(), a = v(() => e.layout === "side" || e.layout === "simple"), o = v(() => t({
|
|
697
699
|
suffixCls: a.value || e.drawer ? "sider" : "global-header",
|
|
698
700
|
isPor: !0
|
|
699
701
|
})), {
|
|
700
702
|
wrapSSR: i,
|
|
701
|
-
hashId:
|
|
702
|
-
} =
|
|
703
|
+
hashId: u
|
|
704
|
+
} = J("ProLayoutLogo", [Fn]), f = v(() => Tn(e, e.renderKey));
|
|
703
705
|
return () => i(n("div", {
|
|
704
706
|
id: "logo",
|
|
705
707
|
class: {
|
|
706
|
-
[`${
|
|
708
|
+
[`${u.value}`]: !0,
|
|
707
709
|
[`${o.value}-logo`]: !0,
|
|
708
710
|
[`${o.value}-logo-collapsed`]: !!e.collapsed
|
|
709
711
|
},
|
|
710
712
|
onClick: () => {
|
|
711
|
-
var
|
|
712
|
-
return (
|
|
713
|
+
var c;
|
|
714
|
+
return (c = e.onMenuHeaderClick) == null ? void 0 : c.call(e);
|
|
713
715
|
}
|
|
714
|
-
}, [n("a", null, [
|
|
716
|
+
}, [n("a", null, [f.value || null])]));
|
|
715
717
|
}
|
|
716
718
|
});
|
|
717
|
-
|
|
719
|
+
Ae.inheritAttrs = !1;
|
|
718
720
|
function Pn(e) {
|
|
719
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
721
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
720
722
|
}
|
|
721
723
|
const {
|
|
722
724
|
Sider: Ln
|
|
723
|
-
} =
|
|
725
|
+
} = ce, {
|
|
724
726
|
Item: qe
|
|
725
|
-
} =
|
|
726
|
-
props:
|
|
727
|
+
} = ae, bt = (e) => e ? n(Wt, null, null) : n(At, null, null), Ze = /* @__PURE__ */ j({
|
|
728
|
+
props: _,
|
|
727
729
|
inheritAttrs: !1,
|
|
728
730
|
setup(e) {
|
|
729
731
|
const {
|
|
@@ -731,54 +733,54 @@ const {
|
|
|
731
733
|
selectedKeys: a,
|
|
732
734
|
flatMenuData: o,
|
|
733
735
|
menuData: i,
|
|
734
|
-
openKeys:
|
|
735
|
-
} =
|
|
736
|
-
token:
|
|
737
|
-
} =
|
|
738
|
-
theme:
|
|
739
|
-
layout:
|
|
740
|
-
isMobile:
|
|
741
|
-
menuLoading:
|
|
742
|
-
breakpoint:
|
|
743
|
-
fixSiderbar:
|
|
736
|
+
openKeys: u
|
|
737
|
+
} = Q(), {
|
|
738
|
+
token: f
|
|
739
|
+
} = Se(), {
|
|
740
|
+
theme: c,
|
|
741
|
+
layout: S,
|
|
742
|
+
isMobile: b,
|
|
743
|
+
menuLoading: O,
|
|
744
|
+
breakpoint: g,
|
|
745
|
+
fixSiderbar: F,
|
|
744
746
|
collapsed: l,
|
|
745
|
-
siderWidth:
|
|
746
|
-
collapsedWidth:
|
|
747
|
+
siderWidth: s,
|
|
748
|
+
collapsedWidth: M,
|
|
747
749
|
menuExtraRender: I,
|
|
748
|
-
menuContentRender:
|
|
749
|
-
menuFooterRender:
|
|
750
|
-
collapsedButtonRender:
|
|
751
|
-
links:
|
|
752
|
-
} =
|
|
750
|
+
menuContentRender: x,
|
|
751
|
+
menuFooterRender: y,
|
|
752
|
+
collapsedButtonRender: m,
|
|
753
|
+
links: h
|
|
754
|
+
} = Ce(e), R = t({
|
|
753
755
|
suffixCls: "sider",
|
|
754
756
|
isPor: !0
|
|
755
757
|
}), {
|
|
756
|
-
wrapSSR:
|
|
757
|
-
hashId:
|
|
758
|
-
} =
|
|
759
|
-
var
|
|
760
|
-
return typeof
|
|
761
|
-
}),
|
|
762
|
-
var
|
|
758
|
+
wrapSSR: p,
|
|
759
|
+
hashId: w
|
|
760
|
+
} = J("ProLayoutSiderMenu", [Bn, kn, $n], R), $ = v(() => e.layout === "wide"), T = v(() => e.layout === "mix" && !e.isMobile && e.splitMenus), N = v(() => S.value === "side" || S.value === "simple"), z = v(() => (e.layout === "mix" || $.value) && "light" || c.value), H = v(() => e.collapsed ? e.collapsedWidth : e.siderWidth), P = v(() => [w.value, R, b.value ? "shadow" : null, `${R}-${z.value}`, F.value && e.layout !== "wide" ? `${R}-fixed` : null]), G = v(() => {
|
|
761
|
+
var A;
|
|
762
|
+
return typeof h.value == "function" ? (A = h.value) == null ? void 0 : A.call(h) : h.value;
|
|
763
|
+
}), E = v(() => m.value !== !1 ? m.value || bt : !1), Y = (A) => {
|
|
764
|
+
var d;
|
|
763
765
|
if (e.onSelect) {
|
|
764
|
-
if (
|
|
765
|
-
e.onSelect([(
|
|
766
|
+
if (U(T)) {
|
|
767
|
+
e.onSelect([(d = a == null ? void 0 : a.value) == null ? void 0 : d[0], ...A]);
|
|
766
768
|
return;
|
|
767
769
|
}
|
|
768
|
-
e.onSelect(
|
|
770
|
+
e.onSelect(A);
|
|
769
771
|
}
|
|
770
772
|
};
|
|
771
773
|
return () => {
|
|
772
|
-
var
|
|
773
|
-
const
|
|
774
|
-
drawer:
|
|
775
|
-
}, e), null) : null,
|
|
776
|
-
class: `${
|
|
777
|
-
theme:
|
|
774
|
+
var B;
|
|
775
|
+
const A = N.value ? n(Ae, X({
|
|
776
|
+
drawer: b.value
|
|
777
|
+
}, e), null) : null, d = I.value && ((B = I.value) == null ? void 0 : B.call(I, e)), C = n(gt, {
|
|
778
|
+
class: `${R}-menu ${w.value}`,
|
|
779
|
+
theme: z.value,
|
|
778
780
|
mode: "inline",
|
|
779
|
-
menuData:
|
|
781
|
+
menuData: T.value ? o.value : i.value,
|
|
780
782
|
iconfontUrl: e.iconfontUrl,
|
|
781
|
-
openKeys:
|
|
783
|
+
openKeys: u.value,
|
|
782
784
|
selectedKeys: a.value,
|
|
783
785
|
menuItemRender: e.menuItemRender,
|
|
784
786
|
subMenuItemRender: e.subMenuItemRender,
|
|
@@ -786,13 +788,13 @@ const {
|
|
|
786
788
|
style: {
|
|
787
789
|
width: "100%"
|
|
788
790
|
},
|
|
789
|
-
onOpenKeys: (
|
|
790
|
-
var
|
|
791
|
-
return e.onOpenKeys && ((
|
|
791
|
+
onOpenKeys: (k) => {
|
|
792
|
+
var D;
|
|
793
|
+
return e.onOpenKeys && ((D = e.onOpenKeys) == null ? void 0 : D.call(e, k));
|
|
792
794
|
},
|
|
793
|
-
onSelect:
|
|
795
|
+
onSelect: Y
|
|
794
796
|
}, null);
|
|
795
|
-
return
|
|
797
|
+
return T.value && U(o.value).length === 0 || i.value.length === 0 || S.value === "top" ? null : p(n(Pe, {
|
|
796
798
|
theme: {
|
|
797
799
|
components: {
|
|
798
800
|
Menu: ft({
|
|
@@ -801,102 +803,102 @@ const {
|
|
|
801
803
|
colorActiveBarHeight: 0,
|
|
802
804
|
colorActiveBarBorderSize: 0
|
|
803
805
|
// 主题颜色
|
|
804
|
-
}, (
|
|
806
|
+
}, (f == null ? void 0 : f.value) || {}, z.value, "sider")
|
|
805
807
|
}
|
|
806
808
|
}
|
|
807
809
|
}, {
|
|
808
|
-
default: () => [
|
|
810
|
+
default: () => [F.value && n("div", {
|
|
809
811
|
style: {
|
|
810
|
-
width: `${
|
|
812
|
+
width: `${H.value}px`,
|
|
811
813
|
overflow: "hidden",
|
|
812
|
-
flex: `0 0 ${
|
|
813
|
-
maxWidth: `${
|
|
814
|
-
minWidth: `${
|
|
814
|
+
flex: `0 0 ${H.value}px`,
|
|
815
|
+
maxWidth: `${H.value}px`,
|
|
816
|
+
minWidth: `${H.value}px`,
|
|
815
817
|
transition: "background-color 0.2s, min-width 0.2s, max-width 0.2s"
|
|
816
818
|
}
|
|
817
819
|
}, null), n(Ln, {
|
|
818
820
|
collapsible: !0,
|
|
819
821
|
trigger: null,
|
|
820
|
-
class:
|
|
822
|
+
class: P.value,
|
|
821
823
|
style: {
|
|
822
824
|
overflow: "hidden",
|
|
823
|
-
zIndex:
|
|
824
|
-
paddingTop:
|
|
825
|
+
zIndex: F.value ? 101 : void 0,
|
|
826
|
+
paddingTop: N.value || e.isMobile || $.value ? 0 : `${e.headerHeight}px`,
|
|
825
827
|
top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
|
|
826
828
|
height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
|
|
827
829
|
},
|
|
828
|
-
theme:
|
|
829
|
-
breakpoint:
|
|
830
|
+
theme: z.value,
|
|
831
|
+
breakpoint: g.value || void 0,
|
|
830
832
|
collapsed: l.value,
|
|
831
|
-
width:
|
|
832
|
-
collapsedWidth:
|
|
833
|
+
width: s.value,
|
|
834
|
+
collapsedWidth: M.value
|
|
833
835
|
}, {
|
|
834
836
|
default: () => {
|
|
835
|
-
var
|
|
836
|
-
return [
|
|
837
|
-
class: ["gx-pro-sider-loading",
|
|
838
|
-
}, [n(
|
|
839
|
-
spinning:
|
|
840
|
-
}, null)]),
|
|
837
|
+
var k, D;
|
|
838
|
+
return [O.value && n("div", {
|
|
839
|
+
class: ["gx-pro-sider-loading", w.value]
|
|
840
|
+
}, [n(ve, {
|
|
841
|
+
spinning: O.value
|
|
842
|
+
}, null)]), A || null, d && !e.collapsed && n("div", {
|
|
841
843
|
class: {
|
|
842
|
-
[`${
|
|
843
|
-
[`${
|
|
844
|
-
[`${
|
|
844
|
+
[`${w.value}`]: !0,
|
|
845
|
+
[`${R}-extra`]: !0,
|
|
846
|
+
[`${R}-extra-no-logo`]: !A
|
|
845
847
|
}
|
|
846
|
-
}, [
|
|
848
|
+
}, [d]), n("div", {
|
|
847
849
|
style: {
|
|
848
850
|
flex: "1 1 0%",
|
|
849
851
|
overflow: "hidden auto"
|
|
850
852
|
}
|
|
851
|
-
}, [
|
|
852
|
-
class: `${
|
|
853
|
-
}, [n(
|
|
854
|
-
theme:
|
|
853
|
+
}, [x.value && ((k = x.value) == null ? void 0 : k.call(x, e, C)) || C]), e.layout !== "wide" && n("div", {
|
|
854
|
+
class: `${R}-links ${w.value}`
|
|
855
|
+
}, [n(ae, {
|
|
856
|
+
theme: z.value,
|
|
855
857
|
inlineIndent: 16,
|
|
856
|
-
class: `${
|
|
858
|
+
class: `${R}-link-menu ${w.value}`,
|
|
857
859
|
selectedKeys: [],
|
|
858
860
|
openKeys: [],
|
|
859
861
|
mode: "inline"
|
|
860
862
|
}, {
|
|
861
|
-
default: () => [(
|
|
862
|
-
class: `${
|
|
863
|
-
key:
|
|
864
|
-
}, Pn(
|
|
865
|
-
default: () => [
|
|
866
|
-
})),
|
|
867
|
-
class: `${
|
|
863
|
+
default: () => [(G.value || []).map((W, ee) => n(qe, {
|
|
864
|
+
class: `${R}-link ${w.value}`,
|
|
865
|
+
key: ee
|
|
866
|
+
}, Pn(W) ? W : {
|
|
867
|
+
default: () => [W]
|
|
868
|
+
})), E.value && !b.value && n(qe, {
|
|
869
|
+
class: `${R}-collapsed-button ${w.value}`,
|
|
868
870
|
title: !1,
|
|
869
871
|
key: "collapsed",
|
|
870
872
|
onClick: () => {
|
|
871
|
-
var
|
|
872
|
-
e.onCollapse && ((
|
|
873
|
+
var W;
|
|
874
|
+
e.onCollapse && ((W = e.onCollapse) == null || W.call(e, !l.value));
|
|
873
875
|
}
|
|
874
876
|
}, {
|
|
875
877
|
default: () => {
|
|
876
|
-
var
|
|
877
|
-
return [(
|
|
878
|
+
var W;
|
|
879
|
+
return [(W = E.value) == null ? void 0 : W.call(E, l.value)];
|
|
878
880
|
}
|
|
879
881
|
})]
|
|
880
|
-
})]),
|
|
881
|
-
class: `${
|
|
882
|
-
}, [(
|
|
882
|
+
})]), y.value && n("div", {
|
|
883
|
+
class: `${R}-footer ${w.value}`
|
|
884
|
+
}, [(D = y.value) == null ? void 0 : D.call(y, e)])];
|
|
883
885
|
}
|
|
884
886
|
})]
|
|
885
887
|
}));
|
|
886
888
|
};
|
|
887
889
|
}
|
|
888
|
-
}),
|
|
890
|
+
}), Be = /* @__PURE__ */ j({
|
|
889
891
|
name: "SiderMenuWrapper",
|
|
890
892
|
inheritAttrs: !1,
|
|
891
893
|
props: {
|
|
892
|
-
...
|
|
894
|
+
..._,
|
|
893
895
|
matchMenuKeys: {
|
|
894
896
|
type: Array,
|
|
895
897
|
default: () => []
|
|
896
898
|
}
|
|
897
899
|
},
|
|
898
900
|
setup(e) {
|
|
899
|
-
return () => n(q, null, [e.isMobile ? n(
|
|
901
|
+
return () => n(q, null, [e.isMobile ? n(be, {
|
|
900
902
|
maskClosable: !0,
|
|
901
903
|
open: !e.collapsed,
|
|
902
904
|
closable: !1,
|
|
@@ -915,13 +917,13 @@ const {
|
|
|
915
917
|
flexDirection: "row"
|
|
916
918
|
}
|
|
917
919
|
}, {
|
|
918
|
-
default: () => [n(Ze,
|
|
920
|
+
default: () => [n(Ze, X(e, {
|
|
919
921
|
collapsed: e.isMobile ? !1 : e.collapsed
|
|
920
922
|
}), null)]
|
|
921
923
|
}) : n(Ze, e, null)]);
|
|
922
924
|
}
|
|
923
925
|
}), pt = Symbol("pro-app-context"), Dn = (e = Symbol(), t) => ot(e, t || {}), Nn = (e) => {
|
|
924
|
-
|
|
926
|
+
Te(pt, e);
|
|
925
927
|
}, zn = () => Dn(pt, []);
|
|
926
928
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
927
929
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
@@ -947,16 +949,16 @@ const Kn = ({ suffixCls: e, customizePrefixCls: t, isPor: a, className: o }) =>
|
|
|
947
949
|
const i = o || (a ? "gx-pro" : "gx");
|
|
948
950
|
return t || (e ? `${i}-${e}` : i);
|
|
949
951
|
}, Un = (e) => {
|
|
950
|
-
const { componentCls: t, colorText: a, fontSize: o, lineHeight: i, fontFamily:
|
|
952
|
+
const { componentCls: t, colorText: a, fontSize: o, lineHeight: i, fontFamily: u } = e;
|
|
951
953
|
return {
|
|
952
954
|
[t]: {
|
|
953
955
|
color: a,
|
|
954
956
|
fontSize: o,
|
|
955
957
|
lineHeight: i,
|
|
956
|
-
fontFamily:
|
|
958
|
+
fontFamily: u
|
|
957
959
|
}
|
|
958
960
|
};
|
|
959
|
-
}, En = ["emptyText", "indicator"],
|
|
961
|
+
}, En = ["emptyText", "indicator"], Oe = /* @__PURE__ */ j({
|
|
960
962
|
name: "GProApp",
|
|
961
963
|
props: {
|
|
962
964
|
rootClassName: String,
|
|
@@ -972,20 +974,20 @@ const Kn = ({ suffixCls: e, customizePrefixCls: t, isPor: a, className: o }) =>
|
|
|
972
974
|
}), {
|
|
973
975
|
wrapSSR: o,
|
|
974
976
|
hashId: i
|
|
975
|
-
} =
|
|
977
|
+
} = J("BaseApp", [Un], a), u = v(() => An(En, t, e)), f = v(() => [i.value, a, e.rootClassName]);
|
|
976
978
|
return Nn({
|
|
977
|
-
emptyText: v(() =>
|
|
978
|
-
indicator: v(() =>
|
|
979
|
+
emptyText: v(() => u.value.emptyText),
|
|
980
|
+
indicator: v(() => u.value.indicator)
|
|
979
981
|
}), () => {
|
|
980
|
-
var
|
|
982
|
+
var c;
|
|
981
983
|
return o(n("div", {
|
|
982
|
-
class:
|
|
983
|
-
}, [(
|
|
984
|
+
class: f.value
|
|
985
|
+
}, [(c = t.default) == null ? void 0 : c.call(t)]));
|
|
984
986
|
};
|
|
985
987
|
}
|
|
986
988
|
});
|
|
987
|
-
|
|
988
|
-
const
|
|
989
|
+
Oe.install = (e) => (e.component(Oe.name, Oe), e);
|
|
990
|
+
const fe = {
|
|
989
991
|
pageHeaderRender: {
|
|
990
992
|
type: [Object, Function, Boolean],
|
|
991
993
|
default: () => {
|
|
@@ -1018,46 +1020,46 @@ const ue = {
|
|
|
1018
1020
|
marginTop: "8px"
|
|
1019
1021
|
}
|
|
1020
1022
|
}
|
|
1021
|
-
}), Yn = /* @__PURE__ */
|
|
1023
|
+
}), Yn = /* @__PURE__ */ j({
|
|
1022
1024
|
name: "ProPageHeader",
|
|
1023
1025
|
props: {
|
|
1024
|
-
content:
|
|
1025
|
-
breadcrumb:
|
|
1026
|
+
content: fe.contentRender,
|
|
1027
|
+
breadcrumb: fe.breadcrumbRender
|
|
1026
1028
|
},
|
|
1027
1029
|
setup(e) {
|
|
1028
1030
|
const {
|
|
1029
1031
|
breadcrumb: t,
|
|
1030
1032
|
getPrefixCls: a
|
|
1031
|
-
} =
|
|
1033
|
+
} = Q(), o = a({
|
|
1032
1034
|
isPor: !0,
|
|
1033
1035
|
suffixCls: "page-header"
|
|
1034
1036
|
}), {
|
|
1035
1037
|
wrapSSR: i,
|
|
1036
|
-
hashId:
|
|
1037
|
-
} =
|
|
1038
|
-
var
|
|
1038
|
+
hashId: u
|
|
1039
|
+
} = J("ProPageHeader", [Xn], o), f = v(() => {
|
|
1040
|
+
var c;
|
|
1039
1041
|
return {
|
|
1040
1042
|
...t.value,
|
|
1041
|
-
itemRender: ((
|
|
1042
|
-
route:
|
|
1043
|
-
}) =>
|
|
1044
|
-
to:
|
|
1043
|
+
itemRender: ((c = t.value) == null ? void 0 : c.itemRender) || (({
|
|
1044
|
+
route: S
|
|
1045
|
+
}) => S.path ? n(Vt, {
|
|
1046
|
+
to: S.path
|
|
1045
1047
|
}, {
|
|
1046
|
-
default: () => [
|
|
1047
|
-
}) :
|
|
1048
|
+
default: () => [S.breadcrumbName]
|
|
1049
|
+
}) : S.breadcrumbName)
|
|
1048
1050
|
};
|
|
1049
1051
|
});
|
|
1050
1052
|
return () => {
|
|
1051
|
-
var
|
|
1053
|
+
var c, S;
|
|
1052
1054
|
return i(n("div", {
|
|
1053
|
-
class: [`${o}`,
|
|
1054
|
-
}, [e.breadcrumb ? (
|
|
1055
|
-
class: [`${o}-content`,
|
|
1056
|
-
}, [(
|
|
1055
|
+
class: [`${o}`, u.value, `${o}-has-breadcrumb`]
|
|
1056
|
+
}, [e.breadcrumb ? (c = e.breadcrumb) == null ? void 0 : c.call(e, f.value) : n(Tt, f.value, null), e.content && n("div", {
|
|
1057
|
+
class: [`${o}-content`, u.value]
|
|
1058
|
+
}, [(S = e.content) == null ? void 0 : S.call(e)])]));
|
|
1057
1059
|
};
|
|
1058
1060
|
}
|
|
1059
1061
|
}), _n = (e) => {
|
|
1060
|
-
var t, a, o, i,
|
|
1062
|
+
var t, a, o, i, u, f, c, S;
|
|
1061
1063
|
return {
|
|
1062
1064
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1063
1065
|
[e.componentCls]: {
|
|
@@ -1070,28 +1072,28 @@ const ue = {
|
|
|
1070
1072
|
},
|
|
1071
1073
|
[e.componentCls]: {
|
|
1072
1074
|
["&-children-content"]: {
|
|
1073
|
-
marginInline: ((
|
|
1074
|
-
marginBlockStart: ((
|
|
1075
|
+
marginInline: ((f = (u = e.layout) == null ? void 0 : u.pageContainer) == null ? void 0 : f.paddingBlockPageContainerContent) ?? 24,
|
|
1076
|
+
marginBlockStart: ((S = (c = e.layout) == null ? void 0 : c.pageContainer) == null ? void 0 : S.paddingBlockPageContainerContent) ?? 24,
|
|
1075
1077
|
padding: "inherit"
|
|
1076
1078
|
}
|
|
1077
1079
|
}
|
|
1078
1080
|
};
|
|
1079
1081
|
};
|
|
1080
1082
|
function Gn(e) {
|
|
1081
|
-
return
|
|
1082
|
-
const a =
|
|
1083
|
+
return Ne("ProPageContainter", (t) => {
|
|
1084
|
+
const a = ze(t, {
|
|
1083
1085
|
gridContent: `${t.proComponentsCls}-grid-content`
|
|
1084
1086
|
});
|
|
1085
1087
|
return [_n(a)];
|
|
1086
1088
|
}, e);
|
|
1087
1089
|
}
|
|
1088
1090
|
function qn(e) {
|
|
1089
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1091
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
1090
1092
|
}
|
|
1091
|
-
const Di = /* @__PURE__ */
|
|
1093
|
+
const Di = /* @__PURE__ */ j({
|
|
1092
1094
|
inheritAttrs: !1,
|
|
1093
1095
|
name: "GProPageContainer",
|
|
1094
|
-
props:
|
|
1096
|
+
props: fe,
|
|
1095
1097
|
setup(e, {
|
|
1096
1098
|
slots: t,
|
|
1097
1099
|
attrs: a
|
|
@@ -1099,78 +1101,79 @@ const Di = /* @__PURE__ */ W({
|
|
|
1099
1101
|
const {
|
|
1100
1102
|
getPrefixCls: o,
|
|
1101
1103
|
hasContentWide: i,
|
|
1102
|
-
waterMark:
|
|
1103
|
-
pageHeaderRender:
|
|
1104
|
-
pageContentStyle:
|
|
1105
|
-
pageCardProps:
|
|
1106
|
-
usePageCard:
|
|
1107
|
-
} =
|
|
1108
|
-
indicator:
|
|
1109
|
-
} = zn(),
|
|
1104
|
+
waterMark: u,
|
|
1105
|
+
pageHeaderRender: f,
|
|
1106
|
+
pageContentStyle: c,
|
|
1107
|
+
pageCardProps: S,
|
|
1108
|
+
usePageCard: b
|
|
1109
|
+
} = Q(), {
|
|
1110
|
+
indicator: O
|
|
1111
|
+
} = zn(), g = o({
|
|
1110
1112
|
suffixCls: "page-container",
|
|
1111
1113
|
isPor: !0
|
|
1112
|
-
}),
|
|
1114
|
+
}), F = o({
|
|
1113
1115
|
suffixCls: "grid-content",
|
|
1114
1116
|
isPor: !0
|
|
1115
|
-
}), l = v(() => e.pageCardProps ||
|
|
1116
|
-
wrapSSR:
|
|
1117
|
+
}), l = v(() => e.pageCardProps || S.value), s = v(() => e.pageContentStyle || c.value), {
|
|
1118
|
+
wrapSSR: M,
|
|
1117
1119
|
hashId: I
|
|
1118
|
-
} = Gn(
|
|
1119
|
-
var
|
|
1120
|
+
} = Gn(g), x = () => {
|
|
1121
|
+
var m;
|
|
1120
1122
|
return n("div", {
|
|
1121
|
-
class: `${
|
|
1122
|
-
}, [(Qt(e.usePageCard) ? e.usePageCard :
|
|
1123
|
+
class: `${g}-children-content ${I.value}`
|
|
1124
|
+
}, [(Qt(e.usePageCard) ? e.usePageCard : b.value) ? n(Pt, X(l.value ? le(l.value, ["loading", "bodyStyle"]) : {}, {
|
|
1123
1125
|
style: i.value ? {
|
|
1124
1126
|
minHeight: "853px"
|
|
1125
1127
|
} : void 0,
|
|
1126
1128
|
bordered: !1
|
|
1127
1129
|
}), {
|
|
1128
1130
|
default: () => {
|
|
1129
|
-
var
|
|
1130
|
-
return [(
|
|
1131
|
+
var h;
|
|
1132
|
+
return [(h = t.default) == null ? void 0 : h.call(t)];
|
|
1131
1133
|
}
|
|
1132
|
-
}) : (
|
|
1133
|
-
},
|
|
1134
|
-
let
|
|
1135
|
-
return n(q, null, [e.waterMark &&
|
|
1136
|
-
default: () => [
|
|
1137
|
-
}) :
|
|
1134
|
+
}) : (m = t.default) == null ? void 0 : m.call(t)]);
|
|
1135
|
+
}, y = () => {
|
|
1136
|
+
let m;
|
|
1137
|
+
return n(q, null, [e.waterMark && u.value ? n(Jt, null, qn(m = x()) ? m : {
|
|
1138
|
+
default: () => [m]
|
|
1139
|
+
}) : x()]);
|
|
1138
1140
|
};
|
|
1139
1141
|
return () => {
|
|
1140
|
-
const
|
|
1141
|
-
return
|
|
1142
|
+
const m = K(t, e, "pageHeaderRender") || f.value, h = K(t, e, "breadcrumbRender"), R = K(t, e, "contentRender");
|
|
1143
|
+
return M(n(ve, {
|
|
1142
1144
|
spinning: e.loading,
|
|
1143
|
-
indicator:
|
|
1145
|
+
indicator: O == null ? void 0 : O.value
|
|
1144
1146
|
}, {
|
|
1145
1147
|
default: () => [n("div", {
|
|
1146
1148
|
style: a.style,
|
|
1147
1149
|
class: {
|
|
1148
1150
|
[`${I.value}`]: !0,
|
|
1149
|
-
[`${
|
|
1151
|
+
[`${g}`]: !0
|
|
1150
1152
|
}
|
|
1151
|
-
}, [!i.value &&
|
|
1153
|
+
}, [!i.value && m !== !1 && (m || n(Yn, {
|
|
1152
1154
|
style: e.pageHeaderStyle,
|
|
1153
|
-
breadcrumb:
|
|
1154
|
-
content:
|
|
1155
|
+
breadcrumb: h,
|
|
1156
|
+
content: R
|
|
1155
1157
|
}, null)), n("div", {
|
|
1156
|
-
class: [
|
|
1158
|
+
class: [F, I.value]
|
|
1157
1159
|
}, [n("div", {
|
|
1158
|
-
class: `${
|
|
1159
|
-
style:
|
|
1160
|
-
}, [
|
|
1160
|
+
class: `${F}-children ${I.value}`,
|
|
1161
|
+
style: s.value
|
|
1162
|
+
}, [y()])])])]
|
|
1161
1163
|
}));
|
|
1162
1164
|
};
|
|
1163
1165
|
}
|
|
1164
|
-
}),
|
|
1165
|
-
...
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1166
|
+
}), Ke = {
|
|
1167
|
+
...se,
|
|
1168
|
+
...Ie,
|
|
1169
|
+
logo: re.logo,
|
|
1170
|
+
logoStyle: re.logoStyle,
|
|
1171
|
+
logoDirection: re.logoDirection,
|
|
1169
1172
|
menuLoading: Boolean,
|
|
1170
1173
|
autoHideHeader: Boolean,
|
|
1171
1174
|
collapsed: Boolean,
|
|
1172
1175
|
isMobile: Boolean,
|
|
1173
|
-
siderWidth:
|
|
1176
|
+
siderWidth: _.siderWidth,
|
|
1174
1177
|
headerTheme: {
|
|
1175
1178
|
type: String,
|
|
1176
1179
|
default: "dark"
|
|
@@ -1194,14 +1197,14 @@ const Di = /* @__PURE__ */ W({
|
|
|
1194
1197
|
default: () => {
|
|
1195
1198
|
}
|
|
1196
1199
|
},
|
|
1197
|
-
collapsedButtonRender:
|
|
1198
|
-
matchMenuKeys:
|
|
1199
|
-
onCollapse:
|
|
1200
|
-
onOpenKeys:
|
|
1200
|
+
collapsedButtonRender: _.collapsedButtonRender,
|
|
1201
|
+
matchMenuKeys: _.matchMenuKeys,
|
|
1202
|
+
onCollapse: _.onCollapse,
|
|
1203
|
+
onOpenKeys: _.onOpenKeys,
|
|
1201
1204
|
onMenuHeaderClick: Function,
|
|
1202
|
-
onSelect:
|
|
1205
|
+
onSelect: _.onSelect
|
|
1203
1206
|
}, vt = {
|
|
1204
|
-
...
|
|
1207
|
+
...Ke,
|
|
1205
1208
|
headerTitleRender: {
|
|
1206
1209
|
type: [Object, Function],
|
|
1207
1210
|
default: () => {
|
|
@@ -1218,15 +1221,15 @@ const Di = /* @__PURE__ */ W({
|
|
|
1218
1221
|
}
|
|
1219
1222
|
},
|
|
1220
1223
|
hasSiderMenu: Boolean,
|
|
1221
|
-
collapsedWidth:
|
|
1222
|
-
siderWidth:
|
|
1224
|
+
collapsedWidth: _.collapsedWidth,
|
|
1225
|
+
siderWidth: _.siderWidth
|
|
1223
1226
|
}, xt = {
|
|
1224
1227
|
loading: L.looseBool,
|
|
1225
|
-
isMobile:
|
|
1226
|
-
collapsed:
|
|
1227
|
-
siderWidth:
|
|
1228
|
-
collapsedWidth:
|
|
1229
|
-
isFixedMultiTab:
|
|
1228
|
+
isMobile: _.isMobile,
|
|
1229
|
+
collapsed: Ie.collapsed,
|
|
1230
|
+
siderWidth: _.siderWidth,
|
|
1231
|
+
collapsedWidth: _.collapsedWidth,
|
|
1232
|
+
isFixedMultiTab: se.fixedMultiTab,
|
|
1230
1233
|
onReloadPage: {
|
|
1231
1234
|
type: Function
|
|
1232
1235
|
},
|
|
@@ -1282,7 +1285,7 @@ const Di = /* @__PURE__ */ W({
|
|
|
1282
1285
|
title: "Ant Design Vue",
|
|
1283
1286
|
href: "https://next.antdv.com/components/overview-cn/",
|
|
1284
1287
|
blankTarget: !0
|
|
1285
|
-
}],
|
|
1288
|
+
}], ke = /* @__PURE__ */ j({
|
|
1286
1289
|
name: "GlobalFooter",
|
|
1287
1290
|
props: {
|
|
1288
1291
|
links: {
|
|
@@ -1295,13 +1298,13 @@ const Di = /* @__PURE__ */ W({
|
|
|
1295
1298
|
}
|
|
1296
1299
|
},
|
|
1297
1300
|
setup(e) {
|
|
1298
|
-
const t =
|
|
1301
|
+
const t = me({
|
|
1299
1302
|
suffixCls: "global-footer",
|
|
1300
1303
|
isPor: !0
|
|
1301
1304
|
}), {
|
|
1302
1305
|
wrapSSR: a,
|
|
1303
1306
|
hashId: o
|
|
1304
|
-
} =
|
|
1307
|
+
} = J("ProLayoutFooter", [Zn], t);
|
|
1305
1308
|
return () => a(n(Lt, {
|
|
1306
1309
|
style: {
|
|
1307
1310
|
padding: 0
|
|
@@ -1318,18 +1321,18 @@ const Di = /* @__PURE__ */ W({
|
|
|
1318
1321
|
href: i.href
|
|
1319
1322
|
}, [i.title]))]), e.copyright && n("div", {
|
|
1320
1323
|
class: `${t}-copyright ${o.value}`
|
|
1321
|
-
}, [
|
|
1324
|
+
}, [te("Copyright 2022 "), n("a", {
|
|
1322
1325
|
href: "https://beian.miit.gov.cn/"
|
|
1323
1326
|
}, [e.copyright])])])]
|
|
1324
1327
|
}));
|
|
1325
1328
|
}
|
|
1326
1329
|
}), wt = {
|
|
1327
|
-
...
|
|
1328
|
-
...
|
|
1329
|
-
...
|
|
1330
|
+
...se,
|
|
1331
|
+
...Ke,
|
|
1332
|
+
..._,
|
|
1330
1333
|
...vt,
|
|
1331
1334
|
...xt,
|
|
1332
|
-
...
|
|
1335
|
+
...fe,
|
|
1333
1336
|
pure: Boolean,
|
|
1334
1337
|
token: Object,
|
|
1335
1338
|
waterMark: {
|
|
@@ -1457,7 +1460,7 @@ const Di = /* @__PURE__ */ W({
|
|
|
1457
1460
|
"&-fixed": {
|
|
1458
1461
|
position: "fixed",
|
|
1459
1462
|
height: 62,
|
|
1460
|
-
top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) ||
|
|
1463
|
+
top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) || V.headerHeight,
|
|
1461
1464
|
right: 0,
|
|
1462
1465
|
zIndex: 9,
|
|
1463
1466
|
transition: "width .2s"
|
|
@@ -1466,8 +1469,8 @@ const Di = /* @__PURE__ */ W({
|
|
|
1466
1469
|
};
|
|
1467
1470
|
};
|
|
1468
1471
|
function ta(e) {
|
|
1469
|
-
return
|
|
1470
|
-
const a =
|
|
1472
|
+
return Ne("ProMultiTabs", (t) => {
|
|
1473
|
+
const a = ze(t, {
|
|
1471
1474
|
componentWrapCls: `${t.componentCls}-wrap`
|
|
1472
1475
|
});
|
|
1473
1476
|
return [ea(a)];
|
|
@@ -1492,9 +1495,9 @@ const na = [
|
|
|
1492
1495
|
}
|
|
1493
1496
|
];
|
|
1494
1497
|
function aa(e) {
|
|
1495
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1498
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
1496
1499
|
}
|
|
1497
|
-
const oa =
|
|
1500
|
+
const oa = Le.TabPane, ia = ae.Item, la = /* @__PURE__ */ j({
|
|
1498
1501
|
props: {
|
|
1499
1502
|
...xt,
|
|
1500
1503
|
visible: {
|
|
@@ -1507,206 +1510,212 @@ const oa = Fe.TabPane, ia = ee.Item, la = /* @__PURE__ */ W({
|
|
|
1507
1510
|
const {
|
|
1508
1511
|
isMobile: t,
|
|
1509
1512
|
isFixedMultiTab: a
|
|
1510
|
-
} =
|
|
1513
|
+
} = Ce(e), o = Re(!1), i = lt({
|
|
1511
1514
|
activeKey: "",
|
|
1512
1515
|
contextMenuActiveKey: ""
|
|
1513
|
-
}),
|
|
1514
|
-
menuData:
|
|
1515
|
-
|
|
1516
|
-
|
|
1516
|
+
}), u = De(), {
|
|
1517
|
+
menuData: f,
|
|
1518
|
+
flatMenuData: c,
|
|
1519
|
+
layout: S,
|
|
1520
|
+
splitMenus: b,
|
|
1521
|
+
getPrefixCls: O
|
|
1522
|
+
} = Q(), g = O({
|
|
1517
1523
|
isPor: !0,
|
|
1518
1524
|
suffixCls: "multi-tab"
|
|
1519
1525
|
}), {
|
|
1520
|
-
wrapSSR:
|
|
1521
|
-
hashId:
|
|
1522
|
-
} = ta(
|
|
1523
|
-
|
|
1524
|
-
var
|
|
1525
|
-
(
|
|
1526
|
+
wrapSSR: F,
|
|
1527
|
+
hashId: l
|
|
1528
|
+
} = ta(g), s = Re([]);
|
|
1529
|
+
de(s, () => {
|
|
1530
|
+
var d;
|
|
1531
|
+
(d = e.onChangeTabs) == null || d.call(e, He(U(s)));
|
|
1526
1532
|
}, {
|
|
1527
1533
|
deep: !0
|
|
1528
1534
|
});
|
|
1529
|
-
const
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
+
const M = v(() => S.value === "mix" && !e.isMobile && b.value), I = v(() => u.currentRoute.value.fullPath || u.currentRoute.value.path), x = v(() => a.value && !t.value), y = v(() => {
|
|
1536
|
+
const d = !(M.value && U(c.value).length === 0 || f.value.length === 0 || S.value === "top");
|
|
1537
|
+
return x.value && d ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
|
|
1538
|
+
}), m = v(() => dt(`${g}-wrap`, {
|
|
1539
|
+
[`${l.value}`]: !0,
|
|
1540
|
+
[`${g}-wrap-fixed`]: e.isFixedMultiTab,
|
|
1541
|
+
[`${g}-wrap-loading`]: e.loading
|
|
1542
|
+
})), h = v(() => {
|
|
1543
|
+
const d = {
|
|
1535
1544
|
display: e.visible ? void 0 : "none"
|
|
1536
1545
|
};
|
|
1537
1546
|
return e.isFixedMultiTab ? {
|
|
1538
1547
|
margin: 0,
|
|
1539
|
-
width:
|
|
1548
|
+
width: y.value,
|
|
1540
1549
|
paddingTop: "6px",
|
|
1541
1550
|
zIndex: 99,
|
|
1542
|
-
...
|
|
1543
|
-
} :
|
|
1544
|
-
}),
|
|
1545
|
-
if (
|
|
1546
|
-
const
|
|
1547
|
-
path:
|
|
1548
|
-
fullPath:
|
|
1549
|
-
query:
|
|
1550
|
-
params:
|
|
1551
|
-
name:
|
|
1551
|
+
...d
|
|
1552
|
+
} : d;
|
|
1553
|
+
}), R = (d) => (d.fullPath || d.path) === I.value, p = (d) => {
|
|
1554
|
+
if (d.name && d.meta && d.meta.tagHidden !== !0) {
|
|
1555
|
+
const C = d.fullPath || d.path, B = s.value.find((D) => D.fullPath === C), k = {
|
|
1556
|
+
path: d.path,
|
|
1557
|
+
fullPath: C,
|
|
1558
|
+
query: d.query,
|
|
1559
|
+
params: d.params,
|
|
1560
|
+
name: d.name,
|
|
1552
1561
|
meta: {
|
|
1553
|
-
...
|
|
1562
|
+
...d.meta
|
|
1554
1563
|
}
|
|
1555
1564
|
};
|
|
1556
|
-
|
|
1565
|
+
B ? Object.assign(B, k) : d.meta.tagFixed ? s.value.unshift(k) : s.value.push(k), R(d) && (i.activeKey = C);
|
|
1557
1566
|
}
|
|
1558
|
-
},
|
|
1559
|
-
|
|
1560
|
-
|
|
1567
|
+
}, w = (d) => {
|
|
1568
|
+
d.forEach((C) => {
|
|
1569
|
+
C.meta && C.meta.tagFixed && p(C), C.children && w(C.children);
|
|
1561
1570
|
});
|
|
1562
1571
|
};
|
|
1563
|
-
|
|
1564
|
-
|
|
1572
|
+
de(() => f.value, (d) => {
|
|
1573
|
+
w(d);
|
|
1565
1574
|
}, {
|
|
1566
1575
|
deep: !0,
|
|
1567
1576
|
immediate: !0
|
|
1568
|
-
}),
|
|
1569
|
-
|
|
1577
|
+
}), de(() => u.currentRoute.value, (d) => {
|
|
1578
|
+
p(d);
|
|
1570
1579
|
}, {
|
|
1571
1580
|
deep: !0,
|
|
1572
1581
|
immediate: !0
|
|
1573
1582
|
});
|
|
1574
|
-
const
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1577
|
-
},
|
|
1578
|
-
const
|
|
1579
|
-
s.value = s.value.filter((
|
|
1580
|
-
},
|
|
1581
|
-
const
|
|
1582
|
-
i.activeKey !== (
|
|
1583
|
-
},
|
|
1584
|
-
var
|
|
1585
|
-
o.value = !0, e.onReloadPage && ((
|
|
1583
|
+
const $ = () => {
|
|
1584
|
+
const d = s.value.slice(-1)[0];
|
|
1585
|
+
d ? u.push(d) : u.push("/");
|
|
1586
|
+
}, T = async (d) => {
|
|
1587
|
+
const C = s.value.find((B) => d === B.fullPath);
|
|
1588
|
+
s.value = s.value.filter((B) => B.fullPath !== d), C && R(C) && $();
|
|
1589
|
+
}, N = (d) => {
|
|
1590
|
+
const C = s.value.find((B) => B.fullPath === d);
|
|
1591
|
+
i.activeKey !== (C == null ? void 0 : C.fullPath) && (C != null && C.fullPath) && u.push(C == null ? void 0 : C.fullPath);
|
|
1592
|
+
}, z = () => {
|
|
1593
|
+
var d;
|
|
1594
|
+
o.value = !0, e.onReloadPage && ((d = e.onReloadPage) == null || d.call(e)), setTimeout(() => {
|
|
1586
1595
|
o.value = !1;
|
|
1587
1596
|
}, 500);
|
|
1588
|
-
},
|
|
1589
|
-
const
|
|
1590
|
-
switch (
|
|
1597
|
+
}, H = (d) => d.meta && d.meta.tagFixed, P = (d) => i[d], G = (d, C) => {
|
|
1598
|
+
const B = s.value.findIndex((k) => k.fullPath === P(C));
|
|
1599
|
+
switch (d) {
|
|
1591
1600
|
case "closeOthersTabs":
|
|
1592
|
-
s.value = s.value.filter((
|
|
1593
|
-
var
|
|
1594
|
-
return
|
|
1601
|
+
s.value = s.value.filter((k) => {
|
|
1602
|
+
var D;
|
|
1603
|
+
return k.fullPath === P(C) || ((D = k.meta) == null ? void 0 : D.tagFixed);
|
|
1595
1604
|
});
|
|
1596
1605
|
break;
|
|
1597
1606
|
case "closeLeftTabs":
|
|
1598
|
-
|
|
1599
|
-
var
|
|
1600
|
-
return
|
|
1607
|
+
B && (s.value = s.value.filter((k, D) => {
|
|
1608
|
+
var W;
|
|
1609
|
+
return D >= B || ((W = k.meta) == null ? void 0 : W.tagFixed);
|
|
1601
1610
|
}));
|
|
1602
1611
|
break;
|
|
1603
1612
|
case "closeRightTabs":
|
|
1604
|
-
|
|
1605
|
-
var
|
|
1606
|
-
return
|
|
1613
|
+
B && (s.value = s.value.filter((k, D) => {
|
|
1614
|
+
var W;
|
|
1615
|
+
return D <= B || ((W = k.meta) == null ? void 0 : W.tagFixed);
|
|
1607
1616
|
}));
|
|
1608
1617
|
break;
|
|
1609
1618
|
case "reloadPage":
|
|
1610
|
-
(
|
|
1619
|
+
(B === 0 || B) && i.activeKey === P(C) && z();
|
|
1611
1620
|
break;
|
|
1612
1621
|
}
|
|
1613
|
-
i.activeKey !==
|
|
1614
|
-
},
|
|
1615
|
-
const
|
|
1616
|
-
switch (
|
|
1622
|
+
i.activeKey !== P(C) && u.push(P(C));
|
|
1623
|
+
}, E = (d, C) => {
|
|
1624
|
+
const B = s.value.findIndex((k) => k.fullPath === C);
|
|
1625
|
+
switch (d) {
|
|
1617
1626
|
case "closeOthersTabs":
|
|
1618
|
-
return s.value.filter((
|
|
1619
|
-
var
|
|
1620
|
-
return
|
|
1627
|
+
return s.value.filter((ee, ne) => {
|
|
1628
|
+
var Z;
|
|
1629
|
+
return ne !== B && !((Z = ee.meta) != null && Z.tagFixed);
|
|
1621
1630
|
}).length === 0;
|
|
1622
1631
|
case "closeLeftTabs":
|
|
1623
|
-
return s.value.filter((
|
|
1624
|
-
var
|
|
1625
|
-
return
|
|
1632
|
+
return s.value.filter((ee, ne) => {
|
|
1633
|
+
var Z;
|
|
1634
|
+
return ne < B && !((Z = ee.meta) != null && Z.tagFixed);
|
|
1626
1635
|
}).length === 0;
|
|
1627
1636
|
case "closeRightTabs":
|
|
1628
|
-
return s.value.filter((
|
|
1629
|
-
var
|
|
1630
|
-
return
|
|
1637
|
+
return s.value.filter((ee, ne) => {
|
|
1638
|
+
var Z;
|
|
1639
|
+
return ne > B && !((Z = ee.meta) != null && Z.tagFixed);
|
|
1631
1640
|
}).length === 0;
|
|
1632
1641
|
}
|
|
1633
|
-
},
|
|
1634
|
-
let
|
|
1642
|
+
}, Y = (d) => {
|
|
1643
|
+
let C;
|
|
1635
1644
|
const {
|
|
1636
|
-
path:
|
|
1637
|
-
stateType:
|
|
1638
|
-
} =
|
|
1639
|
-
return n(
|
|
1645
|
+
path: B,
|
|
1646
|
+
stateType: k
|
|
1647
|
+
} = d;
|
|
1648
|
+
return n(ae, {
|
|
1640
1649
|
selectedKeys: [],
|
|
1641
1650
|
onClick: ({
|
|
1642
|
-
key:
|
|
1643
|
-
}) => D
|
|
1644
|
-
}, aa(
|
|
1645
|
-
key:
|
|
1646
|
-
disabled:
|
|
1651
|
+
key: D
|
|
1652
|
+
}) => G(D, k)
|
|
1653
|
+
}, aa(C = na.map((D) => n(ia, {
|
|
1654
|
+
key: D.key,
|
|
1655
|
+
disabled: E(D.key, B)
|
|
1647
1656
|
}, {
|
|
1648
|
-
default: () => [
|
|
1649
|
-
}))) ?
|
|
1650
|
-
default: () => [
|
|
1657
|
+
default: () => [D.label]
|
|
1658
|
+
}))) ? C : {
|
|
1659
|
+
default: () => [C]
|
|
1651
1660
|
});
|
|
1652
|
-
},
|
|
1661
|
+
}, A = (d) => {
|
|
1653
1662
|
const {
|
|
1654
|
-
router:
|
|
1655
|
-
} =
|
|
1663
|
+
router: C
|
|
1664
|
+
} = d;
|
|
1656
1665
|
return n(Ye, {
|
|
1657
1666
|
trigger: "contextmenu",
|
|
1658
|
-
overlay: n(
|
|
1659
|
-
path: (
|
|
1667
|
+
overlay: n(Y, {
|
|
1668
|
+
path: (C == null ? void 0 : C.fullPath) || "",
|
|
1660
1669
|
stateType: "contextMenuActiveKey"
|
|
1661
1670
|
}, null),
|
|
1662
|
-
onOpenChange: (
|
|
1663
|
-
i.contextMenuActiveKey =
|
|
1671
|
+
onOpenChange: (B) => {
|
|
1672
|
+
i.contextMenuActiveKey = B && C.fullPath || "";
|
|
1664
1673
|
}
|
|
1665
1674
|
}, {
|
|
1666
1675
|
default: () => {
|
|
1667
|
-
var
|
|
1676
|
+
var B;
|
|
1668
1677
|
return [n("div", {
|
|
1669
|
-
class: [`${
|
|
1670
|
-
}, [(
|
|
1671
|
-
class: [`${
|
|
1678
|
+
class: [`${g}-title`, l.value]
|
|
1679
|
+
}, [(B = C.meta) == null ? void 0 : B.title, i.activeKey === C.fullPath && n(Et, {
|
|
1680
|
+
class: [`${g}-reload-btn`, l.value],
|
|
1672
1681
|
spin: o.value,
|
|
1673
|
-
onClick: (
|
|
1674
|
-
|
|
1682
|
+
onClick: (k) => {
|
|
1683
|
+
k.stopPropagation(), !o.value && z();
|
|
1675
1684
|
}
|
|
1676
|
-
}, null), s.value.length > 1 && !
|
|
1677
|
-
class: [`${
|
|
1678
|
-
onClick: (
|
|
1679
|
-
|
|
1685
|
+
}, null), s.value.length > 1 && !H(C) && n(st, {
|
|
1686
|
+
class: [`${g}-close-btn`, l.value],
|
|
1687
|
+
onClick: (k) => {
|
|
1688
|
+
k.stopPropagation(), !o.value && T((C == null ? void 0 : C.fullPath) || "");
|
|
1680
1689
|
}
|
|
1681
1690
|
}, null)])];
|
|
1682
1691
|
}
|
|
1683
1692
|
});
|
|
1684
1693
|
};
|
|
1685
|
-
return () =>
|
|
1686
|
-
class: [`${
|
|
1687
|
-
}, null), [[kt, e.visible]]), n(
|
|
1694
|
+
return () => F(n(q, null, [!!e.isFixedMultiTab && Bt(n("div", {
|
|
1695
|
+
class: [`${g}-fixed`, l.value]
|
|
1696
|
+
}, null), [[kt, e.visible]]), n(Le, {
|
|
1688
1697
|
hideAdd: !0,
|
|
1689
1698
|
type: "editable-card",
|
|
1690
|
-
style:
|
|
1691
|
-
class:
|
|
1699
|
+
style: h.value,
|
|
1700
|
+
class: m.value,
|
|
1692
1701
|
activeKey: i.activeKey,
|
|
1693
|
-
onTabClick:
|
|
1702
|
+
onTabClick: N
|
|
1694
1703
|
}, {
|
|
1695
|
-
default: () => [s.value.map((
|
|
1696
|
-
key:
|
|
1704
|
+
default: () => [s.value.map((d) => n(oa, {
|
|
1705
|
+
key: d.fullPath,
|
|
1697
1706
|
closable: !1,
|
|
1698
|
-
tab: n(
|
|
1699
|
-
router:
|
|
1707
|
+
tab: n(A, {
|
|
1708
|
+
router: d
|
|
1700
1709
|
}, null)
|
|
1701
1710
|
}, null))],
|
|
1702
1711
|
rightExtra: () => n(Ye, {
|
|
1703
|
-
overlay: n(
|
|
1712
|
+
overlay: n(Y, {
|
|
1704
1713
|
path: i.activeKey,
|
|
1705
1714
|
stateType: "activeKey"
|
|
1706
1715
|
}, null)
|
|
1707
1716
|
}, {
|
|
1708
1717
|
default: () => [n(Ut, {
|
|
1709
|
-
class: [`${
|
|
1718
|
+
class: [`${g}-dropdown-menu-btn`, l.value],
|
|
1710
1719
|
rotate: 90
|
|
1711
1720
|
}, null)]
|
|
1712
1721
|
})
|
|
@@ -1714,55 +1723,55 @@ const oa = Fe.TabPane, ia = ee.Item, la = /* @__PURE__ */ W({
|
|
|
1714
1723
|
}
|
|
1715
1724
|
}), {
|
|
1716
1725
|
Content: ra
|
|
1717
|
-
} =
|
|
1726
|
+
} = ce, Ue = (e, {
|
|
1718
1727
|
slots: t,
|
|
1719
1728
|
attrs: a
|
|
1720
1729
|
}) => {
|
|
1721
|
-
var
|
|
1730
|
+
var M;
|
|
1722
1731
|
const {
|
|
1723
1732
|
hashId: o,
|
|
1724
1733
|
prefixCls: i,
|
|
1725
|
-
isMobile:
|
|
1726
|
-
loading:
|
|
1727
|
-
collapsed:
|
|
1728
|
-
siderWidth:
|
|
1729
|
-
isShowTabsBar:
|
|
1730
|
-
isFixedMultiTab:
|
|
1731
|
-
onReloadPage:
|
|
1732
|
-
onChangeTabs:
|
|
1734
|
+
isMobile: u,
|
|
1735
|
+
loading: f,
|
|
1736
|
+
collapsed: c,
|
|
1737
|
+
siderWidth: S,
|
|
1738
|
+
isShowTabsBar: b,
|
|
1739
|
+
isFixedMultiTab: O,
|
|
1740
|
+
onReloadPage: g,
|
|
1741
|
+
onChangeTabs: F
|
|
1733
1742
|
} = e;
|
|
1734
1743
|
if (e.isChildrenLayout)
|
|
1735
|
-
return (
|
|
1744
|
+
return (M = t.default) == null ? void 0 : M.call(t);
|
|
1736
1745
|
const {
|
|
1737
1746
|
flatMenuData: l,
|
|
1738
|
-
layout:
|
|
1739
|
-
} =
|
|
1747
|
+
layout: s
|
|
1748
|
+
} = Q();
|
|
1740
1749
|
return n(q, null, [n(la, {
|
|
1741
|
-
visible: (
|
|
1742
|
-
isMobile:
|
|
1743
|
-
loading:
|
|
1744
|
-
isFixedMultiTab:
|
|
1745
|
-
siderWidth:
|
|
1746
|
-
collapsed:
|
|
1747
|
-
onReloadPage:
|
|
1748
|
-
onChangeTabs:
|
|
1750
|
+
visible: (U(s) === "mix" ? U(l).length > 0 : !0) && b,
|
|
1751
|
+
isMobile: u,
|
|
1752
|
+
loading: f,
|
|
1753
|
+
isFixedMultiTab: O,
|
|
1754
|
+
siderWidth: S,
|
|
1755
|
+
collapsed: c,
|
|
1756
|
+
onReloadPage: g,
|
|
1757
|
+
onChangeTabs: F
|
|
1749
1758
|
}, null), n(ra, {
|
|
1750
1759
|
style: a.style,
|
|
1751
1760
|
class: [`${i}-content`]
|
|
1752
1761
|
}, {
|
|
1753
1762
|
default: () => {
|
|
1754
1763
|
var I;
|
|
1755
|
-
return [
|
|
1764
|
+
return [f && n(dn, null, null), n("div", {
|
|
1756
1765
|
class: [`${i}-content-spin-container`, o],
|
|
1757
1766
|
style: {
|
|
1758
|
-
opacity:
|
|
1767
|
+
opacity: f ? "0" : void 0
|
|
1759
1768
|
}
|
|
1760
1769
|
}, [(I = t.default) == null ? void 0 : I.call(t)])];
|
|
1761
1770
|
}
|
|
1762
1771
|
})]);
|
|
1763
1772
|
};
|
|
1764
|
-
|
|
1765
|
-
|
|
1773
|
+
Ue.inheritAttrs = !1;
|
|
1774
|
+
Ue.displayName = "wrap-content";
|
|
1766
1775
|
const sa = (e) => {
|
|
1767
1776
|
var t, a, o, i;
|
|
1768
1777
|
return {
|
|
@@ -1815,7 +1824,7 @@ const sa = (e) => {
|
|
|
1815
1824
|
}
|
|
1816
1825
|
}
|
|
1817
1826
|
};
|
|
1818
|
-
},
|
|
1827
|
+
}, ua = (e) => ({
|
|
1819
1828
|
[`${e.proComponentsCls}-header`]: {
|
|
1820
1829
|
"&-light": {
|
|
1821
1830
|
[`${e.componentCls}-logo`]: {
|
|
@@ -1899,56 +1908,56 @@ const sa = (e) => {
|
|
|
1899
1908
|
}
|
|
1900
1909
|
}
|
|
1901
1910
|
}), St = {
|
|
1902
|
-
...
|
|
1903
|
-
...
|
|
1904
|
-
},
|
|
1911
|
+
..._,
|
|
1912
|
+
...Ke
|
|
1913
|
+
}, da = (e, t) => e === !1 ? null : e ? e(t, null) : t, ca = /* @__PURE__ */ j({
|
|
1905
1914
|
props: St,
|
|
1906
1915
|
setup(e) {
|
|
1907
1916
|
return () => e.rightContentRender && typeof e.rightContentRender == "function" && n(q, null, [e.rightContentRender({
|
|
1908
1917
|
...e
|
|
1909
1918
|
})]);
|
|
1910
1919
|
}
|
|
1911
|
-
}), ma = /* @__PURE__ */
|
|
1920
|
+
}), ma = /* @__PURE__ */ j({
|
|
1912
1921
|
props: St,
|
|
1913
1922
|
inheritAttrs: !1,
|
|
1914
1923
|
setup(e, {
|
|
1915
1924
|
slots: t,
|
|
1916
1925
|
emit: a
|
|
1917
1926
|
}) {
|
|
1918
|
-
const o =
|
|
1927
|
+
const o = De(), {
|
|
1919
1928
|
token: i
|
|
1920
|
-
} =
|
|
1921
|
-
getPrefixCls:
|
|
1922
|
-
openKeys:
|
|
1923
|
-
selectedKeys:
|
|
1924
|
-
} =
|
|
1925
|
-
width:
|
|
1926
|
-
} = rn(),
|
|
1929
|
+
} = Se(), {
|
|
1930
|
+
getPrefixCls: u,
|
|
1931
|
+
openKeys: f,
|
|
1932
|
+
selectedKeys: c
|
|
1933
|
+
} = Q(), {
|
|
1934
|
+
width: S
|
|
1935
|
+
} = rn(), b = u({
|
|
1927
1936
|
suffixCls: "global-header",
|
|
1928
1937
|
isPor: !0
|
|
1929
1938
|
}), {
|
|
1930
|
-
wrapSSR:
|
|
1931
|
-
hashId:
|
|
1932
|
-
} =
|
|
1933
|
-
[`${
|
|
1934
|
-
[`${
|
|
1935
|
-
[`${
|
|
1936
|
-
})), l = (
|
|
1937
|
-
var
|
|
1939
|
+
wrapSSR: O,
|
|
1940
|
+
hashId: g
|
|
1941
|
+
} = J("ProGlobalHeader", [ua], b), F = v(() => ({
|
|
1942
|
+
[`${g.value}`]: !0,
|
|
1943
|
+
[`${b}`]: !0,
|
|
1944
|
+
[`${b}-${e.layout}`]: !0
|
|
1945
|
+
})), l = (x) => {
|
|
1946
|
+
var y;
|
|
1938
1947
|
if (o.currentRoute) {
|
|
1939
|
-
const
|
|
1940
|
-
e.onSelect &&
|
|
1948
|
+
const m = o.currentRoute.value.matched.concat();
|
|
1949
|
+
e.onSelect && x === "select" && e.onSelect(m.filter((h) => h.name !== "index").map((h) => h.path)), e.onOpenKeys && x === "openKeys" && ((y = e.onOpenKeys) == null || y.call(e, m.filter((h) => h.path !== o.currentRoute.value.path).map((h) => h.path)));
|
|
1941
1950
|
}
|
|
1942
|
-
},
|
|
1951
|
+
}, s = () => {
|
|
1943
1952
|
a("collapse", !e.collapsed);
|
|
1944
|
-
},
|
|
1945
|
-
var
|
|
1946
|
-
return n(q, null, [e.layout === "mix" && !e.isMobile && e.splitMenus ? n("div", {
|
|
1953
|
+
}, M = v(() => e.collapsedButtonRender || bt), I = () => {
|
|
1954
|
+
var x;
|
|
1955
|
+
return n(q, null, [e.layout === "mix" && !e.isMobile && e.splitMenus || e.layout === "top" ? n("div", {
|
|
1947
1956
|
style: {
|
|
1948
1957
|
flex: 1
|
|
1949
1958
|
},
|
|
1950
|
-
class: [`${
|
|
1951
|
-
}, [n(
|
|
1959
|
+
class: [`${b}-menu`, g.value]
|
|
1960
|
+
}, [n(Pe, {
|
|
1952
1961
|
theme: {
|
|
1953
1962
|
components: {
|
|
1954
1963
|
Layout: {
|
|
@@ -1965,19 +1974,19 @@ const sa = (e) => {
|
|
|
1965
1974
|
}
|
|
1966
1975
|
}
|
|
1967
1976
|
}, {
|
|
1968
|
-
default: () => [n(gt,
|
|
1977
|
+
default: () => [n(gt, X({
|
|
1969
1978
|
theme: e.theme,
|
|
1970
1979
|
mode: e.mode,
|
|
1971
1980
|
collapsed: e.collapsed,
|
|
1972
1981
|
menuData: e.menuData,
|
|
1973
|
-
openKeys:
|
|
1974
|
-
selectedKeys:
|
|
1982
|
+
openKeys: f.value,
|
|
1983
|
+
selectedKeys: c.value,
|
|
1975
1984
|
iconfontUrl: e.iconfontUrl,
|
|
1976
1985
|
menuItemRender: e.menuItemRender,
|
|
1977
1986
|
subMenuItemRender: e.subMenuItemRender,
|
|
1978
1987
|
class: {
|
|
1979
1988
|
"top-nav-menu": e.mode === "horizontal",
|
|
1980
|
-
[`${
|
|
1989
|
+
[`${g.value}`]: !0
|
|
1981
1990
|
}
|
|
1982
1991
|
}, {
|
|
1983
1992
|
"onUpdate:openKeys": () => l("openKeys"),
|
|
@@ -1987,45 +1996,45 @@ const sa = (e) => {
|
|
|
1987
1996
|
style: {
|
|
1988
1997
|
flex: 1
|
|
1989
1998
|
}
|
|
1990
|
-
}, [(
|
|
1999
|
+
}, [(x = t.default) == null ? void 0 : x.call(t)]), e.layout !== "simple" && n(ca, X(e, {
|
|
1991
2000
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
1992
2001
|
rightContentRender: e.rightContentRender
|
|
1993
2002
|
}), null)]);
|
|
1994
2003
|
};
|
|
1995
2004
|
return () => {
|
|
1996
|
-
const
|
|
2005
|
+
const x = n("span", {
|
|
1997
2006
|
key: "logo",
|
|
1998
2007
|
onClick: () => {
|
|
1999
|
-
var
|
|
2000
|
-
return (
|
|
2008
|
+
var y;
|
|
2009
|
+
return (y = e.onMenuHeaderClick) == null ? void 0 : y.call(e);
|
|
2001
2010
|
},
|
|
2002
|
-
class: [`${
|
|
2011
|
+
class: [`${b}-logo`, e.isMobile ? "mobile" : "", g.value]
|
|
2003
2012
|
}, [n("a", null, [yt(e.logo)])]);
|
|
2004
|
-
return
|
|
2005
|
-
class:
|
|
2006
|
-
}, [e.isMobile ? n(q, null, [
|
|
2007
|
-
class: `${
|
|
2008
|
-
onClick:
|
|
2009
|
-
}, [
|
|
2013
|
+
return O(n("div", {
|
|
2014
|
+
class: F.value
|
|
2015
|
+
}, [e.isMobile ? n(q, null, [da(e.menuHeaderRender, x), e.isMobile && U(M) && n("span", {
|
|
2016
|
+
class: `${b}-collapsed-button ${g.value}`,
|
|
2017
|
+
onClick: s
|
|
2018
|
+
}, [U(M)(e.collapsed)]), I()]) : ["mix", "wide", "top"].includes(e.layout) ? n(q, null, [n("div", {
|
|
2010
2019
|
style: {
|
|
2011
2020
|
width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
|
|
2012
|
-
padding: e.layout === "wide" &&
|
|
2021
|
+
padding: e.layout === "wide" && S.value < e.wideWidth ? "0 50px" : void 0
|
|
2013
2022
|
},
|
|
2014
|
-
class: `${
|
|
2023
|
+
class: `${b}-main ${g.value}`
|
|
2015
2024
|
}, [n("div", {
|
|
2016
|
-
class: `${
|
|
2017
|
-
}, [n(
|
|
2025
|
+
class: `${b}-main-left ${g.value}`
|
|
2026
|
+
}, [n(Ae, X(e, {
|
|
2018
2027
|
renderKey: "headerTitleRender"
|
|
2019
2028
|
}), null)]), I()])]) : I()]));
|
|
2020
2029
|
};
|
|
2021
2030
|
}
|
|
2022
2031
|
});
|
|
2023
2032
|
function fa(e) {
|
|
2024
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2033
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
2025
2034
|
}
|
|
2026
2035
|
const {
|
|
2027
2036
|
Header: Je
|
|
2028
|
-
} =
|
|
2037
|
+
} = ce, $e = /* @__PURE__ */ j({
|
|
2029
2038
|
inheritAttrs: !1,
|
|
2030
2039
|
props: vt,
|
|
2031
2040
|
setup(e) {
|
|
@@ -2034,160 +2043,160 @@ const {
|
|
|
2034
2043
|
isMobile: a,
|
|
2035
2044
|
fixedHeader: o,
|
|
2036
2045
|
headerHeight: i,
|
|
2037
|
-
layout:
|
|
2038
|
-
onCollapse:
|
|
2039
|
-
splitMenus:
|
|
2040
|
-
} =
|
|
2041
|
-
getPrefixCls:
|
|
2042
|
-
menuData:
|
|
2043
|
-
} =
|
|
2046
|
+
layout: u,
|
|
2047
|
+
onCollapse: f,
|
|
2048
|
+
splitMenus: c
|
|
2049
|
+
} = Ce(e), {
|
|
2050
|
+
getPrefixCls: S,
|
|
2051
|
+
menuData: b
|
|
2052
|
+
} = Q(), O = S({
|
|
2044
2053
|
suffixCls: "header",
|
|
2045
2054
|
isPor: !0
|
|
2046
|
-
}),
|
|
2055
|
+
}), g = S({
|
|
2047
2056
|
suffixCls: "fixed-header",
|
|
2048
2057
|
isPor: !0
|
|
2049
2058
|
}), {
|
|
2050
|
-
wrapSSR:
|
|
2059
|
+
wrapSSR: F,
|
|
2051
2060
|
hashId: l
|
|
2052
|
-
} =
|
|
2061
|
+
} = J("ProLayoutHeader", [sa], O), s = v(() => u.value === "wide"), M = v(() => o.value), I = v(() => u.value === "mix" || s.value), x = v(() => u.value === "side" || u.value === "simple"), y = v(() => x.value && "light" || t.value), m = v(() => ({
|
|
2053
2062
|
[`${l.value}`]: !0,
|
|
2054
|
-
[`${
|
|
2055
|
-
[`${
|
|
2056
|
-
[`${
|
|
2057
|
-
})),
|
|
2058
|
-
const
|
|
2059
|
-
theme:
|
|
2063
|
+
[`${O}-${y.value}`]: !0,
|
|
2064
|
+
[`${O}`]: !0,
|
|
2065
|
+
[`${g}`]: M.value
|
|
2066
|
+
})), h = v(() => M.value && !a.value), R = v(() => c.value ? b.value && pn(b.value) || [] : u.value === "top" ? b.value : []), p = v(() => x.value && h.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), w = v(() => M.value ? 0 : void 0), $ = () => {
|
|
2067
|
+
const T = n(ma, X(e, {
|
|
2068
|
+
theme: y.value,
|
|
2060
2069
|
mode: "horizontal",
|
|
2061
|
-
onCollapse:
|
|
2062
|
-
menuData:
|
|
2070
|
+
onCollapse: f.value,
|
|
2071
|
+
menuData: R.value
|
|
2063
2072
|
}), {
|
|
2064
2073
|
default: () => [I.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
|
|
2065
2074
|
});
|
|
2066
|
-
return e.headerRender ? e.headerRender(e,
|
|
2075
|
+
return e.headerRender ? e.headerRender(e, T) : T;
|
|
2067
2076
|
};
|
|
2068
2077
|
return () => {
|
|
2069
|
-
let
|
|
2070
|
-
return
|
|
2071
|
-
theme:
|
|
2078
|
+
let T;
|
|
2079
|
+
return F(n(q, null, [M.value && !s.value && n(Je, {
|
|
2080
|
+
theme: y.value,
|
|
2072
2081
|
style: {
|
|
2073
2082
|
height: `${i.value}px`,
|
|
2074
2083
|
lineHeight: `${i.value}px`,
|
|
2075
2084
|
background: "transparent"
|
|
2076
2085
|
}
|
|
2077
2086
|
}, null), n(Je, {
|
|
2078
|
-
theme:
|
|
2079
|
-
class:
|
|
2087
|
+
theme: y.value,
|
|
2088
|
+
class: m.value,
|
|
2080
2089
|
style: {
|
|
2081
2090
|
height: `${i.value}px`,
|
|
2082
2091
|
lineHeight: `${i.value}px`,
|
|
2083
|
-
width:
|
|
2084
|
-
zIndex:
|
|
2085
|
-
right:
|
|
2092
|
+
width: p.value,
|
|
2093
|
+
zIndex: x.value ? 100 : 101,
|
|
2094
|
+
right: w.value
|
|
2086
2095
|
}
|
|
2087
|
-
}, fa(
|
|
2088
|
-
default: () => [
|
|
2096
|
+
}, fa(T = $()) ? T : {
|
|
2097
|
+
default: () => [T]
|
|
2089
2098
|
})]));
|
|
2090
2099
|
};
|
|
2091
2100
|
}
|
|
2092
|
-
}), ga = /* @__PURE__ */
|
|
2101
|
+
}), ga = /* @__PURE__ */ j({
|
|
2093
2102
|
name: "BaseProLayout",
|
|
2094
2103
|
inheritAttrs: !1,
|
|
2095
2104
|
components: {
|
|
2096
|
-
GlobalHeader:
|
|
2097
|
-
GlobalFooter:
|
|
2098
|
-
SiderMenuWrapper:
|
|
2105
|
+
GlobalHeader: $e,
|
|
2106
|
+
GlobalFooter: ke,
|
|
2107
|
+
SiderMenuWrapper: Be
|
|
2099
2108
|
},
|
|
2100
2109
|
props: wt,
|
|
2101
2110
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2102
2111
|
setup(e, {
|
|
2103
2112
|
slots: t
|
|
2104
2113
|
}) {
|
|
2105
|
-
const a =
|
|
2114
|
+
const a = me({
|
|
2106
2115
|
suffixCls: "basic-layout",
|
|
2107
2116
|
isPor: !0
|
|
2108
2117
|
}), {
|
|
2109
2118
|
wrapSSR: o,
|
|
2110
2119
|
hashId: i
|
|
2111
|
-
} =
|
|
2112
|
-
token:
|
|
2113
|
-
} =
|
|
2114
|
-
var
|
|
2115
|
-
return (
|
|
2120
|
+
} = J("ProLayout", [Jn, Qn], a), u = on(), {
|
|
2121
|
+
token: f
|
|
2122
|
+
} = Se(), c = v(() => {
|
|
2123
|
+
var y;
|
|
2124
|
+
return (y = f == null ? void 0 : f.value) == null ? void 0 : y.colorPrimary;
|
|
2116
2125
|
});
|
|
2117
2126
|
$t(() => {
|
|
2118
|
-
|
|
2127
|
+
c.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", c.value);
|
|
2119
2128
|
});
|
|
2120
|
-
const
|
|
2129
|
+
const S = v(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), b = v(() => e.layout === "wide"), O = v(() => S.value), g = v(() => e.collapsed ? e.collapsedWidth : e.siderWidth), F = v(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = v(() => (u.value === "sm" || u.value === "xs") && !e.disableMobile && !b.value), s = lt({
|
|
2121
2130
|
position: "relative"
|
|
2122
2131
|
});
|
|
2123
|
-
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (
|
|
2124
|
-
const
|
|
2125
|
-
matchMenuKeys:
|
|
2132
|
+
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (s.minHeight = 0);
|
|
2133
|
+
const M = (y, m) => y.headerRender === !1 || y.pure ? null : n($e, X(y, {
|
|
2134
|
+
matchMenuKeys: m || []
|
|
2126
2135
|
}), null), I = v(() => ({
|
|
2127
2136
|
...e.breadcrumb,
|
|
2128
|
-
itemRender:
|
|
2129
|
-
})),
|
|
2137
|
+
itemRender: K(t, e, "breadcrumbRender")
|
|
2138
|
+
})), x = v(() => O.value && e.selectedKeys ? vn(e.menuData, e.selectedKeys[0]) : []);
|
|
2130
2139
|
return Rn({
|
|
2131
|
-
getPrefixCls:
|
|
2132
|
-
...
|
|
2133
|
-
theme:
|
|
2134
|
-
hasContentWide:
|
|
2140
|
+
getPrefixCls: me,
|
|
2141
|
+
...le(Ce(e), ["layout", "waterMark", "menuData", "openKeys", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader"].concat(Object.keys(fe))),
|
|
2142
|
+
theme: F.value,
|
|
2143
|
+
hasContentWide: b,
|
|
2135
2144
|
isMobile: l,
|
|
2136
|
-
siderWidth:
|
|
2145
|
+
siderWidth: g,
|
|
2137
2146
|
breadcrumb: I,
|
|
2138
|
-
flatMenuData:
|
|
2139
|
-
hasSide:
|
|
2140
|
-
flatMenu:
|
|
2141
|
-
pageHeaderRender: v(() =>
|
|
2147
|
+
flatMenuData: x,
|
|
2148
|
+
hasSide: S,
|
|
2149
|
+
flatMenu: O,
|
|
2150
|
+
pageHeaderRender: v(() => K(t, e, "pageHeaderRender"))
|
|
2142
2151
|
}), () => {
|
|
2143
|
-
var
|
|
2144
|
-
const
|
|
2145
|
-
menuItemRender:
|
|
2146
|
-
subMenuItemRender:
|
|
2147
|
-
},
|
|
2152
|
+
var D;
|
|
2153
|
+
const y = K(t, e, "collapsedButtonRender"), m = K(t, e, "headerContentRender"), h = K(t, e, "rightContentRender"), R = K(t, e, "headerRender"), p = K(t, e, "footerRender"), w = K(t, e, "links"), $ = K(t, e, "copyrightRender"), T = K(t, e, "extraRightDropdownRender"), N = K(t, e, "menuHeaderRender"), z = K(t, e, "menuExtraRender"), H = K(t, e, "menuContentRender"), P = K(t, e, "menuFooterRender"), G = K(t, e, "menuItemRender"), E = K(t, e, "subMenuItemRender"), Y = {
|
|
2154
|
+
menuItemRender: G,
|
|
2155
|
+
subMenuItemRender: E
|
|
2156
|
+
}, A = v(() => M({
|
|
2148
2157
|
...e,
|
|
2149
|
-
|
|
2150
|
-
hasSiderMenu:
|
|
2158
|
+
...Y,
|
|
2159
|
+
hasSiderMenu: S.value,
|
|
2151
2160
|
menuData: e.menuData,
|
|
2152
|
-
isMobile:
|
|
2153
|
-
rightContentRender:
|
|
2154
|
-
extraRightDropdownRender:
|
|
2155
|
-
headerTitleRender:
|
|
2156
|
-
headerContentRender:
|
|
2157
|
-
headerRender:
|
|
2158
|
-
theme:
|
|
2159
|
-
}, e.matchMenuKeys)),
|
|
2161
|
+
isMobile: U(l),
|
|
2162
|
+
rightContentRender: h,
|
|
2163
|
+
extraRightDropdownRender: T,
|
|
2164
|
+
headerTitleRender: N,
|
|
2165
|
+
headerContentRender: m,
|
|
2166
|
+
headerRender: R,
|
|
2167
|
+
theme: F.value
|
|
2168
|
+
}, e.matchMenuKeys)), d = v(() => ({
|
|
2160
2169
|
[`${i.value}`]: !0,
|
|
2161
2170
|
[`${a}`]: !0,
|
|
2162
2171
|
[`${a}-${e.layout}`]: !0
|
|
2163
|
-
})),
|
|
2172
|
+
})), C = v(() => b.value ? {
|
|
2164
2173
|
minWidth: `${e.wideWidth}px`
|
|
2165
|
-
} : void 0),
|
|
2174
|
+
} : void 0), B = v(() => b.value ? {
|
|
2166
2175
|
width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
|
|
2167
2176
|
paddingTop: `${e.headerHeight + 20}px`,
|
|
2168
|
-
margin:
|
|
2169
|
-
} : void 0),
|
|
2177
|
+
margin: b.value ? "0 auto" : void 0
|
|
2178
|
+
} : void 0), k = v(() => b.value ? {
|
|
2170
2179
|
minHeight: "835px"
|
|
2171
2180
|
} : {});
|
|
2172
|
-
return o(n(q, null, [e.pure ? (
|
|
2173
|
-
class:
|
|
2174
|
-
style:
|
|
2175
|
-
}, [n(
|
|
2176
|
-
style:
|
|
2181
|
+
return o(n(q, null, [e.pure ? (D = t.default) == null ? void 0 : D.call(t) : n("div", {
|
|
2182
|
+
class: d.value,
|
|
2183
|
+
style: C.value
|
|
2184
|
+
}, [n(ce, {
|
|
2185
|
+
style: B.value
|
|
2177
2186
|
}, {
|
|
2178
|
-
default: () => [n(
|
|
2179
|
-
links:
|
|
2180
|
-
theme:
|
|
2187
|
+
default: () => [n(Be, X(Ve(e, ["pure", "theme"]), {
|
|
2188
|
+
links: w,
|
|
2189
|
+
theme: F.value,
|
|
2181
2190
|
isMobile: l.value,
|
|
2182
|
-
menuHeaderRender:
|
|
2183
|
-
menuContentRender:
|
|
2184
|
-
menuExtraRender:
|
|
2185
|
-
menuFooterRender:
|
|
2186
|
-
collapsedButtonRender:
|
|
2187
|
-
}), null), n(
|
|
2188
|
-
style:
|
|
2191
|
+
menuHeaderRender: N,
|
|
2192
|
+
menuContentRender: H,
|
|
2193
|
+
menuExtraRender: z,
|
|
2194
|
+
menuFooterRender: P,
|
|
2195
|
+
collapsedButtonRender: y
|
|
2196
|
+
}), null), n(ce, {
|
|
2197
|
+
style: s
|
|
2189
2198
|
}, {
|
|
2190
|
-
default: () => [
|
|
2199
|
+
default: () => [A.value, n(Ue, X({
|
|
2191
2200
|
hashId: i.value,
|
|
2192
2201
|
isMobile: l.value,
|
|
2193
2202
|
prefixCls: a,
|
|
@@ -2198,27 +2207,27 @@ const {
|
|
|
2198
2207
|
isFixedMultiTab: e.fixedMultiTab,
|
|
2199
2208
|
siderWidth: e.siderWidth,
|
|
2200
2209
|
collapsed: e.collapsed,
|
|
2201
|
-
style: e.disableContentMargin ?
|
|
2210
|
+
style: e.disableContentMargin ? k.value : {
|
|
2202
2211
|
...e.contentStyle,
|
|
2203
|
-
...
|
|
2212
|
+
...k.value
|
|
2204
2213
|
}
|
|
2205
|
-
},
|
|
2214
|
+
}, le(e, ["onReloadPage", "onChangeTabs"])), {
|
|
2206
2215
|
default: () => {
|
|
2207
|
-
var
|
|
2208
|
-
return [(
|
|
2216
|
+
var W;
|
|
2217
|
+
return [(W = t.default) == null ? void 0 : W.call(t)];
|
|
2209
2218
|
}
|
|
2210
|
-
}),
|
|
2211
|
-
copyright:
|
|
2219
|
+
}), p === !1 ? null : p ? p(e) : n(ke, {
|
|
2220
|
+
copyright: $
|
|
2212
2221
|
}, null)]
|
|
2213
2222
|
})]
|
|
2214
2223
|
})])]));
|
|
2215
2224
|
};
|
|
2216
2225
|
}
|
|
2217
|
-
}), Ni = /* @__PURE__ */
|
|
2226
|
+
}), Ni = /* @__PURE__ */ j({
|
|
2218
2227
|
components: {
|
|
2219
|
-
GlobalHeader:
|
|
2220
|
-
GlobalFooter:
|
|
2221
|
-
SiderMenuWrapper:
|
|
2228
|
+
GlobalHeader: $e,
|
|
2229
|
+
GlobalFooter: ke,
|
|
2230
|
+
SiderMenuWrapper: Be
|
|
2222
2231
|
},
|
|
2223
2232
|
props: wt,
|
|
2224
2233
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
@@ -2228,34 +2237,34 @@ const {
|
|
|
2228
2237
|
}) {
|
|
2229
2238
|
const o = v(() => e.theme !== void 0 ? {
|
|
2230
2239
|
dark: e.theme === "realDark"
|
|
2231
|
-
} : {}), i = (
|
|
2232
|
-
a("update:collapsed",
|
|
2233
|
-
},
|
|
2234
|
-
a("update:open-keys",
|
|
2235
|
-
},
|
|
2236
|
-
a("update:selected-keys",
|
|
2240
|
+
} : {}), i = (c) => {
|
|
2241
|
+
a("update:collapsed", c), a("collapse", c);
|
|
2242
|
+
}, u = (c) => {
|
|
2243
|
+
a("update:open-keys", c), a("openKeys", c);
|
|
2244
|
+
}, f = (c) => {
|
|
2245
|
+
a("update:selected-keys", c), a("select", c);
|
|
2237
2246
|
};
|
|
2238
|
-
return () => n(
|
|
2247
|
+
return () => n(Pe, {
|
|
2239
2248
|
theme: e.primaryColor ? {
|
|
2240
2249
|
token: {
|
|
2241
2250
|
colorPrimary: e.primaryColor
|
|
2242
2251
|
}
|
|
2243
2252
|
} : void 0
|
|
2244
2253
|
}, {
|
|
2245
|
-
default: () => [n(Gt,
|
|
2254
|
+
default: () => [n(Gt, X({
|
|
2246
2255
|
token: e.token
|
|
2247
2256
|
}, o.value), {
|
|
2248
|
-
default: () => [n(ga,
|
|
2249
|
-
onSelect:
|
|
2250
|
-
onOpenKeys:
|
|
2257
|
+
default: () => [n(ga, X(Ve(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
|
|
2258
|
+
onSelect: f,
|
|
2259
|
+
onOpenKeys: u,
|
|
2251
2260
|
onCollapse: i
|
|
2252
2261
|
}), t)]
|
|
2253
2262
|
})]
|
|
2254
2263
|
});
|
|
2255
2264
|
}
|
|
2256
2265
|
}), It = (e, t, a) => e.map((o, i) => {
|
|
2257
|
-
var
|
|
2258
|
-
return o.meta && (o.meta.key = a ? `${a}-${i}` : `${i}`), o.path = o.path.replace("//", "/"), o.children && o.children.length > 0 && (o.children = It(o.children, t, (
|
|
2266
|
+
var u;
|
|
2267
|
+
return o.meta && (o.meta.key = a ? `${a}-${i}` : `${i}`), o.path = o.path.replace("//", "/"), o.children && o.children.length > 0 && (o.children = It(o.children, t, (u = o.meta) == null ? void 0 : u.key)), t[`${o.path}`] = o, o;
|
|
2259
2268
|
}), zi = (e) => {
|
|
2260
2269
|
const t = e.find((i) => i.path === "/"), a = {}, o = It((t == null ? void 0 : t.children) || [], a);
|
|
2261
2270
|
return {
|
|
@@ -2467,7 +2476,7 @@ const {
|
|
|
2467
2476
|
}
|
|
2468
2477
|
}
|
|
2469
2478
|
}
|
|
2470
|
-
}), Qe = /* @__PURE__ */
|
|
2479
|
+
}), Qe = /* @__PURE__ */ j({
|
|
2471
2480
|
name: "BlockCheckbox",
|
|
2472
2481
|
props: {
|
|
2473
2482
|
value: L.string,
|
|
@@ -2485,19 +2494,19 @@ const {
|
|
|
2485
2494
|
const t = `${e.prefixCls}-block-checkbox`;
|
|
2486
2495
|
return n("div", {
|
|
2487
2496
|
class: [t, e.hashId]
|
|
2488
|
-
}, [e.list.map((a) => n(
|
|
2497
|
+
}, [e.list.map((a) => n(we, {
|
|
2489
2498
|
title: a.title,
|
|
2490
2499
|
key: a.key
|
|
2491
2500
|
}, {
|
|
2492
2501
|
default: () => [n("div", {
|
|
2493
|
-
class:
|
|
2502
|
+
class: dt(e.hashId, `${t}-item`, `${t}-item-${a.key}`, `${t}-${e.configType}-item`),
|
|
2494
2503
|
onClick: () => {
|
|
2495
2504
|
var o;
|
|
2496
2505
|
return (o = e.onChange) == null ? void 0 : o.call(e, a.key);
|
|
2497
2506
|
}
|
|
2498
2507
|
}, [a.key === "wide" && n("div", {
|
|
2499
2508
|
class: [`${t}-item-${a.key}-content`, e.hashId]
|
|
2500
|
-
}, null), n(
|
|
2509
|
+
}, null), n(ut, {
|
|
2501
2510
|
class: `${t}-selectIcon ${e.hashId}`.trim(),
|
|
2502
2511
|
style: {
|
|
2503
2512
|
display: e.value === a.key ? "block" : "none"
|
|
@@ -2508,7 +2517,7 @@ const {
|
|
|
2508
2517
|
}))]);
|
|
2509
2518
|
};
|
|
2510
2519
|
}
|
|
2511
|
-
}), ba = /* @__PURE__ */
|
|
2520
|
+
}), ba = /* @__PURE__ */ j({
|
|
2512
2521
|
name: "ThemeColor",
|
|
2513
2522
|
inheritAttrs: !1,
|
|
2514
2523
|
props: {
|
|
@@ -2530,25 +2539,25 @@ const {
|
|
|
2530
2539
|
}, [(a = e.colorList) == null ? void 0 : a.map(({
|
|
2531
2540
|
key: o,
|
|
2532
2541
|
color: i,
|
|
2533
|
-
title:
|
|
2534
|
-
}) => o ? n(
|
|
2542
|
+
title: u
|
|
2543
|
+
}) => o ? n(we, {
|
|
2535
2544
|
key: i,
|
|
2536
|
-
title:
|
|
2545
|
+
title: u
|
|
2537
2546
|
}, {
|
|
2538
2547
|
default: () => {
|
|
2539
|
-
var
|
|
2548
|
+
var f, c;
|
|
2540
2549
|
return [n("div", {
|
|
2541
|
-
class: [`${t}-block ${e.hashId}`.trim(), ((
|
|
2550
|
+
class: [`${t}-block ${e.hashId}`.trim(), ((f = e.settingValue) == null ? void 0 : f.primaryColor) === i ? `${t}-block-checked` : ""],
|
|
2542
2551
|
style: {
|
|
2543
2552
|
backgroundColor: i
|
|
2544
2553
|
},
|
|
2545
2554
|
onClick: () => e.onChange && e.onChange(i)
|
|
2546
|
-
}, [((
|
|
2555
|
+
}, [((c = e.settingValue) == null ? void 0 : c.primaryColor) === i && n(ut, null, null)])];
|
|
2547
2556
|
}
|
|
2548
2557
|
}) : null)])]);
|
|
2549
2558
|
};
|
|
2550
2559
|
}
|
|
2551
|
-
}),
|
|
2560
|
+
}), he = /* @__PURE__ */ j({
|
|
2552
2561
|
name: "RegionalChange",
|
|
2553
2562
|
props: {
|
|
2554
2563
|
label: L.string,
|
|
@@ -2560,17 +2569,17 @@ const {
|
|
|
2560
2569
|
onChange: Function
|
|
2561
2570
|
},
|
|
2562
2571
|
setup(e) {
|
|
2563
|
-
return () => n(
|
|
2572
|
+
return () => n(oe, {
|
|
2564
2573
|
class: `${e.prefixCls}-list ${e.hashId}`.trim(),
|
|
2565
2574
|
split: !1,
|
|
2566
2575
|
size: "small",
|
|
2567
2576
|
renderItem: ({
|
|
2568
2577
|
item: t
|
|
2569
|
-
}) => n(
|
|
2578
|
+
}) => n(we, {
|
|
2570
2579
|
title: t.disabled ? t.disabledReason : "",
|
|
2571
2580
|
placement: "left"
|
|
2572
2581
|
}, {
|
|
2573
|
-
default: () => [n(
|
|
2582
|
+
default: () => [n(oe.Item, {
|
|
2574
2583
|
actions: [t.action]
|
|
2575
2584
|
}, {
|
|
2576
2585
|
default: () => [n("span", {
|
|
@@ -2625,9 +2634,9 @@ const {
|
|
|
2625
2634
|
}
|
|
2626
2635
|
});
|
|
2627
2636
|
function va(e) {
|
|
2628
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2637
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
2629
2638
|
}
|
|
2630
|
-
const xa = /* @__PURE__ */
|
|
2639
|
+
const xa = /* @__PURE__ */ j({
|
|
2631
2640
|
name: "ThemeEditor",
|
|
2632
2641
|
props: {
|
|
2633
2642
|
settingValue: Object,
|
|
@@ -2636,27 +2645,27 @@ const xa = /* @__PURE__ */ W({
|
|
|
2636
2645
|
setup(e) {
|
|
2637
2646
|
const {
|
|
2638
2647
|
getPrefixCls: t
|
|
2639
|
-
} =
|
|
2648
|
+
} = Q(), [a, o] = pe("header"), i = t({
|
|
2640
2649
|
suffixCls: "theme-editor",
|
|
2641
2650
|
isPor: !0
|
|
2642
2651
|
}), {
|
|
2643
|
-
wrapSSR:
|
|
2644
|
-
hashId:
|
|
2645
|
-
} =
|
|
2646
|
-
token:
|
|
2647
|
-
} =
|
|
2652
|
+
wrapSSR: u,
|
|
2653
|
+
hashId: f
|
|
2654
|
+
} = J("ProThemeEditor", [pa], i), {
|
|
2655
|
+
token: c
|
|
2656
|
+
} = Se(), S = v(() => {
|
|
2648
2657
|
var l;
|
|
2649
|
-
return (l =
|
|
2650
|
-
}),
|
|
2651
|
-
var l,
|
|
2658
|
+
return (l = c.value) == null ? void 0 : l.layout;
|
|
2659
|
+
}), b = v(() => {
|
|
2660
|
+
var l, s, M, I, x, y, m, h, R, p, w, $, T, N, z, H, P, G, E, Y, A, d, C, B, k;
|
|
2652
2661
|
return [{
|
|
2653
2662
|
key: "colorBgMenu",
|
|
2654
2663
|
title: "全部背景",
|
|
2655
|
-
disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["mix", "wide"].includes((
|
|
2664
|
+
disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["mix", "wide"].includes((s = e.settingValue) == null ? void 0 : s.layout)
|
|
2656
2665
|
}, {
|
|
2657
2666
|
key: "colorDarkBgMenu",
|
|
2658
2667
|
title: "全部背景",
|
|
2659
|
-
disabled: ((
|
|
2668
|
+
disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["side", "simple"].includes((x = e.settingValue) == null ? void 0 : x.layout)
|
|
2660
2669
|
}, {
|
|
2661
2670
|
key: "colorSubItemBg",
|
|
2662
2671
|
title: "子菜单背景",
|
|
@@ -2668,130 +2677,130 @@ const xa = /* @__PURE__ */ W({
|
|
|
2668
2677
|
}, {
|
|
2669
2678
|
key: "colorBgMenuItemSelected",
|
|
2670
2679
|
title: "菜单选中背景",
|
|
2671
|
-
disabled: ((
|
|
2680
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["mix", "wide"].includes((m = e.settingValue) == null ? void 0 : m.layout)
|
|
2672
2681
|
}, {
|
|
2673
2682
|
key: "colorDarkBgMenuItemSelected",
|
|
2674
2683
|
title: "菜单选中背景",
|
|
2675
|
-
disabled: ((
|
|
2684
|
+
disabled: ((h = e.settingValue) == null ? void 0 : h.theme) === "light" || ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["side", "simple"].includes((p = e.settingValue) == null ? void 0 : p.layout)
|
|
2676
2685
|
}, {
|
|
2677
2686
|
key: "colorTextMenu",
|
|
2678
2687
|
title: "菜单文字颜色",
|
|
2679
|
-
disabled: ((
|
|
2688
|
+
disabled: ((w = e.settingValue) == null ? void 0 : w.theme) === "dark" && ["mix", "wide"].includes(($ = e.settingValue) == null ? void 0 : $.layout)
|
|
2680
2689
|
}, {
|
|
2681
2690
|
key: "colorDarkTextMenu",
|
|
2682
2691
|
title: "菜单文字颜色",
|
|
2683
|
-
disabled: ((
|
|
2692
|
+
disabled: ((T = e.settingValue) == null ? void 0 : T.theme) === "light" || ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["side", "simple"].includes((z = e.settingValue) == null ? void 0 : z.layout)
|
|
2684
2693
|
}, {
|
|
2685
2694
|
key: "colorTextMenuHover",
|
|
2686
2695
|
title: "菜单文字移入颜色",
|
|
2687
|
-
disabled: ((
|
|
2696
|
+
disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "dark" && ["mix", "wide"].includes((P = e.settingValue) == null ? void 0 : P.layout)
|
|
2688
2697
|
}, {
|
|
2689
2698
|
key: "colorDarkTextMenuHover",
|
|
2690
2699
|
title: "菜单文字移入颜色",
|
|
2691
|
-
disabled: ((
|
|
2700
|
+
disabled: ((G = e.settingValue) == null ? void 0 : G.theme) === "light" || ((E = e.settingValue) == null ? void 0 : E.theme) === "dark" && ["side", "simple"].includes((Y = e.settingValue) == null ? void 0 : Y.layout)
|
|
2692
2701
|
}, {
|
|
2693
2702
|
key: "colorTextMenuSelected",
|
|
2694
2703
|
title: "菜单文字选中颜色",
|
|
2695
|
-
disabled: ((
|
|
2704
|
+
disabled: ((A = e.settingValue) == null ? void 0 : A.theme) === "dark" && ["mix", "wide"].includes((d = e.settingValue) == null ? void 0 : d.layout)
|
|
2696
2705
|
}, {
|
|
2697
2706
|
key: "colorDarkTextMenuSelected",
|
|
2698
2707
|
title: "菜单文字选中颜色",
|
|
2699
|
-
disabled: ((
|
|
2708
|
+
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || ((B = e.settingValue) == null ? void 0 : B.theme) === "dark" && ["side", "simple"].includes((k = e.settingValue) == null ? void 0 : k.layout)
|
|
2700
2709
|
}];
|
|
2701
|
-
}),
|
|
2702
|
-
var l,
|
|
2710
|
+
}), O = v(() => {
|
|
2711
|
+
var l, s, M, I, x, y, m, h, R, p, w, $, T, N, z, H, P, G, E, Y, A, d, C, B, k, D, W, ee, ne, Z, Ee, Xe;
|
|
2703
2712
|
return [{
|
|
2704
2713
|
key: "colorBgMenu",
|
|
2705
2714
|
title: "全部背景",
|
|
2706
|
-
disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["side", "simple"].includes((
|
|
2715
|
+
disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["side", "simple"].includes((s = e.settingValue) == null ? void 0 : s.layout)
|
|
2707
2716
|
}, {
|
|
2708
2717
|
key: "colorDarkBgMenu",
|
|
2709
2718
|
title: "全部背景",
|
|
2710
|
-
disabled: ((
|
|
2719
|
+
disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "light" || ((I = e.settingValue) == null ? void 0 : I.theme) === "dark" && ["mix", "wide"].includes((x = e.settingValue) == null ? void 0 : x.layout)
|
|
2711
2720
|
}, {
|
|
2712
2721
|
key: "colorSubItemBg",
|
|
2713
2722
|
title: "子菜单背景",
|
|
2714
|
-
disabled: ((
|
|
2723
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["side", "simple"].includes((m = e.settingValue) == null ? void 0 : m.layout)
|
|
2715
2724
|
}, {
|
|
2716
2725
|
key: "colorDarkSubItemBg",
|
|
2717
2726
|
title: "子菜单背景",
|
|
2718
|
-
disabled: ((
|
|
2727
|
+
disabled: ((h = e.settingValue) == null ? void 0 : h.theme) === "light" || ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["mix", "wide"].includes((p = e.settingValue) == null ? void 0 : p.layout)
|
|
2719
2728
|
}, {
|
|
2720
2729
|
key: "colorBgMenuItemHover",
|
|
2721
2730
|
title: "菜单移入背景",
|
|
2722
|
-
disabled: ((
|
|
2731
|
+
disabled: ((w = e.settingValue) == null ? void 0 : w.theme) === "dark" && (($ = e.settingValue) == null ? void 0 : $.layout) !== "mix"
|
|
2723
2732
|
}, {
|
|
2724
2733
|
key: "colorBgMenuItemSelected",
|
|
2725
2734
|
title: "菜单选中背景",
|
|
2726
|
-
disabled: ((
|
|
2735
|
+
disabled: ((T = e.settingValue) == null ? void 0 : T.theme) === "dark" && ((N = e.settingValue) == null ? void 0 : N.layout) !== "mix"
|
|
2727
2736
|
}, {
|
|
2728
2737
|
key: "colorDarkBgMenuItemSelected",
|
|
2729
2738
|
title: "菜单选中背景",
|
|
2730
|
-
disabled: ((
|
|
2739
|
+
disabled: ((z = e.settingValue) == null ? void 0 : z.theme) === "light" || ((H = e.settingValue) == null ? void 0 : H.theme) === "dark" && ["mix", "wide"].includes((P = e.settingValue) == null ? void 0 : P.layout)
|
|
2731
2740
|
}, {
|
|
2732
2741
|
key: "colorTextMenu",
|
|
2733
2742
|
title: "菜单文字颜色",
|
|
2734
|
-
disabled: ((
|
|
2743
|
+
disabled: ((G = e.settingValue) == null ? void 0 : G.theme) === "dark" && ((E = e.settingValue) == null ? void 0 : E.layout) !== "mix"
|
|
2735
2744
|
}, {
|
|
2736
2745
|
key: "colorDarkTextMenu",
|
|
2737
2746
|
title: "菜单文字颜色",
|
|
2738
|
-
disabled: ((
|
|
2747
|
+
disabled: ((Y = e.settingValue) == null ? void 0 : Y.theme) === "light" || ((A = e.settingValue) == null ? void 0 : A.theme) === "dark" && ["mix", "wide"].includes((d = e.settingValue) == null ? void 0 : d.layout)
|
|
2739
2748
|
}, {
|
|
2740
2749
|
key: "colorTextMenuHover",
|
|
2741
2750
|
title: "菜单文字移入颜色",
|
|
2742
|
-
disabled: ((
|
|
2751
|
+
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "dark" && ((B = e.settingValue) == null ? void 0 : B.layout) !== "mix"
|
|
2743
2752
|
}, {
|
|
2744
2753
|
key: "colorDarkTextMenuHover",
|
|
2745
2754
|
title: "菜单文字移入颜色",
|
|
2746
|
-
disabled: ((
|
|
2755
|
+
disabled: ((k = e.settingValue) == null ? void 0 : k.theme) === "light" || ((D = e.settingValue) == null ? void 0 : D.theme) === "dark" && ["mix", "wide"].includes((W = e.settingValue) == null ? void 0 : W.layout)
|
|
2747
2756
|
}, {
|
|
2748
2757
|
key: "colorTextMenuSelected",
|
|
2749
2758
|
title: "菜单文字选中颜色",
|
|
2750
|
-
disabled: ((
|
|
2759
|
+
disabled: ((ee = e.settingValue) == null ? void 0 : ee.theme) === "dark" && ((ne = e.settingValue) == null ? void 0 : ne.layout) !== "mix"
|
|
2751
2760
|
}, {
|
|
2752
2761
|
key: "colorDarkTextMenuSelected",
|
|
2753
2762
|
title: "菜单文字选中颜色",
|
|
2754
|
-
disabled: ((
|
|
2763
|
+
disabled: ((Z = e.settingValue) == null ? void 0 : Z.theme) === "light" || ((Ee = e.settingValue) == null ? void 0 : Ee.theme) === "dark" && ["mix", "wide"].includes((Xe = e.settingValue) == null ? void 0 : Xe.layout)
|
|
2755
2764
|
}];
|
|
2756
|
-
}),
|
|
2757
|
-
var
|
|
2758
|
-
return (
|
|
2765
|
+
}), g = v(() => a.value === "header" ? b.value : a.value === "sider" ? O.value : []), F = (l) => {
|
|
2766
|
+
var s, M;
|
|
2767
|
+
return (M = (s = S.value) == null ? void 0 : s[a.value]) == null ? void 0 : M[l];
|
|
2759
2768
|
};
|
|
2760
2769
|
return () => {
|
|
2761
|
-
var
|
|
2770
|
+
var s, M, I;
|
|
2762
2771
|
let l;
|
|
2763
|
-
return
|
|
2764
|
-
class: [i,
|
|
2772
|
+
return u(n("div", {
|
|
2773
|
+
class: [i, f.value]
|
|
2765
2774
|
}, [n("h3", {
|
|
2766
|
-
class: [`${i}-title`,
|
|
2767
|
-
}, [
|
|
2768
|
-
class: [`${i}-sub-title`,
|
|
2769
|
-
}, [n("span", null, [(
|
|
2770
|
-
var
|
|
2771
|
-
return
|
|
2772
|
-
})) == null ? void 0 :
|
|
2775
|
+
class: [`${i}-title`, f.value]
|
|
2776
|
+
}, [te("主题编辑器"), n("div", {
|
|
2777
|
+
class: [`${i}-sub-title`, f.value]
|
|
2778
|
+
}, [n("span", null, [(s = Mt.find((x) => {
|
|
2779
|
+
var y;
|
|
2780
|
+
return x.key === ((y = e.settingValue) == null ? void 0 : y.theme);
|
|
2781
|
+
})) == null ? void 0 : s.title]), n("span", {
|
|
2773
2782
|
style: {
|
|
2774
2783
|
marginInline: "8px"
|
|
2775
2784
|
}
|
|
2776
|
-
}, [
|
|
2777
|
-
var
|
|
2778
|
-
return
|
|
2779
|
-
})) == null ? void 0 :
|
|
2780
|
-
class: [`${i}-content`,
|
|
2781
|
-
}, [n(
|
|
2782
|
-
class: `${i}-list ${
|
|
2785
|
+
}, [te("/")]), n("span", null, [(M = Ot.find((x) => {
|
|
2786
|
+
var y;
|
|
2787
|
+
return x.key === ((y = e.settingValue) == null ? void 0 : y.layout);
|
|
2788
|
+
})) == null ? void 0 : M.title])])]), n("div", {
|
|
2789
|
+
class: [`${i}-content`, f.value]
|
|
2790
|
+
}, [n(oe, {
|
|
2791
|
+
class: `${i}-list ${f.value}`.trim(),
|
|
2783
2792
|
split: !1,
|
|
2784
2793
|
size: "small",
|
|
2785
2794
|
renderItem: ({
|
|
2786
|
-
item:
|
|
2787
|
-
}) => n(
|
|
2788
|
-
actions: [
|
|
2795
|
+
item: x
|
|
2796
|
+
}) => n(oe.Item, {
|
|
2797
|
+
actions: [x.action]
|
|
2789
2798
|
}, {
|
|
2790
2799
|
default: () => [n("span", {
|
|
2791
2800
|
style: {
|
|
2792
|
-
opacity:
|
|
2801
|
+
opacity: x.disabled ? 0.5 : 1
|
|
2793
2802
|
}
|
|
2794
|
-
}, [
|
|
2803
|
+
}, [x.title])]
|
|
2795
2804
|
}),
|
|
2796
2805
|
dataSource: [{
|
|
2797
2806
|
title: "自定义主题色",
|
|
@@ -2800,39 +2809,39 @@ const xa = /* @__PURE__ */ W({
|
|
|
2800
2809
|
actions: ["confirm"],
|
|
2801
2810
|
modes: ["rgb"],
|
|
2802
2811
|
size: "small",
|
|
2803
|
-
onConfirm: (
|
|
2812
|
+
onConfirm: (x) => e.onChange && e.onChange(x, "primaryColor")
|
|
2804
2813
|
}, null)
|
|
2805
2814
|
}]
|
|
2806
|
-
}, null), n(
|
|
2815
|
+
}, null), n(Le, {
|
|
2807
2816
|
activeKey: a.value,
|
|
2808
2817
|
onChange: o
|
|
2809
|
-
}, va(l = ha.map((
|
|
2810
|
-
key:
|
|
2811
|
-
tab:
|
|
2818
|
+
}, va(l = ha.map((x) => n(Dt, {
|
|
2819
|
+
key: x.key,
|
|
2820
|
+
tab: x.title
|
|
2812
2821
|
}, {
|
|
2813
|
-
default: () => [n(
|
|
2814
|
-
class: `${i}-list ${
|
|
2822
|
+
default: () => [n(oe, {
|
|
2823
|
+
class: `${i}-list ${f.value}`.trim(),
|
|
2815
2824
|
split: !1,
|
|
2816
2825
|
size: "small",
|
|
2817
2826
|
renderItem: ({
|
|
2818
|
-
item:
|
|
2819
|
-
}) => n(
|
|
2820
|
-
actions: [
|
|
2827
|
+
item: y
|
|
2828
|
+
}) => n(oe.Item, {
|
|
2829
|
+
actions: [y.action]
|
|
2821
2830
|
}, {
|
|
2822
2831
|
default: () => [n("span", {
|
|
2823
2832
|
style: {
|
|
2824
|
-
opacity:
|
|
2833
|
+
opacity: y.disabled ? 0.5 : 1
|
|
2825
2834
|
}
|
|
2826
|
-
}, [
|
|
2835
|
+
}, [y.title])]
|
|
2827
2836
|
}),
|
|
2828
|
-
dataSource:
|
|
2829
|
-
...
|
|
2837
|
+
dataSource: g.value.filter((y) => !y.disabled).map((y) => ({
|
|
2838
|
+
...y,
|
|
2830
2839
|
action: n(_e, {
|
|
2831
|
-
value:
|
|
2840
|
+
value: F(y.key),
|
|
2832
2841
|
actions: ["confirm"],
|
|
2833
2842
|
modes: ["rgb"],
|
|
2834
2843
|
size: "small",
|
|
2835
|
-
onConfirm: (
|
|
2844
|
+
onConfirm: (m) => e.onChange && e.onChange(m, a.value, y.key)
|
|
2836
2845
|
}, null)
|
|
2837
2846
|
}))
|
|
2838
2847
|
}, null)]
|
|
@@ -2873,11 +2882,11 @@ const xa = /* @__PURE__ */ W({
|
|
|
2873
2882
|
}
|
|
2874
2883
|
});
|
|
2875
2884
|
function et(e) {
|
|
2876
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2885
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
2877
2886
|
}
|
|
2878
2887
|
const {
|
|
2879
2888
|
preset: tt
|
|
2880
|
-
} =
|
|
2889
|
+
} = je, wa = /* @__PURE__ */ j({
|
|
2881
2890
|
name: "OthersChange",
|
|
2882
2891
|
props: {
|
|
2883
2892
|
prefixCls: L.string,
|
|
@@ -2885,77 +2894,77 @@ const {
|
|
|
2885
2894
|
onChange: Function
|
|
2886
2895
|
},
|
|
2887
2896
|
setup(e) {
|
|
2888
|
-
const t =
|
|
2897
|
+
const t = me({
|
|
2889
2898
|
suffixCls: "others",
|
|
2890
2899
|
isPor: !0
|
|
2891
2900
|
}), {
|
|
2892
2901
|
wrapSSR: a,
|
|
2893
2902
|
hashId: o
|
|
2894
|
-
} =
|
|
2903
|
+
} = J("SettingsDrawOthers", [Ca], t);
|
|
2895
2904
|
return () => {
|
|
2896
|
-
var
|
|
2905
|
+
var u, f, c, S, b, O, g, F, l, s, M, I, x, y;
|
|
2897
2906
|
let i;
|
|
2898
2907
|
return a(n("div", {
|
|
2899
2908
|
class: [t, o.value]
|
|
2900
2909
|
}, [n("h3", {
|
|
2901
2910
|
class: [`${t}-title`, o.value]
|
|
2902
|
-
}, [
|
|
2911
|
+
}, [te("页面动画设置")]), n(oe, {
|
|
2903
2912
|
class: `${t}-list ${o.value}`.trim(),
|
|
2904
2913
|
split: !1,
|
|
2905
2914
|
size: "small",
|
|
2906
2915
|
renderItem: ({
|
|
2907
|
-
item:
|
|
2908
|
-
}) => n(
|
|
2909
|
-
title:
|
|
2916
|
+
item: m
|
|
2917
|
+
}) => n(we, {
|
|
2918
|
+
title: m.disabled ? m.disabledReason : "",
|
|
2910
2919
|
placement: "left"
|
|
2911
2920
|
}, {
|
|
2912
|
-
default: () => [n(
|
|
2913
|
-
actions: [
|
|
2921
|
+
default: () => [n(oe.Item, {
|
|
2922
|
+
actions: [m.action]
|
|
2914
2923
|
}, {
|
|
2915
2924
|
default: () => [n("span", {
|
|
2916
2925
|
style: {
|
|
2917
|
-
opacity:
|
|
2926
|
+
opacity: m.disabled ? 0.5 : 1
|
|
2918
2927
|
}
|
|
2919
|
-
}, [
|
|
2928
|
+
}, [m.title])]
|
|
2920
2929
|
})]
|
|
2921
2930
|
}),
|
|
2922
2931
|
dataSource: [{
|
|
2923
2932
|
title: "禁用动画",
|
|
2924
2933
|
action: n(rt, {
|
|
2925
|
-
checked: !((
|
|
2934
|
+
checked: !((f = (u = e.settingValue) == null ? void 0 : u.animate) != null && f.disabled),
|
|
2926
2935
|
size: "small",
|
|
2927
|
-
onChange: (
|
|
2928
|
-
var
|
|
2929
|
-
return (
|
|
2936
|
+
onChange: (m) => {
|
|
2937
|
+
var h;
|
|
2938
|
+
return (h = e.onChange) == null ? void 0 : h.call(e, "animate", "disabled", !m);
|
|
2930
2939
|
}
|
|
2931
2940
|
}, null)
|
|
2932
2941
|
}, {
|
|
2933
2942
|
title: "动画效果",
|
|
2934
|
-
disabled: (
|
|
2935
|
-
action: n(
|
|
2936
|
-
value: (
|
|
2943
|
+
disabled: (S = (c = e.settingValue) == null ? void 0 : c.animate) == null ? void 0 : S.disabled,
|
|
2944
|
+
action: n(ge, {
|
|
2945
|
+
value: (O = (b = e.settingValue) == null ? void 0 : b.animate) == null ? void 0 : O.name,
|
|
2937
2946
|
style: {
|
|
2938
2947
|
width: "100px"
|
|
2939
2948
|
},
|
|
2940
2949
|
size: "small",
|
|
2941
|
-
disabled: (
|
|
2942
|
-
getPopupContainer: (
|
|
2943
|
-
onChange: (
|
|
2944
|
-
var
|
|
2945
|
-
return (
|
|
2950
|
+
disabled: (F = (g = e.settingValue) == null ? void 0 : g.animate) == null ? void 0 : F.disabled,
|
|
2951
|
+
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
2952
|
+
onChange: (m) => {
|
|
2953
|
+
var h;
|
|
2954
|
+
return (h = e.onChange) == null ? void 0 : h.call(e, "animate", "name", m);
|
|
2946
2955
|
}
|
|
2947
|
-
}, et(i = tt.map((
|
|
2948
|
-
value:
|
|
2956
|
+
}, et(i = tt.map((m) => n(ge.Option, {
|
|
2957
|
+
value: m.name
|
|
2949
2958
|
}, {
|
|
2950
|
-
default: () => [
|
|
2959
|
+
default: () => [m.alias]
|
|
2951
2960
|
}))) ? i : {
|
|
2952
2961
|
default: () => [i]
|
|
2953
2962
|
})
|
|
2954
2963
|
}, {
|
|
2955
2964
|
title: "动画方向",
|
|
2956
|
-
disabled: (
|
|
2957
|
-
action: n(
|
|
2958
|
-
value: (I = (
|
|
2965
|
+
disabled: (s = (l = e.settingValue) == null ? void 0 : l.animate) == null ? void 0 : s.disabled,
|
|
2966
|
+
action: n(ge, {
|
|
2967
|
+
value: (I = (M = e.settingValue) == null ? void 0 : M.animate) == null ? void 0 : I.direction,
|
|
2959
2968
|
style: {
|
|
2960
2969
|
width: "100px"
|
|
2961
2970
|
},
|
|
@@ -2963,22 +2972,22 @@ const {
|
|
|
2963
2972
|
dropdownStyle: {
|
|
2964
2973
|
minWidth: "120px"
|
|
2965
2974
|
},
|
|
2966
|
-
disabled: (
|
|
2967
|
-
getPopupContainer: (
|
|
2968
|
-
onChange: (
|
|
2969
|
-
var
|
|
2970
|
-
return (
|
|
2975
|
+
disabled: (y = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : y.disabled,
|
|
2976
|
+
getPopupContainer: (m) => m && m.parentNode ? m.parentNode : m,
|
|
2977
|
+
onChange: (m) => {
|
|
2978
|
+
var h;
|
|
2979
|
+
return (h = e.onChange) == null ? void 0 : h.call(e, "animate", "direction", m);
|
|
2971
2980
|
}
|
|
2972
2981
|
}, {
|
|
2973
2982
|
default: () => {
|
|
2974
|
-
var
|
|
2975
|
-
return [(
|
|
2976
|
-
var
|
|
2977
|
-
return
|
|
2978
|
-
})) == null ? void 0 :
|
|
2979
|
-
value:
|
|
2980
|
-
}, et(
|
|
2981
|
-
default: () => [
|
|
2983
|
+
var m;
|
|
2984
|
+
return [(m = tt.find((h) => {
|
|
2985
|
+
var R, p;
|
|
2986
|
+
return h.name === ((p = (R = e.settingValue) == null ? void 0 : R.animate) == null ? void 0 : p.name);
|
|
2987
|
+
})) == null ? void 0 : m.directions.map((h) => n(ge.Option, {
|
|
2988
|
+
value: h
|
|
2989
|
+
}, et(h) ? h : {
|
|
2990
|
+
default: () => [h]
|
|
2982
2991
|
}))];
|
|
2983
2992
|
}
|
|
2984
2993
|
})
|
|
@@ -2988,7 +2997,7 @@ const {
|
|
|
2988
2997
|
}
|
|
2989
2998
|
}), {
|
|
2990
2999
|
preset: Sa
|
|
2991
|
-
} =
|
|
3000
|
+
} = je, Fe = Object.keys(V).filter((e) => e !== "title"), nt = {
|
|
2992
3001
|
color: "#fff",
|
|
2993
3002
|
fontSize: 20
|
|
2994
3003
|
}, Ia = [{
|
|
@@ -3007,9 +3016,9 @@ const {
|
|
|
3007
3016
|
label: "fixedMultiTab",
|
|
3008
3017
|
title: "固定多标签"
|
|
3009
3018
|
}], at = (e) => nn() ? {
|
|
3010
|
-
...
|
|
3019
|
+
...le(V, Fe),
|
|
3011
3020
|
...e || {}
|
|
3012
|
-
} :
|
|
3021
|
+
} : He(V), ye = (e, {
|
|
3013
3022
|
slots: t
|
|
3014
3023
|
}) => {
|
|
3015
3024
|
var a;
|
|
@@ -3020,7 +3029,7 @@ const {
|
|
|
3020
3029
|
}, [n("h3", {
|
|
3021
3030
|
class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
|
|
3022
3031
|
}, [e.title]), (a = t.default) == null ? void 0 : a.call(t)]);
|
|
3023
|
-
}, Hi = /* @__PURE__ */
|
|
3032
|
+
}, Hi = /* @__PURE__ */ j({
|
|
3024
3033
|
name: "SettingDrawer",
|
|
3025
3034
|
props: {
|
|
3026
3035
|
themeOnly: Boolean,
|
|
@@ -3042,48 +3051,48 @@ const {
|
|
|
3042
3051
|
setup(e) {
|
|
3043
3052
|
const {
|
|
3044
3053
|
getPrefixCls: t
|
|
3045
|
-
} =
|
|
3054
|
+
} = Q(), a = t({
|
|
3046
3055
|
suffixCls: "setting-drawer",
|
|
3047
3056
|
isPor: !0
|
|
3048
3057
|
}), {
|
|
3049
3058
|
wrapSSR: o,
|
|
3050
3059
|
hashId: i
|
|
3051
|
-
} =
|
|
3052
|
-
value:
|
|
3060
|
+
} = J("ProSettingDraw", [ya], a), u = Re(!1), [f, c] = pe(!1), [S, b] = pe(!1), [O, g] = pe(!1), F = v(() => at(le(e.settings, Fe))), [l, s] = ln(() => at(le(e.settings, Fe)), {
|
|
3061
|
+
value: F,
|
|
3053
3062
|
onChange: e.onChange
|
|
3054
|
-
}),
|
|
3055
|
-
copy:
|
|
3056
|
-
copied:
|
|
3057
|
-
isSupported:
|
|
3063
|
+
}), M = v(() => e.colorList && tn(e.colorList) ? e.colorList : []), I = v(() => wn(U(l))), {
|
|
3064
|
+
copy: x,
|
|
3065
|
+
copied: y,
|
|
3066
|
+
isSupported: m
|
|
3058
3067
|
} = sn();
|
|
3059
|
-
|
|
3060
|
-
|
|
3068
|
+
de(f, () => {
|
|
3069
|
+
u.value || (u.value = !0);
|
|
3061
3070
|
});
|
|
3062
|
-
const
|
|
3063
|
-
var
|
|
3064
|
-
const
|
|
3065
|
-
if (
|
|
3066
|
-
|
|
3071
|
+
const h = (p, w, $) => {
|
|
3072
|
+
var z, H;
|
|
3073
|
+
const T = ["header", "sider"], N = {};
|
|
3074
|
+
if ($ && T.includes(p)) {
|
|
3075
|
+
N[p] = {}, N[p][$] = w, e.onChangeLayout && e.onChangeLayout(le(N, T));
|
|
3067
3076
|
return;
|
|
3068
3077
|
} else
|
|
3069
|
-
|
|
3070
|
-
if (
|
|
3071
|
-
const
|
|
3072
|
-
|
|
3078
|
+
p === "animate" ? (N[p] = {}, N[p][$] = w, $ === "name" && (N[p].direction = (H = (z = Sa.find((P) => P.name === w)) == null ? void 0 : z.directions) == null ? void 0 : H[0])) : N[p] = w;
|
|
3079
|
+
if (p === "colorWeak") {
|
|
3080
|
+
const P = document.querySelector("body");
|
|
3081
|
+
P && (P.dataset.prosettingdrawer = w === !0 ? P.style.filter : P.dataset.prosettingdrawer || "none", w === !0 && (P.dataset.prosettingdrawer = P.style.filter), P.style.filter = w === !0 ? "invert(80%)" : P.dataset.prosettingdrawer || "none", w || delete P.dataset.prosettingdrawer);
|
|
3073
3082
|
}
|
|
3074
|
-
|
|
3075
|
-
...Cn(
|
|
3083
|
+
s(an(U(l), {
|
|
3084
|
+
...Cn(Ve(N, T))
|
|
3076
3085
|
}));
|
|
3077
|
-
},
|
|
3078
|
-
|
|
3086
|
+
}, R = () => {
|
|
3087
|
+
m.value && x(JSON.stringify(U(l)));
|
|
3079
3088
|
};
|
|
3080
|
-
return
|
|
3081
|
-
|
|
3082
|
-
}), () => o(n(
|
|
3089
|
+
return de(y, (p) => {
|
|
3090
|
+
p && Nt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
3091
|
+
}), () => o(n(be, {
|
|
3083
3092
|
width: 300,
|
|
3084
3093
|
closable: !1,
|
|
3085
|
-
open:
|
|
3086
|
-
rootClassName: `${a} ${i.value} ${
|
|
3094
|
+
open: f.value,
|
|
3095
|
+
rootClassName: `${a} ${i.value} ${f.value && `${a}-show`} ${!u.value && `${a}-trantion-none`}`,
|
|
3087
3096
|
placement: "right",
|
|
3088
3097
|
rootStyle: {
|
|
3089
3098
|
zIndex: 999
|
|
@@ -3091,11 +3100,11 @@ const {
|
|
|
3091
3100
|
bodyStyle: {
|
|
3092
3101
|
padding: 0
|
|
3093
3102
|
},
|
|
3094
|
-
onClose: () =>
|
|
3103
|
+
onClose: () => c(!1),
|
|
3095
3104
|
handle: n("div", {
|
|
3096
3105
|
class: [`${a}-handle`, i.value],
|
|
3097
|
-
onClick: () =>
|
|
3098
|
-
}, [
|
|
3106
|
+
onClick: () => c(!f.value)
|
|
3107
|
+
}, [f.value ? n(st, {
|
|
3099
3108
|
style: nt
|
|
3100
3109
|
}, null) : n(Xt, {
|
|
3101
3110
|
style: nt
|
|
@@ -3103,10 +3112,10 @@ const {
|
|
|
3103
3112
|
}, {
|
|
3104
3113
|
default: () => [n("div", {
|
|
3105
3114
|
class: [`${a}-wrapper`, i.value]
|
|
3106
|
-
}, [n(
|
|
3115
|
+
}, [n(un, null, {
|
|
3107
3116
|
default: () => [n("div", {
|
|
3108
3117
|
class: [`${a}-content`, i.value]
|
|
3109
|
-
}, [n(
|
|
3118
|
+
}, [n(ye, {
|
|
3110
3119
|
prefixCls: a,
|
|
3111
3120
|
hashId: i.value,
|
|
3112
3121
|
title: "整体风格设置"
|
|
@@ -3118,87 +3127,87 @@ const {
|
|
|
3118
3127
|
value: l.value.theme,
|
|
3119
3128
|
configType: "theme",
|
|
3120
3129
|
key: "navTheme",
|
|
3121
|
-
onChange: (
|
|
3130
|
+
onChange: (p) => h("theme", p)
|
|
3122
3131
|
}, null)]
|
|
3123
|
-
}), n(
|
|
3132
|
+
}), n(ye, {
|
|
3124
3133
|
hashId: i.value,
|
|
3125
|
-
title: n("span", null, [
|
|
3134
|
+
title: n("span", null, [te("主题色 "), n("a", {
|
|
3126
3135
|
style: {
|
|
3127
3136
|
fontSize: "12px"
|
|
3128
3137
|
},
|
|
3129
|
-
onClick: () =>
|
|
3130
|
-
}, [
|
|
3138
|
+
onClick: () => b(!0)
|
|
3139
|
+
}, [te("更多配置")])]),
|
|
3131
3140
|
prefixCls: a
|
|
3132
3141
|
}, {
|
|
3133
3142
|
default: () => [n(ba, {
|
|
3134
3143
|
hashId: i.value,
|
|
3135
3144
|
prefixCls: a,
|
|
3136
|
-
colorList:
|
|
3145
|
+
colorList: M.value,
|
|
3137
3146
|
settingValue: l.value,
|
|
3138
|
-
onChange: (
|
|
3147
|
+
onChange: (p, w) => h(w || "primaryColor", p)
|
|
3139
3148
|
}, null)]
|
|
3140
|
-
}), !e.themeOnly && n(q, null, [n(
|
|
3149
|
+
}), !e.themeOnly && n(q, null, [n(Me, null, null), n(ye, {
|
|
3141
3150
|
hashId: i.value,
|
|
3142
3151
|
prefixCls: a,
|
|
3143
3152
|
title: "导航模式"
|
|
3144
3153
|
}, {
|
|
3145
3154
|
default: () => [n(Qe, {
|
|
3146
3155
|
prefixCls: a,
|
|
3147
|
-
value:
|
|
3156
|
+
value: U(l).layout,
|
|
3148
3157
|
key: "layout",
|
|
3149
3158
|
hashId: i.value,
|
|
3150
3159
|
configType: "layout",
|
|
3151
3160
|
list: Ot,
|
|
3152
|
-
onChange: (
|
|
3161
|
+
onChange: (p) => h("layout", p)
|
|
3153
3162
|
}, null)]
|
|
3154
3163
|
}), Ia.map(({
|
|
3155
|
-
label:
|
|
3156
|
-
title:
|
|
3157
|
-
}) => n(
|
|
3158
|
-
label:
|
|
3159
|
-
disabled:
|
|
3160
|
-
value:
|
|
3164
|
+
label: p,
|
|
3165
|
+
title: w
|
|
3166
|
+
}) => n(he, {
|
|
3167
|
+
label: w,
|
|
3168
|
+
disabled: U(I)[p],
|
|
3169
|
+
value: U(l)[p],
|
|
3161
3170
|
prefixCls: a,
|
|
3162
3171
|
hashId: i.value,
|
|
3163
|
-
valueKey:
|
|
3164
|
-
onChange: (
|
|
3165
|
-
}, null)), n(
|
|
3172
|
+
valueKey: p,
|
|
3173
|
+
onChange: ($, T) => h($, T)
|
|
3174
|
+
}, null)), n(Me, null, null), n(ye, {
|
|
3166
3175
|
hashId: i.value,
|
|
3167
3176
|
prefixCls: a,
|
|
3168
|
-
title: n("span", null, [
|
|
3177
|
+
title: n("span", null, [te("其他设置 "), n("a", {
|
|
3169
3178
|
style: {
|
|
3170
3179
|
fontSize: "12px"
|
|
3171
3180
|
},
|
|
3172
|
-
onClick: () =>
|
|
3173
|
-
}, [
|
|
3181
|
+
onClick: () => g(!0)
|
|
3182
|
+
}, [te("更多配置")])])
|
|
3174
3183
|
}, {
|
|
3175
3184
|
default: () => [Ma.map(({
|
|
3176
|
-
label:
|
|
3177
|
-
title:
|
|
3178
|
-
}) => n(
|
|
3179
|
-
label:
|
|
3180
|
-
disabled:
|
|
3181
|
-
value:
|
|
3185
|
+
label: p,
|
|
3186
|
+
title: w
|
|
3187
|
+
}) => n(he, {
|
|
3188
|
+
label: w,
|
|
3189
|
+
disabled: U(I)[p],
|
|
3190
|
+
value: U(l)[p],
|
|
3182
3191
|
prefixCls: a,
|
|
3183
3192
|
hashId: i.value,
|
|
3184
|
-
valueKey:
|
|
3185
|
-
onChange: (
|
|
3186
|
-
}, null)), e.weakmode && n(
|
|
3193
|
+
valueKey: p,
|
|
3194
|
+
onChange: ($, T) => h($, T)
|
|
3195
|
+
}, null)), e.weakmode && n(he, {
|
|
3187
3196
|
label: "色弱模式",
|
|
3188
|
-
value:
|
|
3197
|
+
value: U(l).colorWeak,
|
|
3189
3198
|
prefixCls: a,
|
|
3190
3199
|
hashId: i.value,
|
|
3191
3200
|
valueKey: "colorWeak",
|
|
3192
|
-
onChange: (
|
|
3193
|
-
}, null), e.showProgress && n(
|
|
3201
|
+
onChange: (p, w) => h(p, w)
|
|
3202
|
+
}, null), e.showProgress && n(he, {
|
|
3194
3203
|
label: "顶部进度条",
|
|
3195
|
-
value:
|
|
3204
|
+
value: U(l).showProgressBar,
|
|
3196
3205
|
prefixCls: a,
|
|
3197
3206
|
hashId: i.value,
|
|
3198
3207
|
valueKey: "showProgressBar",
|
|
3199
|
-
onChange: (
|
|
3208
|
+
onChange: (p, w) => h(p, w)
|
|
3200
3209
|
}, null)]
|
|
3201
|
-
})]), e.hideHintAlert && e.hideCopyButton ? null : n(
|
|
3210
|
+
})]), e.hideHintAlert && e.hideCopyButton ? null : n(Me, null, null), e.hideHintAlert ? null : n(zt, {
|
|
3202
3211
|
type: "warning",
|
|
3203
3212
|
message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
|
|
3204
3213
|
icon: n(Yt, null, null),
|
|
@@ -3207,38 +3216,38 @@ const {
|
|
|
3207
3216
|
marginBottom: "16px"
|
|
3208
3217
|
}
|
|
3209
3218
|
}, null), e.hideCopyButton ? null : n(Ht, {
|
|
3210
|
-
onClick: () =>
|
|
3219
|
+
onClick: () => R(),
|
|
3211
3220
|
block: !0
|
|
3212
3221
|
}, {
|
|
3213
|
-
default: () => [n(_t, null, null),
|
|
3222
|
+
default: () => [n(_t, null, null), te("拷贝设置")]
|
|
3214
3223
|
})])]
|
|
3215
|
-
})]), n(
|
|
3224
|
+
})]), n(be, {
|
|
3216
3225
|
width: 320,
|
|
3217
3226
|
closable: !1,
|
|
3218
3227
|
placement: "right",
|
|
3219
|
-
open:
|
|
3228
|
+
open: S.value,
|
|
3220
3229
|
bodyStyle: {
|
|
3221
3230
|
padding: 0
|
|
3222
3231
|
},
|
|
3223
|
-
onClose: () =>
|
|
3232
|
+
onClose: () => b(!1)
|
|
3224
3233
|
}, {
|
|
3225
3234
|
default: () => [n(xa, {
|
|
3226
3235
|
settingValue: l.value,
|
|
3227
|
-
onChange: (
|
|
3236
|
+
onChange: (p, w, $) => h(w || "primaryColor", p, $)
|
|
3228
3237
|
}, null)]
|
|
3229
|
-
}), n(
|
|
3238
|
+
}), n(be, {
|
|
3230
3239
|
width: 320,
|
|
3231
3240
|
closable: !1,
|
|
3232
3241
|
placement: "right",
|
|
3233
|
-
open:
|
|
3242
|
+
open: O.value,
|
|
3234
3243
|
bodyStyle: {
|
|
3235
3244
|
padding: 0
|
|
3236
3245
|
},
|
|
3237
|
-
onClose: () =>
|
|
3246
|
+
onClose: () => g(!1)
|
|
3238
3247
|
}, {
|
|
3239
3248
|
default: () => [n(wa, {
|
|
3240
3249
|
settingValue: l.value,
|
|
3241
|
-
onChange: (
|
|
3250
|
+
onChange: (p, w, $) => h(p, $, w)
|
|
3242
3251
|
}, null)]
|
|
3243
3252
|
})]
|
|
3244
3253
|
}));
|
|
@@ -4386,7 +4395,7 @@ const {
|
|
|
4386
4395
|
transformOrigin: "center bottom",
|
|
4387
4396
|
animationName: li
|
|
4388
4397
|
}
|
|
4389
|
-
}),
|
|
4398
|
+
}), ui = new r("slideInDown", {
|
|
4390
4399
|
from: {
|
|
4391
4400
|
transform: "translate3d(0, -100%, 0)",
|
|
4392
4401
|
visibility: "visible"
|
|
@@ -4394,7 +4403,7 @@ const {
|
|
|
4394
4403
|
to: {
|
|
4395
4404
|
transform: "translate3d(0, 0, 0)"
|
|
4396
4405
|
}
|
|
4397
|
-
}),
|
|
4406
|
+
}), di = new r("slideInLeft", {
|
|
4398
4407
|
from: {
|
|
4399
4408
|
transform: "translate3d(-100%, 0, 0)",
|
|
4400
4409
|
visibility: "visible"
|
|
@@ -4453,11 +4462,11 @@ const {
|
|
|
4453
4462
|
}), bi = () => ({
|
|
4454
4463
|
"&.slideInDown": {
|
|
4455
4464
|
animationFillMode: "both",
|
|
4456
|
-
animationName:
|
|
4465
|
+
animationName: ui
|
|
4457
4466
|
},
|
|
4458
4467
|
"&.slideInLeft": {
|
|
4459
4468
|
animationFillMode: "both",
|
|
4460
|
-
animationName:
|
|
4469
|
+
animationName: di
|
|
4461
4470
|
},
|
|
4462
4471
|
"&.slideInRight": {
|
|
4463
4472
|
animationFillMode: "both",
|
|
@@ -4516,12 +4525,12 @@ const {
|
|
|
4516
4525
|
}
|
|
4517
4526
|
});
|
|
4518
4527
|
function xi(e) {
|
|
4519
|
-
return
|
|
4520
|
-
const a =
|
|
4528
|
+
return Ne("LayoutPageTranstion", (t) => {
|
|
4529
|
+
const a = ze(t);
|
|
4521
4530
|
return [vi(a)];
|
|
4522
4531
|
}, e);
|
|
4523
4532
|
}
|
|
4524
|
-
const Vi = /* @__PURE__ */
|
|
4533
|
+
const Vi = /* @__PURE__ */ j({
|
|
4525
4534
|
name: "PageTranstion",
|
|
4526
4535
|
props: {
|
|
4527
4536
|
disabled: {
|
|
@@ -4541,35 +4550,35 @@ const Vi = /* @__PURE__ */ W({
|
|
|
4541
4550
|
setup(e, {
|
|
4542
4551
|
slots: t
|
|
4543
4552
|
}) {
|
|
4544
|
-
const a =
|
|
4553
|
+
const a = me({
|
|
4545
4554
|
suffixCls: "page-transtion",
|
|
4546
4555
|
isPor: !0
|
|
4547
4556
|
}), {
|
|
4548
4557
|
wrapSSR: o,
|
|
4549
4558
|
hashId: i
|
|
4550
|
-
} = xi(a),
|
|
4551
|
-
const
|
|
4552
|
-
if (
|
|
4559
|
+
} = xi(a), u = v(() => [c(!1), `${a}-enter`, i.value].join(" ")), f = v(() => [c(!0), `${a}-leave`, i.value].join(" ")), c = (b) => {
|
|
4560
|
+
const O = je.preset.find((l) => e.name == l.name);
|
|
4561
|
+
if (O == null)
|
|
4553
4562
|
return "";
|
|
4554
|
-
let
|
|
4555
|
-
e.direction == null ?
|
|
4556
|
-
const
|
|
4557
|
-
return
|
|
4558
|
-
},
|
|
4559
|
-
if (
|
|
4560
|
-
return
|
|
4561
|
-
let
|
|
4562
|
-
return
|
|
4563
|
+
let g = "";
|
|
4564
|
+
e.direction == null ? g = O.directions[0] : g = O.directions.find((l) => l == e.direction) || "", g = g == null || g === "default" ? "" : g, g != "" && (g = b && e.reverse ? S(g, O.directions) : g, g = g[0].toUpperCase() + g.substring(1));
|
|
4565
|
+
const F = b ? "Out" : "In";
|
|
4566
|
+
return O.name + F + g;
|
|
4567
|
+
}, S = (b, O) => {
|
|
4568
|
+
if (b.length == 0 || b == "x" || b == "y")
|
|
4569
|
+
return b;
|
|
4570
|
+
let g = O.indexOf(b);
|
|
4571
|
+
return g = g % 2 == 1 ? g - 1 : g + 1, O[g];
|
|
4563
4572
|
};
|
|
4564
4573
|
return () => {
|
|
4565
|
-
var
|
|
4566
|
-
return e.disabled ? (
|
|
4567
|
-
enterActiveClass:
|
|
4568
|
-
leaveActiveClass:
|
|
4574
|
+
var b;
|
|
4575
|
+
return e.disabled ? (b = t.default) == null ? void 0 : b.call(t) : o(n(Ft, {
|
|
4576
|
+
enterActiveClass: u.value,
|
|
4577
|
+
leaveActiveClass: f.value
|
|
4569
4578
|
}, {
|
|
4570
4579
|
default: () => {
|
|
4571
|
-
var
|
|
4572
|
-
return [(
|
|
4580
|
+
var O;
|
|
4581
|
+
return [(O = t.default) == null ? void 0 : O.call(t)];
|
|
4573
4582
|
}
|
|
4574
4583
|
}));
|
|
4575
4584
|
};
|
|
@@ -4579,14 +4588,14 @@ export {
|
|
|
4579
4588
|
gt as BaseMenu,
|
|
4580
4589
|
ma as DefaultHeader,
|
|
4581
4590
|
Ni as GProLayout,
|
|
4582
|
-
|
|
4591
|
+
ke as GlobalFooter,
|
|
4583
4592
|
Di as PageContainer,
|
|
4584
|
-
|
|
4593
|
+
dn as PageLoading,
|
|
4585
4594
|
Vi as PageTranstion,
|
|
4586
4595
|
Hi as SettingDrawer,
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4596
|
+
Be as SiderMenuWrapper,
|
|
4597
|
+
Ue as WrapContent,
|
|
4598
|
+
Ie as baseMenuProps,
|
|
4590
4599
|
bn as clearMenuItem,
|
|
4591
4600
|
In as createContext,
|
|
4592
4601
|
On as createRouteContext,
|
|
@@ -4598,5 +4607,5 @@ export {
|
|
|
4598
4607
|
Cn as handleThemeConfig,
|
|
4599
4608
|
Rn as provideProLayoutContext,
|
|
4600
4609
|
Mn as useContext,
|
|
4601
|
-
|
|
4610
|
+
Q as useProLayoutContext
|
|
4602
4611
|
};
|