@gx-design-vue/pro-layout 0.1.0-beta.24 → 0.1.0-beta.25
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 +5 -5
- package/dist/components/GlobalHeader/DefaultHeader.d.ts +6 -6
- package/dist/components/GlobalHeader/index.d.ts +4 -4
- package/dist/components/GlobalHeader/props.d.ts +4 -4
- package/dist/components/SiderMenu/BaseMenu.d.ts +14 -6
- package/dist/components/SiderMenu/SiderMenu.d.ts +12 -12
- package/dist/components/SiderMenu/index.d.ts +15 -15
- package/dist/components/SiderMenu/props.d.ts +12 -6
- package/dist/pro-layout.mjs +1073 -1087
- package/dist/pro-layout.umd.js +1 -1
- package/dist/props.d.ts +2 -2
- package/dist/route.d.ts +2 -9
- package/dist/utils/getMenuData.d.ts +1 -1
- package/dist/utils/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/pro-layout.mjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Spin as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { createFromIconfontCN as
|
|
5
|
-
import
|
|
6
|
-
import { createTypes as
|
|
7
|
-
import { pick as
|
|
8
|
-
import { GPorWaterMark as
|
|
9
|
-
import { getSlot as K, isBoolean as
|
|
10
|
-
import { useMediaQuery as
|
|
1
|
+
import { defineComponent as H, createVNode as o, mergeProps as X, provide as De, readonly as Vt, inject as ct, resolveComponent as mt, computed as w, isVNode as ne, Fragment as q, toRefs as Ie, unref as U, createTextVNode as Q, ref as ve, reactive as ze, watch as le, withDirectives as At, vShow as Et, getCurrentInstance as jt, onMounted as Wt, onUpdated as Kt, onUnmounted as Ut, watchEffect as Xt, Transition as Gt } from "vue";
|
|
2
|
+
import { Spin as xe, Menu as ee, ConfigProvider as Ne, Layout as de, Drawer as be, Breadcrumb as Yt, Card as qt, LayoutFooter as Zt, Tabs as He, Dropdown as Qe, Tooltip as Oe, List as te, Switch as ft, TabPane as Jt, Select as he, message as Qt, Divider as Be, Alert as en, Button as tn } from "ant-design-vue";
|
|
3
|
+
import { useRouter as _e, RouterLink as nn } from "vue-router";
|
|
4
|
+
import { createFromIconfontCN as an, MenuUnfoldOutlined as on, MenuFoldOutlined as ln, GithubOutlined as rn, EllipsisOutlined as sn, ReloadOutlined as un, CloseOutlined as ht, CheckOutlined as gt, SettingOutlined as dn, NotificationOutlined as cn, CopyOutlined as mn } from "@ant-design/icons-vue";
|
|
5
|
+
import fn, { themeConfig as A, Keyframe as u, useProStyle as Z, useProConfigContext as Me, useStyle as Ve, mergeToken as Ae, colorList as hn } from "@gx-design-vue/pro-provider";
|
|
6
|
+
import { createTypes as gn } from "vue-types";
|
|
7
|
+
import { pick as ae, cloneDeep as yt, omit as Ee } from "lodash-es";
|
|
8
|
+
import { GPorWaterMark as yn } from "@gx-design-vue/pro-watermark";
|
|
9
|
+
import { getSlot as K, isBoolean as bn, getPrefixCls as ce, classNames as bt, isArray as pn, isBrowser as vn, merge as xn } from "@gx-design-vue/pro-utils";
|
|
10
|
+
import { useMediaQuery as Cn, useState as pe, useMergedState as wn } from "@gx-design-vue/pro-hooks";
|
|
11
11
|
import { useWindowSize as Sn, useClipboard as In } from "@vueuse/core";
|
|
12
12
|
import On from "@gx-design-vue/scrollbar";
|
|
13
|
-
import { GColorPicker as
|
|
14
|
-
const Mn = /* @__PURE__ */
|
|
13
|
+
import { GColorPicker as et } from "@gx-design-vue/color-picker";
|
|
14
|
+
const Mn = /* @__PURE__ */ H({
|
|
15
15
|
name: "PageLoading",
|
|
16
16
|
props: {
|
|
17
|
-
...
|
|
17
|
+
...xe.props
|
|
18
18
|
},
|
|
19
19
|
setup(e) {
|
|
20
|
-
return
|
|
20
|
+
return o("div", {
|
|
21
21
|
style: {
|
|
22
22
|
paddingTop: "100px",
|
|
23
23
|
textAlign: "center"
|
|
24
24
|
}
|
|
25
|
-
}, [
|
|
26
|
-
indicator:
|
|
25
|
+
}, [o(xe, X(e, {
|
|
26
|
+
indicator: o("i", {
|
|
27
27
|
class: "toolsfont create-spin toolsfont tools-icon-jiazaizhong",
|
|
28
28
|
style: {
|
|
29
29
|
fontSize: "30px"
|
|
@@ -31,7 +31,7 @@ const Mn = /* @__PURE__ */ E({
|
|
|
31
31
|
}, null)
|
|
32
32
|
}), null)]);
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), pt = gn({
|
|
35
35
|
func: void 0,
|
|
36
36
|
bool: void 0,
|
|
37
37
|
string: void 0,
|
|
@@ -40,7 +40,7 @@ const Mn = /* @__PURE__ */ E({
|
|
|
40
40
|
object: void 0,
|
|
41
41
|
integer: void 0
|
|
42
42
|
});
|
|
43
|
-
|
|
43
|
+
pt.extend([{
|
|
44
44
|
name: "looseBool",
|
|
45
45
|
getter: !0,
|
|
46
46
|
type: Boolean,
|
|
@@ -55,7 +55,7 @@ xt.extend([{
|
|
|
55
55
|
getter: !0,
|
|
56
56
|
type: null
|
|
57
57
|
}]);
|
|
58
|
-
const L =
|
|
58
|
+
const L = pt, ie = {
|
|
59
59
|
theme: {
|
|
60
60
|
type: String,
|
|
61
61
|
default: A.theme
|
|
@@ -120,10 +120,10 @@ const L = xt, le = {
|
|
|
120
120
|
type: String,
|
|
121
121
|
default: A.primaryColor
|
|
122
122
|
}
|
|
123
|
-
},
|
|
123
|
+
}, oe = {
|
|
124
124
|
renderKey: L.string.def("menuHeaderRender"),
|
|
125
|
-
title:
|
|
126
|
-
layout:
|
|
125
|
+
title: ie.title,
|
|
126
|
+
layout: ie.layout,
|
|
127
127
|
logo: {
|
|
128
128
|
type: [Object, String, Function],
|
|
129
129
|
default: () => {
|
|
@@ -146,8 +146,8 @@ const L = xt, le = {
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
onMenuHeaderClick: Function
|
|
149
|
-
},
|
|
150
|
-
...
|
|
149
|
+
}, je = {
|
|
150
|
+
...ie,
|
|
151
151
|
mode: {
|
|
152
152
|
type: String,
|
|
153
153
|
default: "inline"
|
|
@@ -188,14 +188,20 @@ const L = xt, le = {
|
|
|
188
188
|
type: [Function, Boolean],
|
|
189
189
|
default: () => !1
|
|
190
190
|
},
|
|
191
|
-
onClick: [Function, Object]
|
|
191
|
+
onClick: [Function, Object],
|
|
192
|
+
onOpenKeys: {
|
|
193
|
+
type: Function
|
|
194
|
+
},
|
|
195
|
+
onSelect: {
|
|
196
|
+
type: Function
|
|
197
|
+
}
|
|
192
198
|
}, Y = {
|
|
193
|
-
...
|
|
194
|
-
...
|
|
199
|
+
...ie,
|
|
200
|
+
...je,
|
|
195
201
|
menuLoading: L.looseBool,
|
|
196
|
-
logo:
|
|
197
|
-
logoStyle:
|
|
198
|
-
logoDirection:
|
|
202
|
+
logo: oe.logo,
|
|
203
|
+
logoStyle: oe.logoStyle,
|
|
204
|
+
logoDirection: oe.logoDirection,
|
|
199
205
|
siderWidth: L.number.def(208),
|
|
200
206
|
headerHeight: L.number.def(48),
|
|
201
207
|
collapsedWidth: L.number.def(48),
|
|
@@ -240,50 +246,47 @@ const L = xt, le = {
|
|
|
240
246
|
onMenuClick: L.func,
|
|
241
247
|
onCollapse: {
|
|
242
248
|
type: Function
|
|
243
|
-
},
|
|
244
|
-
onOpenKeys: {
|
|
245
|
-
type: Function
|
|
246
|
-
},
|
|
247
|
-
onSelect: {
|
|
248
|
-
type: Function
|
|
249
249
|
}
|
|
250
|
-
}, Rn = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/,
|
|
250
|
+
}, Rn = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/, vt = (e) => Rn.test(e);
|
|
251
251
|
function Bn(e) {
|
|
252
252
|
return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
var
|
|
254
|
+
function xt(e, t, n, a) {
|
|
255
|
+
var r, d, m, b, h, S, s, k, l, p, I, M, g, c, f, v, T, x, O, F, R, D, _, N, z, y, C, $, B, P, j, W, E, V;
|
|
256
256
|
const i = { ...e };
|
|
257
|
-
return n === "light" ? (i.colorItemBg = (d = (
|
|
257
|
+
return n === "light" ? (i.colorItemBg = (d = (r = t.layout) == null ? void 0 : r[a]) == null ? void 0 : d.colorBgMenu, i.colorSubItemBg = (b = (m = t.layout) == null ? void 0 : m[a]) == null ? void 0 : b.colorSubItemBg, i.colorItemBgSelected = (S = (h = t.layout) == null ? void 0 : h[a]) == null ? void 0 : S.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (k = (s = t.layout) == null ? void 0 : s[a]) == null ? void 0 : k.colorBgMenuItemSelected, i.colorItemText = (p = (l = t.layout) == null ? void 0 : l[a]) == null ? void 0 : p.colorTextMenu, i.colorItemTextHover = (M = (I = t.layout) == null ? void 0 : I[a]) == null ? void 0 : M.colorTextMenuHover, i.colorItemTextSelected = (c = (g = t.layout) == null ? void 0 : g[a]) == null ? void 0 : c.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (v = (f = t.layout) == null ? void 0 : f[a]) == null ? void 0 : v.colorTextMenuSelected, a === "sider" && (i.colorItemBgHover = (x = (T = t.layout) == null ? void 0 : T[a]) == null ? void 0 : x.colorBgMenuItemHover)) : n === "dark" && (i.colorItemBg = (F = (O = t.layout) == null ? void 0 : O[a]) == null ? void 0 : F.colorDarkBgMenu, i.colorSubItemBg = (D = (R = t.layout) == null ? void 0 : R[a]) == null ? void 0 : D.colorDarkSubItemBg, i.colorItemBgSelected = (N = (_ = t.layout) == null ? void 0 : _[a]) == null ? void 0 : N.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (y = (z = t.layout) == null ? void 0 : z[a]) == null ? void 0 : y.colorDarkBgMenuItemSelected, i.colorItemText = ($ = (C = t.layout) == null ? void 0 : C[a]) == null ? void 0 : $.colorDarkTextMenu, i.colorItemTextHover = (P = (B = t.layout) == null ? void 0 : B[a]) == null ? void 0 : P.colorDarkTextMenuHover, i.colorItemTextSelected = (W = (j = t.layout) == null ? void 0 : j[a]) == null ? void 0 : W.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (V = (E = t.layout) == null ? void 0 : E[a]) == null ? void 0 : V.colorDarkTextMenuSelected, a === "header" && (i.colorActiveBarHeight = 0)), i;
|
|
258
258
|
}
|
|
259
|
-
const kn = ["left", "right"],
|
|
259
|
+
const kn = ["left", "right"], se = ["left", "right", "down", "up"], $n = ["downBig", "upBig", "leftBig", "rightBig"], Tn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], Fn = ["downLeft", "upRight", "downRight", "upLeft"], We = {
|
|
260
260
|
preset: [
|
|
261
261
|
//预设动画配置
|
|
262
|
-
{ name: "back", alias: "渐近", directions:
|
|
263
|
-
{ name: "bounce", alias: "弹跳", directions:
|
|
262
|
+
{ name: "back", alias: "渐近", directions: se },
|
|
263
|
+
{ name: "bounce", alias: "弹跳", directions: se.concat("default") },
|
|
264
264
|
{
|
|
265
265
|
name: "fade",
|
|
266
266
|
alias: "淡化",
|
|
267
|
-
directions:
|
|
267
|
+
directions: se.concat($n).concat(Tn).concat("default")
|
|
268
268
|
},
|
|
269
269
|
{ name: "flip", alias: "翻转", directions: ["x", "y"] },
|
|
270
270
|
{ name: "lightSpeed", alias: "光速", directions: kn },
|
|
271
271
|
{ name: "rotate", alias: "旋转", directions: Fn.concat("default") },
|
|
272
272
|
{ name: "roll", alias: "翻滚", directions: ["default"] },
|
|
273
|
-
{ name: "zoom", alias: "缩放", directions:
|
|
274
|
-
{ name: "slide", alias: "滑动", directions:
|
|
273
|
+
{ name: "zoom", alias: "缩放", directions: se.concat("default") },
|
|
274
|
+
{ name: "slide", alias: "滑动", directions: se }
|
|
275
275
|
]
|
|
276
276
|
};
|
|
277
|
+
function Ct(e, t) {
|
|
278
|
+
return t != null && t.isNamed && (t == null ? void 0 : t.target) || e;
|
|
279
|
+
}
|
|
277
280
|
function Pn(e) {
|
|
278
281
|
return e.map((t) => {
|
|
279
|
-
var
|
|
282
|
+
var a;
|
|
280
283
|
const n = { ...t };
|
|
281
|
-
if (!n.name || (
|
|
284
|
+
if (!n.name || (a = n.meta) != null && a.hideInMenu)
|
|
282
285
|
return null;
|
|
283
286
|
if (n && (n != null && n.children)) {
|
|
284
287
|
if (n.children.some((i) => {
|
|
285
|
-
var
|
|
286
|
-
return i && i.name && !((
|
|
288
|
+
var r;
|
|
289
|
+
return i && i.name && !((r = i.meta) != null && r.hideInMenu);
|
|
287
290
|
}))
|
|
288
291
|
return {
|
|
289
292
|
...t,
|
|
@@ -296,20 +299,23 @@ function Pn(e) {
|
|
|
296
299
|
}
|
|
297
300
|
function Ln(e) {
|
|
298
301
|
return e.map((t) => {
|
|
299
|
-
var
|
|
302
|
+
var a;
|
|
300
303
|
const n = { ...t };
|
|
301
|
-
return !n.name || (
|
|
304
|
+
return !n.name || (a = n.meta) != null && a.hideInMenu ? null : (n.linkPath = zn(n.children || []), n.children && delete n.children, n);
|
|
302
305
|
}).filter((t) => t);
|
|
303
306
|
}
|
|
304
307
|
function Dn(e, t) {
|
|
305
|
-
const n = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}
|
|
306
|
-
|
|
308
|
+
const n = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`, a = e.find((i) => {
|
|
309
|
+
var r;
|
|
310
|
+
return (r = i.meta) != null && r.isNamed ? i.path.includes(n) : i.path === n;
|
|
311
|
+
});
|
|
312
|
+
return t === void 0 ? [] : (a == null ? void 0 : a.children) || [];
|
|
307
313
|
}
|
|
308
314
|
function zn(e) {
|
|
309
315
|
let t = "";
|
|
310
|
-
const n = function(
|
|
316
|
+
const n = function(a) {
|
|
311
317
|
let i = "";
|
|
312
|
-
return
|
|
318
|
+
return a.children && a.children.length > 0 ? i = n(a.children[0]) : i = `${a.path}`, i;
|
|
313
319
|
};
|
|
314
320
|
return e.length > 0 && e[0].children && e[0].children.length > 0 ? t = n(e[0].children[0]) : t = e.length > 0 ? e[0].path : "", t;
|
|
315
321
|
}
|
|
@@ -318,15 +324,15 @@ function Nn(e) {
|
|
|
318
324
|
}
|
|
319
325
|
function Hn(e) {
|
|
320
326
|
const t = ["showTabsBar", "fixedMultiTab", "fixSiderbar", "fixedHeader", "splitMenus"];
|
|
321
|
-
let
|
|
322
|
-
return
|
|
327
|
+
let a = Object.keys(e).reduce((i, r) => (i[r] = !1, i), {});
|
|
328
|
+
return a = _n(a, t), e.layout === "mix" && (a.fixSiderbar = !0, a.fixedHeader = !0), e.layout === "side" && (a.splitMenus = !0), e.layout === "simple" && (a.splitMenus = !0, a.fixedHeader = !0, a.showTabsBar = !0, a.fixedMultiTab = !0), e.layout === "wide" && (a.splitMenus = !0, a.fixedHeader = !0, a.fixSiderbar = !0, a.showTabsBar = !0, a.fixedMultiTab = !0), a;
|
|
323
329
|
}
|
|
324
330
|
function _n(e, t) {
|
|
325
331
|
return {
|
|
326
|
-
...t.reduce((n,
|
|
332
|
+
...t.reduce((n, a) => ({ ...n, [a]: e[a] }), {})
|
|
327
333
|
};
|
|
328
334
|
}
|
|
329
|
-
const
|
|
335
|
+
const Vn = (e = Symbol(), t = "Context.Provider") => H({
|
|
330
336
|
name: t,
|
|
331
337
|
props: {
|
|
332
338
|
value: {
|
|
@@ -334,51 +340,51 @@ const En = (e = Symbol(), t = "Context.Provider") => E({
|
|
|
334
340
|
required: !0
|
|
335
341
|
}
|
|
336
342
|
},
|
|
337
|
-
setup(
|
|
338
|
-
return
|
|
339
|
-
var
|
|
340
|
-
return (
|
|
343
|
+
setup(a, { slots: i }) {
|
|
344
|
+
return De(e, Vt(a.value)), () => {
|
|
345
|
+
var r;
|
|
346
|
+
return (r = i.default) == null ? void 0 : r.call(i);
|
|
341
347
|
};
|
|
342
348
|
}
|
|
343
|
-
}),
|
|
344
|
-
|
|
345
|
-
}, J = () =>
|
|
346
|
-
|
|
347
|
-
function
|
|
349
|
+
}), An = (e = Symbol(), t) => ct(e, t || {}), Ke = Symbol("pro-layout-context"), En = () => Vn(Ke, "ProLayoutContext.Provider"), jn = (e) => {
|
|
350
|
+
De(Ke, e);
|
|
351
|
+
}, J = () => An(Ke);
|
|
352
|
+
En();
|
|
353
|
+
function tt(e) {
|
|
348
354
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
349
355
|
}
|
|
350
|
-
const
|
|
356
|
+
const Ce = (e) => {
|
|
351
357
|
const {
|
|
352
358
|
icon: t,
|
|
353
359
|
iconType: n,
|
|
354
|
-
iconfontUrl:
|
|
360
|
+
iconfontUrl: a
|
|
355
361
|
} = e;
|
|
356
362
|
if (!t)
|
|
357
363
|
return null;
|
|
358
364
|
if (typeof t == "string" && t !== "") {
|
|
359
|
-
if (
|
|
360
|
-
return
|
|
365
|
+
if (vt(t) || Bn(t))
|
|
366
|
+
return o("img", {
|
|
361
367
|
src: t,
|
|
362
368
|
alt: "icon",
|
|
363
369
|
class: `${e.className}-icon-image`
|
|
364
370
|
}, null);
|
|
365
371
|
if (n === 1) {
|
|
366
|
-
const
|
|
367
|
-
scriptUrl:
|
|
372
|
+
const r = an({
|
|
373
|
+
scriptUrl: a || A.iconfontUrl
|
|
368
374
|
});
|
|
369
|
-
return
|
|
375
|
+
return a ? o(r, {
|
|
370
376
|
type: t
|
|
371
|
-
}, null) :
|
|
377
|
+
}, null) : o("i", {
|
|
372
378
|
class: `iconfont ${t} ${e.className}-icon`
|
|
373
379
|
}, null);
|
|
374
380
|
}
|
|
375
381
|
}
|
|
376
382
|
if (ne(t))
|
|
377
383
|
return t;
|
|
378
|
-
const i =
|
|
379
|
-
return typeof
|
|
384
|
+
const i = mt(t);
|
|
385
|
+
return typeof Ce == "function" && o(i, null, null) || null;
|
|
380
386
|
};
|
|
381
|
-
|
|
387
|
+
Ce.props = {
|
|
382
388
|
icon: {
|
|
383
389
|
type: [String, Function, Object]
|
|
384
390
|
},
|
|
@@ -386,116 +392,113 @@ we.props = {
|
|
|
386
392
|
className: String,
|
|
387
393
|
iconfontUrl: String
|
|
388
394
|
};
|
|
389
|
-
const
|
|
395
|
+
const wt = /* @__PURE__ */ H({
|
|
390
396
|
name: "BaseMenu",
|
|
391
|
-
props:
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}) {
|
|
397
|
-
const o = Ee(), {
|
|
398
|
-
getPrefixCls: i
|
|
399
|
-
} = J(), l = i({
|
|
397
|
+
props: je,
|
|
398
|
+
setup(e) {
|
|
399
|
+
const t = _e(), {
|
|
400
|
+
getPrefixCls: n
|
|
401
|
+
} = J(), a = n({
|
|
400
402
|
suffixCls: "menu-item",
|
|
401
403
|
isPor: !0
|
|
402
|
-
}),
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
},
|
|
409
|
-
var
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
404
|
+
}), i = (l) => {
|
|
405
|
+
var p;
|
|
406
|
+
(p = e.onOpenKeys) == null || p.call(e, l);
|
|
407
|
+
}, r = (l) => {
|
|
408
|
+
var p;
|
|
409
|
+
(p = e.onSelect) == null || p.call(e, l.selectedKeys);
|
|
410
|
+
}, d = (l) => {
|
|
411
|
+
var p;
|
|
412
|
+
(p = e.onClick) == null || p.call(e, ...l);
|
|
413
|
+
}, m = (l, p) => {
|
|
414
|
+
var g;
|
|
415
|
+
const I = l.target || "", M = vt(I);
|
|
416
|
+
((g = t.currentRoute.value) == null ? void 0 : g.fullPath) !== p.to && M && I && l.targetStatus === 1 && window.open(I);
|
|
417
|
+
}, b = mt("router-link"), h = (l = []) => l.map((p) => S(p)).filter((p) => p), S = (l) => {
|
|
418
|
+
var M, g, c, f, v, T, x, O, F;
|
|
419
|
+
if (Array.isArray(l.children) && l.children.length > 0 && !((M = l == null ? void 0 : l.meta) != null && M.hideInMenu) && !((g = l == null ? void 0 : l.meta) != null && g.hideChildrenInMenu)) {
|
|
420
|
+
let R;
|
|
416
421
|
if (e.subMenuItemRender)
|
|
417
422
|
return e.subMenuItemRender({
|
|
418
|
-
item:
|
|
419
|
-
children:
|
|
423
|
+
item: l,
|
|
424
|
+
children: h(l.children)
|
|
420
425
|
});
|
|
421
|
-
const
|
|
426
|
+
const D = (c = l.meta) == null ? void 0 : c.title, _ = (f = l.meta) != null && f.icon ? o("span", {
|
|
422
427
|
class: "gx-pro-sider-menu-item"
|
|
423
|
-
}, [
|
|
428
|
+
}, [o("span", {
|
|
424
429
|
class: "gx-pro-sider-menu-item-title"
|
|
425
|
-
}, [
|
|
430
|
+
}, [D])]) : o("span", {
|
|
426
431
|
class: "gx-pro-sider-menu-item"
|
|
427
|
-
}, [
|
|
428
|
-
return
|
|
429
|
-
title:
|
|
430
|
-
key:
|
|
431
|
-
icon:
|
|
432
|
-
className:
|
|
433
|
-
icon: (
|
|
432
|
+
}, [D]), N = ((v = l.meta) == null ? void 0 : v.type) === "group", z = N ? ee.ItemGroup : ee.SubMenu;
|
|
433
|
+
return o(z, {
|
|
434
|
+
title: _,
|
|
435
|
+
key: l.path,
|
|
436
|
+
icon: N ? null : o(Ce, {
|
|
437
|
+
className: a,
|
|
438
|
+
icon: (T = l.meta) == null ? void 0 : T.icon,
|
|
434
439
|
iconfontUrl: e.iconfontUrl,
|
|
435
|
-
iconType: (
|
|
440
|
+
iconType: (x = l.meta) == null ? void 0 : x.iconType
|
|
436
441
|
}, null)
|
|
437
|
-
},
|
|
438
|
-
default: () => [
|
|
442
|
+
}, tt(R = h(l.children)) ? R : {
|
|
443
|
+
default: () => [R]
|
|
439
444
|
});
|
|
440
445
|
}
|
|
441
|
-
const [
|
|
446
|
+
const [p, I] = s(l);
|
|
442
447
|
return e.menuItemRender && e.menuItemRender({
|
|
443
|
-
item:
|
|
444
|
-
title:
|
|
445
|
-
icon:
|
|
446
|
-
}) ||
|
|
447
|
-
disabled: (
|
|
448
|
-
danger: (
|
|
449
|
-
key:
|
|
450
|
-
icon:
|
|
451
|
-
},
|
|
452
|
-
default: () => [
|
|
448
|
+
item: l,
|
|
449
|
+
title: p,
|
|
450
|
+
icon: I
|
|
451
|
+
}) || o(ee.Item, {
|
|
452
|
+
disabled: (O = l.meta) == null ? void 0 : O.disabled,
|
|
453
|
+
danger: (F = l.meta) == null ? void 0 : F.danger,
|
|
454
|
+
key: l.path,
|
|
455
|
+
icon: I
|
|
456
|
+
}, tt(p) ? p : {
|
|
457
|
+
default: () => [p]
|
|
453
458
|
});
|
|
454
|
-
},
|
|
455
|
-
var
|
|
456
|
-
const
|
|
457
|
-
...
|
|
458
|
-
},
|
|
459
|
-
to:
|
|
459
|
+
}, s = (l) => {
|
|
460
|
+
var T, x, O, F, R;
|
|
461
|
+
const p = {
|
|
462
|
+
...l.meta
|
|
463
|
+
}, I = p.targetStatus === 1 && p.target ? "a" : b, M = l.linkPath || l.path || "", g = {
|
|
464
|
+
to: Ct(M, p)
|
|
460
465
|
};
|
|
461
|
-
|
|
462
|
-
const
|
|
466
|
+
g.to === "/live/list/operation/:id" && (g.to = "/live/list/operation/add");
|
|
467
|
+
const c = (T = l.meta) == null ? void 0 : T.title, f = (x = l.meta) != null && x.icon ? o(I, X(g, {
|
|
463
468
|
class: "gx-pro-sider-menu-item",
|
|
464
|
-
onClick: () =>
|
|
469
|
+
onClick: () => m(p, g)
|
|
465
470
|
}), {
|
|
466
|
-
default: () => [
|
|
471
|
+
default: () => [o("span", {
|
|
467
472
|
class: "gx-pro-sider-menu-item-title"
|
|
468
|
-
}, [
|
|
469
|
-
}) :
|
|
473
|
+
}, [c])]
|
|
474
|
+
}) : o(I, X(g, {
|
|
470
475
|
class: "gx-pro-sider-menu-item",
|
|
471
|
-
onClick: () =>
|
|
476
|
+
onClick: () => m(p, g)
|
|
472
477
|
}), {
|
|
473
|
-
default: () => [
|
|
474
|
-
}),
|
|
475
|
-
className:
|
|
476
|
-
icon: (
|
|
478
|
+
default: () => [o("span", null, [c])]
|
|
479
|
+
}), v = ((O = l.meta) == null ? void 0 : O.icon) && o(Ce, {
|
|
480
|
+
className: a,
|
|
481
|
+
icon: (F = l.meta) == null ? void 0 : F.icon,
|
|
477
482
|
iconfontUrl: e.iconfontUrl,
|
|
478
|
-
iconType: (
|
|
483
|
+
iconType: (R = l.meta) == null ? void 0 : R.iconType
|
|
479
484
|
}, null) || void 0;
|
|
480
|
-
return [f,
|
|
481
|
-
},
|
|
482
|
-
return () =>
|
|
485
|
+
return [f, v];
|
|
486
|
+
}, k = w(() => h(e.menuData));
|
|
487
|
+
return () => o(ee, X({
|
|
483
488
|
key: "Menu",
|
|
484
489
|
inlineIndent: 16,
|
|
485
490
|
mode: e.mode,
|
|
486
491
|
theme: e.theme,
|
|
487
492
|
openKeys: e.openKeys === !1 ? [] : e.openKeys,
|
|
488
493
|
selectedKeys: e.selectedKeys || [],
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
onSelect: m,
|
|
493
|
-
onClick: y
|
|
494
|
+
onOpenChange: i,
|
|
495
|
+
onSelect: r,
|
|
496
|
+
onClick: d
|
|
494
497
|
}, e.menuProps), {
|
|
495
|
-
default: () => [
|
|
498
|
+
default: () => [k.value]
|
|
496
499
|
});
|
|
497
500
|
}
|
|
498
|
-
}),
|
|
501
|
+
}), St = new u("pro-layout-title-hide", {
|
|
499
502
|
"0%": { display: "none", opacity: 0 },
|
|
500
503
|
"99%": {
|
|
501
504
|
display: "none",
|
|
@@ -517,7 +520,7 @@ const St = /* @__PURE__ */ E({
|
|
|
517
520
|
}
|
|
518
521
|
};
|
|
519
522
|
}, Kn = (e) => {
|
|
520
|
-
var t, n,
|
|
523
|
+
var t, n, a, i, r, d, m, b, h, S, s, k;
|
|
521
524
|
return {
|
|
522
525
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
523
526
|
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
@@ -547,10 +550,10 @@ const St = /* @__PURE__ */ E({
|
|
|
547
550
|
height: "100%"
|
|
548
551
|
},
|
|
549
552
|
"&-light": {
|
|
550
|
-
background: (i = (
|
|
553
|
+
background: (i = (a = e.layout) == null ? void 0 : a.sider) == null ? void 0 : i.colorBgMenu,
|
|
551
554
|
boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
|
|
552
555
|
[`${e.componentCls}-footer`]: {
|
|
553
|
-
color: (d = (
|
|
556
|
+
color: (d = (r = e.layout) == null ? void 0 : r.sider) == null ? void 0 : d.colorTextMenu
|
|
554
557
|
}
|
|
555
558
|
},
|
|
556
559
|
"&-links": {
|
|
@@ -566,10 +569,10 @@ const St = /* @__PURE__ */ E({
|
|
|
566
569
|
background: "transparent"
|
|
567
570
|
},
|
|
568
571
|
"&-footer": {
|
|
569
|
-
color: (
|
|
572
|
+
color: (b = (m = e.layout) == null ? void 0 : m.sider) == null ? void 0 : b.colorDarkTextMenu,
|
|
570
573
|
paddingBlockEnd: 16,
|
|
571
574
|
fontSize: e.fontSize,
|
|
572
|
-
animationName:
|
|
575
|
+
animationName: St,
|
|
573
576
|
animationDuration: ".4s",
|
|
574
577
|
animationTimingFunction: "ease"
|
|
575
578
|
}
|
|
@@ -581,8 +584,8 @@ const St = /* @__PURE__ */ E({
|
|
|
581
584
|
zIndex: "100",
|
|
582
585
|
height: "100%",
|
|
583
586
|
"&-mix": {
|
|
584
|
-
height: `calc(100% - ${((
|
|
585
|
-
insetBlockStart: `${((
|
|
587
|
+
height: `calc(100% - ${((S = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : S.heightLayoutHeader) || A.headerHeight}px)`,
|
|
588
|
+
insetBlockStart: `${((k = (s = e.layout) == null ? void 0 : s.header) == null ? void 0 : k.heightLayoutHeader) || A.headerHeight}px`
|
|
586
589
|
}
|
|
587
590
|
}
|
|
588
591
|
}
|
|
@@ -630,7 +633,7 @@ const St = /* @__PURE__ */ E({
|
|
|
630
633
|
marginInlineEnd: 0,
|
|
631
634
|
marginInlineStart: 12,
|
|
632
635
|
color: e.colorWhite,
|
|
633
|
-
animationName:
|
|
636
|
+
animationName: St,
|
|
634
637
|
animationDuration: ".2s",
|
|
635
638
|
fontWeight: 600,
|
|
636
639
|
fontSize: 18,
|
|
@@ -655,96 +658,96 @@ const St = /* @__PURE__ */ E({
|
|
|
655
658
|
}
|
|
656
659
|
}
|
|
657
660
|
}
|
|
658
|
-
}),
|
|
661
|
+
}), It = (e, t) => e ? typeof e == "string" ? o("img", {
|
|
659
662
|
src: e,
|
|
660
663
|
alt: "logo",
|
|
661
664
|
style: t
|
|
662
665
|
}, null) : typeof e == "function" ? e() : e : null, Gn = (e, t = "menuHeaderRender") => {
|
|
663
666
|
const {
|
|
664
667
|
logo: n,
|
|
665
|
-
logoStyle:
|
|
668
|
+
logoStyle: a,
|
|
666
669
|
title: i,
|
|
667
|
-
layout:
|
|
670
|
+
layout: r
|
|
668
671
|
} = e, d = e[t || ""];
|
|
669
672
|
if (d === !1)
|
|
670
673
|
return null;
|
|
671
|
-
const m =
|
|
672
|
-
return typeof d == "function" ? d(m, e.collapsed ? null :
|
|
673
|
-
},
|
|
674
|
+
const m = It(n, a), b = i && o("h1", null, [i]);
|
|
675
|
+
return typeof d == "function" ? d(m, e.collapsed ? null : b, e) : o(q, null, [m || null, e.collapsed && r === "side" ? null : b]);
|
|
676
|
+
}, Ue = /* @__PURE__ */ H({
|
|
674
677
|
name: "LogoContent",
|
|
675
|
-
props:
|
|
678
|
+
props: oe,
|
|
676
679
|
setup(e) {
|
|
677
680
|
const {
|
|
678
681
|
getPrefixCls: t
|
|
679
|
-
} = J(), n =
|
|
682
|
+
} = J(), n = w(() => e.layout === "side" || e.layout === "simple"), a = w(() => t({
|
|
680
683
|
suffixCls: n.value || e.drawer ? "sider" : "global-header",
|
|
681
684
|
isPor: !0
|
|
682
685
|
})), {
|
|
683
686
|
wrapSSR: i,
|
|
684
|
-
hashId:
|
|
685
|
-
} = Z("ProLayoutLogo", [Xn]), d =
|
|
686
|
-
return () => i(
|
|
687
|
+
hashId: r
|
|
688
|
+
} = Z("ProLayoutLogo", [Xn]), d = w(() => Gn(e, e.renderKey));
|
|
689
|
+
return () => i(o("div", {
|
|
687
690
|
id: "logo",
|
|
688
691
|
class: {
|
|
689
|
-
[`${
|
|
690
|
-
[`${
|
|
691
|
-
[`${
|
|
692
|
+
[`${r.value}`]: !0,
|
|
693
|
+
[`${a.value}-logo`]: !0,
|
|
694
|
+
[`${a.value}-logo-collapsed`]: !!e.collapsed
|
|
692
695
|
},
|
|
693
696
|
onClick: () => {
|
|
694
697
|
var m;
|
|
695
698
|
return (m = e.onMenuHeaderClick) == null ? void 0 : m.call(e);
|
|
696
699
|
}
|
|
697
|
-
}, [
|
|
700
|
+
}, [o("a", null, [d.value || null])]));
|
|
698
701
|
}
|
|
699
702
|
});
|
|
700
|
-
|
|
703
|
+
Ue.inheritAttrs = !1;
|
|
701
704
|
function Yn(e) {
|
|
702
705
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
703
706
|
}
|
|
704
707
|
const {
|
|
705
708
|
Sider: qn
|
|
706
|
-
} =
|
|
707
|
-
Item:
|
|
708
|
-
} = ee,
|
|
709
|
+
} = de, {
|
|
710
|
+
Item: nt
|
|
711
|
+
} = ee, Ot = (e) => e ? o(on, null, null) : o(ln, null, null), at = /* @__PURE__ */ H({
|
|
709
712
|
props: Y,
|
|
710
713
|
inheritAttrs: !1,
|
|
711
714
|
setup(e) {
|
|
712
715
|
const {
|
|
713
716
|
getPrefixCls: t,
|
|
714
717
|
selectedKeys: n,
|
|
715
|
-
flatMenuData:
|
|
718
|
+
flatMenuData: a,
|
|
716
719
|
menuData: i,
|
|
717
|
-
openKeys:
|
|
720
|
+
openKeys: r
|
|
718
721
|
} = J(), {
|
|
719
722
|
token: d
|
|
720
|
-
} =
|
|
723
|
+
} = Me(), {
|
|
721
724
|
theme: m,
|
|
722
|
-
layout:
|
|
723
|
-
isMobile:
|
|
724
|
-
menuLoading:
|
|
725
|
-
breakpoint:
|
|
726
|
-
fixSiderbar:
|
|
727
|
-
collapsed:
|
|
728
|
-
siderWidth:
|
|
729
|
-
collapsedWidth:
|
|
730
|
-
menuExtraRender:
|
|
731
|
-
menuContentRender:
|
|
725
|
+
layout: b,
|
|
726
|
+
isMobile: h,
|
|
727
|
+
menuLoading: S,
|
|
728
|
+
breakpoint: s,
|
|
729
|
+
fixSiderbar: k,
|
|
730
|
+
collapsed: l,
|
|
731
|
+
siderWidth: p,
|
|
732
|
+
collapsedWidth: I,
|
|
733
|
+
menuExtraRender: M,
|
|
734
|
+
menuContentRender: g,
|
|
732
735
|
menuFooterRender: c,
|
|
733
|
-
collapsedButtonRender:
|
|
734
|
-
links:
|
|
735
|
-
} =
|
|
736
|
+
collapsedButtonRender: f,
|
|
737
|
+
links: v
|
|
738
|
+
} = Ie(e), T = t({
|
|
736
739
|
suffixCls: "sider",
|
|
737
740
|
isPor: !0
|
|
738
741
|
}), {
|
|
739
|
-
wrapSSR:
|
|
742
|
+
wrapSSR: x,
|
|
740
743
|
hashId: O
|
|
741
|
-
} = Z("ProLayoutSiderMenu", [Wn, Kn, Un],
|
|
744
|
+
} = Z("ProLayoutSiderMenu", [Wn, Kn, Un], T), F = w(() => e.layout === "wide"), R = w(() => e.layout === "mix" && !e.isMobile && e.splitMenus), D = w(() => b.value === "side" || b.value === "simple"), _ = w(() => (e.layout === "mix" || F.value) && "light" || m.value), N = w(() => e.collapsed ? e.collapsedWidth : e.siderWidth), z = w(() => [O.value, T, h.value ? "shadow" : null, `${T}-${_.value}`, k.value && e.layout !== "wide" ? `${T}-fixed` : null]), y = w(() => {
|
|
742
745
|
var B;
|
|
743
|
-
return typeof
|
|
744
|
-
}),
|
|
746
|
+
return typeof v.value == "function" ? (B = v.value) == null ? void 0 : B.call(v) : v.value;
|
|
747
|
+
}), C = w(() => f.value !== !1 ? f.value || Ot : !1), $ = (B) => {
|
|
745
748
|
var P;
|
|
746
749
|
if (e.onSelect) {
|
|
747
|
-
if (
|
|
750
|
+
if (U(R)) {
|
|
748
751
|
e.onSelect([(P = n == null ? void 0 : n.value) == null ? void 0 : P[0], ...B]);
|
|
749
752
|
return;
|
|
750
753
|
}
|
|
@@ -753,128 +756,122 @@ const {
|
|
|
753
756
|
};
|
|
754
757
|
return () => {
|
|
755
758
|
var W;
|
|
756
|
-
const B = D.value ?
|
|
757
|
-
drawer:
|
|
758
|
-
}, e), null) : null, P =
|
|
759
|
-
class: `${
|
|
760
|
-
theme:
|
|
759
|
+
const B = D.value ? o(Ue, X({
|
|
760
|
+
drawer: h.value
|
|
761
|
+
}, e), null) : null, P = M.value && ((W = M.value) == null ? void 0 : W.call(M, e)), j = o(wt, {
|
|
762
|
+
class: `${T}-menu ${O.value}`,
|
|
763
|
+
theme: _.value,
|
|
761
764
|
mode: "inline",
|
|
762
|
-
menuData: R.value ?
|
|
763
|
-
collapsed: e.collapsed,
|
|
765
|
+
menuData: R.value ? a.value : i.value,
|
|
764
766
|
iconfontUrl: e.iconfontUrl,
|
|
765
|
-
openKeys:
|
|
767
|
+
openKeys: r.value,
|
|
766
768
|
selectedKeys: n.value,
|
|
767
769
|
menuItemRender: e.menuItemRender,
|
|
768
770
|
subMenuItemRender: e.subMenuItemRender,
|
|
769
771
|
onClick: e.onMenuClick,
|
|
770
772
|
style: {
|
|
771
773
|
width: "100%"
|
|
772
|
-
}
|
|
773
|
-
}, {
|
|
774
|
-
"onUpdate:openKeys": (V) => {
|
|
775
|
-
var _;
|
|
776
|
-
return e.onOpenKeys && ((_ = e.onOpenKeys) == null ? void 0 : _.call(e, V));
|
|
777
774
|
},
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
775
|
+
onOpenKeys: (E) => {
|
|
776
|
+
var V;
|
|
777
|
+
return e.onOpenKeys && ((V = e.onOpenKeys) == null ? void 0 : V.call(e, E));
|
|
778
|
+
},
|
|
779
|
+
onSelect: $
|
|
780
|
+
}, null);
|
|
781
|
+
return R.value && U(a.value).length === 0 || i.value.length === 0 ? null : x(o(Ne, {
|
|
781
782
|
theme: {
|
|
782
783
|
components: {
|
|
783
|
-
Menu:
|
|
784
|
+
Menu: xt({
|
|
784
785
|
radiusItem: 4,
|
|
785
786
|
colorActiveBarWidth: 0,
|
|
786
787
|
colorActiveBarHeight: 0,
|
|
787
788
|
colorActiveBarBorderSize: 0
|
|
788
789
|
// 主题颜色
|
|
789
|
-
}, (d == null ? void 0 : d.value) || {},
|
|
790
|
+
}, (d == null ? void 0 : d.value) || {}, _.value, "sider")
|
|
790
791
|
}
|
|
791
792
|
}
|
|
792
793
|
}, {
|
|
793
|
-
default: () => [
|
|
794
|
+
default: () => [k.value && o("div", {
|
|
794
795
|
style: {
|
|
795
|
-
width: `${
|
|
796
|
+
width: `${N.value}px`,
|
|
796
797
|
overflow: "hidden",
|
|
797
|
-
flex: `0 0 ${
|
|
798
|
-
maxWidth: `${
|
|
799
|
-
minWidth: `${
|
|
798
|
+
flex: `0 0 ${N.value}px`,
|
|
799
|
+
maxWidth: `${N.value}px`,
|
|
800
|
+
minWidth: `${N.value}px`,
|
|
800
801
|
transition: "background-color 0.2s, min-width 0.2s, max-width 0.2s"
|
|
801
802
|
}
|
|
802
|
-
}, null),
|
|
803
|
+
}, null), o(qn, {
|
|
803
804
|
collapsible: !0,
|
|
804
805
|
trigger: null,
|
|
805
806
|
class: z.value,
|
|
806
807
|
style: {
|
|
807
808
|
overflow: "hidden",
|
|
808
|
-
zIndex:
|
|
809
|
+
zIndex: k.value ? 101 : void 0,
|
|
809
810
|
paddingTop: D.value || e.isMobile || F.value ? 0 : `${e.headerHeight}px`,
|
|
810
811
|
top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
|
|
811
812
|
height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
|
|
812
813
|
},
|
|
813
|
-
theme:
|
|
814
|
-
breakpoint:
|
|
815
|
-
collapsed:
|
|
816
|
-
width:
|
|
817
|
-
collapsedWidth:
|
|
818
|
-
onCollapse: (V) => {
|
|
819
|
-
var _;
|
|
820
|
-
e.isMobile || (_ = e.onCollapse) == null || _.call(e, V);
|
|
821
|
-
}
|
|
814
|
+
theme: _.value,
|
|
815
|
+
breakpoint: s.value || void 0,
|
|
816
|
+
collapsed: l.value,
|
|
817
|
+
width: p.value,
|
|
818
|
+
collapsedWidth: I.value
|
|
822
819
|
}, {
|
|
823
820
|
default: () => {
|
|
824
|
-
var
|
|
825
|
-
return [
|
|
821
|
+
var E, V;
|
|
822
|
+
return [S.value && o("div", {
|
|
826
823
|
class: ["gx-pro-sider-loading", O.value]
|
|
827
|
-
}, [
|
|
828
|
-
spinning:
|
|
829
|
-
}, null)]), B || null, P && !e.collapsed &&
|
|
824
|
+
}, [o(xe, {
|
|
825
|
+
spinning: S.value
|
|
826
|
+
}, null)]), B || null, P && !e.collapsed && o("div", {
|
|
830
827
|
class: {
|
|
831
828
|
[`${O.value}`]: !0,
|
|
832
|
-
[`${
|
|
833
|
-
[`${
|
|
829
|
+
[`${T}-extra`]: !0,
|
|
830
|
+
[`${T}-extra-no-logo`]: !B
|
|
834
831
|
}
|
|
835
|
-
}, [P]),
|
|
832
|
+
}, [P]), o("div", {
|
|
836
833
|
style: {
|
|
837
834
|
flex: "1 1 0%",
|
|
838
835
|
overflow: "hidden auto"
|
|
839
836
|
}
|
|
840
|
-
}, [
|
|
841
|
-
class: `${
|
|
842
|
-
}, [
|
|
843
|
-
theme:
|
|
837
|
+
}, [g.value && ((E = g.value) == null ? void 0 : E.call(g, e, j)) || j]), e.layout !== "wide" && o("div", {
|
|
838
|
+
class: `${T}-links ${O.value}`
|
|
839
|
+
}, [o(ee, {
|
|
840
|
+
theme: _.value,
|
|
844
841
|
inlineIndent: 16,
|
|
845
|
-
class: `${
|
|
842
|
+
class: `${T}-link-menu ${O.value}`,
|
|
846
843
|
selectedKeys: [],
|
|
847
844
|
openKeys: [],
|
|
848
845
|
mode: "inline"
|
|
849
846
|
}, {
|
|
850
|
-
default: () => [(
|
|
851
|
-
class: `${
|
|
852
|
-
key:
|
|
847
|
+
default: () => [(y.value || []).map((G, fe) => o(nt, {
|
|
848
|
+
class: `${T}-link ${O.value}`,
|
|
849
|
+
key: fe
|
|
853
850
|
}, Yn(G) ? G : {
|
|
854
851
|
default: () => [G]
|
|
855
|
-
})),
|
|
856
|
-
class: `${
|
|
852
|
+
})), C.value && !h.value && o(nt, {
|
|
853
|
+
class: `${T}-collapsed-button ${O.value}`,
|
|
857
854
|
title: !1,
|
|
858
855
|
key: "collapsed",
|
|
859
856
|
onClick: () => {
|
|
860
857
|
var G;
|
|
861
|
-
e.onCollapse && ((G = e.onCollapse) == null || G.call(e, !
|
|
858
|
+
e.onCollapse && ((G = e.onCollapse) == null || G.call(e, !l.value));
|
|
862
859
|
}
|
|
863
860
|
}, {
|
|
864
861
|
default: () => {
|
|
865
862
|
var G;
|
|
866
|
-
return [(G =
|
|
863
|
+
return [(G = C.value) == null ? void 0 : G.call(C, l.value)];
|
|
867
864
|
}
|
|
868
865
|
})]
|
|
869
|
-
})]), c.value &&
|
|
870
|
-
class: `${
|
|
871
|
-
}, [(
|
|
866
|
+
})]), c.value && o("div", {
|
|
867
|
+
class: `${T}-footer ${O.value}`
|
|
868
|
+
}, [(V = c.value) == null ? void 0 : V.call(c, e)])];
|
|
872
869
|
}
|
|
873
870
|
})]
|
|
874
871
|
}));
|
|
875
872
|
};
|
|
876
873
|
}
|
|
877
|
-
}),
|
|
874
|
+
}), $e = /* @__PURE__ */ H({
|
|
878
875
|
name: "SiderMenuWrapper",
|
|
879
876
|
inheritAttrs: !1,
|
|
880
877
|
props: {
|
|
@@ -884,10 +881,8 @@ const {
|
|
|
884
881
|
default: () => []
|
|
885
882
|
}
|
|
886
883
|
},
|
|
887
|
-
setup(e
|
|
888
|
-
|
|
889
|
-
}) {
|
|
890
|
-
return () => a(q, null, [e.isMobile ? a(ve, {
|
|
884
|
+
setup(e) {
|
|
885
|
+
return () => o(q, null, [e.isMobile ? o(be, {
|
|
891
886
|
maskClosable: !0,
|
|
892
887
|
open: !e.collapsed,
|
|
893
888
|
closable: !1,
|
|
@@ -904,17 +899,16 @@ const {
|
|
|
904
899
|
padding: 0,
|
|
905
900
|
display: "flex",
|
|
906
901
|
flexDirection: "row"
|
|
907
|
-
// backgroundColor: token?.value?.layout?.sider?.colorMenuBackground
|
|
908
902
|
}
|
|
909
903
|
}, {
|
|
910
|
-
default: () => [
|
|
904
|
+
default: () => [o(at, X(e, {
|
|
911
905
|
collapsed: e.isMobile ? !1 : e.collapsed
|
|
912
906
|
}), null)]
|
|
913
|
-
}) :
|
|
907
|
+
}) : o(at, e, null)]);
|
|
914
908
|
}
|
|
915
|
-
}),
|
|
916
|
-
|
|
917
|
-
}, Qn = () => Zn(
|
|
909
|
+
}), Mt = Symbol("pro-app-context"), Zn = (e = Symbol(), t) => ct(e, t || {}), Jn = (e) => {
|
|
910
|
+
De(Mt, e);
|
|
911
|
+
}, Qn = () => Zn(Mt, []);
|
|
918
912
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
919
913
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
920
914
|
const ea = Object.prototype.toString;
|
|
@@ -926,29 +920,29 @@ function na(e) {
|
|
|
926
920
|
}
|
|
927
921
|
typeof process < "u" && process.versions != null && process.versions.node != null;
|
|
928
922
|
function aa(e, t, n = "default") {
|
|
929
|
-
var
|
|
930
|
-
return t[n] === !1 ? !1 : na(t[n]) && t[n] ? ((
|
|
923
|
+
var a, i;
|
|
924
|
+
return t[n] === !1 ? !1 : na(t[n]) && t[n] ? ((a = e == null ? void 0 : e[n]) == null ? void 0 : a.call(e)) || t[n] : t[n] || ((i = e[n]) == null ? void 0 : i.call(e));
|
|
931
925
|
}
|
|
932
926
|
function oa(e, t, n) {
|
|
933
|
-
const
|
|
927
|
+
const a = {};
|
|
934
928
|
return e.forEach((i) => {
|
|
935
|
-
|
|
936
|
-
}),
|
|
929
|
+
a[i] = aa(t, n, i);
|
|
930
|
+
}), a;
|
|
937
931
|
}
|
|
938
|
-
const ia = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className:
|
|
939
|
-
const i =
|
|
932
|
+
const ia = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: a }) => {
|
|
933
|
+
const i = a || (n ? "gx-pro" : "gx");
|
|
940
934
|
return t || (e ? `${i}-${e}` : i);
|
|
941
935
|
}, la = (e) => {
|
|
942
|
-
const { componentCls: t, colorText: n, fontSize:
|
|
936
|
+
const { componentCls: t, colorText: n, fontSize: a, lineHeight: i, fontFamily: r } = e;
|
|
943
937
|
return {
|
|
944
938
|
[t]: {
|
|
945
939
|
color: n,
|
|
946
|
-
fontSize:
|
|
940
|
+
fontSize: a,
|
|
947
941
|
lineHeight: i,
|
|
948
|
-
fontFamily:
|
|
942
|
+
fontFamily: r
|
|
949
943
|
}
|
|
950
944
|
};
|
|
951
|
-
}, ra = ["emptyText", "indicator"],
|
|
945
|
+
}, ra = ["emptyText", "indicator"], ke = /* @__PURE__ */ H({
|
|
952
946
|
name: "GProApp",
|
|
953
947
|
props: {
|
|
954
948
|
rootClassName: String,
|
|
@@ -962,22 +956,22 @@ const ia = ({ suffixCls: e, customizePrefixCls: t, isPor: n, className: o }) =>
|
|
|
962
956
|
suffixCls: "app",
|
|
963
957
|
isPor: !0
|
|
964
958
|
}), {
|
|
965
|
-
wrapSSR:
|
|
959
|
+
wrapSSR: a,
|
|
966
960
|
hashId: i
|
|
967
|
-
} = Z("BaseApp", [la], n),
|
|
961
|
+
} = Z("BaseApp", [la], n), r = w(() => oa(ra, t, e)), d = w(() => [i.value, n, e.rootClassName]);
|
|
968
962
|
return Jn({
|
|
969
|
-
emptyText:
|
|
970
|
-
indicator:
|
|
963
|
+
emptyText: w(() => r.value.emptyText),
|
|
964
|
+
indicator: w(() => r.value.indicator)
|
|
971
965
|
}), () => {
|
|
972
966
|
var m;
|
|
973
|
-
return o(
|
|
967
|
+
return a(o("div", {
|
|
974
968
|
class: d.value
|
|
975
969
|
}, [(m = t.default) == null ? void 0 : m.call(t)]));
|
|
976
970
|
};
|
|
977
971
|
}
|
|
978
972
|
});
|
|
979
|
-
|
|
980
|
-
const
|
|
973
|
+
ke.install = (e) => (e.component(ke.name, ke), e);
|
|
974
|
+
const me = {
|
|
981
975
|
pageHeaderRender: {
|
|
982
976
|
type: [Object, Function, Boolean],
|
|
983
977
|
default: () => {
|
|
@@ -1009,51 +1003,51 @@ const ge = {
|
|
|
1009
1003
|
marginTop: "8px"
|
|
1010
1004
|
}
|
|
1011
1005
|
}
|
|
1012
|
-
}), ua = /* @__PURE__ */
|
|
1006
|
+
}), ua = /* @__PURE__ */ H({
|
|
1013
1007
|
name: "ProPageHeader",
|
|
1014
1008
|
props: {
|
|
1015
|
-
content:
|
|
1016
|
-
breadcrumb:
|
|
1009
|
+
content: me.contentRender,
|
|
1010
|
+
breadcrumb: me.breadcrumbRender
|
|
1017
1011
|
},
|
|
1018
1012
|
setup(e) {
|
|
1019
1013
|
const {
|
|
1020
1014
|
breadcrumb: t,
|
|
1021
1015
|
getPrefixCls: n
|
|
1022
|
-
} = J(),
|
|
1016
|
+
} = J(), a = n({
|
|
1023
1017
|
isPor: !0,
|
|
1024
1018
|
suffixCls: "page-header"
|
|
1025
1019
|
}), {
|
|
1026
1020
|
wrapSSR: i,
|
|
1027
|
-
hashId:
|
|
1028
|
-
} = Z("ProPageHeader", [sa],
|
|
1021
|
+
hashId: r
|
|
1022
|
+
} = Z("ProPageHeader", [sa], a), d = w(() => {
|
|
1029
1023
|
var m;
|
|
1030
1024
|
return {
|
|
1031
1025
|
...t.value,
|
|
1032
1026
|
itemRender: ((m = t.value) == null ? void 0 : m.itemRender) || (({
|
|
1033
|
-
route:
|
|
1034
|
-
}) =>
|
|
1035
|
-
to:
|
|
1027
|
+
route: b
|
|
1028
|
+
}) => o(nn, {
|
|
1029
|
+
to: b.path
|
|
1036
1030
|
}, {
|
|
1037
|
-
default: () => [
|
|
1031
|
+
default: () => [b.breadcrumbName]
|
|
1038
1032
|
}))
|
|
1039
1033
|
};
|
|
1040
1034
|
});
|
|
1041
1035
|
return () => {
|
|
1042
|
-
var m,
|
|
1043
|
-
return i(
|
|
1044
|
-
class: [`${
|
|
1045
|
-
}, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, d.value) :
|
|
1046
|
-
class: [`${
|
|
1047
|
-
}, [(
|
|
1036
|
+
var m, b;
|
|
1037
|
+
return i(o("div", {
|
|
1038
|
+
class: [`${a}`, r.value, `${a}-has-breadcrumb`]
|
|
1039
|
+
}, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, d.value) : o(Yt, d.value, null), e.content && o("div", {
|
|
1040
|
+
class: [`${a}-content`, r.value]
|
|
1041
|
+
}, [(b = e.content) == null ? void 0 : b.call(e)])]));
|
|
1048
1042
|
};
|
|
1049
1043
|
}
|
|
1050
1044
|
}), da = (e) => {
|
|
1051
|
-
var t, n,
|
|
1045
|
+
var t, n, a, i, r, d, m, b;
|
|
1052
1046
|
return {
|
|
1053
1047
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1054
1048
|
[e.componentCls]: {
|
|
1055
1049
|
marginInline: -(((n = (t = e.layout) == null ? void 0 : t.pageContainer) == null ? void 0 : n.paddingBlockPageContainerContent) ?? 24),
|
|
1056
|
-
marginBlockStart: -(((i = (
|
|
1050
|
+
marginBlockStart: -(((i = (a = e.layout) == null ? void 0 : a.pageContainer) == null ? void 0 : i.paddingBlockPageContainerContent) ?? 24)
|
|
1057
1051
|
},
|
|
1058
1052
|
[e.gridContent]: {
|
|
1059
1053
|
width: "100%"
|
|
@@ -1061,8 +1055,8 @@ const ge = {
|
|
|
1061
1055
|
},
|
|
1062
1056
|
[e.componentCls]: {
|
|
1063
1057
|
["&-children-content"]: {
|
|
1064
|
-
marginInline: ((d = (
|
|
1065
|
-
marginBlockStart: ((
|
|
1058
|
+
marginInline: ((d = (r = e.layout) == null ? void 0 : r.pageContainer) == null ? void 0 : d.paddingBlockPageContainerContent) ?? 24,
|
|
1059
|
+
marginBlockStart: ((b = (m = e.layout) == null ? void 0 : m.pageContainer) == null ? void 0 : b.paddingBlockPageContainerContent) ?? 24,
|
|
1066
1060
|
padding: "inherit"
|
|
1067
1061
|
}
|
|
1068
1062
|
}
|
|
@@ -1079,81 +1073,81 @@ function ca(e) {
|
|
|
1079
1073
|
function ma(e) {
|
|
1080
1074
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
1081
1075
|
}
|
|
1082
|
-
const yl = /* @__PURE__ */
|
|
1076
|
+
const yl = /* @__PURE__ */ H({
|
|
1083
1077
|
inheritAttrs: !1,
|
|
1084
1078
|
name: "GProPageContainer",
|
|
1085
|
-
props:
|
|
1079
|
+
props: me,
|
|
1086
1080
|
setup(e, {
|
|
1087
1081
|
slots: t
|
|
1088
1082
|
}) {
|
|
1089
1083
|
const {
|
|
1090
1084
|
getPrefixCls: n,
|
|
1091
|
-
hasContentWide:
|
|
1085
|
+
hasContentWide: a,
|
|
1092
1086
|
waterMark: i,
|
|
1093
|
-
pageHeaderRender:
|
|
1087
|
+
pageHeaderRender: r,
|
|
1094
1088
|
pageContentStyle: d,
|
|
1095
1089
|
pageCardProps: m,
|
|
1096
|
-
usePageCard:
|
|
1090
|
+
usePageCard: b
|
|
1097
1091
|
} = J(), {
|
|
1098
|
-
indicator:
|
|
1099
|
-
} = Qn(),
|
|
1092
|
+
indicator: h
|
|
1093
|
+
} = Qn(), S = n({
|
|
1100
1094
|
suffixCls: "page-container",
|
|
1101
1095
|
isPor: !0
|
|
1102
|
-
}),
|
|
1096
|
+
}), s = n({
|
|
1103
1097
|
suffixCls: "grid-content",
|
|
1104
1098
|
isPor: !0
|
|
1105
|
-
}),
|
|
1106
|
-
wrapSSR:
|
|
1107
|
-
hashId:
|
|
1108
|
-
} = ca(
|
|
1099
|
+
}), k = w(() => e.pageCardProps || m.value), l = w(() => e.pageContentStyle || d.value), {
|
|
1100
|
+
wrapSSR: p,
|
|
1101
|
+
hashId: I
|
|
1102
|
+
} = ca(S), M = () => {
|
|
1109
1103
|
var c;
|
|
1110
|
-
return
|
|
1111
|
-
class: `${
|
|
1112
|
-
}, [(
|
|
1113
|
-
style:
|
|
1104
|
+
return o("div", {
|
|
1105
|
+
class: `${S}-children-content ${I.value}`
|
|
1106
|
+
}, [(bn(e.usePageCard) ? e.usePageCard : b.value) ? o(qt, X(k.value ? ae(k.value, ["loading", "bodyStyle"]) : {}, {
|
|
1107
|
+
style: a.value ? {
|
|
1114
1108
|
minHeight: "853px"
|
|
1115
1109
|
} : void 0,
|
|
1116
1110
|
bordered: !1
|
|
1117
1111
|
}), {
|
|
1118
1112
|
default: () => {
|
|
1119
|
-
var
|
|
1120
|
-
return [(
|
|
1113
|
+
var f;
|
|
1114
|
+
return [(f = t.default) == null ? void 0 : f.call(t)];
|
|
1121
1115
|
}
|
|
1122
1116
|
}) : (c = t.default) == null ? void 0 : c.call(t)]);
|
|
1123
|
-
},
|
|
1117
|
+
}, g = () => {
|
|
1124
1118
|
let c;
|
|
1125
|
-
return
|
|
1119
|
+
return o(q, null, [e.waterMark && i.value ? o(yn, null, ma(c = M()) ? c : {
|
|
1126
1120
|
default: () => [c]
|
|
1127
|
-
}) :
|
|
1121
|
+
}) : M()]);
|
|
1128
1122
|
};
|
|
1129
1123
|
return () => {
|
|
1130
|
-
const c = K(t, e, "pageHeaderRender") ||
|
|
1131
|
-
return
|
|
1124
|
+
const c = K(t, e, "pageHeaderRender") || r.value, f = K(t, e, "breadcrumbRender"), v = K(t, e, "contentRender");
|
|
1125
|
+
return p(o(xe, {
|
|
1132
1126
|
spinning: e.loading,
|
|
1133
|
-
indicator:
|
|
1127
|
+
indicator: h == null ? void 0 : h.value
|
|
1134
1128
|
}, {
|
|
1135
|
-
default: () => [
|
|
1129
|
+
default: () => [o("div", {
|
|
1136
1130
|
class: {
|
|
1137
|
-
[`${
|
|
1138
|
-
[`${
|
|
1131
|
+
[`${I.value}`]: !0,
|
|
1132
|
+
[`${S}`]: !0
|
|
1139
1133
|
}
|
|
1140
|
-
}, [!
|
|
1141
|
-
breadcrumb:
|
|
1142
|
-
content:
|
|
1143
|
-
}, null)),
|
|
1144
|
-
class: [
|
|
1145
|
-
}, [
|
|
1146
|
-
class: `${
|
|
1147
|
-
style:
|
|
1148
|
-
}, [
|
|
1134
|
+
}, [!a.value && c !== !1 && (c || o(ua, {
|
|
1135
|
+
breadcrumb: f,
|
|
1136
|
+
content: v
|
|
1137
|
+
}, null)), o("div", {
|
|
1138
|
+
class: [s, I.value]
|
|
1139
|
+
}, [o("div", {
|
|
1140
|
+
class: `${s}-children ${I.value}`,
|
|
1141
|
+
style: l.value
|
|
1142
|
+
}, [g()])])])]
|
|
1149
1143
|
}));
|
|
1150
1144
|
};
|
|
1151
1145
|
}
|
|
1152
|
-
}),
|
|
1153
|
-
...
|
|
1154
|
-
logo:
|
|
1155
|
-
logoStyle:
|
|
1156
|
-
logoDirection:
|
|
1146
|
+
}), Xe = {
|
|
1147
|
+
...ie,
|
|
1148
|
+
logo: oe.logo,
|
|
1149
|
+
logoStyle: oe.logoStyle,
|
|
1150
|
+
logoDirection: oe.logoDirection,
|
|
1157
1151
|
menuLoading: Boolean,
|
|
1158
1152
|
autoHideHeader: Boolean,
|
|
1159
1153
|
collapsed: Boolean,
|
|
@@ -1188,8 +1182,8 @@ const yl = /* @__PURE__ */ E({
|
|
|
1188
1182
|
onOpenKeys: Y.onOpenKeys,
|
|
1189
1183
|
onMenuHeaderClick: Function,
|
|
1190
1184
|
onSelect: Y.onSelect
|
|
1191
|
-
},
|
|
1192
|
-
...
|
|
1185
|
+
}, Rt = {
|
|
1186
|
+
...Xe,
|
|
1193
1187
|
headerTitleRender: {
|
|
1194
1188
|
type: [Object, Function],
|
|
1195
1189
|
default: () => {
|
|
@@ -1208,13 +1202,13 @@ const yl = /* @__PURE__ */ E({
|
|
|
1208
1202
|
hasSiderMenu: Boolean,
|
|
1209
1203
|
collapsedWidth: Y.collapsedWidth,
|
|
1210
1204
|
siderWidth: Y.siderWidth
|
|
1211
|
-
},
|
|
1205
|
+
}, Bt = {
|
|
1212
1206
|
loading: L.looseBool,
|
|
1213
1207
|
isMobile: Y.isMobile,
|
|
1214
|
-
collapsed:
|
|
1208
|
+
collapsed: je.collapsed,
|
|
1215
1209
|
siderWidth: Y.siderWidth,
|
|
1216
1210
|
collapsedWidth: Y.collapsedWidth,
|
|
1217
|
-
isFixedMultiTab:
|
|
1211
|
+
isFixedMultiTab: ie.fixedMultiTab,
|
|
1218
1212
|
onReloadPage: {
|
|
1219
1213
|
type: Function
|
|
1220
1214
|
},
|
|
@@ -1255,14 +1249,14 @@ const yl = /* @__PURE__ */ E({
|
|
|
1255
1249
|
}
|
|
1256
1250
|
}
|
|
1257
1251
|
}
|
|
1258
|
-
}),
|
|
1252
|
+
}), kt = [{
|
|
1259
1253
|
key: "Ant Design Pro",
|
|
1260
1254
|
title: "Ant Design Pro",
|
|
1261
1255
|
href: "https://pro.ant.design",
|
|
1262
1256
|
blankTarget: !0
|
|
1263
1257
|
}, {
|
|
1264
1258
|
key: "gitee",
|
|
1265
|
-
title:
|
|
1259
|
+
title: o(rn, null, null),
|
|
1266
1260
|
href: "https://gitee.com/gx12358/vue-antd-admin",
|
|
1267
1261
|
blankTarget: !0
|
|
1268
1262
|
}, {
|
|
@@ -1270,12 +1264,12 @@ const yl = /* @__PURE__ */ E({
|
|
|
1270
1264
|
title: "Ant Design Vue",
|
|
1271
1265
|
href: "https://next.antdv.com/components/overview-cn/",
|
|
1272
1266
|
blankTarget: !0
|
|
1273
|
-
}],
|
|
1267
|
+
}], Te = /* @__PURE__ */ H({
|
|
1274
1268
|
name: "GlobalFooter",
|
|
1275
1269
|
props: {
|
|
1276
1270
|
links: {
|
|
1277
1271
|
type: [Array, Boolean],
|
|
1278
|
-
default:
|
|
1272
|
+
default: kt
|
|
1279
1273
|
},
|
|
1280
1274
|
copyright: {
|
|
1281
1275
|
type: [Object, Function, Boolean, String],
|
|
@@ -1283,41 +1277,41 @@ const yl = /* @__PURE__ */ E({
|
|
|
1283
1277
|
}
|
|
1284
1278
|
},
|
|
1285
1279
|
setup(e) {
|
|
1286
|
-
const t =
|
|
1280
|
+
const t = ce({
|
|
1287
1281
|
suffixCls: "global-footer",
|
|
1288
1282
|
isPor: !0
|
|
1289
1283
|
}), {
|
|
1290
1284
|
wrapSSR: n,
|
|
1291
|
-
hashId:
|
|
1285
|
+
hashId: a
|
|
1292
1286
|
} = Z("ProLayoutFooter", [fa], t);
|
|
1293
|
-
return () => n(
|
|
1287
|
+
return () => n(o(Zt, {
|
|
1294
1288
|
style: {
|
|
1295
1289
|
padding: 0
|
|
1296
1290
|
}
|
|
1297
1291
|
}, {
|
|
1298
|
-
default: () => [
|
|
1299
|
-
class: [t,
|
|
1300
|
-
}, [e.links &&
|
|
1301
|
-
class: `${t}-links ${
|
|
1302
|
-
}, [e.links.map((i) =>
|
|
1292
|
+
default: () => [o("div", {
|
|
1293
|
+
class: [t, a.value]
|
|
1294
|
+
}, [e.links && o("div", {
|
|
1295
|
+
class: `${t}-links ${a.value}`
|
|
1296
|
+
}, [e.links.map((i) => o("a", {
|
|
1303
1297
|
key: i.key,
|
|
1304
1298
|
title: i.key,
|
|
1305
1299
|
target: i.blankTarget ? "_blank" : "_self",
|
|
1306
1300
|
href: i.href
|
|
1307
|
-
}, [i.title]))]), e.copyright &&
|
|
1308
|
-
class: `${t}-copyright ${
|
|
1309
|
-
}, [Q("Copyright 2022 "),
|
|
1301
|
+
}, [i.title]))]), e.copyright && o("div", {
|
|
1302
|
+
class: `${t}-copyright ${a.value}`
|
|
1303
|
+
}, [Q("Copyright 2022 "), o("a", {
|
|
1310
1304
|
href: "https://beian.miit.gov.cn/"
|
|
1311
1305
|
}, [e.copyright])])])]
|
|
1312
1306
|
}));
|
|
1313
1307
|
}
|
|
1314
|
-
}),
|
|
1315
|
-
...
|
|
1316
|
-
...
|
|
1308
|
+
}), $t = {
|
|
1309
|
+
...ie,
|
|
1310
|
+
...Xe,
|
|
1317
1311
|
...Y,
|
|
1312
|
+
...Rt,
|
|
1318
1313
|
...Bt,
|
|
1319
|
-
...
|
|
1320
|
-
...ge,
|
|
1314
|
+
...me,
|
|
1321
1315
|
pure: Boolean,
|
|
1322
1316
|
token: Object,
|
|
1323
1317
|
waterMark: {
|
|
@@ -1344,7 +1338,7 @@ const yl = /* @__PURE__ */ E({
|
|
|
1344
1338
|
loading: L.looseBool,
|
|
1345
1339
|
footerLinks: {
|
|
1346
1340
|
type: [Array, Boolean],
|
|
1347
|
-
default:
|
|
1341
|
+
default: kt
|
|
1348
1342
|
},
|
|
1349
1343
|
copyrightRender: {
|
|
1350
1344
|
type: [Object, Function, Boolean, String],
|
|
@@ -1478,9 +1472,9 @@ const pa = [
|
|
|
1478
1472
|
function va(e) {
|
|
1479
1473
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
1480
1474
|
}
|
|
1481
|
-
const xa =
|
|
1475
|
+
const xa = He.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ H({
|
|
1482
1476
|
props: {
|
|
1483
|
-
...
|
|
1477
|
+
...Bt,
|
|
1484
1478
|
visible: {
|
|
1485
1479
|
type: Boolean,
|
|
1486
1480
|
default: !0
|
|
@@ -1491,206 +1485,206 @@ const xa = _e.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ E({
|
|
|
1491
1485
|
const {
|
|
1492
1486
|
isMobile: t,
|
|
1493
1487
|
isFixedMultiTab: n
|
|
1494
|
-
} =
|
|
1488
|
+
} = Ie(e), a = ve(!1), i = ze({
|
|
1495
1489
|
activeKey: "",
|
|
1496
1490
|
contextMenuActiveKey: ""
|
|
1497
|
-
}),
|
|
1491
|
+
}), r = _e(), {
|
|
1498
1492
|
menuData: d,
|
|
1499
1493
|
getPrefixCls: m
|
|
1500
|
-
} = J(),
|
|
1494
|
+
} = J(), b = m({
|
|
1501
1495
|
isPor: !0,
|
|
1502
1496
|
suffixCls: "multi-tab"
|
|
1503
1497
|
}), {
|
|
1504
|
-
wrapSSR:
|
|
1505
|
-
hashId:
|
|
1506
|
-
} = ba(
|
|
1507
|
-
|
|
1508
|
-
var
|
|
1509
|
-
(
|
|
1498
|
+
wrapSSR: h,
|
|
1499
|
+
hashId: S
|
|
1500
|
+
} = ba(b), s = ve([]);
|
|
1501
|
+
le(s, () => {
|
|
1502
|
+
var y;
|
|
1503
|
+
(y = e.onChangeTabs) == null || y.call(e, yt(U(s)));
|
|
1510
1504
|
}, {
|
|
1511
1505
|
deep: !0
|
|
1512
1506
|
});
|
|
1513
|
-
const
|
|
1514
|
-
[`${
|
|
1515
|
-
[`${
|
|
1516
|
-
[`${
|
|
1517
|
-
})),
|
|
1518
|
-
const
|
|
1507
|
+
const k = w(() => r.currentRoute.value.path), l = w(() => n.value && !t.value), p = w(() => l.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), I = w(() => bt(`${b}-wrap`, {
|
|
1508
|
+
[`${S.value}`]: !0,
|
|
1509
|
+
[`${b}-wrap-fixed`]: e.isFixedMultiTab,
|
|
1510
|
+
[`${b}-wrap-loading`]: e.loading
|
|
1511
|
+
})), M = w(() => {
|
|
1512
|
+
const y = {
|
|
1519
1513
|
display: e.visible ? void 0 : "none"
|
|
1520
1514
|
};
|
|
1521
1515
|
return e.isFixedMultiTab ? {
|
|
1522
1516
|
margin: 0,
|
|
1523
|
-
width:
|
|
1517
|
+
width: p.value,
|
|
1524
1518
|
paddingTop: "6px",
|
|
1525
1519
|
zIndex: 99,
|
|
1526
|
-
...
|
|
1527
|
-
} :
|
|
1528
|
-
}),
|
|
1529
|
-
if (
|
|
1530
|
-
const
|
|
1531
|
-
path:
|
|
1532
|
-
fullPath:
|
|
1533
|
-
query:
|
|
1534
|
-
params:
|
|
1535
|
-
name:
|
|
1520
|
+
...y
|
|
1521
|
+
} : y;
|
|
1522
|
+
}), g = (y) => y.fullPath === k.value, c = (y) => {
|
|
1523
|
+
if (y.name && y.meta && y.meta.tagHidden !== !0) {
|
|
1524
|
+
const C = y.fullPath || y.path, $ = s.value.find((P) => P.fullPath === C), B = {
|
|
1525
|
+
path: y.path,
|
|
1526
|
+
fullPath: C,
|
|
1527
|
+
query: y.query,
|
|
1528
|
+
params: y.params,
|
|
1529
|
+
name: y.name,
|
|
1536
1530
|
meta: {
|
|
1537
|
-
...
|
|
1531
|
+
...y.meta
|
|
1538
1532
|
}
|
|
1539
1533
|
};
|
|
1540
|
-
$ ? Object.assign($, B) :
|
|
1534
|
+
$ ? Object.assign($, B) : y.meta.tagFixed ? s.value.unshift(B) : s.value.push(B), g(y) && (i.activeKey = C);
|
|
1541
1535
|
}
|
|
1542
|
-
},
|
|
1543
|
-
|
|
1544
|
-
|
|
1536
|
+
}, f = (y) => {
|
|
1537
|
+
y.forEach((C) => {
|
|
1538
|
+
C.meta && C.meta.tagFixed && c(C), C.children && f(C.children);
|
|
1545
1539
|
});
|
|
1546
1540
|
};
|
|
1547
|
-
|
|
1548
|
-
|
|
1541
|
+
le(() => d.value, (y) => {
|
|
1542
|
+
f(y);
|
|
1549
1543
|
}, {
|
|
1550
1544
|
deep: !0,
|
|
1551
1545
|
immediate: !0
|
|
1552
|
-
}),
|
|
1553
|
-
c(
|
|
1546
|
+
}), le(() => r.currentRoute.value, (y) => {
|
|
1547
|
+
c(y);
|
|
1554
1548
|
}, {
|
|
1555
1549
|
deep: !0,
|
|
1556
1550
|
immediate: !0
|
|
1557
1551
|
});
|
|
1558
|
-
const
|
|
1559
|
-
const
|
|
1560
|
-
|
|
1561
|
-
},
|
|
1562
|
-
const
|
|
1563
|
-
|
|
1564
|
-
},
|
|
1565
|
-
const
|
|
1566
|
-
i.activeKey !== (
|
|
1552
|
+
const v = () => {
|
|
1553
|
+
const y = s.value.slice(-1)[0];
|
|
1554
|
+
y ? r.push(y) : r.push("/");
|
|
1555
|
+
}, T = async (y) => {
|
|
1556
|
+
const C = s.value.find(($) => y === $.fullPath);
|
|
1557
|
+
s.value = s.value.filter(($) => $.fullPath !== y), C && g(C) && v();
|
|
1558
|
+
}, x = (y) => {
|
|
1559
|
+
const C = s.value.find(($) => $.path === y);
|
|
1560
|
+
i.activeKey !== (C == null ? void 0 : C.fullPath) && (C != null && C.fullPath) && r.push(C == null ? void 0 : C.fullPath);
|
|
1567
1561
|
}, O = () => {
|
|
1568
|
-
var
|
|
1569
|
-
|
|
1570
|
-
|
|
1562
|
+
var y;
|
|
1563
|
+
a.value = !0, e.onReloadPage && ((y = e.onReloadPage) == null || y.call(e)), setTimeout(() => {
|
|
1564
|
+
a.value = !1;
|
|
1571
1565
|
}, 500);
|
|
1572
|
-
}, F = (
|
|
1573
|
-
const $ =
|
|
1574
|
-
switch (
|
|
1566
|
+
}, F = (y) => y.meta && y.meta.tagFixed, R = (y) => i[y], D = (y, C) => {
|
|
1567
|
+
const $ = s.value.findIndex((B) => B.fullPath === R(C));
|
|
1568
|
+
switch (y) {
|
|
1575
1569
|
case "closeOthersTabs":
|
|
1576
|
-
|
|
1570
|
+
s.value = s.value.filter((B) => {
|
|
1577
1571
|
var P;
|
|
1578
|
-
return B.fullPath === R(
|
|
1572
|
+
return B.fullPath === R(C) || ((P = B.meta) == null ? void 0 : P.tagFixed);
|
|
1579
1573
|
});
|
|
1580
1574
|
break;
|
|
1581
1575
|
case "closeLeftTabs":
|
|
1582
|
-
$ && (
|
|
1576
|
+
$ && (s.value = s.value.filter((B, P) => {
|
|
1583
1577
|
var j;
|
|
1584
1578
|
return P >= $ || ((j = B.meta) == null ? void 0 : j.tagFixed);
|
|
1585
1579
|
}));
|
|
1586
1580
|
break;
|
|
1587
1581
|
case "closeRightTabs":
|
|
1588
|
-
$ && (
|
|
1582
|
+
$ && (s.value = s.value.filter((B, P) => {
|
|
1589
1583
|
var j;
|
|
1590
1584
|
return P <= $ || ((j = B.meta) == null ? void 0 : j.tagFixed);
|
|
1591
1585
|
}));
|
|
1592
1586
|
break;
|
|
1593
1587
|
case "reloadPage":
|
|
1594
|
-
($ === 0 || $) && i.activeKey === R(
|
|
1588
|
+
($ === 0 || $) && i.activeKey === R(C) && O();
|
|
1595
1589
|
break;
|
|
1596
1590
|
}
|
|
1597
|
-
i.activeKey !== R(
|
|
1598
|
-
},
|
|
1599
|
-
const $ =
|
|
1600
|
-
switch (
|
|
1591
|
+
i.activeKey !== R(C) && r.push(R(C));
|
|
1592
|
+
}, _ = (y, C) => {
|
|
1593
|
+
const $ = s.value.findIndex((B) => B.fullPath === C);
|
|
1594
|
+
switch (y) {
|
|
1601
1595
|
case "closeOthersTabs":
|
|
1602
|
-
return
|
|
1603
|
-
var
|
|
1604
|
-
return
|
|
1596
|
+
return s.value.filter((W, E) => {
|
|
1597
|
+
var V;
|
|
1598
|
+
return E !== $ && !((V = W.meta) != null && V.tagFixed);
|
|
1605
1599
|
}).length === 0;
|
|
1606
1600
|
case "closeLeftTabs":
|
|
1607
|
-
return
|
|
1608
|
-
var
|
|
1609
|
-
return
|
|
1601
|
+
return s.value.filter((W, E) => {
|
|
1602
|
+
var V;
|
|
1603
|
+
return E < $ && !((V = W.meta) != null && V.tagFixed);
|
|
1610
1604
|
}).length === 0;
|
|
1611
1605
|
case "closeRightTabs":
|
|
1612
|
-
return
|
|
1613
|
-
var
|
|
1614
|
-
return
|
|
1606
|
+
return s.value.filter((W, E) => {
|
|
1607
|
+
var V;
|
|
1608
|
+
return E > $ && !((V = W.meta) != null && V.tagFixed);
|
|
1615
1609
|
}).length === 0;
|
|
1616
1610
|
}
|
|
1617
|
-
},
|
|
1618
|
-
let
|
|
1611
|
+
}, N = (y) => {
|
|
1612
|
+
let C;
|
|
1619
1613
|
const {
|
|
1620
1614
|
path: $,
|
|
1621
1615
|
stateType: B
|
|
1622
|
-
} =
|
|
1623
|
-
return
|
|
1616
|
+
} = y;
|
|
1617
|
+
return o(ee, {
|
|
1624
1618
|
selectedKeys: [],
|
|
1625
1619
|
onClick: ({
|
|
1626
1620
|
key: P
|
|
1627
1621
|
}) => D(P, B)
|
|
1628
|
-
}, va(
|
|
1622
|
+
}, va(C = pa.map((P) => o(Ca, {
|
|
1629
1623
|
key: P.key,
|
|
1630
|
-
disabled:
|
|
1624
|
+
disabled: _(P.key, $)
|
|
1631
1625
|
}, {
|
|
1632
1626
|
default: () => [P.label]
|
|
1633
|
-
}))) ?
|
|
1634
|
-
default: () => [
|
|
1627
|
+
}))) ? C : {
|
|
1628
|
+
default: () => [C]
|
|
1635
1629
|
});
|
|
1636
|
-
}, z = (
|
|
1630
|
+
}, z = (y) => {
|
|
1637
1631
|
const {
|
|
1638
|
-
router:
|
|
1639
|
-
} =
|
|
1640
|
-
return
|
|
1632
|
+
router: C
|
|
1633
|
+
} = y;
|
|
1634
|
+
return o(Qe, {
|
|
1641
1635
|
trigger: "contextmenu",
|
|
1642
|
-
overlay:
|
|
1643
|
-
path: (
|
|
1636
|
+
overlay: o(N, {
|
|
1637
|
+
path: (C == null ? void 0 : C.fullPath) || "",
|
|
1644
1638
|
stateType: "contextMenuActiveKey"
|
|
1645
1639
|
}, null),
|
|
1646
1640
|
onOpenChange: ($) => {
|
|
1647
|
-
i.contextMenuActiveKey = $ &&
|
|
1641
|
+
i.contextMenuActiveKey = $ && C.fullPath || "";
|
|
1648
1642
|
}
|
|
1649
1643
|
}, {
|
|
1650
1644
|
default: () => {
|
|
1651
1645
|
var $;
|
|
1652
|
-
return [
|
|
1653
|
-
class: [`${
|
|
1654
|
-
}, [($ =
|
|
1655
|
-
class: [`${
|
|
1656
|
-
spin:
|
|
1646
|
+
return [o("div", {
|
|
1647
|
+
class: [`${b}-title`, S.value]
|
|
1648
|
+
}, [($ = C.meta) == null ? void 0 : $.title, i.activeKey === C.fullPath && o(un, {
|
|
1649
|
+
class: [`${b}-reload-btn`, S.value],
|
|
1650
|
+
spin: a.value,
|
|
1657
1651
|
onClick: (B) => {
|
|
1658
|
-
B.stopPropagation(), !
|
|
1652
|
+
B.stopPropagation(), !a.value && O();
|
|
1659
1653
|
}
|
|
1660
|
-
}, null),
|
|
1661
|
-
class: [`${
|
|
1654
|
+
}, null), s.value.length > 1 && !F(C) && o(ht, {
|
|
1655
|
+
class: [`${b}-close-btn`, S.value],
|
|
1662
1656
|
onClick: (B) => {
|
|
1663
|
-
B.stopPropagation(), !
|
|
1657
|
+
B.stopPropagation(), !a.value && T((C == null ? void 0 : C.fullPath) || "");
|
|
1664
1658
|
}
|
|
1665
1659
|
}, null)])];
|
|
1666
1660
|
}
|
|
1667
1661
|
});
|
|
1668
1662
|
};
|
|
1669
|
-
return () =>
|
|
1670
|
-
class: [`${
|
|
1671
|
-
}, null), [[
|
|
1663
|
+
return () => h(o(q, null, [!!e.isFixedMultiTab && At(o("div", {
|
|
1664
|
+
class: [`${b}-fixed`, S.value]
|
|
1665
|
+
}, null), [[Et, e.visible]]), o(He, {
|
|
1672
1666
|
hideAdd: !0,
|
|
1673
1667
|
type: "editable-card",
|
|
1674
|
-
style:
|
|
1675
|
-
class:
|
|
1668
|
+
style: M.value,
|
|
1669
|
+
class: I.value,
|
|
1676
1670
|
activeKey: i.activeKey,
|
|
1677
|
-
onTabClick:
|
|
1671
|
+
onTabClick: x
|
|
1678
1672
|
}, {
|
|
1679
|
-
default: () => [
|
|
1680
|
-
key:
|
|
1673
|
+
default: () => [s.value.map((y) => o(xa, {
|
|
1674
|
+
key: y.fullPath,
|
|
1681
1675
|
closable: !1,
|
|
1682
|
-
tab:
|
|
1683
|
-
router:
|
|
1676
|
+
tab: o(z, {
|
|
1677
|
+
router: y
|
|
1684
1678
|
}, null)
|
|
1685
1679
|
}, null))],
|
|
1686
|
-
rightExtra: () =>
|
|
1687
|
-
overlay:
|
|
1680
|
+
rightExtra: () => o(Qe, {
|
|
1681
|
+
overlay: o(N, {
|
|
1688
1682
|
path: i.activeKey,
|
|
1689
1683
|
stateType: "activeKey"
|
|
1690
1684
|
}, null)
|
|
1691
1685
|
}, {
|
|
1692
|
-
default: () => [
|
|
1693
|
-
class: [`${
|
|
1686
|
+
default: () => [o(sn, {
|
|
1687
|
+
class: [`${b}-dropdown-menu-btn`, S.value],
|
|
1694
1688
|
rotate: 90
|
|
1695
1689
|
}, null)]
|
|
1696
1690
|
})
|
|
@@ -1698,63 +1692,63 @@ const xa = _e.TabPane, Ca = ee.Item, wa = /* @__PURE__ */ E({
|
|
|
1698
1692
|
}
|
|
1699
1693
|
}), {
|
|
1700
1694
|
Content: Sa
|
|
1701
|
-
} =
|
|
1695
|
+
} = de, Ge = (e, {
|
|
1702
1696
|
slots: t,
|
|
1703
1697
|
attrs: n
|
|
1704
1698
|
}) => {
|
|
1705
|
-
var
|
|
1699
|
+
var p;
|
|
1706
1700
|
const {
|
|
1707
|
-
hashId:
|
|
1701
|
+
hashId: a,
|
|
1708
1702
|
prefixCls: i,
|
|
1709
|
-
isMobile:
|
|
1703
|
+
isMobile: r,
|
|
1710
1704
|
loading: d,
|
|
1711
1705
|
collapsed: m,
|
|
1712
|
-
siderWidth:
|
|
1713
|
-
isShowTabsBar:
|
|
1714
|
-
isFixedMultiTab:
|
|
1715
|
-
onReloadPage:
|
|
1716
|
-
onChangeTabs:
|
|
1706
|
+
siderWidth: b,
|
|
1707
|
+
isShowTabsBar: h,
|
|
1708
|
+
isFixedMultiTab: S,
|
|
1709
|
+
onReloadPage: s,
|
|
1710
|
+
onChangeTabs: k
|
|
1717
1711
|
} = e;
|
|
1718
1712
|
if (e.isChildrenLayout)
|
|
1719
|
-
return (
|
|
1713
|
+
return (p = t.default) == null ? void 0 : p.call(t);
|
|
1720
1714
|
const {
|
|
1721
|
-
flatMenuData:
|
|
1715
|
+
flatMenuData: l
|
|
1722
1716
|
} = J();
|
|
1723
|
-
return
|
|
1724
|
-
visible:
|
|
1725
|
-
isMobile:
|
|
1717
|
+
return o(q, null, [o(wa, {
|
|
1718
|
+
visible: U(l).length > 0 && h,
|
|
1719
|
+
isMobile: r,
|
|
1726
1720
|
loading: d,
|
|
1727
|
-
isFixedMultiTab:
|
|
1728
|
-
siderWidth:
|
|
1721
|
+
isFixedMultiTab: S,
|
|
1722
|
+
siderWidth: b,
|
|
1729
1723
|
collapsed: m,
|
|
1730
|
-
onReloadPage:
|
|
1731
|
-
onChangeTabs:
|
|
1732
|
-
}, null),
|
|
1724
|
+
onReloadPage: s,
|
|
1725
|
+
onChangeTabs: k
|
|
1726
|
+
}, null), o(Sa, {
|
|
1733
1727
|
style: n.style,
|
|
1734
1728
|
class: [`${i}-content`]
|
|
1735
1729
|
}, {
|
|
1736
1730
|
default: () => {
|
|
1737
|
-
var
|
|
1738
|
-
return [d &&
|
|
1739
|
-
class: [`${i}-content-spin-container`,
|
|
1731
|
+
var I;
|
|
1732
|
+
return [d && o(Mn, null, null), o("div", {
|
|
1733
|
+
class: [`${i}-content-spin-container`, a],
|
|
1740
1734
|
style: {
|
|
1741
1735
|
opacity: d ? "0" : void 0
|
|
1742
1736
|
}
|
|
1743
|
-
}, [(
|
|
1737
|
+
}, [(I = t.default) == null ? void 0 : I.call(t)])];
|
|
1744
1738
|
}
|
|
1745
1739
|
})]);
|
|
1746
1740
|
};
|
|
1747
|
-
|
|
1748
|
-
|
|
1741
|
+
Ge.inheritAttrs = !1;
|
|
1742
|
+
Ge.displayName = "wrap-content";
|
|
1749
1743
|
const Ia = (e) => {
|
|
1750
|
-
var t, n,
|
|
1744
|
+
var t, n, a, i;
|
|
1751
1745
|
return {
|
|
1752
1746
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1753
1747
|
[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]: {
|
|
1754
1748
|
backgroundColor: ((n = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : n.colorBgMenu) || e.colorBgElevated
|
|
1755
1749
|
},
|
|
1756
1750
|
[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]: {
|
|
1757
|
-
backgroundColor: (i = (
|
|
1751
|
+
backgroundColor: (i = (a = e.layout) == null ? void 0 : a.header) == null ? void 0 : i.colorDarkBgMenu,
|
|
1758
1752
|
[`${e.proComponentsCls}-global-header-collapsed-button`]: {
|
|
1759
1753
|
color: "#fff"
|
|
1760
1754
|
}
|
|
@@ -1799,24 +1793,24 @@ const Ia = (e) => {
|
|
|
1799
1793
|
}
|
|
1800
1794
|
};
|
|
1801
1795
|
};
|
|
1802
|
-
function
|
|
1803
|
-
return
|
|
1796
|
+
function ue() {
|
|
1797
|
+
return ue = Object.assign ? Object.assign.bind() : function(e) {
|
|
1804
1798
|
for (var t = 1; t < arguments.length; t++) {
|
|
1805
1799
|
var n = arguments[t];
|
|
1806
|
-
for (var
|
|
1807
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
1800
|
+
for (var a in n)
|
|
1801
|
+
Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
1808
1802
|
}
|
|
1809
1803
|
return e;
|
|
1810
|
-
},
|
|
1804
|
+
}, ue.apply(this, arguments);
|
|
1811
1805
|
}
|
|
1812
|
-
var
|
|
1806
|
+
var Tt = function() {
|
|
1813
1807
|
if (typeof Map < "u")
|
|
1814
1808
|
return Map;
|
|
1815
1809
|
function e(t, n) {
|
|
1816
|
-
var
|
|
1817
|
-
return t.some(function(i,
|
|
1818
|
-
return i[0] === n ? (
|
|
1819
|
-
}),
|
|
1810
|
+
var a = -1;
|
|
1811
|
+
return t.some(function(i, r) {
|
|
1812
|
+
return i[0] === n ? (a = r, !0) : !1;
|
|
1813
|
+
}), a;
|
|
1820
1814
|
}
|
|
1821
1815
|
return (
|
|
1822
1816
|
/** @class */
|
|
@@ -1834,53 +1828,53 @@ var Ft = function() {
|
|
|
1834
1828
|
enumerable: !0,
|
|
1835
1829
|
configurable: !0
|
|
1836
1830
|
}), t.prototype.get = function(n) {
|
|
1837
|
-
var
|
|
1831
|
+
var a = e(this.__entries__, n), i = this.__entries__[a];
|
|
1838
1832
|
return i && i[1];
|
|
1839
|
-
}, t.prototype.set = function(n,
|
|
1833
|
+
}, t.prototype.set = function(n, a) {
|
|
1840
1834
|
var i = e(this.__entries__, n);
|
|
1841
|
-
~i ? this.__entries__[i][1] =
|
|
1835
|
+
~i ? this.__entries__[i][1] = a : this.__entries__.push([n, a]);
|
|
1842
1836
|
}, t.prototype.delete = function(n) {
|
|
1843
|
-
var
|
|
1844
|
-
~i &&
|
|
1837
|
+
var a = this.__entries__, i = e(a, n);
|
|
1838
|
+
~i && a.splice(i, 1);
|
|
1845
1839
|
}, t.prototype.has = function(n) {
|
|
1846
1840
|
return !!~e(this.__entries__, n);
|
|
1847
1841
|
}, t.prototype.clear = function() {
|
|
1848
1842
|
this.__entries__.splice(0);
|
|
1849
|
-
}, t.prototype.forEach = function(n,
|
|
1850
|
-
|
|
1851
|
-
for (var i = 0,
|
|
1852
|
-
var d =
|
|
1853
|
-
n.call(
|
|
1843
|
+
}, t.prototype.forEach = function(n, a) {
|
|
1844
|
+
a === void 0 && (a = null);
|
|
1845
|
+
for (var i = 0, r = this.__entries__; i < r.length; i++) {
|
|
1846
|
+
var d = r[i];
|
|
1847
|
+
n.call(a, d[1], d[0]);
|
|
1854
1848
|
}
|
|
1855
1849
|
}, t;
|
|
1856
1850
|
}()
|
|
1857
1851
|
);
|
|
1858
|
-
}(),
|
|
1852
|
+
}(), Fe = typeof window < "u" && typeof document < "u" && window.document === document, we = function() {
|
|
1859
1853
|
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
1860
1854
|
}(), Oa = function() {
|
|
1861
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
1855
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(we) : function(e) {
|
|
1862
1856
|
return setTimeout(function() {
|
|
1863
1857
|
return e(Date.now());
|
|
1864
1858
|
}, 1e3 / 60);
|
|
1865
1859
|
};
|
|
1866
1860
|
}(), Ma = 2;
|
|
1867
1861
|
function Ra(e, t) {
|
|
1868
|
-
var n = !1,
|
|
1869
|
-
function
|
|
1870
|
-
n && (n = !1, e()),
|
|
1862
|
+
var n = !1, a = !1, i = 0;
|
|
1863
|
+
function r() {
|
|
1864
|
+
n && (n = !1, e()), a && m();
|
|
1871
1865
|
}
|
|
1872
1866
|
function d() {
|
|
1873
|
-
Oa(
|
|
1867
|
+
Oa(r);
|
|
1874
1868
|
}
|
|
1875
1869
|
function m() {
|
|
1876
|
-
var
|
|
1870
|
+
var b = Date.now();
|
|
1877
1871
|
if (n) {
|
|
1878
|
-
if (
|
|
1872
|
+
if (b - i < Ma)
|
|
1879
1873
|
return;
|
|
1880
|
-
|
|
1874
|
+
a = !0;
|
|
1881
1875
|
} else
|
|
1882
|
-
n = !0,
|
|
1883
|
-
i =
|
|
1876
|
+
n = !0, a = !1, setTimeout(d, t);
|
|
1877
|
+
i = b;
|
|
1884
1878
|
}
|
|
1885
1879
|
return m;
|
|
1886
1880
|
}
|
|
@@ -1893,8 +1887,8 @@ var Ba = 20, ka = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1893
1887
|
return e.prototype.addObserver = function(t) {
|
|
1894
1888
|
~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
|
|
1895
1889
|
}, e.prototype.removeObserver = function(t) {
|
|
1896
|
-
var n = this.observers_,
|
|
1897
|
-
~
|
|
1890
|
+
var n = this.observers_, a = n.indexOf(t);
|
|
1891
|
+
~a && n.splice(a, 1), !n.length && this.connected_ && this.disconnect_();
|
|
1898
1892
|
}, e.prototype.refresh = function() {
|
|
1899
1893
|
var t = this.updateObservers_();
|
|
1900
1894
|
t && this.refresh();
|
|
@@ -1906,26 +1900,26 @@ var Ba = 20, ka = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1906
1900
|
return n.broadcastActive();
|
|
1907
1901
|
}), t.length > 0;
|
|
1908
1902
|
}, e.prototype.connect_ = function() {
|
|
1909
|
-
!
|
|
1903
|
+
!Fe || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), $a ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
1910
1904
|
attributes: !0,
|
|
1911
1905
|
childList: !0,
|
|
1912
1906
|
characterData: !0,
|
|
1913
1907
|
subtree: !0
|
|
1914
1908
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
1915
1909
|
}, e.prototype.disconnect_ = function() {
|
|
1916
|
-
!
|
|
1910
|
+
!Fe || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
1917
1911
|
}, e.prototype.onTransitionEnd_ = function(t) {
|
|
1918
|
-
var n = t.propertyName,
|
|
1919
|
-
return !!~
|
|
1912
|
+
var n = t.propertyName, a = n === void 0 ? "" : n, i = ka.some(function(r) {
|
|
1913
|
+
return !!~a.indexOf(r);
|
|
1920
1914
|
});
|
|
1921
1915
|
i && this.refresh();
|
|
1922
1916
|
}, e.getInstance = function() {
|
|
1923
1917
|
return this.instance_ || (this.instance_ = new e()), this.instance_;
|
|
1924
1918
|
}, e.instance_ = null, e;
|
|
1925
1919
|
}()
|
|
1926
|
-
),
|
|
1927
|
-
for (var n = 0,
|
|
1928
|
-
var i =
|
|
1920
|
+
), Ft = function(e, t) {
|
|
1921
|
+
for (var n = 0, a = Object.keys(t); n < a.length; n++) {
|
|
1922
|
+
var i = a[n];
|
|
1929
1923
|
Object.defineProperty(e, i, {
|
|
1930
1924
|
value: t[i],
|
|
1931
1925
|
enumerable: !1,
|
|
@@ -1934,77 +1928,77 @@ var Ba = 20, ka = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1934
1928
|
});
|
|
1935
1929
|
}
|
|
1936
1930
|
return e;
|
|
1937
|
-
},
|
|
1931
|
+
}, re = function(e) {
|
|
1938
1932
|
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
|
|
1939
|
-
return t ||
|
|
1940
|
-
},
|
|
1941
|
-
function
|
|
1933
|
+
return t || we;
|
|
1934
|
+
}, Pt = Re(0, 0, 0, 0);
|
|
1935
|
+
function Se(e) {
|
|
1942
1936
|
return parseFloat(e) || 0;
|
|
1943
1937
|
}
|
|
1944
|
-
function
|
|
1938
|
+
function ot(e) {
|
|
1945
1939
|
for (var t = [], n = 1; n < arguments.length; n++)
|
|
1946
1940
|
t[n - 1] = arguments[n];
|
|
1947
|
-
return t.reduce(function(
|
|
1948
|
-
var
|
|
1949
|
-
return
|
|
1941
|
+
return t.reduce(function(a, i) {
|
|
1942
|
+
var r = e["border-" + i + "-width"];
|
|
1943
|
+
return a + Se(r);
|
|
1950
1944
|
}, 0);
|
|
1951
1945
|
}
|
|
1952
1946
|
function Fa(e) {
|
|
1953
|
-
for (var t = ["top", "right", "bottom", "left"], n = {},
|
|
1954
|
-
var
|
|
1955
|
-
n[
|
|
1947
|
+
for (var t = ["top", "right", "bottom", "left"], n = {}, a = 0, i = t; a < i.length; a++) {
|
|
1948
|
+
var r = i[a], d = e["padding-" + r];
|
|
1949
|
+
n[r] = Se(d);
|
|
1956
1950
|
}
|
|
1957
1951
|
return n;
|
|
1958
1952
|
}
|
|
1959
1953
|
function Pa(e) {
|
|
1960
1954
|
var t = e.getBBox();
|
|
1961
|
-
return
|
|
1955
|
+
return Re(0, 0, t.width, t.height);
|
|
1962
1956
|
}
|
|
1963
1957
|
function La(e) {
|
|
1964
1958
|
var t = e.clientWidth, n = e.clientHeight;
|
|
1965
1959
|
if (!t && !n)
|
|
1966
|
-
return
|
|
1967
|
-
var
|
|
1968
|
-
if (
|
|
1969
|
-
var
|
|
1970
|
-
Math.abs(
|
|
1960
|
+
return Pt;
|
|
1961
|
+
var a = re(e).getComputedStyle(e), i = Fa(a), r = i.left + i.right, d = i.top + i.bottom, m = Se(a.width), b = Se(a.height);
|
|
1962
|
+
if (a.boxSizing === "border-box" && (Math.round(m + r) !== t && (m -= ot(a, "left", "right") + r), Math.round(b + d) !== n && (b -= ot(a, "top", "bottom") + d)), !za(e)) {
|
|
1963
|
+
var h = Math.round(m + r) - t, S = Math.round(b + d) - n;
|
|
1964
|
+
Math.abs(h) !== 1 && (m -= h), Math.abs(S) !== 1 && (b -= S);
|
|
1971
1965
|
}
|
|
1972
|
-
return
|
|
1966
|
+
return Re(i.left, i.top, m, b);
|
|
1973
1967
|
}
|
|
1974
1968
|
var Da = function() {
|
|
1975
1969
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
1976
|
-
return e instanceof
|
|
1970
|
+
return e instanceof re(e).SVGGraphicsElement;
|
|
1977
1971
|
} : function(e) {
|
|
1978
|
-
return e instanceof
|
|
1972
|
+
return e instanceof re(e).SVGElement && typeof e.getBBox == "function";
|
|
1979
1973
|
};
|
|
1980
1974
|
}();
|
|
1981
1975
|
function za(e) {
|
|
1982
|
-
return e ===
|
|
1976
|
+
return e === re(e).document.documentElement;
|
|
1983
1977
|
}
|
|
1984
1978
|
function Na(e) {
|
|
1985
|
-
return
|
|
1979
|
+
return Fe ? Da(e) ? Pa(e) : La(e) : Pt;
|
|
1986
1980
|
}
|
|
1987
1981
|
function Ha(e) {
|
|
1988
|
-
var t = e.x, n = e.y,
|
|
1989
|
-
return
|
|
1982
|
+
var t = e.x, n = e.y, a = e.width, i = e.height, r = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, d = Object.create(r.prototype);
|
|
1983
|
+
return Ft(d, {
|
|
1990
1984
|
x: t,
|
|
1991
1985
|
y: n,
|
|
1992
|
-
width:
|
|
1986
|
+
width: a,
|
|
1993
1987
|
height: i,
|
|
1994
1988
|
top: n,
|
|
1995
|
-
right: t +
|
|
1989
|
+
right: t + a,
|
|
1996
1990
|
bottom: i + n,
|
|
1997
1991
|
left: t
|
|
1998
1992
|
}), d;
|
|
1999
1993
|
}
|
|
2000
|
-
function
|
|
2001
|
-
return { x: e, y: t, width: n, height:
|
|
1994
|
+
function Re(e, t, n, a) {
|
|
1995
|
+
return { x: e, y: t, width: n, height: a };
|
|
2002
1996
|
}
|
|
2003
1997
|
var _a = (
|
|
2004
1998
|
/** @class */
|
|
2005
1999
|
function() {
|
|
2006
2000
|
function e(t) {
|
|
2007
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
2001
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Re(0, 0, 0, 0), this.target = t;
|
|
2008
2002
|
}
|
|
2009
2003
|
return e.prototype.isActive = function() {
|
|
2010
2004
|
var t = Na(this.target);
|
|
@@ -2014,28 +2008,28 @@ var _a = (
|
|
|
2014
2008
|
return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
|
|
2015
2009
|
}, e;
|
|
2016
2010
|
}()
|
|
2017
|
-
),
|
|
2011
|
+
), Va = (
|
|
2018
2012
|
/** @class */
|
|
2019
2013
|
function() {
|
|
2020
2014
|
function e(t, n) {
|
|
2021
|
-
var
|
|
2022
|
-
|
|
2015
|
+
var a = Ha(n);
|
|
2016
|
+
Ft(this, { target: t, contentRect: a });
|
|
2023
2017
|
}
|
|
2024
2018
|
return e;
|
|
2025
2019
|
}()
|
|
2026
|
-
),
|
|
2020
|
+
), Aa = (
|
|
2027
2021
|
/** @class */
|
|
2028
2022
|
function() {
|
|
2029
|
-
function e(t, n,
|
|
2030
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
2023
|
+
function e(t, n, a) {
|
|
2024
|
+
if (this.activeObservations_ = [], this.observations_ = new Tt(), typeof t != "function")
|
|
2031
2025
|
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
2032
|
-
this.callback_ = t, this.controller_ = n, this.callbackCtx_ =
|
|
2026
|
+
this.callback_ = t, this.controller_ = n, this.callbackCtx_ = a;
|
|
2033
2027
|
}
|
|
2034
2028
|
return e.prototype.observe = function(t) {
|
|
2035
2029
|
if (!arguments.length)
|
|
2036
2030
|
throw new TypeError("1 argument required, but only 0 present.");
|
|
2037
2031
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
2038
|
-
if (!(t instanceof
|
|
2032
|
+
if (!(t instanceof re(t).Element))
|
|
2039
2033
|
throw new TypeError('parameter 1 is not of type "Element".');
|
|
2040
2034
|
var n = this.observations_;
|
|
2041
2035
|
n.has(t) || (n.set(t, new _a(t)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
@@ -2044,7 +2038,7 @@ var _a = (
|
|
|
2044
2038
|
if (!arguments.length)
|
|
2045
2039
|
throw new TypeError("1 argument required, but only 0 present.");
|
|
2046
2040
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
2047
|
-
if (!(t instanceof
|
|
2041
|
+
if (!(t instanceof re(t).Element))
|
|
2048
2042
|
throw new TypeError('parameter 1 is not of type "Element".');
|
|
2049
2043
|
var n = this.observations_;
|
|
2050
2044
|
n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
|
|
@@ -2058,8 +2052,8 @@ var _a = (
|
|
|
2058
2052
|
});
|
|
2059
2053
|
}, e.prototype.broadcastActive = function() {
|
|
2060
2054
|
if (this.hasActive()) {
|
|
2061
|
-
var t = this.callbackCtx_, n = this.activeObservations_.map(function(
|
|
2062
|
-
return new
|
|
2055
|
+
var t = this.callbackCtx_, n = this.activeObservations_.map(function(a) {
|
|
2056
|
+
return new Va(a.target, a.broadcastRect());
|
|
2063
2057
|
});
|
|
2064
2058
|
this.callback_.call(t, n, t), this.clearActive();
|
|
2065
2059
|
}
|
|
@@ -2069,7 +2063,7 @@ var _a = (
|
|
|
2069
2063
|
return this.activeObservations_.length > 0;
|
|
2070
2064
|
}, e;
|
|
2071
2065
|
}()
|
|
2072
|
-
),
|
|
2066
|
+
), Lt = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Tt(), Dt = (
|
|
2073
2067
|
/** @class */
|
|
2074
2068
|
function() {
|
|
2075
2069
|
function e(t) {
|
|
@@ -2077,8 +2071,8 @@ var _a = (
|
|
|
2077
2071
|
throw new TypeError("Cannot call a class as a function.");
|
|
2078
2072
|
if (!arguments.length)
|
|
2079
2073
|
throw new TypeError("1 argument required, but only 0 present.");
|
|
2080
|
-
var n = Ta.getInstance(),
|
|
2081
|
-
|
|
2074
|
+
var n = Ta.getInstance(), a = new Aa(t, n, this);
|
|
2075
|
+
Lt.set(this, a);
|
|
2082
2076
|
}
|
|
2083
2077
|
return e;
|
|
2084
2078
|
}()
|
|
@@ -2088,13 +2082,13 @@ var _a = (
|
|
|
2088
2082
|
"unobserve",
|
|
2089
2083
|
"disconnect"
|
|
2090
2084
|
].forEach(function(e) {
|
|
2091
|
-
|
|
2085
|
+
Dt.prototype[e] = function() {
|
|
2092
2086
|
var t;
|
|
2093
|
-
return (t =
|
|
2087
|
+
return (t = Lt.get(this))[e].apply(t, arguments);
|
|
2094
2088
|
};
|
|
2095
2089
|
});
|
|
2096
|
-
var
|
|
2097
|
-
return typeof
|
|
2090
|
+
var Ea = function() {
|
|
2091
|
+
return typeof we.ResizeObserver < "u" ? we.ResizeObserver : Dt;
|
|
2098
2092
|
}();
|
|
2099
2093
|
const ja = (e) => {
|
|
2100
2094
|
var t;
|
|
@@ -2102,7 +2096,7 @@ const ja = (e) => {
|
|
|
2102
2096
|
for (; n && !n.tagName; )
|
|
2103
2097
|
n = n.nextSibling;
|
|
2104
2098
|
return n;
|
|
2105
|
-
}, Wa =
|
|
2099
|
+
}, Wa = H({
|
|
2106
2100
|
compatConfig: {
|
|
2107
2101
|
MODE: 3
|
|
2108
2102
|
},
|
|
@@ -2116,63 +2110,63 @@ const ja = (e) => {
|
|
|
2116
2110
|
let {
|
|
2117
2111
|
slots: n
|
|
2118
2112
|
} = t;
|
|
2119
|
-
const
|
|
2113
|
+
const a = ze({
|
|
2120
2114
|
width: 0,
|
|
2121
2115
|
height: 0,
|
|
2122
2116
|
offsetHeight: 0,
|
|
2123
2117
|
offsetWidth: 0
|
|
2124
2118
|
});
|
|
2125
|
-
let i = null,
|
|
2119
|
+
let i = null, r = null;
|
|
2126
2120
|
const d = () => {
|
|
2127
|
-
|
|
2128
|
-
}, m = (
|
|
2121
|
+
r && (r.disconnect(), r = null);
|
|
2122
|
+
}, m = (S) => {
|
|
2129
2123
|
const {
|
|
2130
|
-
onResize:
|
|
2131
|
-
} = e,
|
|
2132
|
-
width:
|
|
2133
|
-
height:
|
|
2134
|
-
} =
|
|
2135
|
-
offsetWidth:
|
|
2136
|
-
offsetHeight:
|
|
2137
|
-
} =
|
|
2138
|
-
if (
|
|
2139
|
-
const
|
|
2140
|
-
width:
|
|
2124
|
+
onResize: s
|
|
2125
|
+
} = e, k = S[0].target, {
|
|
2126
|
+
width: l,
|
|
2127
|
+
height: p
|
|
2128
|
+
} = k.getBoundingClientRect(), {
|
|
2129
|
+
offsetWidth: I,
|
|
2130
|
+
offsetHeight: M
|
|
2131
|
+
} = k, g = Math.floor(l), c = Math.floor(p);
|
|
2132
|
+
if (a.width !== g || a.height !== c || a.offsetWidth !== I || a.offsetHeight !== M) {
|
|
2133
|
+
const f = {
|
|
2134
|
+
width: g,
|
|
2141
2135
|
height: c,
|
|
2142
|
-
offsetWidth:
|
|
2143
|
-
offsetHeight:
|
|
2136
|
+
offsetWidth: I,
|
|
2137
|
+
offsetHeight: M
|
|
2144
2138
|
};
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
offsetWidth:
|
|
2148
|
-
offsetHeight:
|
|
2149
|
-
}),
|
|
2139
|
+
ue(a, f), s && Promise.resolve().then(() => {
|
|
2140
|
+
s(ue(ue({}, f), {
|
|
2141
|
+
offsetWidth: I,
|
|
2142
|
+
offsetHeight: M
|
|
2143
|
+
}), k);
|
|
2150
2144
|
});
|
|
2151
2145
|
}
|
|
2152
|
-
},
|
|
2146
|
+
}, b = jt(), h = () => {
|
|
2153
2147
|
const {
|
|
2154
|
-
disabled:
|
|
2148
|
+
disabled: S
|
|
2155
2149
|
} = e;
|
|
2156
|
-
if (
|
|
2150
|
+
if (S) {
|
|
2157
2151
|
d();
|
|
2158
2152
|
return;
|
|
2159
2153
|
}
|
|
2160
|
-
const
|
|
2161
|
-
|
|
2154
|
+
const s = ja(b);
|
|
2155
|
+
s !== i && (d(), i = s), !r && s && (r = new Ea(m), r.observe(s));
|
|
2162
2156
|
};
|
|
2163
|
-
return
|
|
2164
|
-
|
|
2157
|
+
return Wt(() => {
|
|
2158
|
+
h();
|
|
2165
2159
|
}), Kt(() => {
|
|
2166
|
-
|
|
2160
|
+
h();
|
|
2167
2161
|
}), Ut(() => {
|
|
2168
2162
|
d();
|
|
2169
|
-
}),
|
|
2170
|
-
|
|
2163
|
+
}), le(() => e.disabled, () => {
|
|
2164
|
+
h();
|
|
2171
2165
|
}, {
|
|
2172
2166
|
flush: "post"
|
|
2173
2167
|
}), () => {
|
|
2174
|
-
var
|
|
2175
|
-
return (
|
|
2168
|
+
var S;
|
|
2169
|
+
return (S = n.default) === null || S === void 0 ? void 0 : S.call(n)[0];
|
|
2176
2170
|
};
|
|
2177
2171
|
}
|
|
2178
2172
|
}), Ka = (e) => ({
|
|
@@ -2258,81 +2252,81 @@ const ja = (e) => {
|
|
|
2258
2252
|
marginInlineEnd: 0
|
|
2259
2253
|
}
|
|
2260
2254
|
}
|
|
2261
|
-
}),
|
|
2255
|
+
}), zt = {
|
|
2262
2256
|
...Y,
|
|
2263
|
-
...
|
|
2264
|
-
}, Ua = (e, t) => e === !1 ? null : e ? e(t, null) : t, Xa = /* @__PURE__ */
|
|
2265
|
-
props:
|
|
2257
|
+
...Xe
|
|
2258
|
+
}, Ua = (e, t) => e === !1 ? null : e ? e(t, null) : t, Xa = /* @__PURE__ */ H({
|
|
2259
|
+
props: zt,
|
|
2266
2260
|
setup(e) {
|
|
2267
|
-
const t =
|
|
2268
|
-
width:
|
|
2261
|
+
const t = ve("auto"), n = ({
|
|
2262
|
+
width: a
|
|
2269
2263
|
}) => {
|
|
2270
|
-
t.value =
|
|
2264
|
+
t.value = a;
|
|
2271
2265
|
};
|
|
2272
|
-
return () =>
|
|
2266
|
+
return () => o("div", {
|
|
2273
2267
|
style: {
|
|
2274
2268
|
minWidth: typeof t.value == "string" ? t.value : `${t.value}px`
|
|
2275
2269
|
}
|
|
2276
|
-
}, [
|
|
2270
|
+
}, [o("div", {
|
|
2277
2271
|
style: {
|
|
2278
2272
|
paddingRight: "8px"
|
|
2279
2273
|
}
|
|
2280
|
-
}, [
|
|
2274
|
+
}, [o(Wa, {
|
|
2281
2275
|
onResize: n
|
|
2282
2276
|
}, {
|
|
2283
|
-
default: () => [e.rightContentRender && typeof e.rightContentRender == "function" ?
|
|
2277
|
+
default: () => [e.rightContentRender && typeof e.rightContentRender == "function" ? o("div", null, [e.rightContentRender({
|
|
2284
2278
|
...e
|
|
2285
|
-
})]) :
|
|
2279
|
+
})]) : o("div", null, null)]
|
|
2286
2280
|
})])]);
|
|
2287
2281
|
}
|
|
2288
|
-
}), Ga = /* @__PURE__ */
|
|
2289
|
-
props:
|
|
2282
|
+
}), Ga = /* @__PURE__ */ H({
|
|
2283
|
+
props: zt,
|
|
2290
2284
|
inheritAttrs: !1,
|
|
2291
2285
|
setup(e, {
|
|
2292
2286
|
slots: t,
|
|
2293
2287
|
emit: n
|
|
2294
2288
|
}) {
|
|
2295
|
-
const
|
|
2289
|
+
const a = _e(), {
|
|
2296
2290
|
token: i
|
|
2297
|
-
} =
|
|
2298
|
-
getPrefixCls:
|
|
2291
|
+
} = Me(), {
|
|
2292
|
+
getPrefixCls: r,
|
|
2299
2293
|
openKeys: d,
|
|
2300
2294
|
selectedKeys: m
|
|
2301
2295
|
} = J(), {
|
|
2302
|
-
width:
|
|
2303
|
-
} = Sn(),
|
|
2296
|
+
width: b
|
|
2297
|
+
} = Sn(), h = r({
|
|
2304
2298
|
suffixCls: "global-header",
|
|
2305
2299
|
isPor: !0
|
|
2306
2300
|
}), {
|
|
2307
|
-
wrapSSR:
|
|
2308
|
-
hashId:
|
|
2309
|
-
} = Z("ProGlobalHeader", [Ka],
|
|
2310
|
-
[`${
|
|
2311
|
-
[`${
|
|
2312
|
-
[`${
|
|
2313
|
-
})),
|
|
2301
|
+
wrapSSR: S,
|
|
2302
|
+
hashId: s
|
|
2303
|
+
} = Z("ProGlobalHeader", [Ka], h), k = w(() => ({
|
|
2304
|
+
[`${s.value}`]: !0,
|
|
2305
|
+
[`${h}`]: !0,
|
|
2306
|
+
[`${h}-${e.layout}`]: !0
|
|
2307
|
+
})), l = (g) => {
|
|
2314
2308
|
var c;
|
|
2315
|
-
if (
|
|
2316
|
-
const
|
|
2317
|
-
e.onSelect &&
|
|
2309
|
+
if (a.currentRoute) {
|
|
2310
|
+
const f = a.currentRoute.value.matched.concat();
|
|
2311
|
+
e.onSelect && g === "select" && e.onSelect(f.filter((v) => v.name !== "index").map((v) => v.path)), e.onOpenKeys && g === "openKeys" && ((c = e.onOpenKeys) == null || c.call(e, f.filter((v) => v.path !== a.currentRoute.value.path).map((v) => v.path)));
|
|
2318
2312
|
}
|
|
2319
|
-
},
|
|
2313
|
+
}, p = () => {
|
|
2320
2314
|
n("collapse", !e.collapsed);
|
|
2321
|
-
},
|
|
2322
|
-
var
|
|
2323
|
-
return
|
|
2315
|
+
}, I = w(() => e.collapsedButtonRender || Ot), M = () => {
|
|
2316
|
+
var g;
|
|
2317
|
+
return o(q, null, [e.layout === "mix" && !e.isMobile && e.splitMenus ? o("div", {
|
|
2324
2318
|
style: {
|
|
2325
2319
|
flex: 1
|
|
2326
2320
|
},
|
|
2327
|
-
class: [`${
|
|
2328
|
-
}, [
|
|
2321
|
+
class: [`${h}-menu`, s.value]
|
|
2322
|
+
}, [o(Ne, {
|
|
2329
2323
|
theme: {
|
|
2330
2324
|
components: {
|
|
2331
2325
|
Layout: {
|
|
2332
2326
|
headerBg: "transparent",
|
|
2333
2327
|
bodyBg: "transparent"
|
|
2334
2328
|
},
|
|
2335
|
-
Menu:
|
|
2329
|
+
Menu: xt({
|
|
2336
2330
|
radiusItem: 4,
|
|
2337
2331
|
colorActiveBarWidth: 0,
|
|
2338
2332
|
colorActiveBarHeight: 2,
|
|
@@ -2342,7 +2336,7 @@ const ja = (e) => {
|
|
|
2342
2336
|
}
|
|
2343
2337
|
}
|
|
2344
2338
|
}, {
|
|
2345
|
-
default: () => [
|
|
2339
|
+
default: () => [o(wt, X({
|
|
2346
2340
|
theme: e.theme,
|
|
2347
2341
|
mode: e.mode,
|
|
2348
2342
|
collapsed: e.collapsed,
|
|
@@ -2354,46 +2348,46 @@ const ja = (e) => {
|
|
|
2354
2348
|
subMenuItemRender: e.subMenuItemRender,
|
|
2355
2349
|
class: {
|
|
2356
2350
|
"top-nav-menu": e.mode === "horizontal",
|
|
2357
|
-
[`${
|
|
2351
|
+
[`${s.value}`]: !0
|
|
2358
2352
|
}
|
|
2359
2353
|
}, {
|
|
2360
|
-
"onUpdate:openKeys": () =>
|
|
2361
|
-
"onUpdate:selectedKeys": () =>
|
|
2354
|
+
"onUpdate:openKeys": () => l("openKeys"),
|
|
2355
|
+
"onUpdate:selectedKeys": () => l("select")
|
|
2362
2356
|
}), null)]
|
|
2363
|
-
})]) :
|
|
2357
|
+
})]) : o("div", {
|
|
2364
2358
|
style: {
|
|
2365
2359
|
flex: 1
|
|
2366
2360
|
}
|
|
2367
|
-
}, [(
|
|
2361
|
+
}, [(g = t.default) == null ? void 0 : g.call(t)]), e.layout !== "simple" && o(Xa, X(e, {
|
|
2368
2362
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
2369
2363
|
rightContentRender: e.rightContentRender
|
|
2370
2364
|
}), null)]);
|
|
2371
2365
|
};
|
|
2372
2366
|
return () => {
|
|
2373
|
-
const
|
|
2367
|
+
const g = o("span", {
|
|
2374
2368
|
key: "logo",
|
|
2375
2369
|
onClick: () => {
|
|
2376
2370
|
var c;
|
|
2377
2371
|
return (c = e.onMenuHeaderClick) == null ? void 0 : c.call(e);
|
|
2378
2372
|
},
|
|
2379
|
-
class: [`${
|
|
2380
|
-
}, [
|
|
2381
|
-
return
|
|
2382
|
-
class:
|
|
2383
|
-
}, [e.isMobile ?
|
|
2384
|
-
class: `${
|
|
2385
|
-
onClick:
|
|
2386
|
-
}, [
|
|
2373
|
+
class: [`${h}-logo`, e.isMobile ? "mobile" : "", s.value]
|
|
2374
|
+
}, [o("a", null, [It(e.logo)])]);
|
|
2375
|
+
return S(o("div", {
|
|
2376
|
+
class: k.value
|
|
2377
|
+
}, [e.isMobile ? o(q, null, [Ua(e.menuHeaderRender, g), e.isMobile && U(I) && o("span", {
|
|
2378
|
+
class: `${h}-collapsed-button ${s.value}`,
|
|
2379
|
+
onClick: p
|
|
2380
|
+
}, [U(I)(e.collapsed)]), M()]) : e.layout === "mix" || e.layout === "wide" ? o(q, null, [o("div", {
|
|
2387
2381
|
style: {
|
|
2388
2382
|
width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
|
|
2389
|
-
padding: e.layout === "wide" &&
|
|
2383
|
+
padding: e.layout === "wide" && b.value < e.wideWidth ? "0 50px" : void 0
|
|
2390
2384
|
},
|
|
2391
|
-
class: `${
|
|
2392
|
-
}, [
|
|
2393
|
-
class: `${
|
|
2394
|
-
}, [
|
|
2385
|
+
class: `${h}-main ${s.value}`
|
|
2386
|
+
}, [o("div", {
|
|
2387
|
+
class: `${h}-main-left ${s.value}`
|
|
2388
|
+
}, [o(Ue, X(e, {
|
|
2395
2389
|
renderKey: "headerTitleRender"
|
|
2396
|
-
}), null)]),
|
|
2390
|
+
}), null)]), M()])]) : M()]));
|
|
2397
2391
|
};
|
|
2398
2392
|
}
|
|
2399
2393
|
});
|
|
@@ -2401,64 +2395,64 @@ function Ya(e) {
|
|
|
2401
2395
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
2402
2396
|
}
|
|
2403
2397
|
const {
|
|
2404
|
-
Header:
|
|
2405
|
-
} =
|
|
2398
|
+
Header: it
|
|
2399
|
+
} = de, Pe = /* @__PURE__ */ H({
|
|
2406
2400
|
inheritAttrs: !1,
|
|
2407
|
-
props:
|
|
2401
|
+
props: Rt,
|
|
2408
2402
|
setup(e) {
|
|
2409
2403
|
const {
|
|
2410
2404
|
theme: t,
|
|
2411
2405
|
isMobile: n,
|
|
2412
|
-
fixedHeader:
|
|
2406
|
+
fixedHeader: a,
|
|
2413
2407
|
headerHeight: i,
|
|
2414
|
-
layout:
|
|
2408
|
+
layout: r,
|
|
2415
2409
|
onCollapse: d,
|
|
2416
2410
|
splitMenus: m
|
|
2417
|
-
} =
|
|
2418
|
-
getPrefixCls:
|
|
2419
|
-
menuData:
|
|
2420
|
-
} = J(),
|
|
2411
|
+
} = Ie(e), {
|
|
2412
|
+
getPrefixCls: b,
|
|
2413
|
+
menuData: h
|
|
2414
|
+
} = J(), S = b({
|
|
2421
2415
|
suffixCls: "header",
|
|
2422
2416
|
isPor: !0
|
|
2423
|
-
}),
|
|
2417
|
+
}), s = b({
|
|
2424
2418
|
suffixCls: "fixed-header",
|
|
2425
2419
|
isPor: !0
|
|
2426
2420
|
}), {
|
|
2427
|
-
wrapSSR:
|
|
2428
|
-
hashId:
|
|
2429
|
-
} = Z("ProLayoutHeader", [Ia],
|
|
2430
|
-
[`${
|
|
2431
|
-
[`${
|
|
2432
|
-
[`${
|
|
2433
|
-
[`${
|
|
2434
|
-
})),
|
|
2435
|
-
const R =
|
|
2421
|
+
wrapSSR: k,
|
|
2422
|
+
hashId: l
|
|
2423
|
+
} = Z("ProLayoutHeader", [Ia], S), p = w(() => r.value === "wide"), I = w(() => a.value), M = w(() => r.value === "mix" || p.value), g = w(() => r.value === "side" || r.value === "simple"), c = w(() => g.value && "light" || t.value), f = w(() => ({
|
|
2424
|
+
[`${l.value}`]: !0,
|
|
2425
|
+
[`${S}-${c.value}`]: !0,
|
|
2426
|
+
[`${S}`]: !0,
|
|
2427
|
+
[`${s}`]: I.value
|
|
2428
|
+
})), v = w(() => I.value && !n.value), T = w(() => m.value ? h.value && Ln(h.value) || [] : []), x = w(() => g.value && v.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), O = w(() => I.value ? 0 : void 0), F = () => {
|
|
2429
|
+
const R = o(Ga, X(e, {
|
|
2436
2430
|
theme: c.value,
|
|
2437
2431
|
mode: "horizontal",
|
|
2438
2432
|
onCollapse: d.value,
|
|
2439
|
-
menuData:
|
|
2433
|
+
menuData: T.value
|
|
2440
2434
|
}), {
|
|
2441
|
-
default: () => [
|
|
2435
|
+
default: () => [M.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
|
|
2442
2436
|
});
|
|
2443
2437
|
return e.headerRender ? e.headerRender(e, R) : R;
|
|
2444
2438
|
};
|
|
2445
2439
|
return () => {
|
|
2446
2440
|
let R;
|
|
2447
|
-
return
|
|
2441
|
+
return k(o(q, null, [I.value && !p.value && o(it, {
|
|
2448
2442
|
theme: c.value,
|
|
2449
2443
|
style: {
|
|
2450
2444
|
height: `${i.value}px`,
|
|
2451
2445
|
lineHeight: `${i.value}px`,
|
|
2452
2446
|
background: "transparent"
|
|
2453
2447
|
}
|
|
2454
|
-
}, null),
|
|
2448
|
+
}, null), o(it, {
|
|
2455
2449
|
theme: c.value,
|
|
2456
|
-
class:
|
|
2450
|
+
class: f.value,
|
|
2457
2451
|
style: {
|
|
2458
2452
|
height: `${i.value}px`,
|
|
2459
2453
|
lineHeight: `${i.value}px`,
|
|
2460
|
-
width:
|
|
2461
|
-
zIndex:
|
|
2454
|
+
width: x.value,
|
|
2455
|
+
zIndex: g.value ? 100 : 101,
|
|
2462
2456
|
right: O.value
|
|
2463
2457
|
}
|
|
2464
2458
|
}, Ya(R = F()) ? R : {
|
|
@@ -2466,116 +2460,107 @@ const {
|
|
|
2466
2460
|
})]));
|
|
2467
2461
|
};
|
|
2468
2462
|
}
|
|
2469
|
-
}), qa = /* @__PURE__ */
|
|
2463
|
+
}), qa = /* @__PURE__ */ H({
|
|
2470
2464
|
name: "BaseProLayout",
|
|
2471
2465
|
inheritAttrs: !1,
|
|
2472
2466
|
components: {
|
|
2473
|
-
GlobalHeader:
|
|
2474
|
-
GlobalFooter:
|
|
2475
|
-
SiderMenuWrapper:
|
|
2467
|
+
GlobalHeader: Pe,
|
|
2468
|
+
GlobalFooter: Te,
|
|
2469
|
+
SiderMenuWrapper: $e
|
|
2476
2470
|
},
|
|
2477
|
-
props:
|
|
2471
|
+
props: $t,
|
|
2478
2472
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2479
2473
|
setup(e, {
|
|
2480
2474
|
slots: t
|
|
2481
2475
|
}) {
|
|
2482
|
-
const n =
|
|
2476
|
+
const n = ce({
|
|
2483
2477
|
suffixCls: "basic-layout",
|
|
2484
2478
|
isPor: !0
|
|
2485
2479
|
}), {
|
|
2486
|
-
wrapSSR:
|
|
2480
|
+
wrapSSR: a,
|
|
2487
2481
|
hashId: i
|
|
2488
|
-
} = Z("ProLayout", [ha, ga], n),
|
|
2482
|
+
} = Z("ProLayout", [ha, ga], n), r = Cn(), {
|
|
2489
2483
|
token: d
|
|
2490
|
-
} =
|
|
2491
|
-
var
|
|
2492
|
-
return (
|
|
2484
|
+
} = Me(), m = w(() => {
|
|
2485
|
+
var c;
|
|
2486
|
+
return (c = d == null ? void 0 : d.value) == null ? void 0 : c.colorPrimary;
|
|
2493
2487
|
});
|
|
2494
2488
|
Xt(() => {
|
|
2495
2489
|
m.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", m.value);
|
|
2496
2490
|
});
|
|
2497
|
-
const
|
|
2498
|
-
ht(() => {
|
|
2499
|
-
window.addEventListener("resize", I), I();
|
|
2500
|
-
}), Gt(() => {
|
|
2501
|
-
window.removeEventListener("resize", I);
|
|
2502
|
-
});
|
|
2503
|
-
const M = C(() => (l.value === "sm" || l.value === "xs") && !e.disableMobile && !p.value), s = Ne({
|
|
2491
|
+
const b = w(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), h = w(() => e.layout === "wide"), S = w(() => b.value), s = w(() => e.collapsed ? e.collapsedWidth : e.siderWidth), k = w(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = w(() => (r.value === "sm" || r.value === "xs") && !e.disableMobile && !h.value), p = ze({
|
|
2504
2492
|
position: "relative"
|
|
2505
2493
|
});
|
|
2506
|
-
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (
|
|
2507
|
-
const I = () => {
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
}, v = (f, k) => f.headerRender === !1 || f.pure ? null : a(Le, U(f, {
|
|
2511
|
-
matchMenuKeys: k || []
|
|
2512
|
-
}), null), c = C(() => ({
|
|
2494
|
+
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (p.minHeight = 0);
|
|
2495
|
+
const I = (c, f) => c.headerRender === !1 || c.pure ? null : o(Pe, X(c, {
|
|
2496
|
+
matchMenuKeys: f || []
|
|
2497
|
+
}), null), M = w(() => ({
|
|
2513
2498
|
...e.breadcrumb,
|
|
2514
2499
|
itemRender: K(t, e, "breadcrumbRender")
|
|
2515
|
-
})),
|
|
2500
|
+
})), g = w(() => S.value && e.selectedKeys ? Dn(e.menuData, e.selectedKeys[0]) : []);
|
|
2516
2501
|
return jn({
|
|
2517
|
-
getPrefixCls:
|
|
2518
|
-
...
|
|
2519
|
-
theme:
|
|
2520
|
-
hasContentWide:
|
|
2521
|
-
isMobile:
|
|
2522
|
-
siderWidth:
|
|
2523
|
-
breadcrumb:
|
|
2524
|
-
flatMenuData:
|
|
2502
|
+
getPrefixCls: ce,
|
|
2503
|
+
...ae(Ie(e), ["layout", "waterMark", "menuData", "openKeys", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader"].concat(Object.keys(me))),
|
|
2504
|
+
theme: k.value,
|
|
2505
|
+
hasContentWide: h,
|
|
2506
|
+
isMobile: l,
|
|
2507
|
+
siderWidth: s,
|
|
2508
|
+
breadcrumb: M,
|
|
2509
|
+
flatMenuData: g,
|
|
2525
2510
|
hasSide: b,
|
|
2526
|
-
flatMenu:
|
|
2527
|
-
pageHeaderRender:
|
|
2511
|
+
flatMenu: S,
|
|
2512
|
+
pageHeaderRender: w(() => K(t, e, "pageHeaderRender"))
|
|
2528
2513
|
}), () => {
|
|
2529
|
-
var
|
|
2530
|
-
const
|
|
2531
|
-
menuItemRender:
|
|
2532
|
-
subMenuItemRender:
|
|
2533
|
-
},
|
|
2514
|
+
var V;
|
|
2515
|
+
const c = K(t, e, "collapsedButtonRender"), f = K(t, e, "headerContentRender"), v = K(t, e, "rightContentRender"), T = K(t, e, "headerRender"), x = K(t, e, "footerRender"), O = K(t, e, "links"), F = K(t, e, "copyrightRender"), R = K(t, e, "extraRightDropdownRender"), D = K(t, e, "menuHeaderRender"), _ = K(t, e, "menuExtraRender"), N = K(t, e, "menuContentRender"), z = K(t, e, "menuFooterRender"), y = K(t, e, "menuItemRender"), C = K(t, e, "subMenuItemRender"), $ = {
|
|
2516
|
+
menuItemRender: y,
|
|
2517
|
+
subMenuItemRender: C
|
|
2518
|
+
}, B = w(() => I({
|
|
2534
2519
|
...e,
|
|
2535
|
-
|
|
2520
|
+
...$,
|
|
2536
2521
|
hasSiderMenu: b.value,
|
|
2537
2522
|
menuData: e.menuData,
|
|
2538
|
-
isMobile:
|
|
2539
|
-
rightContentRender:
|
|
2540
|
-
extraRightDropdownRender:
|
|
2541
|
-
headerTitleRender:
|
|
2542
|
-
headerContentRender:
|
|
2543
|
-
headerRender:
|
|
2544
|
-
theme:
|
|
2545
|
-
}, e.matchMenuKeys)),
|
|
2523
|
+
isMobile: U(l),
|
|
2524
|
+
rightContentRender: v,
|
|
2525
|
+
extraRightDropdownRender: R,
|
|
2526
|
+
headerTitleRender: D,
|
|
2527
|
+
headerContentRender: f,
|
|
2528
|
+
headerRender: T,
|
|
2529
|
+
theme: k.value
|
|
2530
|
+
}, e.matchMenuKeys)), P = w(() => ({
|
|
2546
2531
|
[`${i.value}`]: !0,
|
|
2547
2532
|
[`${n}`]: !0,
|
|
2548
2533
|
[`${n}-${e.layout}`]: !0
|
|
2549
|
-
})),
|
|
2534
|
+
})), j = w(() => h.value ? {
|
|
2550
2535
|
minWidth: `${e.wideWidth}px`
|
|
2551
|
-
} : void 0),
|
|
2536
|
+
} : void 0), W = w(() => h.value ? {
|
|
2552
2537
|
width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
|
|
2553
2538
|
paddingTop: `${e.headerHeight + 20}px`,
|
|
2554
|
-
margin:
|
|
2555
|
-
} : void 0),
|
|
2539
|
+
margin: h.value ? "0 auto" : void 0
|
|
2540
|
+
} : void 0), E = w(() => h.value ? {
|
|
2556
2541
|
minHeight: "835px"
|
|
2557
2542
|
} : {});
|
|
2558
|
-
return o(
|
|
2559
|
-
class:
|
|
2560
|
-
style:
|
|
2561
|
-
}, [
|
|
2562
|
-
style:
|
|
2543
|
+
return a(o(q, null, [e.pure ? (V = t.default) == null ? void 0 : V.call(t) : o("div", {
|
|
2544
|
+
class: P.value,
|
|
2545
|
+
style: j.value
|
|
2546
|
+
}, [o(de, {
|
|
2547
|
+
style: W.value
|
|
2563
2548
|
}, {
|
|
2564
|
-
default: () => [
|
|
2565
|
-
links:
|
|
2566
|
-
theme:
|
|
2567
|
-
isMobile:
|
|
2568
|
-
menuHeaderRender:
|
|
2569
|
-
menuContentRender:
|
|
2570
|
-
menuExtraRender:
|
|
2571
|
-
menuFooterRender:
|
|
2572
|
-
collapsedButtonRender:
|
|
2573
|
-
}), null),
|
|
2574
|
-
style:
|
|
2549
|
+
default: () => [o($e, X(Ee(e, ["pure", "theme"]), {
|
|
2550
|
+
links: O,
|
|
2551
|
+
theme: k.value,
|
|
2552
|
+
isMobile: l.value,
|
|
2553
|
+
menuHeaderRender: D,
|
|
2554
|
+
menuContentRender: N,
|
|
2555
|
+
menuExtraRender: _,
|
|
2556
|
+
menuFooterRender: z,
|
|
2557
|
+
collapsedButtonRender: c
|
|
2558
|
+
}), null), o(de, {
|
|
2559
|
+
style: p
|
|
2575
2560
|
}, {
|
|
2576
|
-
default: () => [
|
|
2561
|
+
default: () => [B.value, o(Ge, X({
|
|
2577
2562
|
hashId: i.value,
|
|
2578
|
-
isMobile:
|
|
2563
|
+
isMobile: l.value,
|
|
2579
2564
|
prefixCls: n,
|
|
2580
2565
|
collapsedWidth: e.collapsedWidth,
|
|
2581
2566
|
isChildrenLayout: e.isChildrenLayout,
|
|
@@ -2584,68 +2569,68 @@ const {
|
|
|
2584
2569
|
isFixedMultiTab: e.fixedMultiTab,
|
|
2585
2570
|
siderWidth: e.siderWidth,
|
|
2586
2571
|
collapsed: e.collapsed,
|
|
2587
|
-
style: e.disableContentMargin ?
|
|
2572
|
+
style: e.disableContentMargin ? E.value : {
|
|
2588
2573
|
...e.contentStyle,
|
|
2589
|
-
...
|
|
2574
|
+
...E.value
|
|
2590
2575
|
}
|
|
2591
|
-
},
|
|
2576
|
+
}, ae(e, ["onReloadPage", "onChangeTabs"])), {
|
|
2592
2577
|
default: () => {
|
|
2593
|
-
var
|
|
2594
|
-
return [(
|
|
2578
|
+
var G;
|
|
2579
|
+
return [(G = t.default) == null ? void 0 : G.call(t)];
|
|
2595
2580
|
}
|
|
2596
|
-
}),
|
|
2597
|
-
copyright:
|
|
2581
|
+
}), x === !1 ? null : x ? x(e) : o(Te, {
|
|
2582
|
+
copyright: F
|
|
2598
2583
|
}, null)]
|
|
2599
2584
|
})]
|
|
2600
2585
|
})])]));
|
|
2601
2586
|
};
|
|
2602
2587
|
}
|
|
2603
|
-
}), bl = /* @__PURE__ */
|
|
2588
|
+
}), bl = /* @__PURE__ */ H({
|
|
2604
2589
|
components: {
|
|
2605
|
-
GlobalHeader:
|
|
2606
|
-
GlobalFooter:
|
|
2607
|
-
SiderMenuWrapper:
|
|
2590
|
+
GlobalHeader: Pe,
|
|
2591
|
+
GlobalFooter: Te,
|
|
2592
|
+
SiderMenuWrapper: $e
|
|
2608
2593
|
},
|
|
2609
|
-
props:
|
|
2594
|
+
props: $t,
|
|
2610
2595
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2611
2596
|
setup(e, {
|
|
2612
2597
|
slots: t,
|
|
2613
2598
|
emit: n
|
|
2614
2599
|
}) {
|
|
2615
|
-
const
|
|
2600
|
+
const a = w(() => e.theme !== void 0 ? {
|
|
2616
2601
|
dark: e.theme === "realDark"
|
|
2617
2602
|
} : {}), i = (m) => {
|
|
2618
2603
|
n("update:collapsed", m), n("collapse", m);
|
|
2619
|
-
},
|
|
2604
|
+
}, r = (m) => {
|
|
2620
2605
|
n("update:open-keys", m), n("openKeys", m);
|
|
2621
2606
|
}, d = (m) => {
|
|
2622
2607
|
n("update:selected-keys", m), n("select", m);
|
|
2623
2608
|
};
|
|
2624
|
-
return () =>
|
|
2609
|
+
return () => o(Ne, {
|
|
2625
2610
|
theme: e.primaryColor ? {
|
|
2626
2611
|
token: {
|
|
2627
2612
|
colorPrimary: e.primaryColor
|
|
2628
2613
|
}
|
|
2629
2614
|
} : void 0
|
|
2630
2615
|
}, {
|
|
2631
|
-
default: () => [
|
|
2616
|
+
default: () => [o(fn, X({
|
|
2632
2617
|
token: e.token
|
|
2633
|
-
},
|
|
2634
|
-
default: () => [
|
|
2618
|
+
}, a.value), {
|
|
2619
|
+
default: () => [o(qa, X(Ee(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
|
|
2635
2620
|
onSelect: d,
|
|
2636
|
-
onOpenKeys:
|
|
2621
|
+
onOpenKeys: r,
|
|
2637
2622
|
onCollapse: i
|
|
2638
2623
|
}), t)]
|
|
2639
2624
|
})]
|
|
2640
2625
|
});
|
|
2641
2626
|
}
|
|
2642
|
-
}),
|
|
2643
|
-
const t = e.find((
|
|
2627
|
+
}), Nt = (e, t) => e.map((n) => (n.path = n.path.replace("//", "/"), n.path = Ct(n.path, n.meta), n.children && n.children.length > 0 && (n.children = Nt(n.children, t)), t[`${n.path}`] = n, n)), pl = (e) => {
|
|
2628
|
+
const t = e.find((a) => a.path === "/"), n = {};
|
|
2644
2629
|
return {
|
|
2645
|
-
menuData:
|
|
2630
|
+
menuData: Nt((t == null ? void 0 : t.children) || [], n),
|
|
2646
2631
|
breadcrumb: n
|
|
2647
2632
|
};
|
|
2648
|
-
},
|
|
2633
|
+
}, Ht = [
|
|
2649
2634
|
{
|
|
2650
2635
|
key: "light",
|
|
2651
2636
|
title: "亮色菜单风格"
|
|
@@ -2658,7 +2643,7 @@ const {
|
|
|
2658
2643
|
key: "realDark",
|
|
2659
2644
|
title: "暗黑模式"
|
|
2660
2645
|
}
|
|
2661
|
-
],
|
|
2646
|
+
], _t = [
|
|
2662
2647
|
{
|
|
2663
2648
|
key: "side",
|
|
2664
2649
|
title: "侧边菜单布局"
|
|
@@ -2849,7 +2834,7 @@ const {
|
|
|
2849
2834
|
}
|
|
2850
2835
|
}
|
|
2851
2836
|
}
|
|
2852
|
-
}),
|
|
2837
|
+
}), lt = /* @__PURE__ */ H({
|
|
2853
2838
|
name: "BlockCheckbox",
|
|
2854
2839
|
props: {
|
|
2855
2840
|
value: L.string,
|
|
@@ -2865,32 +2850,32 @@ const {
|
|
|
2865
2850
|
setup(e) {
|
|
2866
2851
|
return () => {
|
|
2867
2852
|
const t = `${e.prefixCls}-block-checkbox`;
|
|
2868
|
-
return
|
|
2853
|
+
return o("div", {
|
|
2869
2854
|
class: [t, e.hashId]
|
|
2870
|
-
}, [e.list.map((n) =>
|
|
2855
|
+
}, [e.list.map((n) => o(Oe, {
|
|
2871
2856
|
title: n.title,
|
|
2872
2857
|
key: n.key
|
|
2873
2858
|
}, {
|
|
2874
|
-
default: () => [
|
|
2875
|
-
class:
|
|
2859
|
+
default: () => [o("div", {
|
|
2860
|
+
class: bt(e.hashId, `${t}-item`, `${t}-item-${n.key}`, `${t}-${e.configType}-item`),
|
|
2876
2861
|
onClick: () => {
|
|
2877
|
-
var
|
|
2878
|
-
return (
|
|
2862
|
+
var a;
|
|
2863
|
+
return (a = e.onChange) == null ? void 0 : a.call(e, n.key);
|
|
2879
2864
|
}
|
|
2880
|
-
}, [n.key === "wide" &&
|
|
2865
|
+
}, [n.key === "wide" && o("div", {
|
|
2881
2866
|
class: [`${t}-item-${n.key}-content`, e.hashId]
|
|
2882
|
-
}, null),
|
|
2867
|
+
}, null), o(gt, {
|
|
2883
2868
|
class: `${t}-selectIcon ${e.hashId}`.trim(),
|
|
2884
2869
|
style: {
|
|
2885
2870
|
display: e.value === n.key ? "block" : "none"
|
|
2886
2871
|
}
|
|
2887
|
-
}, null), n != null && n.icon ?
|
|
2872
|
+
}, null), n != null && n.icon ? o("div", {
|
|
2888
2873
|
class: `${t}-icon ${e.hashId}`.trim()
|
|
2889
2874
|
}, [n.icon]) : null])]
|
|
2890
2875
|
}))]);
|
|
2891
2876
|
};
|
|
2892
2877
|
}
|
|
2893
|
-
}), Qa = /* @__PURE__ */
|
|
2878
|
+
}), Qa = /* @__PURE__ */ H({
|
|
2894
2879
|
name: "ThemeColor",
|
|
2895
2880
|
inheritAttrs: !1,
|
|
2896
2881
|
props: {
|
|
@@ -2907,30 +2892,30 @@ const {
|
|
|
2907
2892
|
return () => {
|
|
2908
2893
|
var n;
|
|
2909
2894
|
const t = `${e.prefixCls}-theme-color`;
|
|
2910
|
-
return
|
|
2895
|
+
return o(q, null, [o("div", {
|
|
2911
2896
|
class: `${t} ${e.hashId}`.trim()
|
|
2912
2897
|
}, [(n = e.colorList) == null ? void 0 : n.map(({
|
|
2913
|
-
key:
|
|
2898
|
+
key: a,
|
|
2914
2899
|
color: i,
|
|
2915
|
-
title:
|
|
2916
|
-
}) =>
|
|
2900
|
+
title: r
|
|
2901
|
+
}) => a ? o(Oe, {
|
|
2917
2902
|
key: i,
|
|
2918
|
-
title:
|
|
2903
|
+
title: r
|
|
2919
2904
|
}, {
|
|
2920
2905
|
default: () => {
|
|
2921
2906
|
var d, m;
|
|
2922
|
-
return [
|
|
2907
|
+
return [o("div", {
|
|
2923
2908
|
class: [`${t}-block ${e.hashId}`.trim(), ((d = e.settingValue) == null ? void 0 : d.primaryColor) === i ? `${t}-block-checked` : ""],
|
|
2924
2909
|
style: {
|
|
2925
2910
|
backgroundColor: i
|
|
2926
2911
|
},
|
|
2927
2912
|
onClick: () => e.onChange && e.onChange(i)
|
|
2928
|
-
}, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === i &&
|
|
2913
|
+
}, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === i && o(gt, null, null)])];
|
|
2929
2914
|
}
|
|
2930
2915
|
}) : null)])]);
|
|
2931
2916
|
};
|
|
2932
2917
|
}
|
|
2933
|
-
}),
|
|
2918
|
+
}), ge = /* @__PURE__ */ H({
|
|
2934
2919
|
name: "RegionalChange",
|
|
2935
2920
|
props: {
|
|
2936
2921
|
label: L.string,
|
|
@@ -2942,20 +2927,20 @@ const {
|
|
|
2942
2927
|
onChange: Function
|
|
2943
2928
|
},
|
|
2944
2929
|
setup(e) {
|
|
2945
|
-
return () =>
|
|
2930
|
+
return () => o(te, {
|
|
2946
2931
|
class: `${e.prefixCls}-list ${e.hashId}`.trim(),
|
|
2947
2932
|
split: !1,
|
|
2948
2933
|
size: "small",
|
|
2949
2934
|
renderItem: ({
|
|
2950
2935
|
item: t
|
|
2951
|
-
}) =>
|
|
2936
|
+
}) => o(Oe, {
|
|
2952
2937
|
title: t.disabled ? t.disabledReason : "",
|
|
2953
2938
|
placement: "left"
|
|
2954
2939
|
}, {
|
|
2955
|
-
default: () => [
|
|
2940
|
+
default: () => [o(te.Item, {
|
|
2956
2941
|
actions: [t.action]
|
|
2957
2942
|
}, {
|
|
2958
|
-
default: () => [
|
|
2943
|
+
default: () => [o("span", {
|
|
2959
2944
|
style: {
|
|
2960
2945
|
opacity: t.disabled ? 0.5 : 1
|
|
2961
2946
|
}
|
|
@@ -2964,7 +2949,7 @@ const {
|
|
|
2964
2949
|
}),
|
|
2965
2950
|
dataSource: [{
|
|
2966
2951
|
title: e.label,
|
|
2967
|
-
action:
|
|
2952
|
+
action: o(ft, {
|
|
2968
2953
|
size: "small",
|
|
2969
2954
|
disabled: e.disabled,
|
|
2970
2955
|
checked: !!e.value,
|
|
@@ -3009,7 +2994,7 @@ const {
|
|
|
3009
2994
|
function to(e) {
|
|
3010
2995
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
3011
2996
|
}
|
|
3012
|
-
const no = /* @__PURE__ */
|
|
2997
|
+
const no = /* @__PURE__ */ H({
|
|
3013
2998
|
name: "ThemeEditor",
|
|
3014
2999
|
props: {
|
|
3015
3000
|
settingValue: Object,
|
|
@@ -3018,27 +3003,27 @@ const no = /* @__PURE__ */ E({
|
|
|
3018
3003
|
setup(e) {
|
|
3019
3004
|
const {
|
|
3020
3005
|
getPrefixCls: t
|
|
3021
|
-
} = J(), [n,
|
|
3006
|
+
} = J(), [n, a] = pe("header"), i = t({
|
|
3022
3007
|
suffixCls: "theme-editor",
|
|
3023
3008
|
isPor: !0
|
|
3024
3009
|
}), {
|
|
3025
|
-
wrapSSR:
|
|
3010
|
+
wrapSSR: r,
|
|
3026
3011
|
hashId: d
|
|
3027
3012
|
} = Z("ProThemeEditor", [eo], i), {
|
|
3028
3013
|
token: m
|
|
3029
|
-
} =
|
|
3030
|
-
var
|
|
3031
|
-
return (
|
|
3032
|
-
}),
|
|
3033
|
-
var
|
|
3014
|
+
} = Me(), b = w(() => {
|
|
3015
|
+
var l;
|
|
3016
|
+
return (l = m.value) == null ? void 0 : l.layout;
|
|
3017
|
+
}), h = w(() => {
|
|
3018
|
+
var l, p, I, M, g, c, f, v, T, x, O, F, R, D, _, N, z, y, C, $, B, P, j, W, E;
|
|
3034
3019
|
return [{
|
|
3035
3020
|
key: "colorBgMenu",
|
|
3036
3021
|
title: "全部背景",
|
|
3037
|
-
disabled: ((
|
|
3022
|
+
disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["mix", "wide"].includes((p = e.settingValue) == null ? void 0 : p.layout)
|
|
3038
3023
|
}, {
|
|
3039
3024
|
key: "colorDarkBgMenu",
|
|
3040
3025
|
title: "全部背景",
|
|
3041
|
-
disabled: ((
|
|
3026
|
+
disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((M = e.settingValue) == null ? void 0 : M.theme) === "dark" && ["side", "simple"].includes((g = e.settingValue) == null ? void 0 : g.layout)
|
|
3042
3027
|
}, {
|
|
3043
3028
|
key: "colorSubItemBg",
|
|
3044
3029
|
title: "子菜单背景",
|
|
@@ -3050,11 +3035,11 @@ const no = /* @__PURE__ */ E({
|
|
|
3050
3035
|
}, {
|
|
3051
3036
|
key: "colorBgMenuItemSelected",
|
|
3052
3037
|
title: "菜单选中背景",
|
|
3053
|
-
disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ["mix", "wide"].includes((
|
|
3038
|
+
disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ["mix", "wide"].includes((f = e.settingValue) == null ? void 0 : f.layout)
|
|
3054
3039
|
}, {
|
|
3055
3040
|
key: "colorDarkBgMenuItemSelected",
|
|
3056
3041
|
title: "菜单选中背景",
|
|
3057
|
-
disabled: ((
|
|
3042
|
+
disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "light" || ((T = e.settingValue) == null ? void 0 : T.theme) === "dark" && ["side", "simple"].includes((x = e.settingValue) == null ? void 0 : x.layout)
|
|
3058
3043
|
}, {
|
|
3059
3044
|
key: "colorTextMenu",
|
|
3060
3045
|
title: "菜单文字颜色",
|
|
@@ -3062,15 +3047,15 @@ const no = /* @__PURE__ */ E({
|
|
|
3062
3047
|
}, {
|
|
3063
3048
|
key: "colorDarkTextMenu",
|
|
3064
3049
|
title: "菜单文字颜色",
|
|
3065
|
-
disabled: ((R = e.settingValue) == null ? void 0 : R.theme) === "light" || ((D = e.settingValue) == null ? void 0 : D.theme) === "dark" && ["side", "simple"].includes((
|
|
3050
|
+
disabled: ((R = e.settingValue) == null ? void 0 : R.theme) === "light" || ((D = e.settingValue) == null ? void 0 : D.theme) === "dark" && ["side", "simple"].includes((_ = e.settingValue) == null ? void 0 : _.layout)
|
|
3066
3051
|
}, {
|
|
3067
3052
|
key: "colorTextMenuHover",
|
|
3068
3053
|
title: "菜单文字移入颜色",
|
|
3069
|
-
disabled: ((
|
|
3054
|
+
disabled: ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((z = e.settingValue) == null ? void 0 : z.layout)
|
|
3070
3055
|
}, {
|
|
3071
3056
|
key: "colorDarkTextMenuHover",
|
|
3072
3057
|
title: "菜单文字移入颜色",
|
|
3073
|
-
disabled: ((
|
|
3058
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "light" || ((C = e.settingValue) == null ? void 0 : C.theme) === "dark" && ["side", "simple"].includes(($ = e.settingValue) == null ? void 0 : $.layout)
|
|
3074
3059
|
}, {
|
|
3075
3060
|
key: "colorTextMenuSelected",
|
|
3076
3061
|
title: "菜单文字选中颜色",
|
|
@@ -3078,26 +3063,26 @@ const no = /* @__PURE__ */ E({
|
|
|
3078
3063
|
}, {
|
|
3079
3064
|
key: "colorDarkTextMenuSelected",
|
|
3080
3065
|
title: "菜单文字选中颜色",
|
|
3081
|
-
disabled: ((j = e.settingValue) == null ? void 0 : j.theme) === "light" || ((W = e.settingValue) == null ? void 0 : W.theme) === "dark" && ["side", "simple"].includes((
|
|
3066
|
+
disabled: ((j = e.settingValue) == null ? void 0 : j.theme) === "light" || ((W = e.settingValue) == null ? void 0 : W.theme) === "dark" && ["side", "simple"].includes((E = e.settingValue) == null ? void 0 : E.layout)
|
|
3082
3067
|
}];
|
|
3083
|
-
}),
|
|
3084
|
-
var
|
|
3068
|
+
}), S = w(() => {
|
|
3069
|
+
var l, p, I, M, g, c, f, v, T, x, O, F, R, D, _, N, z, y, C, $, B, P, j, W, E, V, G, fe, Ye, qe, Ze, Je;
|
|
3085
3070
|
return [{
|
|
3086
3071
|
key: "colorBgMenu",
|
|
3087
3072
|
title: "全部背景",
|
|
3088
|
-
disabled: ((
|
|
3073
|
+
disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["side", "simple"].includes((p = e.settingValue) == null ? void 0 : p.layout)
|
|
3089
3074
|
}, {
|
|
3090
3075
|
key: "colorDarkBgMenu",
|
|
3091
3076
|
title: "全部背景",
|
|
3092
|
-
disabled: ((
|
|
3077
|
+
disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((M = e.settingValue) == null ? void 0 : M.theme) === "dark" && ["mix", "wide"].includes((g = e.settingValue) == null ? void 0 : g.layout)
|
|
3093
3078
|
}, {
|
|
3094
3079
|
key: "colorSubItemBg",
|
|
3095
3080
|
title: "子菜单背景",
|
|
3096
|
-
disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ["side", "simple"].includes((
|
|
3081
|
+
disabled: ((c = e.settingValue) == null ? void 0 : c.theme) === "dark" && ["side", "simple"].includes((f = e.settingValue) == null ? void 0 : f.layout)
|
|
3097
3082
|
}, {
|
|
3098
3083
|
key: "colorDarkSubItemBg",
|
|
3099
3084
|
title: "子菜单背景",
|
|
3100
|
-
disabled: ((
|
|
3085
|
+
disabled: ((v = e.settingValue) == null ? void 0 : v.theme) === "light" || ((T = e.settingValue) == null ? void 0 : T.theme) === "dark" && ["mix", "wide"].includes((x = e.settingValue) == null ? void 0 : x.layout)
|
|
3101
3086
|
}, {
|
|
3102
3087
|
key: "colorBgMenuItemHover",
|
|
3103
3088
|
title: "菜单移入背景",
|
|
@@ -3109,11 +3094,11 @@ const no = /* @__PURE__ */ E({
|
|
|
3109
3094
|
}, {
|
|
3110
3095
|
key: "colorDarkBgMenuItemSelected",
|
|
3111
3096
|
title: "菜单选中背景",
|
|
3112
|
-
disabled: ((
|
|
3097
|
+
disabled: ((_ = e.settingValue) == null ? void 0 : _.theme) === "light" || ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((z = e.settingValue) == null ? void 0 : z.layout)
|
|
3113
3098
|
}, {
|
|
3114
3099
|
key: "colorTextMenu",
|
|
3115
3100
|
title: "菜单文字颜色",
|
|
3116
|
-
disabled: ((
|
|
3101
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ((C = e.settingValue) == null ? void 0 : C.layout) !== "mix"
|
|
3117
3102
|
}, {
|
|
3118
3103
|
key: "colorDarkTextMenu",
|
|
3119
3104
|
title: "菜单文字颜色",
|
|
@@ -3125,101 +3110,101 @@ const no = /* @__PURE__ */ E({
|
|
|
3125
3110
|
}, {
|
|
3126
3111
|
key: "colorDarkTextMenuHover",
|
|
3127
3112
|
title: "菜单文字移入颜色",
|
|
3128
|
-
disabled: ((
|
|
3113
|
+
disabled: ((E = e.settingValue) == null ? void 0 : E.theme) === "light" || ((V = e.settingValue) == null ? void 0 : V.theme) === "dark" && ["mix", "wide"].includes((G = e.settingValue) == null ? void 0 : G.layout)
|
|
3129
3114
|
}, {
|
|
3130
3115
|
key: "colorTextMenuSelected",
|
|
3131
3116
|
title: "菜单文字选中颜色",
|
|
3132
|
-
disabled: ((
|
|
3117
|
+
disabled: ((fe = e.settingValue) == null ? void 0 : fe.theme) === "dark" && ((Ye = e.settingValue) == null ? void 0 : Ye.layout) !== "mix"
|
|
3133
3118
|
}, {
|
|
3134
3119
|
key: "colorDarkTextMenuSelected",
|
|
3135
3120
|
title: "菜单文字选中颜色",
|
|
3136
3121
|
disabled: ((qe = e.settingValue) == null ? void 0 : qe.theme) === "light" || ((Ze = e.settingValue) == null ? void 0 : Ze.theme) === "dark" && ["mix", "wide"].includes((Je = e.settingValue) == null ? void 0 : Je.layout)
|
|
3137
3122
|
}];
|
|
3138
|
-
}),
|
|
3139
|
-
var
|
|
3140
|
-
return (
|
|
3123
|
+
}), s = w(() => n.value === "header" ? h.value : n.value === "sider" ? S.value : []), k = (l) => {
|
|
3124
|
+
var p, I;
|
|
3125
|
+
return (I = (p = b.value) == null ? void 0 : p[n.value]) == null ? void 0 : I[l];
|
|
3141
3126
|
};
|
|
3142
3127
|
return () => {
|
|
3143
|
-
var
|
|
3144
|
-
let
|
|
3145
|
-
return
|
|
3128
|
+
var p, I, M;
|
|
3129
|
+
let l;
|
|
3130
|
+
return r(o("div", {
|
|
3146
3131
|
class: [i, d.value]
|
|
3147
|
-
}, [
|
|
3132
|
+
}, [o("h3", {
|
|
3148
3133
|
class: [`${i}-title`, d.value]
|
|
3149
|
-
}, [Q("主题编辑器"),
|
|
3134
|
+
}, [Q("主题编辑器"), o("div", {
|
|
3150
3135
|
class: [`${i}-sub-title`, d.value]
|
|
3151
|
-
}, [
|
|
3136
|
+
}, [o("span", null, [(p = Ht.find((g) => {
|
|
3152
3137
|
var c;
|
|
3153
|
-
return
|
|
3154
|
-
})) == null ? void 0 :
|
|
3138
|
+
return g.key === ((c = e.settingValue) == null ? void 0 : c.theme);
|
|
3139
|
+
})) == null ? void 0 : p.title]), o("span", {
|
|
3155
3140
|
style: {
|
|
3156
3141
|
marginInline: "8px"
|
|
3157
3142
|
}
|
|
3158
|
-
}, [Q("/")]),
|
|
3143
|
+
}, [Q("/")]), o("span", null, [(I = _t.find((g) => {
|
|
3159
3144
|
var c;
|
|
3160
|
-
return
|
|
3161
|
-
})) == null ? void 0 :
|
|
3145
|
+
return g.key === ((c = e.settingValue) == null ? void 0 : c.layout);
|
|
3146
|
+
})) == null ? void 0 : I.title])])]), o("div", {
|
|
3162
3147
|
class: [`${i}-content`, d.value]
|
|
3163
|
-
}, [
|
|
3148
|
+
}, [o(te, {
|
|
3164
3149
|
class: `${i}-list ${d.value}`.trim(),
|
|
3165
3150
|
split: !1,
|
|
3166
3151
|
size: "small",
|
|
3167
3152
|
renderItem: ({
|
|
3168
|
-
item:
|
|
3169
|
-
}) =>
|
|
3170
|
-
actions: [
|
|
3153
|
+
item: g
|
|
3154
|
+
}) => o(te.Item, {
|
|
3155
|
+
actions: [g.action]
|
|
3171
3156
|
}, {
|
|
3172
|
-
default: () => [
|
|
3157
|
+
default: () => [o("span", {
|
|
3173
3158
|
style: {
|
|
3174
|
-
opacity:
|
|
3159
|
+
opacity: g.disabled ? 0.5 : 1
|
|
3175
3160
|
}
|
|
3176
|
-
}, [
|
|
3161
|
+
}, [g.title])]
|
|
3177
3162
|
}),
|
|
3178
3163
|
dataSource: [{
|
|
3179
3164
|
title: "自定义主题色",
|
|
3180
|
-
action:
|
|
3181
|
-
value: (
|
|
3165
|
+
action: o(et, {
|
|
3166
|
+
value: (M = e.settingValue) == null ? void 0 : M.primaryColor,
|
|
3182
3167
|
actions: ["confirm"],
|
|
3183
3168
|
modes: ["rgb"],
|
|
3184
3169
|
size: "small",
|
|
3185
|
-
onConfirm: (
|
|
3170
|
+
onConfirm: (g) => e.onChange && e.onChange(g, "primaryColor")
|
|
3186
3171
|
}, null)
|
|
3187
3172
|
}]
|
|
3188
|
-
}, null),
|
|
3173
|
+
}, null), o(He, {
|
|
3189
3174
|
activeKey: n.value,
|
|
3190
|
-
onChange:
|
|
3191
|
-
}, to(
|
|
3192
|
-
key:
|
|
3193
|
-
tab:
|
|
3175
|
+
onChange: a
|
|
3176
|
+
}, to(l = Za.map((g) => o(Jt, {
|
|
3177
|
+
key: g.key,
|
|
3178
|
+
tab: g.title
|
|
3194
3179
|
}, {
|
|
3195
|
-
default: () => [
|
|
3180
|
+
default: () => [o(te, {
|
|
3196
3181
|
class: `${i}-list ${d.value}`.trim(),
|
|
3197
3182
|
split: !1,
|
|
3198
3183
|
size: "small",
|
|
3199
3184
|
renderItem: ({
|
|
3200
3185
|
item: c
|
|
3201
|
-
}) =>
|
|
3186
|
+
}) => o(te.Item, {
|
|
3202
3187
|
actions: [c.action]
|
|
3203
3188
|
}, {
|
|
3204
|
-
default: () => [
|
|
3189
|
+
default: () => [o("span", {
|
|
3205
3190
|
style: {
|
|
3206
3191
|
opacity: c.disabled ? 0.5 : 1
|
|
3207
3192
|
}
|
|
3208
3193
|
}, [c.title])]
|
|
3209
3194
|
}),
|
|
3210
|
-
dataSource:
|
|
3195
|
+
dataSource: s.value.filter((c) => !c.disabled).map((c) => ({
|
|
3211
3196
|
...c,
|
|
3212
|
-
action:
|
|
3213
|
-
value:
|
|
3197
|
+
action: o(et, {
|
|
3198
|
+
value: k(c.key),
|
|
3214
3199
|
actions: ["confirm"],
|
|
3215
3200
|
modes: ["rgb"],
|
|
3216
3201
|
size: "small",
|
|
3217
|
-
onConfirm: (
|
|
3202
|
+
onConfirm: (f) => e.onChange && e.onChange(f, n.value, c.key)
|
|
3218
3203
|
}, null)
|
|
3219
3204
|
}))
|
|
3220
3205
|
}, null)]
|
|
3221
|
-
}))) ?
|
|
3222
|
-
default: () => [
|
|
3206
|
+
}))) ? l : {
|
|
3207
|
+
default: () => [l]
|
|
3223
3208
|
})])]));
|
|
3224
3209
|
};
|
|
3225
3210
|
}
|
|
@@ -3254,12 +3239,12 @@ const no = /* @__PURE__ */ E({
|
|
|
3254
3239
|
}
|
|
3255
3240
|
}
|
|
3256
3241
|
});
|
|
3257
|
-
function
|
|
3242
|
+
function rt(e) {
|
|
3258
3243
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ne(e);
|
|
3259
3244
|
}
|
|
3260
3245
|
const {
|
|
3261
|
-
preset:
|
|
3262
|
-
} =
|
|
3246
|
+
preset: st
|
|
3247
|
+
} = We, oo = /* @__PURE__ */ H({
|
|
3263
3248
|
name: "OthersChange",
|
|
3264
3249
|
props: {
|
|
3265
3250
|
prefixCls: L.string,
|
|
@@ -3267,77 +3252,77 @@ const {
|
|
|
3267
3252
|
onChange: Function
|
|
3268
3253
|
},
|
|
3269
3254
|
setup(e) {
|
|
3270
|
-
const t =
|
|
3255
|
+
const t = ce({
|
|
3271
3256
|
suffixCls: "others",
|
|
3272
3257
|
isPor: !0
|
|
3273
3258
|
}), {
|
|
3274
3259
|
wrapSSR: n,
|
|
3275
|
-
hashId:
|
|
3260
|
+
hashId: a
|
|
3276
3261
|
} = Z("SettingsDrawOthers", [ao], t);
|
|
3277
3262
|
return () => {
|
|
3278
|
-
var
|
|
3263
|
+
var r, d, m, b, h, S, s, k, l, p, I, M, g, c;
|
|
3279
3264
|
let i;
|
|
3280
|
-
return n(
|
|
3281
|
-
class: [t,
|
|
3282
|
-
}, [
|
|
3283
|
-
class: [`${t}-title`,
|
|
3284
|
-
}, [Q("页面动画设置")]),
|
|
3285
|
-
class: `${t}-list ${
|
|
3265
|
+
return n(o("div", {
|
|
3266
|
+
class: [t, a.value]
|
|
3267
|
+
}, [o("h3", {
|
|
3268
|
+
class: [`${t}-title`, a.value]
|
|
3269
|
+
}, [Q("页面动画设置")]), o(te, {
|
|
3270
|
+
class: `${t}-list ${a.value}`.trim(),
|
|
3286
3271
|
split: !1,
|
|
3287
3272
|
size: "small",
|
|
3288
3273
|
renderItem: ({
|
|
3289
|
-
item:
|
|
3290
|
-
}) =>
|
|
3291
|
-
title:
|
|
3274
|
+
item: f
|
|
3275
|
+
}) => o(Oe, {
|
|
3276
|
+
title: f.disabled ? f.disabledReason : "",
|
|
3292
3277
|
placement: "left"
|
|
3293
3278
|
}, {
|
|
3294
|
-
default: () => [
|
|
3295
|
-
actions: [
|
|
3279
|
+
default: () => [o(te.Item, {
|
|
3280
|
+
actions: [f.action]
|
|
3296
3281
|
}, {
|
|
3297
|
-
default: () => [
|
|
3282
|
+
default: () => [o("span", {
|
|
3298
3283
|
style: {
|
|
3299
|
-
opacity:
|
|
3284
|
+
opacity: f.disabled ? 0.5 : 1
|
|
3300
3285
|
}
|
|
3301
|
-
}, [
|
|
3286
|
+
}, [f.title])]
|
|
3302
3287
|
})]
|
|
3303
3288
|
}),
|
|
3304
3289
|
dataSource: [{
|
|
3305
3290
|
title: "禁用动画",
|
|
3306
|
-
action:
|
|
3307
|
-
checked: !((d = (
|
|
3291
|
+
action: o(ft, {
|
|
3292
|
+
checked: !((d = (r = e.settingValue) == null ? void 0 : r.animate) != null && d.disabled),
|
|
3308
3293
|
size: "small",
|
|
3309
|
-
onChange: (
|
|
3310
|
-
var
|
|
3311
|
-
return (
|
|
3294
|
+
onChange: (f) => {
|
|
3295
|
+
var v;
|
|
3296
|
+
return (v = e.onChange) == null ? void 0 : v.call(e, "animate", "disabled", !f);
|
|
3312
3297
|
}
|
|
3313
3298
|
}, null)
|
|
3314
3299
|
}, {
|
|
3315
3300
|
title: "动画效果",
|
|
3316
|
-
disabled: (
|
|
3317
|
-
action:
|
|
3318
|
-
value: (
|
|
3301
|
+
disabled: (b = (m = e.settingValue) == null ? void 0 : m.animate) == null ? void 0 : b.disabled,
|
|
3302
|
+
action: o(he, {
|
|
3303
|
+
value: (S = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : S.name,
|
|
3319
3304
|
style: {
|
|
3320
3305
|
width: "100px"
|
|
3321
3306
|
},
|
|
3322
3307
|
size: "small",
|
|
3323
|
-
disabled: (
|
|
3324
|
-
getPopupContainer: (
|
|
3325
|
-
onChange: (
|
|
3326
|
-
var
|
|
3327
|
-
return (
|
|
3308
|
+
disabled: (k = (s = e.settingValue) == null ? void 0 : s.animate) == null ? void 0 : k.disabled,
|
|
3309
|
+
getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
|
|
3310
|
+
onChange: (f) => {
|
|
3311
|
+
var v;
|
|
3312
|
+
return (v = e.onChange) == null ? void 0 : v.call(e, "animate", "name", f);
|
|
3328
3313
|
}
|
|
3329
|
-
},
|
|
3330
|
-
value:
|
|
3314
|
+
}, rt(i = st.map((f) => o(he.Option, {
|
|
3315
|
+
value: f.name
|
|
3331
3316
|
}, {
|
|
3332
|
-
default: () => [
|
|
3317
|
+
default: () => [f.alias]
|
|
3333
3318
|
}))) ? i : {
|
|
3334
3319
|
default: () => [i]
|
|
3335
3320
|
})
|
|
3336
3321
|
}, {
|
|
3337
3322
|
title: "动画方向",
|
|
3338
|
-
disabled: (
|
|
3339
|
-
action:
|
|
3340
|
-
value: (
|
|
3323
|
+
disabled: (p = (l = e.settingValue) == null ? void 0 : l.animate) == null ? void 0 : p.disabled,
|
|
3324
|
+
action: o(he, {
|
|
3325
|
+
value: (M = (I = e.settingValue) == null ? void 0 : I.animate) == null ? void 0 : M.direction,
|
|
3341
3326
|
style: {
|
|
3342
3327
|
width: "100px"
|
|
3343
3328
|
},
|
|
@@ -3345,22 +3330,22 @@ const {
|
|
|
3345
3330
|
dropdownStyle: {
|
|
3346
3331
|
minWidth: "120px"
|
|
3347
3332
|
},
|
|
3348
|
-
disabled: (c = (
|
|
3349
|
-
getPopupContainer: (
|
|
3350
|
-
onChange: (
|
|
3351
|
-
var
|
|
3352
|
-
return (
|
|
3333
|
+
disabled: (c = (g = e.settingValue) == null ? void 0 : g.animate) == null ? void 0 : c.disabled,
|
|
3334
|
+
getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
|
|
3335
|
+
onChange: (f) => {
|
|
3336
|
+
var v;
|
|
3337
|
+
return (v = e.onChange) == null ? void 0 : v.call(e, "animate", "direction", f);
|
|
3353
3338
|
}
|
|
3354
3339
|
}, {
|
|
3355
3340
|
default: () => {
|
|
3356
|
-
var
|
|
3357
|
-
return [(
|
|
3358
|
-
var
|
|
3359
|
-
return
|
|
3360
|
-
})) == null ? void 0 :
|
|
3361
|
-
value:
|
|
3362
|
-
},
|
|
3363
|
-
default: () => [
|
|
3341
|
+
var f;
|
|
3342
|
+
return [(f = st.find((v) => {
|
|
3343
|
+
var T, x;
|
|
3344
|
+
return v.name === ((x = (T = e.settingValue) == null ? void 0 : T.animate) == null ? void 0 : x.name);
|
|
3345
|
+
})) == null ? void 0 : f.directions.map((v) => o(he.Option, {
|
|
3346
|
+
value: v
|
|
3347
|
+
}, rt(v) ? v : {
|
|
3348
|
+
default: () => [v]
|
|
3364
3349
|
}))];
|
|
3365
3350
|
}
|
|
3366
3351
|
})
|
|
@@ -3370,7 +3355,7 @@ const {
|
|
|
3370
3355
|
}
|
|
3371
3356
|
}), {
|
|
3372
3357
|
preset: io
|
|
3373
|
-
} =
|
|
3358
|
+
} = We, Le = Object.keys(A).filter((e) => e !== "title"), ut = {
|
|
3374
3359
|
color: "#fff",
|
|
3375
3360
|
fontSize: 20
|
|
3376
3361
|
}, lo = [{
|
|
@@ -3388,21 +3373,21 @@ const {
|
|
|
3388
3373
|
}, {
|
|
3389
3374
|
label: "fixedMultiTab",
|
|
3390
3375
|
title: "固定多标签"
|
|
3391
|
-
}],
|
|
3392
|
-
...
|
|
3376
|
+
}], dt = (e) => vn() ? {
|
|
3377
|
+
...ae(A, Le),
|
|
3393
3378
|
...e || {}
|
|
3394
|
-
} :
|
|
3379
|
+
} : yt(A), ye = (e, {
|
|
3395
3380
|
slots: t
|
|
3396
3381
|
}) => {
|
|
3397
3382
|
var n;
|
|
3398
|
-
return
|
|
3383
|
+
return o("div", {
|
|
3399
3384
|
style: {
|
|
3400
3385
|
marginBottom: "24px"
|
|
3401
3386
|
}
|
|
3402
|
-
}, [
|
|
3387
|
+
}, [o("h3", {
|
|
3403
3388
|
class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
|
|
3404
3389
|
}, [e.title]), (n = t.default) == null ? void 0 : n.call(t)]);
|
|
3405
|
-
}, vl = /* @__PURE__ */
|
|
3390
|
+
}, vl = /* @__PURE__ */ H({
|
|
3406
3391
|
name: "SettingDrawer",
|
|
3407
3392
|
props: {
|
|
3408
3393
|
themeOnly: Boolean,
|
|
@@ -3415,7 +3400,7 @@ const {
|
|
|
3415
3400
|
},
|
|
3416
3401
|
colorList: {
|
|
3417
3402
|
type: [Boolean, Array],
|
|
3418
|
-
default: () =>
|
|
3403
|
+
default: () => hn
|
|
3419
3404
|
},
|
|
3420
3405
|
onChange: Function,
|
|
3421
3406
|
onChangeLayout: Function
|
|
@@ -3428,44 +3413,44 @@ const {
|
|
|
3428
3413
|
suffixCls: "setting-drawer",
|
|
3429
3414
|
isPor: !0
|
|
3430
3415
|
}), {
|
|
3431
|
-
wrapSSR:
|
|
3416
|
+
wrapSSR: a,
|
|
3432
3417
|
hashId: i
|
|
3433
|
-
} = Z("ProSettingDraw", [Ja], n),
|
|
3434
|
-
value:
|
|
3418
|
+
} = Z("ProSettingDraw", [Ja], n), r = ve(!1), [d, m] = pe(!1), [b, h] = pe(!1), [S, s] = pe(!1), k = w(() => dt(ae(e.settings, Le))), [l, p] = wn(() => dt(ae(e.settings, Le)), {
|
|
3419
|
+
value: k,
|
|
3435
3420
|
onChange: e.onChange
|
|
3436
|
-
}),
|
|
3437
|
-
copy:
|
|
3421
|
+
}), I = w(() => e.colorList && pn(e.colorList) ? e.colorList : []), M = w(() => Hn(U(l))), {
|
|
3422
|
+
copy: g,
|
|
3438
3423
|
copied: c,
|
|
3439
|
-
isSupported:
|
|
3424
|
+
isSupported: f
|
|
3440
3425
|
} = In();
|
|
3441
|
-
|
|
3442
|
-
|
|
3426
|
+
le(d, () => {
|
|
3427
|
+
r.value || (r.value = !0);
|
|
3443
3428
|
});
|
|
3444
|
-
const
|
|
3445
|
-
var
|
|
3429
|
+
const v = (x, O, F) => {
|
|
3430
|
+
var _, N;
|
|
3446
3431
|
const R = ["header", "sider"], D = {};
|
|
3447
|
-
if (F && R.includes(
|
|
3448
|
-
D[
|
|
3432
|
+
if (F && R.includes(x)) {
|
|
3433
|
+
D[x] = {}, D[x][F] = O, e.onChangeLayout && e.onChangeLayout(ae(D, R));
|
|
3449
3434
|
return;
|
|
3450
3435
|
} else
|
|
3451
|
-
|
|
3452
|
-
if (
|
|
3436
|
+
x === "animate" ? (D[x] = {}, D[x][F] = O, F === "name" && (D[x].direction = (N = (_ = io.find((z) => z.name === O)) == null ? void 0 : _.directions) == null ? void 0 : N[0])) : D[x] = O;
|
|
3437
|
+
if (x === "colorWeak") {
|
|
3453
3438
|
const z = document.querySelector("body");
|
|
3454
3439
|
z && (z.dataset.prosettingdrawer = O === !0 ? z.style.filter : z.dataset.prosettingdrawer || "none", O === !0 && (z.dataset.prosettingdrawer = z.style.filter), z.style.filter = O === !0 ? "invert(80%)" : z.dataset.prosettingdrawer || "none", O || delete z.dataset.prosettingdrawer);
|
|
3455
3440
|
}
|
|
3456
|
-
|
|
3457
|
-
...Nn(
|
|
3441
|
+
p(xn(U(l), {
|
|
3442
|
+
...Nn(Ee(D, R))
|
|
3458
3443
|
}));
|
|
3459
|
-
},
|
|
3460
|
-
|
|
3444
|
+
}, T = () => {
|
|
3445
|
+
f.value && g(JSON.stringify(U(l)));
|
|
3461
3446
|
};
|
|
3462
|
-
return
|
|
3463
|
-
|
|
3464
|
-
}), () => o(
|
|
3447
|
+
return le(c, (x) => {
|
|
3448
|
+
x && Qt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
3449
|
+
}), () => a(o(be, {
|
|
3465
3450
|
width: 300,
|
|
3466
3451
|
closable: !1,
|
|
3467
3452
|
open: d.value,
|
|
3468
|
-
rootClassName: `${n} ${i.value} ${d.value && `${n}-show`} ${!
|
|
3453
|
+
rootClassName: `${n} ${i.value} ${d.value && `${n}-show`} ${!r.value && `${n}-trantion-none`}`,
|
|
3469
3454
|
placement: "right",
|
|
3470
3455
|
rootStyle: {
|
|
3471
3456
|
zIndex: 999
|
|
@@ -3474,153 +3459,153 @@ const {
|
|
|
3474
3459
|
padding: 0
|
|
3475
3460
|
},
|
|
3476
3461
|
onClose: () => m(!1),
|
|
3477
|
-
handle:
|
|
3462
|
+
handle: o("div", {
|
|
3478
3463
|
class: [`${n}-handle`, i.value],
|
|
3479
3464
|
onClick: () => m(!d.value)
|
|
3480
|
-
}, [d.value ?
|
|
3481
|
-
style:
|
|
3482
|
-
}, null) :
|
|
3483
|
-
style:
|
|
3465
|
+
}, [d.value ? o(ht, {
|
|
3466
|
+
style: ut
|
|
3467
|
+
}, null) : o(dn, {
|
|
3468
|
+
style: ut
|
|
3484
3469
|
}, null)])
|
|
3485
3470
|
}, {
|
|
3486
|
-
default: () => [
|
|
3471
|
+
default: () => [o("div", {
|
|
3487
3472
|
class: [`${n}-wrapper`, i.value]
|
|
3488
|
-
}, [
|
|
3489
|
-
default: () => [
|
|
3473
|
+
}, [o(On, null, {
|
|
3474
|
+
default: () => [o("div", {
|
|
3490
3475
|
class: [`${n}-content`, i.value]
|
|
3491
|
-
}, [
|
|
3476
|
+
}, [o(ye, {
|
|
3492
3477
|
prefixCls: n,
|
|
3493
3478
|
hashId: i.value,
|
|
3494
3479
|
title: "整体风格设置"
|
|
3495
3480
|
}, {
|
|
3496
|
-
default: () => [
|
|
3481
|
+
default: () => [o(lt, {
|
|
3497
3482
|
hashId: i.value,
|
|
3498
3483
|
prefixCls: n,
|
|
3499
|
-
list:
|
|
3500
|
-
value:
|
|
3484
|
+
list: Ht,
|
|
3485
|
+
value: l.value.theme,
|
|
3501
3486
|
configType: "theme",
|
|
3502
3487
|
key: "navTheme",
|
|
3503
|
-
onChange: (
|
|
3488
|
+
onChange: (x) => v("theme", x)
|
|
3504
3489
|
}, null)]
|
|
3505
|
-
}),
|
|
3490
|
+
}), o(ye, {
|
|
3506
3491
|
hashId: i.value,
|
|
3507
|
-
title:
|
|
3492
|
+
title: o("span", null, [Q("主题色 "), o("a", {
|
|
3508
3493
|
style: {
|
|
3509
3494
|
fontSize: "12px"
|
|
3510
3495
|
},
|
|
3511
|
-
onClick: () =>
|
|
3496
|
+
onClick: () => h(!0)
|
|
3512
3497
|
}, [Q("更多配置")])]),
|
|
3513
3498
|
prefixCls: n
|
|
3514
3499
|
}, {
|
|
3515
|
-
default: () => [
|
|
3500
|
+
default: () => [o(Qa, {
|
|
3516
3501
|
hashId: i.value,
|
|
3517
3502
|
prefixCls: n,
|
|
3518
|
-
colorList:
|
|
3519
|
-
settingValue:
|
|
3520
|
-
onChange: (
|
|
3503
|
+
colorList: I.value,
|
|
3504
|
+
settingValue: l.value,
|
|
3505
|
+
onChange: (x, O) => v(O || "primaryColor", x)
|
|
3521
3506
|
}, null)]
|
|
3522
|
-
}), !e.themeOnly &&
|
|
3507
|
+
}), !e.themeOnly && o(q, null, [o(Be, null, null), o(ye, {
|
|
3523
3508
|
hashId: i.value,
|
|
3524
3509
|
prefixCls: n,
|
|
3525
3510
|
title: "导航模式"
|
|
3526
3511
|
}, {
|
|
3527
|
-
default: () => [
|
|
3512
|
+
default: () => [o(lt, {
|
|
3528
3513
|
prefixCls: n,
|
|
3529
|
-
value:
|
|
3514
|
+
value: U(l).layout,
|
|
3530
3515
|
key: "layout",
|
|
3531
3516
|
hashId: i.value,
|
|
3532
3517
|
configType: "layout",
|
|
3533
|
-
list:
|
|
3534
|
-
onChange: (
|
|
3518
|
+
list: _t,
|
|
3519
|
+
onChange: (x) => v("layout", x)
|
|
3535
3520
|
}, null)]
|
|
3536
3521
|
}), lo.map(({
|
|
3537
|
-
label:
|
|
3522
|
+
label: x,
|
|
3538
3523
|
title: O
|
|
3539
|
-
}) =>
|
|
3524
|
+
}) => o(ge, {
|
|
3540
3525
|
label: O,
|
|
3541
|
-
disabled:
|
|
3542
|
-
value:
|
|
3526
|
+
disabled: U(M)[x],
|
|
3527
|
+
value: U(l)[x],
|
|
3543
3528
|
prefixCls: n,
|
|
3544
3529
|
hashId: i.value,
|
|
3545
|
-
valueKey:
|
|
3546
|
-
onChange: (F, R) =>
|
|
3547
|
-
}, null)),
|
|
3530
|
+
valueKey: x,
|
|
3531
|
+
onChange: (F, R) => v(F, R)
|
|
3532
|
+
}, null)), o(Be, null, null), o(ye, {
|
|
3548
3533
|
hashId: i.value,
|
|
3549
3534
|
prefixCls: n,
|
|
3550
|
-
title:
|
|
3535
|
+
title: o("span", null, [Q("其他设置 "), o("a", {
|
|
3551
3536
|
style: {
|
|
3552
3537
|
fontSize: "12px"
|
|
3553
3538
|
},
|
|
3554
|
-
onClick: () =>
|
|
3539
|
+
onClick: () => s(!0)
|
|
3555
3540
|
}, [Q("更多配置")])])
|
|
3556
3541
|
}, {
|
|
3557
3542
|
default: () => [ro.map(({
|
|
3558
|
-
label:
|
|
3543
|
+
label: x,
|
|
3559
3544
|
title: O
|
|
3560
|
-
}) =>
|
|
3545
|
+
}) => o(ge, {
|
|
3561
3546
|
label: O,
|
|
3562
|
-
disabled:
|
|
3563
|
-
value:
|
|
3547
|
+
disabled: U(M)[x],
|
|
3548
|
+
value: U(l)[x],
|
|
3564
3549
|
prefixCls: n,
|
|
3565
3550
|
hashId: i.value,
|
|
3566
|
-
valueKey:
|
|
3567
|
-
onChange: (F, R) =>
|
|
3568
|
-
}, null)), e.weakmode &&
|
|
3551
|
+
valueKey: x,
|
|
3552
|
+
onChange: (F, R) => v(F, R)
|
|
3553
|
+
}, null)), e.weakmode && o(ge, {
|
|
3569
3554
|
label: "色弱模式",
|
|
3570
|
-
value:
|
|
3555
|
+
value: U(l).colorWeak,
|
|
3571
3556
|
prefixCls: n,
|
|
3572
3557
|
hashId: i.value,
|
|
3573
3558
|
valueKey: "colorWeak",
|
|
3574
|
-
onChange: (
|
|
3575
|
-
}, null), e.showProgress &&
|
|
3559
|
+
onChange: (x, O) => v(x, O)
|
|
3560
|
+
}, null), e.showProgress && o(ge, {
|
|
3576
3561
|
label: "顶部进度条",
|
|
3577
|
-
value:
|
|
3562
|
+
value: U(l).showProgressBar,
|
|
3578
3563
|
prefixCls: n,
|
|
3579
3564
|
hashId: i.value,
|
|
3580
3565
|
valueKey: "showProgressBar",
|
|
3581
|
-
onChange: (
|
|
3566
|
+
onChange: (x, O) => v(x, O)
|
|
3582
3567
|
}, null)]
|
|
3583
|
-
})]), e.hideHintAlert && e.hideCopyButton ? null :
|
|
3568
|
+
})]), e.hideHintAlert && e.hideCopyButton ? null : o(Be, null, null), e.hideHintAlert ? null : o(en, {
|
|
3584
3569
|
type: "warning",
|
|
3585
3570
|
message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
|
|
3586
|
-
icon:
|
|
3571
|
+
icon: o(cn, null, null),
|
|
3587
3572
|
showIcon: !0,
|
|
3588
3573
|
style: {
|
|
3589
3574
|
marginBottom: "16px"
|
|
3590
3575
|
}
|
|
3591
|
-
}, null), e.hideCopyButton ? null :
|
|
3592
|
-
onClick: () =>
|
|
3576
|
+
}, null), e.hideCopyButton ? null : o(tn, {
|
|
3577
|
+
onClick: () => T(),
|
|
3593
3578
|
block: !0
|
|
3594
3579
|
}, {
|
|
3595
|
-
default: () => [
|
|
3580
|
+
default: () => [o(mn, null, null), Q("拷贝设置")]
|
|
3596
3581
|
})])]
|
|
3597
|
-
})]),
|
|
3582
|
+
})]), o(be, {
|
|
3598
3583
|
width: 320,
|
|
3599
3584
|
closable: !1,
|
|
3600
3585
|
placement: "right",
|
|
3601
|
-
open:
|
|
3586
|
+
open: b.value,
|
|
3602
3587
|
bodyStyle: {
|
|
3603
3588
|
padding: 0
|
|
3604
3589
|
},
|
|
3605
|
-
onClose: () =>
|
|
3590
|
+
onClose: () => h(!1)
|
|
3606
3591
|
}, {
|
|
3607
|
-
default: () => [
|
|
3608
|
-
settingValue:
|
|
3609
|
-
onChange: (
|
|
3592
|
+
default: () => [o(no, {
|
|
3593
|
+
settingValue: l.value,
|
|
3594
|
+
onChange: (x, O, F) => v(O || "primaryColor", x, F)
|
|
3610
3595
|
}, null)]
|
|
3611
|
-
}),
|
|
3596
|
+
}), o(be, {
|
|
3612
3597
|
width: 320,
|
|
3613
3598
|
closable: !1,
|
|
3614
3599
|
placement: "right",
|
|
3615
|
-
open:
|
|
3600
|
+
open: S.value,
|
|
3616
3601
|
bodyStyle: {
|
|
3617
3602
|
padding: 0
|
|
3618
3603
|
},
|
|
3619
|
-
onClose: () =>
|
|
3604
|
+
onClose: () => s(!1)
|
|
3620
3605
|
}, {
|
|
3621
|
-
default: () => [
|
|
3622
|
-
settingValue:
|
|
3623
|
-
onChange: (
|
|
3606
|
+
default: () => [o(oo, {
|
|
3607
|
+
settingValue: l.value,
|
|
3608
|
+
onChange: (x, O, F) => v(x, F, O)
|
|
3624
3609
|
}, null)]
|
|
3625
3610
|
})]
|
|
3626
3611
|
}));
|
|
@@ -4050,7 +4035,7 @@ const {
|
|
|
4050
4035
|
opacity: 1,
|
|
4051
4036
|
transform: "translate3d(0, 0, 0)"
|
|
4052
4037
|
}
|
|
4053
|
-
}),
|
|
4038
|
+
}), Vo = new u("fadeInTopLeft", {
|
|
4054
4039
|
from: {
|
|
4055
4040
|
opacity: 0,
|
|
4056
4041
|
transform: "translate3d(-100%, -100%, 0)"
|
|
@@ -4059,7 +4044,7 @@ const {
|
|
|
4059
4044
|
opacity: 1,
|
|
4060
4045
|
transform: "translate3d(0, 0, 0)"
|
|
4061
4046
|
}
|
|
4062
|
-
}),
|
|
4047
|
+
}), Ao = new u("fadeInBottomRight", {
|
|
4063
4048
|
from: {
|
|
4064
4049
|
opacity: 0,
|
|
4065
4050
|
transform: "translate3d(100%, 100%, 0)"
|
|
@@ -4068,7 +4053,7 @@ const {
|
|
|
4068
4053
|
opacity: 1,
|
|
4069
4054
|
transform: "translate3d(0, 0, 0)"
|
|
4070
4055
|
}
|
|
4071
|
-
}),
|
|
4056
|
+
}), Eo = new u("fadeInTopRight", {
|
|
4072
4057
|
from: {
|
|
4073
4058
|
opacity: 0,
|
|
4074
4059
|
transform: "translate3d(100%, -100%, 0)"
|
|
@@ -4232,15 +4217,15 @@ const {
|
|
|
4232
4217
|
},
|
|
4233
4218
|
"&.fadeInTopLeft": {
|
|
4234
4219
|
animationFillMode: "both",
|
|
4235
|
-
animationName:
|
|
4220
|
+
animationName: Vo
|
|
4236
4221
|
},
|
|
4237
4222
|
"&.fadeInBottomRight": {
|
|
4238
4223
|
animationFillMode: "both",
|
|
4239
|
-
animationName:
|
|
4224
|
+
animationName: Ao
|
|
4240
4225
|
},
|
|
4241
4226
|
"&.fadeInTopRight": {
|
|
4242
4227
|
animationFillMode: "both",
|
|
4243
|
-
animationName:
|
|
4228
|
+
animationName: Eo
|
|
4244
4229
|
},
|
|
4245
4230
|
"&.fadeInBottomLeft": {
|
|
4246
4231
|
animationFillMode: "both",
|
|
@@ -4693,7 +4678,7 @@ const {
|
|
|
4693
4678
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
|
|
4694
4679
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4695
4680
|
}
|
|
4696
|
-
}),
|
|
4681
|
+
}), Vi = new u("zoomOutLeft", {
|
|
4697
4682
|
"40%": {
|
|
4698
4683
|
opacity: 1,
|
|
4699
4684
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
|
|
@@ -4702,7 +4687,7 @@ const {
|
|
|
4702
4687
|
opacity: 0,
|
|
4703
4688
|
transform: "scale(0.1) translate3d(-2000px, 0, 0)"
|
|
4704
4689
|
}
|
|
4705
|
-
}),
|
|
4690
|
+
}), Ai = new u("zoomOutRight", {
|
|
4706
4691
|
"40%": {
|
|
4707
4692
|
opacity: 1,
|
|
4708
4693
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
|
|
@@ -4711,7 +4696,7 @@ const {
|
|
|
4711
4696
|
opacity: 0,
|
|
4712
4697
|
transform: "scale(0.1) translate3d(2000px, 0, 0)"
|
|
4713
4698
|
}
|
|
4714
|
-
}),
|
|
4699
|
+
}), Ei = new u("zoomOutUp", {
|
|
4715
4700
|
"40%": {
|
|
4716
4701
|
opacity: 1,
|
|
4717
4702
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
@@ -4756,17 +4741,17 @@ const {
|
|
|
4756
4741
|
"&.zoomOutLeft": {
|
|
4757
4742
|
animationFillMode: "both",
|
|
4758
4743
|
transformOrigin: "left center",
|
|
4759
|
-
animationName:
|
|
4744
|
+
animationName: Vi
|
|
4760
4745
|
},
|
|
4761
4746
|
"&.zoomOutRight": {
|
|
4762
4747
|
animationFillMode: "both",
|
|
4763
4748
|
transformOrigin: "right center",
|
|
4764
|
-
animationName:
|
|
4749
|
+
animationName: Ai
|
|
4765
4750
|
},
|
|
4766
4751
|
"&.zoomOutUp": {
|
|
4767
4752
|
animationFillMode: "both",
|
|
4768
4753
|
transformOrigin: "center bottom",
|
|
4769
|
-
animationName:
|
|
4754
|
+
animationName: Ei
|
|
4770
4755
|
}
|
|
4771
4756
|
}), Ki = new u("slideInDown", {
|
|
4772
4757
|
from: {
|
|
@@ -4903,7 +4888,7 @@ function nl(e) {
|
|
|
4903
4888
|
return [tl(n)];
|
|
4904
4889
|
}, e);
|
|
4905
4890
|
}
|
|
4906
|
-
const xl = /* @__PURE__ */
|
|
4891
|
+
const xl = /* @__PURE__ */ H({
|
|
4907
4892
|
name: "PageTranstion",
|
|
4908
4893
|
props: {
|
|
4909
4894
|
disabled: {
|
|
@@ -4923,57 +4908,58 @@ const xl = /* @__PURE__ */ E({
|
|
|
4923
4908
|
setup(e, {
|
|
4924
4909
|
slots: t
|
|
4925
4910
|
}) {
|
|
4926
|
-
const n =
|
|
4911
|
+
const n = ce({
|
|
4927
4912
|
suffixCls: "page-transtion",
|
|
4928
4913
|
isPor: !0
|
|
4929
4914
|
}), {
|
|
4930
|
-
wrapSSR:
|
|
4915
|
+
wrapSSR: a,
|
|
4931
4916
|
hashId: i
|
|
4932
|
-
} = nl(n),
|
|
4933
|
-
const
|
|
4934
|
-
if (
|
|
4917
|
+
} = nl(n), r = w(() => [m(!1), `${n}-enter`, i.value].join(" ")), d = w(() => [m(!0), `${n}-leave`, i.value].join(" ")), m = (h) => {
|
|
4918
|
+
const S = We.preset.find((l) => e.name == l.name);
|
|
4919
|
+
if (S == null)
|
|
4935
4920
|
return "";
|
|
4936
|
-
let
|
|
4937
|
-
e.direction == null ?
|
|
4938
|
-
const
|
|
4939
|
-
return
|
|
4940
|
-
},
|
|
4941
|
-
if (
|
|
4942
|
-
return
|
|
4943
|
-
let
|
|
4944
|
-
return
|
|
4921
|
+
let s = "";
|
|
4922
|
+
e.direction == null ? s = S.directions[0] : s = S.directions.find((l) => l == e.direction) || "", s = s == null || s === "default" ? "" : s, s != "" && (s = h && e.reverse ? b(s, S.directions) : s, s = s[0].toUpperCase() + s.substring(1));
|
|
4923
|
+
const k = h ? "Out" : "In";
|
|
4924
|
+
return S.name + k + s;
|
|
4925
|
+
}, b = (h, S) => {
|
|
4926
|
+
if (h.length == 0 || h == "x" || h == "y")
|
|
4927
|
+
return h;
|
|
4928
|
+
let s = S.indexOf(h);
|
|
4929
|
+
return s = s % 2 == 1 ? s - 1 : s + 1, S[s];
|
|
4945
4930
|
};
|
|
4946
|
-
return () => e.disabled ? null : o(
|
|
4947
|
-
enterActiveClass:
|
|
4931
|
+
return () => e.disabled ? null : a(o(Gt, {
|
|
4932
|
+
enterActiveClass: r.value,
|
|
4948
4933
|
leaveActiveClass: d.value
|
|
4949
4934
|
}, {
|
|
4950
4935
|
default: () => {
|
|
4951
|
-
var
|
|
4952
|
-
return [(
|
|
4936
|
+
var h;
|
|
4937
|
+
return [(h = t.default) == null ? void 0 : h.call(t)];
|
|
4953
4938
|
}
|
|
4954
4939
|
}));
|
|
4955
4940
|
}
|
|
4956
4941
|
});
|
|
4957
4942
|
export {
|
|
4958
|
-
|
|
4943
|
+
wt as BaseMenu,
|
|
4959
4944
|
Ga as DefaultHeader,
|
|
4960
4945
|
bl as GProLayout,
|
|
4961
|
-
|
|
4946
|
+
Te as GlobalFooter,
|
|
4962
4947
|
yl as PageContainer,
|
|
4963
4948
|
Mn as PageLoading,
|
|
4964
4949
|
xl as PageTranstion,
|
|
4965
4950
|
vl as SettingDrawer,
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4951
|
+
$e as SiderMenuWrapper,
|
|
4952
|
+
Ge as WrapContent,
|
|
4953
|
+
je as baseMenuProps,
|
|
4969
4954
|
Pn as clearMenuItem,
|
|
4970
|
-
|
|
4971
|
-
|
|
4955
|
+
Vn as createContext,
|
|
4956
|
+
En as createRouteContext,
|
|
4972
4957
|
Ln as flatMap,
|
|
4973
4958
|
pl as getMenuData,
|
|
4974
4959
|
Dn as getMenuFirstChildren,
|
|
4960
|
+
Ct as getRealPath,
|
|
4975
4961
|
Nn as handleThemeConfig,
|
|
4976
4962
|
jn as provideProLayoutContext,
|
|
4977
|
-
|
|
4963
|
+
An as useContext,
|
|
4978
4964
|
J as useProLayoutContext
|
|
4979
4965
|
};
|