@gx-design-vue/pro-layout 0.1.0-beta.54 → 0.1.0-beta.56
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/Context.d.ts +1 -1
- package/dist/ProLayout.d.ts +650 -0
- package/dist/RenderTypings.d.ts +1 -1
- package/dist/WrapContent.d.ts +1 -1
- package/dist/components/GlobalFooter/index.d.ts +1 -1
- package/dist/components/GlobalHeader/DefaultHeader.d.ts +68 -101
- package/dist/components/GlobalHeader/index.d.ts +45 -67
- package/dist/components/GlobalHeader/props.d.ts +42 -65
- package/dist/components/LogoContent/index.d.ts +4 -4
- package/dist/components/LogoContent/props.d.ts +2 -2
- package/dist/components/MultiTab/index.d.ts +2 -2
- package/dist/components/MultiTab/props.d.ts +1 -1
- package/dist/components/PageContainer/index.d.ts +95 -0
- package/dist/components/PageContainer/props.d.ts +70 -0
- package/dist/components/SettingDrawer/RegionalChange.d.ts +2 -2
- package/dist/components/SettingDrawer/ThemeColor.d.ts +3 -3
- package/dist/components/SettingDrawer/ThemeEditor.d.ts +3 -3
- package/dist/components/SettingDrawer/index.d.ts +5 -6
- package/dist/components/SiderMenu/BaseMenu.d.ts +45 -67
- package/dist/components/SiderMenu/SiderMenu.d.ts +48 -69
- package/dist/components/SiderMenu/index.d.ts +48 -70
- package/dist/components/SiderMenu/props.d.ts +45 -66
- package/dist/components/SiderMenu/typings.d.ts +1 -1
- package/dist/defaultSettings.d.ts +18 -22
- package/dist/hooks/context/index.d.ts +2 -2
- package/dist/index.d.ts +5 -4
- package/dist/pro-layout.js +1003 -1002
- package/dist/pro-layout.umd.cjs +1 -1
- package/dist/props.d.ts +291 -0
- package/dist/utils/index.d.ts +9 -9
- package/package.json +19 -45
package/dist/pro-layout.js
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Spin as
|
|
3
|
-
import { useProAppContext as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { createFromIconfontCN as Wt, MenuUnfoldOutlined as Kt, MenuFoldOutlined as
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { useMediaQuery as on, useState as
|
|
12
|
-
import
|
|
1
|
+
import { defineComponent as j, createVNode as n, mergeProps as q, provide as it, readonly as Rt, inject as kt, resolveComponent as lt, computed as b, isVNode as ie, Fragment as Q, toRefs as Se, unref as X, createTextVNode as te, ref as Oe, reactive as rt, watch as de, withDirectives as Ft, vShow as $t, watchEffect as Tt, Transition as Pt } from "vue";
|
|
2
|
+
import { Spin as xe, Menu as ae, ConfigProvider as Te, Layout as ce, Drawer as pe, Breadcrumb as Lt, Card as Dt, LayoutFooter as Nt, Tabs as Pe, Dropdown as Ye, Tooltip as Ie, List as oe, Switch as st, TabPane as zt, Select as he, message as Ht, Divider as Be, Alert as Vt, Button as At } from "ant-design-vue";
|
|
3
|
+
import { useProAppContext as Le } from "@gx-design-vue/pro-app";
|
|
4
|
+
import { useRouter as De, RouterLink as jt } from "vue-router";
|
|
5
|
+
import { createFromIconfontCN as Wt, MenuUnfoldOutlined as Kt, MenuFoldOutlined as Ut, GithubOutlined as Et, EllipsisOutlined as Xt, ReloadOutlined as Yt, CloseOutlined as ut, CheckOutlined as dt, SettingOutlined as _t, NotificationOutlined as Gt, CopyOutlined as qt } from "@ant-design/icons-vue";
|
|
6
|
+
import { isArray as ct, isBoolean as _e, getSlot as U, getPrefixCls as me, classNames as mt, getLevelData as Zt, isBrowser as Jt, merge as Qt } from "@gx-design-vue/pro-utils";
|
|
7
|
+
import en, { themeConfig as A, Keyframe as s, useProStyle as ne, useProConfigContext as fe, useStyle as Ne, mergeToken as ze, colorList as tn } from "@gx-design-vue/pro-provider";
|
|
8
|
+
import { createTypes as nn } from "vue-types";
|
|
9
|
+
import { cloneDeep as He, pick as le, omit as Ve } from "lodash-es";
|
|
10
|
+
import { GPorWaterMark as an } from "@gx-design-vue/pro-watermark";
|
|
11
|
+
import { useMediaQuery as on, useState as ve, useMergedState as ln } from "@gx-design-vue/pro-hooks";
|
|
12
|
+
import rn from "dayjs";
|
|
13
|
+
import { useWindowSize as sn, useClipboard as un } from "@vueuse/core";
|
|
13
14
|
import dn from "@gx-design-vue/scrollbar";
|
|
14
15
|
import { GColorPicker as Ge } from "@gx-design-vue/color-picker";
|
|
15
|
-
const
|
|
16
|
+
const cn = /* @__PURE__ */ j({
|
|
16
17
|
name: "PageLoading",
|
|
17
18
|
props: {
|
|
18
|
-
...
|
|
19
|
+
...xe.props
|
|
19
20
|
},
|
|
20
21
|
setup(e) {
|
|
21
22
|
const {
|
|
22
23
|
indicator: t
|
|
23
|
-
} =
|
|
24
|
+
} = Le();
|
|
24
25
|
return n("div", {
|
|
25
26
|
style: {
|
|
26
27
|
paddingTop: "100px",
|
|
27
28
|
textAlign: "center"
|
|
28
29
|
}
|
|
29
|
-
}, [n(
|
|
30
|
+
}, [n(xe, q(e, {
|
|
30
31
|
indicator: t == null ? void 0 : t.value
|
|
31
32
|
}), null)]);
|
|
32
33
|
}
|
|
33
|
-
}), L =
|
|
34
|
+
}), L = nn({
|
|
34
35
|
func: void 0,
|
|
35
36
|
bool: void 0,
|
|
36
37
|
string: void 0,
|
|
@@ -54,75 +55,75 @@ L.extend([{
|
|
|
54
55
|
getter: !0,
|
|
55
56
|
type: null
|
|
56
57
|
}]);
|
|
57
|
-
const
|
|
58
|
+
const se = {
|
|
58
59
|
theme: {
|
|
59
60
|
type: String,
|
|
60
|
-
default:
|
|
61
|
+
default: A.theme
|
|
61
62
|
},
|
|
62
63
|
layout: {
|
|
63
64
|
type: String,
|
|
64
|
-
default:
|
|
65
|
+
default: A.layout
|
|
65
66
|
},
|
|
66
67
|
wideWidth: {
|
|
67
68
|
type: Number,
|
|
68
|
-
default:
|
|
69
|
+
default: A.wideWidth
|
|
69
70
|
},
|
|
70
71
|
splitMenus: {
|
|
71
72
|
type: Boolean,
|
|
72
|
-
default:
|
|
73
|
+
default: A.splitMenus
|
|
73
74
|
},
|
|
74
75
|
fixedMultiTab: {
|
|
75
76
|
type: Boolean,
|
|
76
|
-
default:
|
|
77
|
+
default: A.fixedMultiTab
|
|
77
78
|
},
|
|
78
79
|
showProgressBar: {
|
|
79
80
|
type: Boolean,
|
|
80
|
-
default:
|
|
81
|
+
default: A.showProgressBar
|
|
81
82
|
},
|
|
82
83
|
fixedHeader: {
|
|
83
84
|
type: Boolean,
|
|
84
|
-
default:
|
|
85
|
+
default: A.fixedHeader
|
|
85
86
|
},
|
|
86
87
|
fixSiderbar: {
|
|
87
88
|
type: Boolean,
|
|
88
|
-
default:
|
|
89
|
+
default: A.fixSiderbar
|
|
89
90
|
},
|
|
90
91
|
showTabsBar: {
|
|
91
92
|
type: Boolean,
|
|
92
|
-
default:
|
|
93
|
+
default: A.showTabsBar
|
|
93
94
|
},
|
|
94
95
|
showFullScreen: {
|
|
95
96
|
type: Boolean,
|
|
96
|
-
default:
|
|
97
|
+
default: A.showFullScreen
|
|
97
98
|
},
|
|
98
99
|
autoHideHeader: {
|
|
99
100
|
type: Boolean,
|
|
100
|
-
default:
|
|
101
|
+
default: A.autoHideHeader
|
|
101
102
|
},
|
|
102
103
|
headerHeight: {
|
|
103
104
|
type: Number,
|
|
104
|
-
default:
|
|
105
|
+
default: A.headerHeight
|
|
105
106
|
},
|
|
106
107
|
title: {
|
|
107
108
|
type: String,
|
|
108
|
-
default:
|
|
109
|
+
default: A.title
|
|
109
110
|
},
|
|
110
111
|
iconfontUrl: {
|
|
111
112
|
type: String,
|
|
112
|
-
default:
|
|
113
|
+
default: A.iconfontUrl
|
|
113
114
|
},
|
|
114
115
|
animate: {
|
|
115
116
|
type: Object,
|
|
116
|
-
default:
|
|
117
|
+
default: A.animate
|
|
117
118
|
},
|
|
118
119
|
primaryColor: {
|
|
119
120
|
type: String,
|
|
120
|
-
default:
|
|
121
|
+
default: A.primaryColor
|
|
121
122
|
}
|
|
122
|
-
},
|
|
123
|
+
}, re = {
|
|
123
124
|
renderKey: L.string.def("menuHeaderRender"),
|
|
124
|
-
title:
|
|
125
|
-
layout:
|
|
125
|
+
title: se.title,
|
|
126
|
+
layout: se.layout,
|
|
126
127
|
logo: {
|
|
127
128
|
type: [Object, String, Function],
|
|
128
129
|
default: () => {
|
|
@@ -145,8 +146,8 @@ const ue = {
|
|
|
145
146
|
}
|
|
146
147
|
},
|
|
147
148
|
onMenuHeaderClick: Function
|
|
148
|
-
},
|
|
149
|
-
...
|
|
149
|
+
}, Me = {
|
|
150
|
+
...se,
|
|
150
151
|
mode: {
|
|
151
152
|
type: String,
|
|
152
153
|
default: "inline"
|
|
@@ -197,12 +198,12 @@ const ue = {
|
|
|
197
198
|
type: Function
|
|
198
199
|
}
|
|
199
200
|
}, Z = {
|
|
200
|
-
...
|
|
201
|
-
...
|
|
201
|
+
...se,
|
|
202
|
+
...Me,
|
|
202
203
|
menuLoading: L.looseBool,
|
|
203
|
-
logo:
|
|
204
|
-
logoStyle:
|
|
205
|
-
logoDirection:
|
|
204
|
+
logo: re.logo,
|
|
205
|
+
logoStyle: re.logoStyle,
|
|
206
|
+
logoDirection: re.logoDirection,
|
|
206
207
|
siderWidth: L.number.def(208),
|
|
207
208
|
headerHeight: L.number.def(48),
|
|
208
209
|
collapsedWidth: L.number.def(48),
|
|
@@ -248,34 +249,34 @@ const ue = {
|
|
|
248
249
|
onCollapse: {
|
|
249
250
|
type: Function
|
|
250
251
|
}
|
|
251
|
-
},
|
|
252
|
-
function
|
|
252
|
+
}, mn = /(((^https?:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*#?\w*))$/, ft = (e) => mn.test(e);
|
|
253
|
+
function fn(e) {
|
|
253
254
|
return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
|
|
254
255
|
}
|
|
255
|
-
function
|
|
256
|
-
var
|
|
256
|
+
function gt(e, t, a, i) {
|
|
257
|
+
var u, h, m, w, p, O, g, T, l, r, I, R, v, y, f, C, F, c, S, M, B, P, H, z, D, V, _, G, Y, J, d, x, k, $;
|
|
257
258
|
const o = { ...e };
|
|
258
|
-
return a === "light" ? (o.colorItemBg = (
|
|
259
|
+
return a === "light" ? (o.colorItemBg = (h = (u = t.layout) == null ? void 0 : u[i]) == null ? void 0 : h.colorBgMenu, o.colorSubItemBg = (w = (m = t.layout) == null ? void 0 : m[i]) == null ? void 0 : w.colorSubItemBg, o.colorItemBgSelected = (O = (p = t.layout) == null ? void 0 : p[i]) == null ? void 0 : O.colorBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (T = (g = t.layout) == null ? void 0 : g[i]) == null ? void 0 : T.colorBgMenuItemSelected, o.colorItemText = (r = (l = t.layout) == null ? void 0 : l[i]) == null ? void 0 : r.colorTextMenu, o.colorItemTextHover = (R = (I = t.layout) == null ? void 0 : I[i]) == null ? void 0 : R.colorTextMenuHover, o.colorItemTextSelected = (y = (v = t.layout) == null ? void 0 : v[i]) == null ? void 0 : y.colorTextMenuSelected, o.colorItemTextSelectedHorizontal = (C = (f = t.layout) == null ? void 0 : f[i]) == null ? void 0 : C.colorTextMenuSelected, i === "sider" && (o.colorItemBgHover = (c = (F = t.layout) == null ? void 0 : F[i]) == null ? void 0 : c.colorBgMenuItemHover)) : a === "dark" && (o.colorItemBg = (M = (S = t.layout) == null ? void 0 : S[i]) == null ? void 0 : M.colorDarkBgMenu, o.colorSubItemBg = (P = (B = t.layout) == null ? void 0 : B[i]) == null ? void 0 : P.colorDarkSubItemBg, o.colorItemBgSelected = (z = (H = t.layout) == null ? void 0 : H[i]) == null ? void 0 : z.colorDarkBgMenuItemSelected, o.colorItemBgSelectedHorizontal = (V = (D = t.layout) == null ? void 0 : D[i]) == null ? void 0 : V.colorDarkBgMenuItemSelected, o.colorItemText = (G = (_ = t.layout) == null ? void 0 : _[i]) == null ? void 0 : G.colorDarkTextMenu, o.colorItemTextHover = (J = (Y = t.layout) == null ? void 0 : Y[i]) == null ? void 0 : J.colorDarkTextMenuHover, o.colorItemTextSelected = (x = (d = t.layout) == null ? void 0 : d[i]) == null ? void 0 : x.colorDarkTextMenuSelected, o.colorItemTextSelectedHorizontal = ($ = (k = t.layout) == null ? void 0 : k[i]) == null ? void 0 : $.colorDarkTextMenuSelected, i === "header" && (o.colorActiveBarHeight = 0)), o;
|
|
259
260
|
}
|
|
260
|
-
const
|
|
261
|
+
const gn = ["left", "right"], ue = ["left", "right", "down", "up"], hn = ["downBig", "upBig", "leftBig", "rightBig"], yn = ["topLeft", "bottomRight", "topRight", "bottomLeft"], bn = ["downLeft", "upRight", "downRight", "upLeft"], Ae = {
|
|
261
262
|
preset: [
|
|
262
|
-
|
|
263
|
-
{ name: "back", alias: "渐近", directions:
|
|
264
|
-
{ name: "bounce", alias: "弹跳", directions:
|
|
263
|
+
// 预设动画配置
|
|
264
|
+
{ name: "back", alias: "渐近", directions: ue },
|
|
265
|
+
{ name: "bounce", alias: "弹跳", directions: ue.concat("default") },
|
|
265
266
|
{
|
|
266
267
|
name: "fade",
|
|
267
268
|
alias: "淡化",
|
|
268
|
-
directions:
|
|
269
|
+
directions: ue.concat(hn).concat(yn).concat("default")
|
|
269
270
|
},
|
|
270
271
|
{ name: "flip", alias: "翻转", directions: ["x", "y"] },
|
|
271
|
-
{ name: "lightSpeed", alias: "光速", directions:
|
|
272
|
-
{ name: "rotate", alias: "旋转", directions:
|
|
272
|
+
{ name: "lightSpeed", alias: "光速", directions: gn },
|
|
273
|
+
{ name: "rotate", alias: "旋转", directions: bn.concat("default") },
|
|
273
274
|
{ name: "roll", alias: "翻滚", directions: ["default"] },
|
|
274
|
-
{ name: "zoom", alias: "缩放", directions:
|
|
275
|
-
{ name: "slide", alias: "滑动", directions:
|
|
275
|
+
{ name: "zoom", alias: "缩放", directions: ue.concat("default") },
|
|
276
|
+
{ name: "slide", alias: "滑动", directions: ue }
|
|
276
277
|
]
|
|
277
278
|
};
|
|
278
|
-
function
|
|
279
|
+
function pn(e) {
|
|
279
280
|
return e.map((t) => {
|
|
280
281
|
var i;
|
|
281
282
|
const a = { ...t };
|
|
@@ -283,34 +284,34 @@ function bn(e) {
|
|
|
283
284
|
return null;
|
|
284
285
|
if (a && (a != null && a.children)) {
|
|
285
286
|
if (a.children.some((o) => {
|
|
286
|
-
var
|
|
287
|
-
return o && !((
|
|
287
|
+
var u;
|
|
288
|
+
return o && !((u = o.meta) != null && u.hideInMenu);
|
|
288
289
|
}))
|
|
289
290
|
return {
|
|
290
291
|
...a,
|
|
291
|
-
children:
|
|
292
|
+
children: pn(a.children)
|
|
292
293
|
};
|
|
293
294
|
delete a.children;
|
|
294
295
|
}
|
|
295
296
|
return a;
|
|
296
297
|
}).filter((t) => t);
|
|
297
298
|
}
|
|
298
|
-
function
|
|
299
|
+
function vn(e) {
|
|
299
300
|
return e.map((t) => {
|
|
300
301
|
var i;
|
|
301
302
|
const a = { ...t };
|
|
302
|
-
return (i = a.meta) != null && i.hideInMenu ? null : (a.linkPath =
|
|
303
|
+
return (i = a.meta) != null && i.hideInMenu ? null : (a.linkPath = Cn(a.children || []), a.children && delete a.children, a);
|
|
303
304
|
}).filter((t) => t);
|
|
304
305
|
}
|
|
305
|
-
function
|
|
306
|
+
function xn(e, t) {
|
|
306
307
|
const a = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`, i = e.find((o) => o.path === a);
|
|
307
308
|
return t === void 0 ? [] : (i == null ? void 0 : i.children) || [];
|
|
308
309
|
}
|
|
309
|
-
function
|
|
310
|
+
function Cn(e) {
|
|
310
311
|
let t = "";
|
|
311
312
|
const a = function(o) {
|
|
312
|
-
let
|
|
313
|
-
return o.children && o.children.length > 0 ?
|
|
313
|
+
let u = "";
|
|
314
|
+
return o.children && o.children.length > 0 ? u = a(o.children[0]) : u = o.path, u;
|
|
314
315
|
}, i = e == null ? void 0 : e.filter((o) => !o.hidden);
|
|
315
316
|
if (i.length > 0 && i[0].children && i[0].children.length > 0)
|
|
316
317
|
t = a(i[0].children[0]);
|
|
@@ -320,34 +321,34 @@ function xn(e) {
|
|
|
320
321
|
}
|
|
321
322
|
return t;
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function Bi(e, t) {
|
|
324
325
|
var i, o;
|
|
325
|
-
const a = ((o = (i = e.find((
|
|
326
|
+
const a = ((o = (i = e.find((u) => u.path === t)) == null ? void 0 : i.meta) == null ? void 0 : o.key) || "";
|
|
326
327
|
if (a) {
|
|
327
|
-
const
|
|
328
|
-
for (let m = 0; m <
|
|
329
|
-
|
|
330
|
-
return e.filter((m) =>
|
|
328
|
+
const u = [], h = a.split("-");
|
|
329
|
+
for (let m = 0; m < h.length; m += 1)
|
|
330
|
+
u.push(He(h).splice(0, m + 1).join("-"));
|
|
331
|
+
return e.filter((m) => u.some((w) => {
|
|
331
332
|
var p;
|
|
332
333
|
return w === ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.key) || "";
|
|
333
334
|
}));
|
|
334
335
|
}
|
|
335
336
|
return [];
|
|
336
337
|
}
|
|
337
|
-
function
|
|
338
|
+
function wn(e) {
|
|
338
339
|
return e.layout === "mix" && (e.fixSiderbar = !0, e.fixedHeader = !0, e.splitMenus = !0), e.layout === "top" && (e.fixSiderbar = !1, e.fixedHeader = !0, e.splitMenus = !1), e.layout === "simple" && (e.splitMenus = !1, e.showTabsBar = !1), e.layout === "side" && (e.splitMenus = !1), e.layout === "wide" && (e.splitMenus = !1, e.fixSiderbar = !1, e.fixedHeader = !0, e.showTabsBar = !1, e.fixedMultiTab = !1), { ...e };
|
|
339
340
|
}
|
|
340
|
-
function
|
|
341
|
+
function Sn(e) {
|
|
341
342
|
const t = ["showTabsBar", "fixedMultiTab", "fixSiderbar", "fixedHeader", "splitMenus"];
|
|
342
|
-
let i = Object.keys(e).reduce((o,
|
|
343
|
-
return i =
|
|
343
|
+
let i = Object.keys(e).reduce((o, u) => (o[u] = !1, o), {});
|
|
344
|
+
return i = In(i, t), e.layout === "mix" && (i.fixSiderbar = !0, i.fixedHeader = !0), e.layout === "side" && (i.splitMenus = !0), e.layout === "simple" && (i.splitMenus = !0, i.fixedHeader = !0, i.showTabsBar = !0, i.fixedMultiTab = !0), e.layout === "wide" && (i.splitMenus = !0, i.fixedHeader = !0, i.fixSiderbar = !0, i.showTabsBar = !0, i.fixedMultiTab = !0), i;
|
|
344
345
|
}
|
|
345
|
-
function
|
|
346
|
+
function In(e, t) {
|
|
346
347
|
return {
|
|
347
348
|
...t.reduce((a, i) => ({ ...a, [i]: e[i] }), {})
|
|
348
349
|
};
|
|
349
350
|
}
|
|
350
|
-
const
|
|
351
|
+
const Mn = (e = Symbol(), t = "Context.Provider") => j({
|
|
351
352
|
name: t,
|
|
352
353
|
props: {
|
|
353
354
|
value: {
|
|
@@ -357,18 +358,18 @@ const In = (e = Symbol(), t = "Context.Provider") => W({
|
|
|
357
358
|
},
|
|
358
359
|
setup(i, { slots: o }) {
|
|
359
360
|
return it(e, Rt(i.value)), () => {
|
|
360
|
-
var
|
|
361
|
-
return (
|
|
361
|
+
var u;
|
|
362
|
+
return (u = o.default) == null ? void 0 : u.call(o);
|
|
362
363
|
};
|
|
363
364
|
}
|
|
364
|
-
}),
|
|
365
|
-
it(
|
|
366
|
-
},
|
|
365
|
+
}), Bn = (e = Symbol(), t) => kt(e, t || {}), je = Symbol("pro-layout-context"), On = () => Mn(je, "ProLayoutContext.Provider"), Rn = (e) => {
|
|
366
|
+
it(je, e);
|
|
367
|
+
}, ee = () => Bn(je);
|
|
367
368
|
On();
|
|
368
369
|
function qe(e) {
|
|
369
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
370
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
370
371
|
}
|
|
371
|
-
const
|
|
372
|
+
const Ce = (e) => {
|
|
372
373
|
const {
|
|
373
374
|
icon: t,
|
|
374
375
|
iconType: a,
|
|
@@ -377,29 +378,29 @@ const we = (e) => {
|
|
|
377
378
|
if (!t)
|
|
378
379
|
return null;
|
|
379
380
|
if (typeof t == "string" && t !== "") {
|
|
380
|
-
if (
|
|
381
|
+
if (ft(t) || fn(t))
|
|
381
382
|
return n("img", {
|
|
382
383
|
src: t,
|
|
383
384
|
alt: "icon",
|
|
384
385
|
class: `${e.className}-icon-image`
|
|
385
386
|
}, null);
|
|
386
387
|
if (a === 1) {
|
|
387
|
-
const
|
|
388
|
-
scriptUrl: i ||
|
|
388
|
+
const u = Wt({
|
|
389
|
+
scriptUrl: i || A.iconfontUrl
|
|
389
390
|
});
|
|
390
|
-
return i ? n(
|
|
391
|
+
return i ? n(u, {
|
|
391
392
|
type: t
|
|
392
393
|
}, null) : n("i", {
|
|
393
394
|
class: `iconfont ${t} ${e.className}-icon`
|
|
394
395
|
}, null);
|
|
395
396
|
}
|
|
396
397
|
}
|
|
397
|
-
if (
|
|
398
|
+
if (ie(t))
|
|
398
399
|
return t;
|
|
399
400
|
const o = lt(t);
|
|
400
|
-
return typeof
|
|
401
|
+
return typeof Ce == "function" && n(o, null, null) || null;
|
|
401
402
|
};
|
|
402
|
-
|
|
403
|
+
Ce.props = {
|
|
403
404
|
icon: {
|
|
404
405
|
type: [String, Function, Object]
|
|
405
406
|
},
|
|
@@ -407,36 +408,61 @@ we.props = {
|
|
|
407
408
|
className: String,
|
|
408
409
|
iconfontUrl: String
|
|
409
410
|
};
|
|
410
|
-
const
|
|
411
|
+
const ht = /* @__PURE__ */ j({
|
|
411
412
|
name: "BaseMenu",
|
|
412
|
-
props:
|
|
413
|
+
props: Me,
|
|
413
414
|
setup(e) {
|
|
414
|
-
const t =
|
|
415
|
+
const t = De(), {
|
|
415
416
|
getPrefixCls: a
|
|
416
|
-
} =
|
|
417
|
+
} = ee(), i = a({
|
|
417
418
|
suffixCls: "menu-item",
|
|
418
419
|
isPor: !0
|
|
419
420
|
}), o = (l) => {
|
|
420
421
|
var r;
|
|
421
422
|
(r = e.onOpenKeys) == null || r.call(e, l);
|
|
422
|
-
},
|
|
423
|
+
}, u = (l) => {
|
|
423
424
|
var r;
|
|
424
425
|
(r = e.onSelect) == null || r.call(e, l.selectedKeys);
|
|
425
|
-
},
|
|
426
|
+
}, h = (l) => {
|
|
426
427
|
var r;
|
|
427
428
|
(r = e.onClick) == null || r.call(e, ...l);
|
|
428
429
|
}, m = (l, r) => {
|
|
429
|
-
var
|
|
430
|
-
const I = l.target || "",
|
|
431
|
-
((
|
|
432
|
-
}, w = lt("router-link"), p = (l
|
|
433
|
-
var
|
|
434
|
-
|
|
435
|
-
|
|
430
|
+
var v;
|
|
431
|
+
const I = l.target || "", R = ft(I);
|
|
432
|
+
((v = t.currentRoute.value) == null ? void 0 : v.fullPath) !== r.to && R && I && l.targetStatus === 1 && window.open(I);
|
|
433
|
+
}, w = lt("router-link"), p = (l) => {
|
|
434
|
+
var C, F, c, S, M;
|
|
435
|
+
const r = {
|
|
436
|
+
...l.meta
|
|
437
|
+
}, I = r.targetStatus === 1 && r.target ? "a" : w, R = {
|
|
438
|
+
to: l.linkPath || l.path || ""
|
|
439
|
+
}, v = (C = l.meta) == null ? void 0 : C.title, y = (F = l.meta) != null && F.icon ? n(I, q(R, {
|
|
440
|
+
class: "gx-pro-sider-menu-item",
|
|
441
|
+
onClick: () => m(r, R)
|
|
442
|
+
}), {
|
|
443
|
+
default: () => [n("span", {
|
|
444
|
+
class: "gx-pro-sider-menu-item-title"
|
|
445
|
+
}, [v])]
|
|
446
|
+
}) : n(I, q(R, {
|
|
447
|
+
class: "gx-pro-sider-menu-item",
|
|
448
|
+
onClick: () => m(r, R)
|
|
449
|
+
}), {
|
|
450
|
+
default: () => [n("span", null, [v])]
|
|
451
|
+
}), f = ((c = l.meta) == null ? void 0 : c.icon) && n(Ce, {
|
|
452
|
+
className: i,
|
|
453
|
+
icon: (S = l.meta) == null ? void 0 : S.icon,
|
|
454
|
+
iconfontUrl: e.iconfontUrl,
|
|
455
|
+
iconType: (M = l.meta) == null ? void 0 : M.iconType
|
|
456
|
+
}, null) || void 0;
|
|
457
|
+
return [y, f];
|
|
458
|
+
}, O = (l) => {
|
|
459
|
+
var R, v, y, f, C, F, c, S, M;
|
|
460
|
+
if (Array.isArray(l.children) && l.children.length > 0 && !((R = l == null ? void 0 : l.meta) != null && R.hideInMenu) && !((v = l == null ? void 0 : l.meta) != null && v.hideChildrenInMenu)) {
|
|
461
|
+
let B;
|
|
436
462
|
if (e.subMenuItemRender)
|
|
437
463
|
return e.subMenuItemRender({
|
|
438
464
|
item: l,
|
|
439
|
-
children:
|
|
465
|
+
children: g(l.children)
|
|
440
466
|
});
|
|
441
467
|
const P = (y = l.meta) == null ? void 0 : y.title, H = (f = l.meta) != null && f.icon ? n("span", {
|
|
442
468
|
class: "gx-pro-sider-menu-item"
|
|
@@ -444,26 +470,26 @@ const gt = /* @__PURE__ */ W({
|
|
|
444
470
|
class: "gx-pro-sider-menu-item-title"
|
|
445
471
|
}, [P])]) : n("span", {
|
|
446
472
|
class: "gx-pro-sider-menu-item"
|
|
447
|
-
}, [P]),
|
|
473
|
+
}, [P]), z = ((C = l.meta) == null ? void 0 : C.type) === "group", D = z ? ae.ItemGroup : ae.SubMenu;
|
|
448
474
|
return n(D, {
|
|
449
475
|
title: H,
|
|
450
476
|
key: l.path,
|
|
451
|
-
icon:
|
|
477
|
+
icon: z ? null : n(Ce, {
|
|
452
478
|
className: i,
|
|
453
|
-
icon: (
|
|
479
|
+
icon: (F = l.meta) == null ? void 0 : F.icon,
|
|
454
480
|
iconfontUrl: e.iconfontUrl,
|
|
455
|
-
iconType: (
|
|
481
|
+
iconType: (c = l.meta) == null ? void 0 : c.iconType
|
|
456
482
|
}, null)
|
|
457
|
-
}, qe(
|
|
458
|
-
default: () => [
|
|
483
|
+
}, qe(B = g(l.children)) ? B : {
|
|
484
|
+
default: () => [B]
|
|
459
485
|
});
|
|
460
486
|
}
|
|
461
|
-
const [r, I] =
|
|
487
|
+
const [r, I] = p(l);
|
|
462
488
|
return e.menuItemRender && e.menuItemRender({
|
|
463
489
|
item: l,
|
|
464
490
|
title: r,
|
|
465
491
|
icon: I
|
|
466
|
-
}) || n(
|
|
492
|
+
}) || n(ae.Item, {
|
|
467
493
|
disabled: (S = l.meta) == null ? void 0 : S.disabled,
|
|
468
494
|
danger: (M = l.meta) == null ? void 0 : M.danger,
|
|
469
495
|
key: l.path,
|
|
@@ -471,47 +497,26 @@ const gt = /* @__PURE__ */ W({
|
|
|
471
497
|
}, qe(r) ? r : {
|
|
472
498
|
default: () => [r]
|
|
473
499
|
});
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
}, x = (C = l.meta) == null ? void 0 : C.title, y = ($ = l.meta) != null && $.icon ? n(I, G(k, {
|
|
481
|
-
class: "gx-pro-sider-menu-item",
|
|
482
|
-
onClick: () => m(r, k)
|
|
483
|
-
}), {
|
|
484
|
-
default: () => [n("span", {
|
|
485
|
-
class: "gx-pro-sider-menu-item-title"
|
|
486
|
-
}, [x])]
|
|
487
|
-
}) : n(I, G(k, {
|
|
488
|
-
class: "gx-pro-sider-menu-item",
|
|
489
|
-
onClick: () => m(r, k)
|
|
490
|
-
}), {
|
|
491
|
-
default: () => [n("span", null, [x])]
|
|
492
|
-
}), f = ((u = l.meta) == null ? void 0 : u.icon) && n(we, {
|
|
493
|
-
className: i,
|
|
494
|
-
icon: (S = l.meta) == null ? void 0 : S.icon,
|
|
495
|
-
iconfontUrl: e.iconfontUrl,
|
|
496
|
-
iconType: (M = l.meta) == null ? void 0 : M.iconType
|
|
497
|
-
}, null) || void 0;
|
|
498
|
-
return [y, f];
|
|
499
|
-
}, T = b(() => p(e.menuData));
|
|
500
|
-
return () => n(ie, G({
|
|
500
|
+
};
|
|
501
|
+
function g(l = []) {
|
|
502
|
+
return l.map((r) => O(r)).filter((r) => r);
|
|
503
|
+
}
|
|
504
|
+
const T = b(() => g(e.menuData));
|
|
505
|
+
return () => n(ae, q({
|
|
501
506
|
key: "Menu",
|
|
502
507
|
inlineIndent: 16,
|
|
503
508
|
mode: e.mode,
|
|
504
509
|
theme: e.theme,
|
|
505
|
-
openKeys: e.openKeys === !1 ? [] : e.openKeys,
|
|
510
|
+
openKeys: e.openKeys === !1 ? [] : ct(e.openKeys) ? e.openKeys : [],
|
|
506
511
|
selectedKeys: e.selectedKeys || [],
|
|
507
|
-
onOpenChange: o,
|
|
508
|
-
onSelect:
|
|
509
|
-
onClick:
|
|
512
|
+
onOpenChange: (l) => o(l),
|
|
513
|
+
onSelect: u,
|
|
514
|
+
onClick: h
|
|
510
515
|
}, e.menuProps), {
|
|
511
516
|
default: () => [T.value]
|
|
512
517
|
});
|
|
513
518
|
}
|
|
514
|
-
}),
|
|
519
|
+
}), yt = new s("pro-layout-title-hide", {
|
|
515
520
|
"0%": { display: "none", opacity: 0 },
|
|
516
521
|
"99%": {
|
|
517
522
|
display: "none",
|
|
@@ -532,8 +537,8 @@ const gt = /* @__PURE__ */ W({
|
|
|
532
537
|
}
|
|
533
538
|
}
|
|
534
539
|
};
|
|
535
|
-
},
|
|
536
|
-
var t, a, i, o,
|
|
540
|
+
}, Fn = (e) => {
|
|
541
|
+
var t, a, i, o, u, h, m, w, p, O, g, T;
|
|
537
542
|
return {
|
|
538
543
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
539
544
|
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
@@ -566,7 +571,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
566
571
|
background: (o = (i = e.layout) == null ? void 0 : i.sider) == null ? void 0 : o.colorBgMenu,
|
|
567
572
|
boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
|
|
568
573
|
[`${e.componentCls}-footer`]: {
|
|
569
|
-
color: (
|
|
574
|
+
color: (h = (u = e.layout) == null ? void 0 : u.sider) == null ? void 0 : h.colorTextMenu
|
|
570
575
|
}
|
|
571
576
|
},
|
|
572
577
|
"&-links": {
|
|
@@ -585,7 +590,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
585
590
|
color: (w = (m = e.layout) == null ? void 0 : m.sider) == null ? void 0 : w.colorDarkTextMenu,
|
|
586
591
|
paddingBlockEnd: 16,
|
|
587
592
|
fontSize: e.fontSize,
|
|
588
|
-
animationName:
|
|
593
|
+
animationName: yt,
|
|
589
594
|
animationDuration: ".4s",
|
|
590
595
|
animationTimingFunction: "ease"
|
|
591
596
|
}
|
|
@@ -597,8 +602,8 @@ const gt = /* @__PURE__ */ W({
|
|
|
597
602
|
zIndex: "100",
|
|
598
603
|
height: "100%",
|
|
599
604
|
"&-mix": {
|
|
600
|
-
height: `calc(100% - ${((
|
|
601
|
-
insetBlockStart: `${((T = (
|
|
605
|
+
height: `calc(100% - ${((O = (p = e.layout) == null ? void 0 : p.header) == null ? void 0 : O.heightLayoutHeader) || A.headerHeight}px)`,
|
|
606
|
+
insetBlockStart: `${((T = (g = e.layout) == null ? void 0 : g.header) == null ? void 0 : T.heightLayoutHeader) || A.headerHeight}px`
|
|
602
607
|
}
|
|
603
608
|
}
|
|
604
609
|
}
|
|
@@ -612,7 +617,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
612
617
|
}
|
|
613
618
|
}
|
|
614
619
|
}
|
|
615
|
-
}),
|
|
620
|
+
}), Tn = (e) => ({
|
|
616
621
|
[`${e.proComponentsCls}-sider`]: {
|
|
617
622
|
"&-light": {
|
|
618
623
|
[`${e.proComponentsCls}-sider-logo`]: {
|
|
@@ -646,7 +651,7 @@ const gt = /* @__PURE__ */ W({
|
|
|
646
651
|
marginInlineEnd: 0,
|
|
647
652
|
marginInlineStart: 12,
|
|
648
653
|
color: e.colorWhite,
|
|
649
|
-
animationName:
|
|
654
|
+
animationName: yt,
|
|
650
655
|
animationDuration: ".2s",
|
|
651
656
|
fontWeight: 600,
|
|
652
657
|
fontSize: 18,
|
|
@@ -671,38 +676,38 @@ const gt = /* @__PURE__ */ W({
|
|
|
671
676
|
}
|
|
672
677
|
}
|
|
673
678
|
}
|
|
674
|
-
}),
|
|
679
|
+
}), bt = (e, t) => e ? typeof e == "string" ? n("img", {
|
|
675
680
|
src: e,
|
|
676
681
|
alt: "logo",
|
|
677
682
|
style: t
|
|
678
|
-
}, null) : typeof e == "function" ? e() : e : null,
|
|
683
|
+
}, null) : typeof e == "function" ? e() : e : null, Pn = (e, t = "menuHeaderRender") => {
|
|
679
684
|
const {
|
|
680
685
|
logo: a,
|
|
681
686
|
logoStyle: i,
|
|
682
687
|
title: o,
|
|
683
|
-
layout:
|
|
684
|
-
} = e,
|
|
685
|
-
if (
|
|
688
|
+
layout: u
|
|
689
|
+
} = e, h = e[t || ""];
|
|
690
|
+
if (h === !1)
|
|
686
691
|
return null;
|
|
687
|
-
const m =
|
|
688
|
-
return typeof
|
|
689
|
-
},
|
|
692
|
+
const m = bt(a, i), w = o && n("h1", null, [o]);
|
|
693
|
+
return typeof h == "function" ? h(m, e.collapsed ? null : w, e) : n(Q, null, [m || null, e.collapsed && u === "side" ? null : w]);
|
|
694
|
+
}, We = /* @__PURE__ */ j({
|
|
690
695
|
name: "LogoContent",
|
|
691
|
-
props:
|
|
696
|
+
props: re,
|
|
692
697
|
setup(e) {
|
|
693
698
|
const {
|
|
694
699
|
getPrefixCls: t
|
|
695
|
-
} =
|
|
700
|
+
} = ee(), a = b(() => e.layout === "side" || e.layout === "simple"), i = b(() => t({
|
|
696
701
|
suffixCls: a.value || e.drawer ? "sider" : "global-header",
|
|
697
702
|
isPor: !0
|
|
698
703
|
})), {
|
|
699
704
|
wrapSSR: o,
|
|
700
|
-
hashId:
|
|
701
|
-
} =
|
|
705
|
+
hashId: u
|
|
706
|
+
} = ne("ProLayoutLogo", [Tn]), h = b(() => Pn(e, e.renderKey));
|
|
702
707
|
return () => o(n("div", {
|
|
703
708
|
id: "logo",
|
|
704
709
|
class: {
|
|
705
|
-
[`${
|
|
710
|
+
[`${u.value}`]: !0,
|
|
706
711
|
[`${i.value}-logo`]: !0,
|
|
707
712
|
[`${i.value}-logo-collapsed`]: !!e.collapsed
|
|
708
713
|
},
|
|
@@ -710,18 +715,18 @@ const gt = /* @__PURE__ */ W({
|
|
|
710
715
|
var m;
|
|
711
716
|
return (m = e.onMenuHeaderClick) == null ? void 0 : m.call(e);
|
|
712
717
|
}
|
|
713
|
-
}, [n("a", null, [
|
|
718
|
+
}, [n("a", null, [h.value || null])]));
|
|
714
719
|
}
|
|
715
720
|
});
|
|
716
|
-
|
|
717
|
-
function
|
|
718
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
721
|
+
We.inheritAttrs = !1;
|
|
722
|
+
function Ln(e) {
|
|
723
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
719
724
|
}
|
|
720
725
|
const {
|
|
721
|
-
Sider:
|
|
722
|
-
} =
|
|
726
|
+
Sider: Dn
|
|
727
|
+
} = ce, {
|
|
723
728
|
Item: Ze
|
|
724
|
-
} =
|
|
729
|
+
} = ae, pt = (e) => e ? n(Kt, null, null) : n(Ut, null, null), Je = /* @__PURE__ */ j({
|
|
725
730
|
props: Z,
|
|
726
731
|
inheritAttrs: !1,
|
|
727
732
|
setup(e) {
|
|
@@ -730,56 +735,56 @@ const {
|
|
|
730
735
|
selectedKeys: a,
|
|
731
736
|
flatMenuData: i,
|
|
732
737
|
menuData: o,
|
|
733
|
-
openKeys:
|
|
734
|
-
} =
|
|
735
|
-
indicator:
|
|
736
|
-
} =
|
|
738
|
+
openKeys: u
|
|
739
|
+
} = ee(), {
|
|
740
|
+
indicator: h
|
|
741
|
+
} = Le(), {
|
|
737
742
|
token: m
|
|
738
|
-
} =
|
|
743
|
+
} = fe(), {
|
|
739
744
|
theme: w,
|
|
740
745
|
layout: p,
|
|
741
|
-
isMobile:
|
|
742
|
-
menuLoading:
|
|
746
|
+
isMobile: O,
|
|
747
|
+
menuLoading: g,
|
|
743
748
|
breakpoint: T,
|
|
744
749
|
fixSiderbar: l,
|
|
745
750
|
collapsed: r,
|
|
746
751
|
siderWidth: I,
|
|
747
|
-
collapsedWidth:
|
|
748
|
-
menuExtraRender:
|
|
752
|
+
collapsedWidth: R,
|
|
753
|
+
menuExtraRender: v,
|
|
749
754
|
menuContentRender: y,
|
|
750
755
|
menuFooterRender: f,
|
|
751
756
|
collapsedButtonRender: C,
|
|
752
|
-
links:
|
|
753
|
-
} =
|
|
757
|
+
links: F
|
|
758
|
+
} = Se(e), c = t({
|
|
754
759
|
suffixCls: "sider",
|
|
755
760
|
isPor: !0
|
|
756
761
|
}), {
|
|
757
762
|
wrapSSR: S,
|
|
758
763
|
hashId: M
|
|
759
|
-
} =
|
|
760
|
-
var
|
|
761
|
-
return typeof
|
|
762
|
-
}),
|
|
763
|
-
var
|
|
764
|
+
} = ne("ProLayoutSiderMenu", [kn, Fn, $n], c), B = b(() => e.layout === "wide"), P = b(() => e.layout === "mix" && !e.isMobile && e.splitMenus), H = b(() => p.value === "side" || p.value === "simple"), z = b(() => (e.layout === "mix" || B.value) && "light" || w.value), D = b(() => p.value === "top" ? [] : o.value), V = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), _ = b(() => [M.value, c, O.value ? "shadow" : null, `${c}-${z.value}`, l.value && e.layout !== "wide" ? `${c}-fixed` : null]), G = b(() => {
|
|
765
|
+
var d;
|
|
766
|
+
return typeof F.value == "function" ? (d = F.value) == null ? void 0 : d.call(F) : F.value;
|
|
767
|
+
}), Y = b(() => C.value !== !1 ? C.value || pt : !1), J = (d) => {
|
|
768
|
+
var x;
|
|
764
769
|
if (e.onSelect) {
|
|
765
|
-
if (
|
|
766
|
-
e.onSelect([(
|
|
770
|
+
if (X(P)) {
|
|
771
|
+
e.onSelect([(x = a == null ? void 0 : a.value) == null ? void 0 : x[0], ...d]);
|
|
767
772
|
return;
|
|
768
773
|
}
|
|
769
|
-
e.onSelect(
|
|
774
|
+
e.onSelect(d);
|
|
770
775
|
}
|
|
771
776
|
};
|
|
772
777
|
return () => {
|
|
773
|
-
var
|
|
774
|
-
const
|
|
775
|
-
drawer:
|
|
776
|
-
}, e), null) : null,
|
|
777
|
-
class: `${
|
|
778
|
-
theme:
|
|
778
|
+
var $;
|
|
779
|
+
const d = H.value ? n(We, q({
|
|
780
|
+
drawer: O.value
|
|
781
|
+
}, e), null) : null, x = v.value && (($ = v.value) == null ? void 0 : $.call(v, e)), k = n(ht, {
|
|
782
|
+
class: `${c}-menu ${M.value}`,
|
|
783
|
+
theme: z.value,
|
|
779
784
|
mode: "inline",
|
|
780
785
|
menuData: P.value ? i.value : D.value,
|
|
781
786
|
iconfontUrl: e.iconfontUrl,
|
|
782
|
-
openKeys:
|
|
787
|
+
openKeys: u.value,
|
|
783
788
|
selectedKeys: a.value,
|
|
784
789
|
menuItemRender: e.menuItemRender,
|
|
785
790
|
subMenuItemRender: e.subMenuItemRender,
|
|
@@ -787,22 +792,22 @@ const {
|
|
|
787
792
|
style: {
|
|
788
793
|
width: "100%"
|
|
789
794
|
},
|
|
790
|
-
onOpenKeys: (
|
|
791
|
-
var
|
|
792
|
-
return e.onOpenKeys && ((
|
|
795
|
+
onOpenKeys: (N) => {
|
|
796
|
+
var K;
|
|
797
|
+
return e.onOpenKeys && ((K = e.onOpenKeys) == null ? void 0 : K.call(e, N));
|
|
793
798
|
},
|
|
794
799
|
onSelect: J
|
|
795
800
|
}, null);
|
|
796
|
-
return P.value &&
|
|
801
|
+
return P.value && X(i.value).length === 0 || D.value.length === 0 ? null : S(n(Te, {
|
|
797
802
|
theme: {
|
|
798
803
|
components: {
|
|
799
|
-
Menu:
|
|
804
|
+
Menu: gt({
|
|
800
805
|
radiusItem: 4,
|
|
801
806
|
colorActiveBarWidth: 0,
|
|
802
807
|
colorActiveBarHeight: 0,
|
|
803
808
|
colorActiveBarBorderSize: 0
|
|
804
809
|
// 主题颜色
|
|
805
|
-
}, (m == null ? void 0 : m.value) || {},
|
|
810
|
+
}, (m == null ? void 0 : m.value) || {}, z.value, "sider")
|
|
806
811
|
}
|
|
807
812
|
}
|
|
808
813
|
}, {
|
|
@@ -815,79 +820,79 @@ const {
|
|
|
815
820
|
minWidth: `${V.value}px`,
|
|
816
821
|
transition: "background-color 0.2s, min-width 0.2s, max-width 0.2s"
|
|
817
822
|
}
|
|
818
|
-
}, null), n(
|
|
823
|
+
}, null), n(Dn, {
|
|
819
824
|
collapsible: !0,
|
|
820
825
|
trigger: null,
|
|
821
|
-
class:
|
|
826
|
+
class: _.value,
|
|
822
827
|
style: {
|
|
823
828
|
overflow: "hidden",
|
|
824
829
|
zIndex: l.value ? 101 : void 0,
|
|
825
|
-
paddingTop: H.value || e.isMobile ||
|
|
830
|
+
paddingTop: H.value || e.isMobile || B.value ? 0 : `${e.headerHeight}px`,
|
|
826
831
|
top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
|
|
827
832
|
height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
|
|
828
833
|
},
|
|
829
|
-
theme:
|
|
834
|
+
theme: z.value,
|
|
830
835
|
breakpoint: T.value || void 0,
|
|
831
836
|
collapsed: r.value,
|
|
832
837
|
width: I.value,
|
|
833
|
-
collapsedWidth:
|
|
838
|
+
collapsedWidth: R.value
|
|
834
839
|
}, {
|
|
835
840
|
default: () => {
|
|
836
|
-
var
|
|
837
|
-
return [
|
|
841
|
+
var N, K;
|
|
842
|
+
return [g.value && n("div", {
|
|
838
843
|
class: ["gx-pro-sider-loading", M.value]
|
|
839
|
-
}, [n(
|
|
840
|
-
spinning:
|
|
841
|
-
indicator:
|
|
842
|
-
}, null)]),
|
|
844
|
+
}, [n(xe, {
|
|
845
|
+
spinning: g.value,
|
|
846
|
+
indicator: h == null ? void 0 : h.value
|
|
847
|
+
}, null)]), d || null, x && !e.collapsed && n("div", {
|
|
843
848
|
class: {
|
|
844
849
|
[`${M.value}`]: !0,
|
|
845
|
-
[`${
|
|
846
|
-
[`${
|
|
850
|
+
[`${c}-extra`]: !0,
|
|
851
|
+
[`${c}-extra-no-logo`]: !d
|
|
847
852
|
}
|
|
848
|
-
}, [
|
|
853
|
+
}, [x]), n("div", {
|
|
849
854
|
style: {
|
|
850
855
|
flex: "1 1 0%",
|
|
851
856
|
overflow: "hidden auto"
|
|
852
857
|
}
|
|
853
|
-
}, [y.value && ((
|
|
854
|
-
class: `${
|
|
855
|
-
}, [n(
|
|
856
|
-
theme:
|
|
858
|
+
}, [y.value && ((N = y.value) == null ? void 0 : N.call(y, e, k)) || k]), e.layout !== "wide" && n("div", {
|
|
859
|
+
class: `${c}-links ${M.value}`
|
|
860
|
+
}, [n(ae, {
|
|
861
|
+
theme: z.value,
|
|
857
862
|
inlineIndent: 16,
|
|
858
|
-
class: `${
|
|
863
|
+
class: `${c}-link-menu ${M.value}`,
|
|
859
864
|
selectedKeys: [],
|
|
860
865
|
openKeys: [],
|
|
861
866
|
mode: "inline"
|
|
862
867
|
}, {
|
|
863
|
-
default: () => [(
|
|
864
|
-
class: `${
|
|
865
|
-
key:
|
|
866
|
-
},
|
|
867
|
-
default: () => [
|
|
868
|
-
})),
|
|
869
|
-
class: `${
|
|
868
|
+
default: () => [(G.value || []).map((W, ge) => n(Ze, {
|
|
869
|
+
class: `${c}-link ${M.value}`,
|
|
870
|
+
key: ge
|
|
871
|
+
}, Ln(W) ? W : {
|
|
872
|
+
default: () => [W]
|
|
873
|
+
})), Y.value && !O.value && n(Ze, {
|
|
874
|
+
class: `${c}-collapsed-button ${M.value}`,
|
|
870
875
|
title: !1,
|
|
871
876
|
key: "collapsed",
|
|
872
877
|
onClick: () => {
|
|
873
|
-
var
|
|
874
|
-
e.onCollapse && ((
|
|
878
|
+
var W;
|
|
879
|
+
e.onCollapse && ((W = e.onCollapse) == null || W.call(e, !r.value));
|
|
875
880
|
}
|
|
876
881
|
}, {
|
|
877
882
|
default: () => {
|
|
878
|
-
var
|
|
879
|
-
return [(
|
|
883
|
+
var W;
|
|
884
|
+
return [(W = Y.value) == null ? void 0 : W.call(Y, r.value)];
|
|
880
885
|
}
|
|
881
886
|
})]
|
|
882
887
|
})]), f.value && n("div", {
|
|
883
|
-
class: `${
|
|
884
|
-
}, [(
|
|
888
|
+
class: `${c}-footer ${M.value}`
|
|
889
|
+
}, [(K = f.value) == null ? void 0 : K.call(f, e)])];
|
|
885
890
|
}
|
|
886
891
|
})]
|
|
887
892
|
}));
|
|
888
893
|
};
|
|
889
894
|
}
|
|
890
|
-
}),
|
|
895
|
+
}), Re = /* @__PURE__ */ j({
|
|
891
896
|
name: "SiderMenuWrapper",
|
|
892
897
|
inheritAttrs: !1,
|
|
893
898
|
props: {
|
|
@@ -898,7 +903,7 @@ const {
|
|
|
898
903
|
}
|
|
899
904
|
},
|
|
900
905
|
setup(e) {
|
|
901
|
-
return () => n(Q, null, [e.isMobile ? n(
|
|
906
|
+
return () => n(Q, null, [e.isMobile ? n(pe, {
|
|
902
907
|
maskClosable: !0,
|
|
903
908
|
open: !e.collapsed,
|
|
904
909
|
closable: !1,
|
|
@@ -917,12 +922,12 @@ const {
|
|
|
917
922
|
flexDirection: "row"
|
|
918
923
|
}
|
|
919
924
|
}, {
|
|
920
|
-
default: () => [n(Je,
|
|
925
|
+
default: () => [n(Je, q(e, {
|
|
921
926
|
collapsed: e.isMobile ? !1 : e.collapsed
|
|
922
927
|
}), null)]
|
|
923
928
|
}) : n(Je, e, null)]);
|
|
924
929
|
}
|
|
925
|
-
}),
|
|
930
|
+
}), vt = {
|
|
926
931
|
usePageCard: {
|
|
927
932
|
type: Boolean,
|
|
928
933
|
default: () => {
|
|
@@ -940,7 +945,7 @@ const {
|
|
|
940
945
|
default: () => {
|
|
941
946
|
}
|
|
942
947
|
}
|
|
943
|
-
},
|
|
948
|
+
}, we = {
|
|
944
949
|
pageChildrenExtraRender: {
|
|
945
950
|
type: [Object, Function, Boolean],
|
|
946
951
|
default: () => {
|
|
@@ -958,8 +963,8 @@ const {
|
|
|
958
963
|
},
|
|
959
964
|
pageHeaderStyle: L.style,
|
|
960
965
|
loading: L.bool.def(!1),
|
|
961
|
-
...
|
|
962
|
-
},
|
|
966
|
+
...vt
|
|
967
|
+
}, Nn = (e) => ({
|
|
963
968
|
[e.componentCls]: {
|
|
964
969
|
background: e.colorBgContainer,
|
|
965
970
|
padding: `${e.paddingLG}px`,
|
|
@@ -970,23 +975,23 @@ const {
|
|
|
970
975
|
marginTop: "8px"
|
|
971
976
|
}
|
|
972
977
|
}
|
|
973
|
-
}),
|
|
978
|
+
}), zn = /* @__PURE__ */ j({
|
|
974
979
|
name: "ProPageHeader",
|
|
975
980
|
props: {
|
|
976
|
-
content:
|
|
977
|
-
breadcrumb:
|
|
981
|
+
content: we.contentRender,
|
|
982
|
+
breadcrumb: we.breadcrumbRender
|
|
978
983
|
},
|
|
979
984
|
setup(e) {
|
|
980
985
|
const {
|
|
981
986
|
breadcrumb: t,
|
|
982
987
|
getPrefixCls: a
|
|
983
|
-
} =
|
|
988
|
+
} = ee(), i = a({
|
|
984
989
|
isPor: !0,
|
|
985
990
|
suffixCls: "page-header"
|
|
986
991
|
}), {
|
|
987
992
|
wrapSSR: o,
|
|
988
|
-
hashId:
|
|
989
|
-
} =
|
|
993
|
+
hashId: u
|
|
994
|
+
} = ne("ProPageHeader", [Nn], i), h = b(() => {
|
|
990
995
|
var m;
|
|
991
996
|
return {
|
|
992
997
|
...t.value,
|
|
@@ -1002,14 +1007,14 @@ const {
|
|
|
1002
1007
|
return () => {
|
|
1003
1008
|
var m, w;
|
|
1004
1009
|
return o(n("div", {
|
|
1005
|
-
class: [`${i}`,
|
|
1006
|
-
}, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e,
|
|
1007
|
-
class: [`${i}-content`,
|
|
1010
|
+
class: [`${i}`, u.value, `${i}-has-breadcrumb`]
|
|
1011
|
+
}, [e.breadcrumb ? (m = e.breadcrumb) == null ? void 0 : m.call(e, h.value) : n(Lt, h.value, null), e.content && n("div", {
|
|
1012
|
+
class: [`${i}-content`, u.value]
|
|
1008
1013
|
}, [(w = e.content) == null ? void 0 : w.call(e)])]));
|
|
1009
1014
|
};
|
|
1010
1015
|
}
|
|
1011
|
-
}),
|
|
1012
|
-
var t, a, i, o,
|
|
1016
|
+
}), Hn = (e) => {
|
|
1017
|
+
var t, a, i, o, u, h, m, w;
|
|
1013
1018
|
return {
|
|
1014
1019
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1015
1020
|
[e.componentCls]: {
|
|
@@ -1022,28 +1027,28 @@ const {
|
|
|
1022
1027
|
},
|
|
1023
1028
|
[e.componentCls]: {
|
|
1024
1029
|
"&-children-content": {
|
|
1025
|
-
marginInline: ((
|
|
1030
|
+
marginInline: ((h = (u = e.layout) == null ? void 0 : u.pageContainer) == null ? void 0 : h.marginInlinePageContainerContent) ?? 24,
|
|
1026
1031
|
marginBlockStart: ((w = (m = e.layout) == null ? void 0 : m.pageContainer) == null ? void 0 : w.marginBlockPageContainerContent) ?? 24,
|
|
1027
1032
|
padding: "inherit"
|
|
1028
1033
|
}
|
|
1029
1034
|
}
|
|
1030
1035
|
};
|
|
1031
1036
|
};
|
|
1032
|
-
function
|
|
1033
|
-
return
|
|
1034
|
-
const a =
|
|
1037
|
+
function Vn(e) {
|
|
1038
|
+
return Ne("ProPageContainter", (t) => {
|
|
1039
|
+
const a = ze(t, {
|
|
1035
1040
|
gridContent: `${t.proComponentsCls}-grid-content`
|
|
1036
1041
|
});
|
|
1037
|
-
return [
|
|
1042
|
+
return [Hn(a)];
|
|
1038
1043
|
}, e);
|
|
1039
1044
|
}
|
|
1040
|
-
function
|
|
1041
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1045
|
+
function An(e) {
|
|
1046
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
1042
1047
|
}
|
|
1043
|
-
const
|
|
1048
|
+
const Oi = /* @__PURE__ */ j({
|
|
1044
1049
|
inheritAttrs: !1,
|
|
1045
1050
|
name: "GProPageContainer",
|
|
1046
|
-
props:
|
|
1051
|
+
props: we,
|
|
1047
1052
|
setup(e, {
|
|
1048
1053
|
slots: t,
|
|
1049
1054
|
attrs: a
|
|
@@ -1051,82 +1056,82 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1051
1056
|
const {
|
|
1052
1057
|
getPrefixCls: i,
|
|
1053
1058
|
hasContentWide: o,
|
|
1054
|
-
waterMark:
|
|
1055
|
-
pageHeaderRender:
|
|
1059
|
+
waterMark: u,
|
|
1060
|
+
pageHeaderRender: h,
|
|
1056
1061
|
pageContentStyle: m,
|
|
1057
1062
|
pageChildrenContentStyle: w,
|
|
1058
1063
|
pageCardProps: p,
|
|
1059
|
-
usePageCard:
|
|
1060
|
-
waterMarkProps:
|
|
1061
|
-
} =
|
|
1064
|
+
usePageCard: O,
|
|
1065
|
+
waterMarkProps: g
|
|
1066
|
+
} = ee(), {
|
|
1062
1067
|
indicator: T
|
|
1063
|
-
} =
|
|
1068
|
+
} = Le(), l = fe(), r = i({
|
|
1064
1069
|
suffixCls: "page-container",
|
|
1065
1070
|
isPor: !0
|
|
1066
1071
|
}), I = i({
|
|
1067
1072
|
suffixCls: "grid-content",
|
|
1068
1073
|
isPor: !0
|
|
1069
|
-
}),
|
|
1070
|
-
wrapSSR:
|
|
1071
|
-
hashId:
|
|
1072
|
-
} =
|
|
1073
|
-
var P, H,
|
|
1074
|
-
const
|
|
1074
|
+
}), R = b(() => e.pageCardProps || p.value), v = b(() => e.waterMarkProps || g.value || {}), y = b(() => e.pageContentStyle || m.value), f = b(() => e.pageChildrenContentStyle || w.value || {}), C = b(() => _e(e.usePageCard) ? e.usePageCard : _e(O.value) ? O.value : !0), {
|
|
1075
|
+
wrapSSR: F,
|
|
1076
|
+
hashId: c
|
|
1077
|
+
} = Vn(r), S = () => {
|
|
1078
|
+
var P, H, z, D, V, _;
|
|
1079
|
+
const B = U(t, e, "pageChildrenExtraRender");
|
|
1075
1080
|
return n("div", {
|
|
1076
|
-
class: `${r}-children-content ${
|
|
1081
|
+
class: `${r}-children-content ${c.value}`,
|
|
1077
1082
|
style: f.value
|
|
1078
|
-
}, [
|
|
1083
|
+
}, [B && (B == null ? void 0 : B()), C.value ? n(Dt, q(R.value ? le(R.value, ["loading", "bodyStyle"]) : {}, {
|
|
1079
1084
|
style: o.value ? {
|
|
1080
1085
|
minHeight: "853px"
|
|
1081
1086
|
} : void 0,
|
|
1082
1087
|
bordered: !1
|
|
1083
1088
|
}), {
|
|
1084
1089
|
default: () => {
|
|
1085
|
-
var
|
|
1086
|
-
return [(
|
|
1090
|
+
var G;
|
|
1091
|
+
return [(G = t.default) == null ? void 0 : G.call(t)];
|
|
1087
1092
|
}
|
|
1088
|
-
}) :
|
|
1093
|
+
}) : B ? n("div", {
|
|
1089
1094
|
style: {
|
|
1090
|
-
marginBlockStart: `${(D = (
|
|
1095
|
+
marginBlockStart: `${(D = (z = (H = (P = l == null ? void 0 : l.token) == null ? void 0 : P.value) == null ? void 0 : H.layout) == null ? void 0 : z.pageContainer) == null ? void 0 : D.marginBlockPageContainerContent}px`
|
|
1091
1096
|
}
|
|
1092
|
-
}, [(V = t.default) == null ? void 0 : V.call(t)]) : (
|
|
1097
|
+
}, [(V = t.default) == null ? void 0 : V.call(t)]) : (_ = t.default) == null ? void 0 : _.call(t)]);
|
|
1093
1098
|
}, M = () => {
|
|
1094
|
-
let
|
|
1095
|
-
return n(Q, null, [e.waterMark &&
|
|
1096
|
-
default: () => [
|
|
1099
|
+
let B;
|
|
1100
|
+
return n(Q, null, [e.waterMark && u.value ? n(an, v.value, An(B = S()) ? B : {
|
|
1101
|
+
default: () => [B]
|
|
1097
1102
|
}) : S()]);
|
|
1098
1103
|
};
|
|
1099
1104
|
return () => {
|
|
1100
|
-
const
|
|
1101
|
-
return
|
|
1105
|
+
const B = U(t, e, "pageHeaderRender") || h.value, P = U(t, e, "breadcrumbRender"), H = U(t, e, "contentRender");
|
|
1106
|
+
return F(n(xe, {
|
|
1102
1107
|
spinning: e.loading,
|
|
1103
1108
|
indicator: T == null ? void 0 : T.value
|
|
1104
1109
|
}, {
|
|
1105
1110
|
default: () => [n("div", {
|
|
1106
1111
|
style: a.style,
|
|
1107
1112
|
class: {
|
|
1108
|
-
[`${
|
|
1113
|
+
[`${c.value}`]: !0,
|
|
1109
1114
|
[`${r}`]: !0
|
|
1110
1115
|
}
|
|
1111
|
-
}, [!o.value &&
|
|
1116
|
+
}, [!o.value && B !== !1 && (B || n(zn, {
|
|
1112
1117
|
style: e.pageHeaderStyle,
|
|
1113
1118
|
breadcrumb: P,
|
|
1114
1119
|
content: H
|
|
1115
1120
|
}, null)), n("div", {
|
|
1116
|
-
class: [I,
|
|
1121
|
+
class: [I, c.value]
|
|
1117
1122
|
}, [n("div", {
|
|
1118
|
-
class: `${I}-children ${
|
|
1123
|
+
class: `${I}-children ${c.value}`,
|
|
1119
1124
|
style: y.value
|
|
1120
1125
|
}, [M()])])])]
|
|
1121
1126
|
}));
|
|
1122
1127
|
};
|
|
1123
1128
|
}
|
|
1124
|
-
}),
|
|
1125
|
-
...
|
|
1126
|
-
...
|
|
1127
|
-
logo:
|
|
1128
|
-
logoStyle:
|
|
1129
|
-
logoDirection:
|
|
1129
|
+
}), Ke = {
|
|
1130
|
+
...se,
|
|
1131
|
+
...Me,
|
|
1132
|
+
logo: re.logo,
|
|
1133
|
+
logoStyle: re.logoStyle,
|
|
1134
|
+
logoDirection: re.logoDirection,
|
|
1130
1135
|
menuLoading: Boolean,
|
|
1131
1136
|
autoHideHeader: Boolean,
|
|
1132
1137
|
collapsed: Boolean,
|
|
@@ -1161,8 +1166,8 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1161
1166
|
onOpenKeys: Z.onOpenKeys,
|
|
1162
1167
|
onMenuHeaderClick: Function,
|
|
1163
1168
|
onSelect: Z.onSelect
|
|
1164
|
-
},
|
|
1165
|
-
...
|
|
1169
|
+
}, xt = {
|
|
1170
|
+
...Ke,
|
|
1166
1171
|
headerTitleRender: {
|
|
1167
1172
|
type: [Object, Function],
|
|
1168
1173
|
default: () => {
|
|
@@ -1181,13 +1186,13 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1181
1186
|
hasSiderMenu: Boolean,
|
|
1182
1187
|
collapsedWidth: Z.collapsedWidth,
|
|
1183
1188
|
siderWidth: Z.siderWidth
|
|
1184
|
-
},
|
|
1189
|
+
}, Ct = {
|
|
1185
1190
|
loading: L.looseBool,
|
|
1186
1191
|
isMobile: Z.isMobile,
|
|
1187
|
-
collapsed:
|
|
1192
|
+
collapsed: Me.collapsed,
|
|
1188
1193
|
siderWidth: Z.siderWidth,
|
|
1189
1194
|
collapsedWidth: Z.collapsedWidth,
|
|
1190
|
-
isFixedMultiTab:
|
|
1195
|
+
isFixedMultiTab: se.fixedMultiTab,
|
|
1191
1196
|
onReloadPage: {
|
|
1192
1197
|
type: Function
|
|
1193
1198
|
},
|
|
@@ -1228,14 +1233,14 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1228
1233
|
}
|
|
1229
1234
|
}
|
|
1230
1235
|
}
|
|
1231
|
-
}),
|
|
1236
|
+
}), wt = [{
|
|
1232
1237
|
key: "Ant Design Pro",
|
|
1233
1238
|
title: "Ant Design Pro",
|
|
1234
1239
|
href: "https://pro.ant.design",
|
|
1235
1240
|
blankTarget: !0
|
|
1236
1241
|
}, {
|
|
1237
1242
|
key: "gitee",
|
|
1238
|
-
title: n(
|
|
1243
|
+
title: n(Et, null, null),
|
|
1239
1244
|
href: "https://gitee.com/gx12358/vue-antd-admin",
|
|
1240
1245
|
blankTarget: !0
|
|
1241
1246
|
}, {
|
|
@@ -1243,12 +1248,12 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1243
1248
|
title: "Ant Design Vue",
|
|
1244
1249
|
href: "https://next.antdv.com/components/overview-cn/",
|
|
1245
1250
|
blankTarget: !0
|
|
1246
|
-
}],
|
|
1251
|
+
}], ke = /* @__PURE__ */ j({
|
|
1247
1252
|
name: "GlobalFooter",
|
|
1248
1253
|
props: {
|
|
1249
1254
|
links: {
|
|
1250
1255
|
type: [Array, Boolean],
|
|
1251
|
-
default:
|
|
1256
|
+
default: wt
|
|
1252
1257
|
},
|
|
1253
1258
|
copyright: {
|
|
1254
1259
|
type: [Object, Function, Boolean, String],
|
|
@@ -1256,14 +1261,14 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1256
1261
|
}
|
|
1257
1262
|
},
|
|
1258
1263
|
setup(e) {
|
|
1259
|
-
const t =
|
|
1264
|
+
const t = me({
|
|
1260
1265
|
suffixCls: "global-footer",
|
|
1261
1266
|
isPor: !0
|
|
1262
1267
|
}), {
|
|
1263
1268
|
wrapSSR: a,
|
|
1264
1269
|
hashId: i
|
|
1265
|
-
} =
|
|
1266
|
-
return () => a(n(
|
|
1270
|
+
} = ne("ProLayoutFooter", [jn], t);
|
|
1271
|
+
return () => a(n(Nt, {
|
|
1267
1272
|
style: {
|
|
1268
1273
|
padding: 0
|
|
1269
1274
|
}
|
|
@@ -1279,18 +1284,18 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1279
1284
|
href: o.href
|
|
1280
1285
|
}, [o.title]))]), e.copyright && n("div", {
|
|
1281
1286
|
class: `${t}-copyright ${i.value}`
|
|
1282
|
-
}, [
|
|
1287
|
+
}, [te("Copyright "), rn().format("YYYY"), te(" "), n("a", {
|
|
1283
1288
|
href: "https://beian.miit.gov.cn/"
|
|
1284
1289
|
}, [e.copyright])])])]
|
|
1285
1290
|
}));
|
|
1286
1291
|
}
|
|
1287
|
-
}),
|
|
1288
|
-
...
|
|
1289
|
-
...
|
|
1292
|
+
}), St = {
|
|
1293
|
+
...se,
|
|
1294
|
+
...Ke,
|
|
1290
1295
|
...Z,
|
|
1291
|
-
...vt,
|
|
1292
1296
|
...xt,
|
|
1293
|
-
...
|
|
1297
|
+
...Ct,
|
|
1298
|
+
...we,
|
|
1294
1299
|
pure: Boolean,
|
|
1295
1300
|
token: Object,
|
|
1296
1301
|
waterMark: {
|
|
@@ -1314,7 +1319,7 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1314
1319
|
loading: L.looseBool,
|
|
1315
1320
|
footerLinks: {
|
|
1316
1321
|
type: [Array, Boolean],
|
|
1317
|
-
default:
|
|
1322
|
+
default: wt
|
|
1318
1323
|
},
|
|
1319
1324
|
copyrightRender: {
|
|
1320
1325
|
type: [Object, Function, Boolean, String],
|
|
@@ -1373,7 +1378,7 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1373
1378
|
}
|
|
1374
1379
|
}
|
|
1375
1380
|
};
|
|
1376
|
-
},
|
|
1381
|
+
}, Un = (e) => {
|
|
1377
1382
|
var t, a;
|
|
1378
1383
|
return {
|
|
1379
1384
|
[`${e.componentCls}-title`]: {
|
|
@@ -1417,7 +1422,7 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1417
1422
|
"&-fixed": {
|
|
1418
1423
|
position: "fixed",
|
|
1419
1424
|
height: 62,
|
|
1420
|
-
top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) ||
|
|
1425
|
+
top: ((a = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : a.heightLayoutHeader) || A.headerHeight,
|
|
1421
1426
|
right: 0,
|
|
1422
1427
|
zIndex: 9,
|
|
1423
1428
|
transition: "width .2s"
|
|
@@ -1425,15 +1430,15 @@ const Mi = /* @__PURE__ */ W({
|
|
|
1425
1430
|
}
|
|
1426
1431
|
};
|
|
1427
1432
|
};
|
|
1428
|
-
function
|
|
1429
|
-
return
|
|
1430
|
-
const a =
|
|
1433
|
+
function En(e) {
|
|
1434
|
+
return Ne("ProMultiTabs", (t) => {
|
|
1435
|
+
const a = ze(t, {
|
|
1431
1436
|
componentWrapCls: `${t.componentCls}-wrap`
|
|
1432
1437
|
});
|
|
1433
|
-
return [
|
|
1438
|
+
return [Un(a)];
|
|
1434
1439
|
}, e);
|
|
1435
1440
|
}
|
|
1436
|
-
const
|
|
1441
|
+
const Xn = [
|
|
1437
1442
|
{
|
|
1438
1443
|
key: "closeOthersTabs",
|
|
1439
1444
|
label: "关闭其他"
|
|
@@ -1451,16 +1456,16 @@ const En = [
|
|
|
1451
1456
|
label: "刷新当前页"
|
|
1452
1457
|
}
|
|
1453
1458
|
];
|
|
1454
|
-
function
|
|
1455
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
1459
|
+
function Yn(e) {
|
|
1460
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
1456
1461
|
}
|
|
1457
|
-
function
|
|
1462
|
+
function E(e) {
|
|
1458
1463
|
var t;
|
|
1459
1464
|
return ((t = e == null ? void 0 : e.meta) == null ? void 0 : t.currenFulltPath) || e.fullPath || e.path;
|
|
1460
1465
|
}
|
|
1461
|
-
const
|
|
1466
|
+
const _n = Pe.TabPane, Gn = ae.Item, qn = /* @__PURE__ */ j({
|
|
1462
1467
|
props: {
|
|
1463
|
-
...
|
|
1468
|
+
...Ct,
|
|
1464
1469
|
visible: {
|
|
1465
1470
|
type: Boolean,
|
|
1466
1471
|
default: !0
|
|
@@ -1471,37 +1476,37 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1471
1476
|
const {
|
|
1472
1477
|
isMobile: t,
|
|
1473
1478
|
isFixedMultiTab: a
|
|
1474
|
-
} =
|
|
1479
|
+
} = Se(e), i = Oe(!1), o = rt({
|
|
1475
1480
|
activeKey: "",
|
|
1476
1481
|
contextMenuActiveKey: ""
|
|
1477
|
-
}),
|
|
1478
|
-
menuData:
|
|
1482
|
+
}), u = De(), {
|
|
1483
|
+
menuData: h,
|
|
1479
1484
|
flatMenuData: m,
|
|
1480
1485
|
layout: w,
|
|
1481
1486
|
splitMenus: p,
|
|
1482
|
-
getPrefixCls:
|
|
1483
|
-
} =
|
|
1487
|
+
getPrefixCls: O
|
|
1488
|
+
} = ee(), g = O({
|
|
1484
1489
|
isPor: !0,
|
|
1485
1490
|
suffixCls: "multi-tab"
|
|
1486
1491
|
}), {
|
|
1487
1492
|
wrapSSR: T,
|
|
1488
1493
|
hashId: l
|
|
1489
|
-
} =
|
|
1490
|
-
|
|
1491
|
-
var
|
|
1492
|
-
(
|
|
1494
|
+
} = En(g), r = Oe([]);
|
|
1495
|
+
de(r, () => {
|
|
1496
|
+
var d;
|
|
1497
|
+
(d = e.onChangeTabs) == null || d.call(e, He(X(r)));
|
|
1493
1498
|
}, {
|
|
1494
1499
|
deep: !0
|
|
1495
1500
|
});
|
|
1496
|
-
const I = b(() => w.value === "mix" && !e.isMobile && p.value),
|
|
1497
|
-
const
|
|
1498
|
-
return
|
|
1499
|
-
}), f = b(() =>
|
|
1501
|
+
const I = b(() => w.value === "mix" && !e.isMobile && p.value), R = b(() => E(u.currentRoute.value)), v = b(() => a.value && !t.value), y = b(() => {
|
|
1502
|
+
const d = !(I.value && X(m.value).length === 0 || h.value.length === 0 || w.value === "top");
|
|
1503
|
+
return v.value && d ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
|
|
1504
|
+
}), f = b(() => mt(`${g}-wrap`, {
|
|
1500
1505
|
[`${l.value}`]: !0,
|
|
1501
|
-
[`${
|
|
1502
|
-
[`${
|
|
1506
|
+
[`${g}-wrap-fixed`]: e.isFixedMultiTab,
|
|
1507
|
+
[`${g}-wrap-loading`]: e.loading
|
|
1503
1508
|
})), C = b(() => {
|
|
1504
|
-
const
|
|
1509
|
+
const d = {
|
|
1505
1510
|
display: e.visible ? void 0 : "none"
|
|
1506
1511
|
};
|
|
1507
1512
|
return e.isFixedMultiTab ? {
|
|
@@ -1509,160 +1514,156 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1509
1514
|
width: y.value,
|
|
1510
1515
|
paddingTop: "6px",
|
|
1511
1516
|
zIndex: 99,
|
|
1512
|
-
...
|
|
1513
|
-
} :
|
|
1514
|
-
}),
|
|
1515
|
-
if (
|
|
1516
|
-
const
|
|
1517
|
-
path:
|
|
1518
|
-
fullPath:
|
|
1519
|
-
query:
|
|
1520
|
-
params:
|
|
1521
|
-
name:
|
|
1517
|
+
...d
|
|
1518
|
+
} : d;
|
|
1519
|
+
}), F = (d) => E(d) === R.value, c = (d) => {
|
|
1520
|
+
if (d.name && d.meta && d.meta.tagHidden !== !0) {
|
|
1521
|
+
const x = E(d), k = r.value.find((N) => E(N) === x), $ = {
|
|
1522
|
+
path: d.path,
|
|
1523
|
+
fullPath: x,
|
|
1524
|
+
query: d.query,
|
|
1525
|
+
params: d.params,
|
|
1526
|
+
name: d.name,
|
|
1522
1527
|
meta: {
|
|
1523
|
-
...
|
|
1524
|
-
originTagPath:
|
|
1528
|
+
...d.meta,
|
|
1529
|
+
originTagPath: d.fullPath
|
|
1525
1530
|
}
|
|
1526
1531
|
};
|
|
1527
|
-
|
|
1532
|
+
k ? Object.assign(k, $) : d.meta.tagFixed ? r.value.unshift($) : r.value.push($), F(d) && (o.activeKey = x);
|
|
1528
1533
|
}
|
|
1529
|
-
}, S = (
|
|
1530
|
-
|
|
1531
|
-
|
|
1534
|
+
}, S = (d) => {
|
|
1535
|
+
d.forEach((x) => {
|
|
1536
|
+
x.meta && x.meta.tagFixed && c(x), x.children && S(x.children);
|
|
1532
1537
|
});
|
|
1533
1538
|
};
|
|
1534
|
-
|
|
1535
|
-
S(
|
|
1539
|
+
de(() => h.value, (d) => {
|
|
1540
|
+
S(d);
|
|
1536
1541
|
}, {
|
|
1537
1542
|
deep: !0,
|
|
1538
1543
|
immediate: !0
|
|
1539
|
-
}),
|
|
1540
|
-
|
|
1544
|
+
}), de(() => u.currentRoute.value, (d) => {
|
|
1545
|
+
c(d);
|
|
1541
1546
|
}, {
|
|
1542
1547
|
deep: !0,
|
|
1543
1548
|
immediate: !0
|
|
1544
1549
|
});
|
|
1545
|
-
const M = (
|
|
1546
|
-
var
|
|
1547
|
-
return ((
|
|
1548
|
-
},
|
|
1549
|
-
const
|
|
1550
|
-
|
|
1551
|
-
path: M(
|
|
1552
|
-
}) :
|
|
1553
|
-
}, P = async (
|
|
1554
|
-
const
|
|
1555
|
-
r.value = r.value.filter((
|
|
1556
|
-
}, H = (
|
|
1557
|
-
const
|
|
1558
|
-
|
|
1559
|
-
path: M(
|
|
1550
|
+
const M = (d) => {
|
|
1551
|
+
var x, k;
|
|
1552
|
+
return ((k = (x = r.value.find(($) => (d || o.activeKey) === E($))) == null ? void 0 : x.meta) == null ? void 0 : k.originTagPath) || d || o.activeKey;
|
|
1553
|
+
}, B = () => {
|
|
1554
|
+
const d = r.value.slice(-1)[0];
|
|
1555
|
+
d ? u.push({
|
|
1556
|
+
path: M(E(d))
|
|
1557
|
+
}) : u.push("/");
|
|
1558
|
+
}, P = async (d) => {
|
|
1559
|
+
const x = r.value.find((k) => d === E(k));
|
|
1560
|
+
r.value = r.value.filter((k) => E(k) !== d), x && F(x) && B();
|
|
1561
|
+
}, H = (d) => {
|
|
1562
|
+
const x = r.value.find((k) => E(k) === d);
|
|
1563
|
+
x && o.activeKey !== E(x) && u.push({
|
|
1564
|
+
path: M(E(x))
|
|
1560
1565
|
});
|
|
1561
|
-
},
|
|
1562
|
-
var
|
|
1563
|
-
i.value = !0, e.onReloadPage && ((
|
|
1566
|
+
}, z = () => {
|
|
1567
|
+
var d;
|
|
1568
|
+
i.value = !0, e.onReloadPage && ((d = e.onReloadPage) == null || d.call(e)), setTimeout(() => {
|
|
1564
1569
|
i.value = !1;
|
|
1565
1570
|
}, 500);
|
|
1566
|
-
}, D = (
|
|
1567
|
-
const
|
|
1568
|
-
switch (
|
|
1571
|
+
}, D = (d) => d.meta && d.meta.tagFixed, V = (d) => o[d], _ = (d, x) => {
|
|
1572
|
+
const k = r.value.findIndex(($) => E($) === V(x));
|
|
1573
|
+
switch (d) {
|
|
1569
1574
|
case "closeOthersTabs":
|
|
1570
|
-
r.value = r.value.filter((
|
|
1571
|
-
var
|
|
1572
|
-
return
|
|
1575
|
+
r.value = r.value.filter(($) => {
|
|
1576
|
+
var N;
|
|
1577
|
+
return E($) === V(x) || ((N = $.meta) == null ? void 0 : N.tagFixed);
|
|
1573
1578
|
});
|
|
1574
1579
|
break;
|
|
1575
1580
|
case "closeLeftTabs":
|
|
1576
|
-
|
|
1577
|
-
var
|
|
1578
|
-
return
|
|
1581
|
+
k && (r.value = r.value.filter(($, N) => {
|
|
1582
|
+
var K;
|
|
1583
|
+
return N >= k || ((K = $.meta) == null ? void 0 : K.tagFixed);
|
|
1579
1584
|
}));
|
|
1580
1585
|
break;
|
|
1581
1586
|
case "closeRightTabs":
|
|
1582
|
-
|
|
1583
|
-
var
|
|
1584
|
-
return
|
|
1587
|
+
k && (r.value = r.value.filter(($, N) => {
|
|
1588
|
+
var K;
|
|
1589
|
+
return N <= k || ((K = $.meta) == null ? void 0 : K.tagFixed);
|
|
1585
1590
|
}));
|
|
1586
1591
|
break;
|
|
1587
1592
|
case "reloadPage":
|
|
1588
|
-
(
|
|
1593
|
+
(k === 0 || k) && o.activeKey === V(x) && z();
|
|
1589
1594
|
break;
|
|
1590
1595
|
}
|
|
1591
|
-
o.activeKey !== V(
|
|
1592
|
-
},
|
|
1593
|
-
const
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
}, E = (c) => {
|
|
1612
|
-
let v;
|
|
1596
|
+
o.activeKey !== V(x) && u.push(M(V(x)));
|
|
1597
|
+
}, G = (d, x) => {
|
|
1598
|
+
const k = r.value.findIndex(($) => E($) === x);
|
|
1599
|
+
if (d === "closeOthersTabs")
|
|
1600
|
+
return r.value.filter((N, K) => {
|
|
1601
|
+
var W;
|
|
1602
|
+
return K !== k && !((W = N.meta) != null && W.tagFixed);
|
|
1603
|
+
}).length === 0;
|
|
1604
|
+
if (d === "closeLeftTabs")
|
|
1605
|
+
return r.value.filter((N, K) => {
|
|
1606
|
+
var W;
|
|
1607
|
+
return K < k && !((W = N.meta) != null && W.tagFixed);
|
|
1608
|
+
}).length === 0;
|
|
1609
|
+
if (d === "closeRightTabs")
|
|
1610
|
+
return r.value.filter((N, K) => {
|
|
1611
|
+
var W;
|
|
1612
|
+
return K > k && !((W = N.meta) != null && W.tagFixed);
|
|
1613
|
+
}).length === 0;
|
|
1614
|
+
}, Y = (d) => {
|
|
1615
|
+
let x;
|
|
1613
1616
|
const {
|
|
1614
|
-
path:
|
|
1615
|
-
stateType:
|
|
1616
|
-
} =
|
|
1617
|
-
return n(
|
|
1617
|
+
path: k,
|
|
1618
|
+
stateType: $
|
|
1619
|
+
} = d;
|
|
1620
|
+
return n(ae, {
|
|
1618
1621
|
selectedKeys: [],
|
|
1619
|
-
onClick: (
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
key: z.key,
|
|
1624
|
-
disabled: _(z.key, B)
|
|
1622
|
+
onClick: (N) => _(N.key, $)
|
|
1623
|
+
}, Yn(x = Xn.map((N) => n(Gn, {
|
|
1624
|
+
key: N.key,
|
|
1625
|
+
disabled: G(N.key, k)
|
|
1625
1626
|
}, {
|
|
1626
|
-
default: () => [
|
|
1627
|
-
}))) ?
|
|
1628
|
-
default: () => [
|
|
1627
|
+
default: () => [N.label]
|
|
1628
|
+
}))) ? x : {
|
|
1629
|
+
default: () => [x]
|
|
1629
1630
|
});
|
|
1630
|
-
}, J = (
|
|
1631
|
+
}, J = (d) => {
|
|
1631
1632
|
const {
|
|
1632
|
-
router:
|
|
1633
|
-
} =
|
|
1633
|
+
router: x
|
|
1634
|
+
} = d;
|
|
1634
1635
|
return n(Ye, {
|
|
1635
1636
|
trigger: "contextmenu",
|
|
1636
|
-
overlay: n(
|
|
1637
|
-
path:
|
|
1637
|
+
overlay: n(Y, {
|
|
1638
|
+
path: E(x) || "",
|
|
1638
1639
|
stateType: "contextMenuActiveKey"
|
|
1639
1640
|
}, null),
|
|
1640
|
-
onOpenChange: (
|
|
1641
|
-
o.contextMenuActiveKey =
|
|
1641
|
+
onOpenChange: (k) => {
|
|
1642
|
+
o.contextMenuActiveKey = k && E(x) || "";
|
|
1642
1643
|
}
|
|
1643
1644
|
}, {
|
|
1644
1645
|
default: () => {
|
|
1645
|
-
var
|
|
1646
|
+
var k;
|
|
1646
1647
|
return [n("div", {
|
|
1647
|
-
class: [`${
|
|
1648
|
-
}, [(
|
|
1649
|
-
class: [`${
|
|
1648
|
+
class: [`${g}-title`, l.value]
|
|
1649
|
+
}, [(k = x.meta) == null ? void 0 : k.title, o.activeKey === E(x) && n(Yt, {
|
|
1650
|
+
class: [`${g}-reload-btn`, l.value],
|
|
1650
1651
|
spin: i.value,
|
|
1651
|
-
onClick: (
|
|
1652
|
-
|
|
1652
|
+
onClick: ($) => {
|
|
1653
|
+
$.stopPropagation(), !i.value && z();
|
|
1653
1654
|
}
|
|
1654
|
-
}, null), r.value.length > 1 && !D(
|
|
1655
|
-
class: [`${
|
|
1656
|
-
onClick: (
|
|
1657
|
-
|
|
1655
|
+
}, null), r.value.length > 1 && !D(x) && n(ut, {
|
|
1656
|
+
class: [`${g}-close-btn`, l.value],
|
|
1657
|
+
onClick: ($) => {
|
|
1658
|
+
$.stopPropagation(), !i.value && P(E(x) || "");
|
|
1658
1659
|
}
|
|
1659
1660
|
}, null)])];
|
|
1660
1661
|
}
|
|
1661
1662
|
});
|
|
1662
1663
|
};
|
|
1663
|
-
return () => T(n(Q, null, [!!e.isFixedMultiTab &&
|
|
1664
|
-
class: [`${
|
|
1665
|
-
}, null), [[$t, e.visible]]), n(
|
|
1664
|
+
return () => T(n(Q, null, [!!e.isFixedMultiTab && Ft(n("div", {
|
|
1665
|
+
class: [`${g}-fixed`, l.value]
|
|
1666
|
+
}, null), [[$t, e.visible]]), n(Pe, {
|
|
1666
1667
|
hideAdd: !0,
|
|
1667
1668
|
type: "editable-card",
|
|
1668
1669
|
style: C.value,
|
|
@@ -1670,29 +1671,29 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1670
1671
|
activeKey: o.activeKey,
|
|
1671
1672
|
onTabClick: H
|
|
1672
1673
|
}, {
|
|
1673
|
-
default: () => [r.value.map((
|
|
1674
|
-
key:
|
|
1674
|
+
default: () => [r.value.map((d) => n(_n, {
|
|
1675
|
+
key: E(d),
|
|
1675
1676
|
closable: !1,
|
|
1676
1677
|
tab: n(J, {
|
|
1677
|
-
router:
|
|
1678
|
+
router: d
|
|
1678
1679
|
}, null)
|
|
1679
1680
|
}, null))],
|
|
1680
1681
|
rightExtra: () => n(Ye, {
|
|
1681
|
-
overlay: n(
|
|
1682
|
+
overlay: n(Y, {
|
|
1682
1683
|
path: o.activeKey,
|
|
1683
1684
|
stateType: "activeKey"
|
|
1684
1685
|
}, null)
|
|
1685
1686
|
}, {
|
|
1686
|
-
default: () => [n(
|
|
1687
|
-
class: [`${
|
|
1687
|
+
default: () => [n(Xt, {
|
|
1688
|
+
class: [`${g}-dropdown-menu-btn`, l.value],
|
|
1688
1689
|
rotate: 90
|
|
1689
1690
|
}, null)]
|
|
1690
1691
|
})
|
|
1691
1692
|
})]));
|
|
1692
1693
|
}
|
|
1693
1694
|
}), {
|
|
1694
|
-
Content:
|
|
1695
|
-
} =
|
|
1695
|
+
Content: Zn
|
|
1696
|
+
} = ce, Ue = (e, {
|
|
1696
1697
|
slots: t,
|
|
1697
1698
|
attrs: a
|
|
1698
1699
|
}) => {
|
|
@@ -1700,13 +1701,13 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1700
1701
|
const {
|
|
1701
1702
|
hashId: i,
|
|
1702
1703
|
prefixCls: o,
|
|
1703
|
-
isMobile:
|
|
1704
|
-
loading:
|
|
1704
|
+
isMobile: u,
|
|
1705
|
+
loading: h,
|
|
1705
1706
|
collapsed: m,
|
|
1706
1707
|
siderWidth: w,
|
|
1707
1708
|
isShowTabsBar: p,
|
|
1708
|
-
isFixedMultiTab:
|
|
1709
|
-
onReloadPage:
|
|
1709
|
+
isFixedMultiTab: O,
|
|
1710
|
+
onReloadPage: g,
|
|
1710
1711
|
onChangeTabs: T
|
|
1711
1712
|
} = e;
|
|
1712
1713
|
if (e.isChildrenLayout)
|
|
@@ -1714,34 +1715,34 @@ const Yn = Le.TabPane, _n = ie.Item, Gn = /* @__PURE__ */ W({
|
|
|
1714
1715
|
const {
|
|
1715
1716
|
flatMenuData: l,
|
|
1716
1717
|
layout: r
|
|
1717
|
-
} =
|
|
1718
|
-
return n(Q, null, [n(
|
|
1719
|
-
visible: (
|
|
1720
|
-
isMobile:
|
|
1721
|
-
loading:
|
|
1722
|
-
isFixedMultiTab:
|
|
1718
|
+
} = ee();
|
|
1719
|
+
return n(Q, null, [n(qn, {
|
|
1720
|
+
visible: (X(r) === "mix" ? X(l).length > 0 : !0) && p,
|
|
1721
|
+
isMobile: u,
|
|
1722
|
+
loading: h,
|
|
1723
|
+
isFixedMultiTab: O,
|
|
1723
1724
|
siderWidth: w,
|
|
1724
1725
|
collapsed: m,
|
|
1725
|
-
onReloadPage:
|
|
1726
|
+
onReloadPage: g,
|
|
1726
1727
|
onChangeTabs: T
|
|
1727
|
-
}, null), n(
|
|
1728
|
+
}, null), n(Zn, {
|
|
1728
1729
|
style: a.style,
|
|
1729
1730
|
class: [`${o}-content`]
|
|
1730
1731
|
}, {
|
|
1731
1732
|
default: () => {
|
|
1732
|
-
var
|
|
1733
|
-
return [
|
|
1733
|
+
var R;
|
|
1734
|
+
return [h && n(cn, null, null), n("div", {
|
|
1734
1735
|
class: [`${o}-content-spin-container`, i],
|
|
1735
1736
|
style: {
|
|
1736
|
-
opacity:
|
|
1737
|
+
opacity: h ? "0" : void 0
|
|
1737
1738
|
}
|
|
1738
|
-
}, [(
|
|
1739
|
+
}, [(R = t.default) == null ? void 0 : R.call(t)])];
|
|
1739
1740
|
}
|
|
1740
1741
|
})]);
|
|
1741
1742
|
};
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
const
|
|
1743
|
+
Ue.inheritAttrs = !1;
|
|
1744
|
+
Ue.displayName = "wrap-content";
|
|
1745
|
+
const Jn = (e) => {
|
|
1745
1746
|
var t, a, i, o;
|
|
1746
1747
|
return {
|
|
1747
1748
|
[`${e.proComponentsCls}-basic-layout`]: {
|
|
@@ -1793,7 +1794,7 @@ const Zn = (e) => {
|
|
|
1793
1794
|
}
|
|
1794
1795
|
}
|
|
1795
1796
|
};
|
|
1796
|
-
},
|
|
1797
|
+
}, Qn = (e) => ({
|
|
1797
1798
|
[`${e.proComponentsCls}-header`]: {
|
|
1798
1799
|
"&-light": {
|
|
1799
1800
|
[`${e.componentCls}-logo`]: {
|
|
@@ -1876,64 +1877,64 @@ const Zn = (e) => {
|
|
|
1876
1877
|
marginInlineEnd: 0
|
|
1877
1878
|
}
|
|
1878
1879
|
}
|
|
1879
|
-
}),
|
|
1880
|
+
}), It = {
|
|
1880
1881
|
...Z,
|
|
1881
|
-
...
|
|
1882
|
-
},
|
|
1883
|
-
props:
|
|
1882
|
+
...Ke
|
|
1883
|
+
}, ea = (e, t) => e === !1 ? null : e ? e(t, null) : t, ta = /* @__PURE__ */ j({
|
|
1884
|
+
props: It,
|
|
1884
1885
|
setup(e) {
|
|
1885
1886
|
return () => e.rightContentRender && typeof e.rightContentRender == "function" && n(Q, null, [e.rightContentRender({
|
|
1886
1887
|
...e
|
|
1887
1888
|
})]);
|
|
1888
1889
|
}
|
|
1889
|
-
}),
|
|
1890
|
-
props:
|
|
1890
|
+
}), na = /* @__PURE__ */ j({
|
|
1891
|
+
props: It,
|
|
1891
1892
|
inheritAttrs: !1,
|
|
1892
1893
|
setup(e, {
|
|
1893
1894
|
slots: t,
|
|
1894
1895
|
emit: a
|
|
1895
1896
|
}) {
|
|
1896
|
-
const i =
|
|
1897
|
+
const i = De(), {
|
|
1897
1898
|
token: o
|
|
1898
|
-
} =
|
|
1899
|
-
getPrefixCls:
|
|
1900
|
-
openKeys:
|
|
1899
|
+
} = fe(), {
|
|
1900
|
+
getPrefixCls: u,
|
|
1901
|
+
openKeys: h,
|
|
1901
1902
|
selectedKeys: m
|
|
1902
|
-
} =
|
|
1903
|
+
} = ee(), {
|
|
1903
1904
|
width: w
|
|
1904
|
-
} =
|
|
1905
|
+
} = sn(), p = u({
|
|
1905
1906
|
suffixCls: "global-header",
|
|
1906
1907
|
isPor: !0
|
|
1907
1908
|
}), {
|
|
1908
|
-
wrapSSR:
|
|
1909
|
-
hashId:
|
|
1910
|
-
} =
|
|
1911
|
-
[`${
|
|
1909
|
+
wrapSSR: O,
|
|
1910
|
+
hashId: g
|
|
1911
|
+
} = ne("ProGlobalHeader", [Qn], p), T = b(() => e.isMobile ? !1 : e.layout === "top" || e.layout === "mix" && e.splitMenus), l = b(() => ({
|
|
1912
|
+
[`${g.value}`]: !0,
|
|
1912
1913
|
[`${p}`]: !0,
|
|
1913
1914
|
[`${p}-${e.layout}`]: !0
|
|
1914
1915
|
})), r = (y) => {
|
|
1915
1916
|
var f;
|
|
1916
1917
|
if (i.currentRoute) {
|
|
1917
1918
|
const C = i.currentRoute.value.matched.concat();
|
|
1918
|
-
e.onSelect && y === "select" && e.onSelect(C.filter((
|
|
1919
|
+
e.onSelect && y === "select" && e.onSelect(C.filter((F) => F.name !== "index").map((F) => F.path)), e.onOpenKeys && y === "openKeys" && ((f = e.onOpenKeys) == null || f.call(e, C.filter((F) => F.path !== i.currentRoute.value.path).map((F) => F.path)));
|
|
1919
1920
|
}
|
|
1920
1921
|
}, I = () => {
|
|
1921
1922
|
a("collapse", !e.collapsed);
|
|
1922
|
-
},
|
|
1923
|
+
}, R = b(() => e.collapsedButtonRender || pt), v = () => {
|
|
1923
1924
|
var y, f;
|
|
1924
1925
|
return n(Q, null, [T.value ? n("div", {
|
|
1925
1926
|
style: {
|
|
1926
1927
|
flex: 1
|
|
1927
1928
|
},
|
|
1928
|
-
class: [`${p}-menu`,
|
|
1929
|
-
}, [((y = e.menuData) == null ? void 0 : y.length) > 0 && n(
|
|
1929
|
+
class: [`${p}-menu`, g.value]
|
|
1930
|
+
}, [((y = e.menuData) == null ? void 0 : y.length) > 0 && n(Te, {
|
|
1930
1931
|
theme: {
|
|
1931
1932
|
components: {
|
|
1932
1933
|
Layout: {
|
|
1933
1934
|
headerBg: "transparent",
|
|
1934
1935
|
bodyBg: "transparent"
|
|
1935
1936
|
},
|
|
1936
|
-
Menu:
|
|
1937
|
+
Menu: gt({
|
|
1937
1938
|
radiusItem: 4,
|
|
1938
1939
|
colorActiveBarWidth: 0,
|
|
1939
1940
|
colorActiveBarHeight: 2,
|
|
@@ -1943,19 +1944,19 @@ const Zn = (e) => {
|
|
|
1943
1944
|
}
|
|
1944
1945
|
}
|
|
1945
1946
|
}, {
|
|
1946
|
-
default: () => [n(
|
|
1947
|
+
default: () => [n(ht, q({
|
|
1947
1948
|
theme: e.theme,
|
|
1948
1949
|
mode: e.mode,
|
|
1949
1950
|
collapsed: e.collapsed,
|
|
1950
1951
|
menuData: e.menuData,
|
|
1951
|
-
openKeys:
|
|
1952
|
+
openKeys: h.value,
|
|
1952
1953
|
selectedKeys: m.value,
|
|
1953
1954
|
iconfontUrl: e.iconfontUrl,
|
|
1954
1955
|
menuItemRender: e.menuItemRender,
|
|
1955
1956
|
subMenuItemRender: e.subMenuItemRender,
|
|
1956
1957
|
class: {
|
|
1957
1958
|
"top-nav-menu": e.mode === "horizontal",
|
|
1958
|
-
[`${
|
|
1959
|
+
[`${g.value}`]: !0
|
|
1959
1960
|
}
|
|
1960
1961
|
}, {
|
|
1961
1962
|
"onUpdate:openKeys": () => r("openKeys"),
|
|
@@ -1965,7 +1966,7 @@ const Zn = (e) => {
|
|
|
1965
1966
|
style: {
|
|
1966
1967
|
flex: 1
|
|
1967
1968
|
}
|
|
1968
|
-
}, [(f = t.default) == null ? void 0 : f.call(t)]), e.layout !== "simple" && n(
|
|
1969
|
+
}, [(f = t.default) == null ? void 0 : f.call(t)]), e.layout !== "simple" && n(ta, q(e, {
|
|
1969
1970
|
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
1970
1971
|
rightContentRender: e.rightContentRender
|
|
1971
1972
|
}), null)]);
|
|
@@ -1977,74 +1978,74 @@ const Zn = (e) => {
|
|
|
1977
1978
|
var f;
|
|
1978
1979
|
return (f = e.onMenuHeaderClick) == null ? void 0 : f.call(e);
|
|
1979
1980
|
},
|
|
1980
|
-
class: [`${p}-logo`, e.isMobile ? "mobile" : "",
|
|
1981
|
-
}, [n("a", null, [
|
|
1982
|
-
return
|
|
1981
|
+
class: [`${p}-logo`, e.isMobile ? "mobile" : "", g.value]
|
|
1982
|
+
}, [n("a", null, [bt(e.logo)])]);
|
|
1983
|
+
return O(n("div", {
|
|
1983
1984
|
class: l.value
|
|
1984
|
-
}, [e.isMobile ? n(Q, null, [
|
|
1985
|
-
class: `${p}-collapsed-button ${
|
|
1985
|
+
}, [e.isMobile ? n(Q, null, [ea(e.menuHeaderRender, y), e.isMobile && X(R) && n("span", {
|
|
1986
|
+
class: `${p}-collapsed-button ${g.value}`,
|
|
1986
1987
|
onClick: I
|
|
1987
|
-
}, [
|
|
1988
|
+
}, [X(R)(e.collapsed)]), v()]) : ["mix", "wide", "top"].includes(e.layout) ? n("div", {
|
|
1988
1989
|
style: {
|
|
1989
1990
|
width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
|
|
1990
1991
|
padding: e.layout === "wide" && w.value < e.wideWidth ? "0 50px" : void 0
|
|
1991
1992
|
},
|
|
1992
|
-
class: `${p}-main ${
|
|
1993
|
+
class: `${p}-main ${g.value}`
|
|
1993
1994
|
}, [n("div", {
|
|
1994
|
-
class: `${p}-main-left ${
|
|
1995
|
-
}, [n(
|
|
1995
|
+
class: `${p}-main-left ${g.value}`
|
|
1996
|
+
}, [n(We, q(e, {
|
|
1996
1997
|
renderKey: "headerTitleRender"
|
|
1997
|
-
}), null)]),
|
|
1998
|
+
}), null)]), v()]) : v()]));
|
|
1998
1999
|
};
|
|
1999
2000
|
}
|
|
2000
2001
|
});
|
|
2001
|
-
function
|
|
2002
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2002
|
+
function aa(e) {
|
|
2003
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
2003
2004
|
}
|
|
2004
2005
|
const {
|
|
2005
2006
|
Header: Qe
|
|
2006
|
-
} =
|
|
2007
|
+
} = ce, Fe = /* @__PURE__ */ j({
|
|
2007
2008
|
inheritAttrs: !1,
|
|
2008
|
-
props:
|
|
2009
|
+
props: xt,
|
|
2009
2010
|
setup(e) {
|
|
2010
2011
|
const {
|
|
2011
2012
|
theme: t,
|
|
2012
2013
|
isMobile: a,
|
|
2013
2014
|
fixedHeader: i,
|
|
2014
2015
|
headerHeight: o,
|
|
2015
|
-
layout:
|
|
2016
|
-
onCollapse:
|
|
2016
|
+
layout: u,
|
|
2017
|
+
onCollapse: h,
|
|
2017
2018
|
splitMenus: m
|
|
2018
|
-
} =
|
|
2019
|
+
} = Se(e), {
|
|
2019
2020
|
getPrefixCls: w,
|
|
2020
2021
|
menuData: p
|
|
2021
|
-
} =
|
|
2022
|
+
} = ee(), O = w({
|
|
2022
2023
|
suffixCls: "header",
|
|
2023
2024
|
isPor: !0
|
|
2024
|
-
}),
|
|
2025
|
+
}), g = w({
|
|
2025
2026
|
suffixCls: "fixed-header",
|
|
2026
2027
|
isPor: !0
|
|
2027
2028
|
}), {
|
|
2028
2029
|
wrapSSR: T,
|
|
2029
2030
|
hashId: l
|
|
2030
|
-
} =
|
|
2031
|
+
} = ne("ProLayoutHeader", [Jn], O), r = b(() => u.value === "wide"), I = b(() => i.value), R = b(() => u.value === "mix" || r.value), v = b(() => u.value === "side" || u.value === "simple"), y = b(() => v.value && "light" || t.value), f = b(() => ({
|
|
2031
2032
|
[`${l.value}`]: !0,
|
|
2032
|
-
[`${
|
|
2033
|
-
[`${
|
|
2034
|
-
[`${
|
|
2035
|
-
})), C = b(() => I.value && !a.value),
|
|
2036
|
-
const
|
|
2033
|
+
[`${O}-${y.value}`]: !0,
|
|
2034
|
+
[`${O}`]: !0,
|
|
2035
|
+
[`${g}`]: I.value
|
|
2036
|
+
})), C = b(() => I.value && !a.value), F = b(() => m.value ? p.value && vn(p.value) || [] : u.value === "top" ? p.value : []), c = b(() => v.value && C.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), S = b(() => I.value ? 0 : void 0), M = () => {
|
|
2037
|
+
const B = n(na, q(e, {
|
|
2037
2038
|
theme: y.value,
|
|
2038
2039
|
mode: "horizontal",
|
|
2039
|
-
onCollapse:
|
|
2040
|
-
menuData:
|
|
2040
|
+
onCollapse: h.value,
|
|
2041
|
+
menuData: F.value
|
|
2041
2042
|
}), {
|
|
2042
|
-
default: () => [
|
|
2043
|
+
default: () => [R.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
|
|
2043
2044
|
});
|
|
2044
|
-
return e.headerRender ? e.headerRender(e,
|
|
2045
|
+
return e.headerRender ? e.headerRender(e, B) : B;
|
|
2045
2046
|
};
|
|
2046
2047
|
return () => {
|
|
2047
|
-
let
|
|
2048
|
+
let B;
|
|
2048
2049
|
return T(n(Q, null, [I.value && !r.value && n(Qe, {
|
|
2049
2050
|
theme: y.value,
|
|
2050
2051
|
style: {
|
|
@@ -2058,114 +2059,114 @@ const {
|
|
|
2058
2059
|
style: {
|
|
2059
2060
|
height: `${o.value}px`,
|
|
2060
2061
|
lineHeight: `${o.value}px`,
|
|
2061
|
-
width:
|
|
2062
|
-
zIndex:
|
|
2062
|
+
width: c.value,
|
|
2063
|
+
zIndex: v.value ? 100 : 101,
|
|
2063
2064
|
right: S.value
|
|
2064
2065
|
}
|
|
2065
|
-
},
|
|
2066
|
-
default: () => [
|
|
2066
|
+
}, aa(B = M()) ? B : {
|
|
2067
|
+
default: () => [B]
|
|
2067
2068
|
})]));
|
|
2068
2069
|
};
|
|
2069
2070
|
}
|
|
2070
|
-
}),
|
|
2071
|
+
}), oa = /* @__PURE__ */ j({
|
|
2071
2072
|
name: "BaseProLayout",
|
|
2072
2073
|
inheritAttrs: !1,
|
|
2073
2074
|
components: {
|
|
2074
2075
|
GlobalHeader: Fe,
|
|
2075
|
-
GlobalFooter:
|
|
2076
|
-
SiderMenuWrapper:
|
|
2076
|
+
GlobalFooter: ke,
|
|
2077
|
+
SiderMenuWrapper: Re
|
|
2077
2078
|
},
|
|
2078
|
-
props:
|
|
2079
|
+
props: St,
|
|
2079
2080
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2080
2081
|
setup(e, {
|
|
2081
2082
|
slots: t
|
|
2082
2083
|
}) {
|
|
2083
|
-
const a =
|
|
2084
|
+
const a = me({
|
|
2084
2085
|
suffixCls: "basic-layout",
|
|
2085
2086
|
isPor: !0
|
|
2086
2087
|
}), {
|
|
2087
2088
|
wrapSSR: i,
|
|
2088
2089
|
hashId: o
|
|
2089
|
-
} =
|
|
2090
|
-
token:
|
|
2091
|
-
} =
|
|
2090
|
+
} = ne("ProLayout", [Wn, Kn], a), u = on(), {
|
|
2091
|
+
token: h
|
|
2092
|
+
} = fe(), m = b(() => {
|
|
2092
2093
|
var y;
|
|
2093
|
-
return (y =
|
|
2094
|
+
return (y = h == null ? void 0 : h.value) == null ? void 0 : y.colorPrimary;
|
|
2094
2095
|
});
|
|
2095
|
-
|
|
2096
|
+
Tt(() => {
|
|
2096
2097
|
m.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", m.value);
|
|
2097
2098
|
});
|
|
2098
|
-
const w = b(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = b(() => e.layout === "wide"),
|
|
2099
|
+
const w = b(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), p = b(() => e.layout === "wide"), O = b(() => w.value), g = b(() => e.collapsed ? e.collapsedWidth : e.siderWidth), T = b(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = b(() => (u.value === "sm" || u.value === "xs") && !e.disableMobile && !p.value), r = rt({
|
|
2099
2100
|
position: "relative"
|
|
2100
2101
|
});
|
|
2101
2102
|
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (r.minHeight = 0);
|
|
2102
|
-
const I = (y, f) => y.headerRender === !1 || y.pure ? null : n(Fe,
|
|
2103
|
+
const I = (y, f) => y.headerRender === !1 || y.pure ? null : n(Fe, q(y, {
|
|
2103
2104
|
matchMenuKeys: f || []
|
|
2104
|
-
}), null),
|
|
2105
|
+
}), null), R = b(() => ({
|
|
2105
2106
|
...e.breadcrumb,
|
|
2106
|
-
itemRender:
|
|
2107
|
-
})),
|
|
2107
|
+
itemRender: U(t, e, "breadcrumbRender")
|
|
2108
|
+
})), v = b(() => O.value && e.selectedKeys ? xn(e.menuData, e.selectedKeys[0]) : []);
|
|
2108
2109
|
return Rn({
|
|
2109
|
-
getPrefixCls:
|
|
2110
|
-
...
|
|
2110
|
+
getPrefixCls: me,
|
|
2111
|
+
...le(Se(e), ["layout", "waterMark", "menuData", "openKeys", "splitMenus", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps"].concat(Object.keys(vt))),
|
|
2111
2112
|
theme: T,
|
|
2112
2113
|
hasContentWide: p,
|
|
2113
2114
|
isMobile: l,
|
|
2114
|
-
siderWidth:
|
|
2115
|
-
breadcrumb:
|
|
2116
|
-
flatMenuData:
|
|
2115
|
+
siderWidth: g,
|
|
2116
|
+
breadcrumb: R,
|
|
2117
|
+
flatMenuData: v,
|
|
2117
2118
|
hasSide: w,
|
|
2118
|
-
flatMenu:
|
|
2119
|
-
pageHeaderRender: b(() =>
|
|
2119
|
+
flatMenu: O,
|
|
2120
|
+
pageHeaderRender: b(() => U(t, e, "pageHeaderRender"))
|
|
2120
2121
|
}), () => {
|
|
2121
|
-
var
|
|
2122
|
-
const y =
|
|
2122
|
+
var $;
|
|
2123
|
+
const y = U(t, e, "collapsedButtonRender"), f = U(t, e, "headerContentRender"), C = U(t, e, "rightContentRender"), F = U(t, e, "headerRender"), c = U(t, e, "footerRender"), S = U(t, e, "links"), M = U(t, e, "copyrightRender"), B = U(t, e, "extraRightDropdownRender"), P = U(t, e, "menuHeaderRender"), H = U(t, e, "menuExtraRender"), z = U(t, e, "menuContentRender"), D = U(t, e, "menuFooterRender"), V = U(t, e, "menuItemRender"), _ = U(t, e, "subMenuItemRender"), G = {
|
|
2123
2124
|
menuItemRender: V,
|
|
2124
|
-
subMenuItemRender:
|
|
2125
|
-
},
|
|
2125
|
+
subMenuItemRender: _
|
|
2126
|
+
}, Y = b(() => I({
|
|
2126
2127
|
...e,
|
|
2127
|
-
...
|
|
2128
|
+
...G,
|
|
2128
2129
|
hasSiderMenu: w.value,
|
|
2129
2130
|
menuData: e.menuData,
|
|
2130
|
-
isMobile:
|
|
2131
|
+
isMobile: X(l),
|
|
2131
2132
|
rightContentRender: C,
|
|
2132
|
-
extraRightDropdownRender:
|
|
2133
|
+
extraRightDropdownRender: B,
|
|
2133
2134
|
headerTitleRender: P,
|
|
2134
2135
|
headerContentRender: f,
|
|
2135
|
-
headerRender:
|
|
2136
|
+
headerRender: F,
|
|
2136
2137
|
theme: T.value
|
|
2137
2138
|
}, e.matchMenuKeys)), J = b(() => ({
|
|
2138
2139
|
[`${o.value}`]: !0,
|
|
2139
2140
|
[`${a}`]: !0,
|
|
2140
2141
|
[`${a}-${e.layout}`]: !0
|
|
2141
|
-
})),
|
|
2142
|
+
})), d = b(() => p.value ? {
|
|
2142
2143
|
minWidth: `${e.wideWidth}px`
|
|
2143
|
-
} : void 0),
|
|
2144
|
+
} : void 0), x = b(() => p.value ? {
|
|
2144
2145
|
width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
|
|
2145
2146
|
paddingTop: `${e.headerHeight + 20}px`,
|
|
2146
2147
|
margin: p.value ? "0 auto" : void 0
|
|
2147
|
-
} : void 0),
|
|
2148
|
+
} : void 0), k = b(() => p.value ? {
|
|
2148
2149
|
minHeight: "835px"
|
|
2149
2150
|
} : {});
|
|
2150
|
-
return i(n(Q, null, [e.pure ? (
|
|
2151
|
+
return i(n(Q, null, [e.pure ? ($ = t.default) == null ? void 0 : $.call(t) : n("div", {
|
|
2151
2152
|
class: J.value,
|
|
2152
|
-
style:
|
|
2153
|
-
}, [n(
|
|
2154
|
-
style:
|
|
2153
|
+
style: d.value
|
|
2154
|
+
}, [n(ce, {
|
|
2155
|
+
style: x.value
|
|
2155
2156
|
}, {
|
|
2156
|
-
default: () => [n(
|
|
2157
|
+
default: () => [n(Re, q(Ve(e, ["pure", "theme"]), {
|
|
2157
2158
|
links: S,
|
|
2158
2159
|
theme: T.value,
|
|
2159
2160
|
isMobile: l.value,
|
|
2160
2161
|
menuHeaderRender: P,
|
|
2161
|
-
menuContentRender:
|
|
2162
|
+
menuContentRender: z,
|
|
2162
2163
|
menuExtraRender: H,
|
|
2163
2164
|
menuFooterRender: D,
|
|
2164
2165
|
collapsedButtonRender: y
|
|
2165
|
-
}), null), n(
|
|
2166
|
+
}), null), n(ce, {
|
|
2166
2167
|
style: r
|
|
2167
2168
|
}, {
|
|
2168
|
-
default: () => [
|
|
2169
|
+
default: () => [Y.value, n(Ue, q({
|
|
2169
2170
|
hashId: o.value,
|
|
2170
2171
|
isMobile: l.value,
|
|
2171
2172
|
prefixCls: a,
|
|
@@ -2176,29 +2177,29 @@ const {
|
|
|
2176
2177
|
isFixedMultiTab: e.fixedMultiTab,
|
|
2177
2178
|
siderWidth: e.siderWidth,
|
|
2178
2179
|
collapsed: e.collapsed,
|
|
2179
|
-
style: e.disableContentMargin ?
|
|
2180
|
+
style: e.disableContentMargin ? k.value : {
|
|
2180
2181
|
...e.contentStyle,
|
|
2181
|
-
...
|
|
2182
|
+
...k.value
|
|
2182
2183
|
}
|
|
2183
|
-
},
|
|
2184
|
+
}, le(e, ["onReloadPage", "onChangeTabs"])), {
|
|
2184
2185
|
default: () => {
|
|
2185
|
-
var
|
|
2186
|
-
return [(
|
|
2186
|
+
var N;
|
|
2187
|
+
return [(N = t.default) == null ? void 0 : N.call(t)];
|
|
2187
2188
|
}
|
|
2188
|
-
}),
|
|
2189
|
+
}), c === !1 ? null : c ? c(e) : n(ke, {
|
|
2189
2190
|
copyright: M
|
|
2190
2191
|
}, null)]
|
|
2191
2192
|
})]
|
|
2192
2193
|
})])]));
|
|
2193
2194
|
};
|
|
2194
2195
|
}
|
|
2195
|
-
}),
|
|
2196
|
+
}), Ri = /* @__PURE__ */ j({
|
|
2196
2197
|
components: {
|
|
2197
2198
|
GlobalHeader: Fe,
|
|
2198
|
-
GlobalFooter:
|
|
2199
|
-
SiderMenuWrapper:
|
|
2199
|
+
GlobalFooter: ke,
|
|
2200
|
+
SiderMenuWrapper: Re
|
|
2200
2201
|
},
|
|
2201
|
-
props:
|
|
2202
|
+
props: St,
|
|
2202
2203
|
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2203
2204
|
setup(e, {
|
|
2204
2205
|
slots: t,
|
|
@@ -2208,43 +2209,43 @@ const {
|
|
|
2208
2209
|
dark: e.theme === "realDark"
|
|
2209
2210
|
} : {}), o = (m) => {
|
|
2210
2211
|
a("update:collapsed", m), a("collapse", m);
|
|
2211
|
-
},
|
|
2212
|
+
}, u = (m) => {
|
|
2212
2213
|
a("update:open-keys", m), a("openKeys", m);
|
|
2213
|
-
},
|
|
2214
|
+
}, h = (m) => {
|
|
2214
2215
|
a("update:selected-keys", m), a("select", m);
|
|
2215
2216
|
};
|
|
2216
|
-
return () => n(
|
|
2217
|
+
return () => n(Te, {
|
|
2217
2218
|
theme: e.primaryColor ? {
|
|
2218
2219
|
token: {
|
|
2219
2220
|
colorPrimary: e.primaryColor
|
|
2220
2221
|
}
|
|
2221
2222
|
} : void 0
|
|
2222
2223
|
}, {
|
|
2223
|
-
default: () => [n(
|
|
2224
|
+
default: () => [n(en, q({
|
|
2224
2225
|
token: e.token
|
|
2225
2226
|
}, i.value), {
|
|
2226
|
-
default: () => [n(
|
|
2227
|
-
onSelect:
|
|
2228
|
-
onOpenKeys:
|
|
2227
|
+
default: () => [n(oa, q(Ve(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
|
|
2228
|
+
onSelect: h,
|
|
2229
|
+
onOpenKeys: u,
|
|
2229
2230
|
onCollapse: o
|
|
2230
2231
|
}), t)]
|
|
2231
2232
|
})]
|
|
2232
2233
|
});
|
|
2233
2234
|
}
|
|
2234
|
-
}),
|
|
2235
|
-
var
|
|
2236
|
-
return i.meta && (i.meta.key = a ? `${a}-${o}` : `${o}`), i.path = i.path.replace("//", "/"), i.children && i.children.length > 0 && (i.children =
|
|
2237
|
-
}),
|
|
2235
|
+
}), Mt = (e, t, a) => e.map((i, o) => {
|
|
2236
|
+
var u;
|
|
2237
|
+
return i.meta && (i.meta.key = a ? `${a}-${o}` : `${o}`), i.path = i.path.replace("//", "/"), i.children && i.children.length > 0 && (i.children = Mt(i.children, t, (u = i.meta) == null ? void 0 : u.key)), t[`${i.path}`] = i, i;
|
|
2238
|
+
}), ki = (e) => {
|
|
2238
2239
|
const t = e.find((o) => {
|
|
2239
|
-
var
|
|
2240
|
-
return o.path === "/" && ((
|
|
2241
|
-
}), a = {}, i =
|
|
2240
|
+
var u;
|
|
2241
|
+
return o.path === "/" && ((u = o.children) == null ? void 0 : u.length);
|
|
2242
|
+
}), a = {}, i = Mt((t == null ? void 0 : t.children) || [], a);
|
|
2242
2243
|
return {
|
|
2243
2244
|
menuData: i,
|
|
2244
2245
|
breadcrumb: a,
|
|
2245
|
-
levelMenuData:
|
|
2246
|
+
levelMenuData: Zt(i)
|
|
2246
2247
|
};
|
|
2247
|
-
},
|
|
2248
|
+
}, Bt = [
|
|
2248
2249
|
{
|
|
2249
2250
|
key: "light",
|
|
2250
2251
|
title: "亮色菜单风格"
|
|
@@ -2274,7 +2275,7 @@ const {
|
|
|
2274
2275
|
key: "simple",
|
|
2275
2276
|
title: "简单菜单布局"
|
|
2276
2277
|
}
|
|
2277
|
-
],
|
|
2278
|
+
], ia = [
|
|
2278
2279
|
{
|
|
2279
2280
|
key: "header",
|
|
2280
2281
|
title: "顶部主题"
|
|
@@ -2283,7 +2284,7 @@ const {
|
|
|
2283
2284
|
key: "sider",
|
|
2284
2285
|
title: "左侧主题"
|
|
2285
2286
|
}
|
|
2286
|
-
],
|
|
2287
|
+
], la = (e) => ({
|
|
2287
2288
|
[e.componentCls]: {
|
|
2288
2289
|
[`${e.antCls}-drawer-content-wrapper`]: {
|
|
2289
2290
|
transform: "translate(100%)",
|
|
@@ -2448,7 +2449,7 @@ const {
|
|
|
2448
2449
|
}
|
|
2449
2450
|
}
|
|
2450
2451
|
}
|
|
2451
|
-
}), et = /* @__PURE__ */
|
|
2452
|
+
}), et = /* @__PURE__ */ j({
|
|
2452
2453
|
name: "BlockCheckbox",
|
|
2453
2454
|
props: {
|
|
2454
2455
|
value: L.string,
|
|
@@ -2466,19 +2467,19 @@ const {
|
|
|
2466
2467
|
const t = `${e.prefixCls}-block-checkbox`;
|
|
2467
2468
|
return n("div", {
|
|
2468
2469
|
class: [t, e.hashId]
|
|
2469
|
-
}, [e.list.map((a) => n(
|
|
2470
|
+
}, [e.list.map((a) => n(Ie, {
|
|
2470
2471
|
title: a.title,
|
|
2471
2472
|
key: a.key
|
|
2472
2473
|
}, {
|
|
2473
2474
|
default: () => [n("div", {
|
|
2474
|
-
class:
|
|
2475
|
+
class: mt(e.hashId, `${t}-item`, `${t}-item-${a.key}`, `${t}-${e.configType}-item`),
|
|
2475
2476
|
onClick: () => {
|
|
2476
2477
|
var i;
|
|
2477
2478
|
return (i = e.onChange) == null ? void 0 : i.call(e, a.key);
|
|
2478
2479
|
}
|
|
2479
2480
|
}, [a.key === "wide" && n("div", {
|
|
2480
2481
|
class: [`${t}-item-${a.key}-content`, e.hashId]
|
|
2481
|
-
}, null), n(
|
|
2482
|
+
}, null), n(dt, {
|
|
2482
2483
|
class: `${t}-selectIcon ${e.hashId}`.trim(),
|
|
2483
2484
|
style: {
|
|
2484
2485
|
display: e.value === a.key ? "block" : "none"
|
|
@@ -2489,7 +2490,7 @@ const {
|
|
|
2489
2490
|
}))]);
|
|
2490
2491
|
};
|
|
2491
2492
|
}
|
|
2492
|
-
}),
|
|
2493
|
+
}), ra = /* @__PURE__ */ j({
|
|
2493
2494
|
name: "ThemeColor",
|
|
2494
2495
|
inheritAttrs: !1,
|
|
2495
2496
|
props: {
|
|
@@ -2506,30 +2507,30 @@ const {
|
|
|
2506
2507
|
return () => {
|
|
2507
2508
|
var a;
|
|
2508
2509
|
const t = `${e.prefixCls}-theme-color`;
|
|
2509
|
-
return n(
|
|
2510
|
+
return n("div", {
|
|
2510
2511
|
class: `${t} ${e.hashId}`.trim()
|
|
2511
2512
|
}, [(a = e.colorList) == null ? void 0 : a.map(({
|
|
2512
2513
|
key: i,
|
|
2513
2514
|
color: o,
|
|
2514
|
-
title:
|
|
2515
|
-
}) => i ? n(
|
|
2515
|
+
title: u
|
|
2516
|
+
}) => i ? n(Ie, {
|
|
2516
2517
|
key: o,
|
|
2517
|
-
title:
|
|
2518
|
+
title: u
|
|
2518
2519
|
}, {
|
|
2519
2520
|
default: () => {
|
|
2520
|
-
var
|
|
2521
|
+
var h, m;
|
|
2521
2522
|
return [n("div", {
|
|
2522
|
-
class: [`${t}-block ${e.hashId}`.trim(), ((
|
|
2523
|
+
class: [`${t}-block ${e.hashId}`.trim(), ((h = e.settingValue) == null ? void 0 : h.primaryColor) === o ? `${t}-block-checked` : ""],
|
|
2523
2524
|
style: {
|
|
2524
2525
|
backgroundColor: o
|
|
2525
2526
|
},
|
|
2526
2527
|
onClick: () => e.onChange && e.onChange(o)
|
|
2527
|
-
}, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === o && n(
|
|
2528
|
+
}, [((m = e.settingValue) == null ? void 0 : m.primaryColor) === o && n(dt, null, null)])];
|
|
2528
2529
|
}
|
|
2529
|
-
}) : null)])
|
|
2530
|
+
}) : null)]);
|
|
2530
2531
|
};
|
|
2531
2532
|
}
|
|
2532
|
-
}),
|
|
2533
|
+
}), ye = /* @__PURE__ */ j({
|
|
2533
2534
|
name: "RegionalChange",
|
|
2534
2535
|
props: {
|
|
2535
2536
|
label: L.string,
|
|
@@ -2541,17 +2542,17 @@ const {
|
|
|
2541
2542
|
onChange: Function
|
|
2542
2543
|
},
|
|
2543
2544
|
setup(e) {
|
|
2544
|
-
return () => n(
|
|
2545
|
+
return () => n(oe, {
|
|
2545
2546
|
class: `${e.prefixCls}-list ${e.hashId}`.trim(),
|
|
2546
2547
|
split: !1,
|
|
2547
2548
|
size: "small",
|
|
2548
2549
|
renderItem: ({
|
|
2549
2550
|
item: t
|
|
2550
|
-
}) => n(
|
|
2551
|
+
}) => n(Ie, {
|
|
2551
2552
|
title: t.disabled ? t.disabledReason : "",
|
|
2552
2553
|
placement: "left"
|
|
2553
2554
|
}, {
|
|
2554
|
-
default: () => [n(
|
|
2555
|
+
default: () => [n(oe.Item, {
|
|
2555
2556
|
actions: [t.action]
|
|
2556
2557
|
}, {
|
|
2557
2558
|
default: () => [n("span", {
|
|
@@ -2574,7 +2575,7 @@ const {
|
|
|
2574
2575
|
}]
|
|
2575
2576
|
}, null);
|
|
2576
2577
|
}
|
|
2577
|
-
}),
|
|
2578
|
+
}), sa = (e) => ({
|
|
2578
2579
|
[e.componentCls]: {
|
|
2579
2580
|
padding: e.marginLG,
|
|
2580
2581
|
"&-title": {
|
|
@@ -2605,10 +2606,10 @@ const {
|
|
|
2605
2606
|
}
|
|
2606
2607
|
}
|
|
2607
2608
|
});
|
|
2608
|
-
function
|
|
2609
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2609
|
+
function ua(e) {
|
|
2610
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
2610
2611
|
}
|
|
2611
|
-
const da = /* @__PURE__ */
|
|
2612
|
+
const da = /* @__PURE__ */ j({
|
|
2612
2613
|
name: "ThemeEditor",
|
|
2613
2614
|
props: {
|
|
2614
2615
|
settingValue: Object,
|
|
@@ -2617,19 +2618,19 @@ const da = /* @__PURE__ */ W({
|
|
|
2617
2618
|
setup(e) {
|
|
2618
2619
|
const {
|
|
2619
2620
|
getPrefixCls: t
|
|
2620
|
-
} =
|
|
2621
|
+
} = ee(), [a, i] = ve("header"), o = t({
|
|
2621
2622
|
suffixCls: "theme-editor",
|
|
2622
2623
|
isPor: !0
|
|
2623
2624
|
}), {
|
|
2624
|
-
wrapSSR:
|
|
2625
|
-
hashId:
|
|
2626
|
-
} =
|
|
2625
|
+
wrapSSR: u,
|
|
2626
|
+
hashId: h
|
|
2627
|
+
} = ne("ProThemeEditor", [sa], o), {
|
|
2627
2628
|
token: m
|
|
2628
|
-
} =
|
|
2629
|
+
} = fe(), w = b(() => {
|
|
2629
2630
|
var l;
|
|
2630
2631
|
return (l = m.value) == null ? void 0 : l.layout;
|
|
2631
2632
|
}), p = b(() => {
|
|
2632
|
-
var l, r, I,
|
|
2633
|
+
var l, r, I, R, v, y, f, C, F, c, S, M, B, P, H, z, D, V, _, G, Y, J, d, x, k;
|
|
2633
2634
|
return [{
|
|
2634
2635
|
key: "colorBgMenu",
|
|
2635
2636
|
title: "全部背景",
|
|
@@ -2637,7 +2638,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2637
2638
|
}, {
|
|
2638
2639
|
key: "colorDarkBgMenu",
|
|
2639
2640
|
title: "全部背景",
|
|
2640
|
-
disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((
|
|
2641
|
+
disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["side", "simple"].includes((v = e.settingValue) == null ? void 0 : v.layout)
|
|
2641
2642
|
}, {
|
|
2642
2643
|
key: "colorSubItemBg",
|
|
2643
2644
|
title: "子菜单背景",
|
|
@@ -2653,7 +2654,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2653
2654
|
}, {
|
|
2654
2655
|
key: "colorDarkBgMenuItemSelected",
|
|
2655
2656
|
title: "菜单选中背景",
|
|
2656
|
-
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || ((
|
|
2657
|
+
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || ((F = e.settingValue) == null ? void 0 : F.theme) === "dark" && ["side", "simple"].includes((c = e.settingValue) == null ? void 0 : c.layout)
|
|
2657
2658
|
}, {
|
|
2658
2659
|
key: "colorTextMenu",
|
|
2659
2660
|
title: "菜单文字颜色",
|
|
@@ -2661,26 +2662,26 @@ const da = /* @__PURE__ */ W({
|
|
|
2661
2662
|
}, {
|
|
2662
2663
|
key: "colorDarkTextMenu",
|
|
2663
2664
|
title: "菜单文字颜色",
|
|
2664
|
-
disabled: ((
|
|
2665
|
+
disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "light" || ((P = e.settingValue) == null ? void 0 : P.theme) === "dark" && ["side", "simple"].includes((H = e.settingValue) == null ? void 0 : H.layout)
|
|
2665
2666
|
}, {
|
|
2666
2667
|
key: "colorTextMenuHover",
|
|
2667
2668
|
title: "菜单文字移入颜色",
|
|
2668
|
-
disabled: ((
|
|
2669
|
+
disabled: ((z = e.settingValue) == null ? void 0 : z.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
|
|
2669
2670
|
}, {
|
|
2670
2671
|
key: "colorDarkTextMenuHover",
|
|
2671
2672
|
title: "菜单文字移入颜色",
|
|
2672
|
-
disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "light" || ((
|
|
2673
|
+
disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "light" || ((_ = e.settingValue) == null ? void 0 : _.theme) === "dark" && ["side", "simple"].includes((G = e.settingValue) == null ? void 0 : G.layout)
|
|
2673
2674
|
}, {
|
|
2674
2675
|
key: "colorTextMenuSelected",
|
|
2675
2676
|
title: "菜单文字选中颜色",
|
|
2676
|
-
disabled: ((
|
|
2677
|
+
disabled: ((Y = e.settingValue) == null ? void 0 : Y.theme) === "dark" && ["mix", "wide"].includes((J = e.settingValue) == null ? void 0 : J.layout)
|
|
2677
2678
|
}, {
|
|
2678
2679
|
key: "colorDarkTextMenuSelected",
|
|
2679
2680
|
title: "菜单文字选中颜色",
|
|
2680
|
-
disabled: ((
|
|
2681
|
+
disabled: ((d = e.settingValue) == null ? void 0 : d.theme) === "light" || ((x = e.settingValue) == null ? void 0 : x.theme) === "dark" && ["side", "simple"].includes((k = e.settingValue) == null ? void 0 : k.layout)
|
|
2681
2682
|
}];
|
|
2682
|
-
}),
|
|
2683
|
-
var l, r, I,
|
|
2683
|
+
}), O = b(() => {
|
|
2684
|
+
var l, r, I, R, v, y, f, C, F, c, S, M, B, P, H, z, D, V, _, G, Y, J, d, x, k, $, N, K, W, ge, Ee, Xe;
|
|
2684
2685
|
return [{
|
|
2685
2686
|
key: "colorBgMenu",
|
|
2686
2687
|
title: "全部背景",
|
|
@@ -2688,7 +2689,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2688
2689
|
}, {
|
|
2689
2690
|
key: "colorDarkBgMenu",
|
|
2690
2691
|
title: "全部背景",
|
|
2691
|
-
disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((
|
|
2692
|
+
disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((R = e.settingValue) == null ? void 0 : R.theme) === "dark" && ["mix", "wide"].includes((v = e.settingValue) == null ? void 0 : v.layout)
|
|
2692
2693
|
}, {
|
|
2693
2694
|
key: "colorSubItemBg",
|
|
2694
2695
|
title: "子菜单背景",
|
|
@@ -2696,7 +2697,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2696
2697
|
}, {
|
|
2697
2698
|
key: "colorDarkSubItemBg",
|
|
2698
2699
|
title: "子菜单背景",
|
|
2699
|
-
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || ((
|
|
2700
|
+
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || ((F = e.settingValue) == null ? void 0 : F.theme) === "dark" && ["mix", "wide"].includes((c = e.settingValue) == null ? void 0 : c.layout)
|
|
2700
2701
|
}, {
|
|
2701
2702
|
key: "colorBgMenuItemHover",
|
|
2702
2703
|
title: "菜单移入背景",
|
|
@@ -2704,100 +2705,100 @@ const da = /* @__PURE__ */ W({
|
|
|
2704
2705
|
}, {
|
|
2705
2706
|
key: "colorBgMenuItemSelected",
|
|
2706
2707
|
title: "菜单选中背景",
|
|
2707
|
-
disabled: ((
|
|
2708
|
+
disabled: ((B = e.settingValue) == null ? void 0 : B.theme) === "dark" && ((P = e.settingValue) == null ? void 0 : P.layout) !== "mix"
|
|
2708
2709
|
}, {
|
|
2709
2710
|
key: "colorDarkBgMenuItemSelected",
|
|
2710
2711
|
title: "菜单选中背景",
|
|
2711
|
-
disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "light" || ((
|
|
2712
|
+
disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "light" || ((z = e.settingValue) == null ? void 0 : z.theme) === "dark" && ["mix", "wide"].includes((D = e.settingValue) == null ? void 0 : D.layout)
|
|
2712
2713
|
}, {
|
|
2713
2714
|
key: "colorTextMenu",
|
|
2714
2715
|
title: "菜单文字颜色",
|
|
2715
|
-
disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "dark" && ((
|
|
2716
|
+
disabled: ((V = e.settingValue) == null ? void 0 : V.theme) === "dark" && ((_ = e.settingValue) == null ? void 0 : _.layout) !== "mix"
|
|
2716
2717
|
}, {
|
|
2717
2718
|
key: "colorDarkTextMenu",
|
|
2718
2719
|
title: "菜单文字颜色",
|
|
2719
|
-
disabled: ((
|
|
2720
|
+
disabled: ((G = e.settingValue) == null ? void 0 : G.theme) === "light" || ((Y = e.settingValue) == null ? void 0 : Y.theme) === "dark" && ["mix", "wide"].includes((J = e.settingValue) == null ? void 0 : J.layout)
|
|
2720
2721
|
}, {
|
|
2721
2722
|
key: "colorTextMenuHover",
|
|
2722
2723
|
title: "菜单文字移入颜色",
|
|
2723
|
-
disabled: ((
|
|
2724
|
+
disabled: ((d = e.settingValue) == null ? void 0 : d.theme) === "dark" && ((x = e.settingValue) == null ? void 0 : x.layout) !== "mix"
|
|
2724
2725
|
}, {
|
|
2725
2726
|
key: "colorDarkTextMenuHover",
|
|
2726
2727
|
title: "菜单文字移入颜色",
|
|
2727
|
-
disabled: ((
|
|
2728
|
+
disabled: ((k = e.settingValue) == null ? void 0 : k.theme) === "light" || (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["mix", "wide"].includes((N = e.settingValue) == null ? void 0 : N.layout)
|
|
2728
2729
|
}, {
|
|
2729
2730
|
key: "colorTextMenuSelected",
|
|
2730
2731
|
title: "菜单文字选中颜色",
|
|
2731
|
-
disabled: ((
|
|
2732
|
+
disabled: ((K = e.settingValue) == null ? void 0 : K.theme) === "dark" && ((W = e.settingValue) == null ? void 0 : W.layout) !== "mix"
|
|
2732
2733
|
}, {
|
|
2733
2734
|
key: "colorDarkTextMenuSelected",
|
|
2734
2735
|
title: "菜单文字选中颜色",
|
|
2735
|
-
disabled: ((
|
|
2736
|
+
disabled: ((ge = e.settingValue) == null ? void 0 : ge.theme) === "light" || ((Ee = e.settingValue) == null ? void 0 : Ee.theme) === "dark" && ["mix", "wide"].includes((Xe = e.settingValue) == null ? void 0 : Xe.layout)
|
|
2736
2737
|
}];
|
|
2737
|
-
}),
|
|
2738
|
+
}), g = b(() => a.value === "header" ? p.value : a.value === "sider" ? O.value : []), T = (l) => {
|
|
2738
2739
|
var r, I;
|
|
2739
|
-
return (I = (r = w.value) == null ? void 0 : r[a.value]) == null ? void 0 : I[l];
|
|
2740
|
+
return console.log(w.value), (I = (r = w.value) == null ? void 0 : r[a.value]) == null ? void 0 : I[l];
|
|
2740
2741
|
};
|
|
2741
2742
|
return () => {
|
|
2742
|
-
var r, I,
|
|
2743
|
+
var r, I, R;
|
|
2743
2744
|
let l;
|
|
2744
|
-
return
|
|
2745
|
-
class: [o,
|
|
2745
|
+
return console.log(g.value), u(n("div", {
|
|
2746
|
+
class: [o, h.value]
|
|
2746
2747
|
}, [n("h3", {
|
|
2747
|
-
class: [`${o}-title`,
|
|
2748
|
-
}, [
|
|
2749
|
-
class: [`${o}-sub-title`,
|
|
2750
|
-
}, [n("span", null, [(r =
|
|
2748
|
+
class: [`${o}-title`, h.value]
|
|
2749
|
+
}, [te("主题编辑器"), n("div", {
|
|
2750
|
+
class: [`${o}-sub-title`, h.value]
|
|
2751
|
+
}, [n("span", null, [(r = Bt.find((v) => {
|
|
2751
2752
|
var y;
|
|
2752
|
-
return
|
|
2753
|
+
return v.key === ((y = e.settingValue) == null ? void 0 : y.theme);
|
|
2753
2754
|
})) == null ? void 0 : r.title]), n("span", {
|
|
2754
2755
|
style: {
|
|
2755
2756
|
marginInline: "8px"
|
|
2756
2757
|
}
|
|
2757
|
-
}, [
|
|
2758
|
+
}, [te("/")]), n("span", null, [(I = Ot.find((v) => {
|
|
2758
2759
|
var y;
|
|
2759
|
-
return
|
|
2760
|
+
return v.key === ((y = e.settingValue) == null ? void 0 : y.layout);
|
|
2760
2761
|
})) == null ? void 0 : I.title])])]), n("div", {
|
|
2761
|
-
class: [`${o}-content`,
|
|
2762
|
-
}, [n(
|
|
2763
|
-
class: `${o}-list ${
|
|
2762
|
+
class: [`${o}-content`, h.value]
|
|
2763
|
+
}, [n(oe, {
|
|
2764
|
+
class: `${o}-list ${h.value}`.trim(),
|
|
2764
2765
|
split: !1,
|
|
2765
2766
|
size: "small",
|
|
2766
2767
|
renderItem: ({
|
|
2767
|
-
item:
|
|
2768
|
-
}) => n(
|
|
2769
|
-
actions: [
|
|
2768
|
+
item: v
|
|
2769
|
+
}) => n(oe.Item, {
|
|
2770
|
+
actions: [v.action]
|
|
2770
2771
|
}, {
|
|
2771
2772
|
default: () => [n("span", {
|
|
2772
2773
|
style: {
|
|
2773
|
-
opacity:
|
|
2774
|
+
opacity: v.disabled ? 0.5 : 1
|
|
2774
2775
|
}
|
|
2775
|
-
}, [
|
|
2776
|
+
}, [v.title])]
|
|
2776
2777
|
}),
|
|
2777
2778
|
dataSource: [{
|
|
2778
2779
|
title: "自定义主题色",
|
|
2779
2780
|
action: n(Ge, {
|
|
2780
|
-
value: (
|
|
2781
|
+
value: (R = e.settingValue) == null ? void 0 : R.primaryColor,
|
|
2781
2782
|
actions: ["confirm"],
|
|
2782
2783
|
modes: ["rgb"],
|
|
2783
2784
|
size: "small",
|
|
2784
|
-
onConfirm: (
|
|
2785
|
+
onConfirm: (v) => e.onChange && e.onChange(v, "primaryColor")
|
|
2785
2786
|
}, null)
|
|
2786
2787
|
}]
|
|
2787
|
-
}, null), n(
|
|
2788
|
+
}, null), n(Pe, {
|
|
2788
2789
|
activeKey: a.value,
|
|
2789
|
-
onChange: i
|
|
2790
|
-
},
|
|
2791
|
-
key:
|
|
2792
|
-
tab:
|
|
2790
|
+
onChange: (v) => i(v)
|
|
2791
|
+
}, ua(l = ia.map((v) => n(zt, {
|
|
2792
|
+
key: v.key,
|
|
2793
|
+
tab: v.title
|
|
2793
2794
|
}, {
|
|
2794
|
-
default: () => [n(
|
|
2795
|
-
class: `${o}-list ${
|
|
2795
|
+
default: () => [n(oe, {
|
|
2796
|
+
class: `${o}-list ${h.value}`.trim(),
|
|
2796
2797
|
split: !1,
|
|
2797
2798
|
size: "small",
|
|
2798
2799
|
renderItem: ({
|
|
2799
2800
|
item: y
|
|
2800
|
-
}) => n(
|
|
2801
|
+
}) => n(oe.Item, {
|
|
2801
2802
|
actions: [y.action]
|
|
2802
2803
|
}, {
|
|
2803
2804
|
default: () => [n("span", {
|
|
@@ -2806,7 +2807,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2806
2807
|
}
|
|
2807
2808
|
}, [y.title])]
|
|
2808
2809
|
}),
|
|
2809
|
-
dataSource:
|
|
2810
|
+
dataSource: g.value.filter((y) => !y.disabled).map((y) => ({
|
|
2810
2811
|
...y,
|
|
2811
2812
|
action: n(Ge, {
|
|
2812
2813
|
value: T(y.key),
|
|
@@ -2822,7 +2823,7 @@ const da = /* @__PURE__ */ W({
|
|
|
2822
2823
|
})])]));
|
|
2823
2824
|
};
|
|
2824
2825
|
}
|
|
2825
|
-
}),
|
|
2826
|
+
}), ca = (e) => ({
|
|
2826
2827
|
[e.componentCls]: {
|
|
2827
2828
|
padding: e.marginLG,
|
|
2828
2829
|
"&-title": {
|
|
@@ -2854,11 +2855,11 @@ const da = /* @__PURE__ */ W({
|
|
|
2854
2855
|
}
|
|
2855
2856
|
});
|
|
2856
2857
|
function tt(e) {
|
|
2857
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
2858
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
2858
2859
|
}
|
|
2859
2860
|
const {
|
|
2860
2861
|
preset: nt
|
|
2861
|
-
} =
|
|
2862
|
+
} = Ae, ma = /* @__PURE__ */ j({
|
|
2862
2863
|
name: "OthersChange",
|
|
2863
2864
|
props: {
|
|
2864
2865
|
prefixCls: L.string,
|
|
@@ -2866,31 +2867,31 @@ const {
|
|
|
2866
2867
|
onChange: Function
|
|
2867
2868
|
},
|
|
2868
2869
|
setup(e) {
|
|
2869
|
-
const t =
|
|
2870
|
+
const t = me({
|
|
2870
2871
|
suffixCls: "others",
|
|
2871
2872
|
isPor: !0
|
|
2872
2873
|
}), {
|
|
2873
2874
|
wrapSSR: a,
|
|
2874
2875
|
hashId: i
|
|
2875
|
-
} =
|
|
2876
|
+
} = ne("SettingsDrawOthers", [ca], t);
|
|
2876
2877
|
return () => {
|
|
2877
|
-
var
|
|
2878
|
+
var u, h, m, w, p, O, g, T, l, r, I, R, v, y;
|
|
2878
2879
|
let o;
|
|
2879
2880
|
return a(n("div", {
|
|
2880
2881
|
class: [t, i.value]
|
|
2881
2882
|
}, [n("h3", {
|
|
2882
2883
|
class: [`${t}-title`, i.value]
|
|
2883
|
-
}, [
|
|
2884
|
+
}, [te("页面动画设置")]), n(oe, {
|
|
2884
2885
|
class: `${t}-list ${i.value}`.trim(),
|
|
2885
2886
|
split: !1,
|
|
2886
2887
|
size: "small",
|
|
2887
2888
|
renderItem: ({
|
|
2888
2889
|
item: f
|
|
2889
|
-
}) => n(
|
|
2890
|
+
}) => n(Ie, {
|
|
2890
2891
|
title: f.disabled ? f.disabledReason : "",
|
|
2891
2892
|
placement: "left"
|
|
2892
2893
|
}, {
|
|
2893
|
-
default: () => [n(
|
|
2894
|
+
default: () => [n(oe.Item, {
|
|
2894
2895
|
actions: [f.action]
|
|
2895
2896
|
}, {
|
|
2896
2897
|
default: () => [n("span", {
|
|
@@ -2903,7 +2904,7 @@ const {
|
|
|
2903
2904
|
dataSource: [{
|
|
2904
2905
|
title: "禁用动画",
|
|
2905
2906
|
action: n(st, {
|
|
2906
|
-
checked: !((
|
|
2907
|
+
checked: !((h = (u = e.settingValue) == null ? void 0 : u.animate) != null && h.disabled),
|
|
2907
2908
|
size: "small",
|
|
2908
2909
|
onChange: (f) => {
|
|
2909
2910
|
var C;
|
|
@@ -2913,19 +2914,19 @@ const {
|
|
|
2913
2914
|
}, {
|
|
2914
2915
|
title: "动画效果",
|
|
2915
2916
|
disabled: (w = (m = e.settingValue) == null ? void 0 : m.animate) == null ? void 0 : w.disabled,
|
|
2916
|
-
action: n(
|
|
2917
|
-
value: (
|
|
2917
|
+
action: n(he, {
|
|
2918
|
+
value: (O = (p = e.settingValue) == null ? void 0 : p.animate) == null ? void 0 : O.name,
|
|
2918
2919
|
style: {
|
|
2919
2920
|
width: "100px"
|
|
2920
2921
|
},
|
|
2921
2922
|
size: "small",
|
|
2922
|
-
disabled: (T = (
|
|
2923
|
+
disabled: (T = (g = e.settingValue) == null ? void 0 : g.animate) == null ? void 0 : T.disabled,
|
|
2923
2924
|
getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
|
|
2924
2925
|
onChange: (f) => {
|
|
2925
2926
|
var C;
|
|
2926
2927
|
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "name", f);
|
|
2927
2928
|
}
|
|
2928
|
-
}, tt(o = nt.map((f) => n(
|
|
2929
|
+
}, tt(o = nt.map((f) => n(he.Option, {
|
|
2929
2930
|
value: f.name
|
|
2930
2931
|
}, {
|
|
2931
2932
|
default: () => [f.alias]
|
|
@@ -2935,8 +2936,8 @@ const {
|
|
|
2935
2936
|
}, {
|
|
2936
2937
|
title: "动画方向",
|
|
2937
2938
|
disabled: (r = (l = e.settingValue) == null ? void 0 : l.animate) == null ? void 0 : r.disabled,
|
|
2938
|
-
action: n(
|
|
2939
|
-
value: (
|
|
2939
|
+
action: n(he, {
|
|
2940
|
+
value: (R = (I = e.settingValue) == null ? void 0 : I.animate) == null ? void 0 : R.direction,
|
|
2940
2941
|
style: {
|
|
2941
2942
|
width: "100px"
|
|
2942
2943
|
},
|
|
@@ -2944,7 +2945,7 @@ const {
|
|
|
2944
2945
|
dropdownStyle: {
|
|
2945
2946
|
minWidth: "120px"
|
|
2946
2947
|
},
|
|
2947
|
-
disabled: (y = (
|
|
2948
|
+
disabled: (y = (v = e.settingValue) == null ? void 0 : v.animate) == null ? void 0 : y.disabled,
|
|
2948
2949
|
getPopupContainer: (f) => f && f.parentNode ? f.parentNode : f,
|
|
2949
2950
|
onChange: (f) => {
|
|
2950
2951
|
var C;
|
|
@@ -2954,9 +2955,9 @@ const {
|
|
|
2954
2955
|
default: () => {
|
|
2955
2956
|
var f;
|
|
2956
2957
|
return [(f = nt.find((C) => {
|
|
2957
|
-
var
|
|
2958
|
-
return C.name === ((
|
|
2959
|
-
})) == null ? void 0 : f.directions.map((C) => n(
|
|
2958
|
+
var F, c;
|
|
2959
|
+
return C.name === ((c = (F = e.settingValue) == null ? void 0 : F.animate) == null ? void 0 : c.name);
|
|
2960
|
+
})) == null ? void 0 : f.directions.map((C) => n(he.Option, {
|
|
2960
2961
|
value: C
|
|
2961
2962
|
}, tt(C) ? C : {
|
|
2962
2963
|
default: () => [C]
|
|
@@ -2968,11 +2969,11 @@ const {
|
|
|
2968
2969
|
};
|
|
2969
2970
|
}
|
|
2970
2971
|
}), {
|
|
2971
|
-
preset:
|
|
2972
|
-
} =
|
|
2972
|
+
preset: fa
|
|
2973
|
+
} = Ae, $e = Object.keys(A).filter((e) => e !== "title"), at = {
|
|
2973
2974
|
color: "#fff",
|
|
2974
2975
|
fontSize: 20
|
|
2975
|
-
},
|
|
2976
|
+
}, ga = [{
|
|
2976
2977
|
label: "fixedHeader",
|
|
2977
2978
|
title: "固定 Header"
|
|
2978
2979
|
}, {
|
|
@@ -2981,16 +2982,16 @@ const {
|
|
|
2981
2982
|
}, {
|
|
2982
2983
|
label: "splitMenus",
|
|
2983
2984
|
title: "自动分割菜单"
|
|
2984
|
-
}],
|
|
2985
|
+
}], ha = [{
|
|
2985
2986
|
label: "showTabsBar",
|
|
2986
2987
|
title: "多标签"
|
|
2987
2988
|
}, {
|
|
2988
2989
|
label: "fixedMultiTab",
|
|
2989
2990
|
title: "固定多标签"
|
|
2990
|
-
}], ot = (e) =>
|
|
2991
|
-
...
|
|
2991
|
+
}], ot = (e) => Jt() ? {
|
|
2992
|
+
...le(A, $e),
|
|
2992
2993
|
...e || {}
|
|
2993
|
-
} :
|
|
2994
|
+
} : He(A), be = (e, {
|
|
2994
2995
|
slots: t
|
|
2995
2996
|
}) => {
|
|
2996
2997
|
var a;
|
|
@@ -3001,7 +3002,7 @@ const {
|
|
|
3001
3002
|
}, [n("h3", {
|
|
3002
3003
|
class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
|
|
3003
3004
|
}, [e.title]), (a = t.default) == null ? void 0 : a.call(t)]);
|
|
3004
|
-
},
|
|
3005
|
+
}, Fi = /* @__PURE__ */ j({
|
|
3005
3006
|
name: "SettingDrawer",
|
|
3006
3007
|
props: {
|
|
3007
3008
|
themeOnly: Boolean,
|
|
@@ -3014,7 +3015,7 @@ const {
|
|
|
3014
3015
|
},
|
|
3015
3016
|
colorList: {
|
|
3016
3017
|
type: [Boolean, Array],
|
|
3017
|
-
default: () =>
|
|
3018
|
+
default: () => tn
|
|
3018
3019
|
},
|
|
3019
3020
|
onChange: Function,
|
|
3020
3021
|
onChangeLayout: Function
|
|
@@ -3023,48 +3024,48 @@ const {
|
|
|
3023
3024
|
setup(e) {
|
|
3024
3025
|
const {
|
|
3025
3026
|
getPrefixCls: t
|
|
3026
|
-
} =
|
|
3027
|
+
} = ee(), a = t({
|
|
3027
3028
|
suffixCls: "setting-drawer",
|
|
3028
3029
|
isPor: !0
|
|
3029
3030
|
}), {
|
|
3030
3031
|
wrapSSR: i,
|
|
3031
3032
|
hashId: o
|
|
3032
|
-
} =
|
|
3033
|
+
} = ne("ProSettingDraw", [la], a), u = Oe(!1), [h, m] = ve(!1), [w, p] = ve(!1), [O, g] = ve(!1), T = b(() => ot(le(e.settings, $e))), [l, r] = ln(() => ot(le(e.settings, $e)), {
|
|
3033
3034
|
value: T,
|
|
3034
3035
|
onChange: e.onChange
|
|
3035
|
-
}), I = b(() => e.colorList &&
|
|
3036
|
-
copy:
|
|
3036
|
+
}), I = b(() => e.colorList && ct(e.colorList) ? e.colorList : []), R = b(() => Sn(X(l))), {
|
|
3037
|
+
copy: v,
|
|
3037
3038
|
copied: y,
|
|
3038
3039
|
isSupported: f
|
|
3039
|
-
} =
|
|
3040
|
-
|
|
3041
|
-
|
|
3040
|
+
} = un();
|
|
3041
|
+
de(h, () => {
|
|
3042
|
+
u.value || (u.value = !0);
|
|
3042
3043
|
});
|
|
3043
|
-
const C = (
|
|
3044
|
-
var H,
|
|
3045
|
-
const
|
|
3046
|
-
if (M &&
|
|
3047
|
-
P[
|
|
3044
|
+
const C = (c, S, M) => {
|
|
3045
|
+
var H, z;
|
|
3046
|
+
const B = ["header", "sider"], P = {};
|
|
3047
|
+
if (M && B.includes(c)) {
|
|
3048
|
+
P[c] = {}, P[c][M] = S, e.onChangeLayout && e.onChangeLayout(le(P, B));
|
|
3048
3049
|
return;
|
|
3049
3050
|
} else
|
|
3050
|
-
|
|
3051
|
-
if (
|
|
3051
|
+
c === "animate" ? (P[c] = {}, P[c][M] = S, M === "name" && (P[c].direction = (z = (H = fa.find((D) => D.name === S)) == null ? void 0 : H.directions) == null ? void 0 : z[0])) : P[c] = S;
|
|
3052
|
+
if (c === "colorWeak") {
|
|
3052
3053
|
const D = document.querySelector("body");
|
|
3053
3054
|
D && (D.dataset.prosettingdrawer = S === !0 ? D.style.filter : D.dataset.prosettingdrawer || "none", S === !0 && (D.dataset.prosettingdrawer = D.style.filter), D.style.filter = S === !0 ? "invert(80%)" : D.dataset.prosettingdrawer || "none", S || delete D.dataset.prosettingdrawer);
|
|
3054
3055
|
}
|
|
3055
|
-
r(
|
|
3056
|
-
...
|
|
3056
|
+
r(Qt(X(l), {
|
|
3057
|
+
...wn(Ve(P, B))
|
|
3057
3058
|
}));
|
|
3058
|
-
},
|
|
3059
|
-
f.value &&
|
|
3059
|
+
}, F = () => {
|
|
3060
|
+
f.value && v(JSON.stringify(X(l)));
|
|
3060
3061
|
};
|
|
3061
|
-
return
|
|
3062
|
-
|
|
3063
|
-
}), () => i(n(
|
|
3062
|
+
return de(y, (c) => {
|
|
3063
|
+
c && Ht.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
3064
|
+
}), () => i(n(pe, {
|
|
3064
3065
|
width: 300,
|
|
3065
3066
|
closable: !1,
|
|
3066
|
-
open:
|
|
3067
|
-
rootClassName: `${a} ${o.value} ${
|
|
3067
|
+
open: h.value,
|
|
3068
|
+
rootClassName: `${a} ${o.value} ${h.value && `${a}-show`} ${!u.value && `${a}-trantion-none`}`,
|
|
3068
3069
|
placement: "right",
|
|
3069
3070
|
rootStyle: {
|
|
3070
3071
|
zIndex: 999
|
|
@@ -3075,10 +3076,10 @@ const {
|
|
|
3075
3076
|
onClose: () => m(!1),
|
|
3076
3077
|
handle: n("div", {
|
|
3077
3078
|
class: [`${a}-handle`, o.value],
|
|
3078
|
-
onClick: () => m(!
|
|
3079
|
-
}, [
|
|
3079
|
+
onClick: () => m(!h.value)
|
|
3080
|
+
}, [h.value ? n(ut, {
|
|
3080
3081
|
style: at
|
|
3081
|
-
}, null) : n(
|
|
3082
|
+
}, null) : n(_t, {
|
|
3082
3083
|
style: at
|
|
3083
3084
|
}, null)])
|
|
3084
3085
|
}, {
|
|
@@ -3087,7 +3088,7 @@ const {
|
|
|
3087
3088
|
}, [n(dn, null, {
|
|
3088
3089
|
default: () => [n("div", {
|
|
3089
3090
|
class: [`${a}-content`, o.value]
|
|
3090
|
-
}, [n(
|
|
3091
|
+
}, [n(be, {
|
|
3091
3092
|
prefixCls: a,
|
|
3092
3093
|
hashId: o.value,
|
|
3093
3094
|
title: "整体风格设置"
|
|
@@ -3095,105 +3096,105 @@ const {
|
|
|
3095
3096
|
default: () => [n(et, {
|
|
3096
3097
|
hashId: o.value,
|
|
3097
3098
|
prefixCls: a,
|
|
3098
|
-
list:
|
|
3099
|
+
list: Bt,
|
|
3099
3100
|
value: l.value.theme,
|
|
3100
3101
|
configType: "theme",
|
|
3101
3102
|
key: "navTheme",
|
|
3102
|
-
onChange: (
|
|
3103
|
+
onChange: (c) => C("theme", c)
|
|
3103
3104
|
}, null)]
|
|
3104
|
-
}), n(
|
|
3105
|
+
}), n(be, {
|
|
3105
3106
|
hashId: o.value,
|
|
3106
|
-
title: n("span", null, [
|
|
3107
|
+
title: n("span", null, [te("主题色"), n("a", {
|
|
3107
3108
|
style: {
|
|
3108
3109
|
fontSize: "12px"
|
|
3109
3110
|
},
|
|
3110
3111
|
onClick: () => p(!0)
|
|
3111
|
-
}, [
|
|
3112
|
+
}, [te("更多配置")])]),
|
|
3112
3113
|
prefixCls: a
|
|
3113
3114
|
}, {
|
|
3114
|
-
default: () => [n(
|
|
3115
|
+
default: () => [n(ra, {
|
|
3115
3116
|
hashId: o.value,
|
|
3116
3117
|
prefixCls: a,
|
|
3117
3118
|
colorList: I.value,
|
|
3118
3119
|
settingValue: l.value,
|
|
3119
|
-
onChange: (
|
|
3120
|
+
onChange: (c, S) => C(S || "primaryColor", c)
|
|
3120
3121
|
}, null)]
|
|
3121
|
-
}), !e.themeOnly && n(Q, null, [n(
|
|
3122
|
+
}), !e.themeOnly && n(Q, null, [n(Be, null, null), n(be, {
|
|
3122
3123
|
hashId: o.value,
|
|
3123
3124
|
prefixCls: a,
|
|
3124
3125
|
title: "导航模式"
|
|
3125
3126
|
}, {
|
|
3126
3127
|
default: () => [n(et, {
|
|
3127
3128
|
prefixCls: a,
|
|
3128
|
-
value:
|
|
3129
|
+
value: X(l).layout,
|
|
3129
3130
|
key: "layout",
|
|
3130
3131
|
hashId: o.value,
|
|
3131
3132
|
configType: "layout",
|
|
3132
3133
|
list: Ot,
|
|
3133
|
-
onChange: (
|
|
3134
|
+
onChange: (c) => C("layout", c)
|
|
3134
3135
|
}, null)]
|
|
3135
|
-
}),
|
|
3136
|
-
label:
|
|
3136
|
+
}), ga.map(({
|
|
3137
|
+
label: c,
|
|
3137
3138
|
title: S
|
|
3138
|
-
}) => n(
|
|
3139
|
+
}) => n(ye, {
|
|
3139
3140
|
label: S,
|
|
3140
|
-
disabled:
|
|
3141
|
-
value:
|
|
3141
|
+
disabled: X(R)[c],
|
|
3142
|
+
value: X(l)[c],
|
|
3142
3143
|
prefixCls: a,
|
|
3143
3144
|
hashId: o.value,
|
|
3144
|
-
valueKey:
|
|
3145
|
-
onChange: (M,
|
|
3146
|
-
}, null)), n(
|
|
3145
|
+
valueKey: c,
|
|
3146
|
+
onChange: (M, B) => C(M, B)
|
|
3147
|
+
}, null)), n(Be, null, null), n(be, {
|
|
3147
3148
|
hashId: o.value,
|
|
3148
3149
|
prefixCls: a,
|
|
3149
|
-
title: n("span", null, [
|
|
3150
|
+
title: n("span", null, [te("其他设置"), n("a", {
|
|
3150
3151
|
style: {
|
|
3151
3152
|
fontSize: "12px"
|
|
3152
3153
|
},
|
|
3153
|
-
onClick: () =>
|
|
3154
|
-
}, [
|
|
3154
|
+
onClick: () => g(!0)
|
|
3155
|
+
}, [te("更多配置")])])
|
|
3155
3156
|
}, {
|
|
3156
|
-
default: () => [
|
|
3157
|
-
label:
|
|
3157
|
+
default: () => [ha.map(({
|
|
3158
|
+
label: c,
|
|
3158
3159
|
title: S
|
|
3159
|
-
}) => n(
|
|
3160
|
+
}) => n(ye, {
|
|
3160
3161
|
label: S,
|
|
3161
|
-
disabled:
|
|
3162
|
-
value:
|
|
3162
|
+
disabled: X(R)[c],
|
|
3163
|
+
value: X(l)[c],
|
|
3163
3164
|
prefixCls: a,
|
|
3164
3165
|
hashId: o.value,
|
|
3165
|
-
valueKey:
|
|
3166
|
-
onChange: (M,
|
|
3167
|
-
}, null)), e.weakmode && n(
|
|
3166
|
+
valueKey: c,
|
|
3167
|
+
onChange: (M, B) => C(M, B)
|
|
3168
|
+
}, null)), e.weakmode && n(ye, {
|
|
3168
3169
|
label: "色弱模式",
|
|
3169
|
-
value:
|
|
3170
|
+
value: X(l).colorWeak,
|
|
3170
3171
|
prefixCls: a,
|
|
3171
3172
|
hashId: o.value,
|
|
3172
3173
|
valueKey: "colorWeak",
|
|
3173
|
-
onChange: (
|
|
3174
|
-
}, null), e.showProgress && n(
|
|
3174
|
+
onChange: (c, S) => C(c, S)
|
|
3175
|
+
}, null), e.showProgress && n(ye, {
|
|
3175
3176
|
label: "顶部进度条",
|
|
3176
|
-
value:
|
|
3177
|
+
value: X(l).showProgressBar,
|
|
3177
3178
|
prefixCls: a,
|
|
3178
3179
|
hashId: o.value,
|
|
3179
3180
|
valueKey: "showProgressBar",
|
|
3180
|
-
onChange: (
|
|
3181
|
+
onChange: (c, S) => C(c, S)
|
|
3181
3182
|
}, null)]
|
|
3182
|
-
})]), e.hideHintAlert && e.hideCopyButton ? null : n(
|
|
3183
|
+
})]), e.hideHintAlert && e.hideCopyButton ? null : n(Be, null, null), e.hideHintAlert ? null : n(Vt, {
|
|
3183
3184
|
type: "warning",
|
|
3184
3185
|
message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
|
|
3185
|
-
icon: n(
|
|
3186
|
+
icon: n(Gt, null, null),
|
|
3186
3187
|
showIcon: !0,
|
|
3187
3188
|
style: {
|
|
3188
3189
|
marginBottom: "16px"
|
|
3189
3190
|
}
|
|
3190
|
-
}, null), e.hideCopyButton ? null : n(
|
|
3191
|
-
onClick: () =>
|
|
3191
|
+
}, null), e.hideCopyButton ? null : n(At, {
|
|
3192
|
+
onClick: () => F(),
|
|
3192
3193
|
block: !0
|
|
3193
3194
|
}, {
|
|
3194
|
-
default: () => [n(
|
|
3195
|
+
default: () => [n(qt, null, null), te("拷贝设置")]
|
|
3195
3196
|
})])]
|
|
3196
|
-
})]), n(
|
|
3197
|
+
})]), n(pe, {
|
|
3197
3198
|
width: 320,
|
|
3198
3199
|
closable: !1,
|
|
3199
3200
|
placement: "right",
|
|
@@ -3205,26 +3206,26 @@ const {
|
|
|
3205
3206
|
}, {
|
|
3206
3207
|
default: () => [n(da, {
|
|
3207
3208
|
settingValue: l.value,
|
|
3208
|
-
onChange: (
|
|
3209
|
+
onChange: (c, S, M) => C(S || "primaryColor", c, M)
|
|
3209
3210
|
}, null)]
|
|
3210
|
-
}), n(
|
|
3211
|
+
}), n(pe, {
|
|
3211
3212
|
width: 320,
|
|
3212
3213
|
closable: !1,
|
|
3213
3214
|
placement: "right",
|
|
3214
|
-
open:
|
|
3215
|
+
open: O.value,
|
|
3215
3216
|
bodyStyle: {
|
|
3216
3217
|
padding: 0
|
|
3217
3218
|
},
|
|
3218
|
-
onClose: () =>
|
|
3219
|
+
onClose: () => g(!1)
|
|
3219
3220
|
}, {
|
|
3220
|
-
default: () => [n(
|
|
3221
|
+
default: () => [n(ma, {
|
|
3221
3222
|
settingValue: l.value,
|
|
3222
|
-
onChange: (
|
|
3223
|
+
onChange: (c, S, M) => C(c, M, S)
|
|
3223
3224
|
}, null)]
|
|
3224
3225
|
})]
|
|
3225
3226
|
}));
|
|
3226
3227
|
}
|
|
3227
|
-
}),
|
|
3228
|
+
}), ya = new s("backInLeft", {
|
|
3228
3229
|
"0%": {
|
|
3229
3230
|
opacity: 0.7,
|
|
3230
3231
|
transform: "translateX(-2000px) scale(0.7)"
|
|
@@ -3237,7 +3238,7 @@ const {
|
|
|
3237
3238
|
opacity: 1,
|
|
3238
3239
|
transform: "scale(1)"
|
|
3239
3240
|
}
|
|
3240
|
-
}),
|
|
3241
|
+
}), ba = new s("backInRight", {
|
|
3241
3242
|
"0%": {
|
|
3242
3243
|
opacity: 0.7,
|
|
3243
3244
|
transform: "translateX(2000px) scale(0.7)"
|
|
@@ -3250,7 +3251,7 @@ const {
|
|
|
3250
3251
|
opacity: 1,
|
|
3251
3252
|
transform: "scale(1)"
|
|
3252
3253
|
}
|
|
3253
|
-
}),
|
|
3254
|
+
}), pa = new s("backInUp", {
|
|
3254
3255
|
"0%": {
|
|
3255
3256
|
opacity: 0.7,
|
|
3256
3257
|
transform: "translateY(1200px) scale(0.7)"
|
|
@@ -3263,7 +3264,7 @@ const {
|
|
|
3263
3264
|
opacity: 1,
|
|
3264
3265
|
transform: "scale(1)"
|
|
3265
3266
|
}
|
|
3266
|
-
}),
|
|
3267
|
+
}), va = new s("backInDown", {
|
|
3267
3268
|
"0%": {
|
|
3268
3269
|
opacity: 0.7,
|
|
3269
3270
|
transform: "translateY(-1200px) scale(0.7)"
|
|
@@ -3276,7 +3277,7 @@ const {
|
|
|
3276
3277
|
opacity: 1,
|
|
3277
3278
|
transform: "scale(1)"
|
|
3278
3279
|
}
|
|
3279
|
-
}),
|
|
3280
|
+
}), xa = new s("backOutLeft", {
|
|
3280
3281
|
"0%": {
|
|
3281
3282
|
opacity: 1,
|
|
3282
3283
|
transform: "scale(1)"
|
|
@@ -3289,7 +3290,7 @@ const {
|
|
|
3289
3290
|
opacity: 0.7,
|
|
3290
3291
|
transform: "translateX(-2000px) scale(0.7)"
|
|
3291
3292
|
}
|
|
3292
|
-
}),
|
|
3293
|
+
}), Ca = new s("backOutRight", {
|
|
3293
3294
|
"0%": {
|
|
3294
3295
|
opacity: 1,
|
|
3295
3296
|
transform: "scale(1)"
|
|
@@ -3302,7 +3303,7 @@ const {
|
|
|
3302
3303
|
opacity: 0.7,
|
|
3303
3304
|
transform: "translateX(2000px) scale(0.7)"
|
|
3304
3305
|
}
|
|
3305
|
-
}),
|
|
3306
|
+
}), wa = new s("backOutUp", {
|
|
3306
3307
|
"0%": {
|
|
3307
3308
|
opacity: 1,
|
|
3308
3309
|
transform: "scale(1)"
|
|
@@ -3315,7 +3316,7 @@ const {
|
|
|
3315
3316
|
opacity: 0.7,
|
|
3316
3317
|
transform: "translateY(-700px) scale(0.7)"
|
|
3317
3318
|
}
|
|
3318
|
-
}),
|
|
3319
|
+
}), Sa = new s("backOutDown", {
|
|
3319
3320
|
"0%": {
|
|
3320
3321
|
opacity: 1,
|
|
3321
3322
|
transform: "scale(1)"
|
|
@@ -3328,41 +3329,41 @@ const {
|
|
|
3328
3329
|
opacity: 0.7,
|
|
3329
3330
|
transform: "translateY(700px) scale(0.7)"
|
|
3330
3331
|
}
|
|
3331
|
-
}),
|
|
3332
|
+
}), Ia = () => ({
|
|
3332
3333
|
"&.backInLeft": {
|
|
3333
3334
|
animationFillMode: "both",
|
|
3334
|
-
animationName:
|
|
3335
|
+
animationName: ya
|
|
3335
3336
|
},
|
|
3336
3337
|
"&.backInRight": {
|
|
3337
3338
|
animationFillMode: "both",
|
|
3338
|
-
animationName:
|
|
3339
|
+
animationName: ba
|
|
3339
3340
|
},
|
|
3340
3341
|
"&.backInUp": {
|
|
3341
3342
|
animationFillMode: "both",
|
|
3342
|
-
animationName:
|
|
3343
|
+
animationName: pa
|
|
3343
3344
|
},
|
|
3344
3345
|
"&.backInDown": {
|
|
3345
3346
|
animationFillMode: "both",
|
|
3346
|
-
animationName:
|
|
3347
|
+
animationName: va
|
|
3347
3348
|
}
|
|
3348
|
-
}),
|
|
3349
|
+
}), Ma = () => ({
|
|
3349
3350
|
"&.backOutLeft": {
|
|
3350
3351
|
animationFillMode: "both",
|
|
3351
|
-
animationName:
|
|
3352
|
+
animationName: xa
|
|
3352
3353
|
},
|
|
3353
3354
|
"&.backOutRight": {
|
|
3354
3355
|
animationFillMode: "both",
|
|
3355
|
-
animationName:
|
|
3356
|
+
animationName: Ca
|
|
3356
3357
|
},
|
|
3357
3358
|
"&.backOutUp": {
|
|
3358
3359
|
animationFillMode: "both",
|
|
3359
|
-
animationName:
|
|
3360
|
+
animationName: wa
|
|
3360
3361
|
},
|
|
3361
3362
|
"&.backOutDown": {
|
|
3362
3363
|
animationFillMode: "both",
|
|
3363
|
-
animationName:
|
|
3364
|
+
animationName: Sa
|
|
3364
3365
|
}
|
|
3365
|
-
}),
|
|
3366
|
+
}), Ba = new s("bounceIn", {
|
|
3366
3367
|
"from,20%,40%,60%,80%,to": {
|
|
3367
3368
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3368
3369
|
},
|
|
@@ -3449,7 +3450,7 @@ const {
|
|
|
3449
3450
|
to: {
|
|
3450
3451
|
transform: "translate3d(0, 0, 0)"
|
|
3451
3452
|
}
|
|
3452
|
-
}),
|
|
3453
|
+
}), Fa = new s("bounceInUp", {
|
|
3453
3454
|
"from,60%,75%,90%,to": {
|
|
3454
3455
|
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3455
3456
|
},
|
|
@@ -3484,7 +3485,7 @@ const {
|
|
|
3484
3485
|
opacity: 0,
|
|
3485
3486
|
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
3486
3487
|
}
|
|
3487
|
-
}),
|
|
3488
|
+
}), Ta = new s("bounceOutLeft", {
|
|
3488
3489
|
"20%": {
|
|
3489
3490
|
opacity: 1,
|
|
3490
3491
|
transform: "translate3d(20px, 0, 0) scaleX(0.9)"
|
|
@@ -3493,7 +3494,7 @@ const {
|
|
|
3493
3494
|
opacity: 0,
|
|
3494
3495
|
transform: "translate3d(-2000px, 0, 0) scaleX(2)"
|
|
3495
3496
|
}
|
|
3496
|
-
}),
|
|
3497
|
+
}), Pa = new s("bounceOutRight", {
|
|
3497
3498
|
"20%": {
|
|
3498
3499
|
opacity: 1,
|
|
3499
3500
|
transform: "translate3d(-20px, 0, 0) scaleX(0.9)"
|
|
@@ -3502,7 +3503,7 @@ const {
|
|
|
3502
3503
|
opacity: 0,
|
|
3503
3504
|
transform: "translate3d(2000px, 0, 0) scaleX(2)"
|
|
3504
3505
|
}
|
|
3505
|
-
}),
|
|
3506
|
+
}), La = new s("bounceOutDown", {
|
|
3506
3507
|
"20%": {
|
|
3507
3508
|
transform: "translate3d(0, 10px, 0) scaleY(0.985)"
|
|
3508
3509
|
},
|
|
@@ -3514,7 +3515,7 @@ const {
|
|
|
3514
3515
|
opacity: 0,
|
|
3515
3516
|
transform: "translate3d(0, 2000px, 0) scaleY(3)"
|
|
3516
3517
|
}
|
|
3517
|
-
}),
|
|
3518
|
+
}), Da = new s("bounceOutUp", {
|
|
3518
3519
|
"20%": {
|
|
3519
3520
|
transform: "translate3d(0, -10px, 0) scaleY(0.985)"
|
|
3520
3521
|
},
|
|
@@ -3526,11 +3527,11 @@ const {
|
|
|
3526
3527
|
opacity: 0,
|
|
3527
3528
|
transform: "translate3d(0, -2000px, 0) scaleY(3)"
|
|
3528
3529
|
}
|
|
3529
|
-
}),
|
|
3530
|
+
}), Na = () => ({
|
|
3530
3531
|
"&.bounceIn": {
|
|
3531
3532
|
animationFillMode: "both",
|
|
3532
3533
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
3533
|
-
animationName:
|
|
3534
|
+
animationName: Ba
|
|
3534
3535
|
},
|
|
3535
3536
|
"&.bounceInLeft": {
|
|
3536
3537
|
animationFillMode: "both",
|
|
@@ -3546,9 +3547,9 @@ const {
|
|
|
3546
3547
|
},
|
|
3547
3548
|
"&.bounceInUp": {
|
|
3548
3549
|
animationFillMode: "both",
|
|
3549
|
-
animationName:
|
|
3550
|
+
animationName: Fa
|
|
3550
3551
|
}
|
|
3551
|
-
}),
|
|
3552
|
+
}), za = () => ({
|
|
3552
3553
|
"&.bounceOut": {
|
|
3553
3554
|
animationFillMode: "both",
|
|
3554
3555
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
@@ -3556,28 +3557,28 @@ const {
|
|
|
3556
3557
|
},
|
|
3557
3558
|
"&.bounceOutLeft": {
|
|
3558
3559
|
animationFillMode: "both",
|
|
3559
|
-
animationName:
|
|
3560
|
+
animationName: Ta
|
|
3560
3561
|
},
|
|
3561
3562
|
"&.bounceOutRight": {
|
|
3562
3563
|
animationFillMode: "both",
|
|
3563
|
-
animationName:
|
|
3564
|
+
animationName: Pa
|
|
3564
3565
|
},
|
|
3565
3566
|
"&.bounceOutDown": {
|
|
3566
3567
|
animationFillMode: "both",
|
|
3567
|
-
animationName:
|
|
3568
|
+
animationName: La
|
|
3568
3569
|
},
|
|
3569
3570
|
"&.bounceOutUp": {
|
|
3570
3571
|
animationFillMode: "both",
|
|
3571
|
-
animationName:
|
|
3572
|
+
animationName: Da
|
|
3572
3573
|
}
|
|
3573
|
-
}),
|
|
3574
|
+
}), Ha = new s("fadeIn", {
|
|
3574
3575
|
from: {
|
|
3575
3576
|
opacity: 0
|
|
3576
3577
|
},
|
|
3577
3578
|
to: {
|
|
3578
3579
|
opacity: 1
|
|
3579
3580
|
}
|
|
3580
|
-
}),
|
|
3581
|
+
}), Va = new s("fadeInLeft", {
|
|
3581
3582
|
from: {
|
|
3582
3583
|
opacity: 0,
|
|
3583
3584
|
transform: "translate3d(-100%, 0, 0)"
|
|
@@ -3586,7 +3587,7 @@ const {
|
|
|
3586
3587
|
opacity: 1,
|
|
3587
3588
|
transform: "translate3d(0, 0, 0)"
|
|
3588
3589
|
}
|
|
3589
|
-
}),
|
|
3590
|
+
}), Aa = new s("fadeInRight", {
|
|
3590
3591
|
from: {
|
|
3591
3592
|
opacity: 0,
|
|
3592
3593
|
transform: "translate3d(100%, 0, 0)"
|
|
@@ -3622,7 +3623,7 @@ const {
|
|
|
3622
3623
|
opacity: 1,
|
|
3623
3624
|
transform: "translate3d(0, 0, 0)"
|
|
3624
3625
|
}
|
|
3625
|
-
}),
|
|
3626
|
+
}), Ua = new s("fadeInUpBig", {
|
|
3626
3627
|
from: {
|
|
3627
3628
|
opacity: 0,
|
|
3628
3629
|
transform: "translate3d(0, 2000px, 0)"
|
|
@@ -3631,7 +3632,7 @@ const {
|
|
|
3631
3632
|
opacity: 1,
|
|
3632
3633
|
transform: "translate3d(0, 0, 0)"
|
|
3633
3634
|
}
|
|
3634
|
-
}),
|
|
3635
|
+
}), Ea = new s("fadeInLeftBig", {
|
|
3635
3636
|
from: {
|
|
3636
3637
|
opacity: 0,
|
|
3637
3638
|
transform: "translate3d(-2000px, 0, 0)"
|
|
@@ -3640,7 +3641,7 @@ const {
|
|
|
3640
3641
|
opacity: 1,
|
|
3641
3642
|
transform: "translate3d(0, 0, 0)"
|
|
3642
3643
|
}
|
|
3643
|
-
}),
|
|
3644
|
+
}), Xa = new s("fadeInRightBig", {
|
|
3644
3645
|
from: {
|
|
3645
3646
|
opacity: 0,
|
|
3646
3647
|
transform: "translate3d(2000px, 0, 0)"
|
|
@@ -3649,7 +3650,7 @@ const {
|
|
|
3649
3650
|
opacity: 1,
|
|
3650
3651
|
transform: "translate3d(0, 0, 0)"
|
|
3651
3652
|
}
|
|
3652
|
-
}),
|
|
3653
|
+
}), Ya = new s("fadeInTopLeft", {
|
|
3653
3654
|
from: {
|
|
3654
3655
|
opacity: 0,
|
|
3655
3656
|
transform: "translate3d(-100%, -100%, 0)"
|
|
@@ -3658,7 +3659,7 @@ const {
|
|
|
3658
3659
|
opacity: 1,
|
|
3659
3660
|
transform: "translate3d(0, 0, 0)"
|
|
3660
3661
|
}
|
|
3661
|
-
}),
|
|
3662
|
+
}), _a = new s("fadeInBottomRight", {
|
|
3662
3663
|
from: {
|
|
3663
3664
|
opacity: 0,
|
|
3664
3665
|
transform: "translate3d(100%, 100%, 0)"
|
|
@@ -3667,7 +3668,7 @@ const {
|
|
|
3667
3668
|
opacity: 1,
|
|
3668
3669
|
transform: "translate3d(0, 0, 0)"
|
|
3669
3670
|
}
|
|
3670
|
-
}),
|
|
3671
|
+
}), Ga = new s("fadeInTopRight", {
|
|
3671
3672
|
from: {
|
|
3672
3673
|
opacity: 0,
|
|
3673
3674
|
transform: "translate3d(100%, -100%, 0)"
|
|
@@ -3676,7 +3677,7 @@ const {
|
|
|
3676
3677
|
opacity: 1,
|
|
3677
3678
|
transform: "translate3d(0, 0, 0)"
|
|
3678
3679
|
}
|
|
3679
|
-
}),
|
|
3680
|
+
}), qa = new s("fadeInBottomLeft", {
|
|
3680
3681
|
from: {
|
|
3681
3682
|
opacity: 0,
|
|
3682
3683
|
transform: "translate3d(-100%, 100%, 0)"
|
|
@@ -3685,14 +3686,14 @@ const {
|
|
|
3685
3686
|
opacity: 1,
|
|
3686
3687
|
transform: "translate3d(0, 0, 0)"
|
|
3687
3688
|
}
|
|
3688
|
-
}),
|
|
3689
|
+
}), Za = new s("fadeOut", {
|
|
3689
3690
|
from: {
|
|
3690
3691
|
opacity: 1
|
|
3691
3692
|
},
|
|
3692
3693
|
to: {
|
|
3693
3694
|
opacity: 0
|
|
3694
3695
|
}
|
|
3695
|
-
}),
|
|
3696
|
+
}), Ja = new s("fadeOutLeft", {
|
|
3696
3697
|
from: {
|
|
3697
3698
|
opacity: 1
|
|
3698
3699
|
},
|
|
@@ -3700,7 +3701,7 @@ const {
|
|
|
3700
3701
|
opacity: 0,
|
|
3701
3702
|
transform: "translate3d(-100%, 0, 0)"
|
|
3702
3703
|
}
|
|
3703
|
-
}),
|
|
3704
|
+
}), Qa = new s("fadeOutRight", {
|
|
3704
3705
|
from: {
|
|
3705
3706
|
opacity: 1
|
|
3706
3707
|
},
|
|
@@ -3708,7 +3709,7 @@ const {
|
|
|
3708
3709
|
opacity: 0,
|
|
3709
3710
|
transform: "translate3d(100%, 0, 0)"
|
|
3710
3711
|
}
|
|
3711
|
-
}),
|
|
3712
|
+
}), eo = new s("fadeOutDown", {
|
|
3712
3713
|
from: {
|
|
3713
3714
|
opacity: 1
|
|
3714
3715
|
},
|
|
@@ -3716,7 +3717,7 @@ const {
|
|
|
3716
3717
|
opacity: 0,
|
|
3717
3718
|
transform: "translate3d(0, 100%, 0)"
|
|
3718
3719
|
}
|
|
3719
|
-
}),
|
|
3720
|
+
}), to = new s("fadeOutUp", {
|
|
3720
3721
|
from: {
|
|
3721
3722
|
opacity: 1
|
|
3722
3723
|
},
|
|
@@ -3724,7 +3725,7 @@ const {
|
|
|
3724
3725
|
opacity: 0,
|
|
3725
3726
|
transform: "translate3d(0, -100%, 0)"
|
|
3726
3727
|
}
|
|
3727
|
-
}),
|
|
3728
|
+
}), no = new s("fadeOutDownBig", {
|
|
3728
3729
|
from: {
|
|
3729
3730
|
opacity: 1
|
|
3730
3731
|
},
|
|
@@ -3732,7 +3733,7 @@ const {
|
|
|
3732
3733
|
opacity: 0,
|
|
3733
3734
|
transform: "translate3d(0, 2000px, 0)"
|
|
3734
3735
|
}
|
|
3735
|
-
}),
|
|
3736
|
+
}), ao = new s("fadeOutUpBig", {
|
|
3736
3737
|
from: {
|
|
3737
3738
|
opacity: 1
|
|
3738
3739
|
},
|
|
@@ -3740,7 +3741,7 @@ const {
|
|
|
3740
3741
|
opacity: 0,
|
|
3741
3742
|
transform: "translate3d(0, -2000px, 0)"
|
|
3742
3743
|
}
|
|
3743
|
-
}),
|
|
3744
|
+
}), oo = new s("fadeOutLeftBig", {
|
|
3744
3745
|
from: {
|
|
3745
3746
|
opacity: 1
|
|
3746
3747
|
},
|
|
@@ -3748,7 +3749,7 @@ const {
|
|
|
3748
3749
|
opacity: 0,
|
|
3749
3750
|
transform: "translate3d(-2000px, 0, 0)"
|
|
3750
3751
|
}
|
|
3751
|
-
}),
|
|
3752
|
+
}), io = new s("fadeOutRightBig", {
|
|
3752
3753
|
from: {
|
|
3753
3754
|
opacity: 1
|
|
3754
3755
|
},
|
|
@@ -3756,7 +3757,7 @@ const {
|
|
|
3756
3757
|
opacity: 0,
|
|
3757
3758
|
transform: "translate3d(2000px, 0, 0)"
|
|
3758
3759
|
}
|
|
3759
|
-
}),
|
|
3760
|
+
}), lo = new s("fadeOutTopLeft", {
|
|
3760
3761
|
from: {
|
|
3761
3762
|
opacity: 1,
|
|
3762
3763
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -3765,7 +3766,7 @@ const {
|
|
|
3765
3766
|
opacity: 0,
|
|
3766
3767
|
transform: "translate3d(-100%, -100%, 0)"
|
|
3767
3768
|
}
|
|
3768
|
-
}),
|
|
3769
|
+
}), ro = new s("fadeOutBottomRight", {
|
|
3769
3770
|
from: {
|
|
3770
3771
|
opacity: 1,
|
|
3771
3772
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -3774,7 +3775,7 @@ const {
|
|
|
3774
3775
|
opacity: 0,
|
|
3775
3776
|
transform: "translate3d(100%, 100%, 0)"
|
|
3776
3777
|
}
|
|
3777
|
-
}),
|
|
3778
|
+
}), so = new s("fadeOutTopRight", {
|
|
3778
3779
|
from: {
|
|
3779
3780
|
opacity: 1,
|
|
3780
3781
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -3783,7 +3784,7 @@ const {
|
|
|
3783
3784
|
opacity: 0,
|
|
3784
3785
|
transform: "translate3d(100%, -100%, 0)"
|
|
3785
3786
|
}
|
|
3786
|
-
}),
|
|
3787
|
+
}), uo = new s("fadeOutBottomLeft", {
|
|
3787
3788
|
from: {
|
|
3788
3789
|
opacity: 1,
|
|
3789
3790
|
transform: "translate3d(0, 0, 0)"
|
|
@@ -3792,18 +3793,18 @@ const {
|
|
|
3792
3793
|
opacity: 0,
|
|
3793
3794
|
transform: "translate3d(-100%, 100%, 0)"
|
|
3794
3795
|
}
|
|
3795
|
-
}),
|
|
3796
|
+
}), co = () => ({
|
|
3796
3797
|
"&.fadeIn": {
|
|
3797
3798
|
animationFillMode: "both",
|
|
3798
|
-
animationName:
|
|
3799
|
+
animationName: Ha
|
|
3799
3800
|
},
|
|
3800
3801
|
"&.fadeInLeft": {
|
|
3801
3802
|
animationFillMode: "both",
|
|
3802
|
-
animationName:
|
|
3803
|
+
animationName: Va
|
|
3803
3804
|
},
|
|
3804
3805
|
"&.fadeInRight": {
|
|
3805
3806
|
animationFillMode: "both",
|
|
3806
|
-
animationName:
|
|
3807
|
+
animationName: Aa
|
|
3807
3808
|
},
|
|
3808
3809
|
"&.fadeInDown": {
|
|
3809
3810
|
animationFillMode: "both",
|
|
@@ -3815,15 +3816,15 @@ const {
|
|
|
3815
3816
|
},
|
|
3816
3817
|
"&.fadeInLeftBig": {
|
|
3817
3818
|
animationFillMode: "both",
|
|
3818
|
-
animationName:
|
|
3819
|
+
animationName: Ea
|
|
3819
3820
|
},
|
|
3820
3821
|
"&.fadeInRightBig": {
|
|
3821
3822
|
animationFillMode: "both",
|
|
3822
|
-
animationName:
|
|
3823
|
+
animationName: Xa
|
|
3823
3824
|
},
|
|
3824
3825
|
"&.fadeInUpBig": {
|
|
3825
3826
|
animationFillMode: "both",
|
|
3826
|
-
animationName:
|
|
3827
|
+
animationName: Ua
|
|
3827
3828
|
},
|
|
3828
3829
|
"&.fadeInDownBig": {
|
|
3829
3830
|
animationFillMode: "both",
|
|
@@ -3831,74 +3832,74 @@ const {
|
|
|
3831
3832
|
},
|
|
3832
3833
|
"&.fadeInTopLeft": {
|
|
3833
3834
|
animationFillMode: "both",
|
|
3834
|
-
animationName:
|
|
3835
|
+
animationName: Ya
|
|
3835
3836
|
},
|
|
3836
3837
|
"&.fadeInBottomRight": {
|
|
3837
3838
|
animationFillMode: "both",
|
|
3838
|
-
animationName:
|
|
3839
|
+
animationName: _a
|
|
3839
3840
|
},
|
|
3840
3841
|
"&.fadeInTopRight": {
|
|
3841
3842
|
animationFillMode: "both",
|
|
3842
|
-
animationName:
|
|
3843
|
+
animationName: Ga
|
|
3843
3844
|
},
|
|
3844
3845
|
"&.fadeInBottomLeft": {
|
|
3845
3846
|
animationFillMode: "both",
|
|
3846
|
-
animationName:
|
|
3847
|
+
animationName: qa
|
|
3847
3848
|
}
|
|
3848
|
-
}),
|
|
3849
|
+
}), mo = () => ({
|
|
3849
3850
|
"&.fadeOut": {
|
|
3850
3851
|
animationFillMode: "both",
|
|
3851
|
-
animationName:
|
|
3852
|
+
animationName: Za
|
|
3852
3853
|
},
|
|
3853
3854
|
"&.fadeOutLeft": {
|
|
3854
3855
|
animationFillMode: "both",
|
|
3855
|
-
animationName:
|
|
3856
|
+
animationName: Ja
|
|
3856
3857
|
},
|
|
3857
3858
|
"&.fadeOutRight": {
|
|
3858
3859
|
animationFillMode: "both",
|
|
3859
|
-
animationName:
|
|
3860
|
+
animationName: Qa
|
|
3860
3861
|
},
|
|
3861
3862
|
"&.fadeOutDown": {
|
|
3862
3863
|
animationFillMode: "both",
|
|
3863
|
-
animationName:
|
|
3864
|
+
animationName: eo
|
|
3864
3865
|
},
|
|
3865
3866
|
"&.fadeOutUp": {
|
|
3866
3867
|
animationFillMode: "both",
|
|
3867
|
-
animationName:
|
|
3868
|
+
animationName: to
|
|
3868
3869
|
},
|
|
3869
3870
|
"&.fadeOutDownBig": {
|
|
3870
3871
|
animationFillMode: "both",
|
|
3871
|
-
animationName:
|
|
3872
|
+
animationName: no
|
|
3872
3873
|
},
|
|
3873
3874
|
"&.fadeOutUpBig": {
|
|
3874
3875
|
animationFillMode: "both",
|
|
3875
|
-
animationName:
|
|
3876
|
+
animationName: ao
|
|
3876
3877
|
},
|
|
3877
3878
|
"&.fadeOutLeftBig": {
|
|
3878
3879
|
animationFillMode: "both",
|
|
3879
|
-
animationName:
|
|
3880
|
+
animationName: oo
|
|
3880
3881
|
},
|
|
3881
3882
|
"&.fadeOutRightBig": {
|
|
3882
3883
|
animationFillMode: "both",
|
|
3883
|
-
animationName:
|
|
3884
|
+
animationName: io
|
|
3884
3885
|
},
|
|
3885
3886
|
"&.fadeOutTopLeft": {
|
|
3886
3887
|
animationFillMode: "both",
|
|
3887
|
-
animationName:
|
|
3888
|
+
animationName: lo
|
|
3888
3889
|
},
|
|
3889
3890
|
"&.fadeOutBottomRight": {
|
|
3890
3891
|
animationFillMode: "both",
|
|
3891
|
-
animationName:
|
|
3892
|
+
animationName: ro
|
|
3892
3893
|
},
|
|
3893
3894
|
"&.fadeOutTopRight": {
|
|
3894
3895
|
animationFillMode: "both",
|
|
3895
|
-
animationName:
|
|
3896
|
+
animationName: so
|
|
3896
3897
|
},
|
|
3897
3898
|
"&.fadeOutBottomLeft": {
|
|
3898
3899
|
animationFillMode: "both",
|
|
3899
|
-
animationName:
|
|
3900
|
+
animationName: uo
|
|
3900
3901
|
}
|
|
3901
|
-
}),
|
|
3902
|
+
}), fo = new s("flipInX", {
|
|
3902
3903
|
from: {
|
|
3903
3904
|
opacity: 0,
|
|
3904
3905
|
animationTimingFunction: "ease-in",
|
|
@@ -3918,7 +3919,7 @@ const {
|
|
|
3918
3919
|
to: {
|
|
3919
3920
|
transform: "perspective(400px)"
|
|
3920
3921
|
}
|
|
3921
|
-
}),
|
|
3922
|
+
}), go = new s("flipInY", {
|
|
3922
3923
|
from: {
|
|
3923
3924
|
opacity: 0,
|
|
3924
3925
|
animationTimingFunction: "ease-in",
|
|
@@ -3938,7 +3939,7 @@ const {
|
|
|
3938
3939
|
to: {
|
|
3939
3940
|
transform: "perspective(400px)"
|
|
3940
3941
|
}
|
|
3941
|
-
}),
|
|
3942
|
+
}), ho = new s("flipOutX", {
|
|
3942
3943
|
from: {
|
|
3943
3944
|
transform: "perspective(400px)"
|
|
3944
3945
|
},
|
|
@@ -3950,7 +3951,7 @@ const {
|
|
|
3950
3951
|
opacity: 0,
|
|
3951
3952
|
transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
|
|
3952
3953
|
}
|
|
3953
|
-
}),
|
|
3954
|
+
}), yo = new s("flipOutY", {
|
|
3954
3955
|
from: {
|
|
3955
3956
|
transform: "perspective(400px)"
|
|
3956
3957
|
},
|
|
@@ -3962,31 +3963,31 @@ const {
|
|
|
3962
3963
|
opacity: 0,
|
|
3963
3964
|
transform: "perspective(400px) rotate3d(0, 1, 0, 90deg)"
|
|
3964
3965
|
}
|
|
3965
|
-
}),
|
|
3966
|
+
}), bo = () => ({
|
|
3966
3967
|
"&.flipInX": {
|
|
3967
3968
|
animationFillMode: "both",
|
|
3968
3969
|
backfaceVisibility: "visible !important",
|
|
3969
|
-
animationName:
|
|
3970
|
+
animationName: fo
|
|
3970
3971
|
},
|
|
3971
3972
|
"&.flipInY": {
|
|
3972
3973
|
animationFillMode: "both",
|
|
3973
3974
|
backfaceVisibility: "visible !important",
|
|
3974
|
-
animationName:
|
|
3975
|
+
animationName: go
|
|
3975
3976
|
}
|
|
3976
|
-
}),
|
|
3977
|
+
}), po = () => ({
|
|
3977
3978
|
"&.flipOutX": {
|
|
3978
3979
|
animationFillMode: "both",
|
|
3979
3980
|
backfaceVisibility: "visible !important",
|
|
3980
3981
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
3981
|
-
animationName:
|
|
3982
|
+
animationName: ho
|
|
3982
3983
|
},
|
|
3983
3984
|
"&.flipOutY": {
|
|
3984
3985
|
animationFillMode: "both",
|
|
3985
3986
|
backfaceVisibility: "visible !important",
|
|
3986
3987
|
animationDuration: `${0.3 * 0.75}s !important`,
|
|
3987
|
-
animationName:
|
|
3988
|
+
animationName: yo
|
|
3988
3989
|
}
|
|
3989
|
-
}),
|
|
3990
|
+
}), vo = new s("lightSpeedInLeft", {
|
|
3990
3991
|
from: {
|
|
3991
3992
|
opacity: 0,
|
|
3992
3993
|
transform: "translate3d(-100%, 0, 0) skewX(30deg)"
|
|
@@ -4001,7 +4002,7 @@ const {
|
|
|
4001
4002
|
to: {
|
|
4002
4003
|
transform: "translate3d(0, 0, 0)"
|
|
4003
4004
|
}
|
|
4004
|
-
}),
|
|
4005
|
+
}), xo = new s("lightSpeedInRight", {
|
|
4005
4006
|
from: {
|
|
4006
4007
|
opacity: 0,
|
|
4007
4008
|
transform: "translate3d(100%, 0, 0) skewX(-30deg)"
|
|
@@ -4016,7 +4017,7 @@ const {
|
|
|
4016
4017
|
to: {
|
|
4017
4018
|
transform: "translate3d(0, 0, 0)"
|
|
4018
4019
|
}
|
|
4019
|
-
}),
|
|
4020
|
+
}), Co = new s("lightSpeedOutLeft", {
|
|
4020
4021
|
from: {
|
|
4021
4022
|
opacity: 1
|
|
4022
4023
|
},
|
|
@@ -4024,7 +4025,7 @@ const {
|
|
|
4024
4025
|
opacity: 0,
|
|
4025
4026
|
transform: "translate3d(-100%, 0, 0) skewX(-30deg)"
|
|
4026
4027
|
}
|
|
4027
|
-
}),
|
|
4028
|
+
}), wo = new s("lightSpeedOutRight", {
|
|
4028
4029
|
from: {
|
|
4029
4030
|
opacity: 1
|
|
4030
4031
|
},
|
|
@@ -4032,29 +4033,29 @@ const {
|
|
|
4032
4033
|
opacity: 0,
|
|
4033
4034
|
transform: "translate3d(100%, 0, 0) skewX(30deg)"
|
|
4034
4035
|
}
|
|
4035
|
-
}),
|
|
4036
|
+
}), So = () => ({
|
|
4036
4037
|
"&.lightSpeedInLeft": {
|
|
4037
4038
|
animationFillMode: "both",
|
|
4038
4039
|
animationTimingFunction: "ease-out",
|
|
4039
|
-
animationName:
|
|
4040
|
+
animationName: vo
|
|
4040
4041
|
},
|
|
4041
4042
|
"&.lightSpeedInRight": {
|
|
4042
4043
|
animationFillMode: "both",
|
|
4043
4044
|
animationTimingFunction: "ease-out",
|
|
4044
|
-
animationName:
|
|
4045
|
+
animationName: xo
|
|
4045
4046
|
}
|
|
4046
|
-
}),
|
|
4047
|
+
}), Io = () => ({
|
|
4047
4048
|
"&.lightSpeedOutLeft": {
|
|
4048
4049
|
animationFillMode: "both",
|
|
4049
4050
|
animationTimingFunction: "ease-in",
|
|
4050
|
-
animationName:
|
|
4051
|
+
animationName: Co
|
|
4051
4052
|
},
|
|
4052
4053
|
"&.lightSpeedOutRight": {
|
|
4053
4054
|
animationFillMode: "both",
|
|
4054
4055
|
animationTimingFunction: "ease-in",
|
|
4055
|
-
animationName:
|
|
4056
|
+
animationName: wo
|
|
4056
4057
|
}
|
|
4057
|
-
}),
|
|
4058
|
+
}), Mo = new s("rotateIn", {
|
|
4058
4059
|
from: {
|
|
4059
4060
|
opacity: 0,
|
|
4060
4061
|
transform: "rotate3d(0, 0, 1, -200deg)"
|
|
@@ -4063,7 +4064,7 @@ const {
|
|
|
4063
4064
|
opacity: 1,
|
|
4064
4065
|
transform: "translate3d(0, 0, 0)"
|
|
4065
4066
|
}
|
|
4066
|
-
}),
|
|
4067
|
+
}), Bo = new s("rotateInDownLeft", {
|
|
4067
4068
|
from: {
|
|
4068
4069
|
opacity: 0,
|
|
4069
4070
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
@@ -4099,7 +4100,7 @@ const {
|
|
|
4099
4100
|
opacity: 1,
|
|
4100
4101
|
transform: "translate3d(0, 0, 0)"
|
|
4101
4102
|
}
|
|
4102
|
-
}),
|
|
4103
|
+
}), Fo = new s("rotateOut", {
|
|
4103
4104
|
from: {
|
|
4104
4105
|
opacity: 1
|
|
4105
4106
|
},
|
|
@@ -4115,7 +4116,7 @@ const {
|
|
|
4115
4116
|
opacity: 0,
|
|
4116
4117
|
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
4117
4118
|
}
|
|
4118
|
-
}),
|
|
4119
|
+
}), To = new s("rotateOutDownRight", {
|
|
4119
4120
|
from: {
|
|
4120
4121
|
opacity: 1
|
|
4121
4122
|
},
|
|
@@ -4123,7 +4124,7 @@ const {
|
|
|
4123
4124
|
opacity: 0,
|
|
4124
4125
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4125
4126
|
}
|
|
4126
|
-
}),
|
|
4127
|
+
}), Po = new s("rotateOutUpLeft", {
|
|
4127
4128
|
from: {
|
|
4128
4129
|
opacity: 1
|
|
4129
4130
|
},
|
|
@@ -4131,7 +4132,7 @@ const {
|
|
|
4131
4132
|
opacity: 0,
|
|
4132
4133
|
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4133
4134
|
}
|
|
4134
|
-
}),
|
|
4135
|
+
}), Lo = new s("rotateOutUpRight", {
|
|
4135
4136
|
from: {
|
|
4136
4137
|
opacity: 1
|
|
4137
4138
|
},
|
|
@@ -4139,16 +4140,16 @@ const {
|
|
|
4139
4140
|
opacity: 0,
|
|
4140
4141
|
transform: "rotate3d(0, 0, 1, 90deg)"
|
|
4141
4142
|
}
|
|
4142
|
-
}),
|
|
4143
|
+
}), Do = () => ({
|
|
4143
4144
|
"&.rotateIn": {
|
|
4144
4145
|
animationFillMode: "both",
|
|
4145
4146
|
transformOrigin: "center",
|
|
4146
|
-
animationName:
|
|
4147
|
+
animationName: Mo
|
|
4147
4148
|
},
|
|
4148
4149
|
"&.rotateInDownLeft": {
|
|
4149
4150
|
animationFillMode: "both",
|
|
4150
4151
|
transformOrigin: "left bottom",
|
|
4151
|
-
animationName:
|
|
4152
|
+
animationName: Bo
|
|
4152
4153
|
},
|
|
4153
4154
|
"&.rotateInDownRight": {
|
|
4154
4155
|
animationFillMode: "both",
|
|
@@ -4165,11 +4166,11 @@ const {
|
|
|
4165
4166
|
transformOrigin: "right bottom",
|
|
4166
4167
|
animationName: ko
|
|
4167
4168
|
}
|
|
4168
|
-
}),
|
|
4169
|
+
}), No = () => ({
|
|
4169
4170
|
"&.rotateOut": {
|
|
4170
4171
|
animationFillMode: "both",
|
|
4171
4172
|
transformOrigin: "center",
|
|
4172
|
-
animationName:
|
|
4173
|
+
animationName: Fo
|
|
4173
4174
|
},
|
|
4174
4175
|
"&.rotateOutDownLeft": {
|
|
4175
4176
|
animationFillMode: "both",
|
|
@@ -4179,19 +4180,19 @@ const {
|
|
|
4179
4180
|
"&.rotateOutDownRight": {
|
|
4180
4181
|
animationFillMode: "both",
|
|
4181
4182
|
transformOrigin: "right bottom",
|
|
4182
|
-
animationName:
|
|
4183
|
+
animationName: To
|
|
4183
4184
|
},
|
|
4184
4185
|
"&.rotateOutUpLeft": {
|
|
4185
4186
|
animationFillMode: "both",
|
|
4186
4187
|
transformOrigin: "left bottom",
|
|
4187
|
-
animationName:
|
|
4188
|
+
animationName: Po
|
|
4188
4189
|
},
|
|
4189
4190
|
"&.rotateOutUpRight": {
|
|
4190
4191
|
animationFillMode: "both",
|
|
4191
4192
|
transformOrigin: "right bottom",
|
|
4192
|
-
animationName:
|
|
4193
|
+
animationName: Lo
|
|
4193
4194
|
}
|
|
4194
|
-
}),
|
|
4195
|
+
}), zo = new s("rollIn", {
|
|
4195
4196
|
from: {
|
|
4196
4197
|
opacity: 0,
|
|
4197
4198
|
transform: "translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"
|
|
@@ -4200,7 +4201,7 @@ const {
|
|
|
4200
4201
|
opacity: 1,
|
|
4201
4202
|
transform: "translate3d(0, 0, 0)"
|
|
4202
4203
|
}
|
|
4203
|
-
}),
|
|
4204
|
+
}), Ho = new s("rollOut", {
|
|
4204
4205
|
from: {
|
|
4205
4206
|
opacity: 1
|
|
4206
4207
|
},
|
|
@@ -4208,15 +4209,15 @@ const {
|
|
|
4208
4209
|
opacity: 0,
|
|
4209
4210
|
transform: "translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"
|
|
4210
4211
|
}
|
|
4211
|
-
}),
|
|
4212
|
+
}), Vo = () => ({
|
|
4212
4213
|
"&.rollIn": {
|
|
4213
4214
|
animationFillMode: "both",
|
|
4214
|
-
animationName:
|
|
4215
|
+
animationName: zo
|
|
4215
4216
|
}
|
|
4216
|
-
}),
|
|
4217
|
+
}), Ao = () => ({
|
|
4217
4218
|
"&.rollOut": {
|
|
4218
4219
|
animationFillMode: "both",
|
|
4219
|
-
animationName:
|
|
4220
|
+
animationName: Ho
|
|
4220
4221
|
}
|
|
4221
4222
|
}), jo = new s("zoomIn", {
|
|
4222
4223
|
from: {
|
|
@@ -4248,7 +4249,7 @@ const {
|
|
|
4248
4249
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",
|
|
4249
4250
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4250
4251
|
}
|
|
4251
|
-
}),
|
|
4252
|
+
}), Uo = new s("zoomInRight", {
|
|
4252
4253
|
from: {
|
|
4253
4254
|
opacity: 0,
|
|
4254
4255
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",
|
|
@@ -4259,7 +4260,7 @@ const {
|
|
|
4259
4260
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",
|
|
4260
4261
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4261
4262
|
}
|
|
4262
|
-
}),
|
|
4263
|
+
}), Eo = new s("zoomInUp", {
|
|
4263
4264
|
from: {
|
|
4264
4265
|
opacity: 0,
|
|
4265
4266
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",
|
|
@@ -4270,7 +4271,7 @@ const {
|
|
|
4270
4271
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
4271
4272
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4272
4273
|
}
|
|
4273
|
-
}),
|
|
4274
|
+
}), Xo = new s("zoomOut", {
|
|
4274
4275
|
from: {
|
|
4275
4276
|
opacity: 1
|
|
4276
4277
|
},
|
|
@@ -4281,7 +4282,7 @@ const {
|
|
|
4281
4282
|
to: {
|
|
4282
4283
|
opacity: 0
|
|
4283
4284
|
}
|
|
4284
|
-
}),
|
|
4285
|
+
}), Yo = new s("zoomOutDown", {
|
|
4285
4286
|
"40%": {
|
|
4286
4287
|
opacity: 1,
|
|
4287
4288
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
@@ -4292,7 +4293,7 @@ const {
|
|
|
4292
4293
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
|
|
4293
4294
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4294
4295
|
}
|
|
4295
|
-
}),
|
|
4296
|
+
}), _o = new s("zoomOutLeft", {
|
|
4296
4297
|
"40%": {
|
|
4297
4298
|
opacity: 1,
|
|
4298
4299
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
|
|
@@ -4301,7 +4302,7 @@ const {
|
|
|
4301
4302
|
opacity: 0,
|
|
4302
4303
|
transform: "scale(0.1) translate3d(-2000px, 0, 0)"
|
|
4303
4304
|
}
|
|
4304
|
-
}),
|
|
4305
|
+
}), Go = new s("zoomOutRight", {
|
|
4305
4306
|
"40%": {
|
|
4306
4307
|
opacity: 1,
|
|
4307
4308
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
|
|
@@ -4310,7 +4311,7 @@ const {
|
|
|
4310
4311
|
opacity: 0,
|
|
4311
4312
|
transform: "scale(0.1) translate3d(2000px, 0, 0)"
|
|
4312
4313
|
}
|
|
4313
|
-
}),
|
|
4314
|
+
}), qo = new s("zoomOutUp", {
|
|
4314
4315
|
"40%": {
|
|
4315
4316
|
opacity: 1,
|
|
4316
4317
|
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
@@ -4321,7 +4322,7 @@ const {
|
|
|
4321
4322
|
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",
|
|
4322
4323
|
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4323
4324
|
}
|
|
4324
|
-
}),
|
|
4325
|
+
}), Zo = () => ({
|
|
4325
4326
|
"&.zoomIn": {
|
|
4326
4327
|
animationFillMode: "both",
|
|
4327
4328
|
animationName: jo
|
|
@@ -4336,38 +4337,38 @@ const {
|
|
|
4336
4337
|
},
|
|
4337
4338
|
"&.zoomInRight": {
|
|
4338
4339
|
animationFillMode: "both",
|
|
4339
|
-
animationName:
|
|
4340
|
+
animationName: Uo
|
|
4340
4341
|
},
|
|
4341
4342
|
"&.zoomInUp": {
|
|
4342
4343
|
animationFillMode: "both",
|
|
4343
|
-
animationName:
|
|
4344
|
+
animationName: Eo
|
|
4344
4345
|
}
|
|
4345
|
-
}),
|
|
4346
|
+
}), Jo = () => ({
|
|
4346
4347
|
"&.zoomOut": {
|
|
4347
4348
|
animationFillMode: "both",
|
|
4348
|
-
animationName:
|
|
4349
|
+
animationName: Xo
|
|
4349
4350
|
},
|
|
4350
4351
|
"&.zoomOutDown": {
|
|
4351
4352
|
animationFillMode: "both",
|
|
4352
4353
|
transformOrigin: "center bottom",
|
|
4353
|
-
animationName:
|
|
4354
|
+
animationName: Yo
|
|
4354
4355
|
},
|
|
4355
4356
|
"&.zoomOutLeft": {
|
|
4356
4357
|
animationFillMode: "both",
|
|
4357
4358
|
transformOrigin: "left center",
|
|
4358
|
-
animationName:
|
|
4359
|
+
animationName: _o
|
|
4359
4360
|
},
|
|
4360
4361
|
"&.zoomOutRight": {
|
|
4361
4362
|
animationFillMode: "both",
|
|
4362
4363
|
transformOrigin: "right center",
|
|
4363
|
-
animationName:
|
|
4364
|
+
animationName: Go
|
|
4364
4365
|
},
|
|
4365
4366
|
"&.zoomOutUp": {
|
|
4366
4367
|
animationFillMode: "both",
|
|
4367
4368
|
transformOrigin: "center bottom",
|
|
4368
|
-
animationName:
|
|
4369
|
+
animationName: qo
|
|
4369
4370
|
}
|
|
4370
|
-
}),
|
|
4371
|
+
}), Qo = new s("slideInDown", {
|
|
4371
4372
|
from: {
|
|
4372
4373
|
transform: "translate3d(0, -100%, 0)",
|
|
4373
4374
|
visibility: "visible"
|
|
@@ -4375,7 +4376,7 @@ const {
|
|
|
4375
4376
|
to: {
|
|
4376
4377
|
transform: "translate3d(0, 0, 0)"
|
|
4377
4378
|
}
|
|
4378
|
-
}),
|
|
4379
|
+
}), ei = new s("slideInLeft", {
|
|
4379
4380
|
from: {
|
|
4380
4381
|
transform: "translate3d(-100%, 0, 0)",
|
|
4381
4382
|
visibility: "visible"
|
|
@@ -4383,7 +4384,7 @@ const {
|
|
|
4383
4384
|
to: {
|
|
4384
4385
|
transform: "translate3d(0, 0, 0)"
|
|
4385
4386
|
}
|
|
4386
|
-
}),
|
|
4387
|
+
}), ti = new s("slideInRight", {
|
|
4387
4388
|
from: {
|
|
4388
4389
|
transform: "translate3d(100%, 0, 0)",
|
|
4389
4390
|
visibility: "visible"
|
|
@@ -4391,7 +4392,7 @@ const {
|
|
|
4391
4392
|
to: {
|
|
4392
4393
|
transform: "translate3d(0, 0, 0)"
|
|
4393
4394
|
}
|
|
4394
|
-
}),
|
|
4395
|
+
}), ni = new s("slideInUp", {
|
|
4395
4396
|
from: {
|
|
4396
4397
|
transform: "translate3d(0, 100%, 0)",
|
|
4397
4398
|
visibility: "visible"
|
|
@@ -4399,7 +4400,7 @@ const {
|
|
|
4399
4400
|
to: {
|
|
4400
4401
|
transform: "translate3d(0, 0, 0)"
|
|
4401
4402
|
}
|
|
4402
|
-
}),
|
|
4403
|
+
}), ai = new s("slideOutDown", {
|
|
4403
4404
|
from: {
|
|
4404
4405
|
transform: "translate3d(0, 0, 0)"
|
|
4405
4406
|
},
|
|
@@ -4407,7 +4408,7 @@ const {
|
|
|
4407
4408
|
transform: "translate3d(0, 100%, 0)",
|
|
4408
4409
|
visibility: "hidden"
|
|
4409
4410
|
}
|
|
4410
|
-
}),
|
|
4411
|
+
}), oi = new s("slideOutLeft", {
|
|
4411
4412
|
from: {
|
|
4412
4413
|
transform: "translate3d(0, 0, 0)"
|
|
4413
4414
|
},
|
|
@@ -4415,7 +4416,7 @@ const {
|
|
|
4415
4416
|
transform: "translate3d(-100%, 0, 0)",
|
|
4416
4417
|
visibility: "hidden"
|
|
4417
4418
|
}
|
|
4418
|
-
}),
|
|
4419
|
+
}), ii = new s("slideOutRight", {
|
|
4419
4420
|
from: {
|
|
4420
4421
|
transform: "translate3d(0, 0, 0)"
|
|
4421
4422
|
},
|
|
@@ -4423,7 +4424,7 @@ const {
|
|
|
4423
4424
|
transform: "translate3d(100%, 0, 0)",
|
|
4424
4425
|
visibility: "hidden"
|
|
4425
4426
|
}
|
|
4426
|
-
}),
|
|
4427
|
+
}), li = new s("slideOutUp", {
|
|
4427
4428
|
from: {
|
|
4428
4429
|
transform: "translate3d(0, 0, 0)"
|
|
4429
4430
|
},
|
|
@@ -4431,57 +4432,43 @@ const {
|
|
|
4431
4432
|
transform: "translate3d(0, -100%, 0)",
|
|
4432
4433
|
visibility: "hidden"
|
|
4433
4434
|
}
|
|
4434
|
-
}),
|
|
4435
|
+
}), ri = () => ({
|
|
4435
4436
|
"&.slideInDown": {
|
|
4436
4437
|
animationFillMode: "both",
|
|
4437
|
-
animationName:
|
|
4438
|
+
animationName: Qo
|
|
4438
4439
|
},
|
|
4439
4440
|
"&.slideInLeft": {
|
|
4440
4441
|
animationFillMode: "both",
|
|
4441
|
-
animationName:
|
|
4442
|
+
animationName: ei
|
|
4442
4443
|
},
|
|
4443
4444
|
"&.slideInRight": {
|
|
4444
4445
|
animationFillMode: "both",
|
|
4445
|
-
animationName:
|
|
4446
|
+
animationName: ti
|
|
4446
4447
|
},
|
|
4447
4448
|
"&.slideInUp": {
|
|
4448
4449
|
animationFillMode: "both",
|
|
4449
|
-
animationName:
|
|
4450
|
+
animationName: ni
|
|
4450
4451
|
}
|
|
4451
|
-
}),
|
|
4452
|
+
}), si = () => ({
|
|
4452
4453
|
"&.slideOutDown": {
|
|
4453
4454
|
animationFillMode: "both",
|
|
4454
|
-
animationName:
|
|
4455
|
+
animationName: ai
|
|
4455
4456
|
},
|
|
4456
4457
|
"&.slideOutLeft": {
|
|
4457
4458
|
animationFillMode: "both",
|
|
4458
|
-
animationName:
|
|
4459
|
+
animationName: oi
|
|
4459
4460
|
},
|
|
4460
4461
|
"&.slideOutRight": {
|
|
4461
4462
|
animationFillMode: "both",
|
|
4462
|
-
animationName:
|
|
4463
|
+
animationName: ii
|
|
4463
4464
|
},
|
|
4464
4465
|
"&.slideOutUp": {
|
|
4465
4466
|
animationFillMode: "both",
|
|
4466
|
-
animationName:
|
|
4467
|
+
animationName: li
|
|
4467
4468
|
}
|
|
4468
|
-
}),
|
|
4469
|
+
}), ui = (e) => ({
|
|
4469
4470
|
[e.componentCls]: {
|
|
4470
4471
|
"&-enter": {
|
|
4471
|
-
background: "transparent",
|
|
4472
|
-
animationDuration: ".3s !important",
|
|
4473
|
-
...Sa(),
|
|
4474
|
-
...Da(),
|
|
4475
|
-
...uo(),
|
|
4476
|
-
...yo(),
|
|
4477
|
-
...wo(),
|
|
4478
|
-
...Lo(),
|
|
4479
|
-
...Ho(),
|
|
4480
|
-
...qo(),
|
|
4481
|
-
...li()
|
|
4482
|
-
},
|
|
4483
|
-
"&-leave": {
|
|
4484
|
-
display: "none",
|
|
4485
4472
|
background: "transparent",
|
|
4486
4473
|
animationDuration: ".3s !important",
|
|
4487
4474
|
...Ia(),
|
|
@@ -4493,16 +4480,30 @@ const {
|
|
|
4493
4480
|
...Vo(),
|
|
4494
4481
|
...Zo(),
|
|
4495
4482
|
...ri()
|
|
4483
|
+
},
|
|
4484
|
+
"&-leave": {
|
|
4485
|
+
display: "none",
|
|
4486
|
+
background: "transparent",
|
|
4487
|
+
animationDuration: ".3s !important",
|
|
4488
|
+
...Ma(),
|
|
4489
|
+
...za(),
|
|
4490
|
+
...mo(),
|
|
4491
|
+
...po(),
|
|
4492
|
+
...Io(),
|
|
4493
|
+
...No(),
|
|
4494
|
+
...Ao(),
|
|
4495
|
+
...Jo(),
|
|
4496
|
+
...si()
|
|
4496
4497
|
}
|
|
4497
4498
|
}
|
|
4498
4499
|
});
|
|
4499
4500
|
function di(e) {
|
|
4500
|
-
return
|
|
4501
|
-
const a =
|
|
4502
|
-
return [
|
|
4501
|
+
return Ne("LayoutPageTranstion", (t) => {
|
|
4502
|
+
const a = ze(t);
|
|
4503
|
+
return [ui(a)];
|
|
4503
4504
|
}, e);
|
|
4504
4505
|
}
|
|
4505
|
-
const
|
|
4506
|
+
const $i = /* @__PURE__ */ j({
|
|
4506
4507
|
name: "PageTranstion",
|
|
4507
4508
|
props: {
|
|
4508
4509
|
disabled: {
|
|
@@ -4522,63 +4523,63 @@ const Bi = /* @__PURE__ */ W({
|
|
|
4522
4523
|
setup(e, {
|
|
4523
4524
|
slots: t
|
|
4524
4525
|
}) {
|
|
4525
|
-
const a =
|
|
4526
|
+
const a = me({
|
|
4526
4527
|
suffixCls: "page-transtion",
|
|
4527
4528
|
isPor: !0
|
|
4528
4529
|
}), {
|
|
4529
4530
|
wrapSSR: i,
|
|
4530
4531
|
hashId: o
|
|
4531
|
-
} = di(a),
|
|
4532
|
-
|
|
4533
|
-
|
|
4532
|
+
} = di(a), u = (p, O) => {
|
|
4533
|
+
if (p.length === 0 || p === "x" || p === "y")
|
|
4534
|
+
return p;
|
|
4535
|
+
let g = O.indexOf(p);
|
|
4536
|
+
return g = g % 2 === 1 ? g - 1 : g + 1, O[g];
|
|
4537
|
+
}, h = (p) => {
|
|
4538
|
+
const O = Ae.preset.find((l) => e.name === l.name);
|
|
4539
|
+
if (O === void 0)
|
|
4534
4540
|
return "";
|
|
4535
|
-
let
|
|
4536
|
-
e.direction
|
|
4541
|
+
let g = "";
|
|
4542
|
+
e.direction === void 0 ? g = O.directions[0] : g = O.directions.find((l) => l === e.direction) || "", g = g === void 0 || g === "default" ? "" : g, g !== "" && (g = p && e.reverse ? u(g, O.directions) : g, g = g[0].toUpperCase() + g.substring(1));
|
|
4537
4543
|
const T = p ? "Out" : "In";
|
|
4538
|
-
return
|
|
4539
|
-
},
|
|
4540
|
-
if (p.length == 0 || p == "x" || p == "y")
|
|
4541
|
-
return p;
|
|
4542
|
-
let h = R.indexOf(p);
|
|
4543
|
-
return h = h % 2 == 1 ? h - 1 : h + 1, R[h];
|
|
4544
|
-
};
|
|
4544
|
+
return O.name + T + g;
|
|
4545
|
+
}, m = b(() => [h(!1), `${a}-enter`, o.value].join(" ")), w = b(() => [h(!0), `${a}-leave`, o.value].join(" "));
|
|
4545
4546
|
return () => {
|
|
4546
4547
|
var p;
|
|
4547
|
-
return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) : i(n(
|
|
4548
|
-
enterActiveClass:
|
|
4549
|
-
leaveActiveClass:
|
|
4548
|
+
return e.disabled ? (p = t.default) == null ? void 0 : p.call(t) : i(n(Pt, {
|
|
4549
|
+
enterActiveClass: m.value,
|
|
4550
|
+
leaveActiveClass: w.value
|
|
4550
4551
|
}, {
|
|
4551
4552
|
default: () => {
|
|
4552
|
-
var
|
|
4553
|
-
return [(
|
|
4553
|
+
var O;
|
|
4554
|
+
return [(O = t.default) == null ? void 0 : O.call(t)];
|
|
4554
4555
|
}
|
|
4555
4556
|
}));
|
|
4556
4557
|
};
|
|
4557
4558
|
}
|
|
4558
4559
|
});
|
|
4559
4560
|
export {
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4561
|
+
ht as BaseMenu,
|
|
4562
|
+
na as DefaultHeader,
|
|
4563
|
+
Ri as GProLayout,
|
|
4564
|
+
ke as GlobalFooter,
|
|
4565
|
+
Oi as PageContainer,
|
|
4566
|
+
cn as PageLoading,
|
|
4567
|
+
$i as PageTranstion,
|
|
4568
|
+
Fi as SettingDrawer,
|
|
4569
|
+
Re as SiderMenuWrapper,
|
|
4570
|
+
Ue as WrapContent,
|
|
4571
|
+
Me as baseMenuProps,
|
|
4572
|
+
pn as clearMenuItem,
|
|
4573
|
+
Mn as createContext,
|
|
4573
4574
|
On as createRouteContext,
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4575
|
+
vn as flatMap,
|
|
4576
|
+
Bi as getMatchedList,
|
|
4577
|
+
ki as getMenuData,
|
|
4578
|
+
xn as getMenuFirstChildren,
|
|
4579
|
+
Cn as getMenuFirstLastChildPath,
|
|
4580
|
+
wn as handleThemeConfig,
|
|
4581
|
+
E as hanlePathKey,
|
|
4581
4582
|
Rn as provideProLayoutContext,
|
|
4582
|
-
|
|
4583
|
-
|
|
4583
|
+
Bn as useContext,
|
|
4584
|
+
ee as useProLayoutContext
|
|
4584
4585
|
};
|