@gx-design-vue/pro-layout 0.1.0-beta.4 → 0.1.0-beta.41
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/README.md +3 -3
- package/dist/Context.d.ts +10 -6
- package/dist/PageLoading.d.ts +2 -2
- package/dist/ProLayout.d.ts +295 -150
- package/dist/components/GlobalFooter/index.d.ts +11 -26
- package/dist/components/GlobalHeader/DefaultHeader.d.ts +134 -134
- package/dist/components/GlobalHeader/index.d.ts +107 -30
- package/dist/components/GlobalHeader/props.d.ts +78 -14
- package/dist/components/LogoContent/index.d.ts +7 -7
- package/dist/components/LogoContent/props.d.ts +2 -2
- package/dist/components/MultiTab/index.d.ts +4 -4
- package/dist/components/PageContainer/PageHeader.d.ts +14 -5
- package/dist/components/PageContainer/index.d.ts +178 -20
- package/dist/components/PageContainer/props.d.ts +166 -8
- package/dist/components/PageTranstion/index.d.ts +2 -2
- package/dist/components/SettingDrawer/BlockCheckbox.d.ts +3 -3
- package/dist/components/SettingDrawer/OthersChange.d.ts +2 -2
- package/dist/components/SettingDrawer/RegionalChange.d.ts +4 -4
- package/dist/components/SettingDrawer/ThemeColor.d.ts +3 -3
- package/dist/components/SettingDrawer/ThemeEditor.d.ts +2 -2
- package/dist/components/SettingDrawer/index.d.ts +2 -2
- package/dist/components/SiderMenu/SiderMenu.d.ts +42 -42
- package/dist/components/SiderMenu/index.d.ts +44 -44
- package/dist/components/SiderMenu/props.d.ts +22 -16
- package/dist/defaultSettings.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/pro-layout.js +4569 -0
- package/dist/pro-layout.umd.cjs +1 -0
- package/dist/props.d.ts +126 -55
- package/dist/route.d.ts +5 -11
- package/dist/utils/getMenuData.d.ts +2 -1
- package/dist/utils/index.d.ts +3 -2
- package/package.json +39 -35
- package/dist/RenderTypings.d.ts +0 -29
- package/dist/components/SiderMenu/BaseMenu.d.ts +0 -284
- package/dist/components/SiderMenu/typings.d.ts +0 -34
- package/dist/pro-layout.mjs +0 -7421
- package/dist/pro-layout.umd.js +0 -19
|
@@ -0,0 +1,4569 @@
|
|
|
1
|
+
import { defineComponent as j, createVNode as a, mergeProps as G, provide as ot, readonly as Ot, inject as Rt, resolveComponent as it, computed as p, isVNode as ie, Fragment as Q, toRefs as we, unref as K, createTextVNode as ae, ref as Oe, reactive as lt, watch as ue, withDirectives as kt, vShow as Bt, watchEffect as $t, Transition as Pt } from "vue";
|
|
2
|
+
import { Spin as ve, Menu as ne, ConfigProvider as Pe, Layout as ce, Drawer as be, Breadcrumb as Ft, Card as Tt, LayoutFooter as Lt, Tabs as Fe, Dropdown as Xe, Tooltip as Se, List as oe, Switch as rt, TabPane as Dt, Select as ge, message as Nt, Divider as Me, Alert as zt, Button as Ht } from "ant-design-vue";
|
|
3
|
+
import { useProAppContext as Te } from "@gx-design-vue/pro-app";
|
|
4
|
+
import { useRouter as Le, RouterLink as Vt } from "vue-router";
|
|
5
|
+
import { createFromIconfontCN as jt, MenuUnfoldOutlined as Wt, MenuFoldOutlined as At, GithubOutlined as Kt, EllipsisOutlined as Ut, ReloadOutlined as Et, CloseOutlined as st, CheckOutlined as dt, SettingOutlined as Xt, NotificationOutlined as Yt, CopyOutlined as _t } from "@ant-design/icons-vue";
|
|
6
|
+
import Gt, { themeConfig as V, Keyframe as s, useProStyle as te, useProConfigContext as fe, useStyle as De, mergeToken as Ne, colorList as qt } from "@gx-design-vue/pro-provider";
|
|
7
|
+
import { createTypes as Zt } from "vue-types";
|
|
8
|
+
import { cloneDeep as ze, pick as le, omit as He } from "lodash-es";
|
|
9
|
+
import { GPorWaterMark as Jt } from "@gx-design-vue/pro-watermark";
|
|
10
|
+
import { isBoolean as Ye, getSlot as A, getPrefixCls as me, classNames as ut, getLevelData as Qt, isArray as ea, isBrowser as ta, merge as aa } from "@gx-design-vue/pro-utils";
|
|
11
|
+
import { useMediaQuery as na, useState as pe, useMergedState as oa } from "@gx-design-vue/pro-hooks";
|
|
12
|
+
import { useWindowSize as ia, useClipboard as la } from "@vueuse/core";
|
|
13
|
+
import ra from "@gx-design-vue/scrollbar";
|
|
14
|
+
import { GColorPicker as _e } from "@gx-design-vue/color-picker";
|
|
15
|
+
const sa = /* @__PURE__ */ j({
|
|
16
|
+
name: "PageLoading",
|
|
17
|
+
props: {
|
|
18
|
+
...ve.props
|
|
19
|
+
},
|
|
20
|
+
setup(e) {
|
|
21
|
+
const {
|
|
22
|
+
indicator: t
|
|
23
|
+
} = Te();
|
|
24
|
+
return a("div", {
|
|
25
|
+
style: {
|
|
26
|
+
paddingTop: "100px",
|
|
27
|
+
textAlign: "center"
|
|
28
|
+
}
|
|
29
|
+
}, [a(ve, G(e, {
|
|
30
|
+
indicator: t == null ? void 0 : t.value
|
|
31
|
+
}), null)]);
|
|
32
|
+
}
|
|
33
|
+
}), D = Zt({
|
|
34
|
+
func: void 0,
|
|
35
|
+
bool: void 0,
|
|
36
|
+
string: void 0,
|
|
37
|
+
number: void 0,
|
|
38
|
+
array: void 0,
|
|
39
|
+
object: void 0,
|
|
40
|
+
integer: void 0
|
|
41
|
+
});
|
|
42
|
+
D.extend([{
|
|
43
|
+
name: "looseBool",
|
|
44
|
+
getter: !0,
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: void 0
|
|
47
|
+
}, {
|
|
48
|
+
name: "style",
|
|
49
|
+
getter: !0,
|
|
50
|
+
type: [String, Object],
|
|
51
|
+
default: void 0
|
|
52
|
+
}, {
|
|
53
|
+
name: "VueNode",
|
|
54
|
+
getter: !0,
|
|
55
|
+
type: null
|
|
56
|
+
}]);
|
|
57
|
+
const se = {
|
|
58
|
+
theme: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: V.theme
|
|
61
|
+
},
|
|
62
|
+
layout: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: V.layout
|
|
65
|
+
},
|
|
66
|
+
wideWidth: {
|
|
67
|
+
type: Number,
|
|
68
|
+
default: V.wideWidth
|
|
69
|
+
},
|
|
70
|
+
splitMenus: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: V.splitMenus
|
|
73
|
+
},
|
|
74
|
+
fixedMultiTab: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: V.fixedMultiTab
|
|
77
|
+
},
|
|
78
|
+
showProgressBar: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: V.showProgressBar
|
|
81
|
+
},
|
|
82
|
+
fixedHeader: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: V.fixedHeader
|
|
85
|
+
},
|
|
86
|
+
fixSiderbar: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: V.fixSiderbar
|
|
89
|
+
},
|
|
90
|
+
showTabsBar: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: V.showTabsBar
|
|
93
|
+
},
|
|
94
|
+
showFullScreen: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: V.showFullScreen
|
|
97
|
+
},
|
|
98
|
+
autoHideHeader: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: V.autoHideHeader
|
|
101
|
+
},
|
|
102
|
+
headerHeight: {
|
|
103
|
+
type: Number,
|
|
104
|
+
default: V.headerHeight
|
|
105
|
+
},
|
|
106
|
+
title: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: V.title
|
|
109
|
+
},
|
|
110
|
+
iconfontUrl: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: V.iconfontUrl
|
|
113
|
+
},
|
|
114
|
+
animate: {
|
|
115
|
+
type: Object,
|
|
116
|
+
default: V.animate
|
|
117
|
+
},
|
|
118
|
+
primaryColor: {
|
|
119
|
+
type: String,
|
|
120
|
+
default: V.primaryColor
|
|
121
|
+
}
|
|
122
|
+
}, re = {
|
|
123
|
+
renderKey: D.string.def("menuHeaderRender"),
|
|
124
|
+
title: se.title,
|
|
125
|
+
layout: se.layout,
|
|
126
|
+
logo: {
|
|
127
|
+
type: [Object, String, Function],
|
|
128
|
+
default: () => {
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
logoStyle: {
|
|
132
|
+
type: Object,
|
|
133
|
+
default: () => {
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
logoDirection: {
|
|
137
|
+
type: String,
|
|
138
|
+
default: "horizontal"
|
|
139
|
+
},
|
|
140
|
+
drawer: D.looseBool,
|
|
141
|
+
collapsed: D.looseBool,
|
|
142
|
+
menuHeaderRender: {
|
|
143
|
+
type: [Object, Function],
|
|
144
|
+
default: () => {
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
onMenuHeaderClick: Function
|
|
148
|
+
}, Ie = {
|
|
149
|
+
...se,
|
|
150
|
+
mode: {
|
|
151
|
+
type: String,
|
|
152
|
+
default: "inline"
|
|
153
|
+
},
|
|
154
|
+
menuData: {
|
|
155
|
+
type: Array,
|
|
156
|
+
default: () => []
|
|
157
|
+
},
|
|
158
|
+
theme: {
|
|
159
|
+
type: String,
|
|
160
|
+
default: "dark"
|
|
161
|
+
},
|
|
162
|
+
layout: {
|
|
163
|
+
type: String,
|
|
164
|
+
default: "mix"
|
|
165
|
+
},
|
|
166
|
+
collapsed: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
default: () => !1
|
|
169
|
+
},
|
|
170
|
+
openKeys: {
|
|
171
|
+
type: [Array, Boolean],
|
|
172
|
+
default: () => []
|
|
173
|
+
},
|
|
174
|
+
selectedKeys: {
|
|
175
|
+
type: Array,
|
|
176
|
+
default: () => []
|
|
177
|
+
},
|
|
178
|
+
menuProps: {
|
|
179
|
+
type: Object,
|
|
180
|
+
default: () => null
|
|
181
|
+
},
|
|
182
|
+
menuItemRender: {
|
|
183
|
+
type: [Function, Boolean],
|
|
184
|
+
default: () => {
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
subMenuItemRender: {
|
|
188
|
+
type: [Function, Boolean],
|
|
189
|
+
default: () => {
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
onClick: [Function, Object],
|
|
193
|
+
onOpenKeys: {
|
|
194
|
+
type: Function
|
|
195
|
+
},
|
|
196
|
+
onSelect: {
|
|
197
|
+
type: Function
|
|
198
|
+
}
|
|
199
|
+
}, q = {
|
|
200
|
+
...se,
|
|
201
|
+
...Ie,
|
|
202
|
+
menuLoading: D.looseBool,
|
|
203
|
+
logo: re.logo,
|
|
204
|
+
logoStyle: re.logoStyle,
|
|
205
|
+
logoDirection: re.logoDirection,
|
|
206
|
+
siderWidth: D.number.def(208),
|
|
207
|
+
headerHeight: D.number.def(48),
|
|
208
|
+
collapsedWidth: D.number.def(48),
|
|
209
|
+
links: {
|
|
210
|
+
type: [Function, Object, Array],
|
|
211
|
+
default: () => {
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
menuHeaderRender: {
|
|
215
|
+
type: [Function, Object],
|
|
216
|
+
default: () => {
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
menuFooterRender: {
|
|
220
|
+
type: [Function, Object, Boolean],
|
|
221
|
+
default: () => !1
|
|
222
|
+
},
|
|
223
|
+
menuContentRender: {
|
|
224
|
+
type: [Function, Object, Boolean],
|
|
225
|
+
default: () => !1
|
|
226
|
+
},
|
|
227
|
+
menuExtraRender: {
|
|
228
|
+
type: [Function, Object, Boolean],
|
|
229
|
+
default: () => !1
|
|
230
|
+
},
|
|
231
|
+
collapsedButtonRender: {
|
|
232
|
+
type: [Function, Object, Boolean],
|
|
233
|
+
default: () => {
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
breakpoint: {
|
|
237
|
+
type: [Object, Boolean],
|
|
238
|
+
default: () => !1
|
|
239
|
+
},
|
|
240
|
+
isMobile: D.looseBool,
|
|
241
|
+
matchMenuKeys: {
|
|
242
|
+
type: Array,
|
|
243
|
+
default: () => []
|
|
244
|
+
},
|
|
245
|
+
// events
|
|
246
|
+
onMenuHeaderClick: D.func,
|
|
247
|
+
onMenuClick: D.func,
|
|
248
|
+
onCollapse: {
|
|
249
|
+
type: Function
|
|
250
|
+
}
|
|
251
|
+
}, da = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/, ct = (e) => da.test(e);
|
|
252
|
+
function ua(e) {
|
|
253
|
+
return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e);
|
|
254
|
+
}
|
|
255
|
+
function mt(e, t, n, o) {
|
|
256
|
+
var u, f, c, w, v, O, h, T, l, r, I, k, x, y, g, C, $, d, S, R, M, L, H, N, P, W, X, U, Y, m, b, B, F, z;
|
|
257
|
+
const i = { ...e };
|
|
258
|
+
return n === "light" ? (i.colorItemBg = (f = (u = t.layout) == null ? void 0 : u[o]) == null ? void 0 : f.colorBgMenu, i.colorSubItemBg = (w = (c = t.layout) == null ? void 0 : c[o]) == null ? void 0 : w.colorSubItemBg, i.colorItemBgSelected = (O = (v = t.layout) == null ? void 0 : v[o]) == null ? void 0 : O.colorBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (T = (h = t.layout) == null ? void 0 : h[o]) == null ? void 0 : T.colorBgMenuItemSelected, i.colorItemText = (r = (l = t.layout) == null ? void 0 : l[o]) == null ? void 0 : r.colorTextMenu, i.colorItemTextHover = (k = (I = t.layout) == null ? void 0 : I[o]) == null ? void 0 : k.colorTextMenuHover, i.colorItemTextSelected = (y = (x = t.layout) == null ? void 0 : x[o]) == null ? void 0 : y.colorTextMenuSelected, i.colorItemTextSelectedHorizontal = (C = (g = t.layout) == null ? void 0 : g[o]) == null ? void 0 : C.colorTextMenuSelected, o === "sider" && (i.colorItemBgHover = (d = ($ = t.layout) == null ? void 0 : $[o]) == null ? void 0 : d.colorBgMenuItemHover)) : n === "dark" && (i.colorItemBg = (R = (S = t.layout) == null ? void 0 : S[o]) == null ? void 0 : R.colorDarkBgMenu, i.colorSubItemBg = (L = (M = t.layout) == null ? void 0 : M[o]) == null ? void 0 : L.colorDarkSubItemBg, i.colorItemBgSelected = (N = (H = t.layout) == null ? void 0 : H[o]) == null ? void 0 : N.colorDarkBgMenuItemSelected, i.colorItemBgSelectedHorizontal = (W = (P = t.layout) == null ? void 0 : P[o]) == null ? void 0 : W.colorDarkBgMenuItemSelected, i.colorItemText = (U = (X = t.layout) == null ? void 0 : X[o]) == null ? void 0 : U.colorDarkTextMenu, i.colorItemTextHover = (m = (Y = t.layout) == null ? void 0 : Y[o]) == null ? void 0 : m.colorDarkTextMenuHover, i.colorItemTextSelected = (B = (b = t.layout) == null ? void 0 : b[o]) == null ? void 0 : B.colorDarkTextMenuSelected, i.colorItemTextSelectedHorizontal = (z = (F = t.layout) == null ? void 0 : F[o]) == null ? void 0 : z.colorDarkTextMenuSelected, o === "header" && (i.colorActiveBarHeight = 0)), i;
|
|
259
|
+
}
|
|
260
|
+
const ca = ["left", "right"], de = ["left", "right", "down", "up"], ma = ["downBig", "upBig", "leftBig", "rightBig"], fa = ["topLeft", "bottomRight", "topRight", "bottomLeft"], ga = ["downLeft", "upRight", "downRight", "upLeft"], Ve = {
|
|
261
|
+
preset: [
|
|
262
|
+
//预设动画配置
|
|
263
|
+
{ name: "back", alias: "渐近", directions: de },
|
|
264
|
+
{ name: "bounce", alias: "弹跳", directions: de.concat("default") },
|
|
265
|
+
{
|
|
266
|
+
name: "fade",
|
|
267
|
+
alias: "淡化",
|
|
268
|
+
directions: de.concat(ma).concat(fa).concat("default")
|
|
269
|
+
},
|
|
270
|
+
{ name: "flip", alias: "翻转", directions: ["x", "y"] },
|
|
271
|
+
{ name: "lightSpeed", alias: "光速", directions: ca },
|
|
272
|
+
{ name: "rotate", alias: "旋转", directions: ga.concat("default") },
|
|
273
|
+
{ name: "roll", alias: "翻滚", directions: ["default"] },
|
|
274
|
+
{ name: "zoom", alias: "缩放", directions: de.concat("default") },
|
|
275
|
+
{ name: "slide", alias: "滑动", directions: de }
|
|
276
|
+
]
|
|
277
|
+
};
|
|
278
|
+
function ha(e) {
|
|
279
|
+
return e.map((t) => {
|
|
280
|
+
var o;
|
|
281
|
+
const n = { ...t };
|
|
282
|
+
if ((o = n.meta) != null && o.hideInMenu)
|
|
283
|
+
return null;
|
|
284
|
+
if (n && (n != null && n.children)) {
|
|
285
|
+
if (n.children.some((i) => {
|
|
286
|
+
var u;
|
|
287
|
+
return i && !((u = i.meta) != null && u.hideInMenu);
|
|
288
|
+
}))
|
|
289
|
+
return {
|
|
290
|
+
...n,
|
|
291
|
+
children: ha(n.children)
|
|
292
|
+
};
|
|
293
|
+
delete n.children;
|
|
294
|
+
}
|
|
295
|
+
return n;
|
|
296
|
+
}).filter((t) => t);
|
|
297
|
+
}
|
|
298
|
+
function ya(e) {
|
|
299
|
+
return e.map((t) => {
|
|
300
|
+
var o;
|
|
301
|
+
const n = { ...t };
|
|
302
|
+
return (o = n.meta) != null && o.hideInMenu ? null : (n.linkPath = pa(n.children || []), n.children && delete n.children, n);
|
|
303
|
+
}).filter((t) => t);
|
|
304
|
+
}
|
|
305
|
+
function ba(e, t) {
|
|
306
|
+
const n = (t || "").split("/").length === 2 ? t || "" : `/${(t || "").split("/")[1]}`, o = e.find((i) => i.path === n);
|
|
307
|
+
return t === void 0 ? [] : (o == null ? void 0 : o.children) || [];
|
|
308
|
+
}
|
|
309
|
+
function pa(e) {
|
|
310
|
+
let t = "";
|
|
311
|
+
const n = function(o) {
|
|
312
|
+
let i = "";
|
|
313
|
+
return o.children && o.children.length > 0 ? i = n(o.children[0]) : i = o.path, i;
|
|
314
|
+
};
|
|
315
|
+
if (e.length > 0 && e[0].children && e[0].children.length > 0)
|
|
316
|
+
t = n(e[0].children[0]);
|
|
317
|
+
else {
|
|
318
|
+
const o = e.length > 0 ? e[0] : void 0;
|
|
319
|
+
t = (o == null ? void 0 : o.path) || "";
|
|
320
|
+
}
|
|
321
|
+
return t;
|
|
322
|
+
}
|
|
323
|
+
function Si(e, t) {
|
|
324
|
+
var o, i;
|
|
325
|
+
const n = ((i = (o = e.find((u) => u.path === t)) == null ? void 0 : o.meta) == null ? void 0 : i.key) || "";
|
|
326
|
+
if (n) {
|
|
327
|
+
const u = [], f = n.split("-");
|
|
328
|
+
for (let c = 0; c < f.length; c += 1)
|
|
329
|
+
u.push(ze(f).splice(0, c + 1).join("-"));
|
|
330
|
+
return e.filter((c) => u.some((w) => {
|
|
331
|
+
var v;
|
|
332
|
+
return w === ((v = c == null ? void 0 : c.meta) == null ? void 0 : v.key) || "";
|
|
333
|
+
}));
|
|
334
|
+
}
|
|
335
|
+
return [];
|
|
336
|
+
}
|
|
337
|
+
function va(e) {
|
|
338
|
+
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
|
+
function xa(e) {
|
|
341
|
+
const t = ["showTabsBar", "fixedMultiTab", "fixSiderbar", "fixedHeader", "splitMenus"];
|
|
342
|
+
let o = Object.keys(e).reduce((i, u) => (i[u] = !1, i), {});
|
|
343
|
+
return o = Ca(o, t), e.layout === "mix" && (o.fixSiderbar = !0, o.fixedHeader = !0), e.layout === "side" && (o.splitMenus = !0), e.layout === "simple" && (o.splitMenus = !0, o.fixedHeader = !0, o.showTabsBar = !0, o.fixedMultiTab = !0), e.layout === "wide" && (o.splitMenus = !0, o.fixedHeader = !0, o.fixSiderbar = !0, o.showTabsBar = !0, o.fixedMultiTab = !0), o;
|
|
344
|
+
}
|
|
345
|
+
function Ca(e, t) {
|
|
346
|
+
return {
|
|
347
|
+
...t.reduce((n, o) => ({ ...n, [o]: e[o] }), {})
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
const wa = (e = Symbol(), t = "Context.Provider") => j({
|
|
351
|
+
name: t,
|
|
352
|
+
props: {
|
|
353
|
+
value: {
|
|
354
|
+
type: Object,
|
|
355
|
+
required: !0
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
setup(o, { slots: i }) {
|
|
359
|
+
return ot(e, Ot(o.value)), () => {
|
|
360
|
+
var u;
|
|
361
|
+
return (u = i.default) == null ? void 0 : u.call(i);
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
}), Sa = (e = Symbol(), t) => Rt(e, t || {}), je = Symbol("pro-layout-context"), Ia = () => wa(je, "ProLayoutContext.Provider"), Ma = (e) => {
|
|
365
|
+
ot(je, e);
|
|
366
|
+
}, ee = () => Sa(je);
|
|
367
|
+
Ia();
|
|
368
|
+
function Ge(e) {
|
|
369
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
370
|
+
}
|
|
371
|
+
const xe = (e) => {
|
|
372
|
+
const {
|
|
373
|
+
icon: t,
|
|
374
|
+
iconType: n,
|
|
375
|
+
iconfontUrl: o
|
|
376
|
+
} = e;
|
|
377
|
+
if (!t)
|
|
378
|
+
return null;
|
|
379
|
+
if (typeof t == "string" && t !== "") {
|
|
380
|
+
if (ct(t) || ua(t))
|
|
381
|
+
return a("img", {
|
|
382
|
+
src: t,
|
|
383
|
+
alt: "icon",
|
|
384
|
+
class: `${e.className}-icon-image`
|
|
385
|
+
}, null);
|
|
386
|
+
if (n === 1) {
|
|
387
|
+
const u = jt({
|
|
388
|
+
scriptUrl: o || V.iconfontUrl
|
|
389
|
+
});
|
|
390
|
+
return o ? a(u, {
|
|
391
|
+
type: t
|
|
392
|
+
}, null) : a("i", {
|
|
393
|
+
class: `iconfont ${t} ${e.className}-icon`
|
|
394
|
+
}, null);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
if (ie(t))
|
|
398
|
+
return t;
|
|
399
|
+
const i = it(t);
|
|
400
|
+
return typeof xe == "function" && a(i, null, null) || null;
|
|
401
|
+
};
|
|
402
|
+
xe.props = {
|
|
403
|
+
icon: {
|
|
404
|
+
type: [String, Function, Object]
|
|
405
|
+
},
|
|
406
|
+
iconType: Number,
|
|
407
|
+
className: String,
|
|
408
|
+
iconfontUrl: String
|
|
409
|
+
};
|
|
410
|
+
const ft = /* @__PURE__ */ j({
|
|
411
|
+
name: "BaseMenu",
|
|
412
|
+
props: Ie,
|
|
413
|
+
setup(e) {
|
|
414
|
+
const t = Le(), {
|
|
415
|
+
getPrefixCls: n
|
|
416
|
+
} = ee(), o = n({
|
|
417
|
+
suffixCls: "menu-item",
|
|
418
|
+
isPor: !0
|
|
419
|
+
}), i = (l) => {
|
|
420
|
+
var r;
|
|
421
|
+
(r = e.onOpenKeys) == null || r.call(e, l);
|
|
422
|
+
}, u = (l) => {
|
|
423
|
+
var r;
|
|
424
|
+
(r = e.onSelect) == null || r.call(e, l.selectedKeys);
|
|
425
|
+
}, f = (l) => {
|
|
426
|
+
var r;
|
|
427
|
+
(r = e.onClick) == null || r.call(e, ...l);
|
|
428
|
+
}, c = (l, r) => {
|
|
429
|
+
var x;
|
|
430
|
+
const I = l.target || "", k = ct(I);
|
|
431
|
+
((x = t.currentRoute.value) == null ? void 0 : x.fullPath) !== r.to && k && I && l.targetStatus === 1 && window.open(I);
|
|
432
|
+
}, w = it("router-link"), v = (l = []) => l.map((r) => O(r)).filter((r) => r), O = (l) => {
|
|
433
|
+
var k, x, y, g, C, $, d, S, R;
|
|
434
|
+
if (Array.isArray(l.children) && l.children.length > 0 && !((k = l == null ? void 0 : l.meta) != null && k.hideInMenu) && !((x = l == null ? void 0 : l.meta) != null && x.hideChildrenInMenu)) {
|
|
435
|
+
let M;
|
|
436
|
+
if (e.subMenuItemRender)
|
|
437
|
+
return e.subMenuItemRender({
|
|
438
|
+
item: l,
|
|
439
|
+
children: v(l.children)
|
|
440
|
+
});
|
|
441
|
+
const L = (y = l.meta) == null ? void 0 : y.title, H = (g = l.meta) != null && g.icon ? a("span", {
|
|
442
|
+
class: "gx-pro-sider-menu-item"
|
|
443
|
+
}, [a("span", {
|
|
444
|
+
class: "gx-pro-sider-menu-item-title"
|
|
445
|
+
}, [L])]) : a("span", {
|
|
446
|
+
class: "gx-pro-sider-menu-item"
|
|
447
|
+
}, [L]), N = ((C = l.meta) == null ? void 0 : C.type) === "group", P = N ? ne.ItemGroup : ne.SubMenu;
|
|
448
|
+
return a(P, {
|
|
449
|
+
title: H,
|
|
450
|
+
key: l.path,
|
|
451
|
+
icon: N ? null : a(xe, {
|
|
452
|
+
className: o,
|
|
453
|
+
icon: ($ = l.meta) == null ? void 0 : $.icon,
|
|
454
|
+
iconfontUrl: e.iconfontUrl,
|
|
455
|
+
iconType: (d = l.meta) == null ? void 0 : d.iconType
|
|
456
|
+
}, null)
|
|
457
|
+
}, Ge(M = v(l.children)) ? M : {
|
|
458
|
+
default: () => [M]
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
const [r, I] = h(l);
|
|
462
|
+
return e.menuItemRender && e.menuItemRender({
|
|
463
|
+
item: l,
|
|
464
|
+
title: r,
|
|
465
|
+
icon: I
|
|
466
|
+
}) || a(ne.Item, {
|
|
467
|
+
disabled: (S = l.meta) == null ? void 0 : S.disabled,
|
|
468
|
+
danger: (R = l.meta) == null ? void 0 : R.danger,
|
|
469
|
+
key: l.path,
|
|
470
|
+
icon: I
|
|
471
|
+
}, Ge(r) ? r : {
|
|
472
|
+
default: () => [r]
|
|
473
|
+
});
|
|
474
|
+
}, h = (l) => {
|
|
475
|
+
var C, $, d, S, R;
|
|
476
|
+
const r = {
|
|
477
|
+
...l.meta
|
|
478
|
+
}, I = r.targetStatus === 1 && r.target ? "a" : w, k = {
|
|
479
|
+
to: l.linkPath || l.path || ""
|
|
480
|
+
}, x = (C = l.meta) == null ? void 0 : C.title, y = ($ = l.meta) != null && $.icon ? a(I, G(k, {
|
|
481
|
+
class: "gx-pro-sider-menu-item",
|
|
482
|
+
onClick: () => c(r, k)
|
|
483
|
+
}), {
|
|
484
|
+
default: () => [a("span", {
|
|
485
|
+
class: "gx-pro-sider-menu-item-title"
|
|
486
|
+
}, [x])]
|
|
487
|
+
}) : a(I, G(k, {
|
|
488
|
+
class: "gx-pro-sider-menu-item",
|
|
489
|
+
onClick: () => c(r, k)
|
|
490
|
+
}), {
|
|
491
|
+
default: () => [a("span", null, [x])]
|
|
492
|
+
}), g = ((d = l.meta) == null ? void 0 : d.icon) && a(xe, {
|
|
493
|
+
className: o,
|
|
494
|
+
icon: (S = l.meta) == null ? void 0 : S.icon,
|
|
495
|
+
iconfontUrl: e.iconfontUrl,
|
|
496
|
+
iconType: (R = l.meta) == null ? void 0 : R.iconType
|
|
497
|
+
}, null) || void 0;
|
|
498
|
+
return [y, g];
|
|
499
|
+
}, T = p(() => v(e.menuData));
|
|
500
|
+
return () => a(ne, G({
|
|
501
|
+
key: "Menu",
|
|
502
|
+
inlineIndent: 16,
|
|
503
|
+
mode: e.mode,
|
|
504
|
+
theme: e.theme,
|
|
505
|
+
openKeys: e.openKeys === !1 ? [] : e.openKeys,
|
|
506
|
+
selectedKeys: e.selectedKeys || [],
|
|
507
|
+
onOpenChange: i,
|
|
508
|
+
onSelect: u,
|
|
509
|
+
onClick: f
|
|
510
|
+
}, e.menuProps), {
|
|
511
|
+
default: () => [T.value]
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
}), gt = new s("pro-layout-title-hide", {
|
|
515
|
+
"0%": { display: "none", opacity: 0 },
|
|
516
|
+
"99%": {
|
|
517
|
+
display: "none",
|
|
518
|
+
opacity: 0
|
|
519
|
+
},
|
|
520
|
+
"100%": {
|
|
521
|
+
display: "block",
|
|
522
|
+
opacity: 1
|
|
523
|
+
}
|
|
524
|
+
}), Oa = (e) => {
|
|
525
|
+
const t = `${e.antCls}-menu`;
|
|
526
|
+
return {
|
|
527
|
+
[`${e.proComponentsCls}-basic-layout`]: {
|
|
528
|
+
[`${t}${t}-root`]: {
|
|
529
|
+
[`${t}-item a`]: {
|
|
530
|
+
transition: "none"
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
};
|
|
535
|
+
}, Ra = (e) => {
|
|
536
|
+
var t, n, o, i, u, f, c, w, v, O, h, T;
|
|
537
|
+
return {
|
|
538
|
+
[`${e.proComponentsCls}-basic-layout`]: {
|
|
539
|
+
[`&${e.proComponentsCls}-basic-layout-wide`]: {
|
|
540
|
+
[e.componentCls]: {
|
|
541
|
+
position: "sticky",
|
|
542
|
+
zIndex: 100,
|
|
543
|
+
borderRadius: e.borderRadiusSM
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
[e.componentCls]: {
|
|
547
|
+
position: "relative",
|
|
548
|
+
borderRight: 0,
|
|
549
|
+
background: (n = (t = e.layout) == null ? void 0 : t.sider) == null ? void 0 : n.colorDarkBgMenu,
|
|
550
|
+
zIndex: 9,
|
|
551
|
+
"&-menu": {
|
|
552
|
+
position: "relative",
|
|
553
|
+
zIndex: 10,
|
|
554
|
+
minHeight: "100%",
|
|
555
|
+
"&-icon": {
|
|
556
|
+
verticalAlign: "unset"
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
[`& ${e.antCls}-layout-sider-children`]: {
|
|
560
|
+
position: "relative",
|
|
561
|
+
display: "flex",
|
|
562
|
+
flexDirection: "column",
|
|
563
|
+
height: "100%"
|
|
564
|
+
},
|
|
565
|
+
"&-light": {
|
|
566
|
+
background: (i = (o = e.layout) == null ? void 0 : o.sider) == null ? void 0 : i.colorBgMenu,
|
|
567
|
+
boxShadow: "2px 0 8px 0 rgba(29,35,41,.05)",
|
|
568
|
+
[`${e.componentCls}-footer`]: {
|
|
569
|
+
color: (f = (u = e.layout) == null ? void 0 : u.sider) == null ? void 0 : f.colorTextMenu
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
"&-links": {
|
|
573
|
+
width: "100%",
|
|
574
|
+
borderTop: "1px solid rgba(0,0,0,.06)",
|
|
575
|
+
ul: {
|
|
576
|
+
height: "auto"
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"&-link-menu": {
|
|
580
|
+
border: "none",
|
|
581
|
+
boxShadow: "none",
|
|
582
|
+
background: "transparent"
|
|
583
|
+
},
|
|
584
|
+
"&-footer": {
|
|
585
|
+
color: (w = (c = e.layout) == null ? void 0 : c.sider) == null ? void 0 : w.colorDarkTextMenu,
|
|
586
|
+
paddingBlockEnd: 16,
|
|
587
|
+
fontSize: e.fontSize,
|
|
588
|
+
animationName: gt,
|
|
589
|
+
animationDuration: ".4s",
|
|
590
|
+
animationTimingFunction: "ease"
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
[`${e.componentCls}${e.componentCls}-fixed`]: {
|
|
594
|
+
position: "fixed",
|
|
595
|
+
insetBlockStart: 0,
|
|
596
|
+
insetInlineStart: 0,
|
|
597
|
+
zIndex: "100",
|
|
598
|
+
height: "100%",
|
|
599
|
+
"&-mix": {
|
|
600
|
+
height: `calc(100% - ${((O = (v = e.layout) == null ? void 0 : v.header) == null ? void 0 : O.heightLayoutHeader) || V.headerHeight}px)`,
|
|
601
|
+
insetBlockStart: `${((T = (h = e.layout) == null ? void 0 : h.header) == null ? void 0 : T.heightLayoutHeader) || V.headerHeight}px`
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
}, ka = (e) => ({
|
|
607
|
+
[`${e.proComponentsCls}-basic-layout`]: {
|
|
608
|
+
[`${e.antCls}-menu`]: {
|
|
609
|
+
[`${e.proComponentsCls}-menu-item-icon${e.antCls}-menu-item-icon`]: {
|
|
610
|
+
verticalAlign: "unset",
|
|
611
|
+
lineHeight: 1
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}), Ba = (e) => ({
|
|
616
|
+
[`${e.proComponentsCls}-sider`]: {
|
|
617
|
+
"&-light": {
|
|
618
|
+
[`${e.proComponentsCls}-sider-logo`]: {
|
|
619
|
+
h1: {
|
|
620
|
+
color: e.colorPrimary
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
"&-logo": {
|
|
625
|
+
position: "relative",
|
|
626
|
+
display: "flex",
|
|
627
|
+
alignItems: "center",
|
|
628
|
+
justifyContent: "space-between",
|
|
629
|
+
padding: "16px 8px",
|
|
630
|
+
cursor: "pointer",
|
|
631
|
+
transition: "padding .3s cubic-bezier(.645,.045,.355,1)",
|
|
632
|
+
"> a": {
|
|
633
|
+
display: "flex",
|
|
634
|
+
alignItems: "center",
|
|
635
|
+
justifyContent: "center",
|
|
636
|
+
maxHeight: 32,
|
|
637
|
+
"> img": {
|
|
638
|
+
display: "inline-block",
|
|
639
|
+
height: 32,
|
|
640
|
+
verticalAlign: "middle"
|
|
641
|
+
},
|
|
642
|
+
"> h1": {
|
|
643
|
+
display: "inline-block",
|
|
644
|
+
lineHeight: "32px",
|
|
645
|
+
marginBlock: 0,
|
|
646
|
+
marginInlineEnd: 0,
|
|
647
|
+
marginInlineStart: 12,
|
|
648
|
+
color: e.colorWhite,
|
|
649
|
+
animationName: gt,
|
|
650
|
+
animationDuration: ".2s",
|
|
651
|
+
fontWeight: 600,
|
|
652
|
+
fontSize: 18,
|
|
653
|
+
overflow: "hidden",
|
|
654
|
+
verticalAlign: "middle"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
"&-collapsed": {
|
|
658
|
+
flexDirection: "column-reverse",
|
|
659
|
+
margin: 0,
|
|
660
|
+
padding: 12,
|
|
661
|
+
[`${e.proComponentsCls}-layout-apps-icon`]: {
|
|
662
|
+
marginBlockEnd: 8,
|
|
663
|
+
fontSize: 16,
|
|
664
|
+
transition: "font-size 0.2s ease-in-out,color 0.2s ease-in-out"
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
[`&${e.antCls}-layout-sider-collapsed`]: {
|
|
669
|
+
[`${e.proComponentsCls}-sider-logo`]: {
|
|
670
|
+
padding: "16px 8px"
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}), ht = (e, t) => e ? typeof e == "string" ? a("img", {
|
|
675
|
+
src: e,
|
|
676
|
+
alt: "logo",
|
|
677
|
+
style: t
|
|
678
|
+
}, null) : typeof e == "function" ? e() : e : null, $a = (e, t = "menuHeaderRender") => {
|
|
679
|
+
const {
|
|
680
|
+
logo: n,
|
|
681
|
+
logoStyle: o,
|
|
682
|
+
title: i,
|
|
683
|
+
layout: u
|
|
684
|
+
} = e, f = e[t || ""];
|
|
685
|
+
if (f === !1)
|
|
686
|
+
return null;
|
|
687
|
+
const c = ht(n, o), w = i && a("h1", null, [i]);
|
|
688
|
+
return typeof f == "function" ? f(c, e.collapsed ? null : w, e) : a(Q, null, [c || null, e.collapsed && u === "side" ? null : w]);
|
|
689
|
+
}, We = /* @__PURE__ */ j({
|
|
690
|
+
name: "LogoContent",
|
|
691
|
+
props: re,
|
|
692
|
+
setup(e) {
|
|
693
|
+
const {
|
|
694
|
+
getPrefixCls: t
|
|
695
|
+
} = ee(), n = p(() => e.layout === "side" || e.layout === "simple"), o = p(() => t({
|
|
696
|
+
suffixCls: n.value || e.drawer ? "sider" : "global-header",
|
|
697
|
+
isPor: !0
|
|
698
|
+
})), {
|
|
699
|
+
wrapSSR: i,
|
|
700
|
+
hashId: u
|
|
701
|
+
} = te("ProLayoutLogo", [Ba]), f = p(() => $a(e, e.renderKey));
|
|
702
|
+
return () => i(a("div", {
|
|
703
|
+
id: "logo",
|
|
704
|
+
class: {
|
|
705
|
+
[`${u.value}`]: !0,
|
|
706
|
+
[`${o.value}-logo`]: !0,
|
|
707
|
+
[`${o.value}-logo-collapsed`]: !!e.collapsed
|
|
708
|
+
},
|
|
709
|
+
onClick: () => {
|
|
710
|
+
var c;
|
|
711
|
+
return (c = e.onMenuHeaderClick) == null ? void 0 : c.call(e);
|
|
712
|
+
}
|
|
713
|
+
}, [a("a", null, [f.value || null])]));
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
We.inheritAttrs = !1;
|
|
717
|
+
function Pa(e) {
|
|
718
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
719
|
+
}
|
|
720
|
+
const {
|
|
721
|
+
Sider: Fa
|
|
722
|
+
} = ce, {
|
|
723
|
+
Item: qe
|
|
724
|
+
} = ne, yt = (e) => e ? a(Wt, null, null) : a(At, null, null), Ze = /* @__PURE__ */ j({
|
|
725
|
+
props: q,
|
|
726
|
+
inheritAttrs: !1,
|
|
727
|
+
setup(e) {
|
|
728
|
+
const {
|
|
729
|
+
getPrefixCls: t,
|
|
730
|
+
selectedKeys: n,
|
|
731
|
+
flatMenuData: o,
|
|
732
|
+
menuData: i,
|
|
733
|
+
openKeys: u
|
|
734
|
+
} = ee(), {
|
|
735
|
+
indicator: f
|
|
736
|
+
} = Te(), {
|
|
737
|
+
token: c
|
|
738
|
+
} = fe(), {
|
|
739
|
+
theme: w,
|
|
740
|
+
layout: v,
|
|
741
|
+
isMobile: O,
|
|
742
|
+
menuLoading: h,
|
|
743
|
+
breakpoint: T,
|
|
744
|
+
fixSiderbar: l,
|
|
745
|
+
collapsed: r,
|
|
746
|
+
siderWidth: I,
|
|
747
|
+
collapsedWidth: k,
|
|
748
|
+
menuExtraRender: x,
|
|
749
|
+
menuContentRender: y,
|
|
750
|
+
menuFooterRender: g,
|
|
751
|
+
collapsedButtonRender: C,
|
|
752
|
+
links: $
|
|
753
|
+
} = we(e), d = t({
|
|
754
|
+
suffixCls: "sider",
|
|
755
|
+
isPor: !0
|
|
756
|
+
}), {
|
|
757
|
+
wrapSSR: S,
|
|
758
|
+
hashId: R
|
|
759
|
+
} = te("ProLayoutSiderMenu", [Oa, Ra, ka], d), M = p(() => e.layout === "wide"), L = p(() => e.layout === "mix" && !e.isMobile && e.splitMenus), H = p(() => v.value === "side" || v.value === "simple"), N = p(() => (e.layout === "mix" || M.value) && "light" || w.value), P = p(() => v.value === "top" ? [] : i.value), W = p(() => e.collapsed ? e.collapsedWidth : e.siderWidth), X = p(() => [R.value, d, O.value ? "shadow" : null, `${d}-${N.value}`, l.value && e.layout !== "wide" ? `${d}-fixed` : null]), U = p(() => {
|
|
760
|
+
var b;
|
|
761
|
+
return typeof $.value == "function" ? (b = $.value) == null ? void 0 : b.call($) : $.value;
|
|
762
|
+
}), Y = p(() => C.value !== !1 ? C.value || yt : !1), m = (b) => {
|
|
763
|
+
var B;
|
|
764
|
+
if (e.onSelect) {
|
|
765
|
+
if (K(L)) {
|
|
766
|
+
e.onSelect([(B = n == null ? void 0 : n.value) == null ? void 0 : B[0], ...b]);
|
|
767
|
+
return;
|
|
768
|
+
}
|
|
769
|
+
e.onSelect(b);
|
|
770
|
+
}
|
|
771
|
+
};
|
|
772
|
+
return () => {
|
|
773
|
+
var z;
|
|
774
|
+
const b = H.value ? a(We, G({
|
|
775
|
+
drawer: O.value
|
|
776
|
+
}, e), null) : null, B = x.value && ((z = x.value) == null ? void 0 : z.call(x, e)), F = a(ft, {
|
|
777
|
+
class: `${d}-menu ${R.value}`,
|
|
778
|
+
theme: N.value,
|
|
779
|
+
mode: "inline",
|
|
780
|
+
menuData: L.value ? o.value : P.value,
|
|
781
|
+
iconfontUrl: e.iconfontUrl,
|
|
782
|
+
openKeys: u.value,
|
|
783
|
+
selectedKeys: n.value,
|
|
784
|
+
menuItemRender: e.menuItemRender,
|
|
785
|
+
subMenuItemRender: e.subMenuItemRender,
|
|
786
|
+
onClick: e.onMenuClick,
|
|
787
|
+
style: {
|
|
788
|
+
width: "100%"
|
|
789
|
+
},
|
|
790
|
+
onOpenKeys: (_) => {
|
|
791
|
+
var Z;
|
|
792
|
+
return e.onOpenKeys && ((Z = e.onOpenKeys) == null ? void 0 : Z.call(e, _));
|
|
793
|
+
},
|
|
794
|
+
onSelect: m
|
|
795
|
+
}, null);
|
|
796
|
+
return L.value && K(o.value).length === 0 || P.value.length === 0 ? null : S(a(Pe, {
|
|
797
|
+
theme: {
|
|
798
|
+
components: {
|
|
799
|
+
Menu: mt({
|
|
800
|
+
radiusItem: 4,
|
|
801
|
+
colorActiveBarWidth: 0,
|
|
802
|
+
colorActiveBarHeight: 0,
|
|
803
|
+
colorActiveBarBorderSize: 0
|
|
804
|
+
// 主题颜色
|
|
805
|
+
}, (c == null ? void 0 : c.value) || {}, N.value, "sider")
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}, {
|
|
809
|
+
default: () => [l.value && a("div", {
|
|
810
|
+
style: {
|
|
811
|
+
width: `${W.value}px`,
|
|
812
|
+
overflow: "hidden",
|
|
813
|
+
flex: `0 0 ${W.value}px`,
|
|
814
|
+
maxWidth: `${W.value}px`,
|
|
815
|
+
minWidth: `${W.value}px`,
|
|
816
|
+
transition: "background-color 0.2s, min-width 0.2s, max-width 0.2s"
|
|
817
|
+
}
|
|
818
|
+
}, null), a(Fa, {
|
|
819
|
+
collapsible: !0,
|
|
820
|
+
trigger: null,
|
|
821
|
+
class: X.value,
|
|
822
|
+
style: {
|
|
823
|
+
overflow: "hidden",
|
|
824
|
+
zIndex: l.value ? 101 : void 0,
|
|
825
|
+
paddingTop: H.value || e.isMobile || M.value ? 0 : `${e.headerHeight}px`,
|
|
826
|
+
top: e.layout === "wide" ? `${e.headerHeight + 20}px` : void 0,
|
|
827
|
+
height: e.layout === "wide" ? `calc(100vh - ${e.headerHeight + 20 * 2}px)` : void 0
|
|
828
|
+
},
|
|
829
|
+
theme: N.value,
|
|
830
|
+
breakpoint: T.value || void 0,
|
|
831
|
+
collapsed: r.value,
|
|
832
|
+
width: I.value,
|
|
833
|
+
collapsedWidth: k.value
|
|
834
|
+
}, {
|
|
835
|
+
default: () => {
|
|
836
|
+
var _, Z;
|
|
837
|
+
return [h.value && a("div", {
|
|
838
|
+
class: ["gx-pro-sider-loading", R.value]
|
|
839
|
+
}, [a(ve, {
|
|
840
|
+
spinning: h.value,
|
|
841
|
+
indicator: f == null ? void 0 : f.value
|
|
842
|
+
}, null)]), b || null, B && !e.collapsed && a("div", {
|
|
843
|
+
class: {
|
|
844
|
+
[`${R.value}`]: !0,
|
|
845
|
+
[`${d}-extra`]: !0,
|
|
846
|
+
[`${d}-extra-no-logo`]: !b
|
|
847
|
+
}
|
|
848
|
+
}, [B]), a("div", {
|
|
849
|
+
style: {
|
|
850
|
+
flex: "1 1 0%",
|
|
851
|
+
overflow: "hidden auto"
|
|
852
|
+
}
|
|
853
|
+
}, [y.value && ((_ = y.value) == null ? void 0 : _.call(y, e, F)) || F]), e.layout !== "wide" && a("div", {
|
|
854
|
+
class: `${d}-links ${R.value}`
|
|
855
|
+
}, [a(ne, {
|
|
856
|
+
theme: N.value,
|
|
857
|
+
inlineIndent: 16,
|
|
858
|
+
class: `${d}-link-menu ${R.value}`,
|
|
859
|
+
selectedKeys: [],
|
|
860
|
+
openKeys: [],
|
|
861
|
+
mode: "inline"
|
|
862
|
+
}, {
|
|
863
|
+
default: () => [(U.value || []).map((E, J) => a(qe, {
|
|
864
|
+
class: `${d}-link ${R.value}`,
|
|
865
|
+
key: J
|
|
866
|
+
}, Pa(E) ? E : {
|
|
867
|
+
default: () => [E]
|
|
868
|
+
})), Y.value && !O.value && a(qe, {
|
|
869
|
+
class: `${d}-collapsed-button ${R.value}`,
|
|
870
|
+
title: !1,
|
|
871
|
+
key: "collapsed",
|
|
872
|
+
onClick: () => {
|
|
873
|
+
var E;
|
|
874
|
+
e.onCollapse && ((E = e.onCollapse) == null || E.call(e, !r.value));
|
|
875
|
+
}
|
|
876
|
+
}, {
|
|
877
|
+
default: () => {
|
|
878
|
+
var E;
|
|
879
|
+
return [(E = Y.value) == null ? void 0 : E.call(Y, r.value)];
|
|
880
|
+
}
|
|
881
|
+
})]
|
|
882
|
+
})]), g.value && a("div", {
|
|
883
|
+
class: `${d}-footer ${R.value}`
|
|
884
|
+
}, [(Z = g.value) == null ? void 0 : Z.call(g, e)])];
|
|
885
|
+
}
|
|
886
|
+
})]
|
|
887
|
+
}));
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
}), Re = /* @__PURE__ */ j({
|
|
891
|
+
name: "SiderMenuWrapper",
|
|
892
|
+
inheritAttrs: !1,
|
|
893
|
+
props: {
|
|
894
|
+
...q,
|
|
895
|
+
matchMenuKeys: {
|
|
896
|
+
type: Array,
|
|
897
|
+
default: () => []
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
setup(e) {
|
|
901
|
+
return () => a(Q, null, [e.isMobile ? a(be, {
|
|
902
|
+
maskClosable: !0,
|
|
903
|
+
open: !e.collapsed,
|
|
904
|
+
closable: !1,
|
|
905
|
+
placement: "left",
|
|
906
|
+
style: {
|
|
907
|
+
padding: 0,
|
|
908
|
+
height: "100vh"
|
|
909
|
+
},
|
|
910
|
+
getContainer: !1,
|
|
911
|
+
onClose: () => e.onCollapse && e.onCollapse(!0),
|
|
912
|
+
width: e.siderWidth,
|
|
913
|
+
bodyStyle: {
|
|
914
|
+
height: "100vh",
|
|
915
|
+
padding: 0,
|
|
916
|
+
display: "flex",
|
|
917
|
+
flexDirection: "row"
|
|
918
|
+
}
|
|
919
|
+
}, {
|
|
920
|
+
default: () => [a(Ze, G(e, {
|
|
921
|
+
collapsed: e.isMobile ? !1 : e.collapsed
|
|
922
|
+
}), null)]
|
|
923
|
+
}) : a(Ze, e, null)]);
|
|
924
|
+
}
|
|
925
|
+
}), bt = {
|
|
926
|
+
usePageCard: {
|
|
927
|
+
type: Boolean,
|
|
928
|
+
default: () => {
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
pageCardProps: Object,
|
|
932
|
+
pageContentStyle: D.style,
|
|
933
|
+
pageChildrenContentStyle: D.style,
|
|
934
|
+
waterMarkProps: {
|
|
935
|
+
type: Object
|
|
936
|
+
},
|
|
937
|
+
waterMark: D.bool.def(!0),
|
|
938
|
+
pageHeaderRender: {
|
|
939
|
+
type: [Object, Function, Boolean],
|
|
940
|
+
default: () => {
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
}, Ce = {
|
|
944
|
+
pageChildrenExtraRender: {
|
|
945
|
+
type: [Object, Function, Boolean],
|
|
946
|
+
default: () => {
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
contentRender: {
|
|
950
|
+
type: [Object, Function, Boolean],
|
|
951
|
+
default: () => {
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
breadcrumbRender: {
|
|
955
|
+
type: [Object, Function, Boolean],
|
|
956
|
+
default: () => {
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
pageHeaderStyle: D.style,
|
|
960
|
+
loading: D.bool.def(!1),
|
|
961
|
+
...bt
|
|
962
|
+
}, Ta = (e) => ({
|
|
963
|
+
[e.componentCls]: {
|
|
964
|
+
background: e.colorBgContainer,
|
|
965
|
+
padding: `${e.paddingLG}px`,
|
|
966
|
+
"&-has-breadcrumb": {
|
|
967
|
+
paddingBlock: `${e.paddingSM}px`
|
|
968
|
+
},
|
|
969
|
+
"&-content": {
|
|
970
|
+
marginTop: "8px"
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}), La = /* @__PURE__ */ j({
|
|
974
|
+
name: "ProPageHeader",
|
|
975
|
+
props: {
|
|
976
|
+
content: Ce.contentRender,
|
|
977
|
+
breadcrumb: Ce.breadcrumbRender
|
|
978
|
+
},
|
|
979
|
+
setup(e) {
|
|
980
|
+
const {
|
|
981
|
+
breadcrumb: t,
|
|
982
|
+
getPrefixCls: n
|
|
983
|
+
} = ee(), o = n({
|
|
984
|
+
isPor: !0,
|
|
985
|
+
suffixCls: "page-header"
|
|
986
|
+
}), {
|
|
987
|
+
wrapSSR: i,
|
|
988
|
+
hashId: u
|
|
989
|
+
} = te("ProPageHeader", [Ta], o), f = p(() => {
|
|
990
|
+
var c;
|
|
991
|
+
return {
|
|
992
|
+
...t.value,
|
|
993
|
+
itemRender: ((c = t.value) == null ? void 0 : c.itemRender) || (({
|
|
994
|
+
route: w
|
|
995
|
+
}) => w.path ? a(Vt, {
|
|
996
|
+
to: w.path
|
|
997
|
+
}, {
|
|
998
|
+
default: () => [w.breadcrumbName]
|
|
999
|
+
}) : w.breadcrumbName)
|
|
1000
|
+
};
|
|
1001
|
+
});
|
|
1002
|
+
return () => {
|
|
1003
|
+
var c, w;
|
|
1004
|
+
return i(a("div", {
|
|
1005
|
+
class: [`${o}`, u.value, `${o}-has-breadcrumb`]
|
|
1006
|
+
}, [e.breadcrumb ? (c = e.breadcrumb) == null ? void 0 : c.call(e, f.value) : a(Ft, f.value, null), e.content && a("div", {
|
|
1007
|
+
class: [`${o}-content`, u.value]
|
|
1008
|
+
}, [(w = e.content) == null ? void 0 : w.call(e)])]));
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
}), Da = (e) => {
|
|
1012
|
+
var t, n, o, i, u, f, c, w;
|
|
1013
|
+
return {
|
|
1014
|
+
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1015
|
+
[e.componentCls]: {
|
|
1016
|
+
marginInline: -(((n = (t = e.layout) == null ? void 0 : t.pageContainer) == null ? void 0 : n.paddingBlockPageContainerContent) ?? 24),
|
|
1017
|
+
marginBlockStart: -(((i = (o = e.layout) == null ? void 0 : o.pageContainer) == null ? void 0 : i.paddingBlockPageContainerContent) ?? 24)
|
|
1018
|
+
},
|
|
1019
|
+
[e.gridContent]: {
|
|
1020
|
+
width: "100%"
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
[e.componentCls]: {
|
|
1024
|
+
"&-children-content": {
|
|
1025
|
+
marginInline: ((f = (u = e.layout) == null ? void 0 : u.pageContainer) == null ? void 0 : f.marginInlinePageContainerContent) ?? 24,
|
|
1026
|
+
marginBlockStart: ((w = (c = e.layout) == null ? void 0 : c.pageContainer) == null ? void 0 : w.marginBlockPageContainerContent) ?? 24,
|
|
1027
|
+
padding: "inherit"
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
function Na(e) {
|
|
1033
|
+
return De("ProPageContainter", (t) => {
|
|
1034
|
+
const n = Ne(t, {
|
|
1035
|
+
gridContent: `${t.proComponentsCls}-grid-content`
|
|
1036
|
+
});
|
|
1037
|
+
return [Da(n)];
|
|
1038
|
+
}, e);
|
|
1039
|
+
}
|
|
1040
|
+
function za(e) {
|
|
1041
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
1042
|
+
}
|
|
1043
|
+
const Ii = /* @__PURE__ */ j({
|
|
1044
|
+
inheritAttrs: !1,
|
|
1045
|
+
name: "GProPageContainer",
|
|
1046
|
+
props: Ce,
|
|
1047
|
+
setup(e, {
|
|
1048
|
+
slots: t,
|
|
1049
|
+
attrs: n
|
|
1050
|
+
}) {
|
|
1051
|
+
const {
|
|
1052
|
+
getPrefixCls: o,
|
|
1053
|
+
hasContentWide: i,
|
|
1054
|
+
waterMark: u,
|
|
1055
|
+
pageHeaderRender: f,
|
|
1056
|
+
pageContentStyle: c,
|
|
1057
|
+
pageChildrenContentStyle: w,
|
|
1058
|
+
pageCardProps: v,
|
|
1059
|
+
usePageCard: O,
|
|
1060
|
+
waterMarkProps: h
|
|
1061
|
+
} = ee(), {
|
|
1062
|
+
indicator: T
|
|
1063
|
+
} = Te(), l = fe(), r = o({
|
|
1064
|
+
suffixCls: "page-container",
|
|
1065
|
+
isPor: !0
|
|
1066
|
+
}), I = o({
|
|
1067
|
+
suffixCls: "grid-content",
|
|
1068
|
+
isPor: !0
|
|
1069
|
+
}), k = p(() => e.pageCardProps || v.value), x = p(() => e.waterMarkProps || h.value || {}), y = p(() => e.pageContentStyle || c.value), g = p(() => e.pageChildrenContentStyle || w.value || {}), C = p(() => Ye(e.usePageCard) ? e.usePageCard : Ye(O.value) ? O.value : !0), {
|
|
1070
|
+
wrapSSR: $,
|
|
1071
|
+
hashId: d
|
|
1072
|
+
} = Na(r), S = () => {
|
|
1073
|
+
var L, H, N, P, W, X;
|
|
1074
|
+
const M = A(t, e, "pageChildrenExtraRender");
|
|
1075
|
+
return a("div", {
|
|
1076
|
+
class: `${r}-children-content ${d.value}`,
|
|
1077
|
+
style: g.value
|
|
1078
|
+
}, [M && (M == null ? void 0 : M()), C.value ? a(Tt, G(k.value ? le(k.value, ["loading", "bodyStyle"]) : {}, {
|
|
1079
|
+
style: i.value ? {
|
|
1080
|
+
minHeight: "853px"
|
|
1081
|
+
} : void 0,
|
|
1082
|
+
bordered: !1
|
|
1083
|
+
}), {
|
|
1084
|
+
default: () => {
|
|
1085
|
+
var U;
|
|
1086
|
+
return [(U = t.default) == null ? void 0 : U.call(t)];
|
|
1087
|
+
}
|
|
1088
|
+
}) : M ? a("div", {
|
|
1089
|
+
style: {
|
|
1090
|
+
marginBlockStart: `${(P = (N = (H = (L = l == null ? void 0 : l.token) == null ? void 0 : L.value) == null ? void 0 : H.layout) == null ? void 0 : N.pageContainer) == null ? void 0 : P.marginBlockPageContainerContent}px`
|
|
1091
|
+
}
|
|
1092
|
+
}, [(W = t.default) == null ? void 0 : W.call(t)]) : (X = t.default) == null ? void 0 : X.call(t)]);
|
|
1093
|
+
}, R = () => {
|
|
1094
|
+
let M;
|
|
1095
|
+
return a(Q, null, [e.waterMark && u.value ? a(Jt, x.value, za(M = S()) ? M : {
|
|
1096
|
+
default: () => [M]
|
|
1097
|
+
}) : S()]);
|
|
1098
|
+
};
|
|
1099
|
+
return () => {
|
|
1100
|
+
const M = A(t, e, "pageHeaderRender") || f.value, L = A(t, e, "breadcrumbRender"), H = A(t, e, "contentRender");
|
|
1101
|
+
return $(a(ve, {
|
|
1102
|
+
spinning: e.loading,
|
|
1103
|
+
indicator: T == null ? void 0 : T.value
|
|
1104
|
+
}, {
|
|
1105
|
+
default: () => [a("div", {
|
|
1106
|
+
style: n.style,
|
|
1107
|
+
class: {
|
|
1108
|
+
[`${d.value}`]: !0,
|
|
1109
|
+
[`${r}`]: !0
|
|
1110
|
+
}
|
|
1111
|
+
}, [!i.value && M !== !1 && (M || a(La, {
|
|
1112
|
+
style: e.pageHeaderStyle,
|
|
1113
|
+
breadcrumb: L,
|
|
1114
|
+
content: H
|
|
1115
|
+
}, null)), a("div", {
|
|
1116
|
+
class: [I, d.value]
|
|
1117
|
+
}, [a("div", {
|
|
1118
|
+
class: `${I}-children ${d.value}`,
|
|
1119
|
+
style: y.value
|
|
1120
|
+
}, [R()])])])]
|
|
1121
|
+
}));
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
}), Ae = {
|
|
1125
|
+
...se,
|
|
1126
|
+
...Ie,
|
|
1127
|
+
logo: re.logo,
|
|
1128
|
+
logoStyle: re.logoStyle,
|
|
1129
|
+
logoDirection: re.logoDirection,
|
|
1130
|
+
menuLoading: Boolean,
|
|
1131
|
+
autoHideHeader: Boolean,
|
|
1132
|
+
collapsed: Boolean,
|
|
1133
|
+
isMobile: Boolean,
|
|
1134
|
+
siderWidth: q.siderWidth,
|
|
1135
|
+
headerTheme: {
|
|
1136
|
+
type: String,
|
|
1137
|
+
default: "dark"
|
|
1138
|
+
},
|
|
1139
|
+
menuData: {
|
|
1140
|
+
type: Array,
|
|
1141
|
+
default: () => []
|
|
1142
|
+
},
|
|
1143
|
+
menuRender: {
|
|
1144
|
+
type: [Object, Function],
|
|
1145
|
+
default: () => {
|
|
1146
|
+
}
|
|
1147
|
+
},
|
|
1148
|
+
extraRightDropdownRender: {
|
|
1149
|
+
type: [Object, Function],
|
|
1150
|
+
default: () => {
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
rightContentRender: {
|
|
1154
|
+
type: [Object, Function],
|
|
1155
|
+
default: () => {
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
collapsedButtonRender: q.collapsedButtonRender,
|
|
1159
|
+
matchMenuKeys: q.matchMenuKeys,
|
|
1160
|
+
onCollapse: q.onCollapse,
|
|
1161
|
+
onOpenKeys: q.onOpenKeys,
|
|
1162
|
+
onMenuHeaderClick: Function,
|
|
1163
|
+
onSelect: q.onSelect
|
|
1164
|
+
}, pt = {
|
|
1165
|
+
...Ae,
|
|
1166
|
+
headerTitleRender: {
|
|
1167
|
+
type: [Object, Function],
|
|
1168
|
+
default: () => {
|
|
1169
|
+
}
|
|
1170
|
+
},
|
|
1171
|
+
headerRender: {
|
|
1172
|
+
type: [Object, Function],
|
|
1173
|
+
default: () => {
|
|
1174
|
+
}
|
|
1175
|
+
},
|
|
1176
|
+
headerContentRender: {
|
|
1177
|
+
type: [Object, Function],
|
|
1178
|
+
default: () => {
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
hasSiderMenu: Boolean,
|
|
1182
|
+
collapsedWidth: q.collapsedWidth,
|
|
1183
|
+
siderWidth: q.siderWidth
|
|
1184
|
+
}, vt = {
|
|
1185
|
+
loading: D.looseBool,
|
|
1186
|
+
isMobile: q.isMobile,
|
|
1187
|
+
collapsed: Ie.collapsed,
|
|
1188
|
+
siderWidth: q.siderWidth,
|
|
1189
|
+
collapsedWidth: q.collapsedWidth,
|
|
1190
|
+
isFixedMultiTab: se.fixedMultiTab,
|
|
1191
|
+
onReloadPage: {
|
|
1192
|
+
type: Function
|
|
1193
|
+
},
|
|
1194
|
+
onChangeTabs: {
|
|
1195
|
+
type: Function
|
|
1196
|
+
},
|
|
1197
|
+
"onUpdate:tabs": {
|
|
1198
|
+
type: Function
|
|
1199
|
+
}
|
|
1200
|
+
}, Ha = (e) => ({
|
|
1201
|
+
[e.componentCls]: {
|
|
1202
|
+
marginBlock: 0,
|
|
1203
|
+
marginBlockStart: 48,
|
|
1204
|
+
marginBlockEnd: 24,
|
|
1205
|
+
marginInline: 0,
|
|
1206
|
+
paddingBlock: 0,
|
|
1207
|
+
paddingInline: 16,
|
|
1208
|
+
textAlign: "center",
|
|
1209
|
+
"&-links": {
|
|
1210
|
+
marginBottom: 8,
|
|
1211
|
+
a: {
|
|
1212
|
+
color: e.colorTextSecondary,
|
|
1213
|
+
textDecoration: e.linkDecoration,
|
|
1214
|
+
"&:hover": {
|
|
1215
|
+
color: e.colorPrimary
|
|
1216
|
+
}
|
|
1217
|
+
},
|
|
1218
|
+
"a:not(:last-child)": {
|
|
1219
|
+
marginInlineEnd: 40
|
|
1220
|
+
}
|
|
1221
|
+
},
|
|
1222
|
+
"&-copyright": {
|
|
1223
|
+
fontSize: "14px",
|
|
1224
|
+
color: e.colorTextSecondary,
|
|
1225
|
+
a: {
|
|
1226
|
+
color: e.colorTextSecondary,
|
|
1227
|
+
textDecoration: e.linkDecoration
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
}), xt = [{
|
|
1232
|
+
key: "Ant Design Pro",
|
|
1233
|
+
title: "Ant Design Pro",
|
|
1234
|
+
href: "https://pro.ant.design",
|
|
1235
|
+
blankTarget: !0
|
|
1236
|
+
}, {
|
|
1237
|
+
key: "gitee",
|
|
1238
|
+
title: a(Kt, null, null),
|
|
1239
|
+
href: "https://gitee.com/gx12358/vue-antd-admin",
|
|
1240
|
+
blankTarget: !0
|
|
1241
|
+
}, {
|
|
1242
|
+
key: "Ant Design Vue",
|
|
1243
|
+
title: "Ant Design Vue",
|
|
1244
|
+
href: "https://next.antdv.com/components/overview-cn/",
|
|
1245
|
+
blankTarget: !0
|
|
1246
|
+
}], ke = /* @__PURE__ */ j({
|
|
1247
|
+
name: "GlobalFooter",
|
|
1248
|
+
props: {
|
|
1249
|
+
links: {
|
|
1250
|
+
type: [Array, Boolean],
|
|
1251
|
+
default: xt
|
|
1252
|
+
},
|
|
1253
|
+
copyright: {
|
|
1254
|
+
type: [Object, Function, Boolean, String],
|
|
1255
|
+
default: "皖ICP备2022010510号-1"
|
|
1256
|
+
}
|
|
1257
|
+
},
|
|
1258
|
+
setup(e) {
|
|
1259
|
+
const t = me({
|
|
1260
|
+
suffixCls: "global-footer",
|
|
1261
|
+
isPor: !0
|
|
1262
|
+
}), {
|
|
1263
|
+
wrapSSR: n,
|
|
1264
|
+
hashId: o
|
|
1265
|
+
} = te("ProLayoutFooter", [Ha], t);
|
|
1266
|
+
return () => n(a(Lt, {
|
|
1267
|
+
style: {
|
|
1268
|
+
padding: 0
|
|
1269
|
+
}
|
|
1270
|
+
}, {
|
|
1271
|
+
default: () => [a("div", {
|
|
1272
|
+
class: [t, o.value]
|
|
1273
|
+
}, [e.links && a("div", {
|
|
1274
|
+
class: `${t}-links ${o.value}`
|
|
1275
|
+
}, [e.links.map((i) => a("a", {
|
|
1276
|
+
key: i.key,
|
|
1277
|
+
title: i.key,
|
|
1278
|
+
target: i.blankTarget ? "_blank" : "_self",
|
|
1279
|
+
href: i.href
|
|
1280
|
+
}, [i.title]))]), e.copyright && a("div", {
|
|
1281
|
+
class: `${t}-copyright ${o.value}`
|
|
1282
|
+
}, [ae("Copyright 2022 "), a("a", {
|
|
1283
|
+
href: "https://beian.miit.gov.cn/"
|
|
1284
|
+
}, [e.copyright])])])]
|
|
1285
|
+
}));
|
|
1286
|
+
}
|
|
1287
|
+
}), Ct = {
|
|
1288
|
+
...se,
|
|
1289
|
+
...Ae,
|
|
1290
|
+
...q,
|
|
1291
|
+
...pt,
|
|
1292
|
+
...vt,
|
|
1293
|
+
...Ce,
|
|
1294
|
+
pure: Boolean,
|
|
1295
|
+
token: Object,
|
|
1296
|
+
waterMark: {
|
|
1297
|
+
type: Boolean,
|
|
1298
|
+
default: !0
|
|
1299
|
+
},
|
|
1300
|
+
/**
|
|
1301
|
+
* 是否禁用移动端模式,有的管理系统不需要移动端模式,此属性设置为true即可
|
|
1302
|
+
*/
|
|
1303
|
+
disableMobile: {
|
|
1304
|
+
type: Boolean,
|
|
1305
|
+
required: !1
|
|
1306
|
+
},
|
|
1307
|
+
contentStyle: {
|
|
1308
|
+
type: [String, Object],
|
|
1309
|
+
default: () => null
|
|
1310
|
+
},
|
|
1311
|
+
breadcrumb: {
|
|
1312
|
+
type: [Object, Function],
|
|
1313
|
+
default: () => null
|
|
1314
|
+
},
|
|
1315
|
+
disableContentMargin: D.looseBool,
|
|
1316
|
+
isChildrenLayout: D.looseBool,
|
|
1317
|
+
loading: D.looseBool,
|
|
1318
|
+
footerLinks: {
|
|
1319
|
+
type: [Array, Boolean],
|
|
1320
|
+
default: xt
|
|
1321
|
+
},
|
|
1322
|
+
copyrightRender: {
|
|
1323
|
+
type: [Object, Function, Boolean, String],
|
|
1324
|
+
default: () => {
|
|
1325
|
+
}
|
|
1326
|
+
},
|
|
1327
|
+
footerRender: {
|
|
1328
|
+
type: [Object, Function, Boolean],
|
|
1329
|
+
default: () => {
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
menuData: {
|
|
1333
|
+
type: Array,
|
|
1334
|
+
default: () => []
|
|
1335
|
+
},
|
|
1336
|
+
levelMenuData: {
|
|
1337
|
+
type: Array,
|
|
1338
|
+
default: () => []
|
|
1339
|
+
},
|
|
1340
|
+
collapsed: D.looseBool
|
|
1341
|
+
}, Va = (e) => ({
|
|
1342
|
+
[e.componentCls]: {
|
|
1343
|
+
display: "flex",
|
|
1344
|
+
flexDirection: "column",
|
|
1345
|
+
width: "100%",
|
|
1346
|
+
minHeight: "100vh"
|
|
1347
|
+
}
|
|
1348
|
+
}), ja = (e) => {
|
|
1349
|
+
var t, n;
|
|
1350
|
+
return {
|
|
1351
|
+
[e.componentCls]: {
|
|
1352
|
+
a: {
|
|
1353
|
+
color: e.colorPrimary,
|
|
1354
|
+
"&:hover": {
|
|
1355
|
+
color: e.colorPrimaryHover
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
[`&${e.componentCls}-wide`]: {
|
|
1359
|
+
backgroundColor: e.colorBgLayout,
|
|
1360
|
+
[`${e.componentCls}-content`]: {
|
|
1361
|
+
margin: 0,
|
|
1362
|
+
marginInlineStart: 20
|
|
1363
|
+
}
|
|
1364
|
+
},
|
|
1365
|
+
[`${e.componentCls}-content`]: {
|
|
1366
|
+
position: "relative",
|
|
1367
|
+
margin: (n = (t = e.layout) == null ? void 0 : t.pageContainer) == null ? void 0 : n.paddingBlockPageContainerContent
|
|
1368
|
+
},
|
|
1369
|
+
[`${e.componentCls}-container`]: {
|
|
1370
|
+
width: "100%",
|
|
1371
|
+
display: "flex",
|
|
1372
|
+
flexDirection: "column",
|
|
1373
|
+
minWidth: 0,
|
|
1374
|
+
minHeight: 0,
|
|
1375
|
+
backgroundColor: "transparent"
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
};
|
|
1379
|
+
}, Wa = (e) => {
|
|
1380
|
+
var t, n;
|
|
1381
|
+
return {
|
|
1382
|
+
[`${e.componentCls}`]: {
|
|
1383
|
+
"&-fixed": {
|
|
1384
|
+
width: "100%",
|
|
1385
|
+
height: 62,
|
|
1386
|
+
background: "transparent"
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
[`${e.componentWrapCls}`]: {
|
|
1390
|
+
background: e.colorBgContainer,
|
|
1391
|
+
[`${e.antCls}-tabs-nav`]: {
|
|
1392
|
+
paddingLeft: 16,
|
|
1393
|
+
[`${e.antCls}-tabs-tab:not(${e.antCls}-tabs-tab-active)`]: {
|
|
1394
|
+
borderBottomColor: "transparent"
|
|
1395
|
+
},
|
|
1396
|
+
[`${e.componentCls}-title`]: {
|
|
1397
|
+
display: "flex",
|
|
1398
|
+
alignItems: "center",
|
|
1399
|
+
gap: 8,
|
|
1400
|
+
[`${e.componentCls}-reload-btn,${e.componentCls}-close-btn`]: {
|
|
1401
|
+
color: e.colorTextSecondary,
|
|
1402
|
+
fontSize: 12,
|
|
1403
|
+
margin: 0,
|
|
1404
|
+
cursor: "pointer",
|
|
1405
|
+
transition: "color .3s cubic-bezier(.645,.045,.355,1)",
|
|
1406
|
+
"&:hover": {
|
|
1407
|
+
color: e.colorPrimary
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
[`${e.componentCls}-dropdown-menu-btn`]: {
|
|
1412
|
+
marginInlineEnd: 8,
|
|
1413
|
+
padding: 12,
|
|
1414
|
+
fontSize: 16,
|
|
1415
|
+
cursor: "pointer"
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1418
|
+
"&-fixed": {
|
|
1419
|
+
position: "fixed",
|
|
1420
|
+
height: 62,
|
|
1421
|
+
top: ((n = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : n.heightLayoutHeader) || V.headerHeight,
|
|
1422
|
+
right: 0,
|
|
1423
|
+
zIndex: 9,
|
|
1424
|
+
transition: "width .2s"
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
};
|
|
1428
|
+
};
|
|
1429
|
+
function Aa(e) {
|
|
1430
|
+
return De("ProMultiTabs", (t) => {
|
|
1431
|
+
const n = Ne(t, {
|
|
1432
|
+
componentWrapCls: `${t.componentCls}-wrap`
|
|
1433
|
+
});
|
|
1434
|
+
return [Wa(n)];
|
|
1435
|
+
}, e);
|
|
1436
|
+
}
|
|
1437
|
+
const Ka = [
|
|
1438
|
+
{
|
|
1439
|
+
key: "closeOthersTabs",
|
|
1440
|
+
label: "关闭其他"
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
key: "closeLeftTabs",
|
|
1444
|
+
label: "关闭左侧"
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
key: "closeRightTabs",
|
|
1448
|
+
label: "关闭右侧"
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
key: "reloadPage",
|
|
1452
|
+
label: "刷新当前页"
|
|
1453
|
+
}
|
|
1454
|
+
];
|
|
1455
|
+
function Ua(e) {
|
|
1456
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
1457
|
+
}
|
|
1458
|
+
const Ea = Fe.TabPane, Xa = ne.Item, Ya = /* @__PURE__ */ j({
|
|
1459
|
+
props: {
|
|
1460
|
+
...vt,
|
|
1461
|
+
visible: {
|
|
1462
|
+
type: Boolean,
|
|
1463
|
+
default: !0
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
inheritAttrs: !1,
|
|
1467
|
+
setup(e) {
|
|
1468
|
+
const {
|
|
1469
|
+
isMobile: t,
|
|
1470
|
+
isFixedMultiTab: n
|
|
1471
|
+
} = we(e), o = Oe(!1), i = lt({
|
|
1472
|
+
activeKey: "",
|
|
1473
|
+
contextMenuActiveKey: ""
|
|
1474
|
+
}), u = Le(), {
|
|
1475
|
+
menuData: f,
|
|
1476
|
+
flatMenuData: c,
|
|
1477
|
+
layout: w,
|
|
1478
|
+
splitMenus: v,
|
|
1479
|
+
getPrefixCls: O
|
|
1480
|
+
} = ee(), h = O({
|
|
1481
|
+
isPor: !0,
|
|
1482
|
+
suffixCls: "multi-tab"
|
|
1483
|
+
}), {
|
|
1484
|
+
wrapSSR: T,
|
|
1485
|
+
hashId: l
|
|
1486
|
+
} = Aa(h), r = Oe([]);
|
|
1487
|
+
ue(r, () => {
|
|
1488
|
+
var m;
|
|
1489
|
+
(m = e.onChangeTabs) == null || m.call(e, ze(K(r)));
|
|
1490
|
+
}, {
|
|
1491
|
+
deep: !0
|
|
1492
|
+
});
|
|
1493
|
+
const I = p(() => w.value === "mix" && !e.isMobile && v.value), k = p(() => u.currentRoute.value.fullPath || u.currentRoute.value.path), x = p(() => n.value && !t.value), y = p(() => {
|
|
1494
|
+
const m = !(I.value && K(c.value).length === 0 || f.value.length === 0 || w.value === "top");
|
|
1495
|
+
return x.value && m ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%";
|
|
1496
|
+
}), g = p(() => ut(`${h}-wrap`, {
|
|
1497
|
+
[`${l.value}`]: !0,
|
|
1498
|
+
[`${h}-wrap-fixed`]: e.isFixedMultiTab,
|
|
1499
|
+
[`${h}-wrap-loading`]: e.loading
|
|
1500
|
+
})), C = p(() => {
|
|
1501
|
+
const m = {
|
|
1502
|
+
display: e.visible ? void 0 : "none"
|
|
1503
|
+
};
|
|
1504
|
+
return e.isFixedMultiTab ? {
|
|
1505
|
+
margin: 0,
|
|
1506
|
+
width: y.value,
|
|
1507
|
+
paddingTop: "6px",
|
|
1508
|
+
zIndex: 99,
|
|
1509
|
+
...m
|
|
1510
|
+
} : m;
|
|
1511
|
+
}), $ = (m) => (m.fullPath || m.path) === k.value, d = (m) => {
|
|
1512
|
+
if (m.name && m.meta && m.meta.tagHidden !== !0) {
|
|
1513
|
+
const b = m.fullPath || m.path, B = r.value.find((z) => z.fullPath === b), F = {
|
|
1514
|
+
path: m.path,
|
|
1515
|
+
fullPath: b,
|
|
1516
|
+
query: m.query,
|
|
1517
|
+
params: m.params,
|
|
1518
|
+
name: m.name,
|
|
1519
|
+
meta: {
|
|
1520
|
+
...m.meta
|
|
1521
|
+
}
|
|
1522
|
+
};
|
|
1523
|
+
B ? Object.assign(B, F) : m.meta.tagFixed ? r.value.unshift(F) : r.value.push(F), $(m) && (i.activeKey = b);
|
|
1524
|
+
}
|
|
1525
|
+
}, S = (m) => {
|
|
1526
|
+
m.forEach((b) => {
|
|
1527
|
+
b.meta && b.meta.tagFixed && d(b), b.children && S(b.children);
|
|
1528
|
+
});
|
|
1529
|
+
};
|
|
1530
|
+
ue(() => f.value, (m) => {
|
|
1531
|
+
S(m);
|
|
1532
|
+
}, {
|
|
1533
|
+
deep: !0,
|
|
1534
|
+
immediate: !0
|
|
1535
|
+
}), ue(() => u.currentRoute.value, (m) => {
|
|
1536
|
+
d(m);
|
|
1537
|
+
}, {
|
|
1538
|
+
deep: !0,
|
|
1539
|
+
immediate: !0
|
|
1540
|
+
});
|
|
1541
|
+
const R = () => {
|
|
1542
|
+
const m = r.value.slice(-1)[0];
|
|
1543
|
+
m ? u.push(m) : u.push("/");
|
|
1544
|
+
}, M = async (m) => {
|
|
1545
|
+
const b = r.value.find((B) => m === B.fullPath);
|
|
1546
|
+
r.value = r.value.filter((B) => B.fullPath !== m), b && $(b) && R();
|
|
1547
|
+
}, L = (m) => {
|
|
1548
|
+
const b = r.value.find((B) => B.fullPath === m);
|
|
1549
|
+
i.activeKey !== (b == null ? void 0 : b.fullPath) && (b != null && b.fullPath) && u.push(b == null ? void 0 : b.fullPath);
|
|
1550
|
+
}, H = () => {
|
|
1551
|
+
var m;
|
|
1552
|
+
o.value = !0, e.onReloadPage && ((m = e.onReloadPage) == null || m.call(e)), setTimeout(() => {
|
|
1553
|
+
o.value = !1;
|
|
1554
|
+
}, 500);
|
|
1555
|
+
}, N = (m) => m.meta && m.meta.tagFixed, P = (m) => i[m], W = (m, b) => {
|
|
1556
|
+
const B = r.value.findIndex((F) => F.fullPath === P(b));
|
|
1557
|
+
switch (m) {
|
|
1558
|
+
case "closeOthersTabs":
|
|
1559
|
+
r.value = r.value.filter((F) => {
|
|
1560
|
+
var z;
|
|
1561
|
+
return F.fullPath === P(b) || ((z = F.meta) == null ? void 0 : z.tagFixed);
|
|
1562
|
+
});
|
|
1563
|
+
break;
|
|
1564
|
+
case "closeLeftTabs":
|
|
1565
|
+
B && (r.value = r.value.filter((F, z) => {
|
|
1566
|
+
var _;
|
|
1567
|
+
return z >= B || ((_ = F.meta) == null ? void 0 : _.tagFixed);
|
|
1568
|
+
}));
|
|
1569
|
+
break;
|
|
1570
|
+
case "closeRightTabs":
|
|
1571
|
+
B && (r.value = r.value.filter((F, z) => {
|
|
1572
|
+
var _;
|
|
1573
|
+
return z <= B || ((_ = F.meta) == null ? void 0 : _.tagFixed);
|
|
1574
|
+
}));
|
|
1575
|
+
break;
|
|
1576
|
+
case "reloadPage":
|
|
1577
|
+
(B === 0 || B) && i.activeKey === P(b) && H();
|
|
1578
|
+
break;
|
|
1579
|
+
}
|
|
1580
|
+
i.activeKey !== P(b) && u.push(P(b));
|
|
1581
|
+
}, X = (m, b) => {
|
|
1582
|
+
const B = r.value.findIndex((F) => F.fullPath === b);
|
|
1583
|
+
switch (m) {
|
|
1584
|
+
case "closeOthersTabs":
|
|
1585
|
+
return r.value.filter((Z, E) => {
|
|
1586
|
+
var J;
|
|
1587
|
+
return E !== B && !((J = Z.meta) != null && J.tagFixed);
|
|
1588
|
+
}).length === 0;
|
|
1589
|
+
case "closeLeftTabs":
|
|
1590
|
+
return r.value.filter((Z, E) => {
|
|
1591
|
+
var J;
|
|
1592
|
+
return E < B && !((J = Z.meta) != null && J.tagFixed);
|
|
1593
|
+
}).length === 0;
|
|
1594
|
+
case "closeRightTabs":
|
|
1595
|
+
return r.value.filter((Z, E) => {
|
|
1596
|
+
var J;
|
|
1597
|
+
return E > B && !((J = Z.meta) != null && J.tagFixed);
|
|
1598
|
+
}).length === 0;
|
|
1599
|
+
}
|
|
1600
|
+
}, U = (m) => {
|
|
1601
|
+
let b;
|
|
1602
|
+
const {
|
|
1603
|
+
path: B,
|
|
1604
|
+
stateType: F
|
|
1605
|
+
} = m;
|
|
1606
|
+
return a(ne, {
|
|
1607
|
+
selectedKeys: [],
|
|
1608
|
+
onClick: ({
|
|
1609
|
+
key: z
|
|
1610
|
+
}) => W(z, F)
|
|
1611
|
+
}, Ua(b = Ka.map((z) => a(Xa, {
|
|
1612
|
+
key: z.key,
|
|
1613
|
+
disabled: X(z.key, B)
|
|
1614
|
+
}, {
|
|
1615
|
+
default: () => [z.label]
|
|
1616
|
+
}))) ? b : {
|
|
1617
|
+
default: () => [b]
|
|
1618
|
+
});
|
|
1619
|
+
}, Y = (m) => {
|
|
1620
|
+
const {
|
|
1621
|
+
router: b
|
|
1622
|
+
} = m;
|
|
1623
|
+
return a(Xe, {
|
|
1624
|
+
trigger: "contextmenu",
|
|
1625
|
+
overlay: a(U, {
|
|
1626
|
+
path: (b == null ? void 0 : b.fullPath) || "",
|
|
1627
|
+
stateType: "contextMenuActiveKey"
|
|
1628
|
+
}, null),
|
|
1629
|
+
onOpenChange: (B) => {
|
|
1630
|
+
i.contextMenuActiveKey = B && b.fullPath || "";
|
|
1631
|
+
}
|
|
1632
|
+
}, {
|
|
1633
|
+
default: () => {
|
|
1634
|
+
var B;
|
|
1635
|
+
return [a("div", {
|
|
1636
|
+
class: [`${h}-title`, l.value]
|
|
1637
|
+
}, [(B = b.meta) == null ? void 0 : B.title, i.activeKey === b.fullPath && a(Et, {
|
|
1638
|
+
class: [`${h}-reload-btn`, l.value],
|
|
1639
|
+
spin: o.value,
|
|
1640
|
+
onClick: (F) => {
|
|
1641
|
+
F.stopPropagation(), !o.value && H();
|
|
1642
|
+
}
|
|
1643
|
+
}, null), r.value.length > 1 && !N(b) && a(st, {
|
|
1644
|
+
class: [`${h}-close-btn`, l.value],
|
|
1645
|
+
onClick: (F) => {
|
|
1646
|
+
F.stopPropagation(), !o.value && M((b == null ? void 0 : b.fullPath) || "");
|
|
1647
|
+
}
|
|
1648
|
+
}, null)])];
|
|
1649
|
+
}
|
|
1650
|
+
});
|
|
1651
|
+
};
|
|
1652
|
+
return () => T(a(Q, null, [!!e.isFixedMultiTab && kt(a("div", {
|
|
1653
|
+
class: [`${h}-fixed`, l.value]
|
|
1654
|
+
}, null), [[Bt, e.visible]]), a(Fe, {
|
|
1655
|
+
hideAdd: !0,
|
|
1656
|
+
type: "editable-card",
|
|
1657
|
+
style: C.value,
|
|
1658
|
+
class: g.value,
|
|
1659
|
+
activeKey: i.activeKey,
|
|
1660
|
+
onTabClick: L
|
|
1661
|
+
}, {
|
|
1662
|
+
default: () => [r.value.map((m) => a(Ea, {
|
|
1663
|
+
key: m.fullPath,
|
|
1664
|
+
closable: !1,
|
|
1665
|
+
tab: a(Y, {
|
|
1666
|
+
router: m
|
|
1667
|
+
}, null)
|
|
1668
|
+
}, null))],
|
|
1669
|
+
rightExtra: () => a(Xe, {
|
|
1670
|
+
overlay: a(U, {
|
|
1671
|
+
path: i.activeKey,
|
|
1672
|
+
stateType: "activeKey"
|
|
1673
|
+
}, null)
|
|
1674
|
+
}, {
|
|
1675
|
+
default: () => [a(Ut, {
|
|
1676
|
+
class: [`${h}-dropdown-menu-btn`, l.value],
|
|
1677
|
+
rotate: 90
|
|
1678
|
+
}, null)]
|
|
1679
|
+
})
|
|
1680
|
+
})]));
|
|
1681
|
+
}
|
|
1682
|
+
}), {
|
|
1683
|
+
Content: _a
|
|
1684
|
+
} = ce, Ke = (e, {
|
|
1685
|
+
slots: t,
|
|
1686
|
+
attrs: n
|
|
1687
|
+
}) => {
|
|
1688
|
+
var I;
|
|
1689
|
+
const {
|
|
1690
|
+
hashId: o,
|
|
1691
|
+
prefixCls: i,
|
|
1692
|
+
isMobile: u,
|
|
1693
|
+
loading: f,
|
|
1694
|
+
collapsed: c,
|
|
1695
|
+
siderWidth: w,
|
|
1696
|
+
isShowTabsBar: v,
|
|
1697
|
+
isFixedMultiTab: O,
|
|
1698
|
+
onReloadPage: h,
|
|
1699
|
+
onChangeTabs: T
|
|
1700
|
+
} = e;
|
|
1701
|
+
if (e.isChildrenLayout)
|
|
1702
|
+
return (I = t.default) == null ? void 0 : I.call(t);
|
|
1703
|
+
const {
|
|
1704
|
+
flatMenuData: l,
|
|
1705
|
+
layout: r
|
|
1706
|
+
} = ee();
|
|
1707
|
+
return a(Q, null, [a(Ya, {
|
|
1708
|
+
visible: (K(r) === "mix" ? K(l).length > 0 : !0) && v,
|
|
1709
|
+
isMobile: u,
|
|
1710
|
+
loading: f,
|
|
1711
|
+
isFixedMultiTab: O,
|
|
1712
|
+
siderWidth: w,
|
|
1713
|
+
collapsed: c,
|
|
1714
|
+
onReloadPage: h,
|
|
1715
|
+
onChangeTabs: T
|
|
1716
|
+
}, null), a(_a, {
|
|
1717
|
+
style: n.style,
|
|
1718
|
+
class: [`${i}-content`]
|
|
1719
|
+
}, {
|
|
1720
|
+
default: () => {
|
|
1721
|
+
var k;
|
|
1722
|
+
return [f && a(sa, null, null), a("div", {
|
|
1723
|
+
class: [`${i}-content-spin-container`, o],
|
|
1724
|
+
style: {
|
|
1725
|
+
opacity: f ? "0" : void 0
|
|
1726
|
+
}
|
|
1727
|
+
}, [(k = t.default) == null ? void 0 : k.call(t)])];
|
|
1728
|
+
}
|
|
1729
|
+
})]);
|
|
1730
|
+
};
|
|
1731
|
+
Ke.inheritAttrs = !1;
|
|
1732
|
+
Ke.displayName = "wrap-content";
|
|
1733
|
+
const Ga = (e) => {
|
|
1734
|
+
var t, n, o, i;
|
|
1735
|
+
return {
|
|
1736
|
+
[`${e.proComponentsCls}-basic-layout`]: {
|
|
1737
|
+
[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-light`]: {
|
|
1738
|
+
backgroundColor: ((n = (t = e.layout) == null ? void 0 : t.header) == null ? void 0 : n.colorBgMenu) || e.colorBgElevated
|
|
1739
|
+
},
|
|
1740
|
+
[`${e.antCls}-layout-header${e.componentCls}${e.componentCls}-dark`]: {
|
|
1741
|
+
backgroundColor: (i = (o = e.layout) == null ? void 0 : o.header) == null ? void 0 : i.colorDarkBgMenu,
|
|
1742
|
+
[`${e.proComponentsCls}-global-header-collapsed-button`]: {
|
|
1743
|
+
color: "#fff"
|
|
1744
|
+
}
|
|
1745
|
+
},
|
|
1746
|
+
[`${e.antCls}-layout-header${e.componentCls}`]: {
|
|
1747
|
+
zIndex: 19,
|
|
1748
|
+
paddingBlock: 0,
|
|
1749
|
+
paddingInline: 0,
|
|
1750
|
+
WebkitBackdropFilter: "blur(8px)",
|
|
1751
|
+
backdropFilter: "blur(8px)",
|
|
1752
|
+
transition: "background-color 0.2s cubic-bezier(.645,.045,.355,1)",
|
|
1753
|
+
[`&${e.proComponentsCls}`]: {
|
|
1754
|
+
"&-fixed-header": {
|
|
1755
|
+
position: "fixed",
|
|
1756
|
+
width: "100%",
|
|
1757
|
+
zIndex: 9,
|
|
1758
|
+
top: 0,
|
|
1759
|
+
transition: "width .2s",
|
|
1760
|
+
"&-action": {
|
|
1761
|
+
transition: "width .3s cubic-bezier(.645,.045,.355,1)"
|
|
1762
|
+
}
|
|
1763
|
+
},
|
|
1764
|
+
"&-header-actions": {
|
|
1765
|
+
display: "flex",
|
|
1766
|
+
alignItems: "center",
|
|
1767
|
+
fontSize: "16",
|
|
1768
|
+
cursor: "pointer",
|
|
1769
|
+
"& &-item": {
|
|
1770
|
+
paddingBlock: 0,
|
|
1771
|
+
paddingInline: 8,
|
|
1772
|
+
"&:hover": {
|
|
1773
|
+
color: e.colorText
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
},
|
|
1777
|
+
"&-header-realDark": { boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 65%)" },
|
|
1778
|
+
"&-header-actions-header-action": {
|
|
1779
|
+
transition: "width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
};
|
|
1785
|
+
}, qa = (e) => ({
|
|
1786
|
+
[`${e.proComponentsCls}-header`]: {
|
|
1787
|
+
"&-light": {
|
|
1788
|
+
[`${e.componentCls}-logo`]: {
|
|
1789
|
+
h1: {
|
|
1790
|
+
color: e.colorBgSpotlight
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
},
|
|
1795
|
+
[e.componentCls]: {
|
|
1796
|
+
position: "relative",
|
|
1797
|
+
background: "transparent",
|
|
1798
|
+
display: "flex",
|
|
1799
|
+
marginBlock: 0,
|
|
1800
|
+
paddingInline: 16,
|
|
1801
|
+
width: "100%",
|
|
1802
|
+
height: "100%",
|
|
1803
|
+
boxShadow: "0 1px 4px rgba(0,21,41,.08)",
|
|
1804
|
+
boxSizing: "border-box",
|
|
1805
|
+
"&-mix": {
|
|
1806
|
+
boxShadow: "0 1px 4px 0 rgba(0,21,41,.12)"
|
|
1807
|
+
},
|
|
1808
|
+
"&-wide": {
|
|
1809
|
+
boxShadow: "0 1px 4px 0 rgba(0,21,41,.12)",
|
|
1810
|
+
padding: 0,
|
|
1811
|
+
[`${e.componentCls}-main`]: {
|
|
1812
|
+
margin: "0 auto"
|
|
1813
|
+
}
|
|
1814
|
+
},
|
|
1815
|
+
"&-main": {
|
|
1816
|
+
display: "flex",
|
|
1817
|
+
width: "100%",
|
|
1818
|
+
height: "100%",
|
|
1819
|
+
"&-left": {
|
|
1820
|
+
display: "flex",
|
|
1821
|
+
minWidth: 192
|
|
1822
|
+
}
|
|
1823
|
+
},
|
|
1824
|
+
"> a": {
|
|
1825
|
+
height: "100%"
|
|
1826
|
+
},
|
|
1827
|
+
"> *": {
|
|
1828
|
+
height: "100%"
|
|
1829
|
+
},
|
|
1830
|
+
[`${e.proComponentsCls}-layout-apps-icon`]: {
|
|
1831
|
+
marginInlineEnd: 16
|
|
1832
|
+
},
|
|
1833
|
+
"&-collapsed-button": {
|
|
1834
|
+
display: "flex",
|
|
1835
|
+
alignItems: "center",
|
|
1836
|
+
fontSize: "20px",
|
|
1837
|
+
marginInlineEnd: "16px"
|
|
1838
|
+
},
|
|
1839
|
+
"&-logo": {
|
|
1840
|
+
position: "relative",
|
|
1841
|
+
marginInlineEnd: "16px",
|
|
1842
|
+
a: {
|
|
1843
|
+
display: "flex",
|
|
1844
|
+
alignItems: "center",
|
|
1845
|
+
height: "100%",
|
|
1846
|
+
minHeight: "22px",
|
|
1847
|
+
fontSize: "20px"
|
|
1848
|
+
},
|
|
1849
|
+
img: { height: "28px" },
|
|
1850
|
+
h1: {
|
|
1851
|
+
marginBlock: 0,
|
|
1852
|
+
marginInline: 0,
|
|
1853
|
+
marginInlineStart: 12,
|
|
1854
|
+
fontWeight: "500",
|
|
1855
|
+
color: e.colorWhite,
|
|
1856
|
+
fontSize: 16
|
|
1857
|
+
},
|
|
1858
|
+
"&-mix": {
|
|
1859
|
+
display: "flex",
|
|
1860
|
+
alignItems: "center"
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1863
|
+
"&-logo-mobile": {
|
|
1864
|
+
minWidth: "24px",
|
|
1865
|
+
marginInlineEnd: 0
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
}), wt = {
|
|
1869
|
+
...q,
|
|
1870
|
+
...Ae
|
|
1871
|
+
}, Za = (e, t) => e === !1 ? null : e ? e(t, null) : t, Ja = /* @__PURE__ */ j({
|
|
1872
|
+
props: wt,
|
|
1873
|
+
setup(e) {
|
|
1874
|
+
return () => e.rightContentRender && typeof e.rightContentRender == "function" && a(Q, null, [e.rightContentRender({
|
|
1875
|
+
...e
|
|
1876
|
+
})]);
|
|
1877
|
+
}
|
|
1878
|
+
}), Qa = /* @__PURE__ */ j({
|
|
1879
|
+
props: wt,
|
|
1880
|
+
inheritAttrs: !1,
|
|
1881
|
+
setup(e, {
|
|
1882
|
+
slots: t,
|
|
1883
|
+
emit: n
|
|
1884
|
+
}) {
|
|
1885
|
+
const o = Le(), {
|
|
1886
|
+
token: i
|
|
1887
|
+
} = fe(), {
|
|
1888
|
+
getPrefixCls: u,
|
|
1889
|
+
openKeys: f,
|
|
1890
|
+
selectedKeys: c
|
|
1891
|
+
} = ee(), {
|
|
1892
|
+
width: w
|
|
1893
|
+
} = ia(), v = u({
|
|
1894
|
+
suffixCls: "global-header",
|
|
1895
|
+
isPor: !0
|
|
1896
|
+
}), {
|
|
1897
|
+
wrapSSR: O,
|
|
1898
|
+
hashId: h
|
|
1899
|
+
} = te("ProGlobalHeader", [qa], v), T = p(() => !e.isMobile || e.layout === "top" || e.layout === "mix" && e.splitMenus), l = p(() => ({
|
|
1900
|
+
[`${h.value}`]: !0,
|
|
1901
|
+
[`${v}`]: !0,
|
|
1902
|
+
[`${v}-${e.layout}`]: !0
|
|
1903
|
+
})), r = (y) => {
|
|
1904
|
+
var g;
|
|
1905
|
+
if (o.currentRoute) {
|
|
1906
|
+
const C = o.currentRoute.value.matched.concat();
|
|
1907
|
+
e.onSelect && y === "select" && e.onSelect(C.filter(($) => $.name !== "index").map(($) => $.path)), e.onOpenKeys && y === "openKeys" && ((g = e.onOpenKeys) == null || g.call(e, C.filter(($) => $.path !== o.currentRoute.value.path).map(($) => $.path)));
|
|
1908
|
+
}
|
|
1909
|
+
}, I = () => {
|
|
1910
|
+
n("collapse", !e.collapsed);
|
|
1911
|
+
}, k = p(() => e.collapsedButtonRender || yt), x = () => {
|
|
1912
|
+
var y;
|
|
1913
|
+
return a(Q, null, [T.value ? a("div", {
|
|
1914
|
+
style: {
|
|
1915
|
+
flex: 1
|
|
1916
|
+
},
|
|
1917
|
+
class: [`${v}-menu`, h.value]
|
|
1918
|
+
}, [a(Pe, {
|
|
1919
|
+
theme: {
|
|
1920
|
+
components: {
|
|
1921
|
+
Layout: {
|
|
1922
|
+
headerBg: "transparent",
|
|
1923
|
+
bodyBg: "transparent"
|
|
1924
|
+
},
|
|
1925
|
+
Menu: mt({
|
|
1926
|
+
radiusItem: 4,
|
|
1927
|
+
colorActiveBarWidth: 0,
|
|
1928
|
+
colorActiveBarHeight: 2,
|
|
1929
|
+
colorActiveBarBorderSize: 0,
|
|
1930
|
+
horizontalItemBorderRadius: 4
|
|
1931
|
+
}, i.value || {}, e.theme, "header")
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
}, {
|
|
1935
|
+
default: () => [a(ft, G({
|
|
1936
|
+
theme: e.theme,
|
|
1937
|
+
mode: e.mode,
|
|
1938
|
+
collapsed: e.collapsed,
|
|
1939
|
+
menuData: e.menuData,
|
|
1940
|
+
openKeys: f.value,
|
|
1941
|
+
selectedKeys: c.value,
|
|
1942
|
+
iconfontUrl: e.iconfontUrl,
|
|
1943
|
+
menuItemRender: e.menuItemRender,
|
|
1944
|
+
subMenuItemRender: e.subMenuItemRender,
|
|
1945
|
+
class: {
|
|
1946
|
+
"top-nav-menu": e.mode === "horizontal",
|
|
1947
|
+
[`${h.value}`]: !0
|
|
1948
|
+
}
|
|
1949
|
+
}, {
|
|
1950
|
+
"onUpdate:openKeys": () => r("openKeys"),
|
|
1951
|
+
"onUpdate:selectedKeys": () => r("select")
|
|
1952
|
+
}), null)]
|
|
1953
|
+
})]) : a("div", {
|
|
1954
|
+
style: {
|
|
1955
|
+
flex: 1
|
|
1956
|
+
}
|
|
1957
|
+
}, [(y = t.default) == null ? void 0 : y.call(t)]), e.layout !== "simple" && a(Ja, G(e, {
|
|
1958
|
+
extraRightDropdownRender: e.extraRightDropdownRender,
|
|
1959
|
+
rightContentRender: e.rightContentRender
|
|
1960
|
+
}), null)]);
|
|
1961
|
+
};
|
|
1962
|
+
return () => {
|
|
1963
|
+
const y = a("span", {
|
|
1964
|
+
key: "logo",
|
|
1965
|
+
onClick: () => {
|
|
1966
|
+
var g;
|
|
1967
|
+
return (g = e.onMenuHeaderClick) == null ? void 0 : g.call(e);
|
|
1968
|
+
},
|
|
1969
|
+
class: [`${v}-logo`, e.isMobile ? "mobile" : "", h.value]
|
|
1970
|
+
}, [a("a", null, [ht(e.logo)])]);
|
|
1971
|
+
return O(a("div", {
|
|
1972
|
+
class: l.value
|
|
1973
|
+
}, [e.isMobile ? a(Q, null, [Za(e.menuHeaderRender, y), e.isMobile && K(k) && a("span", {
|
|
1974
|
+
class: `${v}-collapsed-button ${h.value}`,
|
|
1975
|
+
onClick: I
|
|
1976
|
+
}, [K(k)(e.collapsed)]), x()]) : ["mix", "wide", "top"].includes(e.layout) ? a(Q, null, [a("div", {
|
|
1977
|
+
style: {
|
|
1978
|
+
width: e.layout === "wide" ? `${e.wideWidth}px` : void 0,
|
|
1979
|
+
padding: e.layout === "wide" && w.value < e.wideWidth ? "0 50px" : void 0
|
|
1980
|
+
},
|
|
1981
|
+
class: `${v}-main ${h.value}`
|
|
1982
|
+
}, [a("div", {
|
|
1983
|
+
class: `${v}-main-left ${h.value}`
|
|
1984
|
+
}, [a(We, G(e, {
|
|
1985
|
+
renderKey: "headerTitleRender"
|
|
1986
|
+
}), null)]), x()])]) : x()]));
|
|
1987
|
+
};
|
|
1988
|
+
}
|
|
1989
|
+
});
|
|
1990
|
+
function en(e) {
|
|
1991
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
1992
|
+
}
|
|
1993
|
+
const {
|
|
1994
|
+
Header: Je
|
|
1995
|
+
} = ce, Be = /* @__PURE__ */ j({
|
|
1996
|
+
inheritAttrs: !1,
|
|
1997
|
+
props: pt,
|
|
1998
|
+
setup(e) {
|
|
1999
|
+
const {
|
|
2000
|
+
theme: t,
|
|
2001
|
+
isMobile: n,
|
|
2002
|
+
fixedHeader: o,
|
|
2003
|
+
headerHeight: i,
|
|
2004
|
+
layout: u,
|
|
2005
|
+
onCollapse: f,
|
|
2006
|
+
splitMenus: c
|
|
2007
|
+
} = we(e), {
|
|
2008
|
+
getPrefixCls: w,
|
|
2009
|
+
menuData: v
|
|
2010
|
+
} = ee(), O = w({
|
|
2011
|
+
suffixCls: "header",
|
|
2012
|
+
isPor: !0
|
|
2013
|
+
}), h = w({
|
|
2014
|
+
suffixCls: "fixed-header",
|
|
2015
|
+
isPor: !0
|
|
2016
|
+
}), {
|
|
2017
|
+
wrapSSR: T,
|
|
2018
|
+
hashId: l
|
|
2019
|
+
} = te("ProLayoutHeader", [Ga], O), r = p(() => u.value === "wide"), I = p(() => o.value), k = p(() => u.value === "mix" || r.value), x = p(() => u.value === "side" || u.value === "simple"), y = p(() => x.value && "light" || t.value), g = p(() => ({
|
|
2020
|
+
[`${l.value}`]: !0,
|
|
2021
|
+
[`${O}-${y.value}`]: !0,
|
|
2022
|
+
[`${O}`]: !0,
|
|
2023
|
+
[`${h}`]: I.value
|
|
2024
|
+
})), C = p(() => I.value && !n.value), $ = p(() => c.value ? v.value && ya(v.value) || [] : u.value === "top" ? v.value : []), d = p(() => x.value && C.value ? `calc(100% - ${e.collapsed ? e.collapsedWidth : e.siderWidth}px)` : "100%"), S = p(() => I.value ? 0 : void 0), R = () => {
|
|
2025
|
+
const M = a(Qa, G(e, {
|
|
2026
|
+
theme: y.value,
|
|
2027
|
+
mode: "horizontal",
|
|
2028
|
+
onCollapse: f.value,
|
|
2029
|
+
menuData: $.value
|
|
2030
|
+
}), {
|
|
2031
|
+
default: () => [k.value ? null : e.headerContentRender && typeof e.headerContentRender == "function" ? e.headerContentRender(e) : e.headerContentRender]
|
|
2032
|
+
});
|
|
2033
|
+
return e.headerRender ? e.headerRender(e, M) : M;
|
|
2034
|
+
};
|
|
2035
|
+
return () => {
|
|
2036
|
+
let M;
|
|
2037
|
+
return T(a(Q, null, [I.value && !r.value && a(Je, {
|
|
2038
|
+
theme: y.value,
|
|
2039
|
+
style: {
|
|
2040
|
+
height: `${i.value}px`,
|
|
2041
|
+
lineHeight: `${i.value}px`,
|
|
2042
|
+
background: "transparent"
|
|
2043
|
+
}
|
|
2044
|
+
}, null), a(Je, {
|
|
2045
|
+
theme: y.value,
|
|
2046
|
+
class: g.value,
|
|
2047
|
+
style: {
|
|
2048
|
+
height: `${i.value}px`,
|
|
2049
|
+
lineHeight: `${i.value}px`,
|
|
2050
|
+
width: d.value,
|
|
2051
|
+
zIndex: x.value ? 100 : 101,
|
|
2052
|
+
right: S.value
|
|
2053
|
+
}
|
|
2054
|
+
}, en(M = R()) ? M : {
|
|
2055
|
+
default: () => [M]
|
|
2056
|
+
})]));
|
|
2057
|
+
};
|
|
2058
|
+
}
|
|
2059
|
+
}), tn = /* @__PURE__ */ j({
|
|
2060
|
+
name: "BaseProLayout",
|
|
2061
|
+
inheritAttrs: !1,
|
|
2062
|
+
components: {
|
|
2063
|
+
GlobalHeader: Be,
|
|
2064
|
+
GlobalFooter: ke,
|
|
2065
|
+
SiderMenuWrapper: Re
|
|
2066
|
+
},
|
|
2067
|
+
props: Ct,
|
|
2068
|
+
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2069
|
+
setup(e, {
|
|
2070
|
+
slots: t
|
|
2071
|
+
}) {
|
|
2072
|
+
const n = me({
|
|
2073
|
+
suffixCls: "basic-layout",
|
|
2074
|
+
isPor: !0
|
|
2075
|
+
}), {
|
|
2076
|
+
wrapSSR: o,
|
|
2077
|
+
hashId: i
|
|
2078
|
+
} = te("ProLayout", [Va, ja], n), u = na(), {
|
|
2079
|
+
token: f
|
|
2080
|
+
} = fe(), c = p(() => {
|
|
2081
|
+
var y;
|
|
2082
|
+
return (y = f == null ? void 0 : f.value) == null ? void 0 : y.colorPrimary;
|
|
2083
|
+
});
|
|
2084
|
+
$t(() => {
|
|
2085
|
+
c.value && document.querySelector("html") && document.querySelector("html").style.setProperty("--gx-primary-color", c.value);
|
|
2086
|
+
});
|
|
2087
|
+
const w = p(() => e.layout === "mix" || e.layout === "side" || e.layout === "wide" || !1), v = p(() => e.layout === "wide"), O = p(() => w.value), h = p(() => e.collapsed ? e.collapsedWidth : e.siderWidth), T = p(() => (e.theme || "dark").toLocaleLowerCase().includes("dark") ? "dark" : "light"), l = p(() => (u.value === "sm" || u.value === "xs") && !e.disableMobile && !v.value), r = lt({
|
|
2088
|
+
position: "relative"
|
|
2089
|
+
});
|
|
2090
|
+
(e.isChildrenLayout || e.contentStyle && e.contentStyle.minHeight) && (r.minHeight = 0);
|
|
2091
|
+
const I = (y, g) => y.headerRender === !1 || y.pure ? null : a(Be, G(y, {
|
|
2092
|
+
matchMenuKeys: g || []
|
|
2093
|
+
}), null), k = p(() => ({
|
|
2094
|
+
...e.breadcrumb,
|
|
2095
|
+
itemRender: A(t, e, "breadcrumbRender")
|
|
2096
|
+
})), x = p(() => O.value && e.selectedKeys ? ba(e.menuData, e.selectedKeys[0]) : []);
|
|
2097
|
+
return Ma({
|
|
2098
|
+
getPrefixCls: me,
|
|
2099
|
+
...le(we(e), ["layout", "waterMark", "menuData", "openKeys", "splitMenus", "headerHeight", "selectedKeys", "disableMobile", "fixSiderbar", "fixedHeader", "waterMarkProps"].concat(Object.keys(bt))),
|
|
2100
|
+
theme: T.value,
|
|
2101
|
+
hasContentWide: v,
|
|
2102
|
+
isMobile: l,
|
|
2103
|
+
siderWidth: h,
|
|
2104
|
+
breadcrumb: k,
|
|
2105
|
+
flatMenuData: x,
|
|
2106
|
+
hasSide: w,
|
|
2107
|
+
flatMenu: O,
|
|
2108
|
+
pageHeaderRender: p(() => A(t, e, "pageHeaderRender"))
|
|
2109
|
+
}), () => {
|
|
2110
|
+
var z;
|
|
2111
|
+
const y = A(t, e, "collapsedButtonRender"), g = A(t, e, "headerContentRender"), C = A(t, e, "rightContentRender"), $ = A(t, e, "headerRender"), d = A(t, e, "footerRender"), S = A(t, e, "links"), R = A(t, e, "copyrightRender"), M = A(t, e, "extraRightDropdownRender"), L = A(t, e, "menuHeaderRender"), H = A(t, e, "menuExtraRender"), N = A(t, e, "menuContentRender"), P = A(t, e, "menuFooterRender"), W = A(t, e, "menuItemRender"), X = A(t, e, "subMenuItemRender"), U = {
|
|
2112
|
+
menuItemRender: W,
|
|
2113
|
+
subMenuItemRender: X
|
|
2114
|
+
}, Y = p(() => I({
|
|
2115
|
+
...e,
|
|
2116
|
+
...U,
|
|
2117
|
+
hasSiderMenu: w.value,
|
|
2118
|
+
menuData: e.menuData,
|
|
2119
|
+
isMobile: K(l),
|
|
2120
|
+
rightContentRender: C,
|
|
2121
|
+
extraRightDropdownRender: M,
|
|
2122
|
+
headerTitleRender: L,
|
|
2123
|
+
headerContentRender: g,
|
|
2124
|
+
headerRender: $,
|
|
2125
|
+
theme: T.value
|
|
2126
|
+
}, e.matchMenuKeys)), m = p(() => ({
|
|
2127
|
+
[`${i.value}`]: !0,
|
|
2128
|
+
[`${n}`]: !0,
|
|
2129
|
+
[`${n}-${e.layout}`]: !0
|
|
2130
|
+
})), b = p(() => v.value ? {
|
|
2131
|
+
minWidth: `${e.wideWidth}px`
|
|
2132
|
+
} : void 0), B = p(() => v.value ? {
|
|
2133
|
+
width: e.menuData.length ? `${e.wideWidth}px` : `${e.wideWidth - e.siderWidth - 20}px`,
|
|
2134
|
+
paddingTop: `${e.headerHeight + 20}px`,
|
|
2135
|
+
margin: v.value ? "0 auto" : void 0
|
|
2136
|
+
} : void 0), F = p(() => v.value ? {
|
|
2137
|
+
minHeight: "835px"
|
|
2138
|
+
} : {});
|
|
2139
|
+
return o(a(Q, null, [e.pure ? (z = t.default) == null ? void 0 : z.call(t) : a("div", {
|
|
2140
|
+
class: m.value,
|
|
2141
|
+
style: b.value
|
|
2142
|
+
}, [a(ce, {
|
|
2143
|
+
style: B.value
|
|
2144
|
+
}, {
|
|
2145
|
+
default: () => [a(Re, G(He(e, ["pure", "theme"]), {
|
|
2146
|
+
links: S,
|
|
2147
|
+
theme: T.value,
|
|
2148
|
+
isMobile: l.value,
|
|
2149
|
+
menuHeaderRender: L,
|
|
2150
|
+
menuContentRender: N,
|
|
2151
|
+
menuExtraRender: H,
|
|
2152
|
+
menuFooterRender: P,
|
|
2153
|
+
collapsedButtonRender: y
|
|
2154
|
+
}), null), a(ce, {
|
|
2155
|
+
style: r
|
|
2156
|
+
}, {
|
|
2157
|
+
default: () => [Y.value, a(Ke, G({
|
|
2158
|
+
hashId: i.value,
|
|
2159
|
+
isMobile: l.value,
|
|
2160
|
+
prefixCls: n,
|
|
2161
|
+
collapsedWidth: e.collapsedWidth,
|
|
2162
|
+
isChildrenLayout: e.isChildrenLayout,
|
|
2163
|
+
loading: e.loading,
|
|
2164
|
+
isShowTabsBar: e.showTabsBar,
|
|
2165
|
+
isFixedMultiTab: e.fixedMultiTab,
|
|
2166
|
+
siderWidth: e.siderWidth,
|
|
2167
|
+
collapsed: e.collapsed,
|
|
2168
|
+
style: e.disableContentMargin ? F.value : {
|
|
2169
|
+
...e.contentStyle,
|
|
2170
|
+
...F.value
|
|
2171
|
+
}
|
|
2172
|
+
}, le(e, ["onReloadPage", "onChangeTabs"])), {
|
|
2173
|
+
default: () => {
|
|
2174
|
+
var _;
|
|
2175
|
+
return [(_ = t.default) == null ? void 0 : _.call(t)];
|
|
2176
|
+
}
|
|
2177
|
+
}), d === !1 ? null : d ? d(e) : a(ke, {
|
|
2178
|
+
copyright: R
|
|
2179
|
+
}, null)]
|
|
2180
|
+
})]
|
|
2181
|
+
})])]));
|
|
2182
|
+
};
|
|
2183
|
+
}
|
|
2184
|
+
}), Mi = /* @__PURE__ */ j({
|
|
2185
|
+
components: {
|
|
2186
|
+
GlobalHeader: Be,
|
|
2187
|
+
GlobalFooter: ke,
|
|
2188
|
+
SiderMenuWrapper: Re
|
|
2189
|
+
},
|
|
2190
|
+
props: Ct,
|
|
2191
|
+
emits: ["update:collapsed", "update:open-keys", "update:selected-keys", "collapse", "openKeys", "reloadPage", "select", "menuHeaderClick", "menuClick", "changeTabs"],
|
|
2192
|
+
setup(e, {
|
|
2193
|
+
slots: t,
|
|
2194
|
+
emit: n
|
|
2195
|
+
}) {
|
|
2196
|
+
const o = p(() => e.theme !== void 0 ? {
|
|
2197
|
+
dark: e.theme === "realDark"
|
|
2198
|
+
} : {}), i = (c) => {
|
|
2199
|
+
n("update:collapsed", c), n("collapse", c);
|
|
2200
|
+
}, u = (c) => {
|
|
2201
|
+
n("update:open-keys", c), n("openKeys", c);
|
|
2202
|
+
}, f = (c) => {
|
|
2203
|
+
n("update:selected-keys", c), n("select", c);
|
|
2204
|
+
};
|
|
2205
|
+
return () => a(Pe, {
|
|
2206
|
+
theme: e.primaryColor ? {
|
|
2207
|
+
token: {
|
|
2208
|
+
colorPrimary: e.primaryColor
|
|
2209
|
+
}
|
|
2210
|
+
} : void 0
|
|
2211
|
+
}, {
|
|
2212
|
+
default: () => [a(Gt, G({
|
|
2213
|
+
token: e.token
|
|
2214
|
+
}, o.value), {
|
|
2215
|
+
default: () => [a(tn, G(He(e, ["onSelect", "onOpenKeys", "onCollapse"]), {
|
|
2216
|
+
onSelect: f,
|
|
2217
|
+
onOpenKeys: u,
|
|
2218
|
+
onCollapse: i
|
|
2219
|
+
}), t)]
|
|
2220
|
+
})]
|
|
2221
|
+
});
|
|
2222
|
+
}
|
|
2223
|
+
}), St = (e, t, n) => e.map((o, i) => {
|
|
2224
|
+
var u;
|
|
2225
|
+
return o.meta && (o.meta.key = n ? `${n}-${i}` : `${i}`), o.path = o.path.replace("//", "/"), o.children && o.children.length > 0 && (o.children = St(o.children, t, (u = o.meta) == null ? void 0 : u.key)), t[`${o.path}`] = o, o;
|
|
2226
|
+
}), Oi = (e) => {
|
|
2227
|
+
const t = e.find((i) => i.path === "/"), n = {}, o = St((t == null ? void 0 : t.children) || [], n);
|
|
2228
|
+
return {
|
|
2229
|
+
menuData: o,
|
|
2230
|
+
breadcrumb: n,
|
|
2231
|
+
levelMenuData: Qt(o)
|
|
2232
|
+
};
|
|
2233
|
+
}, It = [
|
|
2234
|
+
{
|
|
2235
|
+
key: "light",
|
|
2236
|
+
title: "亮色菜单风格"
|
|
2237
|
+
},
|
|
2238
|
+
{
|
|
2239
|
+
key: "dark",
|
|
2240
|
+
title: "暗色菜单风格"
|
|
2241
|
+
},
|
|
2242
|
+
{
|
|
2243
|
+
key: "realDark",
|
|
2244
|
+
title: "暗黑模式"
|
|
2245
|
+
}
|
|
2246
|
+
], Mt = [
|
|
2247
|
+
{
|
|
2248
|
+
key: "side",
|
|
2249
|
+
title: "侧边菜单布局"
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
key: "mix",
|
|
2253
|
+
title: "混合菜单布局"
|
|
2254
|
+
},
|
|
2255
|
+
{
|
|
2256
|
+
key: "wide",
|
|
2257
|
+
title: "定宽菜单布局"
|
|
2258
|
+
},
|
|
2259
|
+
{
|
|
2260
|
+
key: "simple",
|
|
2261
|
+
title: "简单菜单布局"
|
|
2262
|
+
}
|
|
2263
|
+
], an = [
|
|
2264
|
+
{
|
|
2265
|
+
key: "header",
|
|
2266
|
+
title: "顶部主题"
|
|
2267
|
+
},
|
|
2268
|
+
{
|
|
2269
|
+
key: "sider",
|
|
2270
|
+
title: "左侧主题"
|
|
2271
|
+
}
|
|
2272
|
+
], nn = (e) => ({
|
|
2273
|
+
[e.componentCls]: {
|
|
2274
|
+
[`${e.antCls}-drawer-content-wrapper`]: {
|
|
2275
|
+
transform: "translate(100%)",
|
|
2276
|
+
display: "block !important"
|
|
2277
|
+
},
|
|
2278
|
+
"&-show": {
|
|
2279
|
+
[`${e.antCls}-drawer-content-wrapper`]: {
|
|
2280
|
+
transform: "translate(0%)"
|
|
2281
|
+
}
|
|
2282
|
+
},
|
|
2283
|
+
"&-trantion-none": {
|
|
2284
|
+
[`${e.antCls}-drawer-content-wrapper`]: {
|
|
2285
|
+
transition: "none !important;"
|
|
2286
|
+
}
|
|
2287
|
+
},
|
|
2288
|
+
"&-handle": {
|
|
2289
|
+
position: "absolute",
|
|
2290
|
+
top: 240,
|
|
2291
|
+
right: 300,
|
|
2292
|
+
zIndex: 0,
|
|
2293
|
+
display: "flex",
|
|
2294
|
+
alignItems: "center",
|
|
2295
|
+
justifyContent: "center",
|
|
2296
|
+
width: "48px",
|
|
2297
|
+
height: "48px",
|
|
2298
|
+
fontSize: "16px",
|
|
2299
|
+
textAlign: "center",
|
|
2300
|
+
backgroundColor: e.colorPrimary,
|
|
2301
|
+
borderEndStartRadius: e.borderRadiusLG,
|
|
2302
|
+
borderStartStartRadius: e.borderRadiusLG,
|
|
2303
|
+
"-webkit-backdropilter": "saturate(180%) blur(20px)",
|
|
2304
|
+
backdropFilter: "saturate(180%) blur(20px)",
|
|
2305
|
+
cursor: "pointer",
|
|
2306
|
+
pointerEvents: "auto"
|
|
2307
|
+
},
|
|
2308
|
+
"&-wrapper": {
|
|
2309
|
+
position: "relative",
|
|
2310
|
+
height: `calc(100vh - ${e.marginLG * 2}px)`
|
|
2311
|
+
},
|
|
2312
|
+
"&-content": {
|
|
2313
|
+
padding: e.marginLG
|
|
2314
|
+
},
|
|
2315
|
+
"&-body-title": {
|
|
2316
|
+
margin: 0,
|
|
2317
|
+
marginBlockEnd: e.marginSM,
|
|
2318
|
+
fontSize: "14px",
|
|
2319
|
+
lineHeight: "22px",
|
|
2320
|
+
color: e.colorBgSpotlight
|
|
2321
|
+
},
|
|
2322
|
+
"&-block-checkbox": {
|
|
2323
|
+
display: "flex",
|
|
2324
|
+
minHeight: 42,
|
|
2325
|
+
gap: e.marginSM,
|
|
2326
|
+
"& &-item": {
|
|
2327
|
+
position: "relative",
|
|
2328
|
+
width: "44px",
|
|
2329
|
+
height: "36px",
|
|
2330
|
+
overflow: "hidden",
|
|
2331
|
+
borderRadius: "4px",
|
|
2332
|
+
boxShadow: "0 1px 2.5px rgba(0,0,0,.18)",
|
|
2333
|
+
cursor: "pointer",
|
|
2334
|
+
fontSize: 56,
|
|
2335
|
+
lineHeight: "56px",
|
|
2336
|
+
"&::before": {
|
|
2337
|
+
position: "absolute",
|
|
2338
|
+
insetBlockStart: 0,
|
|
2339
|
+
insetInlineStart: 0,
|
|
2340
|
+
width: "33%",
|
|
2341
|
+
height: "100%",
|
|
2342
|
+
content: "''"
|
|
2343
|
+
},
|
|
2344
|
+
"&::after": {
|
|
2345
|
+
position: "absolute",
|
|
2346
|
+
insetBlockStart: 0,
|
|
2347
|
+
insetInlineStart: 0,
|
|
2348
|
+
width: "100%",
|
|
2349
|
+
height: "25%",
|
|
2350
|
+
content: "''"
|
|
2351
|
+
},
|
|
2352
|
+
"&-dark": {
|
|
2353
|
+
backgroundColor: "rgba(0, 21, 41, 0.85)",
|
|
2354
|
+
"&::before": { backgroundColor: "rgba(0, 0, 0, 0.65)" },
|
|
2355
|
+
"&::after": { backgroundColor: "rgba(0, 0, 0, 0.85)" }
|
|
2356
|
+
},
|
|
2357
|
+
"&-light": {
|
|
2358
|
+
backgroundColor: "#f7f8fa",
|
|
2359
|
+
"&::before": { backgroundColor: "#fff" },
|
|
2360
|
+
"&::after": { backgroundColor: "#fff" }
|
|
2361
|
+
},
|
|
2362
|
+
"&-realDark": {
|
|
2363
|
+
backgroundColor: "rgba(0, 21, 41, 0.85)",
|
|
2364
|
+
"&::before": { backgroundColor: "rgba(0, 0, 0, 0.65)" },
|
|
2365
|
+
"&::after": { backgroundColor: "rgba(0, 0, 0, 0.85)" }
|
|
2366
|
+
},
|
|
2367
|
+
"&-dark,&-side": {
|
|
2368
|
+
backgroundColor: "#f7f8fa",
|
|
2369
|
+
"&::before": { zIndex: "1", backgroundColor: "#001529" },
|
|
2370
|
+
"&::after": { backgroundColor: "#fff" }
|
|
2371
|
+
},
|
|
2372
|
+
"&-wide": {
|
|
2373
|
+
backgroundColor: "#f7f8fa",
|
|
2374
|
+
"&::before": { backgroundColor: "#fff", left: "15%", width: "15%", height: "calc(100% - 38%)", top: "38%" },
|
|
2375
|
+
"&::after": { backgroundColor: "#fff" },
|
|
2376
|
+
"&-content": {
|
|
2377
|
+
position: "absolute",
|
|
2378
|
+
height: "calc(100% - 38%)",
|
|
2379
|
+
top: "38%",
|
|
2380
|
+
right: "15%",
|
|
2381
|
+
width: "calc(100% - 15% - 15% - 10% - 15%)",
|
|
2382
|
+
backgroundColor: "#fff"
|
|
2383
|
+
}
|
|
2384
|
+
},
|
|
2385
|
+
"&-simple": {
|
|
2386
|
+
backgroundColor: "#f7f8fa",
|
|
2387
|
+
"&::before": { backgroundColor: "#fff" },
|
|
2388
|
+
"&::after": { display: "none" }
|
|
2389
|
+
},
|
|
2390
|
+
"&-mix": {
|
|
2391
|
+
backgroundColor: "#f7f8fa",
|
|
2392
|
+
"&::before": { backgroundColor: "#fff" },
|
|
2393
|
+
"&::after": { backgroundColor: "#001529" }
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
"& &-selectIcon": {
|
|
2397
|
+
position: "absolute",
|
|
2398
|
+
insetInlineEnd: "6px",
|
|
2399
|
+
bottom: "4px",
|
|
2400
|
+
color: e.colorPrimary,
|
|
2401
|
+
fontWeight: "bold",
|
|
2402
|
+
fontSize: "14px",
|
|
2403
|
+
pointerEvents: "none",
|
|
2404
|
+
".action": { color: e.colorPrimary }
|
|
2405
|
+
},
|
|
2406
|
+
"& &-icon": {
|
|
2407
|
+
fontSize: 56,
|
|
2408
|
+
lineHeight: "56px"
|
|
2409
|
+
}
|
|
2410
|
+
},
|
|
2411
|
+
"&-theme-color": {
|
|
2412
|
+
marginBlockStart: "16px",
|
|
2413
|
+
display: "flex",
|
|
2414
|
+
gap: 8,
|
|
2415
|
+
"&-label": {
|
|
2416
|
+
marginBlock: "16px"
|
|
2417
|
+
},
|
|
2418
|
+
"&-block": {
|
|
2419
|
+
display: "flex",
|
|
2420
|
+
alignItems: "center",
|
|
2421
|
+
justifyContent: "center",
|
|
2422
|
+
width: "20px",
|
|
2423
|
+
height: "20px",
|
|
2424
|
+
color: "#fff",
|
|
2425
|
+
fontWeight: "bold",
|
|
2426
|
+
textAlign: "center",
|
|
2427
|
+
borderRadius: "2px",
|
|
2428
|
+
cursor: "pointer"
|
|
2429
|
+
}
|
|
2430
|
+
},
|
|
2431
|
+
"&-list": {
|
|
2432
|
+
[`&${e.antCls}-list-sm ${e.antCls}-list-item`]: {
|
|
2433
|
+
paddingInline: 0
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
}), Qe = /* @__PURE__ */ j({
|
|
2438
|
+
name: "BlockCheckbox",
|
|
2439
|
+
props: {
|
|
2440
|
+
value: D.string,
|
|
2441
|
+
list: {
|
|
2442
|
+
type: Array,
|
|
2443
|
+
default: () => []
|
|
2444
|
+
},
|
|
2445
|
+
configType: D.string,
|
|
2446
|
+
prefixCls: D.string,
|
|
2447
|
+
hashId: D.string,
|
|
2448
|
+
onChange: Function
|
|
2449
|
+
},
|
|
2450
|
+
setup(e) {
|
|
2451
|
+
return () => {
|
|
2452
|
+
const t = `${e.prefixCls}-block-checkbox`;
|
|
2453
|
+
return a("div", {
|
|
2454
|
+
class: [t, e.hashId]
|
|
2455
|
+
}, [e.list.map((n) => a(Se, {
|
|
2456
|
+
title: n.title,
|
|
2457
|
+
key: n.key
|
|
2458
|
+
}, {
|
|
2459
|
+
default: () => [a("div", {
|
|
2460
|
+
class: ut(e.hashId, `${t}-item`, `${t}-item-${n.key}`, `${t}-${e.configType}-item`),
|
|
2461
|
+
onClick: () => {
|
|
2462
|
+
var o;
|
|
2463
|
+
return (o = e.onChange) == null ? void 0 : o.call(e, n.key);
|
|
2464
|
+
}
|
|
2465
|
+
}, [n.key === "wide" && a("div", {
|
|
2466
|
+
class: [`${t}-item-${n.key}-content`, e.hashId]
|
|
2467
|
+
}, null), a(dt, {
|
|
2468
|
+
class: `${t}-selectIcon ${e.hashId}`.trim(),
|
|
2469
|
+
style: {
|
|
2470
|
+
display: e.value === n.key ? "block" : "none"
|
|
2471
|
+
}
|
|
2472
|
+
}, null), n != null && n.icon ? a("div", {
|
|
2473
|
+
class: `${t}-icon ${e.hashId}`.trim()
|
|
2474
|
+
}, [n.icon]) : null])]
|
|
2475
|
+
}))]);
|
|
2476
|
+
};
|
|
2477
|
+
}
|
|
2478
|
+
}), on = /* @__PURE__ */ j({
|
|
2479
|
+
name: "ThemeColor",
|
|
2480
|
+
inheritAttrs: !1,
|
|
2481
|
+
props: {
|
|
2482
|
+
settingValue: Object,
|
|
2483
|
+
colorList: {
|
|
2484
|
+
type: Array,
|
|
2485
|
+
default: () => []
|
|
2486
|
+
},
|
|
2487
|
+
prefixCls: D.string,
|
|
2488
|
+
hashId: D.string,
|
|
2489
|
+
onChange: Function
|
|
2490
|
+
},
|
|
2491
|
+
setup(e) {
|
|
2492
|
+
return () => {
|
|
2493
|
+
var n;
|
|
2494
|
+
const t = `${e.prefixCls}-theme-color`;
|
|
2495
|
+
return a(Q, null, [a("div", {
|
|
2496
|
+
class: `${t} ${e.hashId}`.trim()
|
|
2497
|
+
}, [(n = e.colorList) == null ? void 0 : n.map(({
|
|
2498
|
+
key: o,
|
|
2499
|
+
color: i,
|
|
2500
|
+
title: u
|
|
2501
|
+
}) => o ? a(Se, {
|
|
2502
|
+
key: i,
|
|
2503
|
+
title: u
|
|
2504
|
+
}, {
|
|
2505
|
+
default: () => {
|
|
2506
|
+
var f, c;
|
|
2507
|
+
return [a("div", {
|
|
2508
|
+
class: [`${t}-block ${e.hashId}`.trim(), ((f = e.settingValue) == null ? void 0 : f.primaryColor) === i ? `${t}-block-checked` : ""],
|
|
2509
|
+
style: {
|
|
2510
|
+
backgroundColor: i
|
|
2511
|
+
},
|
|
2512
|
+
onClick: () => e.onChange && e.onChange(i)
|
|
2513
|
+
}, [((c = e.settingValue) == null ? void 0 : c.primaryColor) === i && a(dt, null, null)])];
|
|
2514
|
+
}
|
|
2515
|
+
}) : null)])]);
|
|
2516
|
+
};
|
|
2517
|
+
}
|
|
2518
|
+
}), he = /* @__PURE__ */ j({
|
|
2519
|
+
name: "RegionalChange",
|
|
2520
|
+
props: {
|
|
2521
|
+
label: D.string,
|
|
2522
|
+
value: D.bool,
|
|
2523
|
+
prefixCls: D.string,
|
|
2524
|
+
valueKey: String,
|
|
2525
|
+
hashId: D.string,
|
|
2526
|
+
disabled: D.bool,
|
|
2527
|
+
onChange: Function
|
|
2528
|
+
},
|
|
2529
|
+
setup(e) {
|
|
2530
|
+
return () => a(oe, {
|
|
2531
|
+
class: `${e.prefixCls}-list ${e.hashId}`.trim(),
|
|
2532
|
+
split: !1,
|
|
2533
|
+
size: "small",
|
|
2534
|
+
renderItem: ({
|
|
2535
|
+
item: t
|
|
2536
|
+
}) => a(Se, {
|
|
2537
|
+
title: t.disabled ? t.disabledReason : "",
|
|
2538
|
+
placement: "left"
|
|
2539
|
+
}, {
|
|
2540
|
+
default: () => [a(oe.Item, {
|
|
2541
|
+
actions: [t.action]
|
|
2542
|
+
}, {
|
|
2543
|
+
default: () => [a("span", {
|
|
2544
|
+
style: {
|
|
2545
|
+
opacity: t.disabled ? 0.5 : 1
|
|
2546
|
+
}
|
|
2547
|
+
}, [t.title])]
|
|
2548
|
+
})]
|
|
2549
|
+
}),
|
|
2550
|
+
dataSource: [{
|
|
2551
|
+
title: e.label,
|
|
2552
|
+
action: a(rt, {
|
|
2553
|
+
size: "small",
|
|
2554
|
+
disabled: e.disabled,
|
|
2555
|
+
checked: !!e.value,
|
|
2556
|
+
onChange: (t) => {
|
|
2557
|
+
e.onChange && e.onChange(e.valueKey, t);
|
|
2558
|
+
}
|
|
2559
|
+
}, null)
|
|
2560
|
+
}]
|
|
2561
|
+
}, null);
|
|
2562
|
+
}
|
|
2563
|
+
}), ln = (e) => ({
|
|
2564
|
+
[e.componentCls]: {
|
|
2565
|
+
padding: e.marginLG,
|
|
2566
|
+
"&-title": {
|
|
2567
|
+
display: "flex",
|
|
2568
|
+
alignItems: "center",
|
|
2569
|
+
margin: 0,
|
|
2570
|
+
gap: 10,
|
|
2571
|
+
marginBlockEnd: e.marginSM,
|
|
2572
|
+
fontSize: "14px",
|
|
2573
|
+
lineHeight: "22px",
|
|
2574
|
+
color: e.colorBgSpotlight
|
|
2575
|
+
},
|
|
2576
|
+
"&-sub-title": {
|
|
2577
|
+
margin: 0,
|
|
2578
|
+
display: "flex",
|
|
2579
|
+
alignItems: "center",
|
|
2580
|
+
fontSize: 12,
|
|
2581
|
+
fontWeight: "normal",
|
|
2582
|
+
color: e.colorTextDescription
|
|
2583
|
+
},
|
|
2584
|
+
"&-list": {
|
|
2585
|
+
[`&${e.antCls}-list-sm ${e.antCls}-list-item`]: {
|
|
2586
|
+
paddingInline: 0,
|
|
2587
|
+
[`${e.antCls}-list-item-action`]: {
|
|
2588
|
+
marginInlineStart: 10
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
});
|
|
2594
|
+
function rn(e) {
|
|
2595
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
2596
|
+
}
|
|
2597
|
+
const sn = /* @__PURE__ */ j({
|
|
2598
|
+
name: "ThemeEditor",
|
|
2599
|
+
props: {
|
|
2600
|
+
settingValue: Object,
|
|
2601
|
+
onChange: Function
|
|
2602
|
+
},
|
|
2603
|
+
setup(e) {
|
|
2604
|
+
const {
|
|
2605
|
+
getPrefixCls: t
|
|
2606
|
+
} = ee(), [n, o] = pe("header"), i = t({
|
|
2607
|
+
suffixCls: "theme-editor",
|
|
2608
|
+
isPor: !0
|
|
2609
|
+
}), {
|
|
2610
|
+
wrapSSR: u,
|
|
2611
|
+
hashId: f
|
|
2612
|
+
} = te("ProThemeEditor", [ln], i), {
|
|
2613
|
+
token: c
|
|
2614
|
+
} = fe(), w = p(() => {
|
|
2615
|
+
var l;
|
|
2616
|
+
return (l = c.value) == null ? void 0 : l.layout;
|
|
2617
|
+
}), v = p(() => {
|
|
2618
|
+
var l, r, I, k, x, y, g, C, $, d, S, R, M, L, H, N, P, W, X, U, Y, m, b, B, F;
|
|
2619
|
+
return [{
|
|
2620
|
+
key: "colorBgMenu",
|
|
2621
|
+
title: "全部背景",
|
|
2622
|
+
disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["mix", "wide"].includes((r = e.settingValue) == null ? void 0 : r.layout)
|
|
2623
|
+
}, {
|
|
2624
|
+
key: "colorDarkBgMenu",
|
|
2625
|
+
title: "全部背景",
|
|
2626
|
+
disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((k = e.settingValue) == null ? void 0 : k.theme) === "dark" && ["side", "simple"].includes((x = e.settingValue) == null ? void 0 : x.layout)
|
|
2627
|
+
}, {
|
|
2628
|
+
key: "colorSubItemBg",
|
|
2629
|
+
title: "子菜单背景",
|
|
2630
|
+
disabled: !0
|
|
2631
|
+
}, {
|
|
2632
|
+
key: "colorDarkSubItemBg",
|
|
2633
|
+
title: "子菜单背景",
|
|
2634
|
+
disabled: !0
|
|
2635
|
+
}, {
|
|
2636
|
+
key: "colorBgMenuItemSelected",
|
|
2637
|
+
title: "菜单选中背景",
|
|
2638
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["mix", "wide"].includes((g = e.settingValue) == null ? void 0 : g.layout)
|
|
2639
|
+
}, {
|
|
2640
|
+
key: "colorDarkBgMenuItemSelected",
|
|
2641
|
+
title: "菜单选中背景",
|
|
2642
|
+
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["side", "simple"].includes((d = e.settingValue) == null ? void 0 : d.layout)
|
|
2643
|
+
}, {
|
|
2644
|
+
key: "colorTextMenu",
|
|
2645
|
+
title: "菜单文字颜色",
|
|
2646
|
+
disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ["mix", "wide"].includes((R = e.settingValue) == null ? void 0 : R.layout)
|
|
2647
|
+
}, {
|
|
2648
|
+
key: "colorDarkTextMenu",
|
|
2649
|
+
title: "菜单文字颜色",
|
|
2650
|
+
disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "light" || ((L = e.settingValue) == null ? void 0 : L.theme) === "dark" && ["side", "simple"].includes((H = e.settingValue) == null ? void 0 : H.layout)
|
|
2651
|
+
}, {
|
|
2652
|
+
key: "colorTextMenuHover",
|
|
2653
|
+
title: "菜单文字移入颜色",
|
|
2654
|
+
disabled: ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((P = e.settingValue) == null ? void 0 : P.layout)
|
|
2655
|
+
}, {
|
|
2656
|
+
key: "colorDarkTextMenuHover",
|
|
2657
|
+
title: "菜单文字移入颜色",
|
|
2658
|
+
disabled: ((W = e.settingValue) == null ? void 0 : W.theme) === "light" || ((X = e.settingValue) == null ? void 0 : X.theme) === "dark" && ["side", "simple"].includes((U = e.settingValue) == null ? void 0 : U.layout)
|
|
2659
|
+
}, {
|
|
2660
|
+
key: "colorTextMenuSelected",
|
|
2661
|
+
title: "菜单文字选中颜色",
|
|
2662
|
+
disabled: ((Y = e.settingValue) == null ? void 0 : Y.theme) === "dark" && ["mix", "wide"].includes((m = e.settingValue) == null ? void 0 : m.layout)
|
|
2663
|
+
}, {
|
|
2664
|
+
key: "colorDarkTextMenuSelected",
|
|
2665
|
+
title: "菜单文字选中颜色",
|
|
2666
|
+
disabled: ((b = e.settingValue) == null ? void 0 : b.theme) === "light" || ((B = e.settingValue) == null ? void 0 : B.theme) === "dark" && ["side", "simple"].includes((F = e.settingValue) == null ? void 0 : F.layout)
|
|
2667
|
+
}];
|
|
2668
|
+
}), O = p(() => {
|
|
2669
|
+
var l, r, I, k, x, y, g, C, $, d, S, R, M, L, H, N, P, W, X, U, Y, m, b, B, F, z, _, Z, E, J, Ue, Ee;
|
|
2670
|
+
return [{
|
|
2671
|
+
key: "colorBgMenu",
|
|
2672
|
+
title: "全部背景",
|
|
2673
|
+
disabled: ((l = e.settingValue) == null ? void 0 : l.theme) === "dark" && ["side", "simple"].includes((r = e.settingValue) == null ? void 0 : r.layout)
|
|
2674
|
+
}, {
|
|
2675
|
+
key: "colorDarkBgMenu",
|
|
2676
|
+
title: "全部背景",
|
|
2677
|
+
disabled: ((I = e.settingValue) == null ? void 0 : I.theme) === "light" || ((k = e.settingValue) == null ? void 0 : k.theme) === "dark" && ["mix", "wide"].includes((x = e.settingValue) == null ? void 0 : x.layout)
|
|
2678
|
+
}, {
|
|
2679
|
+
key: "colorSubItemBg",
|
|
2680
|
+
title: "子菜单背景",
|
|
2681
|
+
disabled: ((y = e.settingValue) == null ? void 0 : y.theme) === "dark" && ["side", "simple"].includes((g = e.settingValue) == null ? void 0 : g.layout)
|
|
2682
|
+
}, {
|
|
2683
|
+
key: "colorDarkSubItemBg",
|
|
2684
|
+
title: "子菜单背景",
|
|
2685
|
+
disabled: ((C = e.settingValue) == null ? void 0 : C.theme) === "light" || (($ = e.settingValue) == null ? void 0 : $.theme) === "dark" && ["mix", "wide"].includes((d = e.settingValue) == null ? void 0 : d.layout)
|
|
2686
|
+
}, {
|
|
2687
|
+
key: "colorBgMenuItemHover",
|
|
2688
|
+
title: "菜单移入背景",
|
|
2689
|
+
disabled: ((S = e.settingValue) == null ? void 0 : S.theme) === "dark" && ((R = e.settingValue) == null ? void 0 : R.layout) !== "mix"
|
|
2690
|
+
}, {
|
|
2691
|
+
key: "colorBgMenuItemSelected",
|
|
2692
|
+
title: "菜单选中背景",
|
|
2693
|
+
disabled: ((M = e.settingValue) == null ? void 0 : M.theme) === "dark" && ((L = e.settingValue) == null ? void 0 : L.layout) !== "mix"
|
|
2694
|
+
}, {
|
|
2695
|
+
key: "colorDarkBgMenuItemSelected",
|
|
2696
|
+
title: "菜单选中背景",
|
|
2697
|
+
disabled: ((H = e.settingValue) == null ? void 0 : H.theme) === "light" || ((N = e.settingValue) == null ? void 0 : N.theme) === "dark" && ["mix", "wide"].includes((P = e.settingValue) == null ? void 0 : P.layout)
|
|
2698
|
+
}, {
|
|
2699
|
+
key: "colorTextMenu",
|
|
2700
|
+
title: "菜单文字颜色",
|
|
2701
|
+
disabled: ((W = e.settingValue) == null ? void 0 : W.theme) === "dark" && ((X = e.settingValue) == null ? void 0 : X.layout) !== "mix"
|
|
2702
|
+
}, {
|
|
2703
|
+
key: "colorDarkTextMenu",
|
|
2704
|
+
title: "菜单文字颜色",
|
|
2705
|
+
disabled: ((U = e.settingValue) == null ? void 0 : U.theme) === "light" || ((Y = e.settingValue) == null ? void 0 : Y.theme) === "dark" && ["mix", "wide"].includes((m = e.settingValue) == null ? void 0 : m.layout)
|
|
2706
|
+
}, {
|
|
2707
|
+
key: "colorTextMenuHover",
|
|
2708
|
+
title: "菜单文字移入颜色",
|
|
2709
|
+
disabled: ((b = e.settingValue) == null ? void 0 : b.theme) === "dark" && ((B = e.settingValue) == null ? void 0 : B.layout) !== "mix"
|
|
2710
|
+
}, {
|
|
2711
|
+
key: "colorDarkTextMenuHover",
|
|
2712
|
+
title: "菜单文字移入颜色",
|
|
2713
|
+
disabled: ((F = e.settingValue) == null ? void 0 : F.theme) === "light" || ((z = e.settingValue) == null ? void 0 : z.theme) === "dark" && ["mix", "wide"].includes((_ = e.settingValue) == null ? void 0 : _.layout)
|
|
2714
|
+
}, {
|
|
2715
|
+
key: "colorTextMenuSelected",
|
|
2716
|
+
title: "菜单文字选中颜色",
|
|
2717
|
+
disabled: ((Z = e.settingValue) == null ? void 0 : Z.theme) === "dark" && ((E = e.settingValue) == null ? void 0 : E.layout) !== "mix"
|
|
2718
|
+
}, {
|
|
2719
|
+
key: "colorDarkTextMenuSelected",
|
|
2720
|
+
title: "菜单文字选中颜色",
|
|
2721
|
+
disabled: ((J = e.settingValue) == null ? void 0 : J.theme) === "light" || ((Ue = e.settingValue) == null ? void 0 : Ue.theme) === "dark" && ["mix", "wide"].includes((Ee = e.settingValue) == null ? void 0 : Ee.layout)
|
|
2722
|
+
}];
|
|
2723
|
+
}), h = p(() => n.value === "header" ? v.value : n.value === "sider" ? O.value : []), T = (l) => {
|
|
2724
|
+
var r, I;
|
|
2725
|
+
return (I = (r = w.value) == null ? void 0 : r[n.value]) == null ? void 0 : I[l];
|
|
2726
|
+
};
|
|
2727
|
+
return () => {
|
|
2728
|
+
var r, I, k;
|
|
2729
|
+
let l;
|
|
2730
|
+
return u(a("div", {
|
|
2731
|
+
class: [i, f.value]
|
|
2732
|
+
}, [a("h3", {
|
|
2733
|
+
class: [`${i}-title`, f.value]
|
|
2734
|
+
}, [ae("主题编辑器"), a("div", {
|
|
2735
|
+
class: [`${i}-sub-title`, f.value]
|
|
2736
|
+
}, [a("span", null, [(r = It.find((x) => {
|
|
2737
|
+
var y;
|
|
2738
|
+
return x.key === ((y = e.settingValue) == null ? void 0 : y.theme);
|
|
2739
|
+
})) == null ? void 0 : r.title]), a("span", {
|
|
2740
|
+
style: {
|
|
2741
|
+
marginInline: "8px"
|
|
2742
|
+
}
|
|
2743
|
+
}, [ae("/")]), a("span", null, [(I = Mt.find((x) => {
|
|
2744
|
+
var y;
|
|
2745
|
+
return x.key === ((y = e.settingValue) == null ? void 0 : y.layout);
|
|
2746
|
+
})) == null ? void 0 : I.title])])]), a("div", {
|
|
2747
|
+
class: [`${i}-content`, f.value]
|
|
2748
|
+
}, [a(oe, {
|
|
2749
|
+
class: `${i}-list ${f.value}`.trim(),
|
|
2750
|
+
split: !1,
|
|
2751
|
+
size: "small",
|
|
2752
|
+
renderItem: ({
|
|
2753
|
+
item: x
|
|
2754
|
+
}) => a(oe.Item, {
|
|
2755
|
+
actions: [x.action]
|
|
2756
|
+
}, {
|
|
2757
|
+
default: () => [a("span", {
|
|
2758
|
+
style: {
|
|
2759
|
+
opacity: x.disabled ? 0.5 : 1
|
|
2760
|
+
}
|
|
2761
|
+
}, [x.title])]
|
|
2762
|
+
}),
|
|
2763
|
+
dataSource: [{
|
|
2764
|
+
title: "自定义主题色",
|
|
2765
|
+
action: a(_e, {
|
|
2766
|
+
value: (k = e.settingValue) == null ? void 0 : k.primaryColor,
|
|
2767
|
+
actions: ["confirm"],
|
|
2768
|
+
modes: ["rgb"],
|
|
2769
|
+
size: "small",
|
|
2770
|
+
onConfirm: (x) => e.onChange && e.onChange(x, "primaryColor")
|
|
2771
|
+
}, null)
|
|
2772
|
+
}]
|
|
2773
|
+
}, null), a(Fe, {
|
|
2774
|
+
activeKey: n.value,
|
|
2775
|
+
onChange: o
|
|
2776
|
+
}, rn(l = an.map((x) => a(Dt, {
|
|
2777
|
+
key: x.key,
|
|
2778
|
+
tab: x.title
|
|
2779
|
+
}, {
|
|
2780
|
+
default: () => [a(oe, {
|
|
2781
|
+
class: `${i}-list ${f.value}`.trim(),
|
|
2782
|
+
split: !1,
|
|
2783
|
+
size: "small",
|
|
2784
|
+
renderItem: ({
|
|
2785
|
+
item: y
|
|
2786
|
+
}) => a(oe.Item, {
|
|
2787
|
+
actions: [y.action]
|
|
2788
|
+
}, {
|
|
2789
|
+
default: () => [a("span", {
|
|
2790
|
+
style: {
|
|
2791
|
+
opacity: y.disabled ? 0.5 : 1
|
|
2792
|
+
}
|
|
2793
|
+
}, [y.title])]
|
|
2794
|
+
}),
|
|
2795
|
+
dataSource: h.value.filter((y) => !y.disabled).map((y) => ({
|
|
2796
|
+
...y,
|
|
2797
|
+
action: a(_e, {
|
|
2798
|
+
value: T(y.key),
|
|
2799
|
+
actions: ["confirm"],
|
|
2800
|
+
modes: ["rgb"],
|
|
2801
|
+
size: "small",
|
|
2802
|
+
onConfirm: (g) => e.onChange && e.onChange(g, n.value, y.key)
|
|
2803
|
+
}, null)
|
|
2804
|
+
}))
|
|
2805
|
+
}, null)]
|
|
2806
|
+
}))) ? l : {
|
|
2807
|
+
default: () => [l]
|
|
2808
|
+
})])]));
|
|
2809
|
+
};
|
|
2810
|
+
}
|
|
2811
|
+
}), dn = (e) => ({
|
|
2812
|
+
[e.componentCls]: {
|
|
2813
|
+
padding: e.marginLG,
|
|
2814
|
+
"&-title": {
|
|
2815
|
+
display: "flex",
|
|
2816
|
+
alignItems: "center",
|
|
2817
|
+
margin: 0,
|
|
2818
|
+
gap: 10,
|
|
2819
|
+
marginBlockEnd: e.marginSM,
|
|
2820
|
+
fontSize: "14px",
|
|
2821
|
+
lineHeight: "22px",
|
|
2822
|
+
color: e.colorBgSpotlight
|
|
2823
|
+
},
|
|
2824
|
+
"&-sub-title": {
|
|
2825
|
+
margin: 0,
|
|
2826
|
+
display: "flex",
|
|
2827
|
+
alignItems: "center",
|
|
2828
|
+
fontSize: 12,
|
|
2829
|
+
fontWeight: "normal",
|
|
2830
|
+
color: e.colorTextDescription
|
|
2831
|
+
},
|
|
2832
|
+
"&-list": {
|
|
2833
|
+
[`&${e.antCls}-list-sm ${e.antCls}-list-item`]: {
|
|
2834
|
+
paddingInline: 0,
|
|
2835
|
+
[`${e.antCls}-list-item-action`]: {
|
|
2836
|
+
marginInlineStart: 10
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2841
|
+
});
|
|
2842
|
+
function et(e) {
|
|
2843
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ie(e);
|
|
2844
|
+
}
|
|
2845
|
+
const {
|
|
2846
|
+
preset: tt
|
|
2847
|
+
} = Ve, un = /* @__PURE__ */ j({
|
|
2848
|
+
name: "OthersChange",
|
|
2849
|
+
props: {
|
|
2850
|
+
prefixCls: D.string,
|
|
2851
|
+
settingValue: Object,
|
|
2852
|
+
onChange: Function
|
|
2853
|
+
},
|
|
2854
|
+
setup(e) {
|
|
2855
|
+
const t = me({
|
|
2856
|
+
suffixCls: "others",
|
|
2857
|
+
isPor: !0
|
|
2858
|
+
}), {
|
|
2859
|
+
wrapSSR: n,
|
|
2860
|
+
hashId: o
|
|
2861
|
+
} = te("SettingsDrawOthers", [dn], t);
|
|
2862
|
+
return () => {
|
|
2863
|
+
var u, f, c, w, v, O, h, T, l, r, I, k, x, y;
|
|
2864
|
+
let i;
|
|
2865
|
+
return n(a("div", {
|
|
2866
|
+
class: [t, o.value]
|
|
2867
|
+
}, [a("h3", {
|
|
2868
|
+
class: [`${t}-title`, o.value]
|
|
2869
|
+
}, [ae("页面动画设置")]), a(oe, {
|
|
2870
|
+
class: `${t}-list ${o.value}`.trim(),
|
|
2871
|
+
split: !1,
|
|
2872
|
+
size: "small",
|
|
2873
|
+
renderItem: ({
|
|
2874
|
+
item: g
|
|
2875
|
+
}) => a(Se, {
|
|
2876
|
+
title: g.disabled ? g.disabledReason : "",
|
|
2877
|
+
placement: "left"
|
|
2878
|
+
}, {
|
|
2879
|
+
default: () => [a(oe.Item, {
|
|
2880
|
+
actions: [g.action]
|
|
2881
|
+
}, {
|
|
2882
|
+
default: () => [a("span", {
|
|
2883
|
+
style: {
|
|
2884
|
+
opacity: g.disabled ? 0.5 : 1
|
|
2885
|
+
}
|
|
2886
|
+
}, [g.title])]
|
|
2887
|
+
})]
|
|
2888
|
+
}),
|
|
2889
|
+
dataSource: [{
|
|
2890
|
+
title: "禁用动画",
|
|
2891
|
+
action: a(rt, {
|
|
2892
|
+
checked: !((f = (u = e.settingValue) == null ? void 0 : u.animate) != null && f.disabled),
|
|
2893
|
+
size: "small",
|
|
2894
|
+
onChange: (g) => {
|
|
2895
|
+
var C;
|
|
2896
|
+
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "disabled", !g);
|
|
2897
|
+
}
|
|
2898
|
+
}, null)
|
|
2899
|
+
}, {
|
|
2900
|
+
title: "动画效果",
|
|
2901
|
+
disabled: (w = (c = e.settingValue) == null ? void 0 : c.animate) == null ? void 0 : w.disabled,
|
|
2902
|
+
action: a(ge, {
|
|
2903
|
+
value: (O = (v = e.settingValue) == null ? void 0 : v.animate) == null ? void 0 : O.name,
|
|
2904
|
+
style: {
|
|
2905
|
+
width: "100px"
|
|
2906
|
+
},
|
|
2907
|
+
size: "small",
|
|
2908
|
+
disabled: (T = (h = e.settingValue) == null ? void 0 : h.animate) == null ? void 0 : T.disabled,
|
|
2909
|
+
getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
|
|
2910
|
+
onChange: (g) => {
|
|
2911
|
+
var C;
|
|
2912
|
+
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "name", g);
|
|
2913
|
+
}
|
|
2914
|
+
}, et(i = tt.map((g) => a(ge.Option, {
|
|
2915
|
+
value: g.name
|
|
2916
|
+
}, {
|
|
2917
|
+
default: () => [g.alias]
|
|
2918
|
+
}))) ? i : {
|
|
2919
|
+
default: () => [i]
|
|
2920
|
+
})
|
|
2921
|
+
}, {
|
|
2922
|
+
title: "动画方向",
|
|
2923
|
+
disabled: (r = (l = e.settingValue) == null ? void 0 : l.animate) == null ? void 0 : r.disabled,
|
|
2924
|
+
action: a(ge, {
|
|
2925
|
+
value: (k = (I = e.settingValue) == null ? void 0 : I.animate) == null ? void 0 : k.direction,
|
|
2926
|
+
style: {
|
|
2927
|
+
width: "100px"
|
|
2928
|
+
},
|
|
2929
|
+
size: "small",
|
|
2930
|
+
dropdownStyle: {
|
|
2931
|
+
minWidth: "120px"
|
|
2932
|
+
},
|
|
2933
|
+
disabled: (y = (x = e.settingValue) == null ? void 0 : x.animate) == null ? void 0 : y.disabled,
|
|
2934
|
+
getPopupContainer: (g) => g && g.parentNode ? g.parentNode : g,
|
|
2935
|
+
onChange: (g) => {
|
|
2936
|
+
var C;
|
|
2937
|
+
return (C = e.onChange) == null ? void 0 : C.call(e, "animate", "direction", g);
|
|
2938
|
+
}
|
|
2939
|
+
}, {
|
|
2940
|
+
default: () => {
|
|
2941
|
+
var g;
|
|
2942
|
+
return [(g = tt.find((C) => {
|
|
2943
|
+
var $, d;
|
|
2944
|
+
return C.name === ((d = ($ = e.settingValue) == null ? void 0 : $.animate) == null ? void 0 : d.name);
|
|
2945
|
+
})) == null ? void 0 : g.directions.map((C) => a(ge.Option, {
|
|
2946
|
+
value: C
|
|
2947
|
+
}, et(C) ? C : {
|
|
2948
|
+
default: () => [C]
|
|
2949
|
+
}))];
|
|
2950
|
+
}
|
|
2951
|
+
})
|
|
2952
|
+
}]
|
|
2953
|
+
}, null)]));
|
|
2954
|
+
};
|
|
2955
|
+
}
|
|
2956
|
+
}), {
|
|
2957
|
+
preset: cn
|
|
2958
|
+
} = Ve, $e = Object.keys(V).filter((e) => e !== "title"), at = {
|
|
2959
|
+
color: "#fff",
|
|
2960
|
+
fontSize: 20
|
|
2961
|
+
}, mn = [{
|
|
2962
|
+
label: "fixedHeader",
|
|
2963
|
+
title: "固定 Header"
|
|
2964
|
+
}, {
|
|
2965
|
+
label: "fixSiderbar",
|
|
2966
|
+
title: "固定侧边菜单"
|
|
2967
|
+
}, {
|
|
2968
|
+
label: "splitMenus",
|
|
2969
|
+
title: "自动分割菜单"
|
|
2970
|
+
}], fn = [{
|
|
2971
|
+
label: "showTabsBar",
|
|
2972
|
+
title: "多标签"
|
|
2973
|
+
}, {
|
|
2974
|
+
label: "fixedMultiTab",
|
|
2975
|
+
title: "固定多标签"
|
|
2976
|
+
}], nt = (e) => ta() ? {
|
|
2977
|
+
...le(V, $e),
|
|
2978
|
+
...e || {}
|
|
2979
|
+
} : ze(V), ye = (e, {
|
|
2980
|
+
slots: t
|
|
2981
|
+
}) => {
|
|
2982
|
+
var n;
|
|
2983
|
+
return a("div", {
|
|
2984
|
+
style: {
|
|
2985
|
+
marginBottom: "24px"
|
|
2986
|
+
}
|
|
2987
|
+
}, [a("h3", {
|
|
2988
|
+
class: `${e.prefixCls}-body-title ${e.hashId}`.trim()
|
|
2989
|
+
}, [e.title]), (n = t.default) == null ? void 0 : n.call(t)]);
|
|
2990
|
+
}, Ri = /* @__PURE__ */ j({
|
|
2991
|
+
name: "SettingDrawer",
|
|
2992
|
+
props: {
|
|
2993
|
+
themeOnly: Boolean,
|
|
2994
|
+
hideHintAlert: Boolean,
|
|
2995
|
+
hideCopyButton: Boolean,
|
|
2996
|
+
weakmode: Boolean,
|
|
2997
|
+
showProgress: Boolean,
|
|
2998
|
+
settings: {
|
|
2999
|
+
type: Object
|
|
3000
|
+
},
|
|
3001
|
+
colorList: {
|
|
3002
|
+
type: [Boolean, Array],
|
|
3003
|
+
default: () => qt
|
|
3004
|
+
},
|
|
3005
|
+
onChange: Function,
|
|
3006
|
+
onChangeLayout: Function
|
|
3007
|
+
},
|
|
3008
|
+
emits: ["change", "changeLayout"],
|
|
3009
|
+
setup(e) {
|
|
3010
|
+
const {
|
|
3011
|
+
getPrefixCls: t
|
|
3012
|
+
} = ee(), n = t({
|
|
3013
|
+
suffixCls: "setting-drawer",
|
|
3014
|
+
isPor: !0
|
|
3015
|
+
}), {
|
|
3016
|
+
wrapSSR: o,
|
|
3017
|
+
hashId: i
|
|
3018
|
+
} = te("ProSettingDraw", [nn], n), u = Oe(!1), [f, c] = pe(!1), [w, v] = pe(!1), [O, h] = pe(!1), T = p(() => nt(le(e.settings, $e))), [l, r] = oa(() => nt(le(e.settings, $e)), {
|
|
3019
|
+
value: T,
|
|
3020
|
+
onChange: e.onChange
|
|
3021
|
+
}), I = p(() => e.colorList && ea(e.colorList) ? e.colorList : []), k = p(() => xa(K(l))), {
|
|
3022
|
+
copy: x,
|
|
3023
|
+
copied: y,
|
|
3024
|
+
isSupported: g
|
|
3025
|
+
} = la();
|
|
3026
|
+
ue(f, () => {
|
|
3027
|
+
u.value || (u.value = !0);
|
|
3028
|
+
});
|
|
3029
|
+
const C = (d, S, R) => {
|
|
3030
|
+
var H, N;
|
|
3031
|
+
const M = ["header", "sider"], L = {};
|
|
3032
|
+
if (R && M.includes(d)) {
|
|
3033
|
+
L[d] = {}, L[d][R] = S, e.onChangeLayout && e.onChangeLayout(le(L, M));
|
|
3034
|
+
return;
|
|
3035
|
+
} else
|
|
3036
|
+
d === "animate" ? (L[d] = {}, L[d][R] = S, R === "name" && (L[d].direction = (N = (H = cn.find((P) => P.name === S)) == null ? void 0 : H.directions) == null ? void 0 : N[0])) : L[d] = S;
|
|
3037
|
+
if (d === "colorWeak") {
|
|
3038
|
+
const P = document.querySelector("body");
|
|
3039
|
+
P && (P.dataset.prosettingdrawer = S === !0 ? P.style.filter : P.dataset.prosettingdrawer || "none", S === !0 && (P.dataset.prosettingdrawer = P.style.filter), P.style.filter = S === !0 ? "invert(80%)" : P.dataset.prosettingdrawer || "none", S || delete P.dataset.prosettingdrawer);
|
|
3040
|
+
}
|
|
3041
|
+
r(aa(K(l), {
|
|
3042
|
+
...va(He(L, M))
|
|
3043
|
+
}));
|
|
3044
|
+
}, $ = () => {
|
|
3045
|
+
g.value && x(JSON.stringify(K(l)));
|
|
3046
|
+
};
|
|
3047
|
+
return ue(y, (d) => {
|
|
3048
|
+
d && Nt.success("拷贝成功,请到 config/default/themeConfig.js 中替换默认配置");
|
|
3049
|
+
}), () => o(a(be, {
|
|
3050
|
+
width: 300,
|
|
3051
|
+
closable: !1,
|
|
3052
|
+
open: f.value,
|
|
3053
|
+
rootClassName: `${n} ${i.value} ${f.value && `${n}-show`} ${!u.value && `${n}-trantion-none`}`,
|
|
3054
|
+
placement: "right",
|
|
3055
|
+
rootStyle: {
|
|
3056
|
+
zIndex: 999
|
|
3057
|
+
},
|
|
3058
|
+
bodyStyle: {
|
|
3059
|
+
padding: 0
|
|
3060
|
+
},
|
|
3061
|
+
onClose: () => c(!1),
|
|
3062
|
+
handle: a("div", {
|
|
3063
|
+
class: [`${n}-handle`, i.value],
|
|
3064
|
+
onClick: () => c(!f.value)
|
|
3065
|
+
}, [f.value ? a(st, {
|
|
3066
|
+
style: at
|
|
3067
|
+
}, null) : a(Xt, {
|
|
3068
|
+
style: at
|
|
3069
|
+
}, null)])
|
|
3070
|
+
}, {
|
|
3071
|
+
default: () => [a("div", {
|
|
3072
|
+
class: [`${n}-wrapper`, i.value]
|
|
3073
|
+
}, [a(ra, null, {
|
|
3074
|
+
default: () => [a("div", {
|
|
3075
|
+
class: [`${n}-content`, i.value]
|
|
3076
|
+
}, [a(ye, {
|
|
3077
|
+
prefixCls: n,
|
|
3078
|
+
hashId: i.value,
|
|
3079
|
+
title: "整体风格设置"
|
|
3080
|
+
}, {
|
|
3081
|
+
default: () => [a(Qe, {
|
|
3082
|
+
hashId: i.value,
|
|
3083
|
+
prefixCls: n,
|
|
3084
|
+
list: It,
|
|
3085
|
+
value: l.value.theme,
|
|
3086
|
+
configType: "theme",
|
|
3087
|
+
key: "navTheme",
|
|
3088
|
+
onChange: (d) => C("theme", d)
|
|
3089
|
+
}, null)]
|
|
3090
|
+
}), a(ye, {
|
|
3091
|
+
hashId: i.value,
|
|
3092
|
+
title: a("span", null, [ae("主题色 "), a("a", {
|
|
3093
|
+
style: {
|
|
3094
|
+
fontSize: "12px"
|
|
3095
|
+
},
|
|
3096
|
+
onClick: () => v(!0)
|
|
3097
|
+
}, [ae("更多配置")])]),
|
|
3098
|
+
prefixCls: n
|
|
3099
|
+
}, {
|
|
3100
|
+
default: () => [a(on, {
|
|
3101
|
+
hashId: i.value,
|
|
3102
|
+
prefixCls: n,
|
|
3103
|
+
colorList: I.value,
|
|
3104
|
+
settingValue: l.value,
|
|
3105
|
+
onChange: (d, S) => C(S || "primaryColor", d)
|
|
3106
|
+
}, null)]
|
|
3107
|
+
}), !e.themeOnly && a(Q, null, [a(Me, null, null), a(ye, {
|
|
3108
|
+
hashId: i.value,
|
|
3109
|
+
prefixCls: n,
|
|
3110
|
+
title: "导航模式"
|
|
3111
|
+
}, {
|
|
3112
|
+
default: () => [a(Qe, {
|
|
3113
|
+
prefixCls: n,
|
|
3114
|
+
value: K(l).layout,
|
|
3115
|
+
key: "layout",
|
|
3116
|
+
hashId: i.value,
|
|
3117
|
+
configType: "layout",
|
|
3118
|
+
list: Mt,
|
|
3119
|
+
onChange: (d) => C("layout", d)
|
|
3120
|
+
}, null)]
|
|
3121
|
+
}), mn.map(({
|
|
3122
|
+
label: d,
|
|
3123
|
+
title: S
|
|
3124
|
+
}) => a(he, {
|
|
3125
|
+
label: S,
|
|
3126
|
+
disabled: K(k)[d],
|
|
3127
|
+
value: K(l)[d],
|
|
3128
|
+
prefixCls: n,
|
|
3129
|
+
hashId: i.value,
|
|
3130
|
+
valueKey: d,
|
|
3131
|
+
onChange: (R, M) => C(R, M)
|
|
3132
|
+
}, null)), a(Me, null, null), a(ye, {
|
|
3133
|
+
hashId: i.value,
|
|
3134
|
+
prefixCls: n,
|
|
3135
|
+
title: a("span", null, [ae("其他设置 "), a("a", {
|
|
3136
|
+
style: {
|
|
3137
|
+
fontSize: "12px"
|
|
3138
|
+
},
|
|
3139
|
+
onClick: () => h(!0)
|
|
3140
|
+
}, [ae("更多配置")])])
|
|
3141
|
+
}, {
|
|
3142
|
+
default: () => [fn.map(({
|
|
3143
|
+
label: d,
|
|
3144
|
+
title: S
|
|
3145
|
+
}) => a(he, {
|
|
3146
|
+
label: S,
|
|
3147
|
+
disabled: K(k)[d],
|
|
3148
|
+
value: K(l)[d],
|
|
3149
|
+
prefixCls: n,
|
|
3150
|
+
hashId: i.value,
|
|
3151
|
+
valueKey: d,
|
|
3152
|
+
onChange: (R, M) => C(R, M)
|
|
3153
|
+
}, null)), e.weakmode && a(he, {
|
|
3154
|
+
label: "色弱模式",
|
|
3155
|
+
value: K(l).colorWeak,
|
|
3156
|
+
prefixCls: n,
|
|
3157
|
+
hashId: i.value,
|
|
3158
|
+
valueKey: "colorWeak",
|
|
3159
|
+
onChange: (d, S) => C(d, S)
|
|
3160
|
+
}, null), e.showProgress && a(he, {
|
|
3161
|
+
label: "顶部进度条",
|
|
3162
|
+
value: K(l).showProgressBar,
|
|
3163
|
+
prefixCls: n,
|
|
3164
|
+
hashId: i.value,
|
|
3165
|
+
valueKey: "showProgressBar",
|
|
3166
|
+
onChange: (d, S) => C(d, S)
|
|
3167
|
+
}, null)]
|
|
3168
|
+
})]), e.hideHintAlert && e.hideCopyButton ? null : a(Me, null, null), e.hideHintAlert ? null : a(zt, {
|
|
3169
|
+
type: "warning",
|
|
3170
|
+
message: "配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件",
|
|
3171
|
+
icon: a(Yt, null, null),
|
|
3172
|
+
showIcon: !0,
|
|
3173
|
+
style: {
|
|
3174
|
+
marginBottom: "16px"
|
|
3175
|
+
}
|
|
3176
|
+
}, null), e.hideCopyButton ? null : a(Ht, {
|
|
3177
|
+
onClick: () => $(),
|
|
3178
|
+
block: !0
|
|
3179
|
+
}, {
|
|
3180
|
+
default: () => [a(_t, null, null), ae("拷贝设置")]
|
|
3181
|
+
})])]
|
|
3182
|
+
})]), a(be, {
|
|
3183
|
+
width: 320,
|
|
3184
|
+
closable: !1,
|
|
3185
|
+
placement: "right",
|
|
3186
|
+
open: w.value,
|
|
3187
|
+
bodyStyle: {
|
|
3188
|
+
padding: 0
|
|
3189
|
+
},
|
|
3190
|
+
onClose: () => v(!1)
|
|
3191
|
+
}, {
|
|
3192
|
+
default: () => [a(sn, {
|
|
3193
|
+
settingValue: l.value,
|
|
3194
|
+
onChange: (d, S, R) => C(S || "primaryColor", d, R)
|
|
3195
|
+
}, null)]
|
|
3196
|
+
}), a(be, {
|
|
3197
|
+
width: 320,
|
|
3198
|
+
closable: !1,
|
|
3199
|
+
placement: "right",
|
|
3200
|
+
open: O.value,
|
|
3201
|
+
bodyStyle: {
|
|
3202
|
+
padding: 0
|
|
3203
|
+
},
|
|
3204
|
+
onClose: () => h(!1)
|
|
3205
|
+
}, {
|
|
3206
|
+
default: () => [a(un, {
|
|
3207
|
+
settingValue: l.value,
|
|
3208
|
+
onChange: (d, S, R) => C(d, R, S)
|
|
3209
|
+
}, null)]
|
|
3210
|
+
})]
|
|
3211
|
+
}));
|
|
3212
|
+
}
|
|
3213
|
+
}), gn = new s("backInLeft", {
|
|
3214
|
+
"0%": {
|
|
3215
|
+
opacity: 0.7,
|
|
3216
|
+
transform: "translateX(-2000px) scale(0.7)"
|
|
3217
|
+
},
|
|
3218
|
+
"80%": {
|
|
3219
|
+
opacity: 0.7,
|
|
3220
|
+
transform: "translateX(0px) scale(0.7)"
|
|
3221
|
+
},
|
|
3222
|
+
"100%": {
|
|
3223
|
+
opacity: 1,
|
|
3224
|
+
transform: "scale(1)"
|
|
3225
|
+
}
|
|
3226
|
+
}), hn = new s("backInRight", {
|
|
3227
|
+
"0%": {
|
|
3228
|
+
opacity: 0.7,
|
|
3229
|
+
transform: "translateX(2000px) scale(0.7)"
|
|
3230
|
+
},
|
|
3231
|
+
"80%": {
|
|
3232
|
+
opacity: 0.7,
|
|
3233
|
+
transform: "translateX(0px) scale(0.7)"
|
|
3234
|
+
},
|
|
3235
|
+
"100%": {
|
|
3236
|
+
opacity: 1,
|
|
3237
|
+
transform: "scale(1)"
|
|
3238
|
+
}
|
|
3239
|
+
}), yn = new s("backInUp", {
|
|
3240
|
+
"0%": {
|
|
3241
|
+
opacity: 0.7,
|
|
3242
|
+
transform: "translateY(1200px) scale(0.7)"
|
|
3243
|
+
},
|
|
3244
|
+
"80%": {
|
|
3245
|
+
opacity: 0.7,
|
|
3246
|
+
transform: "translateY(0px) scale(0.7)"
|
|
3247
|
+
},
|
|
3248
|
+
"100%": {
|
|
3249
|
+
opacity: 1,
|
|
3250
|
+
transform: "scale(1)"
|
|
3251
|
+
}
|
|
3252
|
+
}), bn = new s("backInDown", {
|
|
3253
|
+
"0%": {
|
|
3254
|
+
opacity: 0.7,
|
|
3255
|
+
transform: "translateY(-1200px) scale(0.7)"
|
|
3256
|
+
},
|
|
3257
|
+
"80%": {
|
|
3258
|
+
opacity: 0.7,
|
|
3259
|
+
transform: "translateY(0px) scale(0.7)"
|
|
3260
|
+
},
|
|
3261
|
+
"100%": {
|
|
3262
|
+
opacity: 1,
|
|
3263
|
+
transform: "scale(1)"
|
|
3264
|
+
}
|
|
3265
|
+
}), pn = new s("backOutLeft", {
|
|
3266
|
+
"0%": {
|
|
3267
|
+
opacity: 1,
|
|
3268
|
+
transform: "scale(1)"
|
|
3269
|
+
},
|
|
3270
|
+
"20%": {
|
|
3271
|
+
opacity: 0.7,
|
|
3272
|
+
transform: "translateX(0px) scale(0.7)"
|
|
3273
|
+
},
|
|
3274
|
+
"100%": {
|
|
3275
|
+
opacity: 0.7,
|
|
3276
|
+
transform: "translateX(-2000px) scale(0.7)"
|
|
3277
|
+
}
|
|
3278
|
+
}), vn = new s("backOutRight", {
|
|
3279
|
+
"0%": {
|
|
3280
|
+
opacity: 1,
|
|
3281
|
+
transform: "scale(1)"
|
|
3282
|
+
},
|
|
3283
|
+
"20%": {
|
|
3284
|
+
opacity: 0.7,
|
|
3285
|
+
transform: "translateX(0px) scale(0.7)"
|
|
3286
|
+
},
|
|
3287
|
+
"100%": {
|
|
3288
|
+
opacity: 0.7,
|
|
3289
|
+
transform: "translateX(2000px) scale(0.7)"
|
|
3290
|
+
}
|
|
3291
|
+
}), xn = new s("backOutUp", {
|
|
3292
|
+
"0%": {
|
|
3293
|
+
opacity: 1,
|
|
3294
|
+
transform: "scale(1)"
|
|
3295
|
+
},
|
|
3296
|
+
"20%": {
|
|
3297
|
+
opacity: 0.7,
|
|
3298
|
+
transform: "translateY(0px) scale(0.7)"
|
|
3299
|
+
},
|
|
3300
|
+
"100%": {
|
|
3301
|
+
opacity: 0.7,
|
|
3302
|
+
transform: "translateY(-700px) scale(0.7)"
|
|
3303
|
+
}
|
|
3304
|
+
}), Cn = new s("backOutDown", {
|
|
3305
|
+
"0%": {
|
|
3306
|
+
opacity: 1,
|
|
3307
|
+
transform: "scale(1)"
|
|
3308
|
+
},
|
|
3309
|
+
"20%": {
|
|
3310
|
+
opacity: 0.7,
|
|
3311
|
+
transform: "translateY(0px) scale(0.7)"
|
|
3312
|
+
},
|
|
3313
|
+
"100%": {
|
|
3314
|
+
opacity: 0.7,
|
|
3315
|
+
transform: "translateY(700px) scale(0.7)"
|
|
3316
|
+
}
|
|
3317
|
+
}), wn = () => ({
|
|
3318
|
+
"&.backInLeft": {
|
|
3319
|
+
animationFillMode: "both",
|
|
3320
|
+
animationName: gn
|
|
3321
|
+
},
|
|
3322
|
+
"&.backInRight": {
|
|
3323
|
+
animationFillMode: "both",
|
|
3324
|
+
animationName: hn
|
|
3325
|
+
},
|
|
3326
|
+
"&.backInUp": {
|
|
3327
|
+
animationFillMode: "both",
|
|
3328
|
+
animationName: yn
|
|
3329
|
+
},
|
|
3330
|
+
"&.backInDown": {
|
|
3331
|
+
animationFillMode: "both",
|
|
3332
|
+
animationName: bn
|
|
3333
|
+
}
|
|
3334
|
+
}), Sn = () => ({
|
|
3335
|
+
"&.backOutLeft": {
|
|
3336
|
+
animationFillMode: "both",
|
|
3337
|
+
animationName: pn
|
|
3338
|
+
},
|
|
3339
|
+
"&.backOutRight": {
|
|
3340
|
+
animationFillMode: "both",
|
|
3341
|
+
animationName: vn
|
|
3342
|
+
},
|
|
3343
|
+
"&.backOutUp": {
|
|
3344
|
+
animationFillMode: "both",
|
|
3345
|
+
animationName: xn
|
|
3346
|
+
},
|
|
3347
|
+
"&.backOutDown": {
|
|
3348
|
+
animationFillMode: "both",
|
|
3349
|
+
animationName: Cn
|
|
3350
|
+
}
|
|
3351
|
+
}), In = new s("bounceIn", {
|
|
3352
|
+
"from,20%,40%,60%,80%,to": {
|
|
3353
|
+
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3354
|
+
},
|
|
3355
|
+
"0%": {
|
|
3356
|
+
opacity: 0,
|
|
3357
|
+
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
3358
|
+
},
|
|
3359
|
+
"20%": {
|
|
3360
|
+
transform: "scale3d(1.1, 1.1, 1.1)"
|
|
3361
|
+
},
|
|
3362
|
+
"40%": {
|
|
3363
|
+
transform: "scale3d(0.9, 0.9, 0.9)"
|
|
3364
|
+
},
|
|
3365
|
+
"60%": {
|
|
3366
|
+
transform: "scale3d(1.03, 1.03, 1.03)"
|
|
3367
|
+
},
|
|
3368
|
+
"80%": {
|
|
3369
|
+
transform: "scale3d(0.97, 0.97, 0.97)"
|
|
3370
|
+
},
|
|
3371
|
+
to: {
|
|
3372
|
+
opacity: 1,
|
|
3373
|
+
transform: "scale3d(1, 1, 1)"
|
|
3374
|
+
}
|
|
3375
|
+
}), Mn = new s("bounceInLeft", {
|
|
3376
|
+
"from,60%,75%,90%,to": {
|
|
3377
|
+
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3378
|
+
},
|
|
3379
|
+
"0%": {
|
|
3380
|
+
opacity: 0,
|
|
3381
|
+
transform: "translate3d(-3000px, 0, 0) scaleX(3)"
|
|
3382
|
+
},
|
|
3383
|
+
"60%": {
|
|
3384
|
+
opacity: 1,
|
|
3385
|
+
transform: "translate3d(25px, 0, 0) scaleX(1)"
|
|
3386
|
+
},
|
|
3387
|
+
"75%": {
|
|
3388
|
+
transform: "translate3d(-10px, 0, 0) scaleX(0.98)"
|
|
3389
|
+
},
|
|
3390
|
+
"90%": {
|
|
3391
|
+
transform: "translate3d(5px, 0, 0) scaleX(0.995)"
|
|
3392
|
+
},
|
|
3393
|
+
to: {
|
|
3394
|
+
transform: "translate3d(0, 0, 0)"
|
|
3395
|
+
}
|
|
3396
|
+
}), On = new s("bounceInRight", {
|
|
3397
|
+
"from,60%,75%,90%,to": {
|
|
3398
|
+
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3399
|
+
},
|
|
3400
|
+
from: {
|
|
3401
|
+
opacity: 0,
|
|
3402
|
+
transform: "translate3d(3000px, 0, 0) scaleX(3)"
|
|
3403
|
+
},
|
|
3404
|
+
"60%": {
|
|
3405
|
+
opacity: 1,
|
|
3406
|
+
transform: "translate3d(-25px, 0, 0) scaleX(1)"
|
|
3407
|
+
},
|
|
3408
|
+
"75%": {
|
|
3409
|
+
transform: "translate3d(10px, 0, 0) scaleX(0.98)"
|
|
3410
|
+
},
|
|
3411
|
+
"90%": {
|
|
3412
|
+
transform: "translate3d(-5px, 0, 0) scaleX(0.995)"
|
|
3413
|
+
},
|
|
3414
|
+
to: {
|
|
3415
|
+
transform: "translate3d(0, 0, 0)"
|
|
3416
|
+
}
|
|
3417
|
+
}), Rn = new s("bounceInDown", {
|
|
3418
|
+
"from,60%,75%,90%,to": {
|
|
3419
|
+
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3420
|
+
},
|
|
3421
|
+
"0%": {
|
|
3422
|
+
opacity: 0,
|
|
3423
|
+
transform: "translate3d(0, -3000px, 0) scaleY(3)"
|
|
3424
|
+
},
|
|
3425
|
+
"60%": {
|
|
3426
|
+
opacity: 1,
|
|
3427
|
+
transform: "translate3d(0, 25px, 0) scaleY(0.9)"
|
|
3428
|
+
},
|
|
3429
|
+
"75%": {
|
|
3430
|
+
transform: "translate3d(0, -10px, 0) scaleY(0.95)"
|
|
3431
|
+
},
|
|
3432
|
+
"90%": {
|
|
3433
|
+
transform: "translate3d(0, 5px, 0) scaleY(0.985)"
|
|
3434
|
+
},
|
|
3435
|
+
to: {
|
|
3436
|
+
transform: "translate3d(0, 0, 0)"
|
|
3437
|
+
}
|
|
3438
|
+
}), kn = new s("bounceInUp", {
|
|
3439
|
+
"from,60%,75%,90%,to": {
|
|
3440
|
+
animationTimingFunction: "cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
3441
|
+
},
|
|
3442
|
+
from: {
|
|
3443
|
+
opacity: 0,
|
|
3444
|
+
transform: "translate3d(0, 3000px, 0) scaleY(5)"
|
|
3445
|
+
},
|
|
3446
|
+
"60%": {
|
|
3447
|
+
opacity: 1,
|
|
3448
|
+
transform: "translate3d(0, -20px, 0) scaleY(0.9)"
|
|
3449
|
+
},
|
|
3450
|
+
"75%": {
|
|
3451
|
+
transform: "translate3d(0, 10px, 0) scaleY(0.95)"
|
|
3452
|
+
},
|
|
3453
|
+
"90%": {
|
|
3454
|
+
transform: "translate3d(0, -5px, 0) scaleY(0.985)"
|
|
3455
|
+
},
|
|
3456
|
+
to: {
|
|
3457
|
+
transform: "translate3d(0, 0, 0)"
|
|
3458
|
+
}
|
|
3459
|
+
}), Bn = new s("bounceOut", {
|
|
3460
|
+
"20%": {
|
|
3461
|
+
transform: "scale3d(0.9, 0.9, 0.9)"
|
|
3462
|
+
},
|
|
3463
|
+
"50%,55%": {
|
|
3464
|
+
transform: "scale3d(1.1, 1.1, 1.1)"
|
|
3465
|
+
},
|
|
3466
|
+
"60%": {
|
|
3467
|
+
transform: "scale3d(1.03, 1.03, 1.03)"
|
|
3468
|
+
},
|
|
3469
|
+
to: {
|
|
3470
|
+
opacity: 0,
|
|
3471
|
+
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
3472
|
+
}
|
|
3473
|
+
}), $n = new s("bounceOutLeft", {
|
|
3474
|
+
"20%": {
|
|
3475
|
+
opacity: 1,
|
|
3476
|
+
transform: "translate3d(20px, 0, 0) scaleX(0.9)"
|
|
3477
|
+
},
|
|
3478
|
+
to: {
|
|
3479
|
+
opacity: 0,
|
|
3480
|
+
transform: "translate3d(-2000px, 0, 0) scaleX(2)"
|
|
3481
|
+
}
|
|
3482
|
+
}), Pn = new s("bounceOutRight", {
|
|
3483
|
+
"20%": {
|
|
3484
|
+
opacity: 1,
|
|
3485
|
+
transform: "translate3d(-20px, 0, 0) scaleX(0.9)"
|
|
3486
|
+
},
|
|
3487
|
+
to: {
|
|
3488
|
+
opacity: 0,
|
|
3489
|
+
transform: "translate3d(2000px, 0, 0) scaleX(2)"
|
|
3490
|
+
}
|
|
3491
|
+
}), Fn = new s("bounceOutDown", {
|
|
3492
|
+
"20%": {
|
|
3493
|
+
transform: "translate3d(0, 10px, 0) scaleY(0.985)"
|
|
3494
|
+
},
|
|
3495
|
+
"40%,45%": {
|
|
3496
|
+
opacity: 1,
|
|
3497
|
+
transform: "translate3d(0, -20px, 0) scaleY(0.9)"
|
|
3498
|
+
},
|
|
3499
|
+
to: {
|
|
3500
|
+
opacity: 0,
|
|
3501
|
+
transform: "translate3d(0, 2000px, 0) scaleY(3)"
|
|
3502
|
+
}
|
|
3503
|
+
}), Tn = new s("bounceOutUp", {
|
|
3504
|
+
"20%": {
|
|
3505
|
+
transform: "translate3d(0, -10px, 0) scaleY(0.985)"
|
|
3506
|
+
},
|
|
3507
|
+
"40%,45%": {
|
|
3508
|
+
opacity: 1,
|
|
3509
|
+
transform: "translate3d(0, 20px, 0) scaleY(0.9)"
|
|
3510
|
+
},
|
|
3511
|
+
to: {
|
|
3512
|
+
opacity: 0,
|
|
3513
|
+
transform: "translate3d(0, -2000px, 0) scaleY(3)"
|
|
3514
|
+
}
|
|
3515
|
+
}), Ln = () => ({
|
|
3516
|
+
"&.bounceIn": {
|
|
3517
|
+
animationFillMode: "both",
|
|
3518
|
+
animationDuration: `${0.3 * 0.75}s !important`,
|
|
3519
|
+
animationName: In
|
|
3520
|
+
},
|
|
3521
|
+
"&.bounceInLeft": {
|
|
3522
|
+
animationFillMode: "both",
|
|
3523
|
+
animationName: Mn
|
|
3524
|
+
},
|
|
3525
|
+
"&.bounceInRight": {
|
|
3526
|
+
animationFillMode: "both",
|
|
3527
|
+
animationName: On
|
|
3528
|
+
},
|
|
3529
|
+
"&.bounceInDown": {
|
|
3530
|
+
animationFillMode: "both",
|
|
3531
|
+
animationName: Rn
|
|
3532
|
+
},
|
|
3533
|
+
"&.bounceInUp": {
|
|
3534
|
+
animationFillMode: "both",
|
|
3535
|
+
animationName: kn
|
|
3536
|
+
}
|
|
3537
|
+
}), Dn = () => ({
|
|
3538
|
+
"&.bounceOut": {
|
|
3539
|
+
animationFillMode: "both",
|
|
3540
|
+
animationDuration: `${0.3 * 0.75}s !important`,
|
|
3541
|
+
animationName: Bn
|
|
3542
|
+
},
|
|
3543
|
+
"&.bounceOutLeft": {
|
|
3544
|
+
animationFillMode: "both",
|
|
3545
|
+
animationName: $n
|
|
3546
|
+
},
|
|
3547
|
+
"&.bounceOutRight": {
|
|
3548
|
+
animationFillMode: "both",
|
|
3549
|
+
animationName: Pn
|
|
3550
|
+
},
|
|
3551
|
+
"&.bounceOutDown": {
|
|
3552
|
+
animationFillMode: "both",
|
|
3553
|
+
animationName: Fn
|
|
3554
|
+
},
|
|
3555
|
+
"&.bounceOutUp": {
|
|
3556
|
+
animationFillMode: "both",
|
|
3557
|
+
animationName: Tn
|
|
3558
|
+
}
|
|
3559
|
+
}), Nn = new s("fadeIn", {
|
|
3560
|
+
from: {
|
|
3561
|
+
opacity: 0
|
|
3562
|
+
},
|
|
3563
|
+
to: {
|
|
3564
|
+
opacity: 1
|
|
3565
|
+
}
|
|
3566
|
+
}), zn = new s("fadeInLeft", {
|
|
3567
|
+
from: {
|
|
3568
|
+
opacity: 0,
|
|
3569
|
+
transform: "translate3d(-100%, 0, 0)"
|
|
3570
|
+
},
|
|
3571
|
+
to: {
|
|
3572
|
+
opacity: 1,
|
|
3573
|
+
transform: "translate3d(0, 0, 0)"
|
|
3574
|
+
}
|
|
3575
|
+
}), Hn = new s("fadeInRight", {
|
|
3576
|
+
from: {
|
|
3577
|
+
opacity: 0,
|
|
3578
|
+
transform: "translate3d(100%, 0, 0)"
|
|
3579
|
+
},
|
|
3580
|
+
to: {
|
|
3581
|
+
opacity: 1,
|
|
3582
|
+
transform: "translate3d(0, 0, 0)"
|
|
3583
|
+
}
|
|
3584
|
+
}), Vn = new s("fadeInDown", {
|
|
3585
|
+
from: {
|
|
3586
|
+
opacity: 0,
|
|
3587
|
+
transform: "translate3d(0, -100%, 0)"
|
|
3588
|
+
},
|
|
3589
|
+
to: {
|
|
3590
|
+
opacity: 1,
|
|
3591
|
+
transform: "translate3d(0, 0, 0)"
|
|
3592
|
+
}
|
|
3593
|
+
}), jn = new s("fadeInUp", {
|
|
3594
|
+
from: {
|
|
3595
|
+
opacity: 0,
|
|
3596
|
+
transform: "translate3d(0, 100%, 0)"
|
|
3597
|
+
},
|
|
3598
|
+
to: {
|
|
3599
|
+
opacity: 1,
|
|
3600
|
+
transform: "translate3d(0, 0, 0)"
|
|
3601
|
+
}
|
|
3602
|
+
}), Wn = new s("fadeInDownBig", {
|
|
3603
|
+
from: {
|
|
3604
|
+
opacity: 0,
|
|
3605
|
+
transform: "translate3d(0, -2000px, 0)"
|
|
3606
|
+
},
|
|
3607
|
+
to: {
|
|
3608
|
+
opacity: 1,
|
|
3609
|
+
transform: "translate3d(0, 0, 0)"
|
|
3610
|
+
}
|
|
3611
|
+
}), An = new s("fadeInUpBig", {
|
|
3612
|
+
from: {
|
|
3613
|
+
opacity: 0,
|
|
3614
|
+
transform: "translate3d(0, 2000px, 0)"
|
|
3615
|
+
},
|
|
3616
|
+
to: {
|
|
3617
|
+
opacity: 1,
|
|
3618
|
+
transform: "translate3d(0, 0, 0)"
|
|
3619
|
+
}
|
|
3620
|
+
}), Kn = new s("fadeInLeftBig", {
|
|
3621
|
+
from: {
|
|
3622
|
+
opacity: 0,
|
|
3623
|
+
transform: "translate3d(-2000px, 0, 0)"
|
|
3624
|
+
},
|
|
3625
|
+
to: {
|
|
3626
|
+
opacity: 1,
|
|
3627
|
+
transform: "translate3d(0, 0, 0)"
|
|
3628
|
+
}
|
|
3629
|
+
}), Un = new s("fadeInRightBig", {
|
|
3630
|
+
from: {
|
|
3631
|
+
opacity: 0,
|
|
3632
|
+
transform: "translate3d(2000px, 0, 0)"
|
|
3633
|
+
},
|
|
3634
|
+
to: {
|
|
3635
|
+
opacity: 1,
|
|
3636
|
+
transform: "translate3d(0, 0, 0)"
|
|
3637
|
+
}
|
|
3638
|
+
}), En = new s("fadeInTopLeft", {
|
|
3639
|
+
from: {
|
|
3640
|
+
opacity: 0,
|
|
3641
|
+
transform: "translate3d(-100%, -100%, 0)"
|
|
3642
|
+
},
|
|
3643
|
+
to: {
|
|
3644
|
+
opacity: 1,
|
|
3645
|
+
transform: "translate3d(0, 0, 0)"
|
|
3646
|
+
}
|
|
3647
|
+
}), Xn = new s("fadeInBottomRight", {
|
|
3648
|
+
from: {
|
|
3649
|
+
opacity: 0,
|
|
3650
|
+
transform: "translate3d(100%, 100%, 0)"
|
|
3651
|
+
},
|
|
3652
|
+
to: {
|
|
3653
|
+
opacity: 1,
|
|
3654
|
+
transform: "translate3d(0, 0, 0)"
|
|
3655
|
+
}
|
|
3656
|
+
}), Yn = new s("fadeInTopRight", {
|
|
3657
|
+
from: {
|
|
3658
|
+
opacity: 0,
|
|
3659
|
+
transform: "translate3d(100%, -100%, 0)"
|
|
3660
|
+
},
|
|
3661
|
+
to: {
|
|
3662
|
+
opacity: 1,
|
|
3663
|
+
transform: "translate3d(0, 0, 0)"
|
|
3664
|
+
}
|
|
3665
|
+
}), _n = new s("fadeInBottomLeft", {
|
|
3666
|
+
from: {
|
|
3667
|
+
opacity: 0,
|
|
3668
|
+
transform: "translate3d(-100%, 100%, 0)"
|
|
3669
|
+
},
|
|
3670
|
+
to: {
|
|
3671
|
+
opacity: 1,
|
|
3672
|
+
transform: "translate3d(0, 0, 0)"
|
|
3673
|
+
}
|
|
3674
|
+
}), Gn = new s("fadeOut", {
|
|
3675
|
+
from: {
|
|
3676
|
+
opacity: 1
|
|
3677
|
+
},
|
|
3678
|
+
to: {
|
|
3679
|
+
opacity: 0
|
|
3680
|
+
}
|
|
3681
|
+
}), qn = new s("fadeOutLeft", {
|
|
3682
|
+
from: {
|
|
3683
|
+
opacity: 1
|
|
3684
|
+
},
|
|
3685
|
+
to: {
|
|
3686
|
+
opacity: 0,
|
|
3687
|
+
transform: "translate3d(-100%, 0, 0)"
|
|
3688
|
+
}
|
|
3689
|
+
}), Zn = new s("fadeOutRight", {
|
|
3690
|
+
from: {
|
|
3691
|
+
opacity: 1
|
|
3692
|
+
},
|
|
3693
|
+
to: {
|
|
3694
|
+
opacity: 0,
|
|
3695
|
+
transform: "translate3d(100%, 0, 0)"
|
|
3696
|
+
}
|
|
3697
|
+
}), Jn = new s("fadeOutDown", {
|
|
3698
|
+
from: {
|
|
3699
|
+
opacity: 1
|
|
3700
|
+
},
|
|
3701
|
+
to: {
|
|
3702
|
+
opacity: 0,
|
|
3703
|
+
transform: "translate3d(0, 100%, 0)"
|
|
3704
|
+
}
|
|
3705
|
+
}), Qn = new s("fadeOutUp", {
|
|
3706
|
+
from: {
|
|
3707
|
+
opacity: 1
|
|
3708
|
+
},
|
|
3709
|
+
to: {
|
|
3710
|
+
opacity: 0,
|
|
3711
|
+
transform: "translate3d(0, -100%, 0)"
|
|
3712
|
+
}
|
|
3713
|
+
}), eo = new s("fadeOutDownBig", {
|
|
3714
|
+
from: {
|
|
3715
|
+
opacity: 1
|
|
3716
|
+
},
|
|
3717
|
+
to: {
|
|
3718
|
+
opacity: 0,
|
|
3719
|
+
transform: "translate3d(0, 2000px, 0)"
|
|
3720
|
+
}
|
|
3721
|
+
}), to = new s("fadeOutUpBig", {
|
|
3722
|
+
from: {
|
|
3723
|
+
opacity: 1
|
|
3724
|
+
},
|
|
3725
|
+
to: {
|
|
3726
|
+
opacity: 0,
|
|
3727
|
+
transform: "translate3d(0, -2000px, 0)"
|
|
3728
|
+
}
|
|
3729
|
+
}), ao = new s("fadeOutLeftBig", {
|
|
3730
|
+
from: {
|
|
3731
|
+
opacity: 1
|
|
3732
|
+
},
|
|
3733
|
+
to: {
|
|
3734
|
+
opacity: 0,
|
|
3735
|
+
transform: "translate3d(-2000px, 0, 0)"
|
|
3736
|
+
}
|
|
3737
|
+
}), no = new s("fadeOutRightBig", {
|
|
3738
|
+
from: {
|
|
3739
|
+
opacity: 1
|
|
3740
|
+
},
|
|
3741
|
+
to: {
|
|
3742
|
+
opacity: 0,
|
|
3743
|
+
transform: "translate3d(2000px, 0, 0)"
|
|
3744
|
+
}
|
|
3745
|
+
}), oo = new s("fadeOutTopLeft", {
|
|
3746
|
+
from: {
|
|
3747
|
+
opacity: 1,
|
|
3748
|
+
transform: "translate3d(0, 0, 0)"
|
|
3749
|
+
},
|
|
3750
|
+
to: {
|
|
3751
|
+
opacity: 0,
|
|
3752
|
+
transform: "translate3d(-100%, -100%, 0)"
|
|
3753
|
+
}
|
|
3754
|
+
}), io = new s("fadeOutBottomRight", {
|
|
3755
|
+
from: {
|
|
3756
|
+
opacity: 1,
|
|
3757
|
+
transform: "translate3d(0, 0, 0)"
|
|
3758
|
+
},
|
|
3759
|
+
to: {
|
|
3760
|
+
opacity: 0,
|
|
3761
|
+
transform: "translate3d(100%, 100%, 0)"
|
|
3762
|
+
}
|
|
3763
|
+
}), lo = new s("fadeOutTopRight", {
|
|
3764
|
+
from: {
|
|
3765
|
+
opacity: 1,
|
|
3766
|
+
transform: "translate3d(0, 0, 0)"
|
|
3767
|
+
},
|
|
3768
|
+
to: {
|
|
3769
|
+
opacity: 0,
|
|
3770
|
+
transform: "translate3d(100%, -100%, 0)"
|
|
3771
|
+
}
|
|
3772
|
+
}), ro = new s("fadeOutBottomLeft", {
|
|
3773
|
+
from: {
|
|
3774
|
+
opacity: 1,
|
|
3775
|
+
transform: "translate3d(0, 0, 0)"
|
|
3776
|
+
},
|
|
3777
|
+
to: {
|
|
3778
|
+
opacity: 0,
|
|
3779
|
+
transform: "translate3d(-100%, 100%, 0)"
|
|
3780
|
+
}
|
|
3781
|
+
}), so = () => ({
|
|
3782
|
+
"&.fadeIn": {
|
|
3783
|
+
animationFillMode: "both",
|
|
3784
|
+
animationName: Nn
|
|
3785
|
+
},
|
|
3786
|
+
"&.fadeInLeft": {
|
|
3787
|
+
animationFillMode: "both",
|
|
3788
|
+
animationName: zn
|
|
3789
|
+
},
|
|
3790
|
+
"&.fadeInRight": {
|
|
3791
|
+
animationFillMode: "both",
|
|
3792
|
+
animationName: Hn
|
|
3793
|
+
},
|
|
3794
|
+
"&.fadeInDown": {
|
|
3795
|
+
animationFillMode: "both",
|
|
3796
|
+
animationName: Vn
|
|
3797
|
+
},
|
|
3798
|
+
"&.fadeInUp": {
|
|
3799
|
+
animationFillMode: "both",
|
|
3800
|
+
animationName: jn
|
|
3801
|
+
},
|
|
3802
|
+
"&.fadeInLeftBig": {
|
|
3803
|
+
animationFillMode: "both",
|
|
3804
|
+
animationName: Kn
|
|
3805
|
+
},
|
|
3806
|
+
"&.fadeInRightBig": {
|
|
3807
|
+
animationFillMode: "both",
|
|
3808
|
+
animationName: Un
|
|
3809
|
+
},
|
|
3810
|
+
"&.fadeInUpBig": {
|
|
3811
|
+
animationFillMode: "both",
|
|
3812
|
+
animationName: An
|
|
3813
|
+
},
|
|
3814
|
+
"&.fadeInDownBig": {
|
|
3815
|
+
animationFillMode: "both",
|
|
3816
|
+
animationName: Wn
|
|
3817
|
+
},
|
|
3818
|
+
"&.fadeInTopLeft": {
|
|
3819
|
+
animationFillMode: "both",
|
|
3820
|
+
animationName: En
|
|
3821
|
+
},
|
|
3822
|
+
"&.fadeInBottomRight": {
|
|
3823
|
+
animationFillMode: "both",
|
|
3824
|
+
animationName: Xn
|
|
3825
|
+
},
|
|
3826
|
+
"&.fadeInTopRight": {
|
|
3827
|
+
animationFillMode: "both",
|
|
3828
|
+
animationName: Yn
|
|
3829
|
+
},
|
|
3830
|
+
"&.fadeInBottomLeft": {
|
|
3831
|
+
animationFillMode: "both",
|
|
3832
|
+
animationName: _n
|
|
3833
|
+
}
|
|
3834
|
+
}), uo = () => ({
|
|
3835
|
+
"&.fadeOut": {
|
|
3836
|
+
animationFillMode: "both",
|
|
3837
|
+
animationName: Gn
|
|
3838
|
+
},
|
|
3839
|
+
"&.fadeOutLeft": {
|
|
3840
|
+
animationFillMode: "both",
|
|
3841
|
+
animationName: qn
|
|
3842
|
+
},
|
|
3843
|
+
"&.fadeOutRight": {
|
|
3844
|
+
animationFillMode: "both",
|
|
3845
|
+
animationName: Zn
|
|
3846
|
+
},
|
|
3847
|
+
"&.fadeOutDown": {
|
|
3848
|
+
animationFillMode: "both",
|
|
3849
|
+
animationName: Jn
|
|
3850
|
+
},
|
|
3851
|
+
"&.fadeOutUp": {
|
|
3852
|
+
animationFillMode: "both",
|
|
3853
|
+
animationName: Qn
|
|
3854
|
+
},
|
|
3855
|
+
"&.fadeOutDownBig": {
|
|
3856
|
+
animationFillMode: "both",
|
|
3857
|
+
animationName: eo
|
|
3858
|
+
},
|
|
3859
|
+
"&.fadeOutUpBig": {
|
|
3860
|
+
animationFillMode: "both",
|
|
3861
|
+
animationName: to
|
|
3862
|
+
},
|
|
3863
|
+
"&.fadeOutLeftBig": {
|
|
3864
|
+
animationFillMode: "both",
|
|
3865
|
+
animationName: ao
|
|
3866
|
+
},
|
|
3867
|
+
"&.fadeOutRightBig": {
|
|
3868
|
+
animationFillMode: "both",
|
|
3869
|
+
animationName: no
|
|
3870
|
+
},
|
|
3871
|
+
"&.fadeOutTopLeft": {
|
|
3872
|
+
animationFillMode: "both",
|
|
3873
|
+
animationName: oo
|
|
3874
|
+
},
|
|
3875
|
+
"&.fadeOutBottomRight": {
|
|
3876
|
+
animationFillMode: "both",
|
|
3877
|
+
animationName: io
|
|
3878
|
+
},
|
|
3879
|
+
"&.fadeOutTopRight": {
|
|
3880
|
+
animationFillMode: "both",
|
|
3881
|
+
animationName: lo
|
|
3882
|
+
},
|
|
3883
|
+
"&.fadeOutBottomLeft": {
|
|
3884
|
+
animationFillMode: "both",
|
|
3885
|
+
animationName: ro
|
|
3886
|
+
}
|
|
3887
|
+
}), co = new s("flipInX", {
|
|
3888
|
+
from: {
|
|
3889
|
+
opacity: 0,
|
|
3890
|
+
animationTimingFunction: "ease-in",
|
|
3891
|
+
transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
|
|
3892
|
+
},
|
|
3893
|
+
"40%": {
|
|
3894
|
+
animationTimingFunction: "ease-in",
|
|
3895
|
+
transform: "perspective(400px) rotate3d(1, 0, 0, -20deg)"
|
|
3896
|
+
},
|
|
3897
|
+
"60%": {
|
|
3898
|
+
opacity: 1,
|
|
3899
|
+
transform: "perspective(400px) rotate3d(1, 0, 0, 10deg)"
|
|
3900
|
+
},
|
|
3901
|
+
"80%": {
|
|
3902
|
+
transform: "perspective(400px) rotate3d(1, 0, 0, -5deg)"
|
|
3903
|
+
},
|
|
3904
|
+
to: {
|
|
3905
|
+
transform: "perspective(400px)"
|
|
3906
|
+
}
|
|
3907
|
+
}), mo = new s("flipInY", {
|
|
3908
|
+
from: {
|
|
3909
|
+
opacity: 0,
|
|
3910
|
+
animationTimingFunction: "ease-in",
|
|
3911
|
+
transform: "perspective(400px) rotate3d(0, 1, 0, 90deg)"
|
|
3912
|
+
},
|
|
3913
|
+
"40%": {
|
|
3914
|
+
animationTimingFunction: "ease-in",
|
|
3915
|
+
transform: "perspective(400px) rotate3d(0, 1, 0, -20deg)"
|
|
3916
|
+
},
|
|
3917
|
+
"60%": {
|
|
3918
|
+
opacity: 1,
|
|
3919
|
+
transform: "perspective(400px) rotate3d(0, 1, 0, 10deg)"
|
|
3920
|
+
},
|
|
3921
|
+
"80%": {
|
|
3922
|
+
transform: "perspective(400px) rotate3d(0, 1, 0, -5deg)"
|
|
3923
|
+
},
|
|
3924
|
+
to: {
|
|
3925
|
+
transform: "perspective(400px)"
|
|
3926
|
+
}
|
|
3927
|
+
}), fo = new s("flipOutX", {
|
|
3928
|
+
from: {
|
|
3929
|
+
transform: "perspective(400px)"
|
|
3930
|
+
},
|
|
3931
|
+
"40%": {
|
|
3932
|
+
opacity: 1,
|
|
3933
|
+
transform: "perspective(400px) rotate3d(1, 0, 0, -20deg)"
|
|
3934
|
+
},
|
|
3935
|
+
to: {
|
|
3936
|
+
opacity: 0,
|
|
3937
|
+
transform: "perspective(400px) rotate3d(1, 0, 0, 90deg)"
|
|
3938
|
+
}
|
|
3939
|
+
}), go = new s("flipOutY", {
|
|
3940
|
+
from: {
|
|
3941
|
+
transform: "perspective(400px)"
|
|
3942
|
+
},
|
|
3943
|
+
"40%": {
|
|
3944
|
+
opacity: 1,
|
|
3945
|
+
transform: "perspective(400px) rotate3d(0, 1, 0, -15deg)"
|
|
3946
|
+
},
|
|
3947
|
+
to: {
|
|
3948
|
+
opacity: 0,
|
|
3949
|
+
transform: "perspective(400px) rotate3d(0, 1, 0, 90deg)"
|
|
3950
|
+
}
|
|
3951
|
+
}), ho = () => ({
|
|
3952
|
+
"&.flipInX": {
|
|
3953
|
+
animationFillMode: "both",
|
|
3954
|
+
backfaceVisibility: "visible !important",
|
|
3955
|
+
animationName: co
|
|
3956
|
+
},
|
|
3957
|
+
"&.flipInY": {
|
|
3958
|
+
animationFillMode: "both",
|
|
3959
|
+
backfaceVisibility: "visible !important",
|
|
3960
|
+
animationName: mo
|
|
3961
|
+
}
|
|
3962
|
+
}), yo = () => ({
|
|
3963
|
+
"&.flipOutX": {
|
|
3964
|
+
animationFillMode: "both",
|
|
3965
|
+
backfaceVisibility: "visible !important",
|
|
3966
|
+
animationDuration: `${0.3 * 0.75}s !important`,
|
|
3967
|
+
animationName: fo
|
|
3968
|
+
},
|
|
3969
|
+
"&.flipOutY": {
|
|
3970
|
+
animationFillMode: "both",
|
|
3971
|
+
backfaceVisibility: "visible !important",
|
|
3972
|
+
animationDuration: `${0.3 * 0.75}s !important`,
|
|
3973
|
+
animationName: go
|
|
3974
|
+
}
|
|
3975
|
+
}), bo = new s("lightSpeedInLeft", {
|
|
3976
|
+
from: {
|
|
3977
|
+
opacity: 0,
|
|
3978
|
+
transform: "translate3d(-100%, 0, 0) skewX(30deg)"
|
|
3979
|
+
},
|
|
3980
|
+
"60%": {
|
|
3981
|
+
opacity: 1,
|
|
3982
|
+
transform: "skewX(-20deg)"
|
|
3983
|
+
},
|
|
3984
|
+
"80%": {
|
|
3985
|
+
transform: "skewX(5deg)"
|
|
3986
|
+
},
|
|
3987
|
+
to: {
|
|
3988
|
+
transform: "translate3d(0, 0, 0)"
|
|
3989
|
+
}
|
|
3990
|
+
}), po = new s("lightSpeedInRight", {
|
|
3991
|
+
from: {
|
|
3992
|
+
opacity: 0,
|
|
3993
|
+
transform: "translate3d(100%, 0, 0) skewX(-30deg)"
|
|
3994
|
+
},
|
|
3995
|
+
"60%": {
|
|
3996
|
+
opacity: 1,
|
|
3997
|
+
transform: "skewX(20deg)"
|
|
3998
|
+
},
|
|
3999
|
+
"80%": {
|
|
4000
|
+
transform: "skewX(-5deg)"
|
|
4001
|
+
},
|
|
4002
|
+
to: {
|
|
4003
|
+
transform: "translate3d(0, 0, 0)"
|
|
4004
|
+
}
|
|
4005
|
+
}), vo = new s("lightSpeedOutLeft", {
|
|
4006
|
+
from: {
|
|
4007
|
+
opacity: 1
|
|
4008
|
+
},
|
|
4009
|
+
to: {
|
|
4010
|
+
opacity: 0,
|
|
4011
|
+
transform: "translate3d(-100%, 0, 0) skewX(-30deg)"
|
|
4012
|
+
}
|
|
4013
|
+
}), xo = new s("lightSpeedOutRight", {
|
|
4014
|
+
from: {
|
|
4015
|
+
opacity: 1
|
|
4016
|
+
},
|
|
4017
|
+
to: {
|
|
4018
|
+
opacity: 0,
|
|
4019
|
+
transform: "translate3d(100%, 0, 0) skewX(30deg)"
|
|
4020
|
+
}
|
|
4021
|
+
}), Co = () => ({
|
|
4022
|
+
"&.lightSpeedInLeft": {
|
|
4023
|
+
animationFillMode: "both",
|
|
4024
|
+
animationTimingFunction: "ease-out",
|
|
4025
|
+
animationName: bo
|
|
4026
|
+
},
|
|
4027
|
+
"&.lightSpeedInRight": {
|
|
4028
|
+
animationFillMode: "both",
|
|
4029
|
+
animationTimingFunction: "ease-out",
|
|
4030
|
+
animationName: po
|
|
4031
|
+
}
|
|
4032
|
+
}), wo = () => ({
|
|
4033
|
+
"&.lightSpeedOutLeft": {
|
|
4034
|
+
animationFillMode: "both",
|
|
4035
|
+
animationTimingFunction: "ease-in",
|
|
4036
|
+
animationName: vo
|
|
4037
|
+
},
|
|
4038
|
+
"&.lightSpeedOutRight": {
|
|
4039
|
+
animationFillMode: "both",
|
|
4040
|
+
animationTimingFunction: "ease-in",
|
|
4041
|
+
animationName: xo
|
|
4042
|
+
}
|
|
4043
|
+
}), So = new s("rotateIn", {
|
|
4044
|
+
from: {
|
|
4045
|
+
opacity: 0,
|
|
4046
|
+
transform: "rotate3d(0, 0, 1, -200deg)"
|
|
4047
|
+
},
|
|
4048
|
+
to: {
|
|
4049
|
+
opacity: 1,
|
|
4050
|
+
transform: "translate3d(0, 0, 0)"
|
|
4051
|
+
}
|
|
4052
|
+
}), Io = new s("rotateInDownLeft", {
|
|
4053
|
+
from: {
|
|
4054
|
+
opacity: 0,
|
|
4055
|
+
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4056
|
+
},
|
|
4057
|
+
to: {
|
|
4058
|
+
opacity: 1,
|
|
4059
|
+
transform: "translate3d(0, 0, 0)"
|
|
4060
|
+
}
|
|
4061
|
+
}), Mo = new s("rotateInDownRight", {
|
|
4062
|
+
from: {
|
|
4063
|
+
opacity: 0,
|
|
4064
|
+
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
4065
|
+
},
|
|
4066
|
+
to: {
|
|
4067
|
+
opacity: 1,
|
|
4068
|
+
transform: "translate3d(0, 0, 0)"
|
|
4069
|
+
}
|
|
4070
|
+
}), Oo = new s("rotateInUpLeft", {
|
|
4071
|
+
from: {
|
|
4072
|
+
opacity: 0,
|
|
4073
|
+
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
4074
|
+
},
|
|
4075
|
+
to: {
|
|
4076
|
+
opacity: 1,
|
|
4077
|
+
transform: "translate3d(0, 0, 0)"
|
|
4078
|
+
}
|
|
4079
|
+
}), Ro = new s("rotateInUpRight", {
|
|
4080
|
+
from: {
|
|
4081
|
+
opacity: 0,
|
|
4082
|
+
transform: "rotate3d(0, 0, 1, -90deg)"
|
|
4083
|
+
},
|
|
4084
|
+
to: {
|
|
4085
|
+
opacity: 1,
|
|
4086
|
+
transform: "translate3d(0, 0, 0)"
|
|
4087
|
+
}
|
|
4088
|
+
}), ko = new s("rotateOut", {
|
|
4089
|
+
from: {
|
|
4090
|
+
opacity: 1
|
|
4091
|
+
},
|
|
4092
|
+
to: {
|
|
4093
|
+
opacity: 0,
|
|
4094
|
+
transform: "rotate3d(0, 0, 1, 200deg)"
|
|
4095
|
+
}
|
|
4096
|
+
}), Bo = new s("rotateOutDownLeft", {
|
|
4097
|
+
from: {
|
|
4098
|
+
opacity: 1
|
|
4099
|
+
},
|
|
4100
|
+
to: {
|
|
4101
|
+
opacity: 0,
|
|
4102
|
+
transform: "rotate3d(0, 0, 1, 45deg)"
|
|
4103
|
+
}
|
|
4104
|
+
}), $o = new s("rotateOutDownRight", {
|
|
4105
|
+
from: {
|
|
4106
|
+
opacity: 1
|
|
4107
|
+
},
|
|
4108
|
+
to: {
|
|
4109
|
+
opacity: 0,
|
|
4110
|
+
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4111
|
+
}
|
|
4112
|
+
}), Po = new s("rotateOutUpLeft", {
|
|
4113
|
+
from: {
|
|
4114
|
+
opacity: 1
|
|
4115
|
+
},
|
|
4116
|
+
to: {
|
|
4117
|
+
opacity: 0,
|
|
4118
|
+
transform: "rotate3d(0, 0, 1, -45deg)"
|
|
4119
|
+
}
|
|
4120
|
+
}), Fo = new s("rotateOutUpRight", {
|
|
4121
|
+
from: {
|
|
4122
|
+
opacity: 1
|
|
4123
|
+
},
|
|
4124
|
+
to: {
|
|
4125
|
+
opacity: 0,
|
|
4126
|
+
transform: "rotate3d(0, 0, 1, 90deg)"
|
|
4127
|
+
}
|
|
4128
|
+
}), To = () => ({
|
|
4129
|
+
"&.rotateIn": {
|
|
4130
|
+
animationFillMode: "both",
|
|
4131
|
+
transformOrigin: "center",
|
|
4132
|
+
animationName: So
|
|
4133
|
+
},
|
|
4134
|
+
"&.rotateInDownLeft": {
|
|
4135
|
+
animationFillMode: "both",
|
|
4136
|
+
transformOrigin: "left bottom",
|
|
4137
|
+
animationName: Io
|
|
4138
|
+
},
|
|
4139
|
+
"&.rotateInDownRight": {
|
|
4140
|
+
animationFillMode: "both",
|
|
4141
|
+
transformOrigin: "right bottom",
|
|
4142
|
+
animationName: Mo
|
|
4143
|
+
},
|
|
4144
|
+
"&.rotateInUpLeft": {
|
|
4145
|
+
animationFillMode: "both",
|
|
4146
|
+
transformOrigin: "left bottom",
|
|
4147
|
+
animationName: Oo
|
|
4148
|
+
},
|
|
4149
|
+
"&.rotateInUpRight": {
|
|
4150
|
+
animationFillMode: "both",
|
|
4151
|
+
transformOrigin: "right bottom",
|
|
4152
|
+
animationName: Ro
|
|
4153
|
+
}
|
|
4154
|
+
}), Lo = () => ({
|
|
4155
|
+
"&.rotateOut": {
|
|
4156
|
+
animationFillMode: "both",
|
|
4157
|
+
transformOrigin: "center",
|
|
4158
|
+
animationName: ko
|
|
4159
|
+
},
|
|
4160
|
+
"&.rotateOutDownLeft": {
|
|
4161
|
+
animationFillMode: "both",
|
|
4162
|
+
transformOrigin: "left bottom",
|
|
4163
|
+
animationName: Bo
|
|
4164
|
+
},
|
|
4165
|
+
"&.rotateOutDownRight": {
|
|
4166
|
+
animationFillMode: "both",
|
|
4167
|
+
transformOrigin: "right bottom",
|
|
4168
|
+
animationName: $o
|
|
4169
|
+
},
|
|
4170
|
+
"&.rotateOutUpLeft": {
|
|
4171
|
+
animationFillMode: "both",
|
|
4172
|
+
transformOrigin: "left bottom",
|
|
4173
|
+
animationName: Po
|
|
4174
|
+
},
|
|
4175
|
+
"&.rotateOutUpRight": {
|
|
4176
|
+
animationFillMode: "both",
|
|
4177
|
+
transformOrigin: "right bottom",
|
|
4178
|
+
animationName: Fo
|
|
4179
|
+
}
|
|
4180
|
+
}), Do = new s("rollIn", {
|
|
4181
|
+
from: {
|
|
4182
|
+
opacity: 0,
|
|
4183
|
+
transform: "translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"
|
|
4184
|
+
},
|
|
4185
|
+
to: {
|
|
4186
|
+
opacity: 1,
|
|
4187
|
+
transform: "translate3d(0, 0, 0)"
|
|
4188
|
+
}
|
|
4189
|
+
}), No = new s("rollOut", {
|
|
4190
|
+
from: {
|
|
4191
|
+
opacity: 1
|
|
4192
|
+
},
|
|
4193
|
+
to: {
|
|
4194
|
+
opacity: 0,
|
|
4195
|
+
transform: "translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"
|
|
4196
|
+
}
|
|
4197
|
+
}), zo = () => ({
|
|
4198
|
+
"&.rollIn": {
|
|
4199
|
+
animationFillMode: "both",
|
|
4200
|
+
animationName: Do
|
|
4201
|
+
}
|
|
4202
|
+
}), Ho = () => ({
|
|
4203
|
+
"&.rollOut": {
|
|
4204
|
+
animationFillMode: "both",
|
|
4205
|
+
animationName: No
|
|
4206
|
+
}
|
|
4207
|
+
}), Vo = new s("zoomIn", {
|
|
4208
|
+
from: {
|
|
4209
|
+
opacity: 0,
|
|
4210
|
+
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
4211
|
+
},
|
|
4212
|
+
"50%": {
|
|
4213
|
+
opacity: 1
|
|
4214
|
+
}
|
|
4215
|
+
}), jo = new s("zoomInDown", {
|
|
4216
|
+
from: {
|
|
4217
|
+
opacity: 0,
|
|
4218
|
+
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",
|
|
4219
|
+
animationTimingFunction: "cubic-bezier(0.55, 0.055, 0.675, 0.19)"
|
|
4220
|
+
},
|
|
4221
|
+
"60%": {
|
|
4222
|
+
opacity: 1,
|
|
4223
|
+
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
4224
|
+
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4225
|
+
}
|
|
4226
|
+
}), Wo = new s("zoomInLeft", {
|
|
4227
|
+
from: {
|
|
4228
|
+
opacity: 0,
|
|
4229
|
+
transform: "scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",
|
|
4230
|
+
animationTimingFunction: "cubic-bezier(0.55, 0.055, 0.675, 0.19)"
|
|
4231
|
+
},
|
|
4232
|
+
"60%": {
|
|
4233
|
+
opacity: 1,
|
|
4234
|
+
transform: "scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",
|
|
4235
|
+
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4236
|
+
}
|
|
4237
|
+
}), Ao = new s("zoomInRight", {
|
|
4238
|
+
from: {
|
|
4239
|
+
opacity: 0,
|
|
4240
|
+
transform: "scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",
|
|
4241
|
+
animationTimingFunction: "cubic-bezier(0.55, 0.055, 0.675, 0.19)"
|
|
4242
|
+
},
|
|
4243
|
+
"60%": {
|
|
4244
|
+
opacity: 1,
|
|
4245
|
+
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",
|
|
4246
|
+
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4247
|
+
}
|
|
4248
|
+
}), Ko = new s("zoomInUp", {
|
|
4249
|
+
from: {
|
|
4250
|
+
opacity: 0,
|
|
4251
|
+
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",
|
|
4252
|
+
animationTimingFunction: "cubic-bezier(0.55, 0.055, 0.675, 0.19)"
|
|
4253
|
+
},
|
|
4254
|
+
"60%": {
|
|
4255
|
+
opacity: 1,
|
|
4256
|
+
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
4257
|
+
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4258
|
+
}
|
|
4259
|
+
}), Uo = new s("zoomOut", {
|
|
4260
|
+
from: {
|
|
4261
|
+
opacity: 1
|
|
4262
|
+
},
|
|
4263
|
+
"50%": {
|
|
4264
|
+
opacity: 0,
|
|
4265
|
+
transform: "scale3d(0.3, 0.3, 0.3)"
|
|
4266
|
+
},
|
|
4267
|
+
to: {
|
|
4268
|
+
opacity: 0
|
|
4269
|
+
}
|
|
4270
|
+
}), Eo = new s("zoomOutDown", {
|
|
4271
|
+
"40%": {
|
|
4272
|
+
opacity: 1,
|
|
4273
|
+
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",
|
|
4274
|
+
animationTimingFunction: "cubic-bezier(0.55, 0.055, 0.675, 0.19)"
|
|
4275
|
+
},
|
|
4276
|
+
to: {
|
|
4277
|
+
opacity: 0,
|
|
4278
|
+
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",
|
|
4279
|
+
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4280
|
+
}
|
|
4281
|
+
}), Xo = new s("zoomOutLeft", {
|
|
4282
|
+
"40%": {
|
|
4283
|
+
opacity: 1,
|
|
4284
|
+
transform: "scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"
|
|
4285
|
+
},
|
|
4286
|
+
to: {
|
|
4287
|
+
opacity: 0,
|
|
4288
|
+
transform: "scale(0.1) translate3d(-2000px, 0, 0)"
|
|
4289
|
+
}
|
|
4290
|
+
}), Yo = new s("zoomOutRight", {
|
|
4291
|
+
"40%": {
|
|
4292
|
+
opacity: 1,
|
|
4293
|
+
transform: "scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"
|
|
4294
|
+
},
|
|
4295
|
+
to: {
|
|
4296
|
+
opacity: 0,
|
|
4297
|
+
transform: "scale(0.1) translate3d(2000px, 0, 0)"
|
|
4298
|
+
}
|
|
4299
|
+
}), _o = new s("zoomOutUp", {
|
|
4300
|
+
"40%": {
|
|
4301
|
+
opacity: 1,
|
|
4302
|
+
transform: "scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",
|
|
4303
|
+
animationTimingFunction: "cubic-bezier(0.55, 0.055, 0.675, 0.19)"
|
|
4304
|
+
},
|
|
4305
|
+
to: {
|
|
4306
|
+
opacity: 0,
|
|
4307
|
+
transform: "scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",
|
|
4308
|
+
animationTimingFunction: "cubic-bezier(0.175, 0.885, 0.32, 1)"
|
|
4309
|
+
}
|
|
4310
|
+
}), Go = () => ({
|
|
4311
|
+
"&.zoomIn": {
|
|
4312
|
+
animationFillMode: "both",
|
|
4313
|
+
animationName: Vo
|
|
4314
|
+
},
|
|
4315
|
+
"&.zoomInDown": {
|
|
4316
|
+
animationFillMode: "both",
|
|
4317
|
+
animationName: jo
|
|
4318
|
+
},
|
|
4319
|
+
"&.zoomInLeft": {
|
|
4320
|
+
animationFillMode: "both",
|
|
4321
|
+
animationName: Wo
|
|
4322
|
+
},
|
|
4323
|
+
"&.zoomInRight": {
|
|
4324
|
+
animationFillMode: "both",
|
|
4325
|
+
animationName: Ao
|
|
4326
|
+
},
|
|
4327
|
+
"&.zoomInUp": {
|
|
4328
|
+
animationFillMode: "both",
|
|
4329
|
+
animationName: Ko
|
|
4330
|
+
}
|
|
4331
|
+
}), qo = () => ({
|
|
4332
|
+
"&.zoomOut": {
|
|
4333
|
+
animationFillMode: "both",
|
|
4334
|
+
animationName: Uo
|
|
4335
|
+
},
|
|
4336
|
+
"&.zoomOutDown": {
|
|
4337
|
+
animationFillMode: "both",
|
|
4338
|
+
transformOrigin: "center bottom",
|
|
4339
|
+
animationName: Eo
|
|
4340
|
+
},
|
|
4341
|
+
"&.zoomOutLeft": {
|
|
4342
|
+
animationFillMode: "both",
|
|
4343
|
+
transformOrigin: "left center",
|
|
4344
|
+
animationName: Xo
|
|
4345
|
+
},
|
|
4346
|
+
"&.zoomOutRight": {
|
|
4347
|
+
animationFillMode: "both",
|
|
4348
|
+
transformOrigin: "right center",
|
|
4349
|
+
animationName: Yo
|
|
4350
|
+
},
|
|
4351
|
+
"&.zoomOutUp": {
|
|
4352
|
+
animationFillMode: "both",
|
|
4353
|
+
transformOrigin: "center bottom",
|
|
4354
|
+
animationName: _o
|
|
4355
|
+
}
|
|
4356
|
+
}), Zo = new s("slideInDown", {
|
|
4357
|
+
from: {
|
|
4358
|
+
transform: "translate3d(0, -100%, 0)",
|
|
4359
|
+
visibility: "visible"
|
|
4360
|
+
},
|
|
4361
|
+
to: {
|
|
4362
|
+
transform: "translate3d(0, 0, 0)"
|
|
4363
|
+
}
|
|
4364
|
+
}), Jo = new s("slideInLeft", {
|
|
4365
|
+
from: {
|
|
4366
|
+
transform: "translate3d(-100%, 0, 0)",
|
|
4367
|
+
visibility: "visible"
|
|
4368
|
+
},
|
|
4369
|
+
to: {
|
|
4370
|
+
transform: "translate3d(0, 0, 0)"
|
|
4371
|
+
}
|
|
4372
|
+
}), Qo = new s("slideInRight", {
|
|
4373
|
+
from: {
|
|
4374
|
+
transform: "translate3d(100%, 0, 0)",
|
|
4375
|
+
visibility: "visible"
|
|
4376
|
+
},
|
|
4377
|
+
to: {
|
|
4378
|
+
transform: "translate3d(0, 0, 0)"
|
|
4379
|
+
}
|
|
4380
|
+
}), ei = new s("slideInUp", {
|
|
4381
|
+
from: {
|
|
4382
|
+
transform: "translate3d(0, 100%, 0)",
|
|
4383
|
+
visibility: "visible"
|
|
4384
|
+
},
|
|
4385
|
+
to: {
|
|
4386
|
+
transform: "translate3d(0, 0, 0)"
|
|
4387
|
+
}
|
|
4388
|
+
}), ti = new s("slideOutDown", {
|
|
4389
|
+
from: {
|
|
4390
|
+
transform: "translate3d(0, 0, 0)"
|
|
4391
|
+
},
|
|
4392
|
+
to: {
|
|
4393
|
+
transform: "translate3d(0, 100%, 0)",
|
|
4394
|
+
visibility: "hidden"
|
|
4395
|
+
}
|
|
4396
|
+
}), ai = new s("slideOutLeft", {
|
|
4397
|
+
from: {
|
|
4398
|
+
transform: "translate3d(0, 0, 0)"
|
|
4399
|
+
},
|
|
4400
|
+
to: {
|
|
4401
|
+
transform: "translate3d(-100%, 0, 0)",
|
|
4402
|
+
visibility: "hidden"
|
|
4403
|
+
}
|
|
4404
|
+
}), ni = new s("slideOutRight", {
|
|
4405
|
+
from: {
|
|
4406
|
+
transform: "translate3d(0, 0, 0)"
|
|
4407
|
+
},
|
|
4408
|
+
to: {
|
|
4409
|
+
transform: "translate3d(100%, 0, 0)",
|
|
4410
|
+
visibility: "hidden"
|
|
4411
|
+
}
|
|
4412
|
+
}), oi = new s("slideOutUp", {
|
|
4413
|
+
from: {
|
|
4414
|
+
transform: "translate3d(0, 0, 0)"
|
|
4415
|
+
},
|
|
4416
|
+
to: {
|
|
4417
|
+
transform: "translate3d(0, -100%, 0)",
|
|
4418
|
+
visibility: "hidden"
|
|
4419
|
+
}
|
|
4420
|
+
}), ii = () => ({
|
|
4421
|
+
"&.slideInDown": {
|
|
4422
|
+
animationFillMode: "both",
|
|
4423
|
+
animationName: Zo
|
|
4424
|
+
},
|
|
4425
|
+
"&.slideInLeft": {
|
|
4426
|
+
animationFillMode: "both",
|
|
4427
|
+
animationName: Jo
|
|
4428
|
+
},
|
|
4429
|
+
"&.slideInRight": {
|
|
4430
|
+
animationFillMode: "both",
|
|
4431
|
+
animationName: Qo
|
|
4432
|
+
},
|
|
4433
|
+
"&.slideInUp": {
|
|
4434
|
+
animationFillMode: "both",
|
|
4435
|
+
animationName: ei
|
|
4436
|
+
}
|
|
4437
|
+
}), li = () => ({
|
|
4438
|
+
"&.slideOutDown": {
|
|
4439
|
+
animationFillMode: "both",
|
|
4440
|
+
animationName: ti
|
|
4441
|
+
},
|
|
4442
|
+
"&.slideOutLeft": {
|
|
4443
|
+
animationFillMode: "both",
|
|
4444
|
+
animationName: ai
|
|
4445
|
+
},
|
|
4446
|
+
"&.slideOutRight": {
|
|
4447
|
+
animationFillMode: "both",
|
|
4448
|
+
animationName: ni
|
|
4449
|
+
},
|
|
4450
|
+
"&.slideOutUp": {
|
|
4451
|
+
animationFillMode: "both",
|
|
4452
|
+
animationName: oi
|
|
4453
|
+
}
|
|
4454
|
+
}), ri = (e) => ({
|
|
4455
|
+
[e.componentCls]: {
|
|
4456
|
+
"&-enter": {
|
|
4457
|
+
background: "transparent",
|
|
4458
|
+
animationDuration: ".3s !important",
|
|
4459
|
+
...wn(),
|
|
4460
|
+
...Ln(),
|
|
4461
|
+
...so(),
|
|
4462
|
+
...ho(),
|
|
4463
|
+
...Co(),
|
|
4464
|
+
...To(),
|
|
4465
|
+
...zo(),
|
|
4466
|
+
...Go(),
|
|
4467
|
+
...ii()
|
|
4468
|
+
},
|
|
4469
|
+
"&-leave": {
|
|
4470
|
+
display: "none",
|
|
4471
|
+
background: "transparent",
|
|
4472
|
+
animationDuration: ".3s !important",
|
|
4473
|
+
...Sn(),
|
|
4474
|
+
...Dn(),
|
|
4475
|
+
...uo(),
|
|
4476
|
+
...yo(),
|
|
4477
|
+
...wo(),
|
|
4478
|
+
...Lo(),
|
|
4479
|
+
...Ho(),
|
|
4480
|
+
...qo(),
|
|
4481
|
+
...li()
|
|
4482
|
+
}
|
|
4483
|
+
}
|
|
4484
|
+
});
|
|
4485
|
+
function si(e) {
|
|
4486
|
+
return De("LayoutPageTranstion", (t) => {
|
|
4487
|
+
const n = Ne(t);
|
|
4488
|
+
return [ri(n)];
|
|
4489
|
+
}, e);
|
|
4490
|
+
}
|
|
4491
|
+
const ki = /* @__PURE__ */ j({
|
|
4492
|
+
name: "PageTranstion",
|
|
4493
|
+
props: {
|
|
4494
|
+
disabled: {
|
|
4495
|
+
type: Boolean,
|
|
4496
|
+
default: !1
|
|
4497
|
+
},
|
|
4498
|
+
reverse: {
|
|
4499
|
+
type: Boolean,
|
|
4500
|
+
default: !0
|
|
4501
|
+
},
|
|
4502
|
+
name: {
|
|
4503
|
+
type: String,
|
|
4504
|
+
default: "bounce"
|
|
4505
|
+
},
|
|
4506
|
+
direction: String
|
|
4507
|
+
},
|
|
4508
|
+
setup(e, {
|
|
4509
|
+
slots: t
|
|
4510
|
+
}) {
|
|
4511
|
+
const n = me({
|
|
4512
|
+
suffixCls: "page-transtion",
|
|
4513
|
+
isPor: !0
|
|
4514
|
+
}), {
|
|
4515
|
+
wrapSSR: o,
|
|
4516
|
+
hashId: i
|
|
4517
|
+
} = si(n), u = p(() => [c(!1), `${n}-enter`, i.value].join(" ")), f = p(() => [c(!0), `${n}-leave`, i.value].join(" ")), c = (v) => {
|
|
4518
|
+
const O = Ve.preset.find((l) => e.name == l.name);
|
|
4519
|
+
if (O == null)
|
|
4520
|
+
return "";
|
|
4521
|
+
let h = "";
|
|
4522
|
+
e.direction == null ? h = O.directions[0] : h = O.directions.find((l) => l == e.direction) || "", h = h == null || h === "default" ? "" : h, h != "" && (h = v && e.reverse ? w(h, O.directions) : h, h = h[0].toUpperCase() + h.substring(1));
|
|
4523
|
+
const T = v ? "Out" : "In";
|
|
4524
|
+
return O.name + T + h;
|
|
4525
|
+
}, w = (v, O) => {
|
|
4526
|
+
if (v.length == 0 || v == "x" || v == "y")
|
|
4527
|
+
return v;
|
|
4528
|
+
let h = O.indexOf(v);
|
|
4529
|
+
return h = h % 2 == 1 ? h - 1 : h + 1, O[h];
|
|
4530
|
+
};
|
|
4531
|
+
return () => {
|
|
4532
|
+
var v;
|
|
4533
|
+
return e.disabled ? (v = t.default) == null ? void 0 : v.call(t) : o(a(Pt, {
|
|
4534
|
+
enterActiveClass: u.value,
|
|
4535
|
+
leaveActiveClass: f.value
|
|
4536
|
+
}, {
|
|
4537
|
+
default: () => {
|
|
4538
|
+
var O;
|
|
4539
|
+
return [(O = t.default) == null ? void 0 : O.call(t)];
|
|
4540
|
+
}
|
|
4541
|
+
}));
|
|
4542
|
+
};
|
|
4543
|
+
}
|
|
4544
|
+
});
|
|
4545
|
+
export {
|
|
4546
|
+
ft as BaseMenu,
|
|
4547
|
+
Qa as DefaultHeader,
|
|
4548
|
+
Mi as GProLayout,
|
|
4549
|
+
ke as GlobalFooter,
|
|
4550
|
+
Ii as PageContainer,
|
|
4551
|
+
sa as PageLoading,
|
|
4552
|
+
ki as PageTranstion,
|
|
4553
|
+
Ri as SettingDrawer,
|
|
4554
|
+
Re as SiderMenuWrapper,
|
|
4555
|
+
Ke as WrapContent,
|
|
4556
|
+
Ie as baseMenuProps,
|
|
4557
|
+
ha as clearMenuItem,
|
|
4558
|
+
wa as createContext,
|
|
4559
|
+
Ia as createRouteContext,
|
|
4560
|
+
ya as flatMap,
|
|
4561
|
+
Si as getMatchedList,
|
|
4562
|
+
Oi as getMenuData,
|
|
4563
|
+
ba as getMenuFirstChildren,
|
|
4564
|
+
pa as getMenuFirstLastChildPath,
|
|
4565
|
+
va as handleThemeConfig,
|
|
4566
|
+
Ma as provideProLayoutContext,
|
|
4567
|
+
Sa as useContext,
|
|
4568
|
+
ee as useProLayoutContext
|
|
4569
|
+
};
|