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