jmash-core 0.0.10 → 0.0.12
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 +101 -0
- package/dist/404-D1L3bBKj.mjs +37 -0
- package/dist/{BarChart-DMEOgtiK.mjs → BarChart-CfcVJz3-.mjs} +41 -41
- package/dist/{FileSaver.min-QT2Ccp7G.mjs → FileSaver.min-C3PXR_ER.mjs} +1 -1
- package/dist/{FunnelChart-Czy2TVI1.mjs → FunnelChart-CcCVox9E.mjs} +16 -15
- package/dist/{PieChart-CR6Jny_5.mjs → PieChart-6YLME4bj.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-65SK3HKm.mjs → PieChart.vue_vue_type_script_setup_true_lang-CzuULwXY.mjs} +25 -24
- package/dist/{RadarChart-dAF4Lmnh.mjs → RadarChart-DkmgXM6y.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-CugqBg8u.mjs → RadarChart.vue_vue_type_script_setup_true_lang-NTNi_I9_.mjs} +27 -26
- package/dist/{edit-Da4rBqIl.mjs → edit-BUeKYrEZ.mjs} +1 -1
- package/dist/{edit-BILFCR0k.mjs → edit-CJuMrQ46.mjs} +54 -54
- package/dist/{edit-C3_M4SAm.mjs → edit-CkpeOqrr.mjs} +1 -1
- package/dist/{edit-CBUBEDYQ.mjs → edit-DGe7AWsr.mjs} +53 -53
- package/dist/{edit-BaKHtEYP.mjs → edit-DjN392jC.mjs} +1 -1
- package/dist/{edit-BryJ1Ozj.mjs → edit-YJP7pN6W.mjs} +1 -1
- package/dist/edit-lwVBGzDE.mjs +4 -0
- package/dist/edit-xlxZjC4R.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BojWrHVs.mjs → edit.vue_vue_type_script_setup_true_lang-BWtQvmLi.mjs} +14 -14
- package/dist/{edit.vue_vue_type_script_setup_true_lang-RRQ8AbpV.mjs → edit.vue_vue_type_script_setup_true_lang-BtM452jP.mjs} +46 -46
- package/dist/edit.vue_vue_type_script_setup_true_lang-DEydJiSf.mjs +588 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-B0CmHQFN.mjs → edit.vue_vue_type_script_setup_true_lang-DI-oeRPA.mjs} +22 -22
- package/dist/{edit.vue_vue_type_script_setup_true_lang-5_bW1lje.mjs → edit.vue_vue_type_script_setup_true_lang-RBjkUr1y.mjs} +30 -30
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DvT8PvhG.mjs → edit.vue_vue_type_script_setup_true_lang-djIfNPqQ.mjs} +24 -24
- package/dist/{el-card-BOz1BuaJ.mjs → el-card-C861yBJo.mjs} +1 -1
- package/dist/{el-col-ByQ4RMxz.mjs → el-col-BBiMr5pm.mjs} +17 -17
- package/dist/{el-date-picker-BxsQLDQk.mjs → el-date-picker-N5aiMKSy.mjs} +372 -372
- package/dist/el-divider-QMj1kMtJ.mjs +45 -0
- package/dist/{el-dropdown-item-Oj8hVe5g.mjs → el-dropdown-item-4ws609Gw.mjs} +76 -76
- package/dist/{el-tree-select-D9LnnJmi.mjs → el-tree-select-DdZxfrNV.mjs} +75 -75
- package/dist/{index-B1tUnBOd.mjs → index-9TwUBNc5.mjs} +1 -1
- package/dist/{index-CcwdkUsS.mjs → index-AiS44_Xc.mjs} +64 -64
- package/dist/{index-CO0p57s7.mjs → index-B7u0TetV.mjs} +48 -48
- package/dist/{index-CTwdawf9.mjs → index-BX1Jx_xA.mjs} +1 -1
- package/dist/index-BZBpY0uA.mjs +277 -0
- package/dist/{index-DIik67HQ.mjs → index-Be59bIqU.mjs} +51 -51
- package/dist/{index-BhWLFjrd.mjs → index-BzT4__Is.mjs} +101 -101
- package/dist/index-C__OmU1O.mjs +272 -0
- package/dist/{index-DjBUKTDX.mjs → index-CkXpK-zH.mjs} +21620 -21400
- package/dist/{index-BQj9zHJH.mjs → index-Cmlc_Bb4.mjs} +4 -4
- package/dist/{index-BC5xzJHH.mjs → index-CrZPfuW6.mjs} +60 -60
- package/dist/{index-7E1Q6xEm.mjs → index-DD1K2w1b.mjs} +71 -71
- package/dist/{index-H2NqoRop.mjs → index-DFVq4R0u.mjs} +1 -1
- package/dist/{index-BFilvnBa.mjs → index-DOPTH9F2.mjs} +65 -65
- package/dist/{index-B6lfofak.mjs → index-Dn-psVpr.mjs} +112 -111
- package/dist/index-DnSJxj9r.mjs +3438 -0
- package/dist/{index-CMhIkM_l.mjs → index-DtR1eBZg.mjs} +1 -1
- package/dist/{index-DgmZIJSM.mjs → index-H7-W4HC2.mjs} +1 -1
- package/dist/{index-CZazFMG9.mjs → index-NVKBuLg_.mjs} +59 -59
- package/dist/{index-Bm8Ym_vg.mjs → index-hMoSvG6q.mjs} +58 -58
- package/dist/index.mjs +26 -27
- package/dist/index.vue_vue_type_script_setup_true_lang-up5cpReQ.mjs +54 -0
- package/dist/picture-o8CKMR0j.mjs +587 -0
- package/dist/position-BUALjtY9.mjs +23 -0
- package/dist/{profile-B8BtUlO7.mjs → profile-BLq1IvXt.mjs} +25 -25
- package/dist/style.css +1 -1
- package/dist/{types-CZaBSnxK.mjs → types-JT7Xyhpz.mjs} +13 -13
- package/dist/{updatePwd-BRhEXp-m.mjs → updatePwd-DnT8nEtM.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-DcvNM8-2.mjs → updatePwd.vue_vue_type_script_setup_true_lang-Dks8j8my.mjs} +9 -9
- package/package.json +1 -1
- package/dist/401-CHBVbzep.mjs +0 -101
- package/dist/404-C06c3dKV.mjs +0 -37
- package/dist/anquanrizhi-BMAtNRi-.mjs +0 -4
- package/dist/api-DA2t0sYn.mjs +0 -4
- package/dist/bumenguanli-_DtFk-Tc.mjs +0 -4
- package/dist/caozuoguanliyuan-YxDi1qyM.mjs +0 -4
- package/dist/captcha-G9RskXh1.mjs +0 -4
- package/dist/caret-bottom-DQsNMTCk.mjs +0 -59
- package/dist/cascader-CysbB3DR.mjs +0 -4
- package/dist/client-CmoE5d0v.mjs +0 -4
- package/dist/close-DwiHyvYJ.mjs +0 -4
- package/dist/close_all-ri0Fg4Yg.mjs +0 -4
- package/dist/close_left-DLmFYlJS.mjs +0 -4
- package/dist/close_other-B705ZMV6.mjs +0 -4
- package/dist/close_right-BUdNHbs5.mjs +0 -4
- package/dist/dict-C2cGjFov.mjs +0 -4
- package/dist/document-Bf2gTChB.mjs +0 -4
- package/dist/download-cG3k-vnb.mjs +0 -4
- package/dist/drag-CwjZNuUJ.mjs +0 -4
- package/dist/edit-CIq1RPVx.mjs +0 -4
- package/dist/edit-YR1BLwBM.mjs +0 -4
- package/dist/edit-dkzoPlC1.mjs +0 -4
- package/dist/edit.vue_vue_type_script_setup_true_lang-DfZ2CWbT.mjs +0 -575
- package/dist/email-B2AUCEGq.mjs +0 -4
- package/dist/exit-fullscreen-BJ7HY1Sq.mjs +0 -4
- package/dist/eye-DeDz_5CQ.mjs +0 -4
- package/dist/eye-open-Cm0N1Rcz.mjs +0 -4
- package/dist/fullscreen-BFXljl9l.mjs +0 -4
- package/dist/gangweiguanli-bkwyhEXB.mjs +0 -4
- package/dist/github-CL2t8fd5.mjs +0 -4
- package/dist/homepage-IeZtzO8Q.mjs +0 -4
- package/dist/icon-DwZ6Hkfk.mjs +0 -4
- package/dist/index-BTnK8LSe.mjs +0 -319
- package/dist/index-CYOLMp2W.mjs +0 -2580
- package/dist/index-WG3AukVT.mjs +0 -275
- package/dist/ip-DOLbS1rT.mjs +0 -4
- package/dist/jiemianxijietubiao-26-mnbzByc9.mjs +0 -4
- package/dist/language-C1tgLxuP.mjs +0 -4
- package/dist/link-Cjm7RVX7.mjs +0 -4
- package/dist/log-ZFSIG9ZQ.mjs +0 -4
- package/dist/menu-B7SOjMUJ.mjs +0 -4
- package/dist/message-Bws5C_1u.mjs +0 -4
- package/dist/mokuaiguanli-nzRpK-Pe.mjs +0 -4
- package/dist/money-DM0ZKWD3.mjs +0 -4
- package/dist/monitor-CxsUJkcx.mjs +0 -4
- package/dist/order-DZ28J7CD.mjs +0 -4
- package/dist/password-BbtiGVLy.mjs +0 -4
- package/dist/peoples-3fyh79uv.mjs +0 -4
- package/dist/phone-CdpLww4_.mjs +0 -4
- package/dist/picture-CG9bft5d.mjs +0 -598
- package/dist/project-DgVsw9u_.mjs +0 -4
- package/dist/publish-BCri5HbT.mjs +0 -4
- package/dist/quanxianguanli-Cpcc8C4D.mjs +0 -4
- package/dist/redis-fjUUmFu3.mjs +0 -4
- package/dist/refresh-BWNjEt3t.mjs +0 -4
- package/dist/role-BYKzPG5H.mjs +0 -4
- package/dist/security-BsMRfWoG.mjs +0 -4
- package/dist/shoujihao-BFt1tDJn.mjs +0 -4
- package/dist/shrink-kEdKK3G7.mjs +0 -4
- package/dist/size-jLonAeyJ.mjs +0 -4
- package/dist/system-BlPhikZo.mjs +0 -4
- package/dist/table-CCqA2qBP.mjs +0 -4
- package/dist/todolist-Ul73X2IJ.mjs +0 -4
- package/dist/tree-DrEt7UUZ.mjs +0 -4
- package/dist/user-B9bSWq2E.mjs +0 -4
- package/dist/visit-w_hKTLb6.mjs +0 -4
- package/dist/xingming-DHM4olm-.mjs +0 -4
- package/dist/yonghuguanli-B3vRkdqw.mjs +0 -4
- package/dist/youxiang-D68Zx-02.mjs +0 -4
- package/dist//345/210/227/350/241/250-nphA7BPW.mjs +0 -4
- package/dist//345/233/272/345/256/232_/345/233/276/351/222/211-CXYo1gbQ.mjs +0 -4
- package/dist//346/250/241/345/235/227-D528qA63.mjs +0 -4
- package/dist//347/234/274/347/235/233-BaPHKGgj.mjs +0 -4
- package/dist//351/227/255/347/234/274/347/235/233-D6BjbTd5.mjs +0 -4
package/dist/index-CYOLMp2W.mjs
DELETED
|
@@ -1,2580 +0,0 @@
|
|
|
1
|
-
import { b as Re, i as _e, u as le, _ as Ne, d as Oe, E as Ue, w as vt, a as Ge, c as re, t as Le, e as Be, r as He, h as Wt, T as Dt, f as ze, g as Ut, j as Gt, k as ye, l as Ze, m as st, n as Zt, o as Qt, C as Yt, p as $t, q as Jt, s as jt, v as it, x as Ce, y as j, z as ae, A as ht, B as Qe, D as be, F as Ht, G as Kt, H as rt, I as Ft, J as Xt, K as qt, L as en, M as ct, N as ut, O as he, P as Ve, Q as tn, R as nn, S as qe, U as gt, V as on } from "./index-DjBUKTDX.mjs";
|
|
2
|
-
import { defineComponent as O, ref as P, provide as We, onMounted as fe, openBlock as m, createElementBlock as _, normalizeClass as G, unref as h, renderSlot as ee, getCurrentInstance as ke, inject as Ee, createElementVNode as C, createBlock as R, withCtx as y, resolveDynamicComponent as bt, toDisplayString as de, Transition as et, mergeProps as ln, computed as E, reactive as Ye, watch as oe, onBeforeUnmount as $e, h as J, Fragment as X, withDirectives as ve, vShow as Te, watchEffect as tt, nextTick as De, toRef as an, resolveComponent as Ie, createTextVNode as $, createVNode as b, renderList as ge, resolveDirective as sn, createCommentVNode as U, onBeforeMount as rn, TransitionGroup as cn, withModifiers as Me, KeepAlive as un, normalizeStyle as nt, pushScopeId as _t, popScopeId as yt } from "vue";
|
|
3
|
-
import { E as xt, a as wt, b as Ct } from "./el-dropdown-item-Oj8hVe5g.mjs";
|
|
4
|
-
import { _ as dn, E as fn } from "./caret-bottom-DQsNMTCk.mjs";
|
|
5
|
-
import { storeToRefs as ot } from "pinia";
|
|
6
|
-
import { useRouter as Je, useRoute as je } from "vue-router";
|
|
7
|
-
import { _ as mn } from "./updatePwd.vue_vue_type_script_setup_true_lang-DcvNM8-2.mjs";
|
|
8
|
-
import { _ as pn } from "./index-CTwdawf9.mjs";
|
|
9
|
-
const kt = Symbol("breadcrumbKey"), vn = Re({
|
|
10
|
-
separator: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: "/"
|
|
13
|
-
},
|
|
14
|
-
separatorIcon: {
|
|
15
|
-
type: _e
|
|
16
|
-
}
|
|
17
|
-
}), hn = O({
|
|
18
|
-
name: "ElBreadcrumb"
|
|
19
|
-
}), gn = /* @__PURE__ */ O({
|
|
20
|
-
...hn,
|
|
21
|
-
props: vn,
|
|
22
|
-
setup(n) {
|
|
23
|
-
const t = n, e = le("breadcrumb"), o = P();
|
|
24
|
-
return We(kt, t), fe(() => {
|
|
25
|
-
const l = o.value.querySelectorAll(`.${e.e("item")}`);
|
|
26
|
-
l.length && l[l.length - 1].setAttribute("aria-current", "page");
|
|
27
|
-
}), (l, i) => (m(), _("div", {
|
|
28
|
-
ref_key: "breadcrumb",
|
|
29
|
-
ref: o,
|
|
30
|
-
class: G(h(e).b()),
|
|
31
|
-
"aria-label": "Breadcrumb",
|
|
32
|
-
role: "navigation"
|
|
33
|
-
}, [
|
|
34
|
-
ee(l.$slots, "default")
|
|
35
|
-
], 2));
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
var bn = /* @__PURE__ */ Ne(gn, [["__file", "breadcrumb.vue"]]);
|
|
39
|
-
const _n = Re({
|
|
40
|
-
to: {
|
|
41
|
-
type: Oe([String, Object]),
|
|
42
|
-
default: ""
|
|
43
|
-
},
|
|
44
|
-
replace: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: !1
|
|
47
|
-
}
|
|
48
|
-
}), yn = O({
|
|
49
|
-
name: "ElBreadcrumbItem"
|
|
50
|
-
}), xn = /* @__PURE__ */ O({
|
|
51
|
-
...yn,
|
|
52
|
-
props: _n,
|
|
53
|
-
setup(n) {
|
|
54
|
-
const t = n, e = ke(), o = Ee(kt, void 0), l = le("breadcrumb"), i = e.appContext.config.globalProperties.$router, a = P(), r = () => {
|
|
55
|
-
!t.to || !i || (t.replace ? i.replace(t.to) : i.push(t.to));
|
|
56
|
-
};
|
|
57
|
-
return (s, d) => {
|
|
58
|
-
var u, c;
|
|
59
|
-
return m(), _("span", {
|
|
60
|
-
class: G(h(l).e("item"))
|
|
61
|
-
}, [
|
|
62
|
-
C("span", {
|
|
63
|
-
ref_key: "link",
|
|
64
|
-
ref: a,
|
|
65
|
-
class: G([h(l).e("inner"), h(l).is("link", !!s.to)]),
|
|
66
|
-
role: "link",
|
|
67
|
-
onClick: r
|
|
68
|
-
}, [
|
|
69
|
-
ee(s.$slots, "default")
|
|
70
|
-
], 2),
|
|
71
|
-
(u = h(o)) != null && u.separatorIcon ? (m(), R(h(Ue), {
|
|
72
|
-
key: 0,
|
|
73
|
-
class: G(h(l).e("separator"))
|
|
74
|
-
}, {
|
|
75
|
-
default: y(() => [
|
|
76
|
-
(m(), R(bt(h(o).separatorIcon)))
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
}, 8, ["class"])) : (m(), _("span", {
|
|
80
|
-
key: 1,
|
|
81
|
-
class: G(h(l).e("separator")),
|
|
82
|
-
role: "presentation"
|
|
83
|
-
}, de((c = h(o)) == null ? void 0 : c.separator), 3))
|
|
84
|
-
], 2);
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
var It = /* @__PURE__ */ Ne(xn, [["__file", "breadcrumb-item.vue"]]);
|
|
89
|
-
const wn = vt(bn, {
|
|
90
|
-
BreadcrumbItem: It
|
|
91
|
-
}), Cn = Ge(It);
|
|
92
|
-
let kn = class {
|
|
93
|
-
constructor(t, e) {
|
|
94
|
-
this.parent = t, this.domNode = e, this.subIndex = 0, this.subIndex = 0, this.init();
|
|
95
|
-
}
|
|
96
|
-
init() {
|
|
97
|
-
this.subMenuItems = this.domNode.querySelectorAll("li"), this.addListeners();
|
|
98
|
-
}
|
|
99
|
-
gotoSubIndex(t) {
|
|
100
|
-
t === this.subMenuItems.length ? t = 0 : t < 0 && (t = this.subMenuItems.length - 1), this.subMenuItems[t].focus(), this.subIndex = t;
|
|
101
|
-
}
|
|
102
|
-
addListeners() {
|
|
103
|
-
const t = this.parent.domNode;
|
|
104
|
-
Array.prototype.forEach.call(this.subMenuItems, (e) => {
|
|
105
|
-
e.addEventListener("keydown", (o) => {
|
|
106
|
-
let l = !1;
|
|
107
|
-
switch (o.code) {
|
|
108
|
-
case re.down: {
|
|
109
|
-
this.gotoSubIndex(this.subIndex + 1), l = !0;
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
case re.up: {
|
|
113
|
-
this.gotoSubIndex(this.subIndex - 1), l = !0;
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
case re.tab: {
|
|
117
|
-
Le(t, "mouseleave");
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
case re.enter:
|
|
121
|
-
case re.space: {
|
|
122
|
-
l = !0, o.currentTarget.click();
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return l && (o.preventDefault(), o.stopPropagation()), !1;
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
}, In = class {
|
|
131
|
-
constructor(t, e) {
|
|
132
|
-
this.domNode = t, this.submenu = null, this.submenu = null, this.init(e);
|
|
133
|
-
}
|
|
134
|
-
init(t) {
|
|
135
|
-
this.domNode.setAttribute("tabindex", "0");
|
|
136
|
-
const e = this.domNode.querySelector(`.${t}-menu`);
|
|
137
|
-
e && (this.submenu = new kn(this, e)), this.addListeners();
|
|
138
|
-
}
|
|
139
|
-
addListeners() {
|
|
140
|
-
this.domNode.addEventListener("keydown", (t) => {
|
|
141
|
-
let e = !1;
|
|
142
|
-
switch (t.code) {
|
|
143
|
-
case re.down: {
|
|
144
|
-
Le(t.currentTarget, "mouseenter"), this.submenu && this.submenu.gotoSubIndex(0), e = !0;
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
case re.up: {
|
|
148
|
-
Le(t.currentTarget, "mouseenter"), this.submenu && this.submenu.gotoSubIndex(this.submenu.subMenuItems.length - 1), e = !0;
|
|
149
|
-
break;
|
|
150
|
-
}
|
|
151
|
-
case re.tab: {
|
|
152
|
-
Le(t.currentTarget, "mouseleave");
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
case re.enter:
|
|
156
|
-
case re.space: {
|
|
157
|
-
e = !0, t.currentTarget.click();
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
e && t.preventDefault();
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
}, Sn = class {
|
|
165
|
-
constructor(t, e) {
|
|
166
|
-
this.domNode = t, this.init(e);
|
|
167
|
-
}
|
|
168
|
-
init(t) {
|
|
169
|
-
const e = this.domNode.childNodes;
|
|
170
|
-
Array.from(e).forEach((o) => {
|
|
171
|
-
o.nodeType === 1 && new In(o, t);
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
const Mn = O({
|
|
176
|
-
name: "ElMenuCollapseTransition",
|
|
177
|
-
setup() {
|
|
178
|
-
const n = le("menu");
|
|
179
|
-
return {
|
|
180
|
-
listeners: {
|
|
181
|
-
onBeforeEnter: (e) => e.style.opacity = "0.2",
|
|
182
|
-
onEnter(e, o) {
|
|
183
|
-
Be(e, `${n.namespace.value}-opacity-transition`), e.style.opacity = "1", o();
|
|
184
|
-
},
|
|
185
|
-
onAfterEnter(e) {
|
|
186
|
-
He(e, `${n.namespace.value}-opacity-transition`), e.style.opacity = "";
|
|
187
|
-
},
|
|
188
|
-
onBeforeLeave(e) {
|
|
189
|
-
e.dataset || (e.dataset = {}), Wt(e, n.m("collapse")) ? (He(e, n.m("collapse")), e.dataset.oldOverflow = e.style.overflow, e.dataset.scrollWidth = e.clientWidth.toString(), Be(e, n.m("collapse"))) : (Be(e, n.m("collapse")), e.dataset.oldOverflow = e.style.overflow, e.dataset.scrollWidth = e.clientWidth.toString(), He(e, n.m("collapse"))), e.style.width = `${e.scrollWidth}px`, e.style.overflow = "hidden";
|
|
190
|
-
},
|
|
191
|
-
onLeave(e) {
|
|
192
|
-
Be(e, "horizontal-collapse-transition"), e.style.width = `${e.dataset.scrollWidth}px`;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
function En(n, t, e, o, l, i) {
|
|
199
|
-
return m(), R(et, ln({ mode: "out-in" }, n.listeners), {
|
|
200
|
-
default: y(() => [
|
|
201
|
-
ee(n.$slots, "default")
|
|
202
|
-
]),
|
|
203
|
-
_: 3
|
|
204
|
-
}, 16);
|
|
205
|
-
}
|
|
206
|
-
var Tn = /* @__PURE__ */ Ne(Mn, [["render", En], ["__file", "menu-collapse-transition.vue"]]);
|
|
207
|
-
function St(n, t) {
|
|
208
|
-
const e = E(() => {
|
|
209
|
-
let l = n.parent;
|
|
210
|
-
const i = [t.value];
|
|
211
|
-
for (; l.type.name !== "ElMenu"; )
|
|
212
|
-
l.props.index && i.unshift(l.props.index), l = l.parent;
|
|
213
|
-
return i;
|
|
214
|
-
});
|
|
215
|
-
return {
|
|
216
|
-
parentMenu: E(() => {
|
|
217
|
-
let l = n.parent;
|
|
218
|
-
for (; l && !["ElMenu", "ElSubMenu"].includes(l.type.name); )
|
|
219
|
-
l = l.parent;
|
|
220
|
-
return l;
|
|
221
|
-
}),
|
|
222
|
-
indexPath: e
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
function An(n) {
|
|
226
|
-
return E(() => {
|
|
227
|
-
const e = n.backgroundColor;
|
|
228
|
-
return e ? new Dt(e).shade(20).toString() : "";
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
const Mt = (n, t) => {
|
|
232
|
-
const e = le("menu");
|
|
233
|
-
return E(() => e.cssVarBlock({
|
|
234
|
-
"text-color": n.textColor || "",
|
|
235
|
-
"hover-text-color": n.textColor || "",
|
|
236
|
-
"bg-color": n.backgroundColor || "",
|
|
237
|
-
"hover-bg-color": An(n).value || "",
|
|
238
|
-
"active-color": n.activeTextColor || "",
|
|
239
|
-
level: `${t}`
|
|
240
|
-
}));
|
|
241
|
-
}, Pn = Re({
|
|
242
|
-
index: {
|
|
243
|
-
type: String,
|
|
244
|
-
required: !0
|
|
245
|
-
},
|
|
246
|
-
showTimeout: Number,
|
|
247
|
-
hideTimeout: Number,
|
|
248
|
-
popperClass: String,
|
|
249
|
-
disabled: Boolean,
|
|
250
|
-
teleported: {
|
|
251
|
-
type: Boolean,
|
|
252
|
-
default: void 0
|
|
253
|
-
},
|
|
254
|
-
popperOffset: Number,
|
|
255
|
-
expandCloseIcon: {
|
|
256
|
-
type: _e
|
|
257
|
-
},
|
|
258
|
-
expandOpenIcon: {
|
|
259
|
-
type: _e
|
|
260
|
-
},
|
|
261
|
-
collapseCloseIcon: {
|
|
262
|
-
type: _e
|
|
263
|
-
},
|
|
264
|
-
collapseOpenIcon: {
|
|
265
|
-
type: _e
|
|
266
|
-
}
|
|
267
|
-
}), Ke = "ElSubMenu";
|
|
268
|
-
var lt = O({
|
|
269
|
-
name: Ke,
|
|
270
|
-
props: Pn,
|
|
271
|
-
setup(n, { slots: t, expose: e }) {
|
|
272
|
-
const o = ke(), { indexPath: l, parentMenu: i } = St(o, E(() => n.index)), a = le("menu"), r = le("sub-menu"), s = Ee("rootMenu");
|
|
273
|
-
s || ze(Ke, "can not inject root menu");
|
|
274
|
-
const d = Ee(`subMenu:${i.value.uid}`);
|
|
275
|
-
d || ze(Ke, "can not inject sub menu");
|
|
276
|
-
const u = P({}), c = P({});
|
|
277
|
-
let v;
|
|
278
|
-
const k = P(!1), x = P(), V = P(null), I = E(() => H.value === "horizontal" && B.value ? "bottom-start" : "right-start"), S = E(() => H.value === "horizontal" && B.value || H.value === "vertical" && !s.props.collapse ? n.expandCloseIcon && n.expandOpenIcon ? z.value ? n.expandOpenIcon : n.expandCloseIcon : Ut : n.collapseCloseIcon && n.collapseOpenIcon ? z.value ? n.collapseOpenIcon : n.collapseCloseIcon : Gt), B = E(() => d.level === 0), Q = E(() => {
|
|
279
|
-
const f = n.teleported;
|
|
280
|
-
return f === void 0 ? B.value : f;
|
|
281
|
-
}), Y = E(() => s.props.collapse ? `${a.namespace.value}-zoom-in-left` : `${a.namespace.value}-zoom-in-top`), F = E(() => H.value === "horizontal" && B.value ? [
|
|
282
|
-
"bottom-start",
|
|
283
|
-
"bottom-end",
|
|
284
|
-
"top-start",
|
|
285
|
-
"top-end",
|
|
286
|
-
"right-start",
|
|
287
|
-
"left-start"
|
|
288
|
-
] : [
|
|
289
|
-
"right-start",
|
|
290
|
-
"right",
|
|
291
|
-
"right-end",
|
|
292
|
-
"left-start",
|
|
293
|
-
"bottom-start",
|
|
294
|
-
"bottom-end",
|
|
295
|
-
"top-start",
|
|
296
|
-
"top-end"
|
|
297
|
-
]), z = E(() => s.openedMenus.includes(n.index)), L = E(() => {
|
|
298
|
-
let f = !1;
|
|
299
|
-
return Object.values(u.value).forEach((p) => {
|
|
300
|
-
p.active && (f = !0);
|
|
301
|
-
}), Object.values(c.value).forEach((p) => {
|
|
302
|
-
p.active && (f = !0);
|
|
303
|
-
}), f;
|
|
304
|
-
}), H = E(() => s.props.mode), K = Ye({
|
|
305
|
-
index: n.index,
|
|
306
|
-
indexPath: l,
|
|
307
|
-
active: L
|
|
308
|
-
}), q = Mt(s.props, d.level + 1), me = E(() => {
|
|
309
|
-
var f;
|
|
310
|
-
return (f = n.popperOffset) != null ? f : s.props.popperOffset;
|
|
311
|
-
}), se = E(() => {
|
|
312
|
-
var f;
|
|
313
|
-
return (f = n.popperClass) != null ? f : s.props.popperClass;
|
|
314
|
-
}), pe = E(() => {
|
|
315
|
-
var f;
|
|
316
|
-
return (f = n.showTimeout) != null ? f : s.props.showTimeout;
|
|
317
|
-
}), g = E(() => {
|
|
318
|
-
var f;
|
|
319
|
-
return (f = n.hideTimeout) != null ? f : s.props.hideTimeout;
|
|
320
|
-
}), w = () => {
|
|
321
|
-
var f, p, T;
|
|
322
|
-
return (T = (p = (f = V.value) == null ? void 0 : f.popperRef) == null ? void 0 : p.popperInstanceRef) == null ? void 0 : T.destroy();
|
|
323
|
-
}, M = (f) => {
|
|
324
|
-
f || w();
|
|
325
|
-
}, Z = () => {
|
|
326
|
-
s.props.menuTrigger === "hover" && s.props.mode === "horizontal" || s.props.collapse && s.props.mode === "vertical" || n.disabled || s.handleSubMenuClick({
|
|
327
|
-
index: n.index,
|
|
328
|
-
indexPath: l.value,
|
|
329
|
-
active: L.value
|
|
330
|
-
});
|
|
331
|
-
}, D = (f, p = pe.value) => {
|
|
332
|
-
var T;
|
|
333
|
-
if (f.type !== "focus") {
|
|
334
|
-
if (s.props.menuTrigger === "click" && s.props.mode === "horizontal" || !s.props.collapse && s.props.mode === "vertical" || n.disabled) {
|
|
335
|
-
d.mouseInChild.value = !0;
|
|
336
|
-
return;
|
|
337
|
-
}
|
|
338
|
-
d.mouseInChild.value = !0, v == null || v(), { stop: v } = st(() => {
|
|
339
|
-
s.openMenu(n.index, l.value);
|
|
340
|
-
}, p), Q.value && ((T = i.value.vnode.el) == null || T.dispatchEvent(new MouseEvent("mouseenter")));
|
|
341
|
-
}
|
|
342
|
-
}, te = (f = !1) => {
|
|
343
|
-
var p;
|
|
344
|
-
if (s.props.menuTrigger === "click" && s.props.mode === "horizontal" || !s.props.collapse && s.props.mode === "vertical") {
|
|
345
|
-
d.mouseInChild.value = !1;
|
|
346
|
-
return;
|
|
347
|
-
}
|
|
348
|
-
v == null || v(), d.mouseInChild.value = !1, { stop: v } = st(() => !k.value && s.closeMenu(n.index, l.value), g.value), Q.value && f && ((p = d.handleMouseleave) == null || p.call(d, !0));
|
|
349
|
-
};
|
|
350
|
-
oe(() => s.props.collapse, (f) => M(!!f));
|
|
351
|
-
{
|
|
352
|
-
const f = (T) => {
|
|
353
|
-
c.value[T.index] = T;
|
|
354
|
-
}, p = (T) => {
|
|
355
|
-
delete c.value[T.index];
|
|
356
|
-
};
|
|
357
|
-
We(`subMenu:${o.uid}`, {
|
|
358
|
-
addSubMenu: f,
|
|
359
|
-
removeSubMenu: p,
|
|
360
|
-
handleMouseleave: te,
|
|
361
|
-
mouseInChild: k,
|
|
362
|
-
level: d.level + 1
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
return e({
|
|
366
|
-
opened: z
|
|
367
|
-
}), fe(() => {
|
|
368
|
-
s.addSubMenu(K), d.addSubMenu(K);
|
|
369
|
-
}), $e(() => {
|
|
370
|
-
d.removeSubMenu(K), s.removeSubMenu(K);
|
|
371
|
-
}), () => {
|
|
372
|
-
var f;
|
|
373
|
-
const p = [
|
|
374
|
-
(f = t.title) == null ? void 0 : f.call(t),
|
|
375
|
-
J(Ue, {
|
|
376
|
-
class: r.e("icon-arrow"),
|
|
377
|
-
style: {
|
|
378
|
-
transform: z.value ? n.expandCloseIcon && n.expandOpenIcon || n.collapseCloseIcon && n.collapseOpenIcon && s.props.collapse ? "none" : "rotateZ(180deg)" : "none"
|
|
379
|
-
}
|
|
380
|
-
}, {
|
|
381
|
-
default: () => ye(S.value) ? J(o.appContext.components[S.value]) : J(S.value)
|
|
382
|
-
})
|
|
383
|
-
], T = s.isMenuPopup ? J(Ze, {
|
|
384
|
-
ref: V,
|
|
385
|
-
visible: z.value,
|
|
386
|
-
effect: "light",
|
|
387
|
-
pure: !0,
|
|
388
|
-
offset: me.value,
|
|
389
|
-
showArrow: !1,
|
|
390
|
-
persistent: !0,
|
|
391
|
-
popperClass: se.value,
|
|
392
|
-
placement: I.value,
|
|
393
|
-
teleported: Q.value,
|
|
394
|
-
fallbackPlacements: F.value,
|
|
395
|
-
transition: Y.value,
|
|
396
|
-
gpuAcceleration: !1
|
|
397
|
-
}, {
|
|
398
|
-
content: () => {
|
|
399
|
-
var W;
|
|
400
|
-
return J("div", {
|
|
401
|
-
class: [
|
|
402
|
-
a.m(H.value),
|
|
403
|
-
a.m("popup-container"),
|
|
404
|
-
se.value
|
|
405
|
-
],
|
|
406
|
-
onMouseenter: (A) => D(A, 100),
|
|
407
|
-
onMouseleave: () => te(!0),
|
|
408
|
-
onFocus: (A) => D(A, 100)
|
|
409
|
-
}, [
|
|
410
|
-
J("ul", {
|
|
411
|
-
class: [
|
|
412
|
-
a.b(),
|
|
413
|
-
a.m("popup"),
|
|
414
|
-
a.m(`popup-${I.value}`)
|
|
415
|
-
],
|
|
416
|
-
style: q.value
|
|
417
|
-
}, [(W = t.default) == null ? void 0 : W.call(t)])
|
|
418
|
-
]);
|
|
419
|
-
},
|
|
420
|
-
default: () => J("div", {
|
|
421
|
-
class: r.e("title"),
|
|
422
|
-
onClick: Z
|
|
423
|
-
}, p)
|
|
424
|
-
}) : J(X, {}, [
|
|
425
|
-
J("div", {
|
|
426
|
-
class: r.e("title"),
|
|
427
|
-
ref: x,
|
|
428
|
-
onClick: Z
|
|
429
|
-
}, p),
|
|
430
|
-
J(pn, {}, {
|
|
431
|
-
default: () => {
|
|
432
|
-
var W;
|
|
433
|
-
return ve(J("ul", {
|
|
434
|
-
role: "menu",
|
|
435
|
-
class: [a.b(), a.m("inline")],
|
|
436
|
-
style: q.value
|
|
437
|
-
}, [(W = t.default) == null ? void 0 : W.call(t)]), [[Te, z.value]]);
|
|
438
|
-
}
|
|
439
|
-
})
|
|
440
|
-
]);
|
|
441
|
-
return J("li", {
|
|
442
|
-
class: [
|
|
443
|
-
r.b(),
|
|
444
|
-
r.is("active", L.value),
|
|
445
|
-
r.is("opened", z.value),
|
|
446
|
-
r.is("disabled", n.disabled)
|
|
447
|
-
],
|
|
448
|
-
role: "menuitem",
|
|
449
|
-
ariaHaspopup: !0,
|
|
450
|
-
ariaExpanded: z.value,
|
|
451
|
-
onMouseenter: D,
|
|
452
|
-
onMouseleave: () => te(),
|
|
453
|
-
onFocus: D
|
|
454
|
-
}, [T]);
|
|
455
|
-
};
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
|
-
const Rn = Re({
|
|
459
|
-
mode: {
|
|
460
|
-
type: String,
|
|
461
|
-
values: ["horizontal", "vertical"],
|
|
462
|
-
default: "vertical"
|
|
463
|
-
},
|
|
464
|
-
defaultActive: {
|
|
465
|
-
type: String,
|
|
466
|
-
default: ""
|
|
467
|
-
},
|
|
468
|
-
defaultOpeneds: {
|
|
469
|
-
type: Oe(Array),
|
|
470
|
-
default: () => $t([])
|
|
471
|
-
},
|
|
472
|
-
uniqueOpened: Boolean,
|
|
473
|
-
router: Boolean,
|
|
474
|
-
menuTrigger: {
|
|
475
|
-
type: String,
|
|
476
|
-
values: ["hover", "click"],
|
|
477
|
-
default: "hover"
|
|
478
|
-
},
|
|
479
|
-
collapse: Boolean,
|
|
480
|
-
backgroundColor: String,
|
|
481
|
-
textColor: String,
|
|
482
|
-
activeTextColor: String,
|
|
483
|
-
closeOnClickOutside: Boolean,
|
|
484
|
-
collapseTransition: {
|
|
485
|
-
type: Boolean,
|
|
486
|
-
default: !0
|
|
487
|
-
},
|
|
488
|
-
ellipsis: {
|
|
489
|
-
type: Boolean,
|
|
490
|
-
default: !0
|
|
491
|
-
},
|
|
492
|
-
popperOffset: {
|
|
493
|
-
type: Number,
|
|
494
|
-
default: 6
|
|
495
|
-
},
|
|
496
|
-
ellipsisIcon: {
|
|
497
|
-
type: _e,
|
|
498
|
-
default: () => Jt
|
|
499
|
-
},
|
|
500
|
-
popperEffect: {
|
|
501
|
-
type: String,
|
|
502
|
-
values: ["dark", "light"],
|
|
503
|
-
default: "dark"
|
|
504
|
-
},
|
|
505
|
-
popperClass: String,
|
|
506
|
-
showTimeout: {
|
|
507
|
-
type: Number,
|
|
508
|
-
default: 300
|
|
509
|
-
},
|
|
510
|
-
hideTimeout: {
|
|
511
|
-
type: Number,
|
|
512
|
-
default: 300
|
|
513
|
-
}
|
|
514
|
-
}), Fe = (n) => Array.isArray(n) && n.every((t) => ye(t)), Nn = {
|
|
515
|
-
close: (n, t) => ye(n) && Fe(t),
|
|
516
|
-
open: (n, t) => ye(n) && Fe(t),
|
|
517
|
-
select: (n, t, e, o) => ye(n) && Fe(t) && jt(e) && (o === void 0 || o instanceof Promise)
|
|
518
|
-
};
|
|
519
|
-
var Vn = O({
|
|
520
|
-
name: "ElMenu",
|
|
521
|
-
props: Rn,
|
|
522
|
-
emits: Nn,
|
|
523
|
-
setup(n, { emit: t, slots: e, expose: o }) {
|
|
524
|
-
const l = ke(), i = l.appContext.config.globalProperties.$router, a = P(), r = le("menu"), s = le("sub-menu"), d = P(-1), u = P(n.defaultOpeneds && !n.collapse ? n.defaultOpeneds.slice(0) : []), c = P(n.defaultActive), v = P({}), k = P({}), x = E(() => n.mode === "horizontal" || n.mode === "vertical" && n.collapse), V = () => {
|
|
525
|
-
const g = c.value && v.value[c.value];
|
|
526
|
-
if (!g || n.mode === "horizontal" || n.collapse)
|
|
527
|
-
return;
|
|
528
|
-
g.indexPath.forEach((M) => {
|
|
529
|
-
const Z = k.value[M];
|
|
530
|
-
Z && I(M, Z.indexPath);
|
|
531
|
-
});
|
|
532
|
-
}, I = (g, w) => {
|
|
533
|
-
u.value.includes(g) || (n.uniqueOpened && (u.value = u.value.filter((M) => w.includes(M))), u.value.push(g), t("open", g, w));
|
|
534
|
-
}, S = (g) => {
|
|
535
|
-
const w = u.value.indexOf(g);
|
|
536
|
-
w !== -1 && u.value.splice(w, 1);
|
|
537
|
-
}, B = (g, w) => {
|
|
538
|
-
S(g), t("close", g, w);
|
|
539
|
-
}, Q = ({
|
|
540
|
-
index: g,
|
|
541
|
-
indexPath: w
|
|
542
|
-
}) => {
|
|
543
|
-
u.value.includes(g) ? B(g, w) : I(g, w);
|
|
544
|
-
}, Y = (g) => {
|
|
545
|
-
(n.mode === "horizontal" || n.collapse) && (u.value = []);
|
|
546
|
-
const { index: w, indexPath: M } = g;
|
|
547
|
-
if (!(it(w) || it(M)))
|
|
548
|
-
if (n.router && i) {
|
|
549
|
-
const Z = g.route || w, D = i.push(Z).then((te) => (te || (c.value = w), te));
|
|
550
|
-
t("select", w, M, { index: w, indexPath: M, route: Z }, D);
|
|
551
|
-
} else
|
|
552
|
-
c.value = w, t("select", w, M, { index: w, indexPath: M });
|
|
553
|
-
}, F = (g) => {
|
|
554
|
-
const w = v.value, M = w[g] || c.value && w[c.value] || w[n.defaultActive];
|
|
555
|
-
M ? c.value = M.index : c.value = g;
|
|
556
|
-
}, z = (g) => {
|
|
557
|
-
const w = getComputedStyle(g), M = Number.parseInt(w.marginLeft, 10), Z = Number.parseInt(w.marginRight, 10);
|
|
558
|
-
return g.offsetWidth + M + Z || 0;
|
|
559
|
-
}, L = () => {
|
|
560
|
-
var g, w;
|
|
561
|
-
if (!a.value)
|
|
562
|
-
return -1;
|
|
563
|
-
const M = Array.from((w = (g = a.value) == null ? void 0 : g.childNodes) != null ? w : []).filter((A) => A.nodeName !== "#comment" && (A.nodeName !== "#text" || A.nodeValue)), Z = 64, D = getComputedStyle(a.value), te = Number.parseInt(D.paddingLeft, 10), f = Number.parseInt(D.paddingRight, 10), p = a.value.clientWidth - te - f;
|
|
564
|
-
let T = 0, W = 0;
|
|
565
|
-
return M.forEach((A, N) => {
|
|
566
|
-
T += z(A), T <= p - Z && (W = N + 1);
|
|
567
|
-
}), W === M.length ? -1 : W;
|
|
568
|
-
}, H = (g) => k.value[g].indexPath, K = (g, w = 33.34) => {
|
|
569
|
-
let M;
|
|
570
|
-
return () => {
|
|
571
|
-
M && clearTimeout(M), M = setTimeout(() => {
|
|
572
|
-
g();
|
|
573
|
-
}, w);
|
|
574
|
-
};
|
|
575
|
-
};
|
|
576
|
-
let q = !0;
|
|
577
|
-
const me = () => {
|
|
578
|
-
if (d.value === L())
|
|
579
|
-
return;
|
|
580
|
-
const g = () => {
|
|
581
|
-
d.value = -1, De(() => {
|
|
582
|
-
d.value = L();
|
|
583
|
-
});
|
|
584
|
-
};
|
|
585
|
-
q ? g() : K(g)(), q = !1;
|
|
586
|
-
};
|
|
587
|
-
oe(() => n.defaultActive, (g) => {
|
|
588
|
-
v.value[g] || (c.value = ""), F(g);
|
|
589
|
-
}), oe(() => n.collapse, (g) => {
|
|
590
|
-
g && (u.value = []);
|
|
591
|
-
}), oe(v.value, V);
|
|
592
|
-
let se;
|
|
593
|
-
tt(() => {
|
|
594
|
-
n.mode === "horizontal" && n.ellipsis ? se = Zt(a, me).stop : se == null || se();
|
|
595
|
-
});
|
|
596
|
-
const pe = P(!1);
|
|
597
|
-
{
|
|
598
|
-
const g = (D) => {
|
|
599
|
-
k.value[D.index] = D;
|
|
600
|
-
}, w = (D) => {
|
|
601
|
-
delete k.value[D.index];
|
|
602
|
-
};
|
|
603
|
-
We("rootMenu", Ye({
|
|
604
|
-
props: n,
|
|
605
|
-
openedMenus: u,
|
|
606
|
-
items: v,
|
|
607
|
-
subMenus: k,
|
|
608
|
-
activeIndex: c,
|
|
609
|
-
isMenuPopup: x,
|
|
610
|
-
addMenuItem: (D) => {
|
|
611
|
-
v.value[D.index] = D;
|
|
612
|
-
},
|
|
613
|
-
removeMenuItem: (D) => {
|
|
614
|
-
delete v.value[D.index];
|
|
615
|
-
},
|
|
616
|
-
addSubMenu: g,
|
|
617
|
-
removeSubMenu: w,
|
|
618
|
-
openMenu: I,
|
|
619
|
-
closeMenu: B,
|
|
620
|
-
handleMenuItemClick: Y,
|
|
621
|
-
handleSubMenuClick: Q
|
|
622
|
-
})), We(`subMenu:${l.uid}`, {
|
|
623
|
-
addSubMenu: g,
|
|
624
|
-
removeSubMenu: w,
|
|
625
|
-
mouseInChild: pe,
|
|
626
|
-
level: 0
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
return fe(() => {
|
|
630
|
-
n.mode === "horizontal" && new Sn(l.vnode.el, r.namespace.value);
|
|
631
|
-
}), o({
|
|
632
|
-
open: (w) => {
|
|
633
|
-
const { indexPath: M } = k.value[w];
|
|
634
|
-
M.forEach((Z) => I(Z, M));
|
|
635
|
-
},
|
|
636
|
-
close: S,
|
|
637
|
-
handleResize: me
|
|
638
|
-
}), () => {
|
|
639
|
-
var g, w;
|
|
640
|
-
let M = (w = (g = e.default) == null ? void 0 : g.call(e)) != null ? w : [];
|
|
641
|
-
const Z = [];
|
|
642
|
-
if (n.mode === "horizontal" && a.value) {
|
|
643
|
-
const p = Qt(M), T = d.value === -1 ? p : p.slice(0, d.value), W = d.value === -1 ? [] : p.slice(d.value);
|
|
644
|
-
W != null && W.length && n.ellipsis && (M = T, Z.push(J(lt, {
|
|
645
|
-
index: "sub-menu-more",
|
|
646
|
-
class: s.e("hide-arrow"),
|
|
647
|
-
popperOffset: n.popperOffset
|
|
648
|
-
}, {
|
|
649
|
-
title: () => J(Ue, {
|
|
650
|
-
class: s.e("icon-more")
|
|
651
|
-
}, {
|
|
652
|
-
default: () => J(n.ellipsisIcon)
|
|
653
|
-
}),
|
|
654
|
-
default: () => W
|
|
655
|
-
})));
|
|
656
|
-
}
|
|
657
|
-
const D = Mt(n, 0), te = n.closeOnClickOutside ? [
|
|
658
|
-
[
|
|
659
|
-
Yt,
|
|
660
|
-
() => {
|
|
661
|
-
u.value.length && (pe.value || (u.value.forEach((p) => t("close", p, H(p))), u.value = []));
|
|
662
|
-
}
|
|
663
|
-
]
|
|
664
|
-
] : [], f = ve(J("ul", {
|
|
665
|
-
key: String(n.collapse),
|
|
666
|
-
role: "menubar",
|
|
667
|
-
ref: a,
|
|
668
|
-
style: D.value,
|
|
669
|
-
class: {
|
|
670
|
-
[r.b()]: !0,
|
|
671
|
-
[r.m(n.mode)]: !0,
|
|
672
|
-
[r.m("collapse")]: n.collapse
|
|
673
|
-
}
|
|
674
|
-
}, [...M, ...Z]), te);
|
|
675
|
-
return n.collapseTransition && n.mode === "vertical" ? J(Tn, () => f) : f;
|
|
676
|
-
};
|
|
677
|
-
}
|
|
678
|
-
});
|
|
679
|
-
const Bn = Re({
|
|
680
|
-
index: {
|
|
681
|
-
type: Oe([String, null]),
|
|
682
|
-
default: null
|
|
683
|
-
},
|
|
684
|
-
route: {
|
|
685
|
-
type: Oe([String, Object])
|
|
686
|
-
},
|
|
687
|
-
disabled: Boolean
|
|
688
|
-
}), Ln = {
|
|
689
|
-
click: (n) => ye(n.index) && Array.isArray(n.indexPath)
|
|
690
|
-
}, Xe = "ElMenuItem", On = O({
|
|
691
|
-
name: Xe,
|
|
692
|
-
components: {
|
|
693
|
-
ElTooltip: Ze
|
|
694
|
-
},
|
|
695
|
-
props: Bn,
|
|
696
|
-
emits: Ln,
|
|
697
|
-
setup(n, { emit: t }) {
|
|
698
|
-
const e = ke(), o = Ee("rootMenu"), l = le("menu"), i = le("menu-item");
|
|
699
|
-
o || ze(Xe, "can not inject root menu");
|
|
700
|
-
const { parentMenu: a, indexPath: r } = St(e, an(n, "index")), s = Ee(`subMenu:${a.value.uid}`);
|
|
701
|
-
s || ze(Xe, "can not inject sub menu");
|
|
702
|
-
const d = E(() => n.index === o.activeIndex), u = Ye({
|
|
703
|
-
index: n.index,
|
|
704
|
-
indexPath: r,
|
|
705
|
-
active: d
|
|
706
|
-
}), c = () => {
|
|
707
|
-
n.disabled || (o.handleMenuItemClick({
|
|
708
|
-
index: n.index,
|
|
709
|
-
indexPath: r.value,
|
|
710
|
-
route: n.route
|
|
711
|
-
}), t("click", u));
|
|
712
|
-
};
|
|
713
|
-
return fe(() => {
|
|
714
|
-
s.addSubMenu(u), o.addMenuItem(u);
|
|
715
|
-
}), $e(() => {
|
|
716
|
-
s.removeSubMenu(u), o.removeMenuItem(u);
|
|
717
|
-
}), {
|
|
718
|
-
parentMenu: a,
|
|
719
|
-
rootMenu: o,
|
|
720
|
-
active: d,
|
|
721
|
-
nsMenu: l,
|
|
722
|
-
nsMenuItem: i,
|
|
723
|
-
handleClick: c
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
});
|
|
727
|
-
function zn(n, t, e, o, l, i) {
|
|
728
|
-
const a = Ie("el-tooltip");
|
|
729
|
-
return m(), _("li", {
|
|
730
|
-
class: G([
|
|
731
|
-
n.nsMenuItem.b(),
|
|
732
|
-
n.nsMenuItem.is("active", n.active),
|
|
733
|
-
n.nsMenuItem.is("disabled", n.disabled)
|
|
734
|
-
]),
|
|
735
|
-
role: "menuitem",
|
|
736
|
-
tabindex: "-1",
|
|
737
|
-
onClick: t[0] || (t[0] = (...r) => n.handleClick && n.handleClick(...r))
|
|
738
|
-
}, [
|
|
739
|
-
n.parentMenu.type.name === "ElMenu" && n.rootMenu.props.collapse && n.$slots.title ? (m(), R(a, {
|
|
740
|
-
key: 0,
|
|
741
|
-
effect: n.rootMenu.props.popperEffect,
|
|
742
|
-
placement: "right",
|
|
743
|
-
"fallback-placements": ["left"],
|
|
744
|
-
persistent: ""
|
|
745
|
-
}, {
|
|
746
|
-
content: y(() => [
|
|
747
|
-
ee(n.$slots, "title")
|
|
748
|
-
]),
|
|
749
|
-
default: y(() => [
|
|
750
|
-
C("div", {
|
|
751
|
-
class: G(n.nsMenu.be("tooltip", "trigger"))
|
|
752
|
-
}, [
|
|
753
|
-
ee(n.$slots, "default")
|
|
754
|
-
], 2)
|
|
755
|
-
]),
|
|
756
|
-
_: 3
|
|
757
|
-
}, 8, ["effect"])) : (m(), _(X, { key: 1 }, [
|
|
758
|
-
ee(n.$slots, "default"),
|
|
759
|
-
ee(n.$slots, "title")
|
|
760
|
-
], 64))
|
|
761
|
-
], 2);
|
|
762
|
-
}
|
|
763
|
-
var Et = /* @__PURE__ */ Ne(On, [["render", zn], ["__file", "menu-item.vue"]]);
|
|
764
|
-
const Wn = {
|
|
765
|
-
title: String
|
|
766
|
-
}, Dn = "ElMenuItemGroup", Un = O({
|
|
767
|
-
name: Dn,
|
|
768
|
-
props: Wn,
|
|
769
|
-
setup() {
|
|
770
|
-
return {
|
|
771
|
-
ns: le("menu-item-group")
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
});
|
|
775
|
-
function Gn(n, t, e, o, l, i) {
|
|
776
|
-
return m(), _("li", {
|
|
777
|
-
class: G(n.ns.b())
|
|
778
|
-
}, [
|
|
779
|
-
C("div", {
|
|
780
|
-
class: G(n.ns.e("title"))
|
|
781
|
-
}, [
|
|
782
|
-
n.$slots.title ? ee(n.$slots, "title", { key: 1 }) : (m(), _(X, { key: 0 }, [
|
|
783
|
-
$(de(n.title), 1)
|
|
784
|
-
], 64))
|
|
785
|
-
], 2),
|
|
786
|
-
C("ul", null, [
|
|
787
|
-
ee(n.$slots, "default")
|
|
788
|
-
])
|
|
789
|
-
], 2);
|
|
790
|
-
}
|
|
791
|
-
var Tt = /* @__PURE__ */ Ne(Un, [["render", Gn], ["__file", "menu-item-group.vue"]]);
|
|
792
|
-
const At = vt(Vn, {
|
|
793
|
-
MenuItem: Et,
|
|
794
|
-
MenuItemGroup: Tt,
|
|
795
|
-
SubMenu: lt
|
|
796
|
-
}), Pt = Ge(Et);
|
|
797
|
-
Ge(Tt);
|
|
798
|
-
const Zn = Ge(lt), Qn = /* @__PURE__ */ O({
|
|
799
|
-
__name: "index",
|
|
800
|
-
props: {
|
|
801
|
-
isActive: {
|
|
802
|
-
required: !0,
|
|
803
|
-
type: Boolean,
|
|
804
|
-
default: !1
|
|
805
|
-
}
|
|
806
|
-
},
|
|
807
|
-
emits: ["toggleClick"],
|
|
808
|
-
setup(n, { emit: t }) {
|
|
809
|
-
const e = t;
|
|
810
|
-
function o() {
|
|
811
|
-
e("toggleClick");
|
|
812
|
-
}
|
|
813
|
-
return (l, i) => {
|
|
814
|
-
const a = Ce;
|
|
815
|
-
return m(), _("div", {
|
|
816
|
-
class: "px-[15px] flex items-center justify-center color-[var(--el-text-color-regular)]",
|
|
817
|
-
onClick: o
|
|
818
|
-
}, [
|
|
819
|
-
b(a, {
|
|
820
|
-
class: G(["hamburger", { "is-active": n.isActive }]),
|
|
821
|
-
"icon-class": "shrink"
|
|
822
|
-
}, null, 8, ["class"])
|
|
823
|
-
]);
|
|
824
|
-
};
|
|
825
|
-
}
|
|
826
|
-
}), Rt = /* @__PURE__ */ j(Qn, [["__scopeId", "data-v-49d8a6fe"]]), Yn = /* @__PURE__ */ O({
|
|
827
|
-
__name: "index",
|
|
828
|
-
setup(n) {
|
|
829
|
-
const t = ae(), e = P([
|
|
830
|
-
{ label: "默认", value: "default" },
|
|
831
|
-
{ label: "大型", value: "large" },
|
|
832
|
-
{ label: "小型", value: "small" }
|
|
833
|
-
]);
|
|
834
|
-
function o(l) {
|
|
835
|
-
t.changeSize(l), ht.success("切换布局大小成功");
|
|
836
|
-
}
|
|
837
|
-
return (l, i) => {
|
|
838
|
-
const a = Ce, r = xt, s = wt, d = Ct;
|
|
839
|
-
return m(), R(d, {
|
|
840
|
-
trigger: "click",
|
|
841
|
-
onCommand: o
|
|
842
|
-
}, {
|
|
843
|
-
dropdown: y(() => [
|
|
844
|
-
b(s, null, {
|
|
845
|
-
default: y(() => [
|
|
846
|
-
(m(!0), _(X, null, ge(h(e), (u) => (m(), R(r, {
|
|
847
|
-
key: u.value,
|
|
848
|
-
disabled: h(t).size == u.value,
|
|
849
|
-
command: u.value
|
|
850
|
-
}, {
|
|
851
|
-
default: y(() => [
|
|
852
|
-
$(de(u.label), 1)
|
|
853
|
-
]),
|
|
854
|
-
_: 2
|
|
855
|
-
}, 1032, ["disabled", "command"]))), 128))
|
|
856
|
-
]),
|
|
857
|
-
_: 1
|
|
858
|
-
})
|
|
859
|
-
]),
|
|
860
|
-
default: y(() => [
|
|
861
|
-
C("div", null, [
|
|
862
|
-
b(a, { "icon-class": "size" })
|
|
863
|
-
])
|
|
864
|
-
]),
|
|
865
|
-
_: 1
|
|
866
|
-
});
|
|
867
|
-
};
|
|
868
|
-
}
|
|
869
|
-
}), $n = {
|
|
870
|
-
key: 0,
|
|
871
|
-
class: "setting-container"
|
|
872
|
-
}, Jn = { class: "avatar-container" }, jn = ["src"], Hn = ["onClick"], Kn = /* @__PURE__ */ O({
|
|
873
|
-
__name: "NavRight",
|
|
874
|
-
setup(n) {
|
|
875
|
-
const t = ae(), e = Qe(), o = be(), l = Je(), { device: i } = ot(t), a = P(!1), r = P(!1), s = P(!1), d = P([]), u = Ye([
|
|
876
|
-
{
|
|
877
|
-
label: "用户名",
|
|
878
|
-
prop: "loginName",
|
|
879
|
-
width: "100",
|
|
880
|
-
sortable: !0,
|
|
881
|
-
isColumn: !0
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
label: "用户昵称",
|
|
885
|
-
prop: "nickName",
|
|
886
|
-
width: "100",
|
|
887
|
-
isColumn: !0
|
|
888
|
-
},
|
|
889
|
-
{
|
|
890
|
-
label: "手机号",
|
|
891
|
-
prop: "mobilePhone",
|
|
892
|
-
width: "180",
|
|
893
|
-
isColumn: !0,
|
|
894
|
-
sortable: !0
|
|
895
|
-
},
|
|
896
|
-
{
|
|
897
|
-
label: "邮箱",
|
|
898
|
-
prop: "email",
|
|
899
|
-
width: "180",
|
|
900
|
-
isColumn: !0,
|
|
901
|
-
sortable: !0
|
|
902
|
-
},
|
|
903
|
-
{
|
|
904
|
-
label: "查看/隐藏",
|
|
905
|
-
width: "100",
|
|
906
|
-
slotName: "encryption",
|
|
907
|
-
columnType: "slot",
|
|
908
|
-
isColumn: !0
|
|
909
|
-
},
|
|
910
|
-
{
|
|
911
|
-
label: "操作",
|
|
912
|
-
width: "100",
|
|
913
|
-
slotName: "operation",
|
|
914
|
-
columnType: "slot",
|
|
915
|
-
fixed: "right",
|
|
916
|
-
isColumn: !0
|
|
917
|
-
}
|
|
918
|
-
]), { isFullscreen: c, toggle: v } = Ht();
|
|
919
|
-
function k(S) {
|
|
920
|
-
r.value = S;
|
|
921
|
-
}
|
|
922
|
-
function x() {
|
|
923
|
-
a.value = !0, s.value = !0, Kt().then(({ data: S }) => {
|
|
924
|
-
console.log(S), s.value = !1, d.value = S.results;
|
|
925
|
-
});
|
|
926
|
-
}
|
|
927
|
-
function V(S) {
|
|
928
|
-
rt.confirm("确定切换用户身份吗?", "提示", {
|
|
929
|
-
confirmButtonText: "确定",
|
|
930
|
-
cancelButtonText: "取消",
|
|
931
|
-
type: "warning"
|
|
932
|
-
}).then(() => {
|
|
933
|
-
console.log(be()), Ft(S.userId).then(async (B) => {
|
|
934
|
-
if (B.status === 200) {
|
|
935
|
-
be().user.roleCodes = [], be().user.permCodes = [];
|
|
936
|
-
const { roleCodes: Q } = await be().getRoleInfo(), Y = await be().getUserInfo();
|
|
937
|
-
await Xt().generateRoutes(Q, Y), ht({
|
|
938
|
-
message: "切换成功",
|
|
939
|
-
type: "success"
|
|
940
|
-
}), a.value = !1;
|
|
941
|
-
}
|
|
942
|
-
});
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
function I() {
|
|
946
|
-
rt.confirm("确定注销并退出系统吗?", "提示", {
|
|
947
|
-
confirmButtonText: "确定",
|
|
948
|
-
cancelButtonText: "取消",
|
|
949
|
-
type: "warning"
|
|
950
|
-
}).then(() => {
|
|
951
|
-
o.logout().then(() => {
|
|
952
|
-
e.delAllViews();
|
|
953
|
-
}).then(() => {
|
|
954
|
-
l.push("/login");
|
|
955
|
-
});
|
|
956
|
-
}).catch(() => {
|
|
957
|
-
});
|
|
958
|
-
}
|
|
959
|
-
return (S, B) => {
|
|
960
|
-
const Q = Ce, Y = Yn, F = Ze, z = dn, L = xt, H = Ie("router-link"), K = wt, q = Ct, me = qt, se = en, pe = sn("hasPerm");
|
|
961
|
-
return m(), _(X, null, [
|
|
962
|
-
h(i) !== "mobile" ? (m(), _("div", $n, [
|
|
963
|
-
C("div", {
|
|
964
|
-
class: "setting-item",
|
|
965
|
-
onClick: B[0] || (B[0] = //@ts-ignore
|
|
966
|
-
(...g) => h(v) && h(v)(...g))
|
|
967
|
-
}, [
|
|
968
|
-
b(Q, {
|
|
969
|
-
"icon-class": h(c) ? "exit-fullscreen" : "fullscreen"
|
|
970
|
-
}, null, 8, ["icon-class"])
|
|
971
|
-
]),
|
|
972
|
-
b(F, {
|
|
973
|
-
content: "布局大小",
|
|
974
|
-
effect: "dark",
|
|
975
|
-
placement: "bottom"
|
|
976
|
-
}, {
|
|
977
|
-
default: y(() => [
|
|
978
|
-
b(Y, { class: "setting-item" })
|
|
979
|
-
]),
|
|
980
|
-
_: 1
|
|
981
|
-
})
|
|
982
|
-
])) : U("", !0),
|
|
983
|
-
b(q, { trigger: "click" }, {
|
|
984
|
-
dropdown: y(() => [
|
|
985
|
-
b(K, null, {
|
|
986
|
-
default: y(() => [
|
|
987
|
-
b(H, { to: "/" }, {
|
|
988
|
-
default: y(() => [
|
|
989
|
-
b(L, null, {
|
|
990
|
-
default: y(() => [
|
|
991
|
-
$("首页")
|
|
992
|
-
]),
|
|
993
|
-
_: 1
|
|
994
|
-
})
|
|
995
|
-
]),
|
|
996
|
-
_: 1
|
|
997
|
-
}),
|
|
998
|
-
b(L, null, {
|
|
999
|
-
default: y(() => [
|
|
1000
|
-
b(H, { to: "/my/profile" }, {
|
|
1001
|
-
default: y(() => [
|
|
1002
|
-
$("个人中心")
|
|
1003
|
-
]),
|
|
1004
|
-
_: 1
|
|
1005
|
-
})
|
|
1006
|
-
]),
|
|
1007
|
-
_: 1
|
|
1008
|
-
}),
|
|
1009
|
-
b(L, {
|
|
1010
|
-
onClick: B[1] || (B[1] = (g) => r.value = !0)
|
|
1011
|
-
}, {
|
|
1012
|
-
default: y(() => [
|
|
1013
|
-
$(" 修改密码 ")
|
|
1014
|
-
]),
|
|
1015
|
-
_: 1
|
|
1016
|
-
}),
|
|
1017
|
-
b(L, { onClick: x }, {
|
|
1018
|
-
default: y(() => [
|
|
1019
|
-
$("切换身份")
|
|
1020
|
-
]),
|
|
1021
|
-
_: 1
|
|
1022
|
-
}),
|
|
1023
|
-
b(L, {
|
|
1024
|
-
divided: "",
|
|
1025
|
-
onClick: I
|
|
1026
|
-
}, {
|
|
1027
|
-
default: y(() => [
|
|
1028
|
-
$("退出登录")
|
|
1029
|
-
]),
|
|
1030
|
-
_: 1
|
|
1031
|
-
})
|
|
1032
|
-
]),
|
|
1033
|
-
_: 1
|
|
1034
|
-
})
|
|
1035
|
-
]),
|
|
1036
|
-
default: y(() => [
|
|
1037
|
-
C("div", Jn, [
|
|
1038
|
-
C("img", {
|
|
1039
|
-
src: h(o).user.avatar
|
|
1040
|
-
}, null, 8, jn),
|
|
1041
|
-
b(z, { class: "w-3 h-3" })
|
|
1042
|
-
])
|
|
1043
|
-
]),
|
|
1044
|
-
_: 1
|
|
1045
|
-
}),
|
|
1046
|
-
b(se, {
|
|
1047
|
-
title: "切换身份",
|
|
1048
|
-
modelValue: a.value,
|
|
1049
|
-
"onUpdate:modelValue": B[2] || (B[2] = (g) => a.value = g),
|
|
1050
|
-
width: "700px"
|
|
1051
|
-
}, {
|
|
1052
|
-
default: y(() => [
|
|
1053
|
-
b(me, {
|
|
1054
|
-
class: "table-top",
|
|
1055
|
-
ref: "multipleTableRef",
|
|
1056
|
-
"row-keys": "userId",
|
|
1057
|
-
"list-loading": s.value,
|
|
1058
|
-
"table-data": d.value,
|
|
1059
|
-
"table-label": u
|
|
1060
|
-
}, {
|
|
1061
|
-
operation: y((g) => [
|
|
1062
|
-
ve((m(), _("span", {
|
|
1063
|
-
class: "el-button-color",
|
|
1064
|
-
onClick: (w) => V(g.data.row)
|
|
1065
|
-
}, [
|
|
1066
|
-
$(" 切换 ")
|
|
1067
|
-
], 8, Hn)), [
|
|
1068
|
-
[pe, ["rbac:user:switch"]]
|
|
1069
|
-
])
|
|
1070
|
-
]),
|
|
1071
|
-
_: 1
|
|
1072
|
-
}, 8, ["list-loading", "table-data", "table-label"])
|
|
1073
|
-
]),
|
|
1074
|
-
_: 1
|
|
1075
|
-
}, 8, ["modelValue"]),
|
|
1076
|
-
r.value ? (m(), R(mn, {
|
|
1077
|
-
key: 1,
|
|
1078
|
-
"pwd-visible": r.value,
|
|
1079
|
-
onDialogActionChange: k
|
|
1080
|
-
}, null, 8, ["pwd-visible"])) : U("", !0)
|
|
1081
|
-
], 64);
|
|
1082
|
-
};
|
|
1083
|
-
}
|
|
1084
|
-
}), Nt = /* @__PURE__ */ j(Kn, [["__scopeId", "data-v-0c82d9ad"]]);
|
|
1085
|
-
function Fn(n) {
|
|
1086
|
-
for (var t = [], e = 0; e < n.length; ) {
|
|
1087
|
-
var o = n[e];
|
|
1088
|
-
if (o === "*" || o === "+" || o === "?") {
|
|
1089
|
-
t.push({ type: "MODIFIER", index: e, value: n[e++] });
|
|
1090
|
-
continue;
|
|
1091
|
-
}
|
|
1092
|
-
if (o === "\\") {
|
|
1093
|
-
t.push({ type: "ESCAPED_CHAR", index: e++, value: n[e++] });
|
|
1094
|
-
continue;
|
|
1095
|
-
}
|
|
1096
|
-
if (o === "{") {
|
|
1097
|
-
t.push({ type: "OPEN", index: e, value: n[e++] });
|
|
1098
|
-
continue;
|
|
1099
|
-
}
|
|
1100
|
-
if (o === "}") {
|
|
1101
|
-
t.push({ type: "CLOSE", index: e, value: n[e++] });
|
|
1102
|
-
continue;
|
|
1103
|
-
}
|
|
1104
|
-
if (o === ":") {
|
|
1105
|
-
for (var l = "", i = e + 1; i < n.length; ) {
|
|
1106
|
-
var a = n.charCodeAt(i);
|
|
1107
|
-
if (
|
|
1108
|
-
// `0-9`
|
|
1109
|
-
a >= 48 && a <= 57 || // `A-Z`
|
|
1110
|
-
a >= 65 && a <= 90 || // `a-z`
|
|
1111
|
-
a >= 97 && a <= 122 || // `_`
|
|
1112
|
-
a === 95
|
|
1113
|
-
) {
|
|
1114
|
-
l += n[i++];
|
|
1115
|
-
continue;
|
|
1116
|
-
}
|
|
1117
|
-
break;
|
|
1118
|
-
}
|
|
1119
|
-
if (!l)
|
|
1120
|
-
throw new TypeError("Missing parameter name at ".concat(e));
|
|
1121
|
-
t.push({ type: "NAME", index: e, value: l }), e = i;
|
|
1122
|
-
continue;
|
|
1123
|
-
}
|
|
1124
|
-
if (o === "(") {
|
|
1125
|
-
var r = 1, s = "", i = e + 1;
|
|
1126
|
-
if (n[i] === "?")
|
|
1127
|
-
throw new TypeError('Pattern cannot start with "?" at '.concat(i));
|
|
1128
|
-
for (; i < n.length; ) {
|
|
1129
|
-
if (n[i] === "\\") {
|
|
1130
|
-
s += n[i++] + n[i++];
|
|
1131
|
-
continue;
|
|
1132
|
-
}
|
|
1133
|
-
if (n[i] === ")") {
|
|
1134
|
-
if (r--, r === 0) {
|
|
1135
|
-
i++;
|
|
1136
|
-
break;
|
|
1137
|
-
}
|
|
1138
|
-
} else if (n[i] === "(" && (r++, n[i + 1] !== "?"))
|
|
1139
|
-
throw new TypeError("Capturing groups are not allowed at ".concat(i));
|
|
1140
|
-
s += n[i++];
|
|
1141
|
-
}
|
|
1142
|
-
if (r)
|
|
1143
|
-
throw new TypeError("Unbalanced pattern at ".concat(e));
|
|
1144
|
-
if (!s)
|
|
1145
|
-
throw new TypeError("Missing pattern at ".concat(e));
|
|
1146
|
-
t.push({ type: "PATTERN", index: e, value: s }), e = i;
|
|
1147
|
-
continue;
|
|
1148
|
-
}
|
|
1149
|
-
t.push({ type: "CHAR", index: e, value: n[e++] });
|
|
1150
|
-
}
|
|
1151
|
-
return t.push({ type: "END", index: e, value: "" }), t;
|
|
1152
|
-
}
|
|
1153
|
-
function Xn(n, t) {
|
|
1154
|
-
t === void 0 && (t = {});
|
|
1155
|
-
for (var e = Fn(n), o = t.prefixes, l = o === void 0 ? "./" : o, i = "[^".concat(to(t.delimiter || "/#?"), "]+?"), a = [], r = 0, s = 0, d = "", u = function(z) {
|
|
1156
|
-
if (s < e.length && e[s].type === z)
|
|
1157
|
-
return e[s++].value;
|
|
1158
|
-
}, c = function(z) {
|
|
1159
|
-
var L = u(z);
|
|
1160
|
-
if (L !== void 0)
|
|
1161
|
-
return L;
|
|
1162
|
-
var H = e[s], K = H.type, q = H.index;
|
|
1163
|
-
throw new TypeError("Unexpected ".concat(K, " at ").concat(q, ", expected ").concat(z));
|
|
1164
|
-
}, v = function() {
|
|
1165
|
-
for (var z = "", L; L = u("CHAR") || u("ESCAPED_CHAR"); )
|
|
1166
|
-
z += L;
|
|
1167
|
-
return z;
|
|
1168
|
-
}; s < e.length; ) {
|
|
1169
|
-
var k = u("CHAR"), x = u("NAME"), V = u("PATTERN");
|
|
1170
|
-
if (x || V) {
|
|
1171
|
-
var I = k || "";
|
|
1172
|
-
l.indexOf(I) === -1 && (d += I, I = ""), d && (a.push(d), d = ""), a.push({
|
|
1173
|
-
name: x || r++,
|
|
1174
|
-
prefix: I,
|
|
1175
|
-
suffix: "",
|
|
1176
|
-
pattern: V || i,
|
|
1177
|
-
modifier: u("MODIFIER") || ""
|
|
1178
|
-
});
|
|
1179
|
-
continue;
|
|
1180
|
-
}
|
|
1181
|
-
var S = k || u("ESCAPED_CHAR");
|
|
1182
|
-
if (S) {
|
|
1183
|
-
d += S;
|
|
1184
|
-
continue;
|
|
1185
|
-
}
|
|
1186
|
-
d && (a.push(d), d = "");
|
|
1187
|
-
var B = u("OPEN");
|
|
1188
|
-
if (B) {
|
|
1189
|
-
var I = v(), Q = u("NAME") || "", Y = u("PATTERN") || "", F = v();
|
|
1190
|
-
c("CLOSE"), a.push({
|
|
1191
|
-
name: Q || (Y ? r++ : ""),
|
|
1192
|
-
pattern: Q && !Y ? i : Y,
|
|
1193
|
-
prefix: I,
|
|
1194
|
-
suffix: F,
|
|
1195
|
-
modifier: u("MODIFIER") || ""
|
|
1196
|
-
});
|
|
1197
|
-
continue;
|
|
1198
|
-
}
|
|
1199
|
-
c("END");
|
|
1200
|
-
}
|
|
1201
|
-
return a;
|
|
1202
|
-
}
|
|
1203
|
-
function qn(n, t) {
|
|
1204
|
-
return eo(Xn(n, t), t);
|
|
1205
|
-
}
|
|
1206
|
-
function eo(n, t) {
|
|
1207
|
-
t === void 0 && (t = {});
|
|
1208
|
-
var e = no(t), o = t.encode, l = o === void 0 ? function(s) {
|
|
1209
|
-
return s;
|
|
1210
|
-
} : o, i = t.validate, a = i === void 0 ? !0 : i, r = n.map(function(s) {
|
|
1211
|
-
if (typeof s == "object")
|
|
1212
|
-
return new RegExp("^(?:".concat(s.pattern, ")$"), e);
|
|
1213
|
-
});
|
|
1214
|
-
return function(s) {
|
|
1215
|
-
for (var d = "", u = 0; u < n.length; u++) {
|
|
1216
|
-
var c = n[u];
|
|
1217
|
-
if (typeof c == "string") {
|
|
1218
|
-
d += c;
|
|
1219
|
-
continue;
|
|
1220
|
-
}
|
|
1221
|
-
var v = s ? s[c.name] : void 0, k = c.modifier === "?" || c.modifier === "*", x = c.modifier === "*" || c.modifier === "+";
|
|
1222
|
-
if (Array.isArray(v)) {
|
|
1223
|
-
if (!x)
|
|
1224
|
-
throw new TypeError('Expected "'.concat(c.name, '" to not repeat, but got an array'));
|
|
1225
|
-
if (v.length === 0) {
|
|
1226
|
-
if (k)
|
|
1227
|
-
continue;
|
|
1228
|
-
throw new TypeError('Expected "'.concat(c.name, '" to not be empty'));
|
|
1229
|
-
}
|
|
1230
|
-
for (var V = 0; V < v.length; V++) {
|
|
1231
|
-
var I = l(v[V], c);
|
|
1232
|
-
if (a && !r[u].test(I))
|
|
1233
|
-
throw new TypeError('Expected all "'.concat(c.name, '" to match "').concat(c.pattern, '", but got "').concat(I, '"'));
|
|
1234
|
-
d += c.prefix + I + c.suffix;
|
|
1235
|
-
}
|
|
1236
|
-
continue;
|
|
1237
|
-
}
|
|
1238
|
-
if (typeof v == "string" || typeof v == "number") {
|
|
1239
|
-
var I = l(String(v), c);
|
|
1240
|
-
if (a && !r[u].test(I))
|
|
1241
|
-
throw new TypeError('Expected "'.concat(c.name, '" to match "').concat(c.pattern, '", but got "').concat(I, '"'));
|
|
1242
|
-
d += c.prefix + I + c.suffix;
|
|
1243
|
-
continue;
|
|
1244
|
-
}
|
|
1245
|
-
if (!k) {
|
|
1246
|
-
var S = x ? "an array" : "a string";
|
|
1247
|
-
throw new TypeError('Expected "'.concat(c.name, '" to be ').concat(S));
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
return d;
|
|
1251
|
-
};
|
|
1252
|
-
}
|
|
1253
|
-
function to(n) {
|
|
1254
|
-
return n.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
|
|
1255
|
-
}
|
|
1256
|
-
function no(n) {
|
|
1257
|
-
return n && n.sensitive ? "" : "i";
|
|
1258
|
-
}
|
|
1259
|
-
function Ae(n) {
|
|
1260
|
-
return ct.global.te("route." + n) ? ct.global.t("route." + n) : n;
|
|
1261
|
-
}
|
|
1262
|
-
const oo = {
|
|
1263
|
-
key: 0,
|
|
1264
|
-
class: "text-[var(--el-disabled-text-color)]"
|
|
1265
|
-
}, lo = ["onClick"], ao = /* @__PURE__ */ O({
|
|
1266
|
-
__name: "index",
|
|
1267
|
-
setup(n) {
|
|
1268
|
-
const t = je(), e = (r) => {
|
|
1269
|
-
const { params: s } = t;
|
|
1270
|
-
return qn(r)(s);
|
|
1271
|
-
}, o = P([]);
|
|
1272
|
-
function l() {
|
|
1273
|
-
let r = t.matched.filter(
|
|
1274
|
-
(d) => d.meta && d.meta.title
|
|
1275
|
-
);
|
|
1276
|
-
const s = r[0];
|
|
1277
|
-
i(s) || (r = [
|
|
1278
|
-
{ path: "/dashboard", meta: { title: "dashboard" } }
|
|
1279
|
-
].concat(r)), o.value = r.filter((d) => d.meta && d.meta.title && d.meta.breadcrumb != !1);
|
|
1280
|
-
}
|
|
1281
|
-
function i(r) {
|
|
1282
|
-
const s = r && r.name;
|
|
1283
|
-
return s ? s.toString().trim().toLocaleLowerCase() === "Dashboard".toLocaleLowerCase() : !1;
|
|
1284
|
-
}
|
|
1285
|
-
function a(r) {
|
|
1286
|
-
const { redirect: s, path: d } = r;
|
|
1287
|
-
if (s) {
|
|
1288
|
-
ut.push(s).catch((u) => {
|
|
1289
|
-
console.warn(u);
|
|
1290
|
-
});
|
|
1291
|
-
return;
|
|
1292
|
-
}
|
|
1293
|
-
ut.push(e(d)).catch((u) => {
|
|
1294
|
-
console.warn(u);
|
|
1295
|
-
});
|
|
1296
|
-
}
|
|
1297
|
-
return oe(
|
|
1298
|
-
() => t.path,
|
|
1299
|
-
(r) => {
|
|
1300
|
-
r.startsWith("/redirect/") || l();
|
|
1301
|
-
}
|
|
1302
|
-
), rn(() => {
|
|
1303
|
-
l();
|
|
1304
|
-
}), (r, s) => {
|
|
1305
|
-
const d = Cn, u = wn;
|
|
1306
|
-
return m(), R(u, { class: "h-[50px] flex items-center" }, {
|
|
1307
|
-
default: y(() => [
|
|
1308
|
-
b(cn, { name: "breadcrumb" }, {
|
|
1309
|
-
default: y(() => [
|
|
1310
|
-
(m(!0), _(X, null, ge(h(o), (c, v) => (m(), R(d, {
|
|
1311
|
-
key: c.path
|
|
1312
|
-
}, {
|
|
1313
|
-
default: y(() => [
|
|
1314
|
-
c.redirect === "noredirect" || v === h(o).length - 1 ? (m(), _("span", oo, de(h(Ae)(c.meta.title)), 1)) : (m(), _("a", {
|
|
1315
|
-
key: 1,
|
|
1316
|
-
onClick: Me((k) => a(c), ["prevent"])
|
|
1317
|
-
}, de(h(Ae)(c.meta.title)), 9, lo))
|
|
1318
|
-
]),
|
|
1319
|
-
_: 2
|
|
1320
|
-
}, 1024))), 128))
|
|
1321
|
-
]),
|
|
1322
|
-
_: 1
|
|
1323
|
-
})
|
|
1324
|
-
]),
|
|
1325
|
-
_: 1
|
|
1326
|
-
});
|
|
1327
|
-
};
|
|
1328
|
-
}
|
|
1329
|
-
}), so = /* @__PURE__ */ j(ao, [["__scopeId", "data-v-762ee6cf"]]), io = { class: "navbar" }, ro = { class: "flex" }, co = { class: "flex" }, uo = /* @__PURE__ */ O({
|
|
1330
|
-
__name: "index",
|
|
1331
|
-
setup(n) {
|
|
1332
|
-
const t = ae();
|
|
1333
|
-
function e() {
|
|
1334
|
-
t.toggleSidebar();
|
|
1335
|
-
}
|
|
1336
|
-
return (o, l) => {
|
|
1337
|
-
const i = Rt, a = so, r = Nt;
|
|
1338
|
-
return m(), _("div", io, [
|
|
1339
|
-
C("div", ro, [
|
|
1340
|
-
b(i, {
|
|
1341
|
-
"is-active": h(t).sidebar.opened,
|
|
1342
|
-
onToggleClick: e
|
|
1343
|
-
}, null, 8, ["is-active"]),
|
|
1344
|
-
b(a)
|
|
1345
|
-
]),
|
|
1346
|
-
C("div", co, [
|
|
1347
|
-
b(r)
|
|
1348
|
-
])
|
|
1349
|
-
]);
|
|
1350
|
-
};
|
|
1351
|
-
}
|
|
1352
|
-
}), fo = /* @__PURE__ */ j(uo, [["__scopeId", "data-v-5ef96d24"]]), mo = { class: "app-main" }, po = /* @__PURE__ */ O({
|
|
1353
|
-
__name: "AppMain",
|
|
1354
|
-
setup(n) {
|
|
1355
|
-
const t = Qe();
|
|
1356
|
-
return (e, o) => {
|
|
1357
|
-
const l = Ie("router-view");
|
|
1358
|
-
return m(), _("section", mo, [
|
|
1359
|
-
b(l, null, {
|
|
1360
|
-
default: y(({ Component: i, route: a }) => [
|
|
1361
|
-
b(et, {
|
|
1362
|
-
name: "fade-slide",
|
|
1363
|
-
mode: "out-in"
|
|
1364
|
-
}, {
|
|
1365
|
-
default: y(() => [
|
|
1366
|
-
(m(), R(un, {
|
|
1367
|
-
include: h(t).cachedViews
|
|
1368
|
-
}, [
|
|
1369
|
-
(m(), R(bt(i), {
|
|
1370
|
-
key: a.fullPath
|
|
1371
|
-
}))
|
|
1372
|
-
], 1032, ["include"]))
|
|
1373
|
-
]),
|
|
1374
|
-
_: 2
|
|
1375
|
-
}, 1024)
|
|
1376
|
-
]),
|
|
1377
|
-
_: 1
|
|
1378
|
-
})
|
|
1379
|
-
]);
|
|
1380
|
-
};
|
|
1381
|
-
}
|
|
1382
|
-
}), vo = /* @__PURE__ */ j(po, [["__scopeId", "data-v-efceebb1"]]), ho = {
|
|
1383
|
-
viewBox: "0 0 1024 1024",
|
|
1384
|
-
width: "1.2em",
|
|
1385
|
-
height: "1.2em"
|
|
1386
|
-
}, go = /* @__PURE__ */ C("path", {
|
|
1387
|
-
fill: "currentColor",
|
|
1388
|
-
d: "M406.656 706.944L195.84 496.256a32 32 0 1 0-45.248 45.248l256 256l512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
|
|
1389
|
-
}, null, -1), bo = [
|
|
1390
|
-
go
|
|
1391
|
-
];
|
|
1392
|
-
function _o(n, t) {
|
|
1393
|
-
return m(), _("svg", ho, [...bo]);
|
|
1394
|
-
}
|
|
1395
|
-
const yo = { name: "ep-check", render: _o }, ce = (n) => (_t("data-v-96dc8891"), n = n(), yt(), n), xo = { class: "settings-container" }, wo = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("h3", { class: "text-base font-bold" }, "项目配置", -1)), Co = { class: "py-[8px] flex justify-between" }, ko = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("span", { class: "text-xs" }, "开启 Tags-View", -1)), Io = { class: "py-[8px] flex justify-between" }, So = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("span", { class: "text-xs" }, "固定 Header", -1)), Mo = { class: "py-[8px] flex justify-between" }, Eo = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("span", { class: "text-xs" }, "侧边栏 Logo", -1)), To = { class: "w-full space-x-2 flex justify-center py-2" }, Ao = ["onClick"], Po = { class: "layout" }, Ro = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("div", null, null, -1)), No = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("div", null, null, -1)), Vo = [
|
|
1396
|
-
Ro,
|
|
1397
|
-
No
|
|
1398
|
-
], Bo = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("div", null, null, -1)), Lo = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("div", null, null, -1)), Oo = [
|
|
1399
|
-
Bo,
|
|
1400
|
-
Lo
|
|
1401
|
-
], zo = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("div", null, null, -1)), Wo = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("div", null, null, -1)), Do = [
|
|
1402
|
-
zo,
|
|
1403
|
-
Wo
|
|
1404
|
-
], Uo = /* @__PURE__ */ O({
|
|
1405
|
-
__name: "index",
|
|
1406
|
-
setup(n) {
|
|
1407
|
-
const t = je(), e = he(), o = Ve(), l = ae();
|
|
1408
|
-
function i(c, v) {
|
|
1409
|
-
let k = {};
|
|
1410
|
-
function x(I, S) {
|
|
1411
|
-
if (k[I.name] = S, I.children)
|
|
1412
|
-
for (let B = 0; B < I.children.length; B++)
|
|
1413
|
-
x(I.children[B], I);
|
|
1414
|
-
}
|
|
1415
|
-
for (let I = 0; I < c.length; I++)
|
|
1416
|
-
x(c[I], null);
|
|
1417
|
-
let V = k[v];
|
|
1418
|
-
for (; V; ) {
|
|
1419
|
-
if (!k[V.name])
|
|
1420
|
-
return V;
|
|
1421
|
-
V = k[V.name];
|
|
1422
|
-
}
|
|
1423
|
-
return null;
|
|
1424
|
-
}
|
|
1425
|
-
const a = (c) => {
|
|
1426
|
-
const v = i(o.routes, c);
|
|
1427
|
-
l.activeTopMenu !== v.path && l.changeTopActive(v.path);
|
|
1428
|
-
};
|
|
1429
|
-
function r(c) {
|
|
1430
|
-
e.changeSetting({ key: "layout", value: c }), window.document.body.setAttribute("layout", e.layout), c === "mix" && t.name && a(t.name);
|
|
1431
|
-
}
|
|
1432
|
-
const s = P([
|
|
1433
|
-
"#409EFF",
|
|
1434
|
-
"#304156",
|
|
1435
|
-
"#11a983",
|
|
1436
|
-
"#13c2c2",
|
|
1437
|
-
"#6959CD",
|
|
1438
|
-
"#f5222d"
|
|
1439
|
-
]);
|
|
1440
|
-
function d(c) {
|
|
1441
|
-
document.documentElement.style.setProperty("--el-color-primary", c), e.changeSetting({ key: "themeColor", value: c });
|
|
1442
|
-
}
|
|
1443
|
-
const u = E(() => e.themeColor);
|
|
1444
|
-
return fe(() => {
|
|
1445
|
-
window.document.body.setAttribute("layout", e.layout), e.theme == "dark" && document.documentElement.classList.add("dark"), document.documentElement.style.setProperty(
|
|
1446
|
-
"--el-color-primary",
|
|
1447
|
-
e.themeColor
|
|
1448
|
-
);
|
|
1449
|
-
}), (c, v) => {
|
|
1450
|
-
const k = fn, x = tn, V = yo, I = Ze;
|
|
1451
|
-
return m(), _("div", xo, [
|
|
1452
|
-
wo,
|
|
1453
|
-
b(k, null, {
|
|
1454
|
-
default: y(() => [
|
|
1455
|
-
$("界面设置")
|
|
1456
|
-
]),
|
|
1457
|
-
_: 1
|
|
1458
|
-
}),
|
|
1459
|
-
C("div", Co, [
|
|
1460
|
-
ko,
|
|
1461
|
-
b(x, {
|
|
1462
|
-
modelValue: h(e).tagsView,
|
|
1463
|
-
"onUpdate:modelValue": v[0] || (v[0] = (S) => h(e).tagsView = S)
|
|
1464
|
-
}, null, 8, ["modelValue"])
|
|
1465
|
-
]),
|
|
1466
|
-
C("div", Io, [
|
|
1467
|
-
So,
|
|
1468
|
-
b(x, {
|
|
1469
|
-
modelValue: h(e).fixedHeader,
|
|
1470
|
-
"onUpdate:modelValue": v[1] || (v[1] = (S) => h(e).fixedHeader = S)
|
|
1471
|
-
}, null, 8, ["modelValue"])
|
|
1472
|
-
]),
|
|
1473
|
-
C("div", Mo, [
|
|
1474
|
-
Eo,
|
|
1475
|
-
b(x, {
|
|
1476
|
-
modelValue: h(e).sidebarLogo,
|
|
1477
|
-
"onUpdate:modelValue": v[2] || (v[2] = (S) => h(e).sidebarLogo = S)
|
|
1478
|
-
}, null, 8, ["modelValue"])
|
|
1479
|
-
]),
|
|
1480
|
-
b(k, null, {
|
|
1481
|
-
default: y(() => [
|
|
1482
|
-
$("主题颜色")
|
|
1483
|
-
]),
|
|
1484
|
-
_: 1
|
|
1485
|
-
}),
|
|
1486
|
-
C("ul", To, [
|
|
1487
|
-
(m(!0), _(X, null, ge(s.value, (S, B) => (m(), _("li", {
|
|
1488
|
-
key: B,
|
|
1489
|
-
class: "inline-block w-[30px] h-[30px] cursor-pointer theme-wrap",
|
|
1490
|
-
style: nt({ background: S }),
|
|
1491
|
-
onClick: (Q) => d(S)
|
|
1492
|
-
}, [
|
|
1493
|
-
ve(b(V, null, null, 512), [
|
|
1494
|
-
[Te, S === u.value]
|
|
1495
|
-
])
|
|
1496
|
-
], 12, Ao))), 128))
|
|
1497
|
-
]),
|
|
1498
|
-
b(k, null, {
|
|
1499
|
-
default: y(() => [
|
|
1500
|
-
$("导航设置")
|
|
1501
|
-
]),
|
|
1502
|
-
_: 1
|
|
1503
|
-
}),
|
|
1504
|
-
C("ul", Po, [
|
|
1505
|
-
b(I, {
|
|
1506
|
-
content: "左侧模式",
|
|
1507
|
-
placement: "bottom"
|
|
1508
|
-
}, {
|
|
1509
|
-
default: y(() => [
|
|
1510
|
-
C("li", {
|
|
1511
|
-
class: G(
|
|
1512
|
-
"layout-item layout-left " + (h(e).layout === "left" ? "is-active" : "")
|
|
1513
|
-
),
|
|
1514
|
-
onClick: v[3] || (v[3] = (S) => r("left"))
|
|
1515
|
-
}, Vo, 2)
|
|
1516
|
-
]),
|
|
1517
|
-
_: 1
|
|
1518
|
-
}),
|
|
1519
|
-
b(I, {
|
|
1520
|
-
content: "顶部模式",
|
|
1521
|
-
placement: "bottom"
|
|
1522
|
-
}, {
|
|
1523
|
-
default: y(() => [
|
|
1524
|
-
C("li", {
|
|
1525
|
-
class: G(
|
|
1526
|
-
"layout-item layout-top " + (h(e).layout === "top" ? "is-active" : "")
|
|
1527
|
-
),
|
|
1528
|
-
onClick: v[4] || (v[4] = (S) => r("top"))
|
|
1529
|
-
}, Oo, 2)
|
|
1530
|
-
]),
|
|
1531
|
-
_: 1
|
|
1532
|
-
}),
|
|
1533
|
-
b(I, {
|
|
1534
|
-
content: "混合模式",
|
|
1535
|
-
placement: "bottom"
|
|
1536
|
-
}, {
|
|
1537
|
-
default: y(() => [
|
|
1538
|
-
C("li", {
|
|
1539
|
-
class: G(
|
|
1540
|
-
"layout-item layout-mix " + (h(e).layout === "mix" ? "is-active" : "")
|
|
1541
|
-
),
|
|
1542
|
-
onClick: v[5] || (v[5] = (S) => r("mix"))
|
|
1543
|
-
}, Do, 2)
|
|
1544
|
-
]),
|
|
1545
|
-
_: 1
|
|
1546
|
-
})
|
|
1547
|
-
])
|
|
1548
|
-
]);
|
|
1549
|
-
};
|
|
1550
|
-
}
|
|
1551
|
-
}), Go = /* @__PURE__ */ j(Uo, [["__scopeId", "data-v-96dc8891"]]), Zo = {
|
|
1552
|
-
viewBox: "0 0 1024 1024",
|
|
1553
|
-
width: "1.2em",
|
|
1554
|
-
height: "1.2em"
|
|
1555
|
-
}, Qo = /* @__PURE__ */ C("path", {
|
|
1556
|
-
fill: "currentColor",
|
|
1557
|
-
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"
|
|
1558
|
-
}, null, -1), Yo = [
|
|
1559
|
-
Qo
|
|
1560
|
-
];
|
|
1561
|
-
function $o(n, t) {
|
|
1562
|
-
return m(), _("svg", Zo, [...Yo]);
|
|
1563
|
-
}
|
|
1564
|
-
const Vt = { name: "ep-close", render: $o };
|
|
1565
|
-
function ie(n) {
|
|
1566
|
-
if (typeof n != "string")
|
|
1567
|
-
throw new TypeError("Path must be a string. Received " + JSON.stringify(n));
|
|
1568
|
-
}
|
|
1569
|
-
function dt(n, t) {
|
|
1570
|
-
for (var e = "", o = 0, l = -1, i = 0, a, r = 0; r <= n.length; ++r) {
|
|
1571
|
-
if (r < n.length)
|
|
1572
|
-
a = n.charCodeAt(r);
|
|
1573
|
-
else {
|
|
1574
|
-
if (a === 47)
|
|
1575
|
-
break;
|
|
1576
|
-
a = 47;
|
|
1577
|
-
}
|
|
1578
|
-
if (a === 47) {
|
|
1579
|
-
if (!(l === r - 1 || i === 1))
|
|
1580
|
-
if (l !== r - 1 && i === 2) {
|
|
1581
|
-
if (e.length < 2 || o !== 2 || e.charCodeAt(e.length - 1) !== 46 || e.charCodeAt(e.length - 2) !== 46) {
|
|
1582
|
-
if (e.length > 2) {
|
|
1583
|
-
var s = e.lastIndexOf("/");
|
|
1584
|
-
if (s !== e.length - 1) {
|
|
1585
|
-
s === -1 ? (e = "", o = 0) : (e = e.slice(0, s), o = e.length - 1 - e.lastIndexOf("/")), l = r, i = 0;
|
|
1586
|
-
continue;
|
|
1587
|
-
}
|
|
1588
|
-
} else if (e.length === 2 || e.length === 1) {
|
|
1589
|
-
e = "", o = 0, l = r, i = 0;
|
|
1590
|
-
continue;
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
t && (e.length > 0 ? e += "/.." : e = "..", o = 2);
|
|
1594
|
-
} else
|
|
1595
|
-
e.length > 0 ? e += "/" + n.slice(l + 1, r) : e = n.slice(l + 1, r), o = r - l - 1;
|
|
1596
|
-
l = r, i = 0;
|
|
1597
|
-
} else
|
|
1598
|
-
a === 46 && i !== -1 ? ++i : i = -1;
|
|
1599
|
-
}
|
|
1600
|
-
return e;
|
|
1601
|
-
}
|
|
1602
|
-
function Jo(n, t) {
|
|
1603
|
-
var e = t.dir || t.root, o = t.base || (t.name || "") + (t.ext || "");
|
|
1604
|
-
return e ? e === t.root ? e + o : e + n + o : o;
|
|
1605
|
-
}
|
|
1606
|
-
var xe = {
|
|
1607
|
-
// path.resolve([from ...], to)
|
|
1608
|
-
resolve: function() {
|
|
1609
|
-
for (var t = "", e = !1, o, l = arguments.length - 1; l >= -1 && !e; l--) {
|
|
1610
|
-
var i;
|
|
1611
|
-
l >= 0 ? i = arguments[l] : (o === void 0 && (o = process.cwd()), i = o), ie(i), i.length !== 0 && (t = i + "/" + t, e = i.charCodeAt(0) === 47);
|
|
1612
|
-
}
|
|
1613
|
-
return t = dt(t, !e), e ? t.length > 0 ? "/" + t : "/" : t.length > 0 ? t : ".";
|
|
1614
|
-
},
|
|
1615
|
-
normalize: function(t) {
|
|
1616
|
-
if (ie(t), t.length === 0)
|
|
1617
|
-
return ".";
|
|
1618
|
-
var e = t.charCodeAt(0) === 47, o = t.charCodeAt(t.length - 1) === 47;
|
|
1619
|
-
return t = dt(t, !e), t.length === 0 && !e && (t = "."), t.length > 0 && o && (t += "/"), e ? "/" + t : t;
|
|
1620
|
-
},
|
|
1621
|
-
isAbsolute: function(t) {
|
|
1622
|
-
return ie(t), t.length > 0 && t.charCodeAt(0) === 47;
|
|
1623
|
-
},
|
|
1624
|
-
join: function() {
|
|
1625
|
-
if (arguments.length === 0)
|
|
1626
|
-
return ".";
|
|
1627
|
-
for (var t, e = 0; e < arguments.length; ++e) {
|
|
1628
|
-
var o = arguments[e];
|
|
1629
|
-
ie(o), o.length > 0 && (t === void 0 ? t = o : t += "/" + o);
|
|
1630
|
-
}
|
|
1631
|
-
return t === void 0 ? "." : xe.normalize(t);
|
|
1632
|
-
},
|
|
1633
|
-
relative: function(t, e) {
|
|
1634
|
-
if (ie(t), ie(e), t === e || (t = xe.resolve(t), e = xe.resolve(e), t === e))
|
|
1635
|
-
return "";
|
|
1636
|
-
for (var o = 1; o < t.length && t.charCodeAt(o) === 47; ++o)
|
|
1637
|
-
;
|
|
1638
|
-
for (var l = t.length, i = l - o, a = 1; a < e.length && e.charCodeAt(a) === 47; ++a)
|
|
1639
|
-
;
|
|
1640
|
-
for (var r = e.length, s = r - a, d = i < s ? i : s, u = -1, c = 0; c <= d; ++c) {
|
|
1641
|
-
if (c === d) {
|
|
1642
|
-
if (s > d) {
|
|
1643
|
-
if (e.charCodeAt(a + c) === 47)
|
|
1644
|
-
return e.slice(a + c + 1);
|
|
1645
|
-
if (c === 0)
|
|
1646
|
-
return e.slice(a + c);
|
|
1647
|
-
} else
|
|
1648
|
-
i > d && (t.charCodeAt(o + c) === 47 ? u = c : c === 0 && (u = 0));
|
|
1649
|
-
break;
|
|
1650
|
-
}
|
|
1651
|
-
var v = t.charCodeAt(o + c), k = e.charCodeAt(a + c);
|
|
1652
|
-
if (v !== k)
|
|
1653
|
-
break;
|
|
1654
|
-
v === 47 && (u = c);
|
|
1655
|
-
}
|
|
1656
|
-
var x = "";
|
|
1657
|
-
for (c = o + u + 1; c <= l; ++c)
|
|
1658
|
-
(c === l || t.charCodeAt(c) === 47) && (x.length === 0 ? x += ".." : x += "/..");
|
|
1659
|
-
return x.length > 0 ? x + e.slice(a + u) : (a += u, e.charCodeAt(a) === 47 && ++a, e.slice(a));
|
|
1660
|
-
},
|
|
1661
|
-
_makeLong: function(t) {
|
|
1662
|
-
return t;
|
|
1663
|
-
},
|
|
1664
|
-
dirname: function(t) {
|
|
1665
|
-
if (ie(t), t.length === 0)
|
|
1666
|
-
return ".";
|
|
1667
|
-
for (var e = t.charCodeAt(0), o = e === 47, l = -1, i = !0, a = t.length - 1; a >= 1; --a)
|
|
1668
|
-
if (e = t.charCodeAt(a), e === 47) {
|
|
1669
|
-
if (!i) {
|
|
1670
|
-
l = a;
|
|
1671
|
-
break;
|
|
1672
|
-
}
|
|
1673
|
-
} else
|
|
1674
|
-
i = !1;
|
|
1675
|
-
return l === -1 ? o ? "/" : "." : o && l === 1 ? "//" : t.slice(0, l);
|
|
1676
|
-
},
|
|
1677
|
-
basename: function(t, e) {
|
|
1678
|
-
if (e !== void 0 && typeof e != "string")
|
|
1679
|
-
throw new TypeError('"ext" argument must be a string');
|
|
1680
|
-
ie(t);
|
|
1681
|
-
var o = 0, l = -1, i = !0, a;
|
|
1682
|
-
if (e !== void 0 && e.length > 0 && e.length <= t.length) {
|
|
1683
|
-
if (e.length === t.length && e === t)
|
|
1684
|
-
return "";
|
|
1685
|
-
var r = e.length - 1, s = -1;
|
|
1686
|
-
for (a = t.length - 1; a >= 0; --a) {
|
|
1687
|
-
var d = t.charCodeAt(a);
|
|
1688
|
-
if (d === 47) {
|
|
1689
|
-
if (!i) {
|
|
1690
|
-
o = a + 1;
|
|
1691
|
-
break;
|
|
1692
|
-
}
|
|
1693
|
-
} else
|
|
1694
|
-
s === -1 && (i = !1, s = a + 1), r >= 0 && (d === e.charCodeAt(r) ? --r === -1 && (l = a) : (r = -1, l = s));
|
|
1695
|
-
}
|
|
1696
|
-
return o === l ? l = s : l === -1 && (l = t.length), t.slice(o, l);
|
|
1697
|
-
} else {
|
|
1698
|
-
for (a = t.length - 1; a >= 0; --a)
|
|
1699
|
-
if (t.charCodeAt(a) === 47) {
|
|
1700
|
-
if (!i) {
|
|
1701
|
-
o = a + 1;
|
|
1702
|
-
break;
|
|
1703
|
-
}
|
|
1704
|
-
} else
|
|
1705
|
-
l === -1 && (i = !1, l = a + 1);
|
|
1706
|
-
return l === -1 ? "" : t.slice(o, l);
|
|
1707
|
-
}
|
|
1708
|
-
},
|
|
1709
|
-
extname: function(t) {
|
|
1710
|
-
ie(t);
|
|
1711
|
-
for (var e = -1, o = 0, l = -1, i = !0, a = 0, r = t.length - 1; r >= 0; --r) {
|
|
1712
|
-
var s = t.charCodeAt(r);
|
|
1713
|
-
if (s === 47) {
|
|
1714
|
-
if (!i) {
|
|
1715
|
-
o = r + 1;
|
|
1716
|
-
break;
|
|
1717
|
-
}
|
|
1718
|
-
continue;
|
|
1719
|
-
}
|
|
1720
|
-
l === -1 && (i = !1, l = r + 1), s === 46 ? e === -1 ? e = r : a !== 1 && (a = 1) : e !== -1 && (a = -1);
|
|
1721
|
-
}
|
|
1722
|
-
return e === -1 || l === -1 || // We saw a non-dot character immediately before the dot
|
|
1723
|
-
a === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
1724
|
-
a === 1 && e === l - 1 && e === o + 1 ? "" : t.slice(e, l);
|
|
1725
|
-
},
|
|
1726
|
-
format: function(t) {
|
|
1727
|
-
if (t === null || typeof t != "object")
|
|
1728
|
-
throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t);
|
|
1729
|
-
return Jo("/", t);
|
|
1730
|
-
},
|
|
1731
|
-
parse: function(t) {
|
|
1732
|
-
ie(t);
|
|
1733
|
-
var e = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
1734
|
-
if (t.length === 0)
|
|
1735
|
-
return e;
|
|
1736
|
-
var o = t.charCodeAt(0), l = o === 47, i;
|
|
1737
|
-
l ? (e.root = "/", i = 1) : i = 0;
|
|
1738
|
-
for (var a = -1, r = 0, s = -1, d = !0, u = t.length - 1, c = 0; u >= i; --u) {
|
|
1739
|
-
if (o = t.charCodeAt(u), o === 47) {
|
|
1740
|
-
if (!d) {
|
|
1741
|
-
r = u + 1;
|
|
1742
|
-
break;
|
|
1743
|
-
}
|
|
1744
|
-
continue;
|
|
1745
|
-
}
|
|
1746
|
-
s === -1 && (d = !1, s = u + 1), o === 46 ? a === -1 ? a = u : c !== 1 && (c = 1) : a !== -1 && (c = -1);
|
|
1747
|
-
}
|
|
1748
|
-
return a === -1 || s === -1 || // We saw a non-dot character immediately before the dot
|
|
1749
|
-
c === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
1750
|
-
c === 1 && a === s - 1 && a === r + 1 ? s !== -1 && (r === 0 && l ? e.base = e.name = t.slice(1, s) : e.base = e.name = t.slice(r, s)) : (r === 0 && l ? (e.name = t.slice(1, a), e.base = t.slice(1, s)) : (e.name = t.slice(r, a), e.base = t.slice(r, s)), e.ext = t.slice(a, s)), r > 0 ? e.dir = t.slice(0, r - 1) : l && (e.dir = "/"), e;
|
|
1751
|
-
},
|
|
1752
|
-
sep: "/",
|
|
1753
|
-
delimiter: ":",
|
|
1754
|
-
win32: null,
|
|
1755
|
-
posix: null
|
|
1756
|
-
};
|
|
1757
|
-
xe.posix = xe;
|
|
1758
|
-
var Bt = xe;
|
|
1759
|
-
const Lt = /* @__PURE__ */ nn(Bt), jo = /* @__PURE__ */ O({
|
|
1760
|
-
__name: "ScrollPane",
|
|
1761
|
-
emits: ["scroll"],
|
|
1762
|
-
setup(n, { expose: t, emit: e }) {
|
|
1763
|
-
const o = P(4), { proxy: l } = ke(), i = e, a = () => {
|
|
1764
|
-
i("scroll");
|
|
1765
|
-
}, r = Qe(), s = E(
|
|
1766
|
-
() => l == null ? void 0 : l.$refs.scrollContainer.$refs.wrapRef
|
|
1767
|
-
);
|
|
1768
|
-
fe(() => {
|
|
1769
|
-
s.value.addEventListener("scroll", a, !0);
|
|
1770
|
-
}), $e(() => {
|
|
1771
|
-
s.value.removeEventListener("scroll", a);
|
|
1772
|
-
});
|
|
1773
|
-
function d(c) {
|
|
1774
|
-
const v = c.wheelDelta || -c.deltaY * 40;
|
|
1775
|
-
s.value.scrollLeft = s.value.scrollLeft + v / 4;
|
|
1776
|
-
}
|
|
1777
|
-
function u(c) {
|
|
1778
|
-
const k = l.$refs.scrollContainer.$el.offsetWidth, x = s.value;
|
|
1779
|
-
let V = null, I = null;
|
|
1780
|
-
if (r.visitedViews.length > 0 && (V = r.visitedViews[0], I = r.visitedViews[r.visitedViews.length - 1]), V === c)
|
|
1781
|
-
x.scrollLeft = 0;
|
|
1782
|
-
else if (I === c)
|
|
1783
|
-
x.scrollLeft = x.scrollWidth - k;
|
|
1784
|
-
else {
|
|
1785
|
-
const S = document.getElementsByClassName("tags-item"), B = r.visitedViews.findIndex(
|
|
1786
|
-
(L) => L === c
|
|
1787
|
-
);
|
|
1788
|
-
let Q = null, Y = null;
|
|
1789
|
-
for (const L in S)
|
|
1790
|
-
L !== "length" && Object.hasOwnProperty.call(S, L) && (S[L].dataset.path === r.visitedViews[B - 1].path && (Q = S[L]), S[L].dataset.path === r.visitedViews[B + 1].path && (Y = S[L]));
|
|
1791
|
-
const F = Y.offsetLeft + Y.offsetWidth + o.value, z = Q.offsetLeft - o.value;
|
|
1792
|
-
F > x.scrollLeft + k ? x.scrollLeft = F - k : z < x.scrollLeft && (x.scrollLeft = z);
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
return t({
|
|
1796
|
-
moveToTarget: u
|
|
1797
|
-
}), (c, v) => {
|
|
1798
|
-
const k = qe;
|
|
1799
|
-
return m(), R(k, {
|
|
1800
|
-
ref: "scrollContainer",
|
|
1801
|
-
class: "scroll-container",
|
|
1802
|
-
vertical: !1,
|
|
1803
|
-
onWheel: Me(d, ["prevent"])
|
|
1804
|
-
}, {
|
|
1805
|
-
default: y(() => [
|
|
1806
|
-
ee(c.$slots, "default", {}, void 0, !0)
|
|
1807
|
-
]),
|
|
1808
|
-
_: 3
|
|
1809
|
-
}, 512);
|
|
1810
|
-
};
|
|
1811
|
-
}
|
|
1812
|
-
}), Ho = /* @__PURE__ */ j(jo, [["__scopeId", "data-v-b2694f45"]]), Ko = { class: "tags-container" }, Fo = ["onClick"], Xo = /* @__PURE__ */ O({
|
|
1813
|
-
__name: "index",
|
|
1814
|
-
setup(n) {
|
|
1815
|
-
const t = ke(), e = Je(), o = je(), l = Ve(), i = Qe(), a = ae(), { visitedViews: r } = ot(i), s = he(), d = E(() => s.layout), u = P({
|
|
1816
|
-
path: "",
|
|
1817
|
-
fullPath: "",
|
|
1818
|
-
name: "",
|
|
1819
|
-
title: "",
|
|
1820
|
-
affix: !1,
|
|
1821
|
-
keepAlive: !1
|
|
1822
|
-
}), c = P([]), v = P(), k = P(0), x = P(0);
|
|
1823
|
-
oe(
|
|
1824
|
-
o,
|
|
1825
|
-
() => {
|
|
1826
|
-
B(), Q();
|
|
1827
|
-
},
|
|
1828
|
-
{
|
|
1829
|
-
immediate: !0
|
|
1830
|
-
//初始化立即执行
|
|
1831
|
-
}
|
|
1832
|
-
);
|
|
1833
|
-
const V = P(!1);
|
|
1834
|
-
oe(V, (f) => {
|
|
1835
|
-
f ? document.body.addEventListener("click", M) : document.body.removeEventListener("click", M);
|
|
1836
|
-
});
|
|
1837
|
-
function I(f, p = "/") {
|
|
1838
|
-
const T = (A) => {
|
|
1839
|
-
var ue, Se, at;
|
|
1840
|
-
const N = Bt.resolve(p, A.path), ne = {
|
|
1841
|
-
path: A.path,
|
|
1842
|
-
fullPath: N,
|
|
1843
|
-
name: String(A.name),
|
|
1844
|
-
title: ((ue = A.meta) == null ? void 0 : ue.title) || "no-name",
|
|
1845
|
-
affix: (Se = A.meta) == null ? void 0 : Se.affix,
|
|
1846
|
-
keepAlive: (at = A.meta) == null ? void 0 : at.keepAlive
|
|
1847
|
-
};
|
|
1848
|
-
ne.affix && W.push(ne), A.children && A.children.forEach(T);
|
|
1849
|
-
};
|
|
1850
|
-
let W = [];
|
|
1851
|
-
return f.forEach(T), W;
|
|
1852
|
-
}
|
|
1853
|
-
function S() {
|
|
1854
|
-
const f = I(l.routes);
|
|
1855
|
-
c.value = f;
|
|
1856
|
-
for (const p of f)
|
|
1857
|
-
p.name && i.addVisitedView(p);
|
|
1858
|
-
}
|
|
1859
|
-
function B() {
|
|
1860
|
-
var f, p;
|
|
1861
|
-
o.meta.title && i.addView({
|
|
1862
|
-
name: o.name,
|
|
1863
|
-
title: o.meta.title,
|
|
1864
|
-
path: o.path,
|
|
1865
|
-
fullPath: o.fullPath,
|
|
1866
|
-
affix: (f = o.meta) == null ? void 0 : f.affix,
|
|
1867
|
-
keepAlive: (p = o.meta) == null ? void 0 : p.keepAlive
|
|
1868
|
-
});
|
|
1869
|
-
}
|
|
1870
|
-
function Q() {
|
|
1871
|
-
De(() => {
|
|
1872
|
-
var f, p;
|
|
1873
|
-
for (const T of r.value)
|
|
1874
|
-
T.path === o.path && (v.value.moveToTarget(T), T.fullPath !== o.fullPath && i.updateVisitedView({
|
|
1875
|
-
name: o.name,
|
|
1876
|
-
title: o.meta.title || "",
|
|
1877
|
-
path: o.path,
|
|
1878
|
-
fullPath: o.fullPath,
|
|
1879
|
-
affix: (f = o.meta) == null ? void 0 : f.affix,
|
|
1880
|
-
keepAlive: (p = o.meta) == null ? void 0 : p.keepAlive
|
|
1881
|
-
}));
|
|
1882
|
-
});
|
|
1883
|
-
}
|
|
1884
|
-
function Y(f) {
|
|
1885
|
-
return f.fullPath === o.fullPath;
|
|
1886
|
-
}
|
|
1887
|
-
function F(f) {
|
|
1888
|
-
return f == null ? void 0 : f.affix;
|
|
1889
|
-
}
|
|
1890
|
-
function z() {
|
|
1891
|
-
try {
|
|
1892
|
-
return u.value.fullPath === "/dashboard" || u.value.fullPath === i.visitedViews[1].fullPath;
|
|
1893
|
-
} catch {
|
|
1894
|
-
return !1;
|
|
1895
|
-
}
|
|
1896
|
-
}
|
|
1897
|
-
function L() {
|
|
1898
|
-
try {
|
|
1899
|
-
return u.value.fullPath === i.visitedViews[i.visitedViews.length - 1].fullPath;
|
|
1900
|
-
} catch {
|
|
1901
|
-
return !1;
|
|
1902
|
-
}
|
|
1903
|
-
}
|
|
1904
|
-
function H(f) {
|
|
1905
|
-
i.delCachedView(f);
|
|
1906
|
-
const { fullPath: p } = f;
|
|
1907
|
-
De(() => {
|
|
1908
|
-
e.replace({ path: "/redirect" + p });
|
|
1909
|
-
});
|
|
1910
|
-
}
|
|
1911
|
-
function K(f, p) {
|
|
1912
|
-
const T = f.slice(-1)[0];
|
|
1913
|
-
T && T.fullPath ? e.push(T.fullPath) : (p == null ? void 0 : p.name) === "Dashboard" ? e.replace({ path: "/redirect" + p.fullPath }) : e.push("/");
|
|
1914
|
-
}
|
|
1915
|
-
function q(f) {
|
|
1916
|
-
i.delView(f).then((p) => {
|
|
1917
|
-
Y(f) && K(p.visitedViews, f);
|
|
1918
|
-
});
|
|
1919
|
-
}
|
|
1920
|
-
function me() {
|
|
1921
|
-
i.delLeftViews(u.value).then((f) => {
|
|
1922
|
-
f.visitedViews.find((p) => p.fullPath === o.fullPath) || K(f.visitedViews);
|
|
1923
|
-
});
|
|
1924
|
-
}
|
|
1925
|
-
function se() {
|
|
1926
|
-
i.delRightViews(u.value).then((f) => {
|
|
1927
|
-
f.visitedViews.find((p) => p.fullPath === o.fullPath) || K(f.visitedViews);
|
|
1928
|
-
});
|
|
1929
|
-
}
|
|
1930
|
-
function pe() {
|
|
1931
|
-
e.push(u.value), i.delOtherViews(u.value).then(() => {
|
|
1932
|
-
Q();
|
|
1933
|
-
});
|
|
1934
|
-
}
|
|
1935
|
-
function g(f) {
|
|
1936
|
-
i.delAllViews().then((p) => {
|
|
1937
|
-
K(p.visitedViews, f);
|
|
1938
|
-
});
|
|
1939
|
-
}
|
|
1940
|
-
function w(f, p) {
|
|
1941
|
-
var ue, Se;
|
|
1942
|
-
let W, A;
|
|
1943
|
-
(t == null ? void 0 : t.proxy) != null && (W = (ue = t == null ? void 0 : t.proxy) == null ? void 0 : ue.$el.getBoundingClientRect().left, A = (Se = t == null ? void 0 : t.proxy) == null ? void 0 : Se.$el.offsetWidth);
|
|
1944
|
-
const N = A - 105, ne = p.clientX - W + 15;
|
|
1945
|
-
ne > N ? k.value = N : k.value = ne, d.value === "mix" ? x.value = p.clientY - 50 : x.value = p.clientY, V.value = !0, u.value = f;
|
|
1946
|
-
}
|
|
1947
|
-
function M() {
|
|
1948
|
-
V.value = !1;
|
|
1949
|
-
}
|
|
1950
|
-
function Z() {
|
|
1951
|
-
M();
|
|
1952
|
-
}
|
|
1953
|
-
function D(f, p) {
|
|
1954
|
-
let T = {};
|
|
1955
|
-
function W(N, ne) {
|
|
1956
|
-
if (T[N.name] = ne, N.children)
|
|
1957
|
-
for (let ue = 0; ue < N.children.length; ue++)
|
|
1958
|
-
W(N.children[ue], N);
|
|
1959
|
-
}
|
|
1960
|
-
for (let N = 0; N < f.length; N++)
|
|
1961
|
-
W(f[N], null);
|
|
1962
|
-
let A = T[p];
|
|
1963
|
-
for (; A; ) {
|
|
1964
|
-
if (!T[A.name])
|
|
1965
|
-
return A;
|
|
1966
|
-
A = T[A.name];
|
|
1967
|
-
}
|
|
1968
|
-
return null;
|
|
1969
|
-
}
|
|
1970
|
-
const te = (f) => {
|
|
1971
|
-
if (d.value !== "mix")
|
|
1972
|
-
return;
|
|
1973
|
-
const p = D(l.routes, f);
|
|
1974
|
-
a.activeTopMenu !== p.path && a.changeTopActive(p.path);
|
|
1975
|
-
};
|
|
1976
|
-
return oe(
|
|
1977
|
-
() => o.name,
|
|
1978
|
-
(f) => {
|
|
1979
|
-
f && te(f);
|
|
1980
|
-
},
|
|
1981
|
-
{
|
|
1982
|
-
deep: !0
|
|
1983
|
-
}
|
|
1984
|
-
), fe(() => {
|
|
1985
|
-
S();
|
|
1986
|
-
}), (f, p) => {
|
|
1987
|
-
const T = Vt, W = Ie("router-link"), A = Ce;
|
|
1988
|
-
return m(), _("div", Ko, [
|
|
1989
|
-
b(Ho, {
|
|
1990
|
-
ref_key: "scrollPaneRef",
|
|
1991
|
-
ref: v,
|
|
1992
|
-
onScroll: Z
|
|
1993
|
-
}, {
|
|
1994
|
-
default: y(() => [
|
|
1995
|
-
(m(!0), _(X, null, ge(h(r), (N) => (m(), R(W, {
|
|
1996
|
-
ref_for: !0,
|
|
1997
|
-
ref: "tagRef",
|
|
1998
|
-
key: N.path,
|
|
1999
|
-
class: G("tags-item " + (Y(N) ? "active" : "")),
|
|
2000
|
-
"data-path": N.path,
|
|
2001
|
-
to: { path: N.path, query: N.query },
|
|
2002
|
-
onMouseup: Me((ne) => F(N) ? "" : q(N), ["middle"]),
|
|
2003
|
-
onContextmenu: Me((ne) => w(N, ne), ["prevent"])
|
|
2004
|
-
}, {
|
|
2005
|
-
default: y(() => [
|
|
2006
|
-
$(de(h(Ae)(N.title)) + " ", 1),
|
|
2007
|
-
F(N) ? U("", !0) : (m(), _("span", {
|
|
2008
|
-
key: 0,
|
|
2009
|
-
class: "tags-item-close",
|
|
2010
|
-
onClick: Me((ne) => q(N), ["prevent", "stop"])
|
|
2011
|
-
}, [
|
|
2012
|
-
b(T, { size: "10px" })
|
|
2013
|
-
], 8, Fo))
|
|
2014
|
-
]),
|
|
2015
|
-
_: 2
|
|
2016
|
-
}, 1032, ["class", "data-path", "to", "onMouseup", "onContextmenu"]))), 128))
|
|
2017
|
-
]),
|
|
2018
|
-
_: 1
|
|
2019
|
-
}, 512),
|
|
2020
|
-
ve(C("ul", {
|
|
2021
|
-
class: "tag-menu",
|
|
2022
|
-
style: nt({ left: k.value + "px", top: x.value + "px" })
|
|
2023
|
-
}, [
|
|
2024
|
-
C("li", {
|
|
2025
|
-
onClick: p[0] || (p[0] = (N) => H(u.value))
|
|
2026
|
-
}, [
|
|
2027
|
-
b(A, { "icon-class": "refresh" }),
|
|
2028
|
-
$(" 刷新 ")
|
|
2029
|
-
]),
|
|
2030
|
-
F(u.value) ? U("", !0) : (m(), _("li", {
|
|
2031
|
-
key: 0,
|
|
2032
|
-
onClick: p[1] || (p[1] = (N) => q(u.value))
|
|
2033
|
-
}, [
|
|
2034
|
-
b(A, { "icon-class": "close" }),
|
|
2035
|
-
$(" 关闭 ")
|
|
2036
|
-
])),
|
|
2037
|
-
C("li", { onClick: pe }, [
|
|
2038
|
-
b(A, { "icon-class": "close_other" }),
|
|
2039
|
-
$(" 关闭其它 ")
|
|
2040
|
-
]),
|
|
2041
|
-
z() ? U("", !0) : (m(), _("li", {
|
|
2042
|
-
key: 1,
|
|
2043
|
-
onClick: me
|
|
2044
|
-
}, [
|
|
2045
|
-
b(A, { "icon-class": "close_left" }),
|
|
2046
|
-
$(" 关闭左侧 ")
|
|
2047
|
-
])),
|
|
2048
|
-
L() ? U("", !0) : (m(), _("li", {
|
|
2049
|
-
key: 2,
|
|
2050
|
-
onClick: se
|
|
2051
|
-
}, [
|
|
2052
|
-
b(A, { "icon-class": "close_right" }),
|
|
2053
|
-
$(" 关闭右侧 ")
|
|
2054
|
-
])),
|
|
2055
|
-
C("li", {
|
|
2056
|
-
onClick: p[2] || (p[2] = (N) => g(u.value))
|
|
2057
|
-
}, [
|
|
2058
|
-
b(A, { "icon-class": "close_all" }),
|
|
2059
|
-
$(" 关闭所有 ")
|
|
2060
|
-
])
|
|
2061
|
-
], 4), [
|
|
2062
|
-
[Te, V.value]
|
|
2063
|
-
])
|
|
2064
|
-
]);
|
|
2065
|
-
};
|
|
2066
|
-
}
|
|
2067
|
-
}), qo = /* @__PURE__ */ j(Xo, [["__scopeId", "data-v-54ba5761"]]), el = {
|
|
2068
|
-
viewBox: "0 0 1024 1024",
|
|
2069
|
-
width: "1.2em",
|
|
2070
|
-
height: "1.2em"
|
|
2071
|
-
}, tl = /* @__PURE__ */ C("path", {
|
|
2072
|
-
fill: "currentColor",
|
|
2073
|
-
d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088l-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36l-116.224-25.088l-65.28 113.152l79.68 88.192l-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136l-79.808 88.192l65.344 113.152l116.224-25.024l22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152l24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296l116.288 25.024l65.28-113.152l-79.744-88.192l1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136l79.808-88.128l-65.344-113.152l-116.288 24.96l-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384a192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256a128 128 0 0 0 0-256"
|
|
2074
|
-
}, null, -1), nl = [
|
|
2075
|
-
tl
|
|
2076
|
-
];
|
|
2077
|
-
function ol(n, t) {
|
|
2078
|
-
return m(), _("svg", el, [...nl]);
|
|
2079
|
-
}
|
|
2080
|
-
const ll = { name: "ep-setting", render: ol };
|
|
2081
|
-
function Ot(n, t) {
|
|
2082
|
-
return !!n.className.match(new RegExp("(\\s|^)" + t + "(\\s|$)"));
|
|
2083
|
-
}
|
|
2084
|
-
function al(n, t) {
|
|
2085
|
-
Ot(n, t) || (n.className += " " + t);
|
|
2086
|
-
}
|
|
2087
|
-
function sl(n, t) {
|
|
2088
|
-
if (Ot(n, t)) {
|
|
2089
|
-
const e = new RegExp("(\\s|^)" + t + "(\\s|$)");
|
|
2090
|
-
n.className = n.className.replace(e, " ");
|
|
2091
|
-
}
|
|
2092
|
-
}
|
|
2093
|
-
function Pe(n) {
|
|
2094
|
-
return /^(https?:|http?:|mailto:|tel:)/.test(n);
|
|
2095
|
-
}
|
|
2096
|
-
const il = (n) => (_t("data-v-b6b011c4"), n = n(), yt(), n), rl = /* @__PURE__ */ il(() => /* @__PURE__ */ C("div", { class: "right-panel-overlay" }, null, -1)), cl = { class: "right-panel-container" }, ul = /* @__PURE__ */ O({
|
|
2097
|
-
__name: "index",
|
|
2098
|
-
props: {
|
|
2099
|
-
buttonTop: {
|
|
2100
|
-
default: 250,
|
|
2101
|
-
type: Number
|
|
2102
|
-
}
|
|
2103
|
-
},
|
|
2104
|
-
setup(n) {
|
|
2105
|
-
const t = P(!1);
|
|
2106
|
-
oe(t, (a) => {
|
|
2107
|
-
a && e(), a ? al(document.body, "showRightPanel") : sl(document.body, "showRightPanel");
|
|
2108
|
-
});
|
|
2109
|
-
function e() {
|
|
2110
|
-
window.addEventListener("click", o, { passive: !0 });
|
|
2111
|
-
}
|
|
2112
|
-
function o(a) {
|
|
2113
|
-
a.target.closest(".right-panel-container") || (t.value = !1, window.removeEventListener("click", o));
|
|
2114
|
-
}
|
|
2115
|
-
const l = P();
|
|
2116
|
-
function i() {
|
|
2117
|
-
const a = document.querySelector("body");
|
|
2118
|
-
a.insertBefore(l.value, a.firstChild);
|
|
2119
|
-
}
|
|
2120
|
-
return fe(() => {
|
|
2121
|
-
i();
|
|
2122
|
-
}), $e(() => {
|
|
2123
|
-
l.value.remove();
|
|
2124
|
-
}), (a, r) => {
|
|
2125
|
-
const s = Vt, d = ll;
|
|
2126
|
-
return m(), _("div", {
|
|
2127
|
-
ref_key: "rightPanel",
|
|
2128
|
-
ref: l,
|
|
2129
|
-
class: G({ show: t.value })
|
|
2130
|
-
}, [
|
|
2131
|
-
rl,
|
|
2132
|
-
C("div", cl, [
|
|
2133
|
-
C("div", {
|
|
2134
|
-
class: "right-panel-btn",
|
|
2135
|
-
style: nt({
|
|
2136
|
-
top: n.buttonTop + "px"
|
|
2137
|
-
}),
|
|
2138
|
-
onClick: r[0] || (r[0] = (u) => t.value = !t.value)
|
|
2139
|
-
}, [
|
|
2140
|
-
ve(b(s, null, null, 512), [
|
|
2141
|
-
[Te, t.value]
|
|
2142
|
-
]),
|
|
2143
|
-
ve(b(d, null, null, 512), [
|
|
2144
|
-
[Te, !t.value]
|
|
2145
|
-
])
|
|
2146
|
-
], 4),
|
|
2147
|
-
C("div", null, [
|
|
2148
|
-
ee(a.$slots, "default", {}, void 0, !0)
|
|
2149
|
-
])
|
|
2150
|
-
])
|
|
2151
|
-
], 2);
|
|
2152
|
-
};
|
|
2153
|
-
}
|
|
2154
|
-
}), dl = /* @__PURE__ */ j(ul, [["__scopeId", "data-v-b6b011c4"]]), fl = 992, ml = /* @__PURE__ */ O({
|
|
2155
|
-
__name: "main",
|
|
2156
|
-
setup(n) {
|
|
2157
|
-
const { width: t } = gt(), e = ae(), o = he(), l = E(() => o.fixedHeader), i = E(() => o.tagsView), a = E(() => o.showSettings), r = E(() => o.layout), s = E(() => e.device);
|
|
2158
|
-
return tt(() => {
|
|
2159
|
-
t.value < fl ? (e.toggleDevice("mobile"), e.closeSideBar(!0)) : (e.toggleDevice("desktop"), t.value >= 1200 ? e.openSideBar(!0) : e.closeSideBar(!0));
|
|
2160
|
-
}), (d, u) => (m(), _("div", {
|
|
2161
|
-
class: G([{ hasTagsView: i.value }, "main-container"])
|
|
2162
|
-
}, [
|
|
2163
|
-
C("div", {
|
|
2164
|
-
class: G({ "fixed-header": l.value, device: s.value })
|
|
2165
|
-
}, [
|
|
2166
|
-
r.value === "left" ? (m(), R(h(fo), { key: 0 })) : U("", !0),
|
|
2167
|
-
i.value ? (m(), R(h(qo), { key: 1 })) : U("", !0)
|
|
2168
|
-
], 2),
|
|
2169
|
-
b(h(vo)),
|
|
2170
|
-
a.value ? (m(), R(dl, { key: 0 }, {
|
|
2171
|
-
default: y(() => [
|
|
2172
|
-
b(h(Go))
|
|
2173
|
-
]),
|
|
2174
|
-
_: 1
|
|
2175
|
-
})) : U("", !0)
|
|
2176
|
-
], 2));
|
|
2177
|
-
}
|
|
2178
|
-
}), ft = /* @__PURE__ */ j(ml, [["__scopeId", "data-v-d384a7fe"]]), pl = "var(--menuBg)", vl = "var(--menuText)", hl = "var(--menuActiveText)", we = {
|
|
2179
|
-
menuBg: pl,
|
|
2180
|
-
menuText: vl,
|
|
2181
|
-
menuActiveText: hl
|
|
2182
|
-
}, gl = { key: 1 }, bl = { key: 0 }, _l = /* @__PURE__ */ O({
|
|
2183
|
-
__name: "TopMenu",
|
|
2184
|
-
setup(n) {
|
|
2185
|
-
const t = ae(), e = E(() => t.activeTopMenu), o = Je(), l = (s) => {
|
|
2186
|
-
if (!s.length)
|
|
2187
|
-
return;
|
|
2188
|
-
const [d] = s;
|
|
2189
|
-
d.children ? l(d.children) : o.push({
|
|
2190
|
-
name: d.name
|
|
2191
|
-
});
|
|
2192
|
-
}, i = (s) => {
|
|
2193
|
-
t.changeTopActive(s), a.getMixLeftMenu(s);
|
|
2194
|
-
const { mixLeftMenu: d } = a;
|
|
2195
|
-
l(d);
|
|
2196
|
-
}, a = Ve(), r = P([]);
|
|
2197
|
-
return fe(() => {
|
|
2198
|
-
r.value = a.routes.filter(
|
|
2199
|
-
(s) => !s.meta || !s.meta.hidden
|
|
2200
|
-
);
|
|
2201
|
-
}), (s, d) => {
|
|
2202
|
-
const u = Ce, c = Pt, v = At, k = qe;
|
|
2203
|
-
return m(), R(k, null, {
|
|
2204
|
-
default: y(() => [
|
|
2205
|
-
b(v, {
|
|
2206
|
-
mode: "horizontal",
|
|
2207
|
-
"default-active": e.value,
|
|
2208
|
-
"background-color": h(we).menuBg,
|
|
2209
|
-
"text-color": h(we).menuText,
|
|
2210
|
-
"active-text-color": h(we).menuActiveText,
|
|
2211
|
-
onSelect: i
|
|
2212
|
-
}, {
|
|
2213
|
-
default: y(() => [
|
|
2214
|
-
(m(!0), _(X, null, ge(r.value, (x) => (m(), R(c, {
|
|
2215
|
-
key: x.path,
|
|
2216
|
-
index: x.path
|
|
2217
|
-
}, {
|
|
2218
|
-
title: y(() => [
|
|
2219
|
-
x.meta && x.meta.icon ? (m(), R(u, {
|
|
2220
|
-
key: 0,
|
|
2221
|
-
"icon-class": x.meta.icon
|
|
2222
|
-
}, null, 8, ["icon-class"])) : U("", !0),
|
|
2223
|
-
x.path === "/" ? (m(), _("span", gl, " 首页 ")) : (m(), _(X, { key: 2 }, [
|
|
2224
|
-
x.meta && x.meta.title ? (m(), _("span", bl, de(h(Ae)(x.meta.title)), 1)) : U("", !0)
|
|
2225
|
-
], 64))
|
|
2226
|
-
]),
|
|
2227
|
-
_: 2
|
|
2228
|
-
}, 1032, ["index"]))), 128))
|
|
2229
|
-
]),
|
|
2230
|
-
_: 1
|
|
2231
|
-
}, 8, ["default-active", "background-color", "text-color", "active-text-color"])
|
|
2232
|
-
]),
|
|
2233
|
-
_: 1
|
|
2234
|
-
});
|
|
2235
|
-
};
|
|
2236
|
-
}
|
|
2237
|
-
}), yl = /* @__PURE__ */ j(_l, [["__scopeId", "data-v-5631fe31"]]), xl = ["href"], wl = /* @__PURE__ */ O({
|
|
2238
|
-
__name: "Link",
|
|
2239
|
-
props: {
|
|
2240
|
-
to: {
|
|
2241
|
-
type: String,
|
|
2242
|
-
required: !0
|
|
2243
|
-
}
|
|
2244
|
-
},
|
|
2245
|
-
setup(n) {
|
|
2246
|
-
const t = ae(), e = E(() => t.sidebar), o = E(() => t.device), l = n, i = Je();
|
|
2247
|
-
function a() {
|
|
2248
|
-
o.value === "mobile" && e.value.opened == !0 && t.closeSideBar(!1), i.push(l.to).catch((r) => {
|
|
2249
|
-
console.error(r);
|
|
2250
|
-
});
|
|
2251
|
-
}
|
|
2252
|
-
return (r, s) => h(Pe)(n.to) ? (m(), _("a", {
|
|
2253
|
-
key: 0,
|
|
2254
|
-
href: n.to,
|
|
2255
|
-
target: "_blank",
|
|
2256
|
-
rel: "noopener"
|
|
2257
|
-
}, [
|
|
2258
|
-
ee(r.$slots, "default")
|
|
2259
|
-
], 8, xl)) : (m(), _("div", {
|
|
2260
|
-
key: 1,
|
|
2261
|
-
onClick: a
|
|
2262
|
-
}, [
|
|
2263
|
-
ee(r.$slots, "default")
|
|
2264
|
-
]));
|
|
2265
|
-
}
|
|
2266
|
-
}), Cl = { key: 2 }, kl = /* @__PURE__ */ O({
|
|
2267
|
-
__name: "Item",
|
|
2268
|
-
props: {
|
|
2269
|
-
icon: {
|
|
2270
|
-
type: String,
|
|
2271
|
-
default: ""
|
|
2272
|
-
},
|
|
2273
|
-
title: {
|
|
2274
|
-
type: String,
|
|
2275
|
-
default: ""
|
|
2276
|
-
}
|
|
2277
|
-
},
|
|
2278
|
-
setup(n) {
|
|
2279
|
-
return (t, e) => {
|
|
2280
|
-
const o = Ue, l = Ce;
|
|
2281
|
-
return m(), _(X, null, [
|
|
2282
|
-
n.icon && n.icon.includes("el-icon") ? (m(), R(o, {
|
|
2283
|
-
key: 0,
|
|
2284
|
-
class: "sub-el-icon"
|
|
2285
|
-
})) : n.icon ? (m(), R(l, {
|
|
2286
|
-
key: 1,
|
|
2287
|
-
"icon-class": n.icon
|
|
2288
|
-
}, null, 8, ["icon-class"])) : U("", !0),
|
|
2289
|
-
n.title ? (m(), _("span", Cl, de(h(Ae)(n.title)), 1)) : U("", !0)
|
|
2290
|
-
], 64);
|
|
2291
|
-
};
|
|
2292
|
-
}
|
|
2293
|
-
}), mt = /* @__PURE__ */ j(kl, [["__scopeId", "data-v-b1fbe86d"]]), Il = { key: 0 }, Sl = /* @__PURE__ */ O({
|
|
2294
|
-
__name: "SidebarItem",
|
|
2295
|
-
props: {
|
|
2296
|
-
/**
|
|
2297
|
-
* 路由(eg:user)
|
|
2298
|
-
*/
|
|
2299
|
-
item: {
|
|
2300
|
-
type: Object,
|
|
2301
|
-
required: !0
|
|
2302
|
-
},
|
|
2303
|
-
/**
|
|
2304
|
-
* 父层级完整路由路径(eg:/system)
|
|
2305
|
-
*/
|
|
2306
|
-
basePath: {
|
|
2307
|
-
type: String,
|
|
2308
|
-
required: !0
|
|
2309
|
-
},
|
|
2310
|
-
isNest: {
|
|
2311
|
-
type: Boolean,
|
|
2312
|
-
default: !1
|
|
2313
|
-
}
|
|
2314
|
-
},
|
|
2315
|
-
setup(n) {
|
|
2316
|
-
const t = n, e = P();
|
|
2317
|
-
function o(i = [], a) {
|
|
2318
|
-
const r = i.filter((s) => {
|
|
2319
|
-
var d;
|
|
2320
|
-
return (d = s.meta) != null && d.hidden ? !1 : (s.meta !== void 0 && (s.meta.hidden = !1), e.value = s, !0);
|
|
2321
|
-
});
|
|
2322
|
-
return r.length === 1 ? !0 : r.length === 0 ? (e.value = { ...a, path: "", noShowingChildren: !0 }, !0) : !1;
|
|
2323
|
-
}
|
|
2324
|
-
function l(i) {
|
|
2325
|
-
return Pe(i) ? i : Pe(t.basePath) ? t.basePath : Lt.resolve(t.basePath, i);
|
|
2326
|
-
}
|
|
2327
|
-
return (i, a) => {
|
|
2328
|
-
var u;
|
|
2329
|
-
const r = Pt, s = Ie("sidebar-item", !0), d = Zn;
|
|
2330
|
-
return !n.item.meta || !n.item.meta.hidden ? (m(), _("div", Il, [
|
|
2331
|
-
o(n.item.children, n.item) && (!e.value.children || e.value.noShowingChildren) && !((u = n.item.meta) != null && u.alwaysShow) ? (m(), _(X, { key: 0 }, [
|
|
2332
|
-
e.value.meta ? (m(), R(wl, {
|
|
2333
|
-
key: 0,
|
|
2334
|
-
to: l(e.value.path)
|
|
2335
|
-
}, {
|
|
2336
|
-
default: y(() => [
|
|
2337
|
-
b(r, {
|
|
2338
|
-
index: l(e.value.path),
|
|
2339
|
-
class: G({ "submenu-title-noDropdown": !n.isNest })
|
|
2340
|
-
}, {
|
|
2341
|
-
default: y(() => [
|
|
2342
|
-
b(mt, {
|
|
2343
|
-
icon: e.value.meta.icon || n.item.meta && n.item.meta.icon,
|
|
2344
|
-
title: e.value.meta.title
|
|
2345
|
-
}, null, 8, ["icon", "title"])
|
|
2346
|
-
]),
|
|
2347
|
-
_: 1
|
|
2348
|
-
}, 8, ["index", "class"])
|
|
2349
|
-
]),
|
|
2350
|
-
_: 1
|
|
2351
|
-
}, 8, ["to"])) : U("", !0)
|
|
2352
|
-
], 64)) : (m(), R(d, {
|
|
2353
|
-
key: 1,
|
|
2354
|
-
index: l(n.item.path),
|
|
2355
|
-
teleported: ""
|
|
2356
|
-
}, {
|
|
2357
|
-
title: y(() => [
|
|
2358
|
-
n.item.meta ? (m(), R(mt, {
|
|
2359
|
-
key: 0,
|
|
2360
|
-
icon: n.item.meta && n.item.meta.icon,
|
|
2361
|
-
title: n.item.meta.title
|
|
2362
|
-
}, null, 8, ["icon", "title"])) : U("", !0)
|
|
2363
|
-
]),
|
|
2364
|
-
default: y(() => [
|
|
2365
|
-
(m(!0), _(X, null, ge(n.item.children, (c) => (m(), R(s, {
|
|
2366
|
-
key: c.path,
|
|
2367
|
-
"is-nest": !0,
|
|
2368
|
-
item: c,
|
|
2369
|
-
"base-path": l(c.path)
|
|
2370
|
-
}, null, 8, ["item", "base-path"]))), 128))
|
|
2371
|
-
]),
|
|
2372
|
-
_: 1
|
|
2373
|
-
}, 8, ["index"]))
|
|
2374
|
-
])) : U("", !0);
|
|
2375
|
-
};
|
|
2376
|
-
}
|
|
2377
|
-
}), Ml = /* @__PURE__ */ j(Sl, [["__scopeId", "data-v-da083b59"]]), zt = /* @__PURE__ */ O({
|
|
2378
|
-
__name: "LeftMenu",
|
|
2379
|
-
props: {
|
|
2380
|
-
menuList: {
|
|
2381
|
-
required: !0,
|
|
2382
|
-
default: () => [],
|
|
2383
|
-
type: Array
|
|
2384
|
-
},
|
|
2385
|
-
basePath: {
|
|
2386
|
-
type: String,
|
|
2387
|
-
required: !0
|
|
2388
|
-
}
|
|
2389
|
-
},
|
|
2390
|
-
setup(n) {
|
|
2391
|
-
const t = he(), e = ae(), o = je(), l = E(() => t.layout), i = n;
|
|
2392
|
-
function a(r) {
|
|
2393
|
-
return Pe(r) ? r : Pe(i.basePath) ? i.basePath : Lt.resolve(i.basePath, r);
|
|
2394
|
-
}
|
|
2395
|
-
return (r, s) => {
|
|
2396
|
-
const d = At;
|
|
2397
|
-
return m(), R(d, {
|
|
2398
|
-
"default-active": l.value === "top" ? "-" : h(o).path,
|
|
2399
|
-
collapse: !h(e).sidebar.opened,
|
|
2400
|
-
"background-color": h(we).menuBg,
|
|
2401
|
-
"text-color": h(we).menuText,
|
|
2402
|
-
"active-text-color": h(we).menuActiveText,
|
|
2403
|
-
"unique-opened": !1,
|
|
2404
|
-
"collapse-transition": !1,
|
|
2405
|
-
mode: l.value === "top" ? "horizontal" : "vertical"
|
|
2406
|
-
}, {
|
|
2407
|
-
default: y(() => [
|
|
2408
|
-
(m(!0), _(X, null, ge(n.menuList, (u) => (m(), R(Ml, {
|
|
2409
|
-
key: u.path,
|
|
2410
|
-
item: u,
|
|
2411
|
-
"base-path": a(u.path),
|
|
2412
|
-
"is-collapse": !h(e).sidebar.opened
|
|
2413
|
-
}, null, 8, ["item", "base-path", "is-collapse"]))), 128))
|
|
2414
|
-
]),
|
|
2415
|
-
_: 1
|
|
2416
|
-
}, 8, ["default-active", "collapse", "background-color", "text-color", "active-text-color", "mode"]);
|
|
2417
|
-
};
|
|
2418
|
-
}
|
|
2419
|
-
}), El = { class: "w-full h-[50px] bg-gray-800 dark:bg-[var(--el-bg-color-overlay)] logo-wrap" }, Tl = ["src"], Al = ["src"], Pl = { class: "ml-3 text-white text-sm font-bold" }, Rl = /* @__PURE__ */ O({
|
|
2420
|
-
__name: "Logo",
|
|
2421
|
-
props: {
|
|
2422
|
-
collapse: {
|
|
2423
|
-
type: Boolean,
|
|
2424
|
-
required: !0
|
|
2425
|
-
}
|
|
2426
|
-
},
|
|
2427
|
-
setup(n) {
|
|
2428
|
-
const t = he(), e = P(new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjA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KJUhL4GW2XTN8vst+p1CCtDw+Oc6Y6/hEoQRpCRxm23rcv7fazxRKEIXFXZRuwBDZvxUC4GsIREHflguDkyQqaVYotIulUChBFAoliEKhBFEolCAKhRJEoVCCKBRKEIVCCaJQKJQgCoUSRKFQgigUShCFIhP8vwADACog5YM65zugAAAAAElFTkSuQmCC", import.meta.url).href);
|
|
2429
|
-
return (o, l) => {
|
|
2430
|
-
const i = Ie("router-link");
|
|
2431
|
-
return m(), _("div", El, [
|
|
2432
|
-
b(et, { name: "sidebarLogoFade" }, {
|
|
2433
|
-
default: y(() => [
|
|
2434
|
-
n.collapse ? (m(), R(i, {
|
|
2435
|
-
key: "collapse",
|
|
2436
|
-
class: "h-full w-full flex items-center justify-center",
|
|
2437
|
-
to: "/"
|
|
2438
|
-
}, {
|
|
2439
|
-
default: y(() => [
|
|
2440
|
-
h(t).sidebarLogo ? (m(), _("img", {
|
|
2441
|
-
key: 0,
|
|
2442
|
-
src: e.value,
|
|
2443
|
-
class: "w-5 h-5"
|
|
2444
|
-
}, null, 8, Tl)) : U("", !0)
|
|
2445
|
-
]),
|
|
2446
|
-
_: 1
|
|
2447
|
-
})) : (m(), R(i, {
|
|
2448
|
-
key: "expand",
|
|
2449
|
-
class: "h-full w-full flex items-center justify-center",
|
|
2450
|
-
to: "/"
|
|
2451
|
-
}, {
|
|
2452
|
-
default: y(() => [
|
|
2453
|
-
h(t).sidebarLogo ? (m(), _("img", {
|
|
2454
|
-
key: 0,
|
|
2455
|
-
src: e.value,
|
|
2456
|
-
class: "w-5 h-5"
|
|
2457
|
-
}, null, 8, Al)) : U("", !0),
|
|
2458
|
-
C("span", Pl, de(h(on).title), 1)
|
|
2459
|
-
]),
|
|
2460
|
-
_: 1
|
|
2461
|
-
}))
|
|
2462
|
-
]),
|
|
2463
|
-
_: 1
|
|
2464
|
-
})
|
|
2465
|
-
]);
|
|
2466
|
-
};
|
|
2467
|
-
}
|
|
2468
|
-
}), pt = /* @__PURE__ */ j(Rl, [["__scopeId", "data-v-a57666ab"]]), Nl = { class: "header" }, Vl = /* @__PURE__ */ O({
|
|
2469
|
-
__name: "index",
|
|
2470
|
-
setup(n) {
|
|
2471
|
-
const t = he(), e = Ve(), o = ae(), { sidebarLogo: l } = ot(t), i = E(() => t.layout), a = P(!0);
|
|
2472
|
-
return oe(
|
|
2473
|
-
() => i.value,
|
|
2474
|
-
() => {
|
|
2475
|
-
a.value = !1, De(() => {
|
|
2476
|
-
a.value = !0;
|
|
2477
|
-
});
|
|
2478
|
-
}
|
|
2479
|
-
), (r, s) => {
|
|
2480
|
-
const d = qe, u = Nt;
|
|
2481
|
-
return i.value !== "mix" ? (m(), _("div", {
|
|
2482
|
-
key: 0,
|
|
2483
|
-
class: G([{ "has-logo": h(l) }, "menu-wrap"])
|
|
2484
|
-
}, [
|
|
2485
|
-
h(l) ? (m(), R(pt, {
|
|
2486
|
-
key: 0,
|
|
2487
|
-
collapse: !h(o).sidebar.opened
|
|
2488
|
-
}, null, 8, ["collapse"])) : U("", !0),
|
|
2489
|
-
a.value ? (m(), R(d, { key: 1 }, {
|
|
2490
|
-
default: y(() => [
|
|
2491
|
-
b(zt, {
|
|
2492
|
-
"menu-list": h(e).routes,
|
|
2493
|
-
"base-path": ""
|
|
2494
|
-
}, null, 8, ["menu-list"])
|
|
2495
|
-
]),
|
|
2496
|
-
_: 1
|
|
2497
|
-
})) : U("", !0),
|
|
2498
|
-
i.value === "top" ? (m(), R(u, { key: 2 })) : U("", !0)
|
|
2499
|
-
], 2)) : (m(), _("div", {
|
|
2500
|
-
key: 1,
|
|
2501
|
-
class: G([{ "has-logo": h(l) }, "menu-wrap"])
|
|
2502
|
-
}, [
|
|
2503
|
-
C("div", Nl, [
|
|
2504
|
-
h(l) ? (m(), R(pt, {
|
|
2505
|
-
key: 0,
|
|
2506
|
-
collapse: !h(o).sidebar.opened
|
|
2507
|
-
}, null, 8, ["collapse"])) : U("", !0),
|
|
2508
|
-
b(yl),
|
|
2509
|
-
b(u)
|
|
2510
|
-
])
|
|
2511
|
-
], 2));
|
|
2512
|
-
};
|
|
2513
|
-
}
|
|
2514
|
-
}), Bl = /* @__PURE__ */ j(Vl, [["__scopeId", "data-v-a7cbf656"]]), Ll = {
|
|
2515
|
-
key: 1,
|
|
2516
|
-
class: "mix-wrapper"
|
|
2517
|
-
}, Ol = { class: "mix-wrapper__left" }, zl = { class: "toggle-sidebar" }, Wl = 992, Dl = /* @__PURE__ */ O({
|
|
2518
|
-
__name: "index",
|
|
2519
|
-
setup(n) {
|
|
2520
|
-
const t = Ve(), { width: e } = gt(), o = ae(), l = he(), i = E(() => o.activeTopMenu), a = E(() => t.mixLeftMenu), r = E(() => l.layout);
|
|
2521
|
-
oe(
|
|
2522
|
-
() => i.value,
|
|
2523
|
-
(c) => {
|
|
2524
|
-
r.value === "mix" && t.getMixLeftMenu(c);
|
|
2525
|
-
},
|
|
2526
|
-
{
|
|
2527
|
-
deep: !0,
|
|
2528
|
-
immediate: !0
|
|
2529
|
-
}
|
|
2530
|
-
);
|
|
2531
|
-
const s = E(() => ({
|
|
2532
|
-
hideSidebar: !o.sidebar.opened,
|
|
2533
|
-
openSidebar: o.sidebar.opened,
|
|
2534
|
-
withoutAnimation: o.sidebar.withoutAnimation,
|
|
2535
|
-
mobile: o.device === "mobile",
|
|
2536
|
-
isTop: r.value === "top",
|
|
2537
|
-
isMix: r.value === "mix"
|
|
2538
|
-
}));
|
|
2539
|
-
tt(() => {
|
|
2540
|
-
e.value < Wl ? (o.toggleDevice("mobile"), o.closeSideBar(!0)) : (o.toggleDevice("desktop"), e.value >= 1200 ? o.openSideBar(!0) : o.closeSideBar(!0));
|
|
2541
|
-
});
|
|
2542
|
-
function d() {
|
|
2543
|
-
o.closeSideBar(!1);
|
|
2544
|
-
}
|
|
2545
|
-
function u() {
|
|
2546
|
-
o.toggleSidebar();
|
|
2547
|
-
}
|
|
2548
|
-
return (c, v) => {
|
|
2549
|
-
const k = Rt;
|
|
2550
|
-
return m(), _("div", {
|
|
2551
|
-
class: G([s.value, "app-wrapper"])
|
|
2552
|
-
}, [
|
|
2553
|
-
s.value.mobile && s.value.openSidebar ? (m(), _("div", {
|
|
2554
|
-
key: 0,
|
|
2555
|
-
class: "drawer__background",
|
|
2556
|
-
onClick: d
|
|
2557
|
-
})) : U("", !0),
|
|
2558
|
-
b(Bl, { class: "sidebar-container" }),
|
|
2559
|
-
r.value === "mix" ? (m(), _("div", Ll, [
|
|
2560
|
-
C("div", Ol, [
|
|
2561
|
-
b(zt, {
|
|
2562
|
-
"menu-list": a.value,
|
|
2563
|
-
"base-path": i.value
|
|
2564
|
-
}, null, 8, ["menu-list", "base-path"]),
|
|
2565
|
-
C("div", zl, [
|
|
2566
|
-
b(k, {
|
|
2567
|
-
"is-active": h(o).sidebar.opened,
|
|
2568
|
-
onToggleClick: u
|
|
2569
|
-
}, null, 8, ["is-active"])
|
|
2570
|
-
])
|
|
2571
|
-
]),
|
|
2572
|
-
b(ft)
|
|
2573
|
-
])) : (m(), R(ft, { key: 2 }))
|
|
2574
|
-
], 2);
|
|
2575
|
-
};
|
|
2576
|
-
}
|
|
2577
|
-
}), Xl = /* @__PURE__ */ j(Dl, [["__scopeId", "data-v-bb0d901c"]]);
|
|
2578
|
-
export {
|
|
2579
|
-
Xl as default
|
|
2580
|
-
};
|