jmash-core 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{401-Do8xnEsN.mjs → 401-BkJPlIzp.mjs} +2 -2
- package/dist/{404-D1L3bBKj.mjs → 404-BBmYfUdE.mjs} +1 -1
- package/dist/{BarChart-CfcVJz3-.mjs → BarChart-B6A8iUXj.mjs} +2 -2
- package/dist/{FileSaver.min-C3PXR_ER.mjs → FileSaver.min-CgOjN3Qg.mjs} +1 -1
- package/dist/{PieChart-6YLME4bj.mjs → PieChart-DX64TYZz.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-CzuULwXY.mjs → PieChart.vue_vue_type_script_setup_true_lang-DtGRvxtk.mjs} +2 -2
- package/dist/{RadarChart-DkmgXM6y.mjs → RadarChart-bUPojoRx.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-NTNi_I9_.mjs → RadarChart.vue_vue_type_script_setup_true_lang-BmDtds_e.mjs} +2 -2
- package/dist/{edit-YJP7pN6W.mjs → edit-BSOs3vN5.mjs} +1 -1
- package/dist/{edit-DjN392jC.mjs → edit-B_7Qd0xx.mjs} +1 -1
- package/dist/{edit-DGe7AWsr.mjs → edit-Cm32AuKE.mjs} +37 -37
- package/dist/{edit-BUeKYrEZ.mjs → edit-DI9xVL3f.mjs} +1 -1
- package/dist/{edit-CkpeOqrr.mjs → edit-HfjGZfbA.mjs} +1 -1
- package/dist/edit-K-SeNsHi.mjs +4 -0
- package/dist/{edit-CJuMrQ46.mjs → edit-SaGTHCRi.mjs} +52 -51
- package/dist/edit-syovGHsx.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-RBjkUr1y.mjs → edit.vue_vue_type_script_setup_true_lang-BY6U7HyH.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DEydJiSf.mjs → edit.vue_vue_type_script_setup_true_lang-BZIGUF15.mjs} +19 -19
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BtM452jP.mjs → edit.vue_vue_type_script_setup_true_lang-CXKNjagX.mjs} +12 -12
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BWtQvmLi.mjs → edit.vue_vue_type_script_setup_true_lang-CvQyDvvs.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DI-oeRPA.mjs → edit.vue_vue_type_script_setup_true_lang-DOBRRSJo.mjs} +4 -4
- package/dist/{edit.vue_vue_type_script_setup_true_lang-djIfNPqQ.mjs → edit.vue_vue_type_script_setup_true_lang-DdpRY-Il.mjs} +1 -1
- package/dist/{el-card-C861yBJo.mjs → el-card-DO00Wvz9.mjs} +1 -1
- package/dist/{el-col-BBiMr5pm.mjs → el-col-DFdwiQq6.mjs} +1 -1
- package/dist/{el-date-picker-N5aiMKSy.mjs → el-date-picker-BiAhUGOG.mjs} +143 -143
- package/dist/{el-divider-QMj1kMtJ.mjs → el-divider-c2CLca4o.mjs} +1 -1
- package/dist/{el-dropdown-item-4ws609Gw.mjs → el-dropdown-item-9E9GqcUL.mjs} +22 -22
- package/dist/{el-tree-select-DdZxfrNV.mjs → el-tree-select-CC0XwXVL.mjs} +25 -25
- package/dist/{index-C__OmU1O.mjs → index-B2TvQOt9.mjs} +4 -4
- package/dist/{index-DnSJxj9r.mjs → index-BBMnmuNy.mjs} +1105 -1096
- package/dist/{index-Dn-psVpr.mjs → index-BLIll5te.mjs} +6 -6
- package/dist/{index-CrZPfuW6.mjs → index-Bozt9oGT.mjs} +73 -71
- package/dist/{index-H7-W4HC2.mjs → index-ByZF--LW.mjs} +1 -1
- package/dist/{index-BzT4__Is.mjs → index-CMrLCILj.mjs} +105 -104
- package/dist/{index-B7u0TetV.mjs → index-CRuu1sq3.mjs} +63 -60
- package/dist/{index-DFVq4R0u.mjs → index-CgTJTyzP.mjs} +1 -1
- package/dist/{index-hMoSvG6q.mjs → index-CiTJNDrg.mjs} +76 -73
- package/dist/{index-DD1K2w1b.mjs → index-CovctCXh.mjs} +80 -71
- package/dist/{index-NVKBuLg_.mjs → index-DDZExl-h.mjs} +77 -73
- package/dist/{index-BZBpY0uA.mjs → index-DQe98_8-.mjs} +65 -62
- package/dist/{index-Cmlc_Bb4.mjs → index-DSMgAe9r.mjs} +1 -1
- package/dist/{index-DtR1eBZg.mjs → index-DfG2Ushb.mjs} +1 -1
- package/dist/{index-CkXpK-zH.mjs → index-Dy5Mc1xa.mjs} +6911 -7001
- package/dist/{index-AiS44_Xc.mjs → index-Dzz_DJ2A.mjs} +25 -24
- package/dist/{index-BX1Jx_xA.mjs → index-QGbAm-j4.mjs} +1 -1
- package/dist/{index-9TwUBNc5.mjs → index-UYeY7Byx.mjs} +1 -1
- package/dist/{index-DOPTH9F2.mjs → index-WXrB1MMY.mjs} +112 -110
- package/dist/{index-Be59bIqU.mjs → index-qw7NC8eE.mjs} +67 -65
- package/dist/index.mjs +16 -16
- package/dist/{index.vue_vue_type_script_setup_true_lang-up5cpReQ.mjs → index.vue_vue_type_script_setup_true_lang-DNUiKzAB.mjs} +2 -2
- package/dist/index.vue_vue_type_script_setup_true_lang-KEqvSfud.mjs +280 -0
- package/dist/{picture-o8CKMR0j.mjs → picture-B-Z93WvM.mjs} +2 -2
- package/dist/{position-BUALjtY9.mjs → position-vpBZqxst.mjs} +1 -1
- package/dist/{profile-BLq1IvXt.mjs → profile-yHqe9ckz.mjs} +6 -6
- package/dist/runAs-30DZ0fw7.mjs +4 -0
- package/dist/runAs.vue_vue_type_script_setup_true_lang-Df5JuFXX.mjs +114 -0
- package/dist/style.css +1 -1
- package/dist/{types-JT7Xyhpz.mjs → types-B-kpFO60.mjs} +2 -2
- package/dist/{updatePwd-DnT8nEtM.mjs → updatePwd-B0jx4S2G.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-Dks8j8my.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DqPa62Sx.mjs} +3 -3
- package/dts/src/components/AppLink/index.vue.d.ts +19 -0
- package/dts/src/components/DictSelect/index.vue.d.ts +1 -1
- package/dts/src/components/Dictionary/index.vue.d.ts +1 -1
- package/dts/src/components/IconSelect/requireIcons.d.ts +1 -1
- package/dts/src/components/JmashColumnSelect/index.vue.d.ts +16 -0
- package/dts/src/components/JmashTable/index.vue.d.ts +31 -0
- package/dts/src/components/Pagination/index.vue.d.ts +3 -3
- package/dts/src/components/Table/index.vue.d.ts +2 -2
- package/dts/src/components/TableSet/index.vue.d.ts +5 -5
- package/dts/src/enums/DeviceEnum.d.ts +13 -0
- package/dts/src/enums/LayoutEnum.d.ts +17 -0
- package/dts/src/enums/MenuTypeEnum.d.ts +4 -1
- package/dts/src/enums/SidebarStatusEnum.d.ts +13 -0
- package/dts/src/enums/ThemeEnum.d.ts +17 -0
- package/dts/src/hooks/useList.d.ts +1 -0
- package/dts/src/index.d.ts +10 -3
- package/dts/src/lang/index.d.ts +91 -1
- package/dts/src/lang/package/en.d.ts +42 -0
- package/dts/src/lang/package/zh-cn.d.ts +48 -0
- package/dts/src/layout/components/AppMain/index.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarLeft.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarRight.vue.d.ts +2 -0
- package/dts/src/layout/components/Settings/components/LayoutSelect.vue.d.ts +10 -0
- package/dts/src/layout/components/Settings/components/ThemeColorPicker.vue.d.ts +10 -0
- package/dts/src/layout/components/Sidebar/components/SidebarLogo.vue.d.ts +12 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenu.vue.d.ts +50 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItem.vue.d.ts +42 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +23 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue.d.ts +2 -0
- package/dts/src/stores/index.d.ts +5 -0
- package/dts/src/stores/modules/app.d.ts +2 -0
- package/dts/src/stores/modules/permission.d.ts +2 -0
- package/dts/src/stores/modules/settings.d.ts +1 -0
- package/dts/src/stores/modules/user.d.ts +2 -0
- package/dts/src/utils/color.d.ts +69 -0
- package/dts/src/utils/common.d.ts +1 -1
- package/dts/src/utils/index.d.ts +9 -0
- package/dts/src/utils/nprogress.d.ts +4 -0
- package/dts/src/views/my/runAs.vue.d.ts +6 -0
- package/dts/src/views/system/dept/edit.vue.d.ts +3 -3
- package/dts/src/views/system/job/edit.vue.d.ts +3 -3
- package/dts/src/views/system/menu/edit.vue.d.ts +3 -3
- package/dts/src/views/system/module/edit.vue.d.ts +3 -3
- package/dts/src/views/system/operation/edit.vue.d.ts +3 -3
- package/dts/src/views/system/permission/edit.vue.d.ts +3 -3
- package/dts/src/views/system/role/edit.vue.d.ts +3 -3
- package/dts/src/views/system/user/edit.vue.d.ts +3 -3
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -4
- package/dist/edit-lwVBGzDE.mjs +0 -4
- package/dist/edit-xlxZjC4R.mjs +0 -4
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { E as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { useRoute as
|
|
6
|
-
import { _ as eo } from "./updatePwd.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
import { b as ke, i as Ee, u as ne, _ as ue, d as Ve, E as we, w as at, a as lt, c as cn, e as vt, f as dn, U as _t, g as ve, h as Fe, C as fn, j as xt, k as Dt, l as mn, m as pn, n as hn, o as vn, p as _n, q as gn, r as je, s as bn, t as Et, v as zt, x as Ht, y as Wt, z as Tt, A as re, B as yn, D as kn, F as Cn, G as $n, H as Mn, I as wn, J as Qe, K as Je, L as ut, M as Sn, T as xn, N as nt, O as En, P as It, Q as Tn, R as In, S as An, V as Pn, W as Vn, X as _e, Y as Ln, Z as Ne, $ as gt, a0 as Nn, a1 as Se, a2 as et, a3 as On, a4 as ze, a5 as Bn, a6 as ie, a7 as At, a8 as Pt, a9 as Xe, aa as ct, ab as Rn, ac as Fn, ad as Dn, ae as zn, af as bt, ag as He, ah as Hn } from "./index-Dy5Mc1xa.mjs";
|
|
2
|
+
import { E as qt, a as Kt, b as Ut } from "./el-dropdown-item-9E9GqcUL.mjs";
|
|
3
|
+
import { _ as Wn } from "./index.vue_vue_type_script_setup_true_lang-DNUiKzAB.mjs";
|
|
4
|
+
import { defineComponent as D, ref as T, provide as We, onMounted as pe, openBlock as m, createElementBlock as $, normalizeClass as w, unref as r, renderSlot as ae, getCurrentInstance as ge, inject as Le, createElementVNode as C, createBlock as L, withCtx as M, resolveDynamicComponent as st, toDisplayString as U, shallowRef as Vt, watch as ee, computed as E, normalizeStyle as ye, watchEffect as yt, Fragment as oe, renderList as xe, reactive as rt, nextTick as $e, withDirectives as Me, withKeys as Lt, createVNode as _, createCommentVNode as H, createTextVNode as Q, vShow as qe, useSlots as qn, Teleport as Kn, Transition as it, mergeProps as jt, withModifiers as Te, onBeforeUnmount as Xt, h as te, toRef as Un, resolveComponent as Oe, isRef as ot, onBeforeMount as jn, TransitionGroup as Xn, pushScopeId as Gn, popScopeId as Yn, KeepAlive as Zn, normalizeProps as Jn, guardReactiveProps as Qn } from "vue";
|
|
5
|
+
import { useRoute as Ge, useRouter as kt } from "vue-router";
|
|
6
|
+
import { _ as eo } from "./updatePwd.vue_vue_type_script_setup_true_lang-DqPa62Sx.mjs";
|
|
7
|
+
import { _ as to } from "./runAs.vue_vue_type_script_setup_true_lang-Df5JuFXX.mjs";
|
|
8
|
+
import { g as Ct } from "./position-vpBZqxst.mjs";
|
|
9
|
+
import { E as no } from "./el-divider-c2CLca4o.mjs";
|
|
10
|
+
import { storeToRefs as oo } from "pinia";
|
|
11
|
+
import { _ as ao } from "./index-QGbAm-j4.mjs";
|
|
12
|
+
const Gt = Symbol("breadcrumbKey"), lo = ke({
|
|
12
13
|
separator: {
|
|
13
14
|
type: String,
|
|
14
15
|
default: "/"
|
|
15
16
|
},
|
|
16
17
|
separatorIcon: {
|
|
17
|
-
type:
|
|
18
|
+
type: Ee
|
|
18
19
|
}
|
|
19
|
-
}),
|
|
20
|
+
}), so = D({
|
|
20
21
|
name: "ElBreadcrumb"
|
|
21
|
-
}),
|
|
22
|
-
...
|
|
23
|
-
props:
|
|
22
|
+
}), ro = /* @__PURE__ */ D({
|
|
23
|
+
...so,
|
|
24
|
+
props: lo,
|
|
24
25
|
setup(e) {
|
|
25
|
-
const n = e, t = ne("breadcrumb"), o =
|
|
26
|
-
return
|
|
26
|
+
const n = e, t = ne("breadcrumb"), o = T();
|
|
27
|
+
return We(Gt, n), pe(() => {
|
|
27
28
|
const s = o.value.querySelectorAll(`.${t.e("item")}`);
|
|
28
29
|
s.length && s[s.length - 1].setAttribute("aria-current", "page");
|
|
29
|
-
}), (s, a) => (m(),
|
|
30
|
+
}), (s, a) => (m(), $("div", {
|
|
30
31
|
ref_key: "breadcrumb",
|
|
31
32
|
ref: o,
|
|
32
33
|
class: w(r(t).b()),
|
|
@@ -37,28 +38,28 @@ const Yt = Symbol("breadcrumbKey"), ao = Ce({
|
|
|
37
38
|
], 2));
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
|
-
var
|
|
41
|
-
const
|
|
41
|
+
var io = /* @__PURE__ */ ue(ro, [["__file", "breadcrumb.vue"]]);
|
|
42
|
+
const uo = ke({
|
|
42
43
|
to: {
|
|
43
|
-
type:
|
|
44
|
+
type: Ve([String, Object]),
|
|
44
45
|
default: ""
|
|
45
46
|
},
|
|
46
47
|
replace: {
|
|
47
48
|
type: Boolean,
|
|
48
49
|
default: !1
|
|
49
50
|
}
|
|
50
|
-
}),
|
|
51
|
+
}), co = D({
|
|
51
52
|
name: "ElBreadcrumbItem"
|
|
52
|
-
}),
|
|
53
|
-
...
|
|
54
|
-
props:
|
|
53
|
+
}), fo = /* @__PURE__ */ D({
|
|
54
|
+
...co,
|
|
55
|
+
props: uo,
|
|
55
56
|
setup(e) {
|
|
56
|
-
const n = e, t =
|
|
57
|
+
const n = e, t = ge(), o = Le(Gt, void 0), s = ne("breadcrumb"), a = t.appContext.config.globalProperties.$router, l = T(), u = () => {
|
|
57
58
|
!n.to || !a || (n.replace ? a.replace(n.to) : a.push(n.to));
|
|
58
59
|
};
|
|
59
60
|
return (i, c) => {
|
|
60
61
|
var f, d;
|
|
61
|
-
return m(),
|
|
62
|
+
return m(), $("span", {
|
|
62
63
|
class: w(r(s).e("item"))
|
|
63
64
|
}, [
|
|
64
65
|
C("span", {
|
|
@@ -70,29 +71,29 @@ const io = Ce({
|
|
|
70
71
|
}, [
|
|
71
72
|
ae(i.$slots, "default")
|
|
72
73
|
], 2),
|
|
73
|
-
(f = r(o)) != null && f.separatorIcon ? (m(),
|
|
74
|
+
(f = r(o)) != null && f.separatorIcon ? (m(), L(r(we), {
|
|
74
75
|
key: 0,
|
|
75
76
|
class: w(r(s).e("separator"))
|
|
76
77
|
}, {
|
|
77
78
|
default: M(() => [
|
|
78
|
-
(m(),
|
|
79
|
+
(m(), L(st(r(o).separatorIcon)))
|
|
79
80
|
]),
|
|
80
81
|
_: 1
|
|
81
|
-
}, 8, ["class"])) : (m(),
|
|
82
|
+
}, 8, ["class"])) : (m(), $("span", {
|
|
82
83
|
key: 1,
|
|
83
84
|
class: w(r(s).e("separator")),
|
|
84
85
|
role: "presentation"
|
|
85
|
-
},
|
|
86
|
+
}, U((d = r(o)) == null ? void 0 : d.separator), 3))
|
|
86
87
|
], 2);
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
90
|
});
|
|
90
|
-
var
|
|
91
|
-
const
|
|
92
|
-
BreadcrumbItem:
|
|
93
|
-
}),
|
|
91
|
+
var Yt = /* @__PURE__ */ ue(fo, [["__file", "breadcrumb-item.vue"]]);
|
|
92
|
+
const mo = at(io, {
|
|
93
|
+
BreadcrumbItem: Yt
|
|
94
|
+
}), po = lt(Yt), ho = ke({
|
|
94
95
|
color: {
|
|
95
|
-
type:
|
|
96
|
+
type: Ve(Object),
|
|
96
97
|
required: !0
|
|
97
98
|
},
|
|
98
99
|
vertical: {
|
|
@@ -100,8 +101,8 @@ const fo = ot(ro, {
|
|
|
100
101
|
default: !1
|
|
101
102
|
}
|
|
102
103
|
});
|
|
103
|
-
let
|
|
104
|
-
function
|
|
104
|
+
let dt = !1;
|
|
105
|
+
function Ke(e, n) {
|
|
105
106
|
if (!cn)
|
|
106
107
|
return;
|
|
107
108
|
const t = function(a) {
|
|
@@ -109,22 +110,22 @@ function Ge(e, n) {
|
|
|
109
110
|
(l = n.drag) == null || l.call(n, a);
|
|
110
111
|
}, o = function(a) {
|
|
111
112
|
var l;
|
|
112
|
-
document.removeEventListener("mousemove", t), document.removeEventListener("mouseup", o), document.removeEventListener("touchmove", t), document.removeEventListener("touchend", o), document.onselectstart = null, document.ondragstart = null,
|
|
113
|
+
document.removeEventListener("mousemove", t), document.removeEventListener("mouseup", o), document.removeEventListener("touchmove", t), document.removeEventListener("touchend", o), document.onselectstart = null, document.ondragstart = null, dt = !1, (l = n.end) == null || l.call(n, a);
|
|
113
114
|
}, s = function(a) {
|
|
114
115
|
var l;
|
|
115
|
-
|
|
116
|
+
dt || (a.preventDefault(), document.onselectstart = () => !1, document.ondragstart = () => !1, document.addEventListener("mousemove", t), document.addEventListener("mouseup", o), document.addEventListener("touchmove", t), document.addEventListener("touchend", o), dt = !0, (l = n.start) == null || l.call(n, a));
|
|
116
117
|
};
|
|
117
118
|
e.addEventListener("mousedown", s), e.addEventListener("touchstart", s);
|
|
118
119
|
}
|
|
119
|
-
const
|
|
120
|
-
const n =
|
|
120
|
+
const vo = (e) => {
|
|
121
|
+
const n = ge(), t = Vt(), o = Vt();
|
|
121
122
|
function s(l) {
|
|
122
123
|
l.target !== t.value && a(l);
|
|
123
124
|
}
|
|
124
125
|
function a(l) {
|
|
125
126
|
if (!o.value || !t.value)
|
|
126
127
|
return;
|
|
127
|
-
const i = n.vnode.el.getBoundingClientRect(), { clientX: c, clientY: f } =
|
|
128
|
+
const i = n.vnode.el.getBoundingClientRect(), { clientX: c, clientY: f } = Ct(l);
|
|
128
129
|
if (e.vertical) {
|
|
129
130
|
let d = f - i.top;
|
|
130
131
|
d = Math.max(t.value.offsetHeight / 2, d), d = Math.min(d, i.height - t.value.offsetHeight / 2), e.color.set("alpha", Math.round((d - t.value.offsetHeight / 2) / (i.height - t.value.offsetHeight) * 100));
|
|
@@ -139,71 +140,71 @@ const ho = (e) => {
|
|
|
139
140
|
handleDrag: a,
|
|
140
141
|
handleClick: s
|
|
141
142
|
};
|
|
142
|
-
},
|
|
143
|
+
}, _o = (e, {
|
|
143
144
|
bar: n,
|
|
144
145
|
thumb: t,
|
|
145
146
|
handleDrag: o
|
|
146
147
|
}) => {
|
|
147
|
-
const s =
|
|
148
|
+
const s = ge(), a = ne("color-alpha-slider"), l = T(0), u = T(0), i = T();
|
|
148
149
|
function c() {
|
|
149
150
|
if (!t.value || e.vertical)
|
|
150
151
|
return 0;
|
|
151
|
-
const
|
|
152
|
-
return
|
|
152
|
+
const N = s.vnode.el, b = e.color.get("alpha");
|
|
153
|
+
return N ? Math.round(b * (N.offsetWidth - t.value.offsetWidth / 2) / 100) : 0;
|
|
153
154
|
}
|
|
154
155
|
function f() {
|
|
155
156
|
if (!t.value)
|
|
156
157
|
return 0;
|
|
157
|
-
const
|
|
158
|
+
const N = s.vnode.el;
|
|
158
159
|
if (!e.vertical)
|
|
159
160
|
return 0;
|
|
160
|
-
const
|
|
161
|
-
return
|
|
161
|
+
const b = e.color.get("alpha");
|
|
162
|
+
return N ? Math.round(b * (N.offsetHeight - t.value.offsetHeight / 2) / 100) : 0;
|
|
162
163
|
}
|
|
163
164
|
function d() {
|
|
164
165
|
if (e.color && e.color.value) {
|
|
165
|
-
const { r:
|
|
166
|
-
return `linear-gradient(to right, rgba(${
|
|
166
|
+
const { r: N, g: b, b: Z } = e.color.toRgb();
|
|
167
|
+
return `linear-gradient(to right, rgba(${N}, ${b}, ${Z}, 0) 0%, rgba(${N}, ${b}, ${Z}, 1) 100%)`;
|
|
167
168
|
}
|
|
168
169
|
return "";
|
|
169
170
|
}
|
|
170
|
-
function
|
|
171
|
+
function p() {
|
|
171
172
|
l.value = c(), u.value = f(), i.value = d();
|
|
172
173
|
}
|
|
173
174
|
pe(() => {
|
|
174
175
|
if (!n.value || !t.value)
|
|
175
176
|
return;
|
|
176
|
-
const
|
|
177
|
-
drag: (
|
|
178
|
-
o(
|
|
177
|
+
const N = {
|
|
178
|
+
drag: (b) => {
|
|
179
|
+
o(b);
|
|
179
180
|
},
|
|
180
|
-
end: (
|
|
181
|
-
o(
|
|
181
|
+
end: (b) => {
|
|
182
|
+
o(b);
|
|
182
183
|
}
|
|
183
184
|
};
|
|
184
|
-
|
|
185
|
-
}), ee(() => e.color.get("alpha"), () =>
|
|
186
|
-
const
|
|
187
|
-
left:
|
|
188
|
-
top:
|
|
185
|
+
Ke(n.value, N), Ke(t.value, N), p();
|
|
186
|
+
}), ee(() => e.color.get("alpha"), () => p()), ee(() => e.color.value, () => p());
|
|
187
|
+
const v = E(() => [a.b(), a.is("vertical", e.vertical)]), g = E(() => a.e("bar")), k = E(() => a.e("thumb")), S = E(() => ({ background: i.value })), R = E(() => ({
|
|
188
|
+
left: vt(l.value),
|
|
189
|
+
top: vt(u.value)
|
|
189
190
|
}));
|
|
190
|
-
return { rootKls:
|
|
191
|
-
}, go = "ElColorAlphaSlider", bo =
|
|
191
|
+
return { rootKls: v, barKls: g, barStyle: S, thumbKls: k, thumbStyle: R, update: p };
|
|
192
|
+
}, go = "ElColorAlphaSlider", bo = D({
|
|
192
193
|
name: go
|
|
193
|
-
}),
|
|
194
|
+
}), yo = /* @__PURE__ */ D({
|
|
194
195
|
...bo,
|
|
195
|
-
props:
|
|
196
|
+
props: ho,
|
|
196
197
|
setup(e, { expose: n }) {
|
|
197
|
-
const t = e, { bar: o, thumb: s, handleDrag: a, handleClick: l } =
|
|
198
|
+
const t = e, { bar: o, thumb: s, handleDrag: a, handleClick: l } = vo(t), { rootKls: u, barKls: i, barStyle: c, thumbKls: f, thumbStyle: d, update: p } = _o(t, {
|
|
198
199
|
bar: o,
|
|
199
200
|
thumb: s,
|
|
200
201
|
handleDrag: a
|
|
201
202
|
});
|
|
202
203
|
return n({
|
|
203
|
-
update:
|
|
204
|
+
update: p,
|
|
204
205
|
bar: o,
|
|
205
206
|
thumb: s
|
|
206
|
-
}), (
|
|
207
|
+
}), (v, g) => (m(), $("div", {
|
|
207
208
|
class: w(r(u))
|
|
208
209
|
}, [
|
|
209
210
|
C("div", {
|
|
@@ -211,7 +212,7 @@ const ho = (e) => {
|
|
|
211
212
|
ref: o,
|
|
212
213
|
class: w(r(i)),
|
|
213
214
|
style: ye(r(c)),
|
|
214
|
-
onClick: g[0] || (g[0] = (...
|
|
215
|
+
onClick: g[0] || (g[0] = (...k) => r(l) && r(l)(...k))
|
|
215
216
|
}, null, 6),
|
|
216
217
|
C("div", {
|
|
217
218
|
ref_key: "thumb",
|
|
@@ -222,8 +223,8 @@ const ho = (e) => {
|
|
|
222
223
|
], 2));
|
|
223
224
|
}
|
|
224
225
|
});
|
|
225
|
-
var
|
|
226
|
-
const Co =
|
|
226
|
+
var ko = /* @__PURE__ */ ue(yo, [["__file", "alpha-slider.vue"]]);
|
|
227
|
+
const Co = D({
|
|
227
228
|
name: "ElColorHueSlider",
|
|
228
229
|
props: {
|
|
229
230
|
color: {
|
|
@@ -233,52 +234,52 @@ const Co = F({
|
|
|
233
234
|
vertical: Boolean
|
|
234
235
|
},
|
|
235
236
|
setup(e) {
|
|
236
|
-
const n = ne("color-hue-slider"), t =
|
|
237
|
+
const n = ne("color-hue-slider"), t = ge(), o = T(), s = T(), a = T(0), l = T(0), u = E(() => e.color.get("hue"));
|
|
237
238
|
ee(() => u.value, () => {
|
|
238
|
-
|
|
239
|
+
p();
|
|
239
240
|
});
|
|
240
|
-
function i(
|
|
241
|
-
|
|
241
|
+
function i(v) {
|
|
242
|
+
v.target !== o.value && c(v);
|
|
242
243
|
}
|
|
243
|
-
function c(
|
|
244
|
+
function c(v) {
|
|
244
245
|
if (!s.value || !o.value)
|
|
245
246
|
return;
|
|
246
|
-
const
|
|
247
|
-
let
|
|
247
|
+
const k = t.vnode.el.getBoundingClientRect(), { clientX: S, clientY: R } = Ct(v);
|
|
248
|
+
let N;
|
|
248
249
|
if (e.vertical) {
|
|
249
|
-
let
|
|
250
|
-
|
|
250
|
+
let b = R - k.top;
|
|
251
|
+
b = Math.min(b, k.height - o.value.offsetHeight / 2), b = Math.max(o.value.offsetHeight / 2, b), N = Math.round((b - o.value.offsetHeight / 2) / (k.height - o.value.offsetHeight) * 360);
|
|
251
252
|
} else {
|
|
252
|
-
let
|
|
253
|
-
|
|
253
|
+
let b = S - k.left;
|
|
254
|
+
b = Math.min(b, k.width - o.value.offsetWidth / 2), b = Math.max(o.value.offsetWidth / 2, b), N = Math.round((b - o.value.offsetWidth / 2) / (k.width - o.value.offsetWidth) * 360);
|
|
254
255
|
}
|
|
255
|
-
e.color.set("hue",
|
|
256
|
+
e.color.set("hue", N);
|
|
256
257
|
}
|
|
257
258
|
function f() {
|
|
258
259
|
if (!o.value)
|
|
259
260
|
return 0;
|
|
260
|
-
const
|
|
261
|
+
const v = t.vnode.el;
|
|
261
262
|
if (e.vertical)
|
|
262
263
|
return 0;
|
|
263
264
|
const g = e.color.get("hue");
|
|
264
|
-
return
|
|
265
|
+
return v ? Math.round(g * (v.offsetWidth - o.value.offsetWidth / 2) / 360) : 0;
|
|
265
266
|
}
|
|
266
267
|
function d() {
|
|
267
268
|
if (!o.value)
|
|
268
269
|
return 0;
|
|
269
|
-
const
|
|
270
|
+
const v = t.vnode.el;
|
|
270
271
|
if (!e.vertical)
|
|
271
272
|
return 0;
|
|
272
273
|
const g = e.color.get("hue");
|
|
273
|
-
return
|
|
274
|
+
return v ? Math.round(g * (v.offsetHeight - o.value.offsetHeight / 2) / 360) : 0;
|
|
274
275
|
}
|
|
275
|
-
function
|
|
276
|
+
function p() {
|
|
276
277
|
a.value = f(), l.value = d();
|
|
277
278
|
}
|
|
278
279
|
return pe(() => {
|
|
279
280
|
if (!s.value || !o.value)
|
|
280
281
|
return;
|
|
281
|
-
const
|
|
282
|
+
const v = {
|
|
282
283
|
drag: (g) => {
|
|
283
284
|
c(g);
|
|
284
285
|
},
|
|
@@ -286,7 +287,7 @@ const Co = F({
|
|
|
286
287
|
c(g);
|
|
287
288
|
}
|
|
288
289
|
};
|
|
289
|
-
|
|
290
|
+
Ke(s.value, v), Ke(o.value, v), p();
|
|
290
291
|
}), {
|
|
291
292
|
bar: s,
|
|
292
293
|
thumb: o,
|
|
@@ -294,13 +295,13 @@ const Co = F({
|
|
|
294
295
|
thumbTop: l,
|
|
295
296
|
hueValue: u,
|
|
296
297
|
handleClick: i,
|
|
297
|
-
update:
|
|
298
|
+
update: p,
|
|
298
299
|
ns: n
|
|
299
300
|
};
|
|
300
301
|
}
|
|
301
302
|
});
|
|
302
|
-
function
|
|
303
|
-
return m(),
|
|
303
|
+
function $o(e, n, t, o, s, a) {
|
|
304
|
+
return m(), $("div", {
|
|
304
305
|
class: w([e.ns.b(), e.ns.is("vertical", e.vertical)])
|
|
305
306
|
}, [
|
|
306
307
|
C("div", {
|
|
@@ -318,8 +319,8 @@ function ko(e, n, t, o, s, a) {
|
|
|
318
319
|
}, null, 6)
|
|
319
320
|
], 2);
|
|
320
321
|
}
|
|
321
|
-
var Mo = /* @__PURE__ */ ue(Co, [["render",
|
|
322
|
-
const
|
|
322
|
+
var Mo = /* @__PURE__ */ ue(Co, [["render", $o], ["__file", "hue-slider.vue"]]);
|
|
323
|
+
const wo = ke({
|
|
323
324
|
modelValue: String,
|
|
324
325
|
id: String,
|
|
325
326
|
showAlpha: Boolean,
|
|
@@ -339,55 +340,55 @@ const Io = Ce({
|
|
|
339
340
|
default: 0
|
|
340
341
|
},
|
|
341
342
|
predefine: {
|
|
342
|
-
type:
|
|
343
|
+
type: Ve(Array)
|
|
343
344
|
},
|
|
344
345
|
validateEvent: {
|
|
345
346
|
type: Boolean,
|
|
346
347
|
default: !0
|
|
347
348
|
}
|
|
348
|
-
}),
|
|
349
|
-
[
|
|
350
|
-
[fn]: (e) => ve(e) ||
|
|
351
|
-
activeChange: (e) => ve(e) ||
|
|
349
|
+
}), So = {
|
|
350
|
+
[_t]: (e) => ve(e) || Fe(e),
|
|
351
|
+
[fn]: (e) => ve(e) || Fe(e),
|
|
352
|
+
activeChange: (e) => ve(e) || Fe(e),
|
|
352
353
|
focus: (e) => e instanceof FocusEvent,
|
|
353
354
|
blur: (e) => e instanceof FocusEvent
|
|
354
|
-
},
|
|
355
|
+
}, Zt = Symbol("colorPickerContextKey"), Nt = function(e, n, t) {
|
|
355
356
|
return [
|
|
356
357
|
e,
|
|
357
358
|
n * t / ((e = (2 - n) * t) < 1 ? e : 2 - e) || 0,
|
|
358
359
|
e / 2
|
|
359
360
|
];
|
|
360
|
-
},
|
|
361
|
+
}, xo = function(e) {
|
|
361
362
|
return typeof e == "string" && e.includes(".") && Number.parseFloat(e) === 1;
|
|
362
|
-
},
|
|
363
|
+
}, Eo = function(e) {
|
|
363
364
|
return typeof e == "string" && e.includes("%");
|
|
364
|
-
},
|
|
365
|
-
|
|
366
|
-
const t =
|
|
365
|
+
}, Ie = function(e, n) {
|
|
366
|
+
xo(e) && (e = "100%");
|
|
367
|
+
const t = Eo(e);
|
|
367
368
|
return e = Math.min(n, Math.max(0, Number.parseFloat(`${e}`))), t && (e = Number.parseInt(`${e * n}`, 10) / 100), Math.abs(e - n) < 1e-6 ? 1 : e % n / Number.parseFloat(n);
|
|
368
|
-
},
|
|
369
|
+
}, Ot = {
|
|
369
370
|
10: "A",
|
|
370
371
|
11: "B",
|
|
371
372
|
12: "C",
|
|
372
373
|
13: "D",
|
|
373
374
|
14: "E",
|
|
374
375
|
15: "F"
|
|
375
|
-
},
|
|
376
|
+
}, tt = (e) => {
|
|
376
377
|
e = Math.min(Math.round(e), 255);
|
|
377
378
|
const n = Math.floor(e / 16), t = e % 16;
|
|
378
|
-
return `${
|
|
379
|
-
},
|
|
380
|
-
return Number.isNaN(+e) || Number.isNaN(+n) || Number.isNaN(+t) ? "" : `#${
|
|
381
|
-
},
|
|
379
|
+
return `${Ot[n] || n}${Ot[t] || t}`;
|
|
380
|
+
}, Bt = function({ r: e, g: n, b: t }) {
|
|
381
|
+
return Number.isNaN(+e) || Number.isNaN(+n) || Number.isNaN(+t) ? "" : `#${tt(e)}${tt(n)}${tt(t)}`;
|
|
382
|
+
}, ft = {
|
|
382
383
|
A: 10,
|
|
383
384
|
B: 11,
|
|
384
385
|
C: 12,
|
|
385
386
|
D: 13,
|
|
386
387
|
E: 14,
|
|
387
388
|
F: 15
|
|
388
|
-
},
|
|
389
|
-
return e.length === 2 ? (
|
|
390
|
-
},
|
|
389
|
+
}, Ce = function(e) {
|
|
390
|
+
return e.length === 2 ? (ft[e[0].toUpperCase()] || +e[0]) * 16 + (ft[e[1].toUpperCase()] || +e[1]) : ft[e[1].toUpperCase()] || +e[1];
|
|
391
|
+
}, To = function(e, n, t) {
|
|
391
392
|
n = n / 100, t = t / 100;
|
|
392
393
|
let o = n;
|
|
393
394
|
const s = Math.max(t, 0.01);
|
|
@@ -398,8 +399,8 @@ const Io = Ce({
|
|
|
398
399
|
s: l * 100,
|
|
399
400
|
v: a * 100
|
|
400
401
|
};
|
|
401
|
-
},
|
|
402
|
-
e =
|
|
402
|
+
}, Rt = (e, n, t) => {
|
|
403
|
+
e = Ie(e, 255), n = Ie(n, 255), t = Ie(t, 255);
|
|
403
404
|
const o = Math.max(e, n, t), s = Math.min(e, n, t);
|
|
404
405
|
let a;
|
|
405
406
|
const l = o, u = o - s, i = o === 0 ? 0 : u / o;
|
|
@@ -423,8 +424,8 @@ const Io = Ce({
|
|
|
423
424
|
a /= 6;
|
|
424
425
|
}
|
|
425
426
|
return { h: a * 360, s: i * 100, v: l * 100 };
|
|
426
|
-
},
|
|
427
|
-
e =
|
|
427
|
+
}, Re = function(e, n, t) {
|
|
428
|
+
e = Ie(e, 360) * 6, n = Ie(n, 100), t = Ie(t, 100);
|
|
428
429
|
const o = Math.floor(e), s = e - o, a = t * (1 - n), l = t * (1 - s * n), u = t * (1 - (1 - s) * n), i = o % 6, c = [t, l, a, a, u, t][i], f = [u, t, t, l, a, a][i], d = [a, a, u, t, t, l][i];
|
|
429
430
|
return {
|
|
430
431
|
r: Math.round(c * 255),
|
|
@@ -432,17 +433,17 @@ const Io = Ce({
|
|
|
432
433
|
b: Math.round(d * 255)
|
|
433
434
|
};
|
|
434
435
|
};
|
|
435
|
-
class
|
|
436
|
+
class De {
|
|
436
437
|
constructor(n = {}) {
|
|
437
438
|
this._hue = 0, this._saturation = 100, this._value = 100, this._alpha = 100, this.enableAlpha = !1, this.format = "hex", this.value = "";
|
|
438
439
|
for (const t in n)
|
|
439
|
-
|
|
440
|
+
xt(n, t) && (this[t] = n[t]);
|
|
440
441
|
n.value ? this.fromString(n.value) : this.doOnChange();
|
|
441
442
|
}
|
|
442
443
|
set(n, t) {
|
|
443
444
|
if (arguments.length === 1 && typeof n == "object") {
|
|
444
445
|
for (const o in n)
|
|
445
|
-
|
|
446
|
+
xt(n, o) && this.set(o, n[o]);
|
|
446
447
|
return;
|
|
447
448
|
}
|
|
448
449
|
this[`_${n}`] = t, this.doOnChange();
|
|
@@ -451,7 +452,7 @@ class Fe {
|
|
|
451
452
|
return n === "alpha" ? Math.floor(this[`_${n}`]) : this[`_${n}`];
|
|
452
453
|
}
|
|
453
454
|
toRgb() {
|
|
454
|
-
return
|
|
455
|
+
return Re(this._hue, this._saturation, this._value);
|
|
455
456
|
}
|
|
456
457
|
fromString(n) {
|
|
457
458
|
if (!n) {
|
|
@@ -464,7 +465,7 @@ class Fe {
|
|
|
464
465
|
if (n.includes("hsl")) {
|
|
465
466
|
const o = n.replace(/hsla|hsl|\(|\)/gm, "").split(/\s|,/g).filter((s) => s !== "").map((s, a) => a > 2 ? Number.parseFloat(s) : Number.parseInt(s, 10));
|
|
466
467
|
if (o.length === 4 ? this._alpha = Number.parseFloat(o[3]) * 100 : o.length === 3 && (this._alpha = 100), o.length >= 3) {
|
|
467
|
-
const { h: s, s: a, v: l } =
|
|
468
|
+
const { h: s, s: a, v: l } = To(o[0], o[1], o[2]);
|
|
468
469
|
t(s, a, l);
|
|
469
470
|
}
|
|
470
471
|
} else if (n.includes("hsv")) {
|
|
@@ -473,7 +474,7 @@ class Fe {
|
|
|
473
474
|
} else if (n.includes("rgb")) {
|
|
474
475
|
const o = n.replace(/rgba|rgb|\(|\)/gm, "").split(/\s|,/g).filter((s) => s !== "").map((s, a) => a > 2 ? Number.parseFloat(s) : Number.parseInt(s, 10));
|
|
475
476
|
if (o.length === 4 ? this._alpha = Number.parseFloat(o[3]) * 100 : o.length === 3 && (this._alpha = 100), o.length >= 3) {
|
|
476
|
-
const { h: s, s: a, v: l } =
|
|
477
|
+
const { h: s, s: a, v: l } = Rt(o[0], o[1], o[2]);
|
|
477
478
|
t(s, a, l);
|
|
478
479
|
}
|
|
479
480
|
} else if (n.includes("#")) {
|
|
@@ -481,8 +482,8 @@ class Fe {
|
|
|
481
482
|
if (!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(o))
|
|
482
483
|
return;
|
|
483
484
|
let s, a, l;
|
|
484
|
-
o.length === 3 ? (s =
|
|
485
|
-
const { h: u, s: i, v: c } =
|
|
485
|
+
o.length === 3 ? (s = Ce(o[0] + o[0]), a = Ce(o[1] + o[1]), l = Ce(o[2] + o[2])) : (o.length === 6 || o.length === 8) && (s = Ce(o.slice(0, 2)), a = Ce(o.slice(2, 4)), l = Ce(o.slice(4, 6))), o.length === 8 ? this._alpha = Ce(o.slice(6)) / 255 * 100 : (o.length === 3 || o.length === 6) && (this._alpha = 100);
|
|
486
|
+
const { h: u, s: i, v: c } = Rt(s, a, l);
|
|
486
487
|
t(u, i, c);
|
|
487
488
|
}
|
|
488
489
|
}
|
|
@@ -494,7 +495,7 @@ class Fe {
|
|
|
494
495
|
if (this.enableAlpha)
|
|
495
496
|
switch (a) {
|
|
496
497
|
case "hsl": {
|
|
497
|
-
const l =
|
|
498
|
+
const l = Nt(n, t / 100, o / 100);
|
|
498
499
|
this.value = `hsla(${n}, ${Math.round(l[1] * 100)}%, ${Math.round(l[2] * 100)}%, ${this.get("alpha") / 100})`;
|
|
499
500
|
break;
|
|
500
501
|
}
|
|
@@ -503,18 +504,18 @@ class Fe {
|
|
|
503
504
|
break;
|
|
504
505
|
}
|
|
505
506
|
case "hex": {
|
|
506
|
-
this.value = `${
|
|
507
|
+
this.value = `${Bt(Re(n, t, o))}${tt(s * 255 / 100)}`;
|
|
507
508
|
break;
|
|
508
509
|
}
|
|
509
510
|
default: {
|
|
510
|
-
const { r: l, g: u, b: i } =
|
|
511
|
+
const { r: l, g: u, b: i } = Re(n, t, o);
|
|
511
512
|
this.value = `rgba(${l}, ${u}, ${i}, ${this.get("alpha") / 100})`;
|
|
512
513
|
}
|
|
513
514
|
}
|
|
514
515
|
else
|
|
515
516
|
switch (a) {
|
|
516
517
|
case "hsl": {
|
|
517
|
-
const l =
|
|
518
|
+
const l = Nt(n, t / 100, o / 100);
|
|
518
519
|
this.value = `hsl(${n}, ${Math.round(l[1] * 100)}%, ${Math.round(l[2] * 100)}%)`;
|
|
519
520
|
break;
|
|
520
521
|
}
|
|
@@ -523,16 +524,16 @@ class Fe {
|
|
|
523
524
|
break;
|
|
524
525
|
}
|
|
525
526
|
case "rgb": {
|
|
526
|
-
const { r: l, g: u, b: i } =
|
|
527
|
+
const { r: l, g: u, b: i } = Re(n, t, o);
|
|
527
528
|
this.value = `rgb(${l}, ${u}, ${i})`;
|
|
528
529
|
break;
|
|
529
530
|
}
|
|
530
531
|
default:
|
|
531
|
-
this.value =
|
|
532
|
+
this.value = Bt(Re(n, t, o));
|
|
532
533
|
}
|
|
533
534
|
}
|
|
534
535
|
}
|
|
535
|
-
const
|
|
536
|
+
const Io = D({
|
|
536
537
|
props: {
|
|
537
538
|
colors: {
|
|
538
539
|
type: Array,
|
|
@@ -544,9 +545,9 @@ const Eo = F({
|
|
|
544
545
|
}
|
|
545
546
|
},
|
|
546
547
|
setup(e) {
|
|
547
|
-
const n = ne("color-predefine"), { currentColor: t } =
|
|
548
|
+
const n = ne("color-predefine"), { currentColor: t } = Le(Zt), o = T(a(e.colors, e.color));
|
|
548
549
|
ee(() => t.value, (l) => {
|
|
549
|
-
const u = new
|
|
550
|
+
const u = new De();
|
|
550
551
|
u.fromString(l), o.value.forEach((i) => {
|
|
551
552
|
i.selected = u.compare(i);
|
|
552
553
|
});
|
|
@@ -558,7 +559,7 @@ const Eo = F({
|
|
|
558
559
|
}
|
|
559
560
|
function a(l, u) {
|
|
560
561
|
return l.map((i) => {
|
|
561
|
-
const c = new
|
|
562
|
+
const c = new De();
|
|
562
563
|
return c.enableAlpha = !0, c.format = "rgba", c.fromString(i), c.selected = c.value === u.value, c;
|
|
563
564
|
});
|
|
564
565
|
}
|
|
@@ -568,15 +569,15 @@ const Eo = F({
|
|
|
568
569
|
ns: n
|
|
569
570
|
};
|
|
570
571
|
}
|
|
571
|
-
}),
|
|
572
|
-
function
|
|
573
|
-
return m(),
|
|
572
|
+
}), Ao = ["onClick"];
|
|
573
|
+
function Po(e, n, t, o, s, a) {
|
|
574
|
+
return m(), $("div", {
|
|
574
575
|
class: w(e.ns.b())
|
|
575
576
|
}, [
|
|
576
577
|
C("div", {
|
|
577
578
|
class: w(e.ns.e("colors"))
|
|
578
579
|
}, [
|
|
579
|
-
(m(!0),
|
|
580
|
+
(m(!0), $(oe, null, xe(e.rgbaColors, (l, u) => (m(), $("div", {
|
|
580
581
|
key: e.colors[u],
|
|
581
582
|
class: w([
|
|
582
583
|
e.ns.e("color-selector"),
|
|
@@ -588,12 +589,12 @@ function No(e, n, t, o, s, a) {
|
|
|
588
589
|
C("div", {
|
|
589
590
|
style: ye({ backgroundColor: l.value })
|
|
590
591
|
}, null, 4)
|
|
591
|
-
], 10,
|
|
592
|
+
], 10, Ao))), 128))
|
|
592
593
|
], 2)
|
|
593
594
|
], 2);
|
|
594
595
|
}
|
|
595
|
-
var
|
|
596
|
-
const
|
|
596
|
+
var Vo = /* @__PURE__ */ ue(Io, [["render", Po], ["__file", "predefine.vue"]]);
|
|
597
|
+
const Lo = D({
|
|
597
598
|
name: "ElSlPanel",
|
|
598
599
|
props: {
|
|
599
600
|
color: {
|
|
@@ -602,26 +603,26 @@ const $o = F({
|
|
|
602
603
|
}
|
|
603
604
|
},
|
|
604
605
|
setup(e) {
|
|
605
|
-
const n = ne("color-svpanel"), t =
|
|
606
|
+
const n = ne("color-svpanel"), t = ge(), o = T(0), s = T(0), a = T("hsl(0, 100%, 50%)"), l = E(() => {
|
|
606
607
|
const c = e.color.get("hue"), f = e.color.get("value");
|
|
607
608
|
return { hue: c, value: f };
|
|
608
609
|
});
|
|
609
610
|
function u() {
|
|
610
|
-
const c = e.color.get("saturation"), f = e.color.get("value"), d = t.vnode.el, { clientWidth:
|
|
611
|
-
s.value = c *
|
|
611
|
+
const c = e.color.get("saturation"), f = e.color.get("value"), d = t.vnode.el, { clientWidth: p, clientHeight: v } = d;
|
|
612
|
+
s.value = c * p / 100, o.value = (100 - f) * v / 100, a.value = `hsl(${e.color.get("hue")}, 100%, 50%)`;
|
|
612
613
|
}
|
|
613
614
|
function i(c) {
|
|
614
|
-
const d = t.vnode.el.getBoundingClientRect(), { clientX:
|
|
615
|
-
let g =
|
|
616
|
-
g = Math.max(0, g), g = Math.min(g, d.width),
|
|
615
|
+
const d = t.vnode.el.getBoundingClientRect(), { clientX: p, clientY: v } = Ct(c);
|
|
616
|
+
let g = p - d.left, k = v - d.top;
|
|
617
|
+
g = Math.max(0, g), g = Math.min(g, d.width), k = Math.max(0, k), k = Math.min(k, d.height), s.value = g, o.value = k, e.color.set({
|
|
617
618
|
saturation: g / d.width * 100,
|
|
618
|
-
value: 100 -
|
|
619
|
+
value: 100 - k / d.height * 100
|
|
619
620
|
});
|
|
620
621
|
}
|
|
621
622
|
return ee(() => l.value, () => {
|
|
622
623
|
u();
|
|
623
624
|
}), pe(() => {
|
|
624
|
-
|
|
625
|
+
Ke(t.vnode.el, {
|
|
625
626
|
drag: (c) => {
|
|
626
627
|
i(c);
|
|
627
628
|
},
|
|
@@ -639,11 +640,11 @@ const $o = F({
|
|
|
639
640
|
ns: n
|
|
640
641
|
};
|
|
641
642
|
}
|
|
642
|
-
}),
|
|
643
|
-
|
|
643
|
+
}), No = /* @__PURE__ */ C("div", null, null, -1), Oo = [
|
|
644
|
+
No
|
|
644
645
|
];
|
|
645
|
-
function
|
|
646
|
-
return m(),
|
|
646
|
+
function Bo(e, n, t, o, s, a) {
|
|
647
|
+
return m(), $("div", {
|
|
647
648
|
class: w(e.ns.b()),
|
|
648
649
|
style: ye({
|
|
649
650
|
backgroundColor: e.background
|
|
@@ -661,255 +662,255 @@ function Lo(e, n, t, o, s, a) {
|
|
|
661
662
|
top: e.cursorTop + "px",
|
|
662
663
|
left: e.cursorLeft + "px"
|
|
663
664
|
})
|
|
664
|
-
},
|
|
665
|
+
}, Oo, 6)
|
|
665
666
|
], 6);
|
|
666
667
|
}
|
|
667
|
-
var Ro = /* @__PURE__ */ ue(
|
|
668
|
-
const
|
|
668
|
+
var Ro = /* @__PURE__ */ ue(Lo, [["render", Bo], ["__file", "sv-panel.vue"]]);
|
|
669
|
+
const Fo = ["onKeydown"], Do = ["id", "aria-label", "aria-labelledby", "aria-description", "aria-disabled", "tabindex"], zo = D({
|
|
669
670
|
name: "ElColorPicker"
|
|
670
|
-
}),
|
|
671
|
-
...
|
|
672
|
-
props:
|
|
673
|
-
emits:
|
|
671
|
+
}), Ho = /* @__PURE__ */ D({
|
|
672
|
+
...zo,
|
|
673
|
+
props: wo,
|
|
674
|
+
emits: So,
|
|
674
675
|
setup(e, { expose: n, emit: t }) {
|
|
675
|
-
const o = e, { t: s } =
|
|
676
|
+
const o = e, { t: s } = Dt(), a = ne("color"), { formItem: l } = mn(), u = pn(), i = hn(), { inputId: c, isLabeledByFormItem: f } = vn(o, {
|
|
676
677
|
formItemContext: l
|
|
677
|
-
}), d =
|
|
678
|
-
isFocused:
|
|
679
|
-
handleFocus:
|
|
680
|
-
handleBlur:
|
|
681
|
-
} =
|
|
682
|
-
beforeBlur(
|
|
683
|
-
var
|
|
684
|
-
return (
|
|
678
|
+
}), d = T(), p = T(), v = T(), g = T(), k = T(), S = T(), {
|
|
679
|
+
isFocused: R,
|
|
680
|
+
handleFocus: N,
|
|
681
|
+
handleBlur: b
|
|
682
|
+
} = _n(k, {
|
|
683
|
+
beforeBlur(V) {
|
|
684
|
+
var J;
|
|
685
|
+
return (J = g.value) == null ? void 0 : J.isFocusInsideContent(V);
|
|
685
686
|
},
|
|
686
687
|
afterBlur() {
|
|
687
|
-
|
|
688
|
+
B(!1), h();
|
|
688
689
|
}
|
|
689
|
-
}),
|
|
690
|
+
}), Z = (V) => {
|
|
690
691
|
if (i.value)
|
|
691
|
-
return
|
|
692
|
-
|
|
692
|
+
return Mt();
|
|
693
|
+
N(V);
|
|
693
694
|
};
|
|
694
|
-
let
|
|
695
|
-
const
|
|
695
|
+
let Y = !0;
|
|
696
|
+
const O = rt(new De({
|
|
696
697
|
enableAlpha: o.showAlpha,
|
|
697
698
|
format: o.colorFormat || "",
|
|
698
699
|
value: o.modelValue
|
|
699
|
-
})),
|
|
700
|
+
})), j = T(!1), P = T(!1), W = T(""), le = E(() => !o.modelValue && !P.value ? "transparent" : I(O, o.showAlpha)), ce = E(() => !o.modelValue && !P.value ? "" : O.value), de = E(() => f.value ? void 0 : o.label || s("el.colorpicker.defaultLabel")), be = E(() => f.value ? l == null ? void 0 : l.labelId : void 0), x = E(() => [
|
|
700
701
|
a.b("picker"),
|
|
701
702
|
a.is("disabled", i.value),
|
|
702
703
|
a.bm("picker", u.value),
|
|
703
|
-
a.is("focused",
|
|
704
|
+
a.is("focused", R.value)
|
|
704
705
|
]);
|
|
705
|
-
function
|
|
706
|
-
if (!(
|
|
706
|
+
function I(V, J) {
|
|
707
|
+
if (!(V instanceof De))
|
|
707
708
|
throw new TypeError("color should be instance of _color Class");
|
|
708
|
-
const { r: fe, g: wt, b: St } =
|
|
709
|
-
return
|
|
709
|
+
const { r: fe, g: wt, b: St } = V.toRgb();
|
|
710
|
+
return J ? `rgba(${fe}, ${wt}, ${St}, ${V.get("alpha") / 100})` : `rgb(${fe}, ${wt}, ${St})`;
|
|
710
711
|
}
|
|
711
|
-
function
|
|
712
|
-
|
|
712
|
+
function B(V) {
|
|
713
|
+
j.value = V;
|
|
713
714
|
}
|
|
714
|
-
const
|
|
715
|
-
function
|
|
716
|
-
i.value ||
|
|
715
|
+
const X = gn(B, 100, { leading: !0 });
|
|
716
|
+
function K() {
|
|
717
|
+
i.value || B(!0);
|
|
717
718
|
}
|
|
718
719
|
function y() {
|
|
719
|
-
|
|
720
|
+
X(!1), h();
|
|
720
721
|
}
|
|
721
|
-
function
|
|
722
|
-
|
|
723
|
-
o.modelValue ?
|
|
724
|
-
|
|
722
|
+
function h() {
|
|
723
|
+
$e(() => {
|
|
724
|
+
o.modelValue ? O.fromString(o.modelValue) : (O.value = "", $e(() => {
|
|
725
|
+
P.value = !1;
|
|
725
726
|
}));
|
|
726
727
|
});
|
|
727
728
|
}
|
|
728
|
-
function
|
|
729
|
-
i.value ||
|
|
729
|
+
function A() {
|
|
730
|
+
i.value || X(!j.value);
|
|
730
731
|
}
|
|
731
|
-
function
|
|
732
|
-
|
|
732
|
+
function F() {
|
|
733
|
+
O.fromString(W.value);
|
|
733
734
|
}
|
|
734
|
-
function
|
|
735
|
-
const
|
|
736
|
-
t(
|
|
737
|
-
const
|
|
735
|
+
function q() {
|
|
736
|
+
const V = O.value;
|
|
737
|
+
t(_t, V), t("change", V), o.validateEvent && (l == null || l.validate("change").catch((J) => Tt(J))), X(!1), $e(() => {
|
|
738
|
+
const J = new De({
|
|
738
739
|
enableAlpha: o.showAlpha,
|
|
739
740
|
format: o.colorFormat || "",
|
|
740
741
|
value: o.modelValue
|
|
741
742
|
});
|
|
742
|
-
|
|
743
|
+
O.compare(J) || h();
|
|
743
744
|
});
|
|
744
745
|
}
|
|
745
|
-
function
|
|
746
|
-
|
|
746
|
+
function z() {
|
|
747
|
+
X(!1), t(_t, null), t("change", null), o.modelValue !== null && o.validateEvent && (l == null || l.validate("change").catch((V) => Tt(V))), h();
|
|
747
748
|
}
|
|
748
|
-
function
|
|
749
|
-
if (
|
|
750
|
-
const
|
|
751
|
-
|
|
749
|
+
function G(V) {
|
|
750
|
+
if (j.value && (y(), R.value)) {
|
|
751
|
+
const J = new FocusEvent("focus", V);
|
|
752
|
+
b(J);
|
|
752
753
|
}
|
|
753
754
|
}
|
|
754
|
-
function se(
|
|
755
|
-
|
|
755
|
+
function se(V) {
|
|
756
|
+
V.preventDefault(), V.stopPropagation(), B(!1), h();
|
|
756
757
|
}
|
|
757
|
-
function Ye(
|
|
758
|
-
switch (
|
|
758
|
+
function Ye(V) {
|
|
759
|
+
switch (V.code) {
|
|
759
760
|
case re.enter:
|
|
760
761
|
case re.space:
|
|
761
|
-
|
|
762
|
+
V.preventDefault(), V.stopPropagation(), K(), S.value.focus();
|
|
762
763
|
break;
|
|
763
764
|
case re.esc:
|
|
764
|
-
se(
|
|
765
|
+
se(V);
|
|
765
766
|
break;
|
|
766
767
|
}
|
|
767
768
|
}
|
|
768
|
-
function
|
|
769
|
-
|
|
769
|
+
function Ze() {
|
|
770
|
+
k.value.focus();
|
|
770
771
|
}
|
|
771
|
-
function
|
|
772
|
-
|
|
772
|
+
function Mt() {
|
|
773
|
+
k.value.blur();
|
|
773
774
|
}
|
|
774
775
|
return pe(() => {
|
|
775
|
-
o.modelValue && (
|
|
776
|
-
}), ee(() => o.modelValue, (
|
|
777
|
-
|
|
778
|
-
}), ee(() => ce.value, (
|
|
779
|
-
|
|
780
|
-
}), ee(() =>
|
|
781
|
-
!o.modelValue &&
|
|
782
|
-
}), ee(() =>
|
|
783
|
-
|
|
784
|
-
var
|
|
785
|
-
(
|
|
776
|
+
o.modelValue && (W.value = ce.value);
|
|
777
|
+
}), ee(() => o.modelValue, (V) => {
|
|
778
|
+
V ? V && V !== O.value && (Y = !1, O.fromString(V)) : P.value = !1;
|
|
779
|
+
}), ee(() => ce.value, (V) => {
|
|
780
|
+
W.value = V, Y && t("activeChange", V), Y = !0;
|
|
781
|
+
}), ee(() => O.value, () => {
|
|
782
|
+
!o.modelValue && !P.value && (P.value = !0);
|
|
783
|
+
}), ee(() => j.value, () => {
|
|
784
|
+
$e(() => {
|
|
785
|
+
var V, J, fe;
|
|
786
|
+
(V = d.value) == null || V.update(), (J = p.value) == null || J.update(), (fe = v.value) == null || fe.update();
|
|
786
787
|
});
|
|
787
|
-
}),
|
|
788
|
+
}), We(Zt, {
|
|
788
789
|
currentColor: ce
|
|
789
790
|
}), n({
|
|
790
|
-
color:
|
|
791
|
-
show:
|
|
791
|
+
color: O,
|
|
792
|
+
show: K,
|
|
792
793
|
hide: y,
|
|
793
|
-
focus:
|
|
794
|
-
blur:
|
|
795
|
-
}), (
|
|
794
|
+
focus: Ze,
|
|
795
|
+
blur: Mt
|
|
796
|
+
}), (V, J) => (m(), L(r(je), {
|
|
796
797
|
ref_key: "popper",
|
|
797
798
|
ref: g,
|
|
798
|
-
visible:
|
|
799
|
+
visible: j.value,
|
|
799
800
|
"show-arrow": !1,
|
|
800
801
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
801
802
|
offset: 0,
|
|
802
803
|
"gpu-acceleration": !1,
|
|
803
|
-
"popper-class": [r(a).be("picker", "panel"), r(a).b("dropdown"),
|
|
804
|
+
"popper-class": [r(a).be("picker", "panel"), r(a).b("dropdown"), V.popperClass],
|
|
804
805
|
"stop-popper-mouse-event": !1,
|
|
805
806
|
effect: "light",
|
|
806
807
|
trigger: "click",
|
|
807
808
|
transition: `${r(a).namespace.value}-zoom-in-top`,
|
|
808
809
|
persistent: "",
|
|
809
|
-
onHide:
|
|
810
|
+
onHide: J[2] || (J[2] = (fe) => B(!1))
|
|
810
811
|
}, {
|
|
811
812
|
content: M(() => [
|
|
812
|
-
|
|
813
|
-
onKeydown:
|
|
813
|
+
Me((m(), $("div", {
|
|
814
|
+
onKeydown: Lt(se, ["esc"])
|
|
814
815
|
}, [
|
|
815
816
|
C("div", {
|
|
816
817
|
class: w(r(a).be("dropdown", "main-wrapper"))
|
|
817
818
|
}, [
|
|
818
|
-
|
|
819
|
+
_(Mo, {
|
|
819
820
|
ref_key: "hue",
|
|
820
821
|
ref: d,
|
|
821
822
|
class: "hue-slider",
|
|
822
|
-
color: r(
|
|
823
|
+
color: r(O),
|
|
823
824
|
vertical: ""
|
|
824
825
|
}, null, 8, ["color"]),
|
|
825
|
-
|
|
826
|
+
_(Ro, {
|
|
826
827
|
ref_key: "sv",
|
|
827
|
-
ref:
|
|
828
|
-
color: r(
|
|
828
|
+
ref: p,
|
|
829
|
+
color: r(O)
|
|
829
830
|
}, null, 8, ["color"])
|
|
830
831
|
], 2),
|
|
831
|
-
|
|
832
|
+
V.showAlpha ? (m(), L(ko, {
|
|
832
833
|
key: 0,
|
|
833
834
|
ref_key: "alpha",
|
|
834
|
-
ref:
|
|
835
|
-
color: r(
|
|
836
|
-
}, null, 8, ["color"])) :
|
|
837
|
-
|
|
835
|
+
ref: v,
|
|
836
|
+
color: r(O)
|
|
837
|
+
}, null, 8, ["color"])) : H("v-if", !0),
|
|
838
|
+
V.predefine ? (m(), L(Vo, {
|
|
838
839
|
key: 1,
|
|
839
840
|
ref: "predefine",
|
|
840
|
-
color: r(
|
|
841
|
-
colors:
|
|
842
|
-
}, null, 8, ["color", "colors"])) :
|
|
841
|
+
color: r(O),
|
|
842
|
+
colors: V.predefine
|
|
843
|
+
}, null, 8, ["color", "colors"])) : H("v-if", !0),
|
|
843
844
|
C("div", {
|
|
844
845
|
class: w(r(a).be("dropdown", "btns"))
|
|
845
846
|
}, [
|
|
846
847
|
C("span", {
|
|
847
848
|
class: w(r(a).be("dropdown", "value"))
|
|
848
849
|
}, [
|
|
849
|
-
|
|
850
|
+
_(r(bn), {
|
|
850
851
|
ref_key: "inputRef",
|
|
851
|
-
ref:
|
|
852
|
-
modelValue:
|
|
853
|
-
"onUpdate:modelValue":
|
|
852
|
+
ref: S,
|
|
853
|
+
modelValue: W.value,
|
|
854
|
+
"onUpdate:modelValue": J[0] || (J[0] = (fe) => W.value = fe),
|
|
854
855
|
"validate-event": !1,
|
|
855
856
|
size: "small",
|
|
856
|
-
onKeyup:
|
|
857
|
-
onBlur:
|
|
857
|
+
onKeyup: Lt(F, ["enter"]),
|
|
858
|
+
onBlur: F
|
|
858
859
|
}, null, 8, ["modelValue", "onKeyup"])
|
|
859
860
|
], 2),
|
|
860
|
-
|
|
861
|
+
_(r(Et), {
|
|
861
862
|
class: w(r(a).be("dropdown", "link-btn")),
|
|
862
863
|
text: "",
|
|
863
864
|
size: "small",
|
|
864
|
-
onClick:
|
|
865
|
+
onClick: z
|
|
865
866
|
}, {
|
|
866
867
|
default: M(() => [
|
|
867
|
-
|
|
868
|
+
Q(U(r(s)("el.colorpicker.clear")), 1)
|
|
868
869
|
]),
|
|
869
870
|
_: 1
|
|
870
871
|
}, 8, ["class"]),
|
|
871
|
-
|
|
872
|
+
_(r(Et), {
|
|
872
873
|
plain: "",
|
|
873
874
|
size: "small",
|
|
874
875
|
class: w(r(a).be("dropdown", "btn")),
|
|
875
|
-
onClick:
|
|
876
|
+
onClick: q
|
|
876
877
|
}, {
|
|
877
878
|
default: M(() => [
|
|
878
|
-
|
|
879
|
+
Q(U(r(s)("el.colorpicker.confirm")), 1)
|
|
879
880
|
]),
|
|
880
881
|
_: 1
|
|
881
882
|
}, 8, ["class"])
|
|
882
883
|
], 2)
|
|
883
|
-
], 40,
|
|
884
|
-
[r(
|
|
884
|
+
], 40, Fo)), [
|
|
885
|
+
[r(zt), G]
|
|
885
886
|
])
|
|
886
887
|
]),
|
|
887
888
|
default: M(() => [
|
|
888
889
|
C("div", {
|
|
889
890
|
id: r(c),
|
|
890
891
|
ref_key: "triggerRef",
|
|
891
|
-
ref:
|
|
892
|
-
class: w(r(
|
|
892
|
+
ref: k,
|
|
893
|
+
class: w(r(x)),
|
|
893
894
|
role: "button",
|
|
894
895
|
"aria-label": r(de),
|
|
895
|
-
"aria-labelledby": r(
|
|
896
|
-
"aria-description": r(s)("el.colorpicker.description", { color:
|
|
896
|
+
"aria-labelledby": r(be),
|
|
897
|
+
"aria-description": r(s)("el.colorpicker.description", { color: V.modelValue || "" }),
|
|
897
898
|
"aria-disabled": r(i),
|
|
898
|
-
tabindex: r(i) ? -1 :
|
|
899
|
+
tabindex: r(i) ? -1 : V.tabindex,
|
|
899
900
|
onKeydown: Ye,
|
|
900
|
-
onFocus:
|
|
901
|
-
onBlur:
|
|
901
|
+
onFocus: Z,
|
|
902
|
+
onBlur: J[1] || (J[1] = (...fe) => r(b) && r(b)(...fe))
|
|
902
903
|
}, [
|
|
903
|
-
r(i) ? (m(),
|
|
904
|
+
r(i) ? (m(), $("div", {
|
|
904
905
|
key: 0,
|
|
905
906
|
class: w(r(a).be("picker", "mask"))
|
|
906
|
-
}, null, 2)) :
|
|
907
|
+
}, null, 2)) : H("v-if", !0),
|
|
907
908
|
C("div", {
|
|
908
909
|
class: w(r(a).be("picker", "trigger")),
|
|
909
|
-
onClick:
|
|
910
|
+
onClick: A
|
|
910
911
|
}, [
|
|
911
912
|
C("span", {
|
|
912
|
-
class: w([r(a).be("picker", "color"), r(a).is("alpha",
|
|
913
|
+
class: w([r(a).be("picker", "color"), r(a).is("alpha", V.showAlpha)])
|
|
913
914
|
}, [
|
|
914
915
|
C("span", {
|
|
915
916
|
class: w(r(a).be("picker", "color-inner")),
|
|
@@ -917,25 +918,25 @@ const Oo = ["onKeydown"], Do = ["id", "aria-label", "aria-labelledby", "aria-des
|
|
|
917
918
|
backgroundColor: r(le)
|
|
918
919
|
})
|
|
919
920
|
}, [
|
|
920
|
-
|
|
921
|
+
Me(_(r(we), {
|
|
921
922
|
class: w([r(a).be("picker", "icon"), r(a).is("icon-arrow-down")])
|
|
922
923
|
}, {
|
|
923
924
|
default: M(() => [
|
|
924
|
-
|
|
925
|
+
_(r(Ht))
|
|
925
926
|
]),
|
|
926
927
|
_: 1
|
|
927
928
|
}, 8, ["class"]), [
|
|
928
|
-
[
|
|
929
|
+
[qe, V.modelValue || P.value]
|
|
929
930
|
]),
|
|
930
|
-
|
|
931
|
+
Me(_(r(we), {
|
|
931
932
|
class: w([r(a).be("picker", "empty"), r(a).is("icon-close")])
|
|
932
933
|
}, {
|
|
933
934
|
default: M(() => [
|
|
934
|
-
|
|
935
|
+
_(r(Wt))
|
|
935
936
|
]),
|
|
936
937
|
_: 1
|
|
937
938
|
}, 8, ["class"]), [
|
|
938
|
-
[
|
|
939
|
+
[qe, !V.modelValue && !P.value]
|
|
939
940
|
])
|
|
940
941
|
], 6)
|
|
941
942
|
], 2)
|
|
@@ -946,8 +947,8 @@ const Oo = ["onKeydown"], Do = ["id", "aria-label", "aria-labelledby", "aria-des
|
|
|
946
947
|
}, 8, ["visible", "popper-class", "transition"]));
|
|
947
948
|
}
|
|
948
949
|
});
|
|
949
|
-
var
|
|
950
|
-
const
|
|
950
|
+
var Wo = /* @__PURE__ */ ue(Ho, [["__file", "color-picker.vue"]]);
|
|
951
|
+
const qo = at(Wo), Ko = ke({
|
|
951
952
|
...yn,
|
|
952
953
|
direction: {
|
|
953
954
|
type: String,
|
|
@@ -970,47 +971,47 @@ const Uo = ot(zo), Go = Ce({
|
|
|
970
971
|
type: String,
|
|
971
972
|
default: "2"
|
|
972
973
|
}
|
|
973
|
-
}),
|
|
974
|
+
}), Uo = kn, jo = ["aria-label", "aria-labelledby", "aria-describedby"], Xo = ["id", "aria-level"], Go = ["aria-label"], Yo = ["id"], Zo = D({
|
|
974
975
|
name: "ElDrawer",
|
|
975
976
|
inheritAttrs: !1
|
|
976
|
-
}),
|
|
977
|
-
...
|
|
978
|
-
props:
|
|
979
|
-
emits:
|
|
977
|
+
}), Jo = /* @__PURE__ */ D({
|
|
978
|
+
...Zo,
|
|
979
|
+
props: Ko,
|
|
980
|
+
emits: Uo,
|
|
980
981
|
setup(e, { expose: n }) {
|
|
981
|
-
const t = e, o =
|
|
982
|
-
|
|
982
|
+
const t = e, o = qn();
|
|
983
|
+
Cn({
|
|
983
984
|
scope: "el-drawer",
|
|
984
985
|
from: "the title slot",
|
|
985
986
|
replacement: "the header slot",
|
|
986
987
|
version: "3.0.0",
|
|
987
988
|
ref: "https://element-plus.org/en-US/component/drawer.html#slots"
|
|
988
|
-
},
|
|
989
|
-
const s =
|
|
989
|
+
}, E(() => !!o.title));
|
|
990
|
+
const s = T(), a = T(), l = ne("drawer"), { t: u } = Dt(), {
|
|
990
991
|
afterEnter: i,
|
|
991
992
|
afterLeave: c,
|
|
992
993
|
beforeLeave: f,
|
|
993
994
|
visible: d,
|
|
994
|
-
rendered:
|
|
995
|
-
titleId:
|
|
995
|
+
rendered: p,
|
|
996
|
+
titleId: v,
|
|
996
997
|
bodyId: g,
|
|
997
|
-
zIndex:
|
|
998
|
-
onModalClick:
|
|
999
|
-
onOpenAutoFocus:
|
|
1000
|
-
onCloseAutoFocus:
|
|
1001
|
-
onFocusoutPrevented:
|
|
1002
|
-
onCloseRequested:
|
|
1003
|
-
handleClose:
|
|
1004
|
-
} =
|
|
998
|
+
zIndex: k,
|
|
999
|
+
onModalClick: S,
|
|
1000
|
+
onOpenAutoFocus: R,
|
|
1001
|
+
onCloseAutoFocus: N,
|
|
1002
|
+
onFocusoutPrevented: b,
|
|
1003
|
+
onCloseRequested: Z,
|
|
1004
|
+
handleClose: Y
|
|
1005
|
+
} = $n(t, s), O = E(() => t.direction === "rtl" || t.direction === "ltr"), j = E(() => vt(t.size));
|
|
1005
1006
|
return n({
|
|
1006
|
-
handleClose:
|
|
1007
|
+
handleClose: Y,
|
|
1007
1008
|
afterEnter: i,
|
|
1008
1009
|
afterLeave: c
|
|
1009
|
-
}), (
|
|
1010
|
+
}), (P, W) => (m(), L(Kn, {
|
|
1010
1011
|
to: "body",
|
|
1011
|
-
disabled:
|
|
1012
|
+
disabled: !P.appendToBody
|
|
1012
1013
|
}, [
|
|
1013
|
-
|
|
1014
|
+
_(it, {
|
|
1014
1015
|
name: r(l).b("fade"),
|
|
1015
1016
|
onAfterEnter: r(i),
|
|
1016
1017
|
onAfterLeave: r(c),
|
|
@@ -1018,36 +1019,36 @@ const Uo = ot(zo), Go = Ce({
|
|
|
1018
1019
|
persisted: ""
|
|
1019
1020
|
}, {
|
|
1020
1021
|
default: M(() => [
|
|
1021
|
-
|
|
1022
|
-
mask:
|
|
1023
|
-
"overlay-class":
|
|
1024
|
-
"z-index": r(
|
|
1025
|
-
onClick: r(
|
|
1022
|
+
Me(_(r(Mn), {
|
|
1023
|
+
mask: P.modal,
|
|
1024
|
+
"overlay-class": P.modalClass,
|
|
1025
|
+
"z-index": r(k),
|
|
1026
|
+
onClick: r(S)
|
|
1026
1027
|
}, {
|
|
1027
1028
|
default: M(() => [
|
|
1028
|
-
|
|
1029
|
+
_(r(wn), {
|
|
1029
1030
|
loop: "",
|
|
1030
1031
|
trapped: r(d),
|
|
1031
1032
|
"focus-trap-el": s.value,
|
|
1032
1033
|
"focus-start-el": a.value,
|
|
1033
|
-
onFocusAfterTrapped: r(
|
|
1034
|
-
onFocusAfterReleased: r(
|
|
1035
|
-
onFocusoutPrevented: r(
|
|
1036
|
-
onReleaseRequested: r(
|
|
1034
|
+
onFocusAfterTrapped: r(R),
|
|
1035
|
+
onFocusAfterReleased: r(N),
|
|
1036
|
+
onFocusoutPrevented: r(b),
|
|
1037
|
+
onReleaseRequested: r(Z)
|
|
1037
1038
|
}, {
|
|
1038
1039
|
default: M(() => [
|
|
1039
|
-
C("div",
|
|
1040
|
+
C("div", jt({
|
|
1040
1041
|
ref_key: "drawerRef",
|
|
1041
1042
|
ref: s,
|
|
1042
1043
|
"aria-modal": "true",
|
|
1043
|
-
"aria-label":
|
|
1044
|
-
"aria-labelledby":
|
|
1044
|
+
"aria-label": P.title || void 0,
|
|
1045
|
+
"aria-labelledby": P.title ? void 0 : r(v),
|
|
1045
1046
|
"aria-describedby": r(g)
|
|
1046
|
-
},
|
|
1047
|
-
class: [r(l).b(),
|
|
1048
|
-
style: r(
|
|
1047
|
+
}, P.$attrs, {
|
|
1048
|
+
class: [r(l).b(), P.direction, r(d) && "open"],
|
|
1049
|
+
style: r(O) ? "width: " + r(j) : "height: " + r(j),
|
|
1049
1050
|
role: "dialog",
|
|
1050
|
-
onClick:
|
|
1051
|
+
onClick: W[1] || (W[1] = Te(() => {
|
|
1051
1052
|
}, ["stop"]))
|
|
1052
1053
|
}), [
|
|
1053
1054
|
C("span", {
|
|
@@ -1056,64 +1057,64 @@ const Uo = ot(zo), Go = Ce({
|
|
|
1056
1057
|
class: w(r(l).e("sr-focus")),
|
|
1057
1058
|
tabindex: "-1"
|
|
1058
1059
|
}, null, 2),
|
|
1059
|
-
|
|
1060
|
+
P.withHeader ? (m(), $("header", {
|
|
1060
1061
|
key: 0,
|
|
1061
1062
|
class: w(r(l).e("header"))
|
|
1062
1063
|
}, [
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
]) : ae(
|
|
1064
|
+
P.$slots.title ? ae(P.$slots, "title", { key: 1 }, () => [
|
|
1065
|
+
H(" DEPRECATED SLOT ")
|
|
1066
|
+
]) : ae(P.$slots, "header", {
|
|
1066
1067
|
key: 0,
|
|
1067
|
-
close: r(
|
|
1068
|
-
titleId: r(
|
|
1068
|
+
close: r(Y),
|
|
1069
|
+
titleId: r(v),
|
|
1069
1070
|
titleClass: r(l).e("title")
|
|
1070
1071
|
}, () => [
|
|
1071
|
-
|
|
1072
|
+
P.$slots.title ? H("v-if", !0) : (m(), $("span", {
|
|
1072
1073
|
key: 0,
|
|
1073
|
-
id: r(
|
|
1074
|
+
id: r(v),
|
|
1074
1075
|
role: "heading",
|
|
1075
|
-
"aria-level":
|
|
1076
|
+
"aria-level": P.headerAriaLevel,
|
|
1076
1077
|
class: w(r(l).e("title"))
|
|
1077
|
-
},
|
|
1078
|
+
}, U(P.title), 11, Xo))
|
|
1078
1079
|
]),
|
|
1079
|
-
|
|
1080
|
+
P.showClose ? (m(), $("button", {
|
|
1080
1081
|
key: 2,
|
|
1081
1082
|
"aria-label": r(u)("el.drawer.close"),
|
|
1082
1083
|
class: w(r(l).e("close-btn")),
|
|
1083
1084
|
type: "button",
|
|
1084
|
-
onClick:
|
|
1085
|
+
onClick: W[0] || (W[0] = (...le) => r(Y) && r(Y)(...le))
|
|
1085
1086
|
}, [
|
|
1086
|
-
|
|
1087
|
+
_(r(we), {
|
|
1087
1088
|
class: w(r(l).e("close"))
|
|
1088
1089
|
}, {
|
|
1089
1090
|
default: M(() => [
|
|
1090
|
-
|
|
1091
|
+
_(r(Wt))
|
|
1091
1092
|
]),
|
|
1092
1093
|
_: 1
|
|
1093
1094
|
}, 8, ["class"])
|
|
1094
|
-
], 10,
|
|
1095
|
-
], 2)) :
|
|
1096
|
-
r(
|
|
1095
|
+
], 10, Go)) : H("v-if", !0)
|
|
1096
|
+
], 2)) : H("v-if", !0),
|
|
1097
|
+
r(p) ? (m(), $("div", {
|
|
1097
1098
|
key: 1,
|
|
1098
1099
|
id: r(g),
|
|
1099
1100
|
class: w(r(l).e("body"))
|
|
1100
1101
|
}, [
|
|
1101
|
-
ae(
|
|
1102
|
-
], 10, Yo)) :
|
|
1103
|
-
|
|
1102
|
+
ae(P.$slots, "default")
|
|
1103
|
+
], 10, Yo)) : H("v-if", !0),
|
|
1104
|
+
P.$slots.footer ? (m(), $("div", {
|
|
1104
1105
|
key: 2,
|
|
1105
1106
|
class: w(r(l).e("footer"))
|
|
1106
1107
|
}, [
|
|
1107
|
-
ae(
|
|
1108
|
-
], 2)) :
|
|
1109
|
-
], 16,
|
|
1108
|
+
ae(P.$slots, "footer")
|
|
1109
|
+
], 2)) : H("v-if", !0)
|
|
1110
|
+
], 16, jo)
|
|
1110
1111
|
]),
|
|
1111
1112
|
_: 3
|
|
1112
1113
|
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
1113
1114
|
]),
|
|
1114
1115
|
_: 3
|
|
1115
1116
|
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
1116
|
-
[
|
|
1117
|
+
[qe, r(d)]
|
|
1117
1118
|
])
|
|
1118
1119
|
]),
|
|
1119
1120
|
_: 3
|
|
@@ -1121,9 +1122,9 @@ const Uo = ot(zo), Go = Ce({
|
|
|
1121
1122
|
], 8, ["disabled"]));
|
|
1122
1123
|
}
|
|
1123
1124
|
});
|
|
1124
|
-
var
|
|
1125
|
-
const
|
|
1126
|
-
let
|
|
1125
|
+
var Qo = /* @__PURE__ */ ue(Jo, [["__file", "drawer.vue"]]);
|
|
1126
|
+
const ea = at(Qo);
|
|
1127
|
+
let ta = class {
|
|
1127
1128
|
constructor(n, t) {
|
|
1128
1129
|
this.parent = n, this.domNode = t, this.subIndex = 0, this.subIndex = 0, this.init();
|
|
1129
1130
|
}
|
|
@@ -1148,7 +1149,7 @@ let ea = class {
|
|
|
1148
1149
|
break;
|
|
1149
1150
|
}
|
|
1150
1151
|
case re.tab: {
|
|
1151
|
-
|
|
1152
|
+
Qe(n, "mouseleave");
|
|
1152
1153
|
break;
|
|
1153
1154
|
}
|
|
1154
1155
|
case re.enter:
|
|
@@ -1161,29 +1162,29 @@ let ea = class {
|
|
|
1161
1162
|
});
|
|
1162
1163
|
});
|
|
1163
1164
|
}
|
|
1164
|
-
},
|
|
1165
|
+
}, na = class {
|
|
1165
1166
|
constructor(n, t) {
|
|
1166
1167
|
this.domNode = n, this.submenu = null, this.submenu = null, this.init(t);
|
|
1167
1168
|
}
|
|
1168
1169
|
init(n) {
|
|
1169
1170
|
this.domNode.setAttribute("tabindex", "0");
|
|
1170
1171
|
const t = this.domNode.querySelector(`.${n}-menu`);
|
|
1171
|
-
t && (this.submenu = new
|
|
1172
|
+
t && (this.submenu = new ta(this, t)), this.addListeners();
|
|
1172
1173
|
}
|
|
1173
1174
|
addListeners() {
|
|
1174
1175
|
this.domNode.addEventListener("keydown", (n) => {
|
|
1175
1176
|
let t = !1;
|
|
1176
1177
|
switch (n.code) {
|
|
1177
1178
|
case re.down: {
|
|
1178
|
-
|
|
1179
|
+
Qe(n.currentTarget, "mouseenter"), this.submenu && this.submenu.gotoSubIndex(0), t = !0;
|
|
1179
1180
|
break;
|
|
1180
1181
|
}
|
|
1181
1182
|
case re.up: {
|
|
1182
|
-
|
|
1183
|
+
Qe(n.currentTarget, "mouseenter"), this.submenu && this.submenu.gotoSubIndex(this.submenu.subMenuItems.length - 1), t = !0;
|
|
1183
1184
|
break;
|
|
1184
1185
|
}
|
|
1185
1186
|
case re.tab: {
|
|
1186
|
-
|
|
1187
|
+
Qe(n.currentTarget, "mouseleave");
|
|
1187
1188
|
break;
|
|
1188
1189
|
}
|
|
1189
1190
|
case re.enter:
|
|
@@ -1195,18 +1196,18 @@ let ea = class {
|
|
|
1195
1196
|
t && n.preventDefault();
|
|
1196
1197
|
});
|
|
1197
1198
|
}
|
|
1198
|
-
},
|
|
1199
|
+
}, oa = class {
|
|
1199
1200
|
constructor(n, t) {
|
|
1200
1201
|
this.domNode = n, this.init(t);
|
|
1201
1202
|
}
|
|
1202
1203
|
init(n) {
|
|
1203
1204
|
const t = this.domNode.childNodes;
|
|
1204
1205
|
Array.from(t).forEach((o) => {
|
|
1205
|
-
o.nodeType === 1 && new
|
|
1206
|
+
o.nodeType === 1 && new na(o, n);
|
|
1206
1207
|
});
|
|
1207
1208
|
}
|
|
1208
1209
|
};
|
|
1209
|
-
const
|
|
1210
|
+
const aa = D({
|
|
1210
1211
|
name: "ElMenuCollapseTransition",
|
|
1211
1212
|
setup() {
|
|
1212
1213
|
const e = ne("menu");
|
|
@@ -1214,32 +1215,32 @@ const oa = F({
|
|
|
1214
1215
|
listeners: {
|
|
1215
1216
|
onBeforeEnter: (t) => t.style.opacity = "0.2",
|
|
1216
1217
|
onEnter(t, o) {
|
|
1217
|
-
|
|
1218
|
+
Je(t, `${e.namespace.value}-opacity-transition`), t.style.opacity = "1", o();
|
|
1218
1219
|
},
|
|
1219
1220
|
onAfterEnter(t) {
|
|
1220
|
-
|
|
1221
|
+
ut(t, `${e.namespace.value}-opacity-transition`), t.style.opacity = "";
|
|
1221
1222
|
},
|
|
1222
1223
|
onBeforeLeave(t) {
|
|
1223
|
-
t.dataset || (t.dataset = {}), Sn(t, e.m("collapse")) ? (
|
|
1224
|
+
t.dataset || (t.dataset = {}), Sn(t, e.m("collapse")) ? (ut(t, e.m("collapse")), t.dataset.oldOverflow = t.style.overflow, t.dataset.scrollWidth = t.clientWidth.toString(), Je(t, e.m("collapse"))) : (Je(t, e.m("collapse")), t.dataset.oldOverflow = t.style.overflow, t.dataset.scrollWidth = t.clientWidth.toString(), ut(t, e.m("collapse"))), t.style.width = `${t.scrollWidth}px`, t.style.overflow = "hidden";
|
|
1224
1225
|
},
|
|
1225
1226
|
onLeave(t) {
|
|
1226
|
-
|
|
1227
|
+
Je(t, "horizontal-collapse-transition"), t.style.width = `${t.dataset.scrollWidth}px`;
|
|
1227
1228
|
}
|
|
1228
1229
|
}
|
|
1229
1230
|
};
|
|
1230
1231
|
}
|
|
1231
1232
|
});
|
|
1232
|
-
function
|
|
1233
|
-
return m(),
|
|
1233
|
+
function la(e, n, t, o, s, a) {
|
|
1234
|
+
return m(), L(it, jt({ mode: "out-in" }, e.listeners), {
|
|
1234
1235
|
default: M(() => [
|
|
1235
1236
|
ae(e.$slots, "default")
|
|
1236
1237
|
]),
|
|
1237
1238
|
_: 3
|
|
1238
1239
|
}, 16);
|
|
1239
1240
|
}
|
|
1240
|
-
var
|
|
1241
|
-
function
|
|
1242
|
-
const t =
|
|
1241
|
+
var sa = /* @__PURE__ */ ue(aa, [["render", la], ["__file", "menu-collapse-transition.vue"]]);
|
|
1242
|
+
function Jt(e, n) {
|
|
1243
|
+
const t = E(() => {
|
|
1243
1244
|
let s = e.parent;
|
|
1244
1245
|
const a = [n.value];
|
|
1245
1246
|
for (; s.type.name !== "ElMenu"; )
|
|
@@ -1247,7 +1248,7 @@ function Xt(e, n) {
|
|
|
1247
1248
|
return a;
|
|
1248
1249
|
});
|
|
1249
1250
|
return {
|
|
1250
|
-
parentMenu:
|
|
1251
|
+
parentMenu: E(() => {
|
|
1251
1252
|
let s = e.parent;
|
|
1252
1253
|
for (; s && !["ElMenu", "ElSubMenu"].includes(s.type.name); )
|
|
1253
1254
|
s = s.parent;
|
|
@@ -1256,23 +1257,23 @@ function Xt(e, n) {
|
|
|
1256
1257
|
indexPath: t
|
|
1257
1258
|
};
|
|
1258
1259
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1260
|
+
function ra(e) {
|
|
1261
|
+
return E(() => {
|
|
1261
1262
|
const t = e.backgroundColor;
|
|
1262
|
-
return t ? new
|
|
1263
|
+
return t ? new xn(t).shade(20).toString() : "";
|
|
1263
1264
|
});
|
|
1264
1265
|
}
|
|
1265
|
-
const
|
|
1266
|
+
const Qt = (e, n) => {
|
|
1266
1267
|
const t = ne("menu");
|
|
1267
|
-
return
|
|
1268
|
+
return E(() => t.cssVarBlock({
|
|
1268
1269
|
"text-color": e.textColor || "",
|
|
1269
1270
|
"hover-text-color": e.textColor || "",
|
|
1270
1271
|
"bg-color": e.backgroundColor || "",
|
|
1271
|
-
"hover-bg-color":
|
|
1272
|
+
"hover-bg-color": ra(e).value || "",
|
|
1272
1273
|
"active-color": e.activeTextColor || "",
|
|
1273
1274
|
level: `${n}`
|
|
1274
1275
|
}));
|
|
1275
|
-
},
|
|
1276
|
+
}, ia = ke({
|
|
1276
1277
|
index: {
|
|
1277
1278
|
type: String,
|
|
1278
1279
|
required: !0
|
|
@@ -1287,32 +1288,32 @@ const Kt = (e, n) => {
|
|
|
1287
1288
|
},
|
|
1288
1289
|
popperOffset: Number,
|
|
1289
1290
|
expandCloseIcon: {
|
|
1290
|
-
type:
|
|
1291
|
+
type: Ee
|
|
1291
1292
|
},
|
|
1292
1293
|
expandOpenIcon: {
|
|
1293
|
-
type:
|
|
1294
|
+
type: Ee
|
|
1294
1295
|
},
|
|
1295
1296
|
collapseCloseIcon: {
|
|
1296
|
-
type:
|
|
1297
|
+
type: Ee
|
|
1297
1298
|
},
|
|
1298
1299
|
collapseOpenIcon: {
|
|
1299
|
-
type:
|
|
1300
|
+
type: Ee
|
|
1300
1301
|
}
|
|
1301
|
-
}),
|
|
1302
|
-
var
|
|
1303
|
-
name:
|
|
1304
|
-
props:
|
|
1302
|
+
}), mt = "ElSubMenu";
|
|
1303
|
+
var $t = D({
|
|
1304
|
+
name: mt,
|
|
1305
|
+
props: ia,
|
|
1305
1306
|
setup(e, { slots: n, expose: t }) {
|
|
1306
|
-
const o =
|
|
1307
|
-
i ||
|
|
1308
|
-
const c =
|
|
1309
|
-
c ||
|
|
1310
|
-
const f =
|
|
1311
|
-
let
|
|
1312
|
-
const
|
|
1313
|
-
const
|
|
1314
|
-
return
|
|
1315
|
-
}),
|
|
1307
|
+
const o = ge(), { indexPath: s, parentMenu: a } = Jt(o, E(() => e.index)), l = ne("menu"), u = ne("sub-menu"), i = Le("rootMenu");
|
|
1308
|
+
i || nt(mt, "can not inject root menu");
|
|
1309
|
+
const c = Le(`subMenu:${a.value.uid}`);
|
|
1310
|
+
c || nt(mt, "can not inject sub menu");
|
|
1311
|
+
const f = T({}), d = T({});
|
|
1312
|
+
let p;
|
|
1313
|
+
const v = T(!1), g = T(), k = T(null), S = E(() => P.value === "horizontal" && N.value ? "bottom-start" : "right-start"), R = E(() => P.value === "horizontal" && N.value || P.value === "vertical" && !i.props.collapse ? e.expandCloseIcon && e.expandOpenIcon ? O.value ? e.expandOpenIcon : e.expandCloseIcon : Ht : e.collapseCloseIcon && e.collapseOpenIcon ? O.value ? e.collapseOpenIcon : e.collapseCloseIcon : En), N = E(() => c.level === 0), b = E(() => {
|
|
1314
|
+
const h = e.teleported;
|
|
1315
|
+
return h === void 0 ? N.value : h;
|
|
1316
|
+
}), Z = E(() => i.props.collapse ? `${l.namespace.value}-zoom-in-left` : `${l.namespace.value}-zoom-in-top`), Y = E(() => P.value === "horizontal" && N.value ? [
|
|
1316
1317
|
"bottom-start",
|
|
1317
1318
|
"bottom-end",
|
|
1318
1319
|
"top-start",
|
|
@@ -1328,168 +1329,168 @@ var Mt = F({
|
|
|
1328
1329
|
"bottom-end",
|
|
1329
1330
|
"top-start",
|
|
1330
1331
|
"top-end"
|
|
1331
|
-
]),
|
|
1332
|
-
let
|
|
1333
|
-
return Object.values(f.value).forEach((
|
|
1334
|
-
|
|
1335
|
-
}), Object.values(d.value).forEach((
|
|
1336
|
-
|
|
1337
|
-
}),
|
|
1338
|
-
}),
|
|
1332
|
+
]), O = E(() => i.openedMenus.includes(e.index)), j = E(() => {
|
|
1333
|
+
let h = !1;
|
|
1334
|
+
return Object.values(f.value).forEach((A) => {
|
|
1335
|
+
A.active && (h = !0);
|
|
1336
|
+
}), Object.values(d.value).forEach((A) => {
|
|
1337
|
+
A.active && (h = !0);
|
|
1338
|
+
}), h;
|
|
1339
|
+
}), P = E(() => i.props.mode), W = rt({
|
|
1339
1340
|
index: e.index,
|
|
1340
1341
|
indexPath: s,
|
|
1341
|
-
active:
|
|
1342
|
-
}), le =
|
|
1343
|
-
var
|
|
1344
|
-
return (
|
|
1345
|
-
}), de =
|
|
1346
|
-
var
|
|
1347
|
-
return (
|
|
1348
|
-
}),
|
|
1349
|
-
var
|
|
1350
|
-
return (
|
|
1351
|
-
}),
|
|
1352
|
-
var
|
|
1353
|
-
return (
|
|
1354
|
-
}),
|
|
1355
|
-
var
|
|
1356
|
-
return (
|
|
1357
|
-
},
|
|
1358
|
-
|
|
1359
|
-
},
|
|
1342
|
+
active: j
|
|
1343
|
+
}), le = Qt(i.props, c.level + 1), ce = E(() => {
|
|
1344
|
+
var h;
|
|
1345
|
+
return (h = e.popperOffset) != null ? h : i.props.popperOffset;
|
|
1346
|
+
}), de = E(() => {
|
|
1347
|
+
var h;
|
|
1348
|
+
return (h = e.popperClass) != null ? h : i.props.popperClass;
|
|
1349
|
+
}), be = E(() => {
|
|
1350
|
+
var h;
|
|
1351
|
+
return (h = e.showTimeout) != null ? h : i.props.showTimeout;
|
|
1352
|
+
}), x = E(() => {
|
|
1353
|
+
var h;
|
|
1354
|
+
return (h = e.hideTimeout) != null ? h : i.props.hideTimeout;
|
|
1355
|
+
}), I = () => {
|
|
1356
|
+
var h, A, F;
|
|
1357
|
+
return (F = (A = (h = k.value) == null ? void 0 : h.popperRef) == null ? void 0 : A.popperInstanceRef) == null ? void 0 : F.destroy();
|
|
1358
|
+
}, B = (h) => {
|
|
1359
|
+
h || I();
|
|
1360
|
+
}, X = () => {
|
|
1360
1361
|
i.props.menuTrigger === "hover" && i.props.mode === "horizontal" || i.props.collapse && i.props.mode === "vertical" || e.disabled || i.handleSubMenuClick({
|
|
1361
1362
|
index: e.index,
|
|
1362
1363
|
indexPath: s.value,
|
|
1363
|
-
active:
|
|
1364
|
+
active: j.value
|
|
1364
1365
|
});
|
|
1365
|
-
},
|
|
1366
|
-
var
|
|
1367
|
-
if (
|
|
1366
|
+
}, K = (h, A = be.value) => {
|
|
1367
|
+
var F;
|
|
1368
|
+
if (h.type !== "focus") {
|
|
1368
1369
|
if (i.props.menuTrigger === "click" && i.props.mode === "horizontal" || !i.props.collapse && i.props.mode === "vertical" || e.disabled) {
|
|
1369
1370
|
c.mouseInChild.value = !0;
|
|
1370
1371
|
return;
|
|
1371
1372
|
}
|
|
1372
|
-
c.mouseInChild.value = !0,
|
|
1373
|
+
c.mouseInChild.value = !0, p == null || p(), { stop: p } = It(() => {
|
|
1373
1374
|
i.openMenu(e.index, s.value);
|
|
1374
|
-
},
|
|
1375
|
+
}, A), b.value && ((F = a.value.vnode.el) == null || F.dispatchEvent(new MouseEvent("mouseenter")));
|
|
1375
1376
|
}
|
|
1376
|
-
}, y = (
|
|
1377
|
-
var
|
|
1377
|
+
}, y = (h = !1) => {
|
|
1378
|
+
var A;
|
|
1378
1379
|
if (i.props.menuTrigger === "click" && i.props.mode === "horizontal" || !i.props.collapse && i.props.mode === "vertical") {
|
|
1379
1380
|
c.mouseInChild.value = !1;
|
|
1380
1381
|
return;
|
|
1381
1382
|
}
|
|
1382
|
-
|
|
1383
|
+
p == null || p(), c.mouseInChild.value = !1, { stop: p } = It(() => !v.value && i.closeMenu(e.index, s.value), x.value), b.value && h && ((A = c.handleMouseleave) == null || A.call(c, !0));
|
|
1383
1384
|
};
|
|
1384
|
-
ee(() => i.props.collapse, (
|
|
1385
|
+
ee(() => i.props.collapse, (h) => B(!!h));
|
|
1385
1386
|
{
|
|
1386
|
-
const
|
|
1387
|
-
d.value[
|
|
1388
|
-
},
|
|
1389
|
-
delete d.value[
|
|
1387
|
+
const h = (F) => {
|
|
1388
|
+
d.value[F.index] = F;
|
|
1389
|
+
}, A = (F) => {
|
|
1390
|
+
delete d.value[F.index];
|
|
1390
1391
|
};
|
|
1391
|
-
|
|
1392
|
-
addSubMenu:
|
|
1393
|
-
removeSubMenu:
|
|
1392
|
+
We(`subMenu:${o.uid}`, {
|
|
1393
|
+
addSubMenu: h,
|
|
1394
|
+
removeSubMenu: A,
|
|
1394
1395
|
handleMouseleave: y,
|
|
1395
|
-
mouseInChild:
|
|
1396
|
+
mouseInChild: v,
|
|
1396
1397
|
level: c.level + 1
|
|
1397
1398
|
});
|
|
1398
1399
|
}
|
|
1399
1400
|
return t({
|
|
1400
|
-
opened:
|
|
1401
|
+
opened: O
|
|
1401
1402
|
}), pe(() => {
|
|
1402
|
-
i.addSubMenu(
|
|
1403
|
-
}),
|
|
1404
|
-
c.removeSubMenu(
|
|
1403
|
+
i.addSubMenu(W), c.addSubMenu(W);
|
|
1404
|
+
}), Xt(() => {
|
|
1405
|
+
c.removeSubMenu(W), i.removeSubMenu(W);
|
|
1405
1406
|
}), () => {
|
|
1406
|
-
var
|
|
1407
|
-
const
|
|
1408
|
-
(
|
|
1407
|
+
var h;
|
|
1408
|
+
const A = [
|
|
1409
|
+
(h = n.title) == null ? void 0 : h.call(n),
|
|
1409
1410
|
te(we, {
|
|
1410
1411
|
class: u.e("icon-arrow"),
|
|
1411
1412
|
style: {
|
|
1412
|
-
transform:
|
|
1413
|
+
transform: O.value ? e.expandCloseIcon && e.expandOpenIcon || e.collapseCloseIcon && e.collapseOpenIcon && i.props.collapse ? "none" : "rotateZ(180deg)" : "none"
|
|
1413
1414
|
}
|
|
1414
1415
|
}, {
|
|
1415
|
-
default: () => ve(
|
|
1416
|
+
default: () => ve(R.value) ? te(o.appContext.components[R.value]) : te(R.value)
|
|
1416
1417
|
})
|
|
1417
|
-
],
|
|
1418
|
-
ref:
|
|
1419
|
-
visible:
|
|
1418
|
+
], F = i.isMenuPopup ? te(je, {
|
|
1419
|
+
ref: k,
|
|
1420
|
+
visible: O.value,
|
|
1420
1421
|
effect: "light",
|
|
1421
1422
|
pure: !0,
|
|
1422
1423
|
offset: ce.value,
|
|
1423
1424
|
showArrow: !1,
|
|
1424
1425
|
persistent: !0,
|
|
1425
1426
|
popperClass: de.value,
|
|
1426
|
-
placement:
|
|
1427
|
-
teleported:
|
|
1428
|
-
fallbackPlacements:
|
|
1429
|
-
transition:
|
|
1427
|
+
placement: S.value,
|
|
1428
|
+
teleported: b.value,
|
|
1429
|
+
fallbackPlacements: Y.value,
|
|
1430
|
+
transition: Z.value,
|
|
1430
1431
|
gpuAcceleration: !1
|
|
1431
1432
|
}, {
|
|
1432
1433
|
content: () => {
|
|
1433
|
-
var
|
|
1434
|
+
var q;
|
|
1434
1435
|
return te("div", {
|
|
1435
1436
|
class: [
|
|
1436
|
-
l.m(
|
|
1437
|
+
l.m(P.value),
|
|
1437
1438
|
l.m("popup-container"),
|
|
1438
1439
|
de.value
|
|
1439
1440
|
],
|
|
1440
|
-
onMouseenter: (
|
|
1441
|
+
onMouseenter: (z) => K(z, 100),
|
|
1441
1442
|
onMouseleave: () => y(!0),
|
|
1442
|
-
onFocus: (
|
|
1443
|
+
onFocus: (z) => K(z, 100)
|
|
1443
1444
|
}, [
|
|
1444
1445
|
te("ul", {
|
|
1445
1446
|
class: [
|
|
1446
1447
|
l.b(),
|
|
1447
1448
|
l.m("popup"),
|
|
1448
|
-
l.m(`popup-${
|
|
1449
|
+
l.m(`popup-${S.value}`)
|
|
1449
1450
|
],
|
|
1450
1451
|
style: le.value
|
|
1451
|
-
}, [(
|
|
1452
|
+
}, [(q = n.default) == null ? void 0 : q.call(n)])
|
|
1452
1453
|
]);
|
|
1453
1454
|
},
|
|
1454
1455
|
default: () => te("div", {
|
|
1455
1456
|
class: u.e("title"),
|
|
1456
|
-
onClick:
|
|
1457
|
-
},
|
|
1457
|
+
onClick: X
|
|
1458
|
+
}, A)
|
|
1458
1459
|
}) : te(oe, {}, [
|
|
1459
1460
|
te("div", {
|
|
1460
1461
|
class: u.e("title"),
|
|
1461
1462
|
ref: g,
|
|
1462
|
-
onClick:
|
|
1463
|
-
},
|
|
1464
|
-
te(
|
|
1463
|
+
onClick: X
|
|
1464
|
+
}, A),
|
|
1465
|
+
te(ao, {}, {
|
|
1465
1466
|
default: () => {
|
|
1466
|
-
var
|
|
1467
|
-
return
|
|
1467
|
+
var q;
|
|
1468
|
+
return Me(te("ul", {
|
|
1468
1469
|
role: "menu",
|
|
1469
1470
|
class: [l.b(), l.m("inline")],
|
|
1470
1471
|
style: le.value
|
|
1471
|
-
}, [(
|
|
1472
|
+
}, [(q = n.default) == null ? void 0 : q.call(n)]), [[qe, O.value]]);
|
|
1472
1473
|
}
|
|
1473
1474
|
})
|
|
1474
1475
|
]);
|
|
1475
1476
|
return te("li", {
|
|
1476
1477
|
class: [
|
|
1477
1478
|
u.b(),
|
|
1478
|
-
u.is("active",
|
|
1479
|
-
u.is("opened",
|
|
1479
|
+
u.is("active", j.value),
|
|
1480
|
+
u.is("opened", O.value),
|
|
1480
1481
|
u.is("disabled", e.disabled)
|
|
1481
1482
|
],
|
|
1482
1483
|
role: "menuitem",
|
|
1483
1484
|
ariaHaspopup: !0,
|
|
1484
|
-
ariaExpanded:
|
|
1485
|
-
onMouseenter:
|
|
1485
|
+
ariaExpanded: O.value,
|
|
1486
|
+
onMouseenter: K,
|
|
1486
1487
|
onMouseleave: () => y(),
|
|
1487
|
-
onFocus:
|
|
1488
|
-
}, [
|
|
1488
|
+
onFocus: K
|
|
1489
|
+
}, [F]);
|
|
1489
1490
|
};
|
|
1490
1491
|
}
|
|
1491
1492
|
});
|
|
1492
|
-
const
|
|
1493
|
+
const ua = ke({
|
|
1493
1494
|
mode: {
|
|
1494
1495
|
type: String,
|
|
1495
1496
|
values: ["horizontal", "vertical"],
|
|
@@ -1500,8 +1501,8 @@ const ia = Ce({
|
|
|
1500
1501
|
default: ""
|
|
1501
1502
|
},
|
|
1502
1503
|
defaultOpeneds: {
|
|
1503
|
-
type:
|
|
1504
|
-
default: () =>
|
|
1504
|
+
type: Ve(Array),
|
|
1505
|
+
default: () => An([])
|
|
1505
1506
|
},
|
|
1506
1507
|
uniqueOpened: Boolean,
|
|
1507
1508
|
router: Boolean,
|
|
@@ -1528,8 +1529,8 @@ const ia = Ce({
|
|
|
1528
1529
|
default: 6
|
|
1529
1530
|
},
|
|
1530
1531
|
ellipsisIcon: {
|
|
1531
|
-
type:
|
|
1532
|
-
default: () =>
|
|
1532
|
+
type: Ee,
|
|
1533
|
+
default: () => Pn
|
|
1533
1534
|
},
|
|
1534
1535
|
popperEffect: {
|
|
1535
1536
|
type: String,
|
|
@@ -1545,137 +1546,137 @@ const ia = Ce({
|
|
|
1545
1546
|
type: Number,
|
|
1546
1547
|
default: 300
|
|
1547
1548
|
}
|
|
1548
|
-
}),
|
|
1549
|
-
close: (e, n) => ve(e) &&
|
|
1550
|
-
open: (e, n) => ve(e) &&
|
|
1551
|
-
select: (e, n, t, o) => ve(e) &&
|
|
1549
|
+
}), pt = (e) => Array.isArray(e) && e.every((n) => ve(n)), ca = {
|
|
1550
|
+
close: (e, n) => ve(e) && pt(n),
|
|
1551
|
+
open: (e, n) => ve(e) && pt(n),
|
|
1552
|
+
select: (e, n, t, o) => ve(e) && pt(n) && Vn(t) && (o === void 0 || o instanceof Promise)
|
|
1552
1553
|
};
|
|
1553
|
-
var
|
|
1554
|
+
var da = D({
|
|
1554
1555
|
name: "ElMenu",
|
|
1555
|
-
props:
|
|
1556
|
-
emits:
|
|
1556
|
+
props: ua,
|
|
1557
|
+
emits: ca,
|
|
1557
1558
|
setup(e, { emit: n, slots: t, expose: o }) {
|
|
1558
|
-
const s =
|
|
1559
|
-
const
|
|
1560
|
-
if (!
|
|
1559
|
+
const s = ge(), a = s.appContext.config.globalProperties.$router, l = T(), u = ne("menu"), i = ne("sub-menu"), c = T(-1), f = T(e.defaultOpeneds && !e.collapse ? e.defaultOpeneds.slice(0) : []), d = T(e.defaultActive), p = T({}), v = T({}), g = E(() => e.mode === "horizontal" || e.mode === "vertical" && e.collapse), k = () => {
|
|
1560
|
+
const x = d.value && p.value[d.value];
|
|
1561
|
+
if (!x || e.mode === "horizontal" || e.collapse)
|
|
1561
1562
|
return;
|
|
1562
|
-
|
|
1563
|
-
const
|
|
1564
|
-
|
|
1563
|
+
x.indexPath.forEach((B) => {
|
|
1564
|
+
const X = v.value[B];
|
|
1565
|
+
X && S(B, X.indexPath);
|
|
1565
1566
|
});
|
|
1566
|
-
},
|
|
1567
|
-
f.value.includes(
|
|
1568
|
-
},
|
|
1569
|
-
const
|
|
1570
|
-
|
|
1571
|
-
},
|
|
1572
|
-
|
|
1573
|
-
},
|
|
1574
|
-
index:
|
|
1575
|
-
indexPath:
|
|
1567
|
+
}, S = (x, I) => {
|
|
1568
|
+
f.value.includes(x) || (e.uniqueOpened && (f.value = f.value.filter((B) => I.includes(B))), f.value.push(x), n("open", x, I));
|
|
1569
|
+
}, R = (x) => {
|
|
1570
|
+
const I = f.value.indexOf(x);
|
|
1571
|
+
I !== -1 && f.value.splice(I, 1);
|
|
1572
|
+
}, N = (x, I) => {
|
|
1573
|
+
R(x), n("close", x, I);
|
|
1574
|
+
}, b = ({
|
|
1575
|
+
index: x,
|
|
1576
|
+
indexPath: I
|
|
1576
1577
|
}) => {
|
|
1577
|
-
f.value.includes(
|
|
1578
|
-
},
|
|
1578
|
+
f.value.includes(x) ? N(x, I) : S(x, I);
|
|
1579
|
+
}, Z = (x) => {
|
|
1579
1580
|
(e.mode === "horizontal" || e.collapse) && (f.value = []);
|
|
1580
|
-
const { index:
|
|
1581
|
-
if (!(
|
|
1581
|
+
const { index: I, indexPath: B } = x;
|
|
1582
|
+
if (!(Fe(I) || Fe(B)))
|
|
1582
1583
|
if (e.router && a) {
|
|
1583
|
-
const
|
|
1584
|
-
n("select",
|
|
1584
|
+
const X = x.route || I, K = a.push(X).then((y) => (y || (d.value = I), y));
|
|
1585
|
+
n("select", I, B, { index: I, indexPath: B, route: X }, K);
|
|
1585
1586
|
} else
|
|
1586
|
-
d.value =
|
|
1587
|
-
},
|
|
1588
|
-
const
|
|
1589
|
-
|
|
1590
|
-
},
|
|
1591
|
-
const
|
|
1592
|
-
return
|
|
1593
|
-
},
|
|
1594
|
-
var
|
|
1587
|
+
d.value = I, n("select", I, B, { index: I, indexPath: B });
|
|
1588
|
+
}, Y = (x) => {
|
|
1589
|
+
const I = p.value, B = I[x] || d.value && I[d.value] || I[e.defaultActive];
|
|
1590
|
+
B ? d.value = B.index : d.value = x;
|
|
1591
|
+
}, O = (x) => {
|
|
1592
|
+
const I = getComputedStyle(x), B = Number.parseInt(I.marginLeft, 10), X = Number.parseInt(I.marginRight, 10);
|
|
1593
|
+
return x.offsetWidth + B + X || 0;
|
|
1594
|
+
}, j = () => {
|
|
1595
|
+
var x, I;
|
|
1595
1596
|
if (!l.value)
|
|
1596
1597
|
return -1;
|
|
1597
|
-
const
|
|
1598
|
-
let
|
|
1599
|
-
return
|
|
1600
|
-
|
|
1601
|
-
}),
|
|
1602
|
-
},
|
|
1603
|
-
let
|
|
1598
|
+
const B = Array.from((I = (x = l.value) == null ? void 0 : x.childNodes) != null ? I : []).filter((z) => z.nodeName !== "#comment" && (z.nodeName !== "#text" || z.nodeValue)), X = 64, K = getComputedStyle(l.value), y = Number.parseInt(K.paddingLeft, 10), h = Number.parseInt(K.paddingRight, 10), A = l.value.clientWidth - y - h;
|
|
1599
|
+
let F = 0, q = 0;
|
|
1600
|
+
return B.forEach((z, G) => {
|
|
1601
|
+
F += O(z), F <= A - X && (q = G + 1);
|
|
1602
|
+
}), q === B.length ? -1 : q;
|
|
1603
|
+
}, P = (x) => v.value[x].indexPath, W = (x, I = 33.34) => {
|
|
1604
|
+
let B;
|
|
1604
1605
|
return () => {
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
},
|
|
1606
|
+
B && clearTimeout(B), B = setTimeout(() => {
|
|
1607
|
+
x();
|
|
1608
|
+
}, I);
|
|
1608
1609
|
};
|
|
1609
1610
|
};
|
|
1610
1611
|
let le = !0;
|
|
1611
1612
|
const ce = () => {
|
|
1612
|
-
if (c.value ===
|
|
1613
|
+
if (c.value === j())
|
|
1613
1614
|
return;
|
|
1614
|
-
const
|
|
1615
|
-
c.value = -1,
|
|
1616
|
-
c.value =
|
|
1615
|
+
const x = () => {
|
|
1616
|
+
c.value = -1, $e(() => {
|
|
1617
|
+
c.value = j();
|
|
1617
1618
|
});
|
|
1618
1619
|
};
|
|
1619
|
-
le ?
|
|
1620
|
+
le ? x() : W(x)(), le = !1;
|
|
1620
1621
|
};
|
|
1621
|
-
ee(() => e.defaultActive, (
|
|
1622
|
-
|
|
1623
|
-
}), ee(() => e.collapse, (
|
|
1624
|
-
|
|
1625
|
-
}), ee(
|
|
1622
|
+
ee(() => e.defaultActive, (x) => {
|
|
1623
|
+
p.value[x] || (d.value = ""), Y(x);
|
|
1624
|
+
}), ee(() => e.collapse, (x) => {
|
|
1625
|
+
x && (f.value = []);
|
|
1626
|
+
}), ee(p.value, k);
|
|
1626
1627
|
let de;
|
|
1627
1628
|
yt(() => {
|
|
1628
|
-
e.mode === "horizontal" && e.ellipsis ? de =
|
|
1629
|
+
e.mode === "horizontal" && e.ellipsis ? de = Tn(l, ce).stop : de == null || de();
|
|
1629
1630
|
});
|
|
1630
|
-
const
|
|
1631
|
+
const be = T(!1);
|
|
1631
1632
|
{
|
|
1632
|
-
const
|
|
1633
|
-
|
|
1634
|
-
},
|
|
1635
|
-
delete
|
|
1633
|
+
const x = (K) => {
|
|
1634
|
+
v.value[K.index] = K;
|
|
1635
|
+
}, I = (K) => {
|
|
1636
|
+
delete v.value[K.index];
|
|
1636
1637
|
};
|
|
1637
|
-
|
|
1638
|
+
We("rootMenu", rt({
|
|
1638
1639
|
props: e,
|
|
1639
1640
|
openedMenus: f,
|
|
1640
|
-
items:
|
|
1641
|
-
subMenus:
|
|
1641
|
+
items: p,
|
|
1642
|
+
subMenus: v,
|
|
1642
1643
|
activeIndex: d,
|
|
1643
1644
|
isMenuPopup: g,
|
|
1644
|
-
addMenuItem: (
|
|
1645
|
-
|
|
1645
|
+
addMenuItem: (K) => {
|
|
1646
|
+
p.value[K.index] = K;
|
|
1646
1647
|
},
|
|
1647
|
-
removeMenuItem: (
|
|
1648
|
-
delete
|
|
1648
|
+
removeMenuItem: (K) => {
|
|
1649
|
+
delete p.value[K.index];
|
|
1649
1650
|
},
|
|
1650
|
-
addSubMenu:
|
|
1651
|
-
removeSubMenu:
|
|
1652
|
-
openMenu:
|
|
1653
|
-
closeMenu:
|
|
1654
|
-
handleMenuItemClick:
|
|
1655
|
-
handleSubMenuClick:
|
|
1656
|
-
})),
|
|
1657
|
-
addSubMenu:
|
|
1658
|
-
removeSubMenu:
|
|
1659
|
-
mouseInChild:
|
|
1651
|
+
addSubMenu: x,
|
|
1652
|
+
removeSubMenu: I,
|
|
1653
|
+
openMenu: S,
|
|
1654
|
+
closeMenu: N,
|
|
1655
|
+
handleMenuItemClick: Z,
|
|
1656
|
+
handleSubMenuClick: b
|
|
1657
|
+
})), We(`subMenu:${s.uid}`, {
|
|
1658
|
+
addSubMenu: x,
|
|
1659
|
+
removeSubMenu: I,
|
|
1660
|
+
mouseInChild: be,
|
|
1660
1661
|
level: 0
|
|
1661
1662
|
});
|
|
1662
1663
|
}
|
|
1663
1664
|
return pe(() => {
|
|
1664
|
-
e.mode === "horizontal" && new
|
|
1665
|
+
e.mode === "horizontal" && new oa(s.vnode.el, u.namespace.value);
|
|
1665
1666
|
}), o({
|
|
1666
|
-
open: (
|
|
1667
|
-
const { indexPath:
|
|
1668
|
-
|
|
1667
|
+
open: (I) => {
|
|
1668
|
+
const { indexPath: B } = v.value[I];
|
|
1669
|
+
B.forEach((X) => S(X, B));
|
|
1669
1670
|
},
|
|
1670
|
-
close:
|
|
1671
|
+
close: R,
|
|
1671
1672
|
handleResize: ce
|
|
1672
1673
|
}), () => {
|
|
1673
|
-
var
|
|
1674
|
-
let
|
|
1675
|
-
const
|
|
1674
|
+
var x, I;
|
|
1675
|
+
let B = (I = (x = t.default) == null ? void 0 : x.call(t)) != null ? I : [];
|
|
1676
|
+
const X = [];
|
|
1676
1677
|
if (e.mode === "horizontal" && l.value) {
|
|
1677
|
-
const
|
|
1678
|
-
|
|
1678
|
+
const A = In(B), F = c.value === -1 ? A : A.slice(0, c.value), q = c.value === -1 ? [] : A.slice(c.value);
|
|
1679
|
+
q != null && q.length && e.ellipsis && (B = F, X.push(te($t, {
|
|
1679
1680
|
index: "sub-menu-more",
|
|
1680
1681
|
class: i.e("hide-arrow"),
|
|
1681
1682
|
popperOffset: e.popperOffset
|
|
@@ -1685,55 +1686,55 @@ var ca = F({
|
|
|
1685
1686
|
}, {
|
|
1686
1687
|
default: () => te(e.ellipsisIcon)
|
|
1687
1688
|
}),
|
|
1688
|
-
default: () =>
|
|
1689
|
+
default: () => q
|
|
1689
1690
|
})));
|
|
1690
1691
|
}
|
|
1691
|
-
const
|
|
1692
|
+
const K = Qt(e, 0), y = e.closeOnClickOutside ? [
|
|
1692
1693
|
[
|
|
1693
|
-
|
|
1694
|
+
zt,
|
|
1694
1695
|
() => {
|
|
1695
|
-
f.value.length && (
|
|
1696
|
+
f.value.length && (be.value || (f.value.forEach((A) => n("close", A, P(A))), f.value = []));
|
|
1696
1697
|
}
|
|
1697
1698
|
]
|
|
1698
|
-
] : [],
|
|
1699
|
+
] : [], h = Me(te("ul", {
|
|
1699
1700
|
key: String(e.collapse),
|
|
1700
1701
|
role: "menubar",
|
|
1701
1702
|
ref: l,
|
|
1702
|
-
style:
|
|
1703
|
+
style: K.value,
|
|
1703
1704
|
class: {
|
|
1704
1705
|
[u.b()]: !0,
|
|
1705
1706
|
[u.m(e.mode)]: !0,
|
|
1706
1707
|
[u.m("collapse")]: e.collapse
|
|
1707
1708
|
}
|
|
1708
|
-
}, [...
|
|
1709
|
-
return e.collapseTransition && e.mode === "vertical" ? te(
|
|
1709
|
+
}, [...B, ...X]), y);
|
|
1710
|
+
return e.collapseTransition && e.mode === "vertical" ? te(sa, () => h) : h;
|
|
1710
1711
|
};
|
|
1711
1712
|
}
|
|
1712
1713
|
});
|
|
1713
|
-
const
|
|
1714
|
+
const fa = ke({
|
|
1714
1715
|
index: {
|
|
1715
|
-
type:
|
|
1716
|
+
type: Ve([String, null]),
|
|
1716
1717
|
default: null
|
|
1717
1718
|
},
|
|
1718
1719
|
route: {
|
|
1719
|
-
type:
|
|
1720
|
+
type: Ve([String, Object])
|
|
1720
1721
|
},
|
|
1721
1722
|
disabled: Boolean
|
|
1722
|
-
}),
|
|
1723
|
+
}), ma = {
|
|
1723
1724
|
click: (e) => ve(e.index) && Array.isArray(e.indexPath)
|
|
1724
|
-
},
|
|
1725
|
-
name:
|
|
1725
|
+
}, ht = "ElMenuItem", pa = D({
|
|
1726
|
+
name: ht,
|
|
1726
1727
|
components: {
|
|
1727
|
-
ElTooltip:
|
|
1728
|
+
ElTooltip: je
|
|
1728
1729
|
},
|
|
1729
|
-
props:
|
|
1730
|
-
emits:
|
|
1730
|
+
props: fa,
|
|
1731
|
+
emits: ma,
|
|
1731
1732
|
setup(e, { emit: n }) {
|
|
1732
|
-
const t =
|
|
1733
|
-
o ||
|
|
1734
|
-
const { parentMenu: l, indexPath: u } =
|
|
1735
|
-
i ||
|
|
1736
|
-
const c =
|
|
1733
|
+
const t = ge(), o = Le("rootMenu"), s = ne("menu"), a = ne("menu-item");
|
|
1734
|
+
o || nt(ht, "can not inject root menu");
|
|
1735
|
+
const { parentMenu: l, indexPath: u } = Jt(t, Un(e, "index")), i = Le(`subMenu:${l.value.uid}`);
|
|
1736
|
+
i || nt(ht, "can not inject sub menu");
|
|
1737
|
+
const c = E(() => e.index === o.activeIndex), f = rt({
|
|
1737
1738
|
index: e.index,
|
|
1738
1739
|
indexPath: u,
|
|
1739
1740
|
active: c
|
|
@@ -1746,7 +1747,7 @@ const da = Ce({
|
|
|
1746
1747
|
};
|
|
1747
1748
|
return pe(() => {
|
|
1748
1749
|
i.addSubMenu(f), o.addMenuItem(f);
|
|
1749
|
-
}),
|
|
1750
|
+
}), Xt(() => {
|
|
1750
1751
|
i.removeSubMenu(f), o.removeMenuItem(f);
|
|
1751
1752
|
}), {
|
|
1752
1753
|
parentMenu: l,
|
|
@@ -1758,9 +1759,9 @@ const da = Ce({
|
|
|
1758
1759
|
};
|
|
1759
1760
|
}
|
|
1760
1761
|
});
|
|
1761
|
-
function
|
|
1762
|
-
const l =
|
|
1763
|
-
return m(),
|
|
1762
|
+
function ha(e, n, t, o, s, a) {
|
|
1763
|
+
const l = Oe("el-tooltip");
|
|
1764
|
+
return m(), $("li", {
|
|
1764
1765
|
class: w([
|
|
1765
1766
|
e.nsMenuItem.b(),
|
|
1766
1767
|
e.nsMenuItem.is("active", e.active),
|
|
@@ -1770,7 +1771,7 @@ function pa(e, n, t, o, s, a) {
|
|
|
1770
1771
|
tabindex: "-1",
|
|
1771
1772
|
onClick: n[0] || (n[0] = (...u) => e.handleClick && e.handleClick(...u))
|
|
1772
1773
|
}, [
|
|
1773
|
-
e.parentMenu.type.name === "ElMenu" && e.rootMenu.props.collapse && e.$slots.title ? (m(),
|
|
1774
|
+
e.parentMenu.type.name === "ElMenu" && e.rootMenu.props.collapse && e.$slots.title ? (m(), L(l, {
|
|
1774
1775
|
key: 0,
|
|
1775
1776
|
effect: e.rootMenu.props.popperEffect,
|
|
1776
1777
|
placement: "right",
|
|
@@ -1788,18 +1789,18 @@ function pa(e, n, t, o, s, a) {
|
|
|
1788
1789
|
], 2)
|
|
1789
1790
|
]),
|
|
1790
1791
|
_: 3
|
|
1791
|
-
}, 8, ["effect"])) : (m(),
|
|
1792
|
+
}, 8, ["effect"])) : (m(), $(oe, { key: 1 }, [
|
|
1792
1793
|
ae(e.$slots, "default"),
|
|
1793
1794
|
ae(e.$slots, "title")
|
|
1794
1795
|
], 64))
|
|
1795
1796
|
], 2);
|
|
1796
1797
|
}
|
|
1797
|
-
var en = /* @__PURE__ */ ue(
|
|
1798
|
-
const
|
|
1798
|
+
var en = /* @__PURE__ */ ue(pa, [["render", ha], ["__file", "menu-item.vue"]]);
|
|
1799
|
+
const va = {
|
|
1799
1800
|
title: String
|
|
1800
|
-
},
|
|
1801
|
-
name:
|
|
1802
|
-
props:
|
|
1801
|
+
}, _a = "ElMenuItemGroup", ga = D({
|
|
1802
|
+
name: _a,
|
|
1803
|
+
props: va,
|
|
1803
1804
|
setup() {
|
|
1804
1805
|
return {
|
|
1805
1806
|
ns: ne("menu-item-group")
|
|
@@ -1807,14 +1808,14 @@ const ha = {
|
|
|
1807
1808
|
}
|
|
1808
1809
|
});
|
|
1809
1810
|
function ba(e, n, t, o, s, a) {
|
|
1810
|
-
return m(),
|
|
1811
|
+
return m(), $("li", {
|
|
1811
1812
|
class: w(e.ns.b())
|
|
1812
1813
|
}, [
|
|
1813
1814
|
C("div", {
|
|
1814
1815
|
class: w(e.ns.e("title"))
|
|
1815
1816
|
}, [
|
|
1816
|
-
e.$slots.title ? ae(e.$slots, "title", { key: 1 }) : (m(),
|
|
1817
|
-
|
|
1817
|
+
e.$slots.title ? ae(e.$slots, "title", { key: 1 }) : (m(), $(oe, { key: 0 }, [
|
|
1818
|
+
Q(U(e.title), 1)
|
|
1818
1819
|
], 64))
|
|
1819
1820
|
], 2),
|
|
1820
1821
|
C("ul", null, [
|
|
@@ -1823,39 +1824,39 @@ function ba(e, n, t, o, s, a) {
|
|
|
1823
1824
|
], 2);
|
|
1824
1825
|
}
|
|
1825
1826
|
var tn = /* @__PURE__ */ ue(ga, [["render", ba], ["__file", "menu-item-group.vue"]]);
|
|
1826
|
-
const nn =
|
|
1827
|
+
const nn = at(da, {
|
|
1827
1828
|
MenuItem: en,
|
|
1828
1829
|
MenuItemGroup: tn,
|
|
1829
|
-
SubMenu:
|
|
1830
|
-
}), on =
|
|
1831
|
-
|
|
1832
|
-
const
|
|
1830
|
+
SubMenu: $t
|
|
1831
|
+
}), on = lt(en);
|
|
1832
|
+
lt(tn);
|
|
1833
|
+
const ya = lt($t), ka = /* @__PURE__ */ D({
|
|
1833
1834
|
__name: "index",
|
|
1834
1835
|
setup(e) {
|
|
1835
|
-
const n =
|
|
1836
|
+
const n = _e(), t = T([
|
|
1836
1837
|
{ label: "默认", value: "default" },
|
|
1837
1838
|
{ label: "大型", value: "large" },
|
|
1838
1839
|
{ label: "小型", value: "small" }
|
|
1839
1840
|
]);
|
|
1840
1841
|
function o(s) {
|
|
1841
|
-
n.changeSize(s),
|
|
1842
|
+
n.changeSize(s), Ln.success("切换布局大小成功");
|
|
1842
1843
|
}
|
|
1843
1844
|
return (s, a) => {
|
|
1844
|
-
const l =
|
|
1845
|
-
return m(),
|
|
1845
|
+
const l = Ne, u = qt, i = Kt, c = Ut;
|
|
1846
|
+
return m(), L(c, {
|
|
1846
1847
|
trigger: "click",
|
|
1847
1848
|
onCommand: o
|
|
1848
1849
|
}, {
|
|
1849
1850
|
dropdown: M(() => [
|
|
1850
|
-
|
|
1851
|
+
_(i, null, {
|
|
1851
1852
|
default: M(() => [
|
|
1852
|
-
(m(!0),
|
|
1853
|
+
(m(!0), $(oe, null, xe(r(t), (f) => (m(), L(u, {
|
|
1853
1854
|
key: f.value,
|
|
1854
1855
|
disabled: r(n).size == f.value,
|
|
1855
1856
|
command: f.value
|
|
1856
1857
|
}, {
|
|
1857
1858
|
default: M(() => [
|
|
1858
|
-
|
|
1859
|
+
Q(U(f.label), 1)
|
|
1859
1860
|
]),
|
|
1860
1861
|
_: 2
|
|
1861
1862
|
}, 1032, ["disabled", "command"]))), 128))
|
|
@@ -1865,19 +1866,22 @@ const _a = at(Mt), ya = /* @__PURE__ */ F({
|
|
|
1865
1866
|
]),
|
|
1866
1867
|
default: M(() => [
|
|
1867
1868
|
C("div", null, [
|
|
1868
|
-
|
|
1869
|
+
_(l, { "icon-class": "size" })
|
|
1869
1870
|
])
|
|
1870
1871
|
]),
|
|
1871
1872
|
_: 1
|
|
1872
1873
|
});
|
|
1873
1874
|
};
|
|
1874
1875
|
}
|
|
1875
|
-
}), Ca = { class: "flex" },
|
|
1876
|
+
}), Ca = { class: "flex" }, $a = { class: "flex-center h100% p10px" }, Ma = ["src"], wa = /* @__PURE__ */ D({
|
|
1876
1877
|
__name: "NavbarRight",
|
|
1877
1878
|
setup(e) {
|
|
1878
|
-
const n =
|
|
1879
|
-
function
|
|
1880
|
-
|
|
1879
|
+
const n = _e(), t = gt(), o = Nn(), s = Se(), a = Ge(), l = kt(), u = E(() => n.device === et.MOBILE), i = T(!1), c = T(!1), { isFullscreen: f, toggle: d } = On();
|
|
1880
|
+
function p() {
|
|
1881
|
+
c.value = !0;
|
|
1882
|
+
}
|
|
1883
|
+
function v() {
|
|
1884
|
+
Bn.confirm("确定注销并退出系统吗?", "提示", {
|
|
1881
1885
|
confirmButtonText: "确定",
|
|
1882
1886
|
cancelButtonText: "取消",
|
|
1883
1887
|
type: "warning",
|
|
@@ -1890,83 +1894,83 @@ const _a = at(Mt), ya = /* @__PURE__ */ F({
|
|
|
1890
1894
|
});
|
|
1891
1895
|
});
|
|
1892
1896
|
}
|
|
1893
|
-
function
|
|
1894
|
-
i.value =
|
|
1897
|
+
function g(k) {
|
|
1898
|
+
i.value = k;
|
|
1895
1899
|
}
|
|
1896
|
-
return (
|
|
1897
|
-
const
|
|
1898
|
-
return m(),
|
|
1899
|
-
r(u) ?
|
|
1900
|
+
return (k, S) => {
|
|
1901
|
+
const R = Ne, N = ka, b = je, Z = Wn, Y = qt, O = Oe("router-link"), j = Kt, P = Ut;
|
|
1902
|
+
return m(), $("div", Ca, [
|
|
1903
|
+
r(u) ? H("", !0) : (m(), $(oe, { key: 0 }, [
|
|
1900
1904
|
C("div", {
|
|
1901
1905
|
class: "setting-item",
|
|
1902
|
-
onClick:
|
|
1903
|
-
(...
|
|
1906
|
+
onClick: S[0] || (S[0] = //@ts-ignore
|
|
1907
|
+
(...W) => r(d) && r(d)(...W))
|
|
1904
1908
|
}, [
|
|
1905
|
-
|
|
1906
|
-
"icon-class": r(
|
|
1909
|
+
_(R, {
|
|
1910
|
+
"icon-class": r(f) ? "fullscreen-exit" : "fullscreen"
|
|
1907
1911
|
}, null, 8, ["icon-class"])
|
|
1908
1912
|
]),
|
|
1909
|
-
b
|
|
1910
|
-
content:
|
|
1913
|
+
_(b, {
|
|
1914
|
+
content: k.$t("sizeSelect.tooltip"),
|
|
1911
1915
|
effect: "dark",
|
|
1912
1916
|
placement: "bottom"
|
|
1913
1917
|
}, {
|
|
1914
1918
|
default: M(() => [
|
|
1915
|
-
|
|
1919
|
+
_(N, { class: "setting-item" })
|
|
1916
1920
|
]),
|
|
1917
1921
|
_: 1
|
|
1918
1922
|
}, 8, ["content"]),
|
|
1919
|
-
|
|
1923
|
+
_(Z, { class: "setting-item" })
|
|
1920
1924
|
], 64)),
|
|
1921
|
-
|
|
1925
|
+
_(P, {
|
|
1922
1926
|
class: "setting-item",
|
|
1923
1927
|
trigger: "click"
|
|
1924
1928
|
}, {
|
|
1925
1929
|
dropdown: M(() => [
|
|
1926
|
-
|
|
1930
|
+
_(j, null, {
|
|
1927
1931
|
default: M(() => [
|
|
1928
|
-
|
|
1932
|
+
_(O, { to: "/" }, {
|
|
1929
1933
|
default: M(() => [
|
|
1930
|
-
|
|
1934
|
+
_(Y, null, {
|
|
1931
1935
|
default: M(() => [
|
|
1932
|
-
|
|
1936
|
+
Q(U(k.$t("navbar.dashboard")), 1)
|
|
1933
1937
|
]),
|
|
1934
1938
|
_: 1
|
|
1935
1939
|
})
|
|
1936
1940
|
]),
|
|
1937
1941
|
_: 1
|
|
1938
1942
|
}),
|
|
1939
|
-
|
|
1943
|
+
_(Y, null, {
|
|
1940
1944
|
default: M(() => [
|
|
1941
|
-
|
|
1945
|
+
_(O, { to: "/my/profile" }, {
|
|
1942
1946
|
default: M(() => [
|
|
1943
|
-
|
|
1947
|
+
Q(U(k.$t("navbar.profile")), 1)
|
|
1944
1948
|
]),
|
|
1945
1949
|
_: 1
|
|
1946
1950
|
})
|
|
1947
1951
|
]),
|
|
1948
1952
|
_: 1
|
|
1949
1953
|
}),
|
|
1950
|
-
|
|
1951
|
-
onClick:
|
|
1954
|
+
_(Y, {
|
|
1955
|
+
onClick: S[1] || (S[1] = (W) => i.value = !0)
|
|
1952
1956
|
}, {
|
|
1953
1957
|
default: M(() => [
|
|
1954
|
-
|
|
1958
|
+
Q(U(k.$t("navbar.changePwd")), 1)
|
|
1955
1959
|
]),
|
|
1956
1960
|
_: 1
|
|
1957
1961
|
}),
|
|
1958
|
-
|
|
1962
|
+
_(Y, { onClick: p }, {
|
|
1959
1963
|
default: M(() => [
|
|
1960
|
-
|
|
1964
|
+
Q(U(k.$t("navbar.runAs")), 1)
|
|
1961
1965
|
]),
|
|
1962
1966
|
_: 1
|
|
1963
|
-
}
|
|
1964
|
-
|
|
1967
|
+
}),
|
|
1968
|
+
_(Y, {
|
|
1965
1969
|
divided: "",
|
|
1966
|
-
onClick:
|
|
1970
|
+
onClick: v
|
|
1967
1971
|
}, {
|
|
1968
1972
|
default: M(() => [
|
|
1969
|
-
|
|
1973
|
+
Q(U(k.$t("navbar.logout")), 1)
|
|
1970
1974
|
]),
|
|
1971
1975
|
_: 1
|
|
1972
1976
|
})
|
|
@@ -1975,33 +1979,38 @@ const _a = at(Mt), ya = /* @__PURE__ */ F({
|
|
|
1975
1979
|
})
|
|
1976
1980
|
]),
|
|
1977
1981
|
default: M(() => [
|
|
1978
|
-
C("div",
|
|
1982
|
+
C("div", $a, [
|
|
1979
1983
|
C("img", {
|
|
1980
1984
|
src: r(o).user.avatar,
|
|
1981
1985
|
class: "rounded-full mr-10px w24px w24px"
|
|
1982
1986
|
}, null, 8, Ma),
|
|
1983
|
-
C("span", null,
|
|
1987
|
+
C("span", null, U(r(o).user.nickName), 1)
|
|
1984
1988
|
])
|
|
1985
1989
|
]),
|
|
1986
1990
|
_: 1
|
|
1987
1991
|
}),
|
|
1988
|
-
r(
|
|
1992
|
+
r(ze).showSettings ? (m(), $("div", {
|
|
1989
1993
|
key: 1,
|
|
1990
1994
|
class: "setting-item",
|
|
1991
|
-
onClick:
|
|
1995
|
+
onClick: S[2] || (S[2] = (W) => r(s).settingsVisible = !0)
|
|
1992
1996
|
}, [
|
|
1993
|
-
|
|
1994
|
-
])) :
|
|
1995
|
-
r(i) ? (m(),
|
|
1997
|
+
_(R, { "icon-class": "setting" })
|
|
1998
|
+
])) : H("", !0),
|
|
1999
|
+
r(i) ? (m(), L(eo, {
|
|
1996
2000
|
key: 2,
|
|
1997
2001
|
"pwd-visible": r(i),
|
|
1998
|
-
onDialogActionChange:
|
|
1999
|
-
}, null, 8, ["pwd-visible"])) :
|
|
2002
|
+
onDialogActionChange: g
|
|
2003
|
+
}, null, 8, ["pwd-visible"])) : H("", !0),
|
|
2004
|
+
r(c) ? (m(), L(to, {
|
|
2005
|
+
key: 3,
|
|
2006
|
+
modelValue: r(c),
|
|
2007
|
+
"onUpdate:modelValue": S[3] || (S[3] = (W) => ot(c) ? c.value = W : null)
|
|
2008
|
+
}, null, 8, ["modelValue"])) : H("", !0)
|
|
2000
2009
|
]);
|
|
2001
2010
|
};
|
|
2002
2011
|
}
|
|
2003
|
-
}), an = /* @__PURE__ */ ie(
|
|
2004
|
-
function
|
|
2012
|
+
}), an = /* @__PURE__ */ ie(wa, [["__scopeId", "data-v-33a2d98b"]]);
|
|
2013
|
+
function Sa(e) {
|
|
2005
2014
|
for (var n = [], t = 0; t < e.length; ) {
|
|
2006
2015
|
var o = e[t];
|
|
2007
2016
|
if (o === "*" || o === "+" || o === "?") {
|
|
@@ -2069,48 +2078,48 @@ function wa(e) {
|
|
|
2069
2078
|
}
|
|
2070
2079
|
return n.push({ type: "END", index: t, value: "" }), n;
|
|
2071
2080
|
}
|
|
2072
|
-
function
|
|
2081
|
+
function xa(e, n) {
|
|
2073
2082
|
n === void 0 && (n = {});
|
|
2074
|
-
for (var t =
|
|
2075
|
-
if (i < t.length && t[i].type ===
|
|
2083
|
+
for (var t = Sa(e), o = n.prefixes, s = o === void 0 ? "./" : o, a = "[^".concat(Ia(n.delimiter || "/#?"), "]+?"), l = [], u = 0, i = 0, c = "", f = function(O) {
|
|
2084
|
+
if (i < t.length && t[i].type === O)
|
|
2076
2085
|
return t[i++].value;
|
|
2077
|
-
}, d = function(
|
|
2078
|
-
var
|
|
2079
|
-
if (
|
|
2080
|
-
return
|
|
2081
|
-
var
|
|
2082
|
-
throw new TypeError("Unexpected ".concat(
|
|
2083
|
-
},
|
|
2084
|
-
for (var
|
|
2085
|
-
|
|
2086
|
-
return
|
|
2086
|
+
}, d = function(O) {
|
|
2087
|
+
var j = f(O);
|
|
2088
|
+
if (j !== void 0)
|
|
2089
|
+
return j;
|
|
2090
|
+
var P = t[i], W = P.type, le = P.index;
|
|
2091
|
+
throw new TypeError("Unexpected ".concat(W, " at ").concat(le, ", expected ").concat(O));
|
|
2092
|
+
}, p = function() {
|
|
2093
|
+
for (var O = "", j; j = f("CHAR") || f("ESCAPED_CHAR"); )
|
|
2094
|
+
O += j;
|
|
2095
|
+
return O;
|
|
2087
2096
|
}; i < t.length; ) {
|
|
2088
|
-
var
|
|
2089
|
-
if (g ||
|
|
2090
|
-
var
|
|
2091
|
-
s.indexOf(
|
|
2097
|
+
var v = f("CHAR"), g = f("NAME"), k = f("PATTERN");
|
|
2098
|
+
if (g || k) {
|
|
2099
|
+
var S = v || "";
|
|
2100
|
+
s.indexOf(S) === -1 && (c += S, S = ""), c && (l.push(c), c = ""), l.push({
|
|
2092
2101
|
name: g || u++,
|
|
2093
|
-
prefix:
|
|
2102
|
+
prefix: S,
|
|
2094
2103
|
suffix: "",
|
|
2095
|
-
pattern:
|
|
2104
|
+
pattern: k || a,
|
|
2096
2105
|
modifier: f("MODIFIER") || ""
|
|
2097
2106
|
});
|
|
2098
2107
|
continue;
|
|
2099
2108
|
}
|
|
2100
|
-
var
|
|
2101
|
-
if (
|
|
2102
|
-
c +=
|
|
2109
|
+
var R = v || f("ESCAPED_CHAR");
|
|
2110
|
+
if (R) {
|
|
2111
|
+
c += R;
|
|
2103
2112
|
continue;
|
|
2104
2113
|
}
|
|
2105
2114
|
c && (l.push(c), c = "");
|
|
2106
|
-
var
|
|
2107
|
-
if (
|
|
2108
|
-
var
|
|
2115
|
+
var N = f("OPEN");
|
|
2116
|
+
if (N) {
|
|
2117
|
+
var S = p(), b = f("NAME") || "", Z = f("PATTERN") || "", Y = p();
|
|
2109
2118
|
d("CLOSE"), l.push({
|
|
2110
|
-
name:
|
|
2111
|
-
pattern:
|
|
2112
|
-
prefix:
|
|
2113
|
-
suffix:
|
|
2119
|
+
name: b || (Z ? u++ : ""),
|
|
2120
|
+
pattern: b && !Z ? a : Z,
|
|
2121
|
+
prefix: S,
|
|
2122
|
+
suffix: Y,
|
|
2114
2123
|
modifier: f("MODIFIER") || ""
|
|
2115
2124
|
});
|
|
2116
2125
|
continue;
|
|
@@ -2119,12 +2128,12 @@ function Sa(e, n) {
|
|
|
2119
2128
|
}
|
|
2120
2129
|
return l;
|
|
2121
2130
|
}
|
|
2122
|
-
function
|
|
2123
|
-
return xa(
|
|
2131
|
+
function Ea(e, n) {
|
|
2132
|
+
return Ta(xa(e, n), n);
|
|
2124
2133
|
}
|
|
2125
|
-
function
|
|
2134
|
+
function Ta(e, n) {
|
|
2126
2135
|
n === void 0 && (n = {});
|
|
2127
|
-
var t =
|
|
2136
|
+
var t = Aa(n), o = n.encode, s = o === void 0 ? function(i) {
|
|
2128
2137
|
return i;
|
|
2129
2138
|
} : o, a = n.validate, l = a === void 0 ? !0 : a, u = e.map(function(i) {
|
|
2130
2139
|
if (typeof i == "object")
|
|
@@ -2137,57 +2146,57 @@ function xa(e, n) {
|
|
|
2137
2146
|
c += d;
|
|
2138
2147
|
continue;
|
|
2139
2148
|
}
|
|
2140
|
-
var
|
|
2141
|
-
if (Array.isArray(
|
|
2149
|
+
var p = i ? i[d.name] : void 0, v = d.modifier === "?" || d.modifier === "*", g = d.modifier === "*" || d.modifier === "+";
|
|
2150
|
+
if (Array.isArray(p)) {
|
|
2142
2151
|
if (!g)
|
|
2143
2152
|
throw new TypeError('Expected "'.concat(d.name, '" to not repeat, but got an array'));
|
|
2144
|
-
if (
|
|
2145
|
-
if (
|
|
2153
|
+
if (p.length === 0) {
|
|
2154
|
+
if (v)
|
|
2146
2155
|
continue;
|
|
2147
2156
|
throw new TypeError('Expected "'.concat(d.name, '" to not be empty'));
|
|
2148
2157
|
}
|
|
2149
|
-
for (var
|
|
2150
|
-
var
|
|
2151
|
-
if (l && !u[f].test(
|
|
2152
|
-
throw new TypeError('Expected all "'.concat(d.name, '" to match "').concat(d.pattern, '", but got "').concat(
|
|
2153
|
-
c += d.prefix +
|
|
2158
|
+
for (var k = 0; k < p.length; k++) {
|
|
2159
|
+
var S = s(p[k], d);
|
|
2160
|
+
if (l && !u[f].test(S))
|
|
2161
|
+
throw new TypeError('Expected all "'.concat(d.name, '" to match "').concat(d.pattern, '", but got "').concat(S, '"'));
|
|
2162
|
+
c += d.prefix + S + d.suffix;
|
|
2154
2163
|
}
|
|
2155
2164
|
continue;
|
|
2156
2165
|
}
|
|
2157
|
-
if (typeof
|
|
2158
|
-
var
|
|
2159
|
-
if (l && !u[f].test(
|
|
2160
|
-
throw new TypeError('Expected "'.concat(d.name, '" to match "').concat(d.pattern, '", but got "').concat(
|
|
2161
|
-
c += d.prefix +
|
|
2166
|
+
if (typeof p == "string" || typeof p == "number") {
|
|
2167
|
+
var S = s(String(p), d);
|
|
2168
|
+
if (l && !u[f].test(S))
|
|
2169
|
+
throw new TypeError('Expected "'.concat(d.name, '" to match "').concat(d.pattern, '", but got "').concat(S, '"'));
|
|
2170
|
+
c += d.prefix + S + d.suffix;
|
|
2162
2171
|
continue;
|
|
2163
2172
|
}
|
|
2164
|
-
if (!
|
|
2165
|
-
var
|
|
2166
|
-
throw new TypeError('Expected "'.concat(d.name, '" to be ').concat(
|
|
2173
|
+
if (!v) {
|
|
2174
|
+
var R = g ? "an array" : "a string";
|
|
2175
|
+
throw new TypeError('Expected "'.concat(d.name, '" to be ').concat(R));
|
|
2167
2176
|
}
|
|
2168
2177
|
}
|
|
2169
2178
|
return c;
|
|
2170
2179
|
};
|
|
2171
2180
|
}
|
|
2172
|
-
function
|
|
2181
|
+
function Ia(e) {
|
|
2173
2182
|
return e.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
|
2174
2183
|
}
|
|
2175
|
-
function
|
|
2184
|
+
function Aa(e) {
|
|
2176
2185
|
return e && e.sensitive ? "" : "i";
|
|
2177
2186
|
}
|
|
2178
|
-
function
|
|
2179
|
-
return
|
|
2187
|
+
function Ue(e) {
|
|
2188
|
+
return At.global.te("route." + e) ? At.global.t("route." + e) : e;
|
|
2180
2189
|
}
|
|
2181
|
-
const
|
|
2190
|
+
const Pa = {
|
|
2182
2191
|
key: 0,
|
|
2183
2192
|
class: "color-gray-400"
|
|
2184
|
-
},
|
|
2193
|
+
}, Va = ["onClick"], La = /* @__PURE__ */ D({
|
|
2185
2194
|
__name: "index",
|
|
2186
2195
|
setup(e) {
|
|
2187
|
-
const n =
|
|
2196
|
+
const n = Ge(), t = (u) => {
|
|
2188
2197
|
const { params: i } = n;
|
|
2189
|
-
return
|
|
2190
|
-
}, o =
|
|
2198
|
+
return Ea(u)(i);
|
|
2199
|
+
}, o = T([]);
|
|
2191
2200
|
function s() {
|
|
2192
2201
|
let u = n.matched.filter(
|
|
2193
2202
|
(c) => c.meta && c.meta.title
|
|
@@ -2204,12 +2213,12 @@ const Na = {
|
|
|
2204
2213
|
function l(u) {
|
|
2205
2214
|
const { redirect: i, path: c } = u;
|
|
2206
2215
|
if (i) {
|
|
2207
|
-
|
|
2216
|
+
Pt.push(i).catch((f) => {
|
|
2208
2217
|
console.warn(f);
|
|
2209
2218
|
});
|
|
2210
2219
|
return;
|
|
2211
2220
|
}
|
|
2212
|
-
|
|
2221
|
+
Pt.push(t(c)).catch((f) => {
|
|
2213
2222
|
console.warn(f);
|
|
2214
2223
|
});
|
|
2215
2224
|
}
|
|
@@ -2218,22 +2227,22 @@ const Na = {
|
|
|
2218
2227
|
(u) => {
|
|
2219
2228
|
u.startsWith("/redirect/") || s();
|
|
2220
2229
|
}
|
|
2221
|
-
),
|
|
2230
|
+
), jn(() => {
|
|
2222
2231
|
s();
|
|
2223
2232
|
}), (u, i) => {
|
|
2224
|
-
const c =
|
|
2225
|
-
return m(),
|
|
2233
|
+
const c = po, f = mo;
|
|
2234
|
+
return m(), L(f, { class: "flex-y-center" }, {
|
|
2226
2235
|
default: M(() => [
|
|
2227
|
-
|
|
2236
|
+
_(Xn, { "enter-active-class": "animate__animated animate__fadeInRight" }, {
|
|
2228
2237
|
default: M(() => [
|
|
2229
|
-
(m(!0),
|
|
2238
|
+
(m(!0), $(oe, null, xe(r(o), (d, p) => (m(), L(c, {
|
|
2230
2239
|
key: d.path
|
|
2231
2240
|
}, {
|
|
2232
2241
|
default: M(() => [
|
|
2233
|
-
d.redirect === "noredirect" ||
|
|
2242
|
+
d.redirect === "noredirect" || p === r(o).length - 1 ? (m(), $("span", Pa, U(r(Ue)(d.meta.title)), 1)) : (m(), $("a", {
|
|
2234
2243
|
key: 1,
|
|
2235
|
-
onClick:
|
|
2236
|
-
},
|
|
2244
|
+
onClick: Te((v) => l(d), ["prevent"])
|
|
2245
|
+
}, U(r(Ue)(d.meta.title)), 9, Va))
|
|
2237
2246
|
]),
|
|
2238
2247
|
_: 2
|
|
2239
2248
|
}, 1024))), 128))
|
|
@@ -2245,7 +2254,7 @@ const Na = {
|
|
|
2245
2254
|
});
|
|
2246
2255
|
};
|
|
2247
2256
|
}
|
|
2248
|
-
}),
|
|
2257
|
+
}), Na = /* @__PURE__ */ ie(La, [["__scopeId", "data-v-07060d8f"]]), Oa = /* @__PURE__ */ D({
|
|
2249
2258
|
__name: "index",
|
|
2250
2259
|
props: {
|
|
2251
2260
|
isActive: {
|
|
@@ -2261,56 +2270,56 @@ const Na = {
|
|
|
2261
2270
|
t("toggleClick");
|
|
2262
2271
|
}
|
|
2263
2272
|
return (s, a) => {
|
|
2264
|
-
const l =
|
|
2265
|
-
return m(),
|
|
2273
|
+
const l = Ne;
|
|
2274
|
+
return m(), $("div", {
|
|
2266
2275
|
class: "px-[15px] flex items-center justify-center color-[var(--el-text-color-regular)]",
|
|
2267
2276
|
onClick: o
|
|
2268
2277
|
}, [
|
|
2269
|
-
|
|
2278
|
+
_(l, {
|
|
2270
2279
|
class: w(["hamburger", { "is-active": e.isActive }]),
|
|
2271
2280
|
"icon-class": "indent-decrease"
|
|
2272
2281
|
}, null, 8, ["class"])
|
|
2273
2282
|
]);
|
|
2274
2283
|
};
|
|
2275
2284
|
}
|
|
2276
|
-
}), ln = /* @__PURE__ */ ie(
|
|
2285
|
+
}), ln = /* @__PURE__ */ ie(Oa, [["__scopeId", "data-v-42e37629"]]), Ba = { class: "flex" }, Ra = /* @__PURE__ */ D({
|
|
2277
2286
|
__name: "NavbarLeft",
|
|
2278
2287
|
setup(e) {
|
|
2279
|
-
const n =
|
|
2288
|
+
const n = _e();
|
|
2280
2289
|
function t() {
|
|
2281
2290
|
n.toggleSidebar();
|
|
2282
2291
|
}
|
|
2283
2292
|
return (o, s) => {
|
|
2284
|
-
const a = ln, l =
|
|
2285
|
-
return m(),
|
|
2286
|
-
|
|
2293
|
+
const a = ln, l = Na;
|
|
2294
|
+
return m(), $("div", Ba, [
|
|
2295
|
+
_(a, {
|
|
2287
2296
|
"is-active": r(n).sidebar.opened,
|
|
2288
2297
|
onToggleClick: t
|
|
2289
2298
|
}, null, 8, ["is-active"]),
|
|
2290
|
-
|
|
2299
|
+
_(l)
|
|
2291
2300
|
]);
|
|
2292
2301
|
};
|
|
2293
2302
|
}
|
|
2294
|
-
}),
|
|
2295
|
-
function
|
|
2303
|
+
}), Fa = {}, Da = { class: "navbar-container" };
|
|
2304
|
+
function za(e, n) {
|
|
2296
2305
|
const t = Ra, o = an;
|
|
2297
|
-
return m(),
|
|
2298
|
-
|
|
2299
|
-
|
|
2306
|
+
return m(), $("div", Da, [
|
|
2307
|
+
_(t),
|
|
2308
|
+
_(o)
|
|
2300
2309
|
]);
|
|
2301
2310
|
}
|
|
2302
|
-
const
|
|
2311
|
+
const Ha = /* @__PURE__ */ ie(Fa, [["render", za], ["__scopeId", "data-v-b1624593"]]);
|
|
2303
2312
|
var he = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.TOP = "top", e.MIX = "mix", e))(he || {});
|
|
2304
|
-
const
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
],
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
], Ya = /* @__PURE__ */
|
|
2313
|
+
const Be = (e) => (Gn("data-v-2bdf1403"), e = e(), Yn(), e), Wa = { class: "flex flex-wrap justify-around w-full h-12" }, qa = /* @__PURE__ */ Be(() => /* @__PURE__ */ C("div", null, null, -1)), Ka = /* @__PURE__ */ Be(() => /* @__PURE__ */ C("div", null, null, -1)), Ua = [
|
|
2314
|
+
qa,
|
|
2315
|
+
Ka
|
|
2316
|
+
], ja = /* @__PURE__ */ Be(() => /* @__PURE__ */ C("div", null, null, -1)), Xa = /* @__PURE__ */ Be(() => /* @__PURE__ */ C("div", null, null, -1)), Ga = [
|
|
2317
|
+
ja,
|
|
2318
|
+
Xa
|
|
2319
|
+
], Ya = /* @__PURE__ */ Be(() => /* @__PURE__ */ C("div", null, null, -1)), Za = /* @__PURE__ */ Be(() => /* @__PURE__ */ C("div", null, null, -1)), Ja = [
|
|
2311
2320
|
Ya,
|
|
2312
|
-
|
|
2313
|
-
],
|
|
2321
|
+
Za
|
|
2322
|
+
], Qa = /* @__PURE__ */ D({
|
|
2314
2323
|
__name: "LayoutSelect",
|
|
2315
2324
|
props: {
|
|
2316
2325
|
modelValue: String
|
|
@@ -2322,9 +2331,9 @@ const Re = (e) => (Yn("data-v-2bdf1403"), e = e(), Jn(), e), za = { class: "flex
|
|
|
2322
2331
|
t("update:modelValue", s);
|
|
2323
2332
|
}
|
|
2324
2333
|
return (s, a) => {
|
|
2325
|
-
const l =
|
|
2326
|
-
return m(),
|
|
2327
|
-
|
|
2334
|
+
const l = je;
|
|
2335
|
+
return m(), $("div", Wa, [
|
|
2336
|
+
_(l, {
|
|
2328
2337
|
content: "左侧模式",
|
|
2329
2338
|
placement: "bottom"
|
|
2330
2339
|
}, {
|
|
@@ -2332,11 +2341,11 @@ const Re = (e) => (Yn("data-v-2bdf1403"), e = e(), Jn(), e), za = { class: "flex
|
|
|
2332
2341
|
C("div", {
|
|
2333
2342
|
class: w(["layout-item left", { "is-active": e.modelValue === r(he).LEFT }]),
|
|
2334
2343
|
onClick: a[0] || (a[0] = (u) => o(r(he).LEFT))
|
|
2335
|
-
},
|
|
2344
|
+
}, Ua, 2)
|
|
2336
2345
|
]),
|
|
2337
2346
|
_: 1
|
|
2338
2347
|
}),
|
|
2339
|
-
|
|
2348
|
+
_(l, {
|
|
2340
2349
|
content: "顶部模式",
|
|
2341
2350
|
placement: "bottom"
|
|
2342
2351
|
}, {
|
|
@@ -2344,11 +2353,11 @@ const Re = (e) => (Yn("data-v-2bdf1403"), e = e(), Jn(), e), za = { class: "flex
|
|
|
2344
2353
|
C("div", {
|
|
2345
2354
|
class: w(["layout-item top", { "is-active": e.modelValue === r(he).TOP }]),
|
|
2346
2355
|
onClick: a[1] || (a[1] = (u) => o(r(he).TOP))
|
|
2347
|
-
},
|
|
2356
|
+
}, Ga, 2)
|
|
2348
2357
|
]),
|
|
2349
2358
|
_: 1
|
|
2350
2359
|
}),
|
|
2351
|
-
|
|
2360
|
+
_(l, {
|
|
2352
2361
|
content: "混合模式",
|
|
2353
2362
|
placement: "bottom"
|
|
2354
2363
|
}, {
|
|
@@ -2356,14 +2365,14 @@ const Re = (e) => (Yn("data-v-2bdf1403"), e = e(), Jn(), e), za = { class: "flex
|
|
|
2356
2365
|
C("div", {
|
|
2357
2366
|
class: w(["layout-item mix", { "is-active": e.modelValue === r(he).MIX }]),
|
|
2358
2367
|
onClick: a[2] || (a[2] = (u) => o(r(he).MIX))
|
|
2359
|
-
},
|
|
2368
|
+
}, Ja, 2)
|
|
2360
2369
|
]),
|
|
2361
2370
|
_: 1
|
|
2362
2371
|
})
|
|
2363
2372
|
]);
|
|
2364
2373
|
};
|
|
2365
2374
|
}
|
|
2366
|
-
}),
|
|
2375
|
+
}), el = /* @__PURE__ */ ie(Qa, [["__scopeId", "data-v-2bdf1403"]]), tl = /* @__PURE__ */ D({
|
|
2367
2376
|
__name: "ThemeColorPicker",
|
|
2368
2377
|
props: {
|
|
2369
2378
|
modelValue: String
|
|
@@ -2381,23 +2390,23 @@ const Re = (e) => (Yn("data-v-2bdf1403"), e = e(), Jn(), e), za = { class: "flex
|
|
|
2381
2390
|
"rgba(255, 69, 0, 0.68)",
|
|
2382
2391
|
"rgb(255, 120, 0)",
|
|
2383
2392
|
"hsva(120, 40, 94)"
|
|
2384
|
-
], a =
|
|
2393
|
+
], a = T(t.modelValue);
|
|
2385
2394
|
return ee(a, (l) => {
|
|
2386
2395
|
o("update:modelValue", l);
|
|
2387
2396
|
}), (l, u) => {
|
|
2388
|
-
const i =
|
|
2389
|
-
return m(),
|
|
2397
|
+
const i = qo;
|
|
2398
|
+
return m(), L(i, {
|
|
2390
2399
|
modelValue: r(a),
|
|
2391
|
-
"onUpdate:modelValue": u[0] || (u[0] = (c) =>
|
|
2400
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => ot(a) ? a.value = c : null),
|
|
2392
2401
|
predefine: s,
|
|
2393
2402
|
"popper-class": "theme-picker-dropdown"
|
|
2394
2403
|
}, null, 8, ["modelValue"]);
|
|
2395
2404
|
};
|
|
2396
2405
|
}
|
|
2397
|
-
}),
|
|
2406
|
+
}), nl = /* @__PURE__ */ ie(tl, [["__scopeId", "data-v-92c1fd79"]]), ol = { class: "flex-center" }, al = { class: "settings-option" }, ll = { class: "text-xs" }, sl = { class: "settings-option" }, rl = { class: "text-xs" }, il = { class: "settings-option" }, ul = { class: "text-xs" }, cl = { class: "settings-option" }, dl = { class: "text-xs" }, fl = { class: "settings-option" }, ml = { class: "text-xs" }, pl = /* @__PURE__ */ D({
|
|
2398
2407
|
__name: "index",
|
|
2399
2408
|
setup(e) {
|
|
2400
|
-
const n =
|
|
2409
|
+
const n = Ge(), t = _e(), o = Se(), s = Xe(), a = E({
|
|
2401
2410
|
get() {
|
|
2402
2411
|
return o.settingsVisible;
|
|
2403
2412
|
},
|
|
@@ -2405,114 +2414,114 @@ const Re = (e) => (Yn("data-v-2bdf1403"), e = e(), Jn(), e), za = { class: "flex
|
|
|
2405
2414
|
o.settingsVisible = !1;
|
|
2406
2415
|
}
|
|
2407
2416
|
});
|
|
2408
|
-
function l(
|
|
2409
|
-
o.changeThemeColor(
|
|
2417
|
+
function l(p) {
|
|
2418
|
+
o.changeThemeColor(p);
|
|
2410
2419
|
}
|
|
2411
|
-
const u =
|
|
2412
|
-
u.value =
|
|
2420
|
+
const u = T(o.theme === ct.DARK), i = (p) => {
|
|
2421
|
+
u.value = p, o.changeTheme(u.value ? ct.DARK : ct.LIGHT);
|
|
2413
2422
|
};
|
|
2414
|
-
function c(
|
|
2415
|
-
o.changeLayout(
|
|
2423
|
+
function c(p) {
|
|
2424
|
+
o.changeLayout(p), p === he.MIX ? n.name && f(n.name) : p === he.TOP && t.openSideBar();
|
|
2416
2425
|
}
|
|
2417
|
-
function f(
|
|
2418
|
-
const
|
|
2419
|
-
t.activeTopMenu !==
|
|
2426
|
+
function f(p) {
|
|
2427
|
+
const v = d(s.routes, p);
|
|
2428
|
+
t.activeTopMenu !== v.path && t.activeTopMenu(v.path);
|
|
2420
2429
|
}
|
|
2421
|
-
function d(
|
|
2430
|
+
function d(p, v) {
|
|
2422
2431
|
let g = {};
|
|
2423
|
-
function
|
|
2424
|
-
if (g[
|
|
2425
|
-
for (let
|
|
2426
|
-
|
|
2432
|
+
function k(R, N) {
|
|
2433
|
+
if (g[R.name] = N, R.children)
|
|
2434
|
+
for (let b = 0; b < R.children.length; b++)
|
|
2435
|
+
k(R.children[b], R);
|
|
2427
2436
|
}
|
|
2428
|
-
for (let
|
|
2429
|
-
|
|
2430
|
-
let
|
|
2431
|
-
for (;
|
|
2432
|
-
if (!g[
|
|
2433
|
-
return
|
|
2434
|
-
|
|
2437
|
+
for (let R = 0; R < p.length; R++)
|
|
2438
|
+
k(p[R], null);
|
|
2439
|
+
let S = g[v];
|
|
2440
|
+
for (; S; ) {
|
|
2441
|
+
if (!g[S.name])
|
|
2442
|
+
return S;
|
|
2443
|
+
S = g[S.name];
|
|
2435
2444
|
}
|
|
2436
2445
|
return null;
|
|
2437
2446
|
}
|
|
2438
|
-
return (
|
|
2439
|
-
const g =
|
|
2440
|
-
return m(),
|
|
2447
|
+
return (p, v) => {
|
|
2448
|
+
const g = no, k = Dn, S = nl, R = el, N = ea;
|
|
2449
|
+
return m(), L(N, {
|
|
2441
2450
|
modelValue: r(a),
|
|
2442
|
-
"onUpdate:modelValue":
|
|
2451
|
+
"onUpdate:modelValue": v[7] || (v[7] = (b) => ot(a) ? a.value = b : null),
|
|
2443
2452
|
size: "300",
|
|
2444
|
-
title:
|
|
2453
|
+
title: p.$t("settings.project")
|
|
2445
2454
|
}, {
|
|
2446
2455
|
default: M(() => [
|
|
2447
|
-
|
|
2456
|
+
_(g, null, {
|
|
2448
2457
|
default: M(() => [
|
|
2449
|
-
|
|
2458
|
+
Q(U(p.$t("settings.theme")), 1)
|
|
2450
2459
|
]),
|
|
2451
2460
|
_: 1
|
|
2452
2461
|
}),
|
|
2453
|
-
C("div",
|
|
2454
|
-
|
|
2462
|
+
C("div", ol, [
|
|
2463
|
+
_(k, {
|
|
2455
2464
|
modelValue: r(u),
|
|
2456
|
-
"onUpdate:modelValue":
|
|
2457
|
-
"active-icon": r(
|
|
2458
|
-
"inactive-icon": r(
|
|
2465
|
+
"onUpdate:modelValue": v[0] || (v[0] = (b) => ot(u) ? u.value = b : null),
|
|
2466
|
+
"active-icon": r(Rn),
|
|
2467
|
+
"inactive-icon": r(Fn),
|
|
2459
2468
|
onChange: i
|
|
2460
2469
|
}, null, 8, ["modelValue", "active-icon", "inactive-icon"])
|
|
2461
2470
|
]),
|
|
2462
|
-
|
|
2471
|
+
_(g, null, {
|
|
2463
2472
|
default: M(() => [
|
|
2464
|
-
|
|
2473
|
+
Q(U(p.$t("settings.interface")), 1)
|
|
2465
2474
|
]),
|
|
2466
2475
|
_: 1
|
|
2467
2476
|
}),
|
|
2468
|
-
C("div",
|
|
2469
|
-
C("span",
|
|
2470
|
-
|
|
2477
|
+
C("div", al, [
|
|
2478
|
+
C("span", ll, U(p.$t("settings.themeColor")), 1),
|
|
2479
|
+
_(S, {
|
|
2471
2480
|
modelValue: r(o).themeColor,
|
|
2472
2481
|
"onUpdate:modelValue": [
|
|
2473
|
-
|
|
2482
|
+
v[1] || (v[1] = (b) => r(o).themeColor = b),
|
|
2474
2483
|
l
|
|
2475
2484
|
]
|
|
2476
2485
|
}, null, 8, ["modelValue"])
|
|
2477
2486
|
]),
|
|
2478
|
-
C("div",
|
|
2479
|
-
C("span",
|
|
2480
|
-
|
|
2487
|
+
C("div", sl, [
|
|
2488
|
+
C("span", rl, U(p.$t("settings.tagsView")), 1),
|
|
2489
|
+
_(k, {
|
|
2481
2490
|
modelValue: r(o).tagsView,
|
|
2482
|
-
"onUpdate:modelValue":
|
|
2491
|
+
"onUpdate:modelValue": v[2] || (v[2] = (b) => r(o).tagsView = b)
|
|
2483
2492
|
}, null, 8, ["modelValue"])
|
|
2484
2493
|
]),
|
|
2485
|
-
C("div",
|
|
2486
|
-
C("span",
|
|
2487
|
-
|
|
2494
|
+
C("div", il, [
|
|
2495
|
+
C("span", ul, U(p.$t("settings.fixedHeader")), 1),
|
|
2496
|
+
_(k, {
|
|
2488
2497
|
modelValue: r(o).fixedHeader,
|
|
2489
|
-
"onUpdate:modelValue":
|
|
2498
|
+
"onUpdate:modelValue": v[3] || (v[3] = (b) => r(o).fixedHeader = b)
|
|
2490
2499
|
}, null, 8, ["modelValue"])
|
|
2491
2500
|
]),
|
|
2492
|
-
C("div",
|
|
2493
|
-
C("span",
|
|
2494
|
-
|
|
2501
|
+
C("div", cl, [
|
|
2502
|
+
C("span", dl, U(p.$t("settings.sidebarLogo")), 1),
|
|
2503
|
+
_(k, {
|
|
2495
2504
|
modelValue: r(o).sidebarLogo,
|
|
2496
|
-
"onUpdate:modelValue":
|
|
2505
|
+
"onUpdate:modelValue": v[4] || (v[4] = (b) => r(o).sidebarLogo = b)
|
|
2497
2506
|
}, null, 8, ["modelValue"])
|
|
2498
2507
|
]),
|
|
2499
|
-
C("div",
|
|
2500
|
-
C("span",
|
|
2501
|
-
|
|
2508
|
+
C("div", fl, [
|
|
2509
|
+
C("span", ml, U(p.$t("settings.watermark")), 1),
|
|
2510
|
+
_(k, {
|
|
2502
2511
|
modelValue: r(o).watermarkEnabled,
|
|
2503
|
-
"onUpdate:modelValue":
|
|
2512
|
+
"onUpdate:modelValue": v[5] || (v[5] = (b) => r(o).watermarkEnabled = b)
|
|
2504
2513
|
}, null, 8, ["modelValue"])
|
|
2505
2514
|
]),
|
|
2506
|
-
|
|
2515
|
+
_(g, null, {
|
|
2507
2516
|
default: M(() => [
|
|
2508
|
-
|
|
2517
|
+
Q(U(p.$t("settings.navigation")), 1)
|
|
2509
2518
|
]),
|
|
2510
2519
|
_: 1
|
|
2511
2520
|
}),
|
|
2512
|
-
|
|
2521
|
+
_(R, {
|
|
2513
2522
|
modelValue: r(o).layout,
|
|
2514
2523
|
"onUpdate:modelValue": [
|
|
2515
|
-
|
|
2524
|
+
v[6] || (v[6] = (b) => r(o).layout = b),
|
|
2516
2525
|
c
|
|
2517
2526
|
]
|
|
2518
2527
|
}, null, 8, ["modelValue"])
|
|
@@ -2521,22 +2530,22 @@ const Re = (e) => (Yn("data-v-2bdf1403"), e = e(), Jn(), e), za = { class: "flex
|
|
|
2521
2530
|
}, 8, ["modelValue", "title"]);
|
|
2522
2531
|
};
|
|
2523
2532
|
}
|
|
2524
|
-
}),
|
|
2533
|
+
}), hl = /* @__PURE__ */ ie(pl, [["__scopeId", "data-v-70f5bf10"]]), vl = { class: "app-main" }, _l = /* @__PURE__ */ D({
|
|
2525
2534
|
__name: "index",
|
|
2526
2535
|
setup(e) {
|
|
2527
|
-
const n =
|
|
2536
|
+
const n = E(() => gt().cachedViews);
|
|
2528
2537
|
return (t, o) => {
|
|
2529
|
-
const s =
|
|
2530
|
-
return m(),
|
|
2531
|
-
|
|
2538
|
+
const s = Oe("router-view");
|
|
2539
|
+
return m(), $("section", vl, [
|
|
2540
|
+
_(s, null, {
|
|
2532
2541
|
default: M(({ Component: a, route: l }) => [
|
|
2533
|
-
|
|
2542
|
+
_(it, {
|
|
2534
2543
|
"enter-active-class": "animate__animated animate__fadeIn",
|
|
2535
2544
|
mode: "out-in"
|
|
2536
2545
|
}, {
|
|
2537
2546
|
default: M(() => [
|
|
2538
|
-
(m(),
|
|
2539
|
-
(m(),
|
|
2547
|
+
(m(), L(Zn, { include: r(n) }, [
|
|
2548
|
+
(m(), L(st(a), {
|
|
2540
2549
|
key: l.path
|
|
2541
2550
|
}))
|
|
2542
2551
|
], 1032, ["include"]))
|
|
@@ -2549,25 +2558,25 @@ const Re = (e) => (Yn("data-v-2bdf1403"), e = e(), Jn(), e), za = { class: "flex
|
|
|
2549
2558
|
]);
|
|
2550
2559
|
};
|
|
2551
2560
|
}
|
|
2552
|
-
}), gl = /* @__PURE__ */ ie(
|
|
2561
|
+
}), gl = /* @__PURE__ */ ie(_l, [["__scopeId", "data-v-37d096bd"]]), bl = {
|
|
2553
2562
|
viewBox: "0 0 1024 1024",
|
|
2554
2563
|
width: "1.2em",
|
|
2555
2564
|
height: "1.2em"
|
|
2556
|
-
},
|
|
2565
|
+
}, yl = /* @__PURE__ */ C("path", {
|
|
2557
2566
|
fill: "currentColor",
|
|
2558
2567
|
d: "M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
2559
|
-
}, null, -1),
|
|
2560
|
-
|
|
2568
|
+
}, null, -1), kl = [
|
|
2569
|
+
yl
|
|
2561
2570
|
];
|
|
2562
2571
|
function Cl(e, n) {
|
|
2563
|
-
return m(),
|
|
2572
|
+
return m(), $("svg", bl, [...kl]);
|
|
2564
2573
|
}
|
|
2565
|
-
const
|
|
2574
|
+
const $l = { name: "ep-close", render: Cl };
|
|
2566
2575
|
function me(e) {
|
|
2567
2576
|
if (typeof e != "string")
|
|
2568
2577
|
throw new TypeError("Path must be a string. Received " + JSON.stringify(e));
|
|
2569
2578
|
}
|
|
2570
|
-
function
|
|
2579
|
+
function Ft(e, n) {
|
|
2571
2580
|
for (var t = "", o = 0, s = -1, a = 0, l, u = 0; u <= e.length; ++u) {
|
|
2572
2581
|
if (u < e.length)
|
|
2573
2582
|
l = e.charCodeAt(u);
|
|
@@ -2604,20 +2613,20 @@ function Ml(e, n) {
|
|
|
2604
2613
|
var t = n.dir || n.root, o = n.base || (n.name || "") + (n.ext || "");
|
|
2605
2614
|
return t ? t === n.root ? t + o : t + e + o : o;
|
|
2606
2615
|
}
|
|
2607
|
-
var
|
|
2616
|
+
var Ae = {
|
|
2608
2617
|
// path.resolve([from ...], to)
|
|
2609
2618
|
resolve: function() {
|
|
2610
2619
|
for (var n = "", t = !1, o, s = arguments.length - 1; s >= -1 && !t; s--) {
|
|
2611
2620
|
var a;
|
|
2612
2621
|
s >= 0 ? a = arguments[s] : (o === void 0 && (o = process.cwd()), a = o), me(a), a.length !== 0 && (n = a + "/" + n, t = a.charCodeAt(0) === 47);
|
|
2613
2622
|
}
|
|
2614
|
-
return n =
|
|
2623
|
+
return n = Ft(n, !t), t ? n.length > 0 ? "/" + n : "/" : n.length > 0 ? n : ".";
|
|
2615
2624
|
},
|
|
2616
2625
|
normalize: function(n) {
|
|
2617
2626
|
if (me(n), n.length === 0)
|
|
2618
2627
|
return ".";
|
|
2619
2628
|
var t = n.charCodeAt(0) === 47, o = n.charCodeAt(n.length - 1) === 47;
|
|
2620
|
-
return n =
|
|
2629
|
+
return n = Ft(n, !t), n.length === 0 && !t && (n = "."), n.length > 0 && o && (n += "/"), t ? "/" + n : n;
|
|
2621
2630
|
},
|
|
2622
2631
|
isAbsolute: function(n) {
|
|
2623
2632
|
return me(n), n.length > 0 && n.charCodeAt(0) === 47;
|
|
@@ -2629,10 +2638,10 @@ var Ne = {
|
|
|
2629
2638
|
var o = arguments[t];
|
|
2630
2639
|
me(o), o.length > 0 && (n === void 0 ? n = o : n += "/" + o);
|
|
2631
2640
|
}
|
|
2632
|
-
return n === void 0 ? "." :
|
|
2641
|
+
return n === void 0 ? "." : Ae.normalize(n);
|
|
2633
2642
|
},
|
|
2634
2643
|
relative: function(n, t) {
|
|
2635
|
-
if (me(n), me(t), n === t || (n =
|
|
2644
|
+
if (me(n), me(t), n === t || (n = Ae.resolve(n), t = Ae.resolve(t), n === t))
|
|
2636
2645
|
return "";
|
|
2637
2646
|
for (var o = 1; o < n.length && n.charCodeAt(o) === 47; ++o)
|
|
2638
2647
|
;
|
|
@@ -2649,10 +2658,10 @@ var Ne = {
|
|
|
2649
2658
|
a > c && (n.charCodeAt(o + d) === 47 ? f = d : d === 0 && (f = 0));
|
|
2650
2659
|
break;
|
|
2651
2660
|
}
|
|
2652
|
-
var
|
|
2653
|
-
if (
|
|
2661
|
+
var p = n.charCodeAt(o + d), v = t.charCodeAt(l + d);
|
|
2662
|
+
if (p !== v)
|
|
2654
2663
|
break;
|
|
2655
|
-
|
|
2664
|
+
p === 47 && (f = d);
|
|
2656
2665
|
}
|
|
2657
2666
|
var g = "";
|
|
2658
2667
|
for (d = o + f + 1; d <= s; ++d)
|
|
@@ -2755,206 +2764,206 @@ var Ne = {
|
|
|
2755
2764
|
win32: null,
|
|
2756
2765
|
posix: null
|
|
2757
2766
|
};
|
|
2758
|
-
|
|
2759
|
-
var sn =
|
|
2760
|
-
const rn = /* @__PURE__ */
|
|
2767
|
+
Ae.posix = Ae;
|
|
2768
|
+
var sn = Ae;
|
|
2769
|
+
const rn = /* @__PURE__ */ zn(sn), wl = { class: "tags-container" }, Sl = /* @__PURE__ */ D({
|
|
2761
2770
|
__name: "index",
|
|
2762
2771
|
setup(e) {
|
|
2763
|
-
const { proxy: n } =
|
|
2772
|
+
const { proxy: n } = ge(), t = kt(), o = Ge(), s = Xe(), a = gt(), l = _e(), { visitedViews: u } = oo(a), i = Se(), c = E(() => i.layout), f = T({
|
|
2764
2773
|
path: "",
|
|
2765
2774
|
fullPath: "",
|
|
2766
2775
|
name: "",
|
|
2767
2776
|
title: "",
|
|
2768
2777
|
affix: !1,
|
|
2769
2778
|
keepAlive: !1
|
|
2770
|
-
}), d =
|
|
2779
|
+
}), d = T([]), p = T(0), v = T(0);
|
|
2771
2780
|
ee(
|
|
2772
2781
|
o,
|
|
2773
2782
|
() => {
|
|
2774
|
-
|
|
2783
|
+
R(), N();
|
|
2775
2784
|
},
|
|
2776
2785
|
{
|
|
2777
2786
|
immediate: !0
|
|
2778
2787
|
//初始化立即执行
|
|
2779
2788
|
}
|
|
2780
2789
|
);
|
|
2781
|
-
const g =
|
|
2790
|
+
const g = T(!1);
|
|
2782
2791
|
ee(g, (y) => {
|
|
2783
|
-
y ? document.body.addEventListener("click",
|
|
2792
|
+
y ? document.body.addEventListener("click", I) : document.body.removeEventListener("click", I);
|
|
2784
2793
|
});
|
|
2785
|
-
function
|
|
2786
|
-
let
|
|
2787
|
-
return y.forEach((
|
|
2788
|
-
var
|
|
2789
|
-
const
|
|
2790
|
-
if ((
|
|
2791
|
-
path:
|
|
2792
|
-
fullPath:
|
|
2793
|
-
name: String(
|
|
2794
|
-
title: ((
|
|
2795
|
-
affix: (se =
|
|
2796
|
-
keepAlive: (Ye =
|
|
2797
|
-
}),
|
|
2798
|
-
const
|
|
2799
|
-
|
|
2794
|
+
function k(y, h = "/") {
|
|
2795
|
+
let A = [];
|
|
2796
|
+
return y.forEach((F) => {
|
|
2797
|
+
var z, G, se, Ye;
|
|
2798
|
+
const q = sn.resolve(h, F.path);
|
|
2799
|
+
if ((z = F.meta) != null && z.affix && A.push({
|
|
2800
|
+
path: q,
|
|
2801
|
+
fullPath: q,
|
|
2802
|
+
name: String(F.name),
|
|
2803
|
+
title: ((G = F.meta) == null ? void 0 : G.title) || "no-name",
|
|
2804
|
+
affix: (se = F.meta) == null ? void 0 : se.affix,
|
|
2805
|
+
keepAlive: (Ye = F.meta) == null ? void 0 : Ye.keepAlive
|
|
2806
|
+
}), F.children) {
|
|
2807
|
+
const Ze = k(F.children, h + F.path);
|
|
2808
|
+
Ze.length >= 1 && (A = [...A, ...Ze]);
|
|
2800
2809
|
}
|
|
2801
|
-
}),
|
|
2810
|
+
}), A;
|
|
2802
2811
|
}
|
|
2803
|
-
function
|
|
2804
|
-
const y =
|
|
2812
|
+
function S() {
|
|
2813
|
+
const y = k(s.routes);
|
|
2805
2814
|
d.value = y;
|
|
2806
|
-
for (const
|
|
2807
|
-
|
|
2815
|
+
for (const h of y)
|
|
2816
|
+
h.name && a.addVisitedView(h);
|
|
2808
2817
|
}
|
|
2809
|
-
function
|
|
2810
|
-
var y,
|
|
2818
|
+
function R() {
|
|
2819
|
+
var y, h;
|
|
2811
2820
|
o.meta.title && a.addView({
|
|
2812
2821
|
name: o.name,
|
|
2813
2822
|
title: o.meta.title,
|
|
2814
2823
|
path: o.path,
|
|
2815
2824
|
fullPath: o.fullPath,
|
|
2816
2825
|
affix: (y = o.meta) == null ? void 0 : y.affix,
|
|
2817
|
-
keepAlive: (
|
|
2826
|
+
keepAlive: (h = o.meta) == null ? void 0 : h.keepAlive
|
|
2818
2827
|
});
|
|
2819
2828
|
}
|
|
2820
|
-
function
|
|
2821
|
-
|
|
2822
|
-
var y,
|
|
2823
|
-
for (const
|
|
2824
|
-
|
|
2829
|
+
function N() {
|
|
2830
|
+
$e(() => {
|
|
2831
|
+
var y, h;
|
|
2832
|
+
for (const A of u.value)
|
|
2833
|
+
A.path === o.path && A.fullPath !== o.fullPath && a.updateVisitedView({
|
|
2825
2834
|
name: o.name,
|
|
2826
2835
|
title: o.meta.title || "",
|
|
2827
2836
|
path: o.path,
|
|
2828
2837
|
fullPath: o.fullPath,
|
|
2829
2838
|
affix: (y = o.meta) == null ? void 0 : y.affix,
|
|
2830
|
-
keepAlive: (
|
|
2839
|
+
keepAlive: (h = o.meta) == null ? void 0 : h.keepAlive
|
|
2831
2840
|
});
|
|
2832
2841
|
});
|
|
2833
2842
|
}
|
|
2834
|
-
function
|
|
2843
|
+
function b(y) {
|
|
2835
2844
|
return y.path === o.path;
|
|
2836
2845
|
}
|
|
2837
|
-
function
|
|
2846
|
+
function Z(y) {
|
|
2838
2847
|
return y == null ? void 0 : y.affix;
|
|
2839
2848
|
}
|
|
2840
|
-
function
|
|
2849
|
+
function Y() {
|
|
2841
2850
|
try {
|
|
2842
2851
|
return f.value.path === "/dashboard" || f.value.fullPath === a.visitedViews[1].fullPath;
|
|
2843
2852
|
} catch {
|
|
2844
2853
|
return !1;
|
|
2845
2854
|
}
|
|
2846
2855
|
}
|
|
2847
|
-
function
|
|
2856
|
+
function O() {
|
|
2848
2857
|
try {
|
|
2849
2858
|
return f.value.fullPath === a.visitedViews[a.visitedViews.length - 1].fullPath;
|
|
2850
2859
|
} catch {
|
|
2851
2860
|
return !1;
|
|
2852
2861
|
}
|
|
2853
2862
|
}
|
|
2854
|
-
function
|
|
2863
|
+
function j(y) {
|
|
2855
2864
|
a.delCachedView(y);
|
|
2856
|
-
const { fullPath:
|
|
2857
|
-
|
|
2858
|
-
t.replace({ path: "/redirect" +
|
|
2865
|
+
const { fullPath: h } = y;
|
|
2866
|
+
$e(() => {
|
|
2867
|
+
t.replace({ path: "/redirect" + h });
|
|
2859
2868
|
});
|
|
2860
2869
|
}
|
|
2861
|
-
function
|
|
2862
|
-
const
|
|
2863
|
-
|
|
2870
|
+
function P(y, h) {
|
|
2871
|
+
const A = y.slice(-1)[0];
|
|
2872
|
+
A && A.fullPath ? t.push(A.fullPath) : (h == null ? void 0 : h.name) === "Dashboard" ? t.replace({ path: "/redirect" + h.fullPath }) : t.push("/");
|
|
2864
2873
|
}
|
|
2865
|
-
function
|
|
2866
|
-
a.delView(y).then((
|
|
2867
|
-
|
|
2874
|
+
function W(y) {
|
|
2875
|
+
a.delView(y).then((h) => {
|
|
2876
|
+
b(y) && P(h.visitedViews, y);
|
|
2868
2877
|
});
|
|
2869
2878
|
}
|
|
2870
2879
|
function le() {
|
|
2871
2880
|
a.delLeftViews(f.value).then((y) => {
|
|
2872
|
-
y.visitedViews.find((
|
|
2881
|
+
y.visitedViews.find((h) => h.path === o.path) || P(y.visitedViews);
|
|
2873
2882
|
});
|
|
2874
2883
|
}
|
|
2875
2884
|
function ce() {
|
|
2876
2885
|
a.delRightViews(f.value).then((y) => {
|
|
2877
|
-
y.visitedViews.find((
|
|
2886
|
+
y.visitedViews.find((h) => h.path === o.path) || P(y.visitedViews);
|
|
2878
2887
|
});
|
|
2879
2888
|
}
|
|
2880
2889
|
function de() {
|
|
2881
2890
|
t.push(f.value), a.delOtherViews(f.value).then(() => {
|
|
2882
|
-
|
|
2891
|
+
N();
|
|
2883
2892
|
});
|
|
2884
2893
|
}
|
|
2885
|
-
function
|
|
2886
|
-
a.delAllViews().then((
|
|
2887
|
-
|
|
2894
|
+
function be(y) {
|
|
2895
|
+
a.delAllViews().then((h) => {
|
|
2896
|
+
P(h.visitedViews, y);
|
|
2888
2897
|
});
|
|
2889
2898
|
}
|
|
2890
|
-
function
|
|
2891
|
-
const
|
|
2892
|
-
|
|
2899
|
+
function x(y, h) {
|
|
2900
|
+
const F = n == null ? void 0 : n.$el.getBoundingClientRect().left, z = (n == null ? void 0 : n.$el.offsetWidth) - 105, G = h.clientX - F + 15;
|
|
2901
|
+
G > z ? p.value = z : p.value = G, c.value === "mix" ? v.value = h.clientY - 50 : v.value = h.clientY, g.value = !0, f.value = y;
|
|
2893
2902
|
}
|
|
2894
|
-
function
|
|
2903
|
+
function I() {
|
|
2895
2904
|
g.value = !1;
|
|
2896
2905
|
}
|
|
2897
|
-
function
|
|
2898
|
-
|
|
2906
|
+
function B() {
|
|
2907
|
+
I();
|
|
2899
2908
|
}
|
|
2900
|
-
function
|
|
2901
|
-
let
|
|
2902
|
-
function
|
|
2903
|
-
if (
|
|
2904
|
-
for (let se = 0; se <
|
|
2905
|
-
|
|
2909
|
+
function X(y, h) {
|
|
2910
|
+
let A = {};
|
|
2911
|
+
function F(z, G) {
|
|
2912
|
+
if (A[z.name] = G, z.children)
|
|
2913
|
+
for (let se = 0; se < z.children.length; se++)
|
|
2914
|
+
F(z.children[se], z);
|
|
2906
2915
|
}
|
|
2907
|
-
for (let
|
|
2908
|
-
|
|
2909
|
-
let
|
|
2910
|
-
for (;
|
|
2911
|
-
if (!
|
|
2912
|
-
return
|
|
2913
|
-
|
|
2916
|
+
for (let z = 0; z < y.length; z++)
|
|
2917
|
+
F(y[z], null);
|
|
2918
|
+
let q = A[h];
|
|
2919
|
+
for (; q; ) {
|
|
2920
|
+
if (!A[q.name])
|
|
2921
|
+
return q;
|
|
2922
|
+
q = A[q.name];
|
|
2914
2923
|
}
|
|
2915
2924
|
return null;
|
|
2916
2925
|
}
|
|
2917
|
-
const
|
|
2926
|
+
const K = (y) => {
|
|
2918
2927
|
if (c.value !== "mix")
|
|
2919
2928
|
return;
|
|
2920
|
-
const
|
|
2921
|
-
l.activeTopMenu !==
|
|
2929
|
+
const h = X(s.routes, y);
|
|
2930
|
+
l.activeTopMenu !== h.path && l.activeTopMenu(h.path);
|
|
2922
2931
|
};
|
|
2923
2932
|
return ee(
|
|
2924
2933
|
() => o.name,
|
|
2925
2934
|
(y) => {
|
|
2926
|
-
y &&
|
|
2935
|
+
y && K(y);
|
|
2927
2936
|
},
|
|
2928
2937
|
{
|
|
2929
2938
|
deep: !0
|
|
2930
2939
|
}
|
|
2931
2940
|
), pe(() => {
|
|
2932
|
-
|
|
2933
|
-
}), (y,
|
|
2934
|
-
const
|
|
2935
|
-
return m(),
|
|
2936
|
-
|
|
2941
|
+
S();
|
|
2942
|
+
}), (y, h) => {
|
|
2943
|
+
const A = $l, F = Oe("router-link"), q = bt, z = Ne;
|
|
2944
|
+
return m(), $("div", wl, [
|
|
2945
|
+
_(q, {
|
|
2937
2946
|
class: "scroll-container",
|
|
2938
2947
|
vertical: !1,
|
|
2939
|
-
onWheel:
|
|
2948
|
+
onWheel: Te(B, ["prevent"])
|
|
2940
2949
|
}, {
|
|
2941
2950
|
default: M(() => [
|
|
2942
|
-
(m(!0),
|
|
2951
|
+
(m(!0), $(oe, null, xe(r(u), (G) => (m(), L(F, {
|
|
2943
2952
|
ref_for: !0,
|
|
2944
2953
|
ref: "tagRef",
|
|
2945
|
-
key:
|
|
2946
|
-
class: w("tags-item " + (
|
|
2947
|
-
to: { path:
|
|
2948
|
-
onMouseup:
|
|
2949
|
-
onContextmenu:
|
|
2954
|
+
key: G.fullPath,
|
|
2955
|
+
class: w("tags-item " + (b(G) ? "active" : "")),
|
|
2956
|
+
to: { path: G.path, query: G.query },
|
|
2957
|
+
onMouseup: Te((se) => Z(G) ? "" : W(G), ["middle"]),
|
|
2958
|
+
onContextmenu: Te((se) => x(G, se), ["prevent"])
|
|
2950
2959
|
}, {
|
|
2951
2960
|
default: M(() => [
|
|
2952
|
-
|
|
2953
|
-
|
|
2961
|
+
Q(U(r(Ue)(G.title)) + " ", 1),
|
|
2962
|
+
Z(G) ? H("", !0) : (m(), L(A, {
|
|
2954
2963
|
key: 0,
|
|
2955
2964
|
class: "close-icon",
|
|
2956
2965
|
size: "12px",
|
|
2957
|
-
onClick:
|
|
2966
|
+
onClick: Te((se) => W(G), ["prevent", "stop"])
|
|
2958
2967
|
}, null, 8, ["onClick"]))
|
|
2959
2968
|
]),
|
|
2960
2969
|
_: 2
|
|
@@ -2962,54 +2971,54 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
2962
2971
|
]),
|
|
2963
2972
|
_: 1
|
|
2964
2973
|
}),
|
|
2965
|
-
|
|
2974
|
+
Me(C("ul", {
|
|
2966
2975
|
class: "contextmenu",
|
|
2967
|
-
style: ye({ left: r(
|
|
2976
|
+
style: ye({ left: r(p) + "px", top: r(v) + "px" })
|
|
2968
2977
|
}, [
|
|
2969
2978
|
C("li", {
|
|
2970
|
-
onClick:
|
|
2979
|
+
onClick: h[0] || (h[0] = (G) => j(r(f)))
|
|
2971
2980
|
}, [
|
|
2972
|
-
|
|
2973
|
-
|
|
2981
|
+
_(z, { "icon-class": "refresh" }),
|
|
2982
|
+
Q(" 刷新 ")
|
|
2974
2983
|
]),
|
|
2975
|
-
|
|
2984
|
+
Z(r(f)) ? H("", !0) : (m(), $("li", {
|
|
2976
2985
|
key: 0,
|
|
2977
|
-
onClick:
|
|
2986
|
+
onClick: h[1] || (h[1] = (G) => W(r(f)))
|
|
2978
2987
|
}, [
|
|
2979
|
-
|
|
2980
|
-
|
|
2988
|
+
_(z, { "icon-class": "close" }),
|
|
2989
|
+
Q(" 关闭 ")
|
|
2981
2990
|
])),
|
|
2982
2991
|
C("li", { onClick: de }, [
|
|
2983
|
-
|
|
2984
|
-
|
|
2992
|
+
_(z, { "icon-class": "close_other" }),
|
|
2993
|
+
Q(" 关闭其它 ")
|
|
2985
2994
|
]),
|
|
2986
|
-
|
|
2995
|
+
Y() ? H("", !0) : (m(), $("li", {
|
|
2987
2996
|
key: 1,
|
|
2988
2997
|
onClick: le
|
|
2989
2998
|
}, [
|
|
2990
|
-
|
|
2991
|
-
|
|
2999
|
+
_(z, { "icon-class": "close_left" }),
|
|
3000
|
+
Q(" 关闭左侧 ")
|
|
2992
3001
|
])),
|
|
2993
|
-
|
|
3002
|
+
O() ? H("", !0) : (m(), $("li", {
|
|
2994
3003
|
key: 2,
|
|
2995
3004
|
onClick: ce
|
|
2996
3005
|
}, [
|
|
2997
|
-
|
|
2998
|
-
|
|
3006
|
+
_(z, { "icon-class": "close_right" }),
|
|
3007
|
+
Q(" 关闭右侧 ")
|
|
2999
3008
|
])),
|
|
3000
3009
|
C("li", {
|
|
3001
|
-
onClick:
|
|
3010
|
+
onClick: h[2] || (h[2] = (G) => be(r(f)))
|
|
3002
3011
|
}, [
|
|
3003
|
-
|
|
3004
|
-
|
|
3012
|
+
_(z, { "icon-class": "close_all" }),
|
|
3013
|
+
Q(" 关闭所有 ")
|
|
3005
3014
|
])
|
|
3006
3015
|
], 4), [
|
|
3007
|
-
[
|
|
3016
|
+
[qe, r(g)]
|
|
3008
3017
|
])
|
|
3009
3018
|
]);
|
|
3010
3019
|
};
|
|
3011
3020
|
}
|
|
3012
|
-
}),
|
|
3021
|
+
}), xl = /* @__PURE__ */ ie(Sl, [["__scopeId", "data-v-c6247b96"]]), El = /* @__PURE__ */ D({
|
|
3013
3022
|
name: "AppLink",
|
|
3014
3023
|
inheritAttrs: !1,
|
|
3015
3024
|
__name: "index",
|
|
@@ -3020,18 +3029,18 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
3020
3029
|
}
|
|
3021
3030
|
},
|
|
3022
3031
|
setup(e) {
|
|
3023
|
-
const n = e, t =
|
|
3024
|
-
return (a, l) => (m(),
|
|
3032
|
+
const n = e, t = E(() => He(n.to)), o = E(() => t.value ? "a" : "router-link"), s = (a) => t.value ? { href: a, target: "_blank", rel: "noopener noreferrer" } : { to: a };
|
|
3033
|
+
return (a, l) => (m(), L(st(r(o)), Jn(Qn(s(e.to))), {
|
|
3025
3034
|
default: M(() => [
|
|
3026
3035
|
ae(a.$slots, "default")
|
|
3027
3036
|
]),
|
|
3028
3037
|
_: 3
|
|
3029
3038
|
}, 16));
|
|
3030
3039
|
}
|
|
3031
|
-
}),
|
|
3040
|
+
}), Tl = {
|
|
3032
3041
|
key: 3,
|
|
3033
3042
|
class: "ml-1"
|
|
3034
|
-
},
|
|
3043
|
+
}, Il = /* @__PURE__ */ D({
|
|
3035
3044
|
__name: "SidebarMenuItemTitle",
|
|
3036
3045
|
props: {
|
|
3037
3046
|
icon: {
|
|
@@ -3045,28 +3054,28 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
3045
3054
|
},
|
|
3046
3055
|
setup(e) {
|
|
3047
3056
|
return (n, t) => {
|
|
3048
|
-
const o = we, s =
|
|
3049
|
-
return m(),
|
|
3050
|
-
e.icon && e.icon.startsWith("el-icon") ? (m(),
|
|
3057
|
+
const o = we, s = Ne;
|
|
3058
|
+
return m(), $(oe, null, [
|
|
3059
|
+
e.icon && e.icon.startsWith("el-icon") ? (m(), L(o, {
|
|
3051
3060
|
key: 0,
|
|
3052
3061
|
class: "sub-el-icon"
|
|
3053
3062
|
}, {
|
|
3054
3063
|
default: M(() => [
|
|
3055
|
-
(m(),
|
|
3064
|
+
(m(), L(st(e.icon.replace("el-icon-", ""))))
|
|
3056
3065
|
]),
|
|
3057
3066
|
_: 1
|
|
3058
|
-
})) : e.icon ? (m(),
|
|
3067
|
+
})) : e.icon ? (m(), L(s, {
|
|
3059
3068
|
key: 1,
|
|
3060
3069
|
"icon-class": e.icon
|
|
3061
|
-
}, null, 8, ["icon-class"])) : (m(),
|
|
3070
|
+
}, null, 8, ["icon-class"])) : (m(), L(s, {
|
|
3062
3071
|
key: 2,
|
|
3063
3072
|
"icon-class": "menu"
|
|
3064
3073
|
})),
|
|
3065
|
-
e.title ? (m(),
|
|
3074
|
+
e.title ? (m(), $("span", Tl, U(r(Ue)(e.title)), 1)) : H("", !0)
|
|
3066
3075
|
], 64);
|
|
3067
3076
|
};
|
|
3068
3077
|
}
|
|
3069
|
-
}),
|
|
3078
|
+
}), Al = /* @__PURE__ */ ie(Il, [["__scopeId", "data-v-891a12f6"]]), Pl = { key: 0 }, Vl = /* @__PURE__ */ D({
|
|
3070
3079
|
name: "SidebarMenuItem",
|
|
3071
3080
|
inheritAttrs: !1,
|
|
3072
3081
|
__name: "SidebarMenuItem",
|
|
@@ -3091,7 +3100,7 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
3091
3100
|
}
|
|
3092
3101
|
},
|
|
3093
3102
|
setup(e) {
|
|
3094
|
-
const n = e, t =
|
|
3103
|
+
const n = e, t = T();
|
|
3095
3104
|
function o(a = [], l) {
|
|
3096
3105
|
const u = a.filter((i) => {
|
|
3097
3106
|
var c;
|
|
@@ -3100,24 +3109,24 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
3100
3109
|
return u.length === 1 ? !0 : u.length === 0 ? (t.value = { ...l, path: "", noShowingChildren: !0 }, !0) : !1;
|
|
3101
3110
|
}
|
|
3102
3111
|
function s(a) {
|
|
3103
|
-
return
|
|
3112
|
+
return He(a) ? a : He(n.basePath) ? n.basePath : rn.resolve(n.basePath, a);
|
|
3104
3113
|
}
|
|
3105
3114
|
return (a, l) => {
|
|
3106
|
-
var
|
|
3107
|
-
const u =
|
|
3108
|
-
return !e.item.meta || !e.item.meta.hidden ? (m(),
|
|
3109
|
-
o(e.item.children, e.item) && (!r(t).children || r(t).noShowingChildren) && !((
|
|
3110
|
-
r(t).meta ? (m(),
|
|
3115
|
+
var p;
|
|
3116
|
+
const u = Al, i = on, c = El, f = Oe("SidebarMenuItem", !0), d = ya;
|
|
3117
|
+
return !e.item.meta || !e.item.meta.hidden ? (m(), $("div", Pl, [
|
|
3118
|
+
o(e.item.children, e.item) && (!r(t).children || r(t).noShowingChildren) && !((p = e.item.meta) != null && p.alwaysShow) ? (m(), $(oe, { key: 0 }, [
|
|
3119
|
+
r(t).meta ? (m(), L(c, {
|
|
3111
3120
|
key: 0,
|
|
3112
3121
|
to: s(r(t).path)
|
|
3113
3122
|
}, {
|
|
3114
3123
|
default: M(() => [
|
|
3115
|
-
|
|
3124
|
+
_(i, {
|
|
3116
3125
|
index: s(r(t).path),
|
|
3117
3126
|
class: w({ "submenu-title-noDropdown": !e.isNest })
|
|
3118
3127
|
}, {
|
|
3119
3128
|
default: M(() => [
|
|
3120
|
-
|
|
3129
|
+
_(u, {
|
|
3121
3130
|
icon: r(t).meta.icon || e.item.meta && e.item.meta.icon,
|
|
3122
3131
|
title: r(t).meta.title
|
|
3123
3132
|
}, null, 8, ["icon", "title"])
|
|
@@ -3126,41 +3135,41 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
3126
3135
|
}, 8, ["index", "class"])
|
|
3127
3136
|
]),
|
|
3128
3137
|
_: 1
|
|
3129
|
-
}, 8, ["to"])) :
|
|
3130
|
-
], 64)) : (m(),
|
|
3138
|
+
}, 8, ["to"])) : H("", !0)
|
|
3139
|
+
], 64)) : (m(), L(d, {
|
|
3131
3140
|
key: 1,
|
|
3132
3141
|
index: s(e.item.path),
|
|
3133
3142
|
teleported: ""
|
|
3134
3143
|
}, {
|
|
3135
3144
|
title: M(() => [
|
|
3136
|
-
e.item.meta ? (m(),
|
|
3145
|
+
e.item.meta ? (m(), L(u, {
|
|
3137
3146
|
key: 0,
|
|
3138
3147
|
icon: e.item.meta && e.item.meta.icon,
|
|
3139
3148
|
title: e.item.meta.title
|
|
3140
|
-
}, null, 8, ["icon", "title"])) :
|
|
3149
|
+
}, null, 8, ["icon", "title"])) : H("", !0)
|
|
3141
3150
|
]),
|
|
3142
3151
|
default: M(() => [
|
|
3143
|
-
(m(!0),
|
|
3144
|
-
key:
|
|
3152
|
+
(m(!0), $(oe, null, xe(e.item.children, (v) => (m(), L(f, {
|
|
3153
|
+
key: v.path,
|
|
3145
3154
|
"is-nest": !0,
|
|
3146
|
-
item:
|
|
3147
|
-
"base-path": s(
|
|
3155
|
+
item: v,
|
|
3156
|
+
"base-path": s(v.path)
|
|
3148
3157
|
}, null, 8, ["item", "base-path"]))), 128))
|
|
3149
3158
|
]),
|
|
3150
3159
|
_: 1
|
|
3151
3160
|
}, 8, ["index"]))
|
|
3152
|
-
])) :
|
|
3161
|
+
])) : H("", !0);
|
|
3153
3162
|
};
|
|
3154
3163
|
}
|
|
3155
|
-
}),
|
|
3164
|
+
}), Ll = "_dark_168i3_12", Pe = {
|
|
3156
3165
|
"sidebar-width": "210px",
|
|
3157
3166
|
"navbar-height": "50px",
|
|
3158
3167
|
"menu-background": "var(--menu-background)",
|
|
3159
3168
|
"menu-text": "var(--menu-text)",
|
|
3160
3169
|
"menu-active-text": "var(--menu-active-text)",
|
|
3161
3170
|
"menu-hover": "var(--menu-hover)",
|
|
3162
|
-
dark:
|
|
3163
|
-
}, un = /* @__PURE__ */
|
|
3171
|
+
dark: Ll
|
|
3172
|
+
}, un = /* @__PURE__ */ D({
|
|
3164
3173
|
__name: "SidebarMenu",
|
|
3165
3174
|
props: {
|
|
3166
3175
|
menuList: {
|
|
@@ -3174,24 +3183,24 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
3174
3183
|
}
|
|
3175
3184
|
},
|
|
3176
3185
|
setup(e) {
|
|
3177
|
-
const n = Se(), t =
|
|
3186
|
+
const n = Se(), t = _e(), o = Ge(), s = E(() => n.layout), a = e;
|
|
3178
3187
|
function l(u) {
|
|
3179
|
-
return
|
|
3188
|
+
return He(u) ? u : He(a.basePath) ? a.basePath : rn.resolve(a.basePath, u);
|
|
3180
3189
|
}
|
|
3181
3190
|
return (u, i) => {
|
|
3182
|
-
const c =
|
|
3183
|
-
return m(),
|
|
3191
|
+
const c = Vl, f = nn;
|
|
3192
|
+
return m(), L(f, {
|
|
3184
3193
|
"default-active": r(o).path,
|
|
3185
3194
|
collapse: !r(t).sidebar.opened,
|
|
3186
|
-
"background-color": r(
|
|
3187
|
-
"text-color": r(
|
|
3188
|
-
"active-text-color": r(
|
|
3195
|
+
"background-color": r(Pe)["menu-background"],
|
|
3196
|
+
"text-color": r(Pe)["menu-text"],
|
|
3197
|
+
"active-text-color": r(Pe)["menu-active-text"],
|
|
3189
3198
|
"unique-opened": !1,
|
|
3190
3199
|
"collapse-transition": !1,
|
|
3191
3200
|
mode: r(s) === "top" ? "horizontal" : "vertical"
|
|
3192
3201
|
}, {
|
|
3193
3202
|
default: M(() => [
|
|
3194
|
-
(m(!0),
|
|
3203
|
+
(m(!0), $(oe, null, xe(e.menuList, (d) => (m(), L(c, {
|
|
3195
3204
|
key: d.path,
|
|
3196
3205
|
item: d,
|
|
3197
3206
|
"base-path": l(d.path),
|
|
@@ -3202,13 +3211,13 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
3202
3211
|
}, 8, ["default-active", "collapse", "background-color", "text-color", "active-text-color", "mode"]);
|
|
3203
3212
|
};
|
|
3204
3213
|
}
|
|
3205
|
-
}),
|
|
3214
|
+
}), Nl = { key: 1 }, Ol = {
|
|
3206
3215
|
key: 0,
|
|
3207
3216
|
class: "ml-1"
|
|
3208
|
-
},
|
|
3217
|
+
}, Bl = /* @__PURE__ */ D({
|
|
3209
3218
|
__name: "SidebarMixTopMenu",
|
|
3210
3219
|
setup(e) {
|
|
3211
|
-
const n =
|
|
3220
|
+
const n = _e(), t = Xe(), o = kt(), s = E(() => n.activeTopMenuPath), a = T([]), l = (i) => {
|
|
3212
3221
|
n.activeTopMenu(i), t.setMixLeftMenus(i);
|
|
3213
3222
|
const c = t.mixLeftMenus;
|
|
3214
3223
|
u(c);
|
|
@@ -3225,29 +3234,29 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
3225
3234
|
(i) => !i.meta || !i.meta.hidden
|
|
3226
3235
|
);
|
|
3227
3236
|
}), (i, c) => {
|
|
3228
|
-
const f =
|
|
3229
|
-
return m(),
|
|
3237
|
+
const f = Ne, d = on, p = nn, v = bt;
|
|
3238
|
+
return m(), L(v, null, {
|
|
3230
3239
|
default: M(() => [
|
|
3231
|
-
|
|
3240
|
+
_(p, {
|
|
3232
3241
|
mode: "horizontal",
|
|
3233
3242
|
"default-active": r(s),
|
|
3234
|
-
"background-color": r(
|
|
3235
|
-
"text-color": r(
|
|
3236
|
-
"active-text-color": r(
|
|
3243
|
+
"background-color": r(Pe)["menu-background"],
|
|
3244
|
+
"text-color": r(Pe)["menu-text"],
|
|
3245
|
+
"active-text-color": r(Pe)["menu-active-text"],
|
|
3237
3246
|
onSelect: l
|
|
3238
3247
|
}, {
|
|
3239
3248
|
default: M(() => [
|
|
3240
|
-
(m(!0),
|
|
3249
|
+
(m(!0), $(oe, null, xe(r(a), (g) => (m(), L(d, {
|
|
3241
3250
|
key: g.path,
|
|
3242
3251
|
index: g.path
|
|
3243
3252
|
}, {
|
|
3244
3253
|
title: M(() => [
|
|
3245
|
-
g.meta && g.meta.icon ? (m(),
|
|
3254
|
+
g.meta && g.meta.icon ? (m(), L(f, {
|
|
3246
3255
|
key: 0,
|
|
3247
3256
|
"icon-class": g.meta.icon
|
|
3248
|
-
}, null, 8, ["icon-class"])) :
|
|
3249
|
-
g.path === "/" ? (m(),
|
|
3250
|
-
g.meta && g.meta.title ? (m(),
|
|
3257
|
+
}, null, 8, ["icon-class"])) : H("", !0),
|
|
3258
|
+
g.path === "/" ? (m(), $("span", Nl, " 首页 ")) : (m(), $(oe, { key: 2 }, [
|
|
3259
|
+
g.meta && g.meta.title ? (m(), $("span", Ol, U(r(Ue)(g.meta.title)), 1)) : H("", !0)
|
|
3251
3260
|
], 64))
|
|
3252
3261
|
]),
|
|
3253
3262
|
_: 2
|
|
@@ -3260,7 +3269,7 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
3260
3269
|
});
|
|
3261
3270
|
};
|
|
3262
3271
|
}
|
|
3263
|
-
}), Rl = { class: "logo-container" },
|
|
3272
|
+
}), Rl = { class: "logo-container" }, Fl = ["src"], Dl = ["src"], zl = { class: "logo-title" }, Hl = /* @__PURE__ */ D({
|
|
3264
3273
|
__name: "SidebarLogo",
|
|
3265
3274
|
props: {
|
|
3266
3275
|
collapse: {
|
|
@@ -3269,37 +3278,37 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
3269
3278
|
}
|
|
3270
3279
|
},
|
|
3271
3280
|
setup(e) {
|
|
3272
|
-
const n = Se(), t =
|
|
3281
|
+
const n = Se(), t = ze.logo;
|
|
3273
3282
|
return (o, s) => {
|
|
3274
|
-
const a =
|
|
3275
|
-
return m(),
|
|
3276
|
-
|
|
3283
|
+
const a = Oe("router-link");
|
|
3284
|
+
return m(), $("div", Rl, [
|
|
3285
|
+
_(it, { "enter-active-class": "animate__animated animate__fadeInLeft" }, {
|
|
3277
3286
|
default: M(() => [
|
|
3278
|
-
e.collapse ? (m(),
|
|
3287
|
+
e.collapse ? (m(), L(a, {
|
|
3279
3288
|
key: 0,
|
|
3280
3289
|
class: "wh-full flex-center",
|
|
3281
3290
|
to: "/"
|
|
3282
3291
|
}, {
|
|
3283
3292
|
default: M(() => [
|
|
3284
|
-
r(n).sidebarLogo ? (m(),
|
|
3293
|
+
r(n).sidebarLogo ? (m(), $("img", {
|
|
3285
3294
|
key: 0,
|
|
3286
3295
|
src: r(t),
|
|
3287
3296
|
class: "logo-image"
|
|
3288
|
-
}, null, 8,
|
|
3297
|
+
}, null, 8, Fl)) : H("", !0)
|
|
3289
3298
|
]),
|
|
3290
3299
|
_: 1
|
|
3291
|
-
})) : (m(),
|
|
3300
|
+
})) : (m(), L(a, {
|
|
3292
3301
|
key: 1,
|
|
3293
3302
|
class: "wh-full flex-center",
|
|
3294
3303
|
to: "/"
|
|
3295
3304
|
}, {
|
|
3296
3305
|
default: M(() => [
|
|
3297
|
-
r(n).sidebarLogo ? (m(),
|
|
3306
|
+
r(n).sidebarLogo ? (m(), $("img", {
|
|
3298
3307
|
key: 0,
|
|
3299
3308
|
src: r(t),
|
|
3300
3309
|
class: "logo-image"
|
|
3301
|
-
}, null, 8, Dl)) :
|
|
3302
|
-
C("span",
|
|
3310
|
+
}, null, 8, Dl)) : H("", !0),
|
|
3311
|
+
C("span", zl, U(r(ze).title), 1)
|
|
3303
3312
|
]),
|
|
3304
3313
|
_: 1
|
|
3305
3314
|
}))
|
|
@@ -3309,99 +3318,99 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
3309
3318
|
]);
|
|
3310
3319
|
};
|
|
3311
3320
|
}
|
|
3312
|
-
}),
|
|
3321
|
+
}), Wl = /* @__PURE__ */ ie(Hl, [["__scopeId", "data-v-210c85a9"]]), ql = {
|
|
3313
3322
|
key: 0,
|
|
3314
3323
|
class: "flex w-full"
|
|
3315
|
-
},
|
|
3324
|
+
}, Kl = /* @__PURE__ */ D({
|
|
3316
3325
|
__name: "index",
|
|
3317
3326
|
setup(e) {
|
|
3318
|
-
const n =
|
|
3327
|
+
const n = _e(), t = Se(), o = Xe(), s = E(() => t.sidebarLogo), a = E(() => t.layout);
|
|
3319
3328
|
return (l, u) => {
|
|
3320
|
-
const i =
|
|
3321
|
-
return m(),
|
|
3329
|
+
const i = Wl, c = Bl, f = an, d = un, p = bt;
|
|
3330
|
+
return m(), $("div", {
|
|
3322
3331
|
class: w({ "has-logo": r(s) })
|
|
3323
3332
|
}, [
|
|
3324
|
-
r(a) == "mix" ? (m(),
|
|
3325
|
-
r(s) ? (m(),
|
|
3333
|
+
r(a) == "mix" ? (m(), $("div", ql, [
|
|
3334
|
+
r(s) ? (m(), L(i, {
|
|
3326
3335
|
key: 0,
|
|
3327
3336
|
collapse: !r(n).sidebar.opened
|
|
3328
|
-
}, null, 8, ["collapse"])) :
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
])) : (m(),
|
|
3332
|
-
r(s) ? (m(),
|
|
3337
|
+
}, null, 8, ["collapse"])) : H("", !0),
|
|
3338
|
+
_(c, { class: "flex-1" }),
|
|
3339
|
+
_(f)
|
|
3340
|
+
])) : (m(), $(oe, { key: 1 }, [
|
|
3341
|
+
r(s) ? (m(), L(i, {
|
|
3333
3342
|
key: 0,
|
|
3334
3343
|
collapse: !r(n).sidebar.opened
|
|
3335
|
-
}, null, 8, ["collapse"])) :
|
|
3336
|
-
|
|
3344
|
+
}, null, 8, ["collapse"])) : H("", !0),
|
|
3345
|
+
_(p, null, {
|
|
3337
3346
|
default: M(() => [
|
|
3338
|
-
|
|
3347
|
+
_(d, {
|
|
3339
3348
|
"menu-list": r(o).routes,
|
|
3340
3349
|
"base-path": ""
|
|
3341
3350
|
}, null, 8, ["menu-list"])
|
|
3342
3351
|
]),
|
|
3343
3352
|
_: 1
|
|
3344
3353
|
}),
|
|
3345
|
-
r(a) === "top" ? (m(),
|
|
3354
|
+
r(a) === "top" ? (m(), L(f, { key: 1 })) : H("", !0)
|
|
3346
3355
|
], 64))
|
|
3347
3356
|
], 2);
|
|
3348
3357
|
};
|
|
3349
3358
|
}
|
|
3350
|
-
}),
|
|
3359
|
+
}), Ul = /* @__PURE__ */ ie(Kl, [["__scopeId", "data-v-a6d3f8e9"]]), jl = {
|
|
3351
3360
|
key: 1,
|
|
3352
3361
|
class: "mix-container"
|
|
3353
|
-
},
|
|
3362
|
+
}, Xl = { class: "mix-container__left" }, Gl = { class: "sidebar-toggle" }, Yl = 992, Zl = /* @__PURE__ */ D({
|
|
3354
3363
|
__name: "index",
|
|
3355
3364
|
setup(e) {
|
|
3356
|
-
const n =
|
|
3365
|
+
const n = _e(), t = Se(), o = Xe(), s = E(() => t.fixedHeader), a = E(() => t.tagsView), l = E(() => t.layout), u = E(() => n.activeTopMenuPath), i = E(() => o.mixLeftMenus);
|
|
3357
3366
|
ee(
|
|
3358
3367
|
() => u.value,
|
|
3359
|
-
(
|
|
3360
|
-
o.setMixLeftMenus(
|
|
3368
|
+
(v) => {
|
|
3369
|
+
o.setMixLeftMenus(v);
|
|
3361
3370
|
},
|
|
3362
3371
|
{
|
|
3363
3372
|
deep: !0,
|
|
3364
3373
|
immediate: !0
|
|
3365
3374
|
}
|
|
3366
3375
|
);
|
|
3367
|
-
const c =
|
|
3376
|
+
const c = E(() => ({
|
|
3368
3377
|
hideSidebar: !n.sidebar.opened,
|
|
3369
3378
|
openSidebar: n.sidebar.opened,
|
|
3370
|
-
mobile: n.device ===
|
|
3379
|
+
mobile: n.device === et.MOBILE,
|
|
3371
3380
|
"layout-left": l.value === "left",
|
|
3372
3381
|
"layout-top": l.value === "top",
|
|
3373
3382
|
"layout-mix": l.value === "mix"
|
|
3374
|
-
})), f =
|
|
3383
|
+
})), f = Hn().width;
|
|
3375
3384
|
yt(() => {
|
|
3376
|
-
f.value < Yl ? (n.toggleDevice(
|
|
3385
|
+
f.value < Yl ? (n.toggleDevice(et.MOBILE), n.closeSideBar()) : (n.toggleDevice(et.DESKTOP), f.value >= 1200 ? n.openSideBar() : n.closeSideBar());
|
|
3377
3386
|
});
|
|
3378
3387
|
function d() {
|
|
3379
3388
|
n.closeSideBar();
|
|
3380
3389
|
}
|
|
3381
|
-
function
|
|
3390
|
+
function p() {
|
|
3382
3391
|
n.toggleSidebar();
|
|
3383
3392
|
}
|
|
3384
|
-
return (
|
|
3385
|
-
const
|
|
3386
|
-
return m(),
|
|
3393
|
+
return (v, g) => {
|
|
3394
|
+
const k = Ul, S = un, R = ln, N = xl, b = gl, Z = hl, Y = Ha;
|
|
3395
|
+
return m(), $("div", {
|
|
3387
3396
|
class: w(["wh-full", r(c)])
|
|
3388
3397
|
}, [
|
|
3389
|
-
r(c).mobile && r(c).openSidebar ? (m(),
|
|
3398
|
+
r(c).mobile && r(c).openSidebar ? (m(), $("div", {
|
|
3390
3399
|
key: 0,
|
|
3391
3400
|
class: "wh-full fixed-lt z-999 bg-black bg-opacity-30",
|
|
3392
3401
|
onClick: d
|
|
3393
|
-
})) :
|
|
3394
|
-
|
|
3395
|
-
r(l) === "mix" ? (m(),
|
|
3396
|
-
C("div",
|
|
3397
|
-
|
|
3402
|
+
})) : H("", !0),
|
|
3403
|
+
_(k, { class: "sidebar-container" }),
|
|
3404
|
+
r(l) === "mix" ? (m(), $("div", jl, [
|
|
3405
|
+
C("div", Xl, [
|
|
3406
|
+
_(S, {
|
|
3398
3407
|
"menu-list": r(i),
|
|
3399
3408
|
"base-path": r(u)
|
|
3400
3409
|
}, null, 8, ["menu-list", "base-path"]),
|
|
3401
|
-
C("div",
|
|
3402
|
-
|
|
3410
|
+
C("div", Gl, [
|
|
3411
|
+
_(R, {
|
|
3403
3412
|
"is-active": r(n).sidebar.opened,
|
|
3404
|
-
onToggleClick:
|
|
3413
|
+
onToggleClick: p
|
|
3405
3414
|
}, null, 8, ["is-active"])
|
|
3406
3415
|
])
|
|
3407
3416
|
]),
|
|
@@ -3411,28 +3420,28 @@ const rn = /* @__PURE__ */ Wn(sn), Il = { class: "tags-container" }, wl = /* @__
|
|
|
3411
3420
|
C("div", {
|
|
3412
3421
|
class: w({ "fixed-header": r(s) })
|
|
3413
3422
|
}, [
|
|
3414
|
-
r(a) ? (m(),
|
|
3423
|
+
r(a) ? (m(), L(N, { key: 0 })) : H("", !0)
|
|
3415
3424
|
], 2),
|
|
3416
|
-
b
|
|
3417
|
-
r(
|
|
3425
|
+
_(b),
|
|
3426
|
+
r(ze).showSettings ? (m(), L(Z, { key: 0 })) : H("", !0)
|
|
3418
3427
|
], 2)
|
|
3419
|
-
])) : (m(),
|
|
3428
|
+
])) : (m(), $("div", {
|
|
3420
3429
|
key: 2,
|
|
3421
3430
|
class: w([{ hasTagsView: r(a) }, "main-container"])
|
|
3422
3431
|
}, [
|
|
3423
3432
|
C("div", {
|
|
3424
3433
|
class: w({ "fixed-header": r(s) })
|
|
3425
3434
|
}, [
|
|
3426
|
-
r(l) === "left" ? (m(),
|
|
3427
|
-
r(a) ? (m(),
|
|
3435
|
+
r(l) === "left" ? (m(), L(Y, { key: 0 })) : H("", !0),
|
|
3436
|
+
r(a) ? (m(), L(N, { key: 1 })) : H("", !0)
|
|
3428
3437
|
], 2),
|
|
3429
|
-
b
|
|
3430
|
-
r(
|
|
3438
|
+
_(b),
|
|
3439
|
+
r(ze).showSettings ? (m(), L(Z, { key: 0 })) : H("", !0)
|
|
3431
3440
|
], 2))
|
|
3432
3441
|
], 2);
|
|
3433
3442
|
};
|
|
3434
3443
|
}
|
|
3435
|
-
}),
|
|
3444
|
+
}), fs = /* @__PURE__ */ ie(Zl, [["__scopeId", "data-v-71891bc2"]]);
|
|
3436
3445
|
export {
|
|
3437
|
-
|
|
3446
|
+
fs as default
|
|
3438
3447
|
};
|