jmash-core 0.0.26 → 0.0.28
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-DyxXSkQ8.mjs → 401-DHF-V-Zy.mjs} +2 -2
- package/dist/{404-B1TcvQEr.mjs → 404-BYdOQuni.mjs} +1 -1
- package/dist/{BarChart-209IORAN.mjs → BarChart-RqUPCdJI.mjs} +2 -2
- package/dist/{PieChart-C56IVMnJ.mjs → PieChart-1jIJVala.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-e5ngYbbF.mjs → PieChart.vue_vue_type_script_setup_true_lang-DVIUkdCZ.mjs} +2 -2
- package/dist/{RadarChart-V_wZ72h6.mjs → RadarChart-Bc8S0ALP.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-BMoFVCx6.mjs → RadarChart.vue_vue_type_script_setup_true_lang-CZH2B93g.mjs} +2 -2
- package/dist/{edit-Dn97TcAU.mjs → edit-ChkuuXol.mjs} +1 -1
- package/dist/{edit-fy-D_Erf.mjs → edit-D9SACDyC.mjs} +52 -50
- package/dist/{edit-BVUL3vj5.mjs → edit-DPjM8Jlu.mjs} +1 -1
- package/dist/{edit-DXWmiMqv.mjs → edit-Dfa1EM3Q.mjs} +1 -1
- package/dist/{edit-bp48snhk.mjs → edit-Dt4fjw1S.mjs} +1 -1
- package/dist/edit-QqWLBTAl.mjs +4 -0
- package/dist/{edit-D1YyanrI.mjs → edit-mxla5Dwo.mjs} +90 -88
- package/dist/edit-xL7t35XF.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Cvcr7cQH.mjs → edit.vue_vue_type_script_setup_true_lang-2gWgg28j.mjs} +32 -31
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bot6IVjR.mjs → edit.vue_vue_type_script_setup_true_lang-BYh6kXhd.mjs} +106 -104
- package/dist/{edit.vue_vue_type_script_setup_true_lang-B3JXEydV.mjs → edit.vue_vue_type_script_setup_true_lang-CEJcRABj.mjs} +46 -44
- package/dist/{edit.vue_vue_type_script_setup_true_lang-dpzo5d2P.mjs → edit.vue_vue_type_script_setup_true_lang-D6LyCzD-.mjs} +39 -38
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CMpUNJVq.mjs → edit.vue_vue_type_script_setup_true_lang-DRoxMTE3.mjs} +35 -33
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DNx6yN4E.mjs → edit.vue_vue_type_script_setup_true_lang-O9kmmp-o.mjs} +35 -33
- package/dist/{el-card-B1tGqKYT.mjs → el-card-DwHvO2Ya.mjs} +1 -1
- package/dist/{el-col-CDKx7dxt.mjs → el-col-CpkHzVh2.mjs} +7 -7
- package/dist/{el-date-picker-6jkl6umu.mjs → el-date-picker-B6dLs8du.mjs} +424 -424
- package/dist/{el-divider-AzBqnYzM.mjs → el-divider-N6be-jn8.mjs} +1 -1
- package/dist/{el-dropdown-item-Bm7pFBjL.mjs → el-dropdown-item-B-4lE04J.mjs} +47 -46
- package/dist/el-form-item--x5GHc7n.mjs +1124 -0
- package/dist/{el-tree-select-CLP-mG53.mjs → el-tree-select-DpKRTcZJ.mjs} +31 -31
- package/dist/{index-B_Nlp4bP.mjs → index-0Jc1dpgF.mjs} +46 -44
- package/dist/{index-CN-rTVvf.mjs → index-B3-6N5dQ.mjs} +65 -64
- package/dist/{index-DkkB2zub.mjs → index-B4ruvSZ3.mjs} +49 -48
- package/dist/{index-B8rFOXk3.mjs → index-B8Bjod4Z.mjs} +1 -1
- package/dist/{index-Dd9sx-3t.mjs → index-BGrn7xfJ.mjs} +87 -85
- package/dist/{index-Drr9mZCe.mjs → index-BRV4P_kX.mjs} +82 -80
- package/dist/{index-Da3w-Bs_.mjs → index-BpV4WDjm.mjs} +5 -5
- package/dist/{index-CB5WgDdA.mjs → index-C6rajwwk.mjs} +89 -87
- package/dist/{index-CqUieyFM.mjs → index-CPlBZyYT.mjs} +43 -40
- package/dist/{index-9F0pKjVG.mjs → index-CZbK2Kio.mjs} +154 -152
- package/dist/{index-C4c-GVkQ.mjs → index-Cn9_c0n1.mjs} +179 -178
- package/dist/{index-BhOmXWSz.mjs → index-CyTjYwGV.mjs} +1 -1
- package/dist/{index-BOpQgIuE.mjs → index-CzQLCV1q.mjs} +1 -1
- package/dist/{index-BkwJyGQQ.mjs → index-D6WFVmZz.mjs} +58 -56
- package/dist/{index-CZAJ8vFy.mjs → index-Dwg0azQy.mjs} +92 -90
- package/dist/{index-FHWikOd_.mjs → index-FcnP7111.mjs} +47 -47
- package/dist/index-Kn7Q3GUp.mjs +23679 -0
- package/dist/index-iYRVwor-.mjs +502 -0
- package/dist/{index-KGZB5e7L.mjs → index-pAD6CUAf.mjs} +101 -99
- package/dist/{index-5eSu1tHt.mjs → index-pBVS-dCg.mjs} +1 -1
- package/dist/index.mjs +37 -36
- package/dist/{index.vue_vue_type_script_setup_true_lang-BdF8weI-.mjs → index.vue_vue_type_script_setup_true_lang-DfsB8ZEs.mjs} +13 -12
- package/dist/{picture-C3ryc2v4.mjs → picture-D34s_Oi0.mjs} +80 -80
- package/dist/{position-BlDXwvZE.mjs → position-MRKj9hcz.mjs} +1 -1
- package/dist/{profile-Iv6QwYlU.mjs → profile-Bk-lwQKm.mjs} +30 -29
- package/dist/{runAs-D2y1kMdw.mjs → runAs-D7rwJWn8.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-BGeL3VN9.mjs → runAs.vue_vue_type_script_setup_true_lang-Dt6k5rlD.mjs} +21 -20
- package/dist/style.css +1 -1
- package/dist/{types-BtFbroFe.mjs → types-CRwHW1_s.mjs} +33 -33
- package/dist/{updatePwd-CGVxTSeq.mjs → updatePwd-DEDAJW3q.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-zIdNRdvk.mjs → updatePwd.vue_vue_type_script_setup_true_lang-foekKrMF.mjs} +15 -14
- package/dts/src/api/index.d.ts +9 -0
- package/dts/src/components/Pagination/index.vue.d.ts +1 -1
- package/dts/src/index.d.ts +21 -21
- package/dts/src/main.d.ts +5 -5
- package/package.json +8 -8
- package/dist/edit-fZmbXgcD.mjs +0 -4
- package/dist/edit-lNjt5eFq.mjs +0 -4
- package/dist/el-form-item-l0sNRNKZ.mjs +0 -1
- package/dist/index-BNaxDAmV.mjs +0 -11
- package/dist/index-liyu2-pP.mjs +0 -30510
- package/dts/src/assets/icons/index.d.ts +0 -0
- package/dts/src/components/WangEditor/index.vue.d.ts +0 -18
- package/dts/src/layout/components/AppMain.vue.d.ts +0 -2
- package/dts/src/layout/components/NavBar/NavRight.vue.d.ts +0 -2
- package/dts/src/layout/components/Sidebar/Item.vue.d.ts +0 -23
- package/dts/src/layout/components/Sidebar/LeftMenu.vue.d.ts +0 -24
- package/dts/src/layout/components/Sidebar/Link.vue.d.ts +0 -19
- package/dts/src/layout/components/Sidebar/Logo.vue.d.ts +0 -12
- package/dts/src/layout/components/Sidebar/SidebarItem.vue.d.ts +0 -42
- package/dts/src/layout/components/Sidebar/TopMenu.vue.d.ts +0 -2
- package/dts/src/layout/components/TagsView/ScrollPane.vue.d.ts +0 -16
- package/dts/src/layout/components/index.d.ts +0 -4
- package/dts/src/layout/main.vue.d.ts +0 -2
- package/dts/src/utils/resize.d.ts +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { defineComponent as ne, markRaw as ve, ref as h, effectScope as ke, shallowRef as Ie, computed as y, watch as ue, nextTick as me, onMounted as pe, openBlock as w, createBlock as ce, Teleport as ze, createVNode as f, Transition as Le, withCtx as L, createElementVNode as p, normalizeClass as v, unref as e, normalizeStyle as de, withModifiers as Ce, createCommentVNode as E, createElementBlock as C, Fragment as ae, resolveDynamicComponent as Ee, renderList as Se, withDirectives as xe, vShow as Ne, renderSlot as te, useAttrs as Oe, toDisplayString as Te, mergeProps as $e } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { i as
|
|
2
|
+
import { aq as Ae, q as Re, b as ge, d as H, R as ye, ar as fe, as as Me, at as Ve, k as we, u as he, au as Be, E as O, y as Ye, av as De, N as Xe, aw as Fe, ax as Pe, ay as He, az as je, _ as be, aA as M, A as R, aB as qe, w as _e, aC as Ke, c as P, aD as We, aE as Ze, g as Ge, aF as Ue } from "./index-Kn7Q3GUp.mjs";
|
|
3
|
+
import { i as Je } from "./position-MRKj9hcz.mjs";
|
|
4
4
|
var Qe = "Expected a function";
|
|
5
|
-
function ie(u, b,
|
|
6
|
-
var S = !0,
|
|
5
|
+
function ie(u, b, s) {
|
|
6
|
+
var S = !0, o = !0;
|
|
7
7
|
if (typeof u != "function")
|
|
8
8
|
throw new TypeError(Qe);
|
|
9
|
-
return Ae(
|
|
9
|
+
return Ae(s) && (S = "leading" in s ? !!s.leading : S, o = "trailing" in s ? !!s.trailing : o), Re(u, b, {
|
|
10
10
|
leading: S,
|
|
11
11
|
maxWait: b,
|
|
12
|
-
trailing:
|
|
12
|
+
trailing: o
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
const et = ge({
|
|
16
16
|
urlList: {
|
|
17
|
-
type:
|
|
17
|
+
type: H(Array),
|
|
18
18
|
default: () => ye([])
|
|
19
19
|
},
|
|
20
20
|
zIndex: {
|
|
@@ -47,7 +47,7 @@ const et = ge({
|
|
|
47
47
|
default: 7
|
|
48
48
|
},
|
|
49
49
|
crossorigin: {
|
|
50
|
-
type:
|
|
50
|
+
type: H(String)
|
|
51
51
|
}
|
|
52
52
|
}), tt = {
|
|
53
53
|
close: () => !0,
|
|
@@ -59,9 +59,9 @@ const et = ge({
|
|
|
59
59
|
...nt,
|
|
60
60
|
props: et,
|
|
61
61
|
emits: tt,
|
|
62
|
-
setup(u, { expose: b, emit:
|
|
62
|
+
setup(u, { expose: b, emit: s }) {
|
|
63
63
|
var S;
|
|
64
|
-
const
|
|
64
|
+
const o = u, g = {
|
|
65
65
|
CONTAIN: {
|
|
66
66
|
name: "contain",
|
|
67
67
|
icon: ve(Me)
|
|
@@ -70,23 +70,23 @@ const et = ge({
|
|
|
70
70
|
name: "original",
|
|
71
71
|
icon: ve(Ve)
|
|
72
72
|
}
|
|
73
|
-
}, { t: le } = we(), i = he("image-viewer"), { nextZIndex: V } = Be(), x = h(), N = h([]), T = ke(), _ = h(!0), c = h(
|
|
73
|
+
}, { t: le } = we(), i = he("image-viewer"), { nextZIndex: V } = Be(), x = h(), N = h([]), T = ke(), _ = h(!0), c = h(o.initialIndex), $ = Ie(g.CONTAIN), l = h({
|
|
74
74
|
scale: 1,
|
|
75
75
|
deg: 0,
|
|
76
76
|
offsetX: 0,
|
|
77
77
|
offsetY: 0,
|
|
78
78
|
enableTransition: !1
|
|
79
|
-
}), B = h((S =
|
|
80
|
-
const { urlList: a } =
|
|
79
|
+
}), B = h((S = o.zIndex) != null ? S : V()), se = y(() => {
|
|
80
|
+
const { urlList: a } = o;
|
|
81
81
|
return a.length <= 1;
|
|
82
|
-
}),
|
|
82
|
+
}), j = y(() => c.value === 0), q = y(() => c.value === o.urlList.length - 1), Y = y(() => o.urlList[c.value]), oe = y(() => [
|
|
83
83
|
i.e("btn"),
|
|
84
84
|
i.e("prev"),
|
|
85
|
-
i.is("disabled", !
|
|
86
|
-
]),
|
|
85
|
+
i.is("disabled", !o.infinite && j.value)
|
|
86
|
+
]), K = y(() => [
|
|
87
87
|
i.e("btn"),
|
|
88
88
|
i.e("next"),
|
|
89
|
-
i.is("disabled", !
|
|
89
|
+
i.is("disabled", !o.infinite && q.value)
|
|
90
90
|
]), D = y(() => {
|
|
91
91
|
const { scale: a, deg: n, offsetX: r, offsetY: k, enableTransition: z } = l.value;
|
|
92
92
|
let m = r / a, I = k / a;
|
|
@@ -111,13 +111,13 @@ const et = ge({
|
|
|
111
111
|
return $.value.name === g.CONTAIN.name && (A.maxWidth = A.maxHeight = "100%"), A;
|
|
112
112
|
});
|
|
113
113
|
function X() {
|
|
114
|
-
|
|
114
|
+
W(), s("close");
|
|
115
115
|
}
|
|
116
116
|
function re() {
|
|
117
117
|
const a = ie((r) => {
|
|
118
118
|
switch (r.code) {
|
|
119
119
|
case R.esc:
|
|
120
|
-
|
|
120
|
+
o.closeOnPressEscape && X();
|
|
121
121
|
break;
|
|
122
122
|
case R.space:
|
|
123
123
|
Q();
|
|
@@ -138,7 +138,7 @@ const et = ge({
|
|
|
138
138
|
}), n = ie((r) => {
|
|
139
139
|
const k = r.deltaY || r.deltaX;
|
|
140
140
|
d(k < 0 ? "zoomIn" : "zoomOut", {
|
|
141
|
-
zoomRate:
|
|
141
|
+
zoomRate: o.zoomRate,
|
|
142
142
|
enableTransition: !1
|
|
143
143
|
});
|
|
144
144
|
});
|
|
@@ -146,16 +146,16 @@ const et = ge({
|
|
|
146
146
|
M(document, "keydown", a), M(document, "wheel", n);
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function W() {
|
|
150
150
|
T.stop();
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Z() {
|
|
153
153
|
_.value = !1;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function G(a) {
|
|
156
156
|
_.value = !1, a.target.alt = le("el.image.error");
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function U(a) {
|
|
159
159
|
if (_.value || a.button !== 0 || !x.value)
|
|
160
160
|
return;
|
|
161
161
|
l.value.enableTransition = !1;
|
|
@@ -170,7 +170,7 @@ const et = ge({
|
|
|
170
170
|
I();
|
|
171
171
|
}), a.preventDefault();
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function J() {
|
|
174
174
|
l.value = {
|
|
175
175
|
scale: 1,
|
|
176
176
|
deg: 0,
|
|
@@ -182,24 +182,24 @@ const et = ge({
|
|
|
182
182
|
function Q() {
|
|
183
183
|
if (_.value)
|
|
184
184
|
return;
|
|
185
|
-
const a =
|
|
186
|
-
$.value = g[a[z]],
|
|
185
|
+
const a = qe(g), n = Object.values(g), r = $.value.name, z = (n.findIndex((m) => m.name === r) + 1) % a.length;
|
|
186
|
+
$.value = g[a[z]], J();
|
|
187
187
|
}
|
|
188
188
|
function F(a) {
|
|
189
|
-
const n =
|
|
189
|
+
const n = o.urlList.length;
|
|
190
190
|
c.value = (a + n) % n;
|
|
191
191
|
}
|
|
192
192
|
function ee() {
|
|
193
|
-
|
|
193
|
+
j.value && !o.infinite || F(c.value - 1);
|
|
194
194
|
}
|
|
195
195
|
function t() {
|
|
196
|
-
|
|
196
|
+
q.value && !o.infinite || F(c.value + 1);
|
|
197
197
|
}
|
|
198
198
|
function d(a, n = {}) {
|
|
199
199
|
if (_.value)
|
|
200
200
|
return;
|
|
201
|
-
const { minScale: r, maxScale: k } =
|
|
202
|
-
zoomRate:
|
|
201
|
+
const { minScale: r, maxScale: k } = o, { zoomRate: z, rotateDeg: m, enableTransition: I } = {
|
|
202
|
+
zoomRate: o.zoomRate,
|
|
203
203
|
rotateDeg: 90,
|
|
204
204
|
enableTransition: !0,
|
|
205
205
|
...n
|
|
@@ -212,10 +212,10 @@ const et = ge({
|
|
|
212
212
|
l.value.scale < k && (l.value.scale = Number.parseFloat((l.value.scale * z).toFixed(3)));
|
|
213
213
|
break;
|
|
214
214
|
case "clockwise":
|
|
215
|
-
l.value.deg += m,
|
|
215
|
+
l.value.deg += m, s("rotate", l.value.deg);
|
|
216
216
|
break;
|
|
217
217
|
case "anticlockwise":
|
|
218
|
-
l.value.deg -= m,
|
|
218
|
+
l.value.deg -= m, s("rotate", l.value.deg);
|
|
219
219
|
break;
|
|
220
220
|
}
|
|
221
221
|
l.value.enableTransition = I;
|
|
@@ -226,7 +226,7 @@ const et = ge({
|
|
|
226
226
|
a != null && a.complete || (_.value = !0);
|
|
227
227
|
});
|
|
228
228
|
}), ue(c, (a) => {
|
|
229
|
-
|
|
229
|
+
J(), s("switch", a);
|
|
230
230
|
}), pe(() => {
|
|
231
231
|
var a, n;
|
|
232
232
|
re(), (n = (a = x.value) == null ? void 0 : a.focus) == null || n.call(a);
|
|
@@ -265,9 +265,9 @@ const et = ge({
|
|
|
265
265
|
})
|
|
266
266
|
], 2),
|
|
267
267
|
E(" ARROW "),
|
|
268
|
-
e(
|
|
268
|
+
e(se) ? E("v-if", !0) : (w(), C(ae, { key: 0 }, [
|
|
269
269
|
p("span", {
|
|
270
|
-
class: v(e(
|
|
270
|
+
class: v(e(oe)),
|
|
271
271
|
onClick: ee
|
|
272
272
|
}, [
|
|
273
273
|
f(e(O), null, {
|
|
@@ -278,7 +278,7 @@ const et = ge({
|
|
|
278
278
|
})
|
|
279
279
|
], 2),
|
|
280
280
|
p("span", {
|
|
281
|
-
class: v(e(
|
|
281
|
+
class: v(e(K)),
|
|
282
282
|
onClick: t
|
|
283
283
|
}, [
|
|
284
284
|
f(e(O), null, {
|
|
@@ -308,7 +308,7 @@ const et = ge({
|
|
|
308
308
|
onClick: n[2] || (n[2] = (r) => d("zoomIn"))
|
|
309
309
|
}, {
|
|
310
310
|
default: L(() => [
|
|
311
|
-
f(e(
|
|
311
|
+
f(e(Pe))
|
|
312
312
|
]),
|
|
313
313
|
_: 1
|
|
314
314
|
}),
|
|
@@ -328,7 +328,7 @@ const et = ge({
|
|
|
328
328
|
onClick: n[3] || (n[3] = (r) => d("anticlockwise"))
|
|
329
329
|
}, {
|
|
330
330
|
default: L(() => [
|
|
331
|
-
f(e(
|
|
331
|
+
f(e(He))
|
|
332
332
|
]),
|
|
333
333
|
_: 1
|
|
334
334
|
}),
|
|
@@ -336,7 +336,7 @@ const et = ge({
|
|
|
336
336
|
onClick: n[4] || (n[4] = (r) => d("clockwise"))
|
|
337
337
|
}, {
|
|
338
338
|
default: L(() => [
|
|
339
|
-
f(e(
|
|
339
|
+
f(e(je))
|
|
340
340
|
]),
|
|
341
341
|
_: 1
|
|
342
342
|
})
|
|
@@ -354,9 +354,9 @@ const et = ge({
|
|
|
354
354
|
style: de(e(D)),
|
|
355
355
|
class: v(e(i).e("img")),
|
|
356
356
|
crossorigin: a.crossorigin,
|
|
357
|
-
onLoad:
|
|
358
|
-
onError:
|
|
359
|
-
onMousedown:
|
|
357
|
+
onLoad: Z,
|
|
358
|
+
onError: G,
|
|
359
|
+
onMousedown: U
|
|
360
360
|
}, null, 46, at)), [
|
|
361
361
|
[Ne, k === c.value]
|
|
362
362
|
])), 128))
|
|
@@ -369,8 +369,8 @@ const et = ge({
|
|
|
369
369
|
], 8, ["disabled"]));
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
|
-
var
|
|
373
|
-
const
|
|
372
|
+
var st = /* @__PURE__ */ be(lt, [["__file", "image-viewer.vue"]]);
|
|
373
|
+
const ot = _e(st), rt = ge({
|
|
374
374
|
hideOnClickModal: Boolean,
|
|
375
375
|
src: {
|
|
376
376
|
type: String,
|
|
@@ -387,10 +387,10 @@ const st = _e(ot), rt = ge({
|
|
|
387
387
|
},
|
|
388
388
|
lazy: Boolean,
|
|
389
389
|
scrollContainer: {
|
|
390
|
-
type:
|
|
390
|
+
type: H([String, Object])
|
|
391
391
|
},
|
|
392
392
|
previewSrcList: {
|
|
393
|
-
type:
|
|
393
|
+
type: H(Array),
|
|
394
394
|
default: () => ye([])
|
|
395
395
|
},
|
|
396
396
|
previewTeleported: Boolean,
|
|
@@ -422,7 +422,7 @@ const st = _e(ot), rt = ge({
|
|
|
422
422
|
default: 7
|
|
423
423
|
},
|
|
424
424
|
crossorigin: {
|
|
425
|
-
type:
|
|
425
|
+
type: H(String)
|
|
426
426
|
}
|
|
427
427
|
}), it = {
|
|
428
428
|
load: (u) => u instanceof Event,
|
|
@@ -438,26 +438,26 @@ const st = _e(ot), rt = ge({
|
|
|
438
438
|
props: rt,
|
|
439
439
|
emits: it,
|
|
440
440
|
setup(u, { emit: b }) {
|
|
441
|
-
const
|
|
441
|
+
const s = u;
|
|
442
442
|
let S = "";
|
|
443
|
-
const { t:
|
|
443
|
+
const { t: o } = we(), g = he("image"), le = Oe(), i = Ke(), V = h(), x = h(!1), N = h(!0), T = h(!1), _ = h(), c = h(), $ = P && "loading" in HTMLImageElement.prototype;
|
|
444
444
|
let l, B;
|
|
445
|
-
const
|
|
445
|
+
const se = y(() => [
|
|
446
446
|
g.e("inner"),
|
|
447
447
|
Y.value && g.e("preview"),
|
|
448
448
|
N.value && g.is("loading")
|
|
449
|
-
]),
|
|
450
|
-
const { fit: t } =
|
|
451
|
-
return
|
|
449
|
+
]), j = y(() => le.style), q = y(() => {
|
|
450
|
+
const { fit: t } = s;
|
|
451
|
+
return P && t ? { objectFit: t } : {};
|
|
452
452
|
}), Y = y(() => {
|
|
453
|
-
const { previewSrcList: t } =
|
|
453
|
+
const { previewSrcList: t } = s;
|
|
454
454
|
return Array.isArray(t) && t.length > 0;
|
|
455
|
-
}),
|
|
456
|
-
const { previewSrcList: t, initialIndex: d } =
|
|
455
|
+
}), oe = y(() => {
|
|
456
|
+
const { previewSrcList: t, initialIndex: d } = s;
|
|
457
457
|
let a = d;
|
|
458
458
|
return d > t.length - 1 && (a = 0), a;
|
|
459
|
-
}),
|
|
460
|
-
|
|
459
|
+
}), K = y(() => s.loading === "eager" ? !1 : !$ && s.loading === "lazy" || s.lazy), D = () => {
|
|
460
|
+
P && (N.value = !0, x.value = !1, V.value = s.src);
|
|
461
461
|
};
|
|
462
462
|
function X(t) {
|
|
463
463
|
N.value = !1, x.value = !1, b("load", t);
|
|
@@ -465,22 +465,22 @@ const st = _e(ot), rt = ge({
|
|
|
465
465
|
function re(t) {
|
|
466
466
|
N.value = !1, x.value = !0, b("error", t);
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
|
|
468
|
+
function W() {
|
|
469
|
+
Je(_.value, c.value) && (D(), U());
|
|
470
470
|
}
|
|
471
|
-
const
|
|
472
|
-
async function
|
|
471
|
+
const Z = We(W, 200, !0);
|
|
472
|
+
async function G() {
|
|
473
473
|
var t;
|
|
474
|
-
if (!
|
|
474
|
+
if (!P)
|
|
475
475
|
return;
|
|
476
476
|
await me();
|
|
477
|
-
const { scrollContainer: d } =
|
|
478
|
-
|
|
477
|
+
const { scrollContainer: d } = s;
|
|
478
|
+
Ze(d) ? c.value = d : Ge(d) && d !== "" ? c.value = (t = document.querySelector(d)) != null ? t : void 0 : _.value && (c.value = Ue(_.value)), c.value && (l = M(c, "scroll", Z), setTimeout(() => W(), 100));
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
!
|
|
480
|
+
function U() {
|
|
481
|
+
!P || !c.value || !Z || (l == null || l(), c.value = void 0);
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function J(t) {
|
|
484
484
|
if (t.ctrlKey) {
|
|
485
485
|
if (t.deltaY < 0)
|
|
486
486
|
return t.preventDefault(), !1;
|
|
@@ -489,7 +489,7 @@ const st = _e(ot), rt = ge({
|
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
function Q() {
|
|
492
|
-
Y.value && (B = M("wheel",
|
|
492
|
+
Y.value && (B = M("wheel", J, {
|
|
493
493
|
passive: !1
|
|
494
494
|
}), S = document.body.style.overflow, document.body.style.overflow = "hidden", T.value = !0, b("show"));
|
|
495
495
|
}
|
|
@@ -499,26 +499,26 @@ const st = _e(ot), rt = ge({
|
|
|
499
499
|
function ee(t) {
|
|
500
500
|
b("switch", t);
|
|
501
501
|
}
|
|
502
|
-
return ue(() =>
|
|
503
|
-
|
|
502
|
+
return ue(() => s.src, () => {
|
|
503
|
+
K.value ? (N.value = !0, x.value = !1, U(), G()) : D();
|
|
504
504
|
}), pe(() => {
|
|
505
|
-
|
|
505
|
+
K.value ? G() : D();
|
|
506
506
|
}), (t, d) => (w(), C("div", {
|
|
507
507
|
ref_key: "container",
|
|
508
508
|
ref: _,
|
|
509
509
|
class: v([e(g).b(), t.$attrs.class]),
|
|
510
|
-
style: de(e(
|
|
510
|
+
style: de(e(j))
|
|
511
511
|
}, [
|
|
512
512
|
x.value ? te(t.$slots, "error", { key: 0 }, () => [
|
|
513
513
|
p("div", {
|
|
514
514
|
class: v(e(g).e("error"))
|
|
515
|
-
}, Te(e(
|
|
515
|
+
}, Te(e(o)("el.image.error")), 3)
|
|
516
516
|
]) : (w(), C(ae, { key: 1 }, [
|
|
517
517
|
V.value !== void 0 ? (w(), C("img", $e({ key: 0 }, e(i), {
|
|
518
518
|
src: V.value,
|
|
519
519
|
loading: t.loading,
|
|
520
|
-
style: e(
|
|
521
|
-
class: e(
|
|
520
|
+
style: e(q),
|
|
521
|
+
class: e(se),
|
|
522
522
|
crossorigin: t.crossorigin,
|
|
523
523
|
onClick: Q,
|
|
524
524
|
onLoad: X,
|
|
@@ -536,10 +536,10 @@ const st = _e(ot), rt = ge({
|
|
|
536
536
|
], 2)) : E("v-if", !0)
|
|
537
537
|
], 64)),
|
|
538
538
|
e(Y) ? (w(), C(ae, { key: 2 }, [
|
|
539
|
-
T.value ? (w(), ce(e(
|
|
539
|
+
T.value ? (w(), ce(e(ot), {
|
|
540
540
|
key: 0,
|
|
541
541
|
"z-index": t.zIndex,
|
|
542
|
-
"initial-index": e(
|
|
542
|
+
"initial-index": e(oe),
|
|
543
543
|
infinite: t.infinite,
|
|
544
544
|
"zoom-rate": t.zoomRate,
|
|
545
545
|
"min-scale": t.minScale,
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as
|
|
3
|
-
import { E as
|
|
4
|
-
import { E as
|
|
5
|
-
import "./el-form-item
|
|
6
|
-
import { defineComponent as
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
|
|
1
|
+
import { $ as A, aG as B, aH as F, aI as P, E as q, s as z, aJ as G, t as T, a4 as H } from "./index-Kn7Q3GUp.mjs";
|
|
2
|
+
import { E as L } from "./el-date-picker-B6dLs8du.mjs";
|
|
3
|
+
import { E as O, a as K } from "./el-col-CpkHzVh2.mjs";
|
|
4
|
+
import { E as Q } from "./el-tree-select-DpKRTcZJ.mjs";
|
|
5
|
+
import { E as W, a as X } from "./el-form-item--x5GHc7n.mjs";
|
|
6
|
+
import { defineComponent as Z, ref as c, reactive as x, resolveComponent as y, openBlock as p, createElementBlock as I, createVNode as t, unref as a, withCtx as l, createElementVNode as m, toDisplayString as k, Fragment as ee, renderList as te, createBlock as v, createCommentVNode as oe, createTextVNode as le } from "vue";
|
|
7
|
+
import { ElMessage as ae } from "element-plus";
|
|
8
|
+
import { t as se } from "./index-CzQLCV1q.mjs";
|
|
9
|
+
import { t as re } from "./index-B8Bjod4Z.mjs";
|
|
10
|
+
const ne = { class: "app-container" }, ue = { class: "positon_name" }, de = { style: { position: "absolute", right: "0", top: "0" } }, pe = /* @__PURE__ */ Z({
|
|
10
11
|
__name: "profile",
|
|
11
12
|
setup(me) {
|
|
12
13
|
const g = c(), _ = c(), f = c();
|
|
13
|
-
let e =
|
|
14
|
+
let e = x({
|
|
14
15
|
user: {
|
|
15
|
-
tenant:
|
|
16
|
+
tenant: A().user.tenant,
|
|
16
17
|
requestId: Math.random() * 10 + "",
|
|
17
18
|
updateMask: "nickName,gender,birthDate,realName,avatar",
|
|
18
19
|
userJobs: [
|
|
@@ -24,7 +25,7 @@ const ne = { class: "app-container" }, ue = { class: "positon_name" }, de = { st
|
|
|
24
25
|
}
|
|
25
26
|
});
|
|
26
27
|
function E() {
|
|
27
|
-
|
|
28
|
+
B().then(({ data: o }) => {
|
|
28
29
|
var s;
|
|
29
30
|
e.user = Object.assign(e.user, { ...o }), ((s = e.user.userJobs) == null ? void 0 : s.length) === 0 && (e.user.userJobs = [
|
|
30
31
|
{
|
|
@@ -38,14 +39,14 @@ const ne = { class: "app-container" }, ue = { class: "positon_name" }, de = { st
|
|
|
38
39
|
f.value = o.results;
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function J() {
|
|
42
43
|
var o;
|
|
43
44
|
e.user.userJobs && e.user.userJobs.length < 5 && ((o = e.user.userJobs) == null || o.push({
|
|
44
45
|
deptId: "",
|
|
45
46
|
jobId: ""
|
|
46
47
|
}));
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function U(o) {
|
|
49
50
|
var s;
|
|
50
51
|
(s = e.user.userJobs) == null || s.splice(o, 1);
|
|
51
52
|
}
|
|
@@ -53,15 +54,15 @@ const ne = { class: "app-container" }, ue = { class: "positon_name" }, de = { st
|
|
|
53
54
|
e.user.avatar = o;
|
|
54
55
|
}
|
|
55
56
|
const C = () => {
|
|
56
|
-
|
|
57
|
-
o.status === 200 &&
|
|
57
|
+
F(e.user).then((o) => {
|
|
58
|
+
o.status === 200 && ae({
|
|
58
59
|
message: "个人信息修改成功",
|
|
59
60
|
type: "success"
|
|
60
61
|
});
|
|
61
62
|
});
|
|
62
63
|
};
|
|
63
64
|
return E(), (o, s) => {
|
|
64
|
-
const D = P, r =
|
|
65
|
+
const D = P, r = W, b = Q, i = O, $ = y("Remove"), h = q, j = K, w = y("CirclePlus"), V = z, R = G, Y = L, M = T, S = X;
|
|
65
66
|
return p(), I("div", ne, [
|
|
66
67
|
t(S, {
|
|
67
68
|
ref_key: "userInfoRef",
|
|
@@ -92,7 +93,7 @@ const ne = { class: "app-container" }, ue = { class: "positon_name" }, de = { st
|
|
|
92
93
|
_: 1
|
|
93
94
|
}),
|
|
94
95
|
m("div", ue, [
|
|
95
|
-
(p(!0), I(
|
|
96
|
+
(p(!0), I(ee, null, te(a(e).user.userJobs, (u, n) => (p(), v(j, {
|
|
96
97
|
key: n,
|
|
97
98
|
style: { width: "100%" }
|
|
98
99
|
}, {
|
|
@@ -151,26 +152,26 @@ const ne = { class: "app-container" }, ue = { class: "positon_name" }, de = { st
|
|
|
151
152
|
default: l(() => [
|
|
152
153
|
t(h, {
|
|
153
154
|
size: "16",
|
|
154
|
-
onClick: (d) =>
|
|
155
|
+
onClick: (d) => U(n)
|
|
155
156
|
}, {
|
|
156
157
|
default: l(() => [
|
|
157
|
-
t(
|
|
158
|
+
t($)
|
|
158
159
|
]),
|
|
159
160
|
_: 2
|
|
160
161
|
}, 1032, ["onClick"])
|
|
161
162
|
]),
|
|
162
163
|
_: 2
|
|
163
|
-
}, 1024)) :
|
|
164
|
+
}, 1024)) : oe("", !0)
|
|
164
165
|
]),
|
|
165
166
|
_: 2
|
|
166
167
|
}, 1024))), 128)),
|
|
167
168
|
m("div", de, [
|
|
168
169
|
t(h, {
|
|
169
170
|
size: "16",
|
|
170
|
-
onClick:
|
|
171
|
+
onClick: J
|
|
171
172
|
}, {
|
|
172
173
|
default: l(() => [
|
|
173
|
-
t(
|
|
174
|
+
t(w)
|
|
174
175
|
]),
|
|
175
176
|
_: 1
|
|
176
177
|
})
|
|
@@ -209,7 +210,7 @@ const ne = { class: "app-container" }, ue = { class: "positon_name" }, de = { st
|
|
|
209
210
|
prop: "gender"
|
|
210
211
|
}, {
|
|
211
212
|
default: l(() => [
|
|
212
|
-
t(
|
|
213
|
+
t(R, {
|
|
213
214
|
modelValue: a(e).user.gender,
|
|
214
215
|
"onUpdate:modelValue": s[2] || (s[2] = (u) => a(e).user.gender = u),
|
|
215
216
|
placeholder: "请选择性别",
|
|
@@ -223,7 +224,7 @@ const ne = { class: "app-container" }, ue = { class: "positon_name" }, de = { st
|
|
|
223
224
|
prop: "birthDate"
|
|
224
225
|
}, {
|
|
225
226
|
default: l(() => [
|
|
226
|
-
t(
|
|
227
|
+
t(Y, {
|
|
227
228
|
modelValue: a(e).user.birthDate,
|
|
228
229
|
"onUpdate:modelValue": s[3] || (s[3] = (u) => a(e).user.birthDate = u),
|
|
229
230
|
type: "date",
|
|
@@ -237,12 +238,12 @@ const ne = { class: "app-container" }, ue = { class: "positon_name" }, de = { st
|
|
|
237
238
|
}),
|
|
238
239
|
t(r, null, {
|
|
239
240
|
default: l(() => [
|
|
240
|
-
t(
|
|
241
|
+
t(M, {
|
|
241
242
|
type: "primary",
|
|
242
243
|
onClick: C
|
|
243
244
|
}, {
|
|
244
245
|
default: l(() => [
|
|
245
|
-
|
|
246
|
+
le("保存")
|
|
246
247
|
]),
|
|
247
248
|
_: 1
|
|
248
249
|
})
|
|
@@ -255,7 +256,7 @@ const ne = { class: "app-container" }, ue = { class: "positon_name" }, de = { st
|
|
|
255
256
|
]);
|
|
256
257
|
};
|
|
257
258
|
}
|
|
258
|
-
}),
|
|
259
|
+
}), ke = /* @__PURE__ */ H(pe, [["__scopeId", "data-v-8374010b"]]);
|
|
259
260
|
export {
|
|
260
|
-
|
|
261
|
+
ke as default
|
|
261
262
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineComponent as k, ref as c, useModel as y, reactive as
|
|
3
|
-
|
|
1
|
+
import { aN as _, $ as o, aO as g, aP as w, X as C, aQ as v, ap as x } from "./index-Kn7Q3GUp.mjs";
|
|
2
|
+
import { defineComponent as k, ref as c, useModel as y, reactive as V, resolveDirective as B, openBlock as m, createBlock as N, withCtx as d, createVNode as T, unref as i, withDirectives as U, createElementBlock as E, createTextVNode as I } from "vue";
|
|
3
|
+
import { E as P } from "./index-iYRVwor-.mjs";
|
|
4
|
+
const D = ["onClick"], L = /* @__PURE__ */ k({
|
|
4
5
|
__name: "runAs",
|
|
5
6
|
props: {
|
|
6
7
|
modelValue: { type: Boolean },
|
|
@@ -8,7 +9,7 @@ const M = ["onClick"], S = /* @__PURE__ */ k({
|
|
|
8
9
|
},
|
|
9
10
|
emits: ["update:modelValue"],
|
|
10
11
|
setup(p) {
|
|
11
|
-
const l = c(!1), u = c([]), a = y(p, "modelValue"), b =
|
|
12
|
+
const l = c(!1), u = c([]), a = y(p, "modelValue"), b = V([
|
|
12
13
|
{
|
|
13
14
|
label: "用户名",
|
|
14
15
|
prop: "loginName",
|
|
@@ -56,16 +57,16 @@ const M = ["onClick"], S = /* @__PURE__ */ k({
|
|
|
56
57
|
console.log(e), l.value = !1, u.value = e.results;
|
|
57
58
|
});
|
|
58
59
|
function f(e) {
|
|
59
|
-
|
|
60
|
+
P.confirm("确定切换用户身份吗?", "提示", {
|
|
60
61
|
confirmButtonText: "确定",
|
|
61
62
|
cancelButtonText: "取消",
|
|
62
63
|
type: "warning"
|
|
63
64
|
}).then(() => {
|
|
64
|
-
console.log(
|
|
65
|
-
if (
|
|
66
|
-
|
|
67
|
-
const { roleCodes: s } = await
|
|
68
|
-
await
|
|
65
|
+
console.log(o()), g(e.userId).then(async (t) => {
|
|
66
|
+
if (t.status === 200) {
|
|
67
|
+
o().user.roleCodes = [], o().user.permCodes = [];
|
|
68
|
+
const { roleCodes: s } = await o().getRoleInfo(), n = await o().getUserInfo();
|
|
69
|
+
await w().generateRoutes(s, n), C({
|
|
69
70
|
message: "切换成功",
|
|
70
71
|
type: "success"
|
|
71
72
|
}), a.value = !1;
|
|
@@ -73,16 +74,16 @@ const M = ["onClick"], S = /* @__PURE__ */ k({
|
|
|
73
74
|
});
|
|
74
75
|
});
|
|
75
76
|
}
|
|
76
|
-
return (e,
|
|
77
|
-
const s =
|
|
78
|
-
return m(),
|
|
77
|
+
return (e, t) => {
|
|
78
|
+
const s = v, n = x, h = B("hasPerm");
|
|
79
|
+
return m(), N(n, {
|
|
79
80
|
title: "切换身份",
|
|
80
81
|
modelValue: a.value,
|
|
81
|
-
"onUpdate:modelValue":
|
|
82
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => a.value = r),
|
|
82
83
|
width: "700px"
|
|
83
84
|
}, {
|
|
84
85
|
default: d(() => [
|
|
85
|
-
|
|
86
|
+
T(s, {
|
|
86
87
|
class: "table-top",
|
|
87
88
|
ref: "multipleTableRef",
|
|
88
89
|
"row-keys": "userId",
|
|
@@ -91,12 +92,12 @@ const M = ["onClick"], S = /* @__PURE__ */ k({
|
|
|
91
92
|
"table-label": i(b)
|
|
92
93
|
}, {
|
|
93
94
|
operation: d((r) => [
|
|
94
|
-
|
|
95
|
+
U((m(), E("span", {
|
|
95
96
|
class: "el-button-color",
|
|
96
|
-
onClick: (
|
|
97
|
+
onClick: (M) => f(r.data.row)
|
|
97
98
|
}, [
|
|
98
|
-
|
|
99
|
-
], 8,
|
|
99
|
+
I(" 切换 ")
|
|
100
|
+
], 8, D)), [
|
|
100
101
|
[h, ["rbac:user:switch"]]
|
|
101
102
|
])
|
|
102
103
|
]),
|
|
@@ -109,5 +110,5 @@ const M = ["onClick"], S = /* @__PURE__ */ k({
|
|
|
109
110
|
}
|
|
110
111
|
});
|
|
111
112
|
export {
|
|
112
|
-
|
|
113
|
+
L as _
|
|
113
114
|
};
|