st-comp 0.0.201 → 0.0.203
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/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +5 -4
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +333 -321
- package/es/KlinePlus.cjs +4 -4
- package/es/KlinePlus.js +587 -570
- package/es/Table.cjs +1 -1
- package/es/Table.js +12 -11
- package/es/User.cjs +1 -1
- package/es/User.js +609 -565
- package/es/VarietySearch.cjs +7 -7
- package/es/VarietySearch.js +18 -17
- package/es/el-checkbox-7421ccd3.js +459 -0
- package/es/el-checkbox-c25236a6.cjs +1 -0
- package/es/el-table-column-376cd907.js +3432 -0
- package/es/el-table-column-c974cb96.cjs +14 -0
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +152 -152
- package/lib/{index-c0ce50bc.js → index-233becad.js} +11438 -11366
- package/lib/{python-9dae326e.js → python-5d251ebd.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineConfig/config.js +2 -0
- package/packages/KlineConfig/index.vue +9 -0
- package/packages/KlinePlus/index.vue +8 -8
- package/packages/KlinePlus/utils.js +41 -5
- package/packages/User/components/EditInfoDialog/Mobile.vue +83 -3
- package/es/el-table-column-079b76f5.cjs +0 -14
- package/es/el-table-column-72c50d58.js +0 -3882
package/es/User.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { b as Be, e as
|
|
2
|
-
import { E as
|
|
3
|
-
import { a as
|
|
1
|
+
import { b as Be, e as ie, _ as z, u as ue, n as Me, w as Ae, l as Ee } from "./base-a5af3db3.js";
|
|
2
|
+
import { E as J } from "./el-button-c95adb85.js";
|
|
3
|
+
import { a as S, h as O, E as Ue, O as Ge, w as be, F as ze } from "./el-popper-b4f97157.js";
|
|
4
4
|
import "./el-scrollbar-323542e7.js";
|
|
5
|
-
import { defineComponent as L, ref as y, inject as
|
|
6
|
-
import { E as ce, f as
|
|
5
|
+
import { defineComponent as L, ref as y, inject as P, computed as k, provide as Q, readonly as Le, toRef as W, unref as h, watch as Ye, renderSlot as M, resolveComponent as R, openBlock as C, createBlock as V, withCtx as l, createVNode as t, normalizeProps as He, guardReactiveProps as qe, getCurrentInstance as Ce, createElementBlock as K, normalizeClass as X, createSlots as Je, mergeProps as ee, createCommentVNode as oe, nextTick as de, Fragment as Pe, createElementVNode as ne, withModifiers as q, resolveDynamicComponent as je, normalizeStyle as We, reactive as A, createTextVNode as T, toDisplayString as Z, withKeys as $e } from "vue";
|
|
6
|
+
import { E as ce, f as Fe, u as Ze, r as Qe } from "./index-a871c3eb.js";
|
|
7
7
|
import { R as pe, V as Xe, A as xe, K as eo } from "./index-7ed0999e.js";
|
|
8
|
-
import { c as he, E as
|
|
8
|
+
import { c as he, E as te } from "./el-dialog-41ab8417.js";
|
|
9
9
|
import "./el-overlay-09ad71cd.js";
|
|
10
|
-
import { a as
|
|
11
|
-
import { E as
|
|
10
|
+
import { a as le, E as se } from "./el-form-item-c53c374d.js";
|
|
11
|
+
import { E as re } from "./el-input-2f75c4ba.js";
|
|
12
12
|
import { E as Re } from "./el-text-ac60d0f2.js";
|
|
13
|
-
import { E as
|
|
13
|
+
import { E as H } from "./el-message-e544a8f5.js";
|
|
14
14
|
import { _ as me } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
15
|
import { P as Te } from "./index-1f7d4f70.js";
|
|
16
16
|
import { E as oo } from "./index-844bdd85.js";
|
|
17
17
|
import { c as no, e as to } from "./use-form-common-props-815d48a6.js";
|
|
18
|
-
import { c as lo, E as
|
|
18
|
+
import { c as lo, E as so, d as ro, a as ke, C as ao, b as io, e as uo, f as co, g as po, F as mo, L as fo } from "./dropdown-a59bba73.js";
|
|
19
19
|
import { u as vo } from "./index-d77a7336.js";
|
|
20
20
|
import { u as Se } from "./index-960806da.js";
|
|
21
21
|
import { c as _o } from "./castArray-7741a212.js";
|
|
@@ -30,9 +30,9 @@ import "./typescript-7ae59c4c.js";
|
|
|
30
30
|
import "./index-d91dc23f.js";
|
|
31
31
|
import "./config-provider-b16efd62.js";
|
|
32
32
|
const wo = Be({
|
|
33
|
-
style: { type:
|
|
33
|
+
style: { type: ie([String, Array, Object]) },
|
|
34
34
|
currentTabId: {
|
|
35
|
-
type:
|
|
35
|
+
type: ie(String)
|
|
36
36
|
},
|
|
37
37
|
defaultCurrentTabId: String,
|
|
38
38
|
loop: Boolean,
|
|
@@ -42,7 +42,7 @@ const wo = Be({
|
|
|
42
42
|
default: "ltr"
|
|
43
43
|
},
|
|
44
44
|
orientation: {
|
|
45
|
-
type:
|
|
45
|
+
type: ie(String)
|
|
46
46
|
},
|
|
47
47
|
onBlur: Function,
|
|
48
48
|
onFocus: Function,
|
|
@@ -61,90 +61,90 @@ const wo = Be({
|
|
|
61
61
|
Home: "first",
|
|
62
62
|
PageDown: "last",
|
|
63
63
|
End: "last"
|
|
64
|
-
}, Eo = (e,
|
|
65
|
-
if (
|
|
64
|
+
}, Eo = (e, c) => {
|
|
65
|
+
if (c !== "rtl")
|
|
66
66
|
return e;
|
|
67
67
|
switch (e) {
|
|
68
|
-
case
|
|
69
|
-
return
|
|
70
|
-
case
|
|
71
|
-
return
|
|
68
|
+
case S.right:
|
|
69
|
+
return S.left;
|
|
70
|
+
case S.left:
|
|
71
|
+
return S.right;
|
|
72
72
|
default:
|
|
73
73
|
return e;
|
|
74
74
|
}
|
|
75
|
-
}, Co = (e,
|
|
76
|
-
const
|
|
77
|
-
if (!(
|
|
78
|
-
return Io[
|
|
79
|
-
}, Po = (e,
|
|
80
|
-
const { activeElement:
|
|
81
|
-
for (const
|
|
82
|
-
if (
|
|
75
|
+
}, Co = (e, c, m) => {
|
|
76
|
+
const s = Eo(e.code, m);
|
|
77
|
+
if (!(c === "vertical" && [S.left, S.right].includes(s)) && !(c === "horizontal" && [S.up, S.down].includes(s)))
|
|
78
|
+
return Io[s];
|
|
79
|
+
}, Po = (e, c) => e.map((m, s) => e[(s + c) % e.length]), _e = (e) => {
|
|
80
|
+
const { activeElement: c } = document;
|
|
81
|
+
for (const m of e)
|
|
82
|
+
if (m === c || (m.focus(), c !== document.activeElement))
|
|
83
83
|
return;
|
|
84
|
-
}, ye = "currentTabIdChange", Ie = "rovingFocusGroup.entryFocus",
|
|
84
|
+
}, ye = "currentTabIdChange", Ie = "rovingFocusGroup.entryFocus", $o = { bubbles: !1, cancelable: !0 }, Fo = L({
|
|
85
85
|
name: "ElRovingFocusGroupImpl",
|
|
86
86
|
inheritAttrs: !1,
|
|
87
87
|
props: wo,
|
|
88
88
|
emits: [ye, "entryFocus"],
|
|
89
|
-
setup(e, { emit:
|
|
90
|
-
var
|
|
91
|
-
const
|
|
89
|
+
setup(e, { emit: c }) {
|
|
90
|
+
var m;
|
|
91
|
+
const s = y((m = e.currentTabId || e.defaultCurrentTabId) != null ? m : null), f = y(!1), u = y(!1), i = y(), { getItems: d } = P(fe, void 0), w = k(() => [
|
|
92
92
|
{
|
|
93
93
|
outline: "none"
|
|
94
94
|
},
|
|
95
95
|
e.style
|
|
96
|
-
]),
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
|
|
96
|
+
]), b = (v) => {
|
|
97
|
+
c(ye, v);
|
|
98
|
+
}, r = () => {
|
|
99
|
+
f.value = !0;
|
|
100
100
|
}, o = O((v) => {
|
|
101
|
-
var
|
|
102
|
-
(
|
|
101
|
+
var g;
|
|
102
|
+
(g = e.onMousedown) == null || g.call(e, v);
|
|
103
103
|
}, () => {
|
|
104
|
-
|
|
105
|
-
}),
|
|
106
|
-
var
|
|
107
|
-
(
|
|
104
|
+
u.value = !0;
|
|
105
|
+
}), a = O((v) => {
|
|
106
|
+
var g;
|
|
107
|
+
(g = e.onFocus) == null || g.call(e, v);
|
|
108
108
|
}, (v) => {
|
|
109
|
-
const
|
|
110
|
-
if (
|
|
111
|
-
const
|
|
112
|
-
if (E == null || E.dispatchEvent(
|
|
113
|
-
const
|
|
109
|
+
const g = !h(u), { target: _, currentTarget: E } = v;
|
|
110
|
+
if (_ === E && g && !h(f)) {
|
|
111
|
+
const B = new Event(Ie, $o);
|
|
112
|
+
if (E == null || E.dispatchEvent(B), !B.defaultPrevented) {
|
|
113
|
+
const $ = d().filter((N) => N.focusable), F = $.find((N) => N.active), D = $.find((N) => N.id === h(s)), G = [F, D, ...$].filter(Boolean).map((N) => N.ref);
|
|
114
114
|
_e(G);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
|
|
118
|
-
}),
|
|
119
|
-
var
|
|
120
|
-
(
|
|
117
|
+
u.value = !1;
|
|
118
|
+
}), n = O((v) => {
|
|
119
|
+
var g;
|
|
120
|
+
(g = e.onBlur) == null || g.call(e, v);
|
|
121
121
|
}, () => {
|
|
122
|
-
|
|
123
|
-
}),
|
|
124
|
-
|
|
122
|
+
f.value = !1;
|
|
123
|
+
}), p = (...v) => {
|
|
124
|
+
c("entryFocus", ...v);
|
|
125
125
|
};
|
|
126
|
-
|
|
127
|
-
currentTabbedId: Le(
|
|
128
|
-
loop:
|
|
129
|
-
tabIndex:
|
|
126
|
+
Q(ve, {
|
|
127
|
+
currentTabbedId: Le(s),
|
|
128
|
+
loop: W(e, "loop"),
|
|
129
|
+
tabIndex: k(() => h(f) ? -1 : 0),
|
|
130
130
|
rovingFocusGroupRef: i,
|
|
131
|
-
rovingFocusGroupRootStyle:
|
|
132
|
-
orientation:
|
|
133
|
-
dir:
|
|
134
|
-
onItemFocus:
|
|
135
|
-
onItemShiftTab:
|
|
136
|
-
onBlur:
|
|
137
|
-
onFocus:
|
|
131
|
+
rovingFocusGroupRootStyle: w,
|
|
132
|
+
orientation: W(e, "orientation"),
|
|
133
|
+
dir: W(e, "dir"),
|
|
134
|
+
onItemFocus: b,
|
|
135
|
+
onItemShiftTab: r,
|
|
136
|
+
onBlur: n,
|
|
137
|
+
onFocus: a,
|
|
138
138
|
onMousedown: o
|
|
139
139
|
}), Ye(() => e.currentTabId, (v) => {
|
|
140
|
-
|
|
141
|
-
}), no(i, Ie,
|
|
140
|
+
s.value = v ?? null;
|
|
141
|
+
}), no(i, Ie, p);
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
|
-
function ho(e,
|
|
145
|
-
return
|
|
144
|
+
function ho(e, c, m, s, f, u) {
|
|
145
|
+
return M(e.$slots, "default");
|
|
146
146
|
}
|
|
147
|
-
var Ro = /* @__PURE__ */ z(
|
|
147
|
+
var Ro = /* @__PURE__ */ z(Fo, [["render", ho], ["__file", "roving-focus-group-impl.vue"]]);
|
|
148
148
|
const To = L({
|
|
149
149
|
name: "ElRovingFocusGroup",
|
|
150
150
|
components: {
|
|
@@ -152,13 +152,13 @@ const To = L({
|
|
|
152
152
|
ElRovingFocusGroupImpl: Ro
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
|
-
function ko(e,
|
|
156
|
-
const i =
|
|
157
|
-
return
|
|
158
|
-
default:
|
|
159
|
-
|
|
160
|
-
default:
|
|
161
|
-
|
|
155
|
+
function ko(e, c, m, s, f, u) {
|
|
156
|
+
const i = R("el-roving-focus-group-impl"), d = R("el-focus-group-collection");
|
|
157
|
+
return C(), V(d, null, {
|
|
158
|
+
default: l(() => [
|
|
159
|
+
t(i, He(qe(e.$attrs)), {
|
|
160
|
+
default: l(() => [
|
|
161
|
+
M(e.$slots, "default")
|
|
162
162
|
]),
|
|
163
163
|
_: 3
|
|
164
164
|
}, 16)
|
|
@@ -167,118 +167,118 @@ function ko(e, d, f, a, p, c) {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
var So = /* @__PURE__ */ z(To, [["render", ko], ["__file", "roving-focus-group.vue"]]);
|
|
170
|
-
const
|
|
170
|
+
const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No = L({
|
|
171
171
|
name: "ElDropdown",
|
|
172
172
|
components: {
|
|
173
|
-
ElButton:
|
|
173
|
+
ElButton: J,
|
|
174
174
|
ElButtonGroup: Do,
|
|
175
175
|
ElScrollbar: oo,
|
|
176
|
-
ElDropdownCollection:
|
|
176
|
+
ElDropdownCollection: so,
|
|
177
177
|
ElTooltip: Ue,
|
|
178
178
|
ElRovingFocusGroup: So,
|
|
179
179
|
ElOnlyChild: Ge,
|
|
180
180
|
ElIcon: ce,
|
|
181
|
-
ArrowDown:
|
|
181
|
+
ArrowDown: Fe
|
|
182
182
|
},
|
|
183
|
-
props:
|
|
183
|
+
props: ro,
|
|
184
184
|
emits: ["visible-change", "click", "command"],
|
|
185
|
-
setup(e, { emit:
|
|
186
|
-
const
|
|
185
|
+
setup(e, { emit: c }) {
|
|
186
|
+
const m = Ce(), s = ue("dropdown"), { t: f } = vo(), u = y(), i = y(), d = y(), w = y(), b = y(null), r = y(null), o = y(!1), a = k(() => ({
|
|
187
187
|
maxHeight: Me(e.maxHeight)
|
|
188
|
-
})),
|
|
189
|
-
function
|
|
188
|
+
})), n = k(() => [s.m($.value)]), p = k(() => _o(e.trigger)), v = Se().value, g = k(() => e.id || v);
|
|
189
|
+
function _() {
|
|
190
190
|
var I;
|
|
191
|
-
(I =
|
|
191
|
+
(I = d.value) == null || I.onClose(void 0, 0);
|
|
192
192
|
}
|
|
193
193
|
function E() {
|
|
194
194
|
var I;
|
|
195
|
-
(I =
|
|
195
|
+
(I = d.value) == null || I.onClose();
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function B() {
|
|
198
198
|
var I;
|
|
199
|
-
(I =
|
|
199
|
+
(I = d.value) == null || I.onOpen();
|
|
200
200
|
}
|
|
201
|
-
const
|
|
202
|
-
function
|
|
203
|
-
|
|
201
|
+
const $ = to();
|
|
202
|
+
function F(...I) {
|
|
203
|
+
c("command", ...I);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function D() {
|
|
206
206
|
}
|
|
207
207
|
function U() {
|
|
208
|
-
const I =
|
|
209
|
-
|
|
208
|
+
const I = h(w);
|
|
209
|
+
p.value.includes("hover") && (I == null || I.focus({
|
|
210
210
|
preventScroll: !0
|
|
211
|
-
})),
|
|
211
|
+
})), r.value = null;
|
|
212
212
|
}
|
|
213
213
|
function G(I) {
|
|
214
|
-
|
|
214
|
+
r.value = I;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function N(I) {
|
|
217
217
|
o.value || (I.preventDefault(), I.stopImmediatePropagation());
|
|
218
218
|
}
|
|
219
219
|
function we() {
|
|
220
|
-
|
|
220
|
+
c("visible-change", !0);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function x(I) {
|
|
223
223
|
var Y;
|
|
224
|
-
(I == null ? void 0 : I.type) === "keydown" && ((Y =
|
|
224
|
+
(I == null ? void 0 : I.type) === "keydown" && ((Y = w.value) == null || Y.focus());
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
|
|
226
|
+
function j() {
|
|
227
|
+
c("visible-change", !1);
|
|
228
228
|
}
|
|
229
|
-
return
|
|
230
|
-
contentRef:
|
|
231
|
-
role:
|
|
232
|
-
triggerId:
|
|
229
|
+
return Q(ae, {
|
|
230
|
+
contentRef: w,
|
|
231
|
+
role: k(() => e.role),
|
|
232
|
+
triggerId: g,
|
|
233
233
|
isUsingKeyboard: o,
|
|
234
|
-
onItemEnter:
|
|
234
|
+
onItemEnter: D,
|
|
235
235
|
onItemLeave: U
|
|
236
|
-
}),
|
|
237
|
-
instance:
|
|
238
|
-
dropdownSize:
|
|
239
|
-
handleClick:
|
|
240
|
-
commandHandler:
|
|
241
|
-
trigger:
|
|
242
|
-
hideOnClick:
|
|
236
|
+
}), Q(Ne, {
|
|
237
|
+
instance: m,
|
|
238
|
+
dropdownSize: $,
|
|
239
|
+
handleClick: _,
|
|
240
|
+
commandHandler: F,
|
|
241
|
+
trigger: W(e, "trigger"),
|
|
242
|
+
hideOnClick: W(e, "hideOnClick")
|
|
243
243
|
}), {
|
|
244
|
-
t:
|
|
245
|
-
ns:
|
|
246
|
-
scrollbar:
|
|
247
|
-
wrapStyle:
|
|
248
|
-
dropdownTriggerKls:
|
|
249
|
-
dropdownSize:
|
|
250
|
-
triggerId:
|
|
251
|
-
currentTabId:
|
|
244
|
+
t: f,
|
|
245
|
+
ns: s,
|
|
246
|
+
scrollbar: b,
|
|
247
|
+
wrapStyle: a,
|
|
248
|
+
dropdownTriggerKls: n,
|
|
249
|
+
dropdownSize: $,
|
|
250
|
+
triggerId: g,
|
|
251
|
+
currentTabId: r,
|
|
252
252
|
handleCurrentTabIdChange: G,
|
|
253
253
|
handlerMainButtonClick: (I) => {
|
|
254
|
-
|
|
254
|
+
c("click", I);
|
|
255
255
|
},
|
|
256
|
-
handleEntryFocus:
|
|
256
|
+
handleEntryFocus: N,
|
|
257
257
|
handleClose: E,
|
|
258
|
-
handleOpen:
|
|
258
|
+
handleOpen: B,
|
|
259
259
|
handleBeforeShowTooltip: we,
|
|
260
|
-
handleShowTooltip:
|
|
261
|
-
handleBeforeHideTooltip:
|
|
260
|
+
handleShowTooltip: x,
|
|
261
|
+
handleBeforeHideTooltip: j,
|
|
262
262
|
onFocusAfterTrapped: (I) => {
|
|
263
263
|
var Y, ge;
|
|
264
|
-
I.preventDefault(), (ge = (Y =
|
|
264
|
+
I.preventDefault(), (ge = (Y = w.value) == null ? void 0 : Y.focus) == null || ge.call(Y, {
|
|
265
265
|
preventScroll: !0
|
|
266
266
|
});
|
|
267
267
|
},
|
|
268
|
-
popperRef:
|
|
269
|
-
contentRef:
|
|
270
|
-
triggeringElementRef:
|
|
268
|
+
popperRef: d,
|
|
269
|
+
contentRef: w,
|
|
270
|
+
triggeringElementRef: u,
|
|
271
271
|
referenceElementRef: i
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
|
-
function Oo(e,
|
|
276
|
-
var i,
|
|
277
|
-
const
|
|
278
|
-
return
|
|
279
|
-
class:
|
|
275
|
+
function Oo(e, c, m, s, f, u) {
|
|
276
|
+
var i, d;
|
|
277
|
+
const w = R("el-dropdown-collection"), b = R("el-roving-focus-group"), r = R("el-scrollbar"), o = R("el-only-child"), a = R("el-tooltip"), n = R("el-button"), p = R("arrow-down"), v = R("el-icon"), g = R("el-button-group");
|
|
278
|
+
return C(), K("div", {
|
|
279
|
+
class: X([e.ns.b(), e.ns.is("disabled", e.disabled)])
|
|
280
280
|
}, [
|
|
281
|
-
|
|
281
|
+
t(a, {
|
|
282
282
|
ref: "popperRef",
|
|
283
283
|
role: e.role,
|
|
284
284
|
effect: e.effect,
|
|
@@ -296,7 +296,7 @@ function Oo(e, d, f, a, p, c) {
|
|
|
296
296
|
"show-after": e.trigger === "hover" ? e.showTimeout : 0,
|
|
297
297
|
"hide-after": e.trigger === "hover" ? e.hideTimeout : 0,
|
|
298
298
|
"stop-popper-mouse-event": !1,
|
|
299
|
-
"virtual-ref": (
|
|
299
|
+
"virtual-ref": (d = e.virtualRef) != null ? d : e.triggeringElementRef,
|
|
300
300
|
"virtual-triggering": e.virtualTriggering || e.splitButton,
|
|
301
301
|
disabled: e.disabled,
|
|
302
302
|
transition: `${e.ns.namespace.value}-zoom-in-top`,
|
|
@@ -307,26 +307,26 @@ function Oo(e, d, f, a, p, c) {
|
|
|
307
307
|
onBeforeShow: e.handleBeforeShowTooltip,
|
|
308
308
|
onShow: e.handleShowTooltip,
|
|
309
309
|
onBeforeHide: e.handleBeforeHideTooltip
|
|
310
|
-
},
|
|
311
|
-
content:
|
|
312
|
-
|
|
310
|
+
}, Je({
|
|
311
|
+
content: l(() => [
|
|
312
|
+
t(r, {
|
|
313
313
|
ref: "scrollbar",
|
|
314
314
|
"wrap-style": e.wrapStyle,
|
|
315
315
|
tag: "div",
|
|
316
316
|
"view-class": e.ns.e("list")
|
|
317
317
|
}, {
|
|
318
|
-
default:
|
|
319
|
-
|
|
318
|
+
default: l(() => [
|
|
319
|
+
t(b, {
|
|
320
320
|
loop: e.loop,
|
|
321
321
|
"current-tab-id": e.currentTabId,
|
|
322
322
|
orientation: "horizontal",
|
|
323
323
|
onCurrentTabIdChange: e.handleCurrentTabIdChange,
|
|
324
324
|
onEntryFocus: e.handleEntryFocus
|
|
325
325
|
}, {
|
|
326
|
-
default:
|
|
327
|
-
|
|
328
|
-
default:
|
|
329
|
-
|
|
326
|
+
default: l(() => [
|
|
327
|
+
t(w, null, {
|
|
328
|
+
default: l(() => [
|
|
329
|
+
M(e.$slots, "dropdown")
|
|
330
330
|
]),
|
|
331
331
|
_: 3
|
|
332
332
|
})
|
|
@@ -341,36 +341,36 @@ function Oo(e, d, f, a, p, c) {
|
|
|
341
341
|
}, [
|
|
342
342
|
e.splitButton ? void 0 : {
|
|
343
343
|
name: "default",
|
|
344
|
-
fn:
|
|
345
|
-
|
|
344
|
+
fn: l(() => [
|
|
345
|
+
t(o, {
|
|
346
346
|
id: e.triggerId,
|
|
347
347
|
ref: "triggeringElementRef",
|
|
348
348
|
role: "button",
|
|
349
349
|
tabindex: e.tabindex
|
|
350
350
|
}, {
|
|
351
|
-
default:
|
|
352
|
-
|
|
351
|
+
default: l(() => [
|
|
352
|
+
M(e.$slots, "default")
|
|
353
353
|
]),
|
|
354
354
|
_: 3
|
|
355
355
|
}, 8, ["id", "tabindex"])
|
|
356
356
|
])
|
|
357
357
|
}
|
|
358
358
|
]), 1032, ["role", "effect", "popper-options", "placement", "popper-class", "reference-element", "trigger", "trigger-keys", "trigger-target-el", "show-arrow", "show-after", "hide-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "teleported", "persistent", "onBeforeShow", "onShow", "onBeforeHide"]),
|
|
359
|
-
e.splitButton ? (
|
|
360
|
-
default:
|
|
361
|
-
|
|
359
|
+
e.splitButton ? (C(), V(g, { key: 0 }, {
|
|
360
|
+
default: l(() => [
|
|
361
|
+
t(n, ee({ ref: "referenceElementRef" }, e.buttonProps, {
|
|
362
362
|
size: e.dropdownSize,
|
|
363
363
|
type: e.type,
|
|
364
364
|
disabled: e.disabled,
|
|
365
365
|
tabindex: e.tabindex,
|
|
366
366
|
onClick: e.handlerMainButtonClick
|
|
367
367
|
}), {
|
|
368
|
-
default:
|
|
369
|
-
|
|
368
|
+
default: l(() => [
|
|
369
|
+
M(e.$slots, "default")
|
|
370
370
|
]),
|
|
371
371
|
_: 3
|
|
372
372
|
}, 16, ["size", "type", "disabled", "tabindex", "onClick"]),
|
|
373
|
-
|
|
373
|
+
t(n, ee({
|
|
374
374
|
id: e.triggerId,
|
|
375
375
|
ref: "triggeringElementRef"
|
|
376
376
|
}, e.buttonProps, {
|
|
@@ -382,12 +382,12 @@ function Oo(e, d, f, a, p, c) {
|
|
|
382
382
|
tabindex: e.tabindex,
|
|
383
383
|
"aria-label": e.t("el.dropdown.toggleDropdown")
|
|
384
384
|
}), {
|
|
385
|
-
default:
|
|
386
|
-
|
|
387
|
-
class:
|
|
385
|
+
default: l(() => [
|
|
386
|
+
t(v, {
|
|
387
|
+
class: X(e.ns.e("icon"))
|
|
388
388
|
}, {
|
|
389
|
-
default:
|
|
390
|
-
|
|
389
|
+
default: l(() => [
|
|
390
|
+
t(p)
|
|
391
391
|
]),
|
|
392
392
|
_: 1
|
|
393
393
|
}, 8, ["class"])
|
|
@@ -396,7 +396,7 @@ function Oo(e, d, f, a, p, c) {
|
|
|
396
396
|
}, 16, ["id", "size", "type", "class", "disabled", "tabindex", "aria-label"])
|
|
397
397
|
]),
|
|
398
398
|
_: 3
|
|
399
|
-
})) :
|
|
399
|
+
})) : oe("v-if", !0)
|
|
400
400
|
], 2);
|
|
401
401
|
}
|
|
402
402
|
var Vo = /* @__PURE__ */ z(No, [["render", Oo], ["__file", "dropdown.vue"]]);
|
|
@@ -412,70 +412,70 @@ const Ko = L({
|
|
|
412
412
|
active: Boolean
|
|
413
413
|
},
|
|
414
414
|
emits: ["mousedown", "focus", "keydown"],
|
|
415
|
-
setup(e, { emit:
|
|
416
|
-
const { currentTabbedId:
|
|
417
|
-
|
|
418
|
-
}, (
|
|
419
|
-
e.focusable ?
|
|
420
|
-
}),
|
|
421
|
-
|
|
415
|
+
setup(e, { emit: c }) {
|
|
416
|
+
const { currentTabbedId: m, loop: s, onItemFocus: f, onItemShiftTab: u } = P(ve, void 0), { getItems: i } = P(fe, void 0), d = Se(), w = y(), b = O((n) => {
|
|
417
|
+
c("mousedown", n);
|
|
418
|
+
}, (n) => {
|
|
419
|
+
e.focusable ? f(h(d)) : n.preventDefault();
|
|
420
|
+
}), r = O((n) => {
|
|
421
|
+
c("focus", n);
|
|
422
422
|
}, () => {
|
|
423
|
-
|
|
424
|
-
}), o = O((
|
|
425
|
-
|
|
426
|
-
}, (
|
|
427
|
-
const { code:
|
|
428
|
-
if (
|
|
429
|
-
|
|
423
|
+
f(h(d));
|
|
424
|
+
}), o = O((n) => {
|
|
425
|
+
c("keydown", n);
|
|
426
|
+
}, (n) => {
|
|
427
|
+
const { code: p, shiftKey: v, target: g, currentTarget: _ } = n;
|
|
428
|
+
if (p === S.tab && v) {
|
|
429
|
+
u();
|
|
430
430
|
return;
|
|
431
431
|
}
|
|
432
|
-
if (
|
|
432
|
+
if (g !== _)
|
|
433
433
|
return;
|
|
434
|
-
const E = Co(
|
|
434
|
+
const E = Co(n);
|
|
435
435
|
if (E) {
|
|
436
|
-
|
|
437
|
-
let
|
|
436
|
+
n.preventDefault();
|
|
437
|
+
let $ = i().filter((F) => F.focusable).map((F) => F.ref);
|
|
438
438
|
switch (E) {
|
|
439
439
|
case "last": {
|
|
440
|
-
|
|
440
|
+
$.reverse();
|
|
441
441
|
break;
|
|
442
442
|
}
|
|
443
443
|
case "prev":
|
|
444
444
|
case "next": {
|
|
445
|
-
E === "prev" &&
|
|
446
|
-
const
|
|
447
|
-
|
|
445
|
+
E === "prev" && $.reverse();
|
|
446
|
+
const F = $.indexOf(_);
|
|
447
|
+
$ = s.value ? Po($, F + 1) : $.slice(F + 1);
|
|
448
448
|
break;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
de(() => {
|
|
452
|
-
_e(
|
|
452
|
+
_e($);
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
|
-
}),
|
|
456
|
-
return
|
|
457
|
-
rovingFocusGroupItemRef:
|
|
458
|
-
tabIndex:
|
|
459
|
-
handleMousedown:
|
|
460
|
-
handleFocus:
|
|
455
|
+
}), a = k(() => m.value === h(d));
|
|
456
|
+
return Q(De, {
|
|
457
|
+
rovingFocusGroupItemRef: w,
|
|
458
|
+
tabIndex: k(() => h(a) ? 0 : -1),
|
|
459
|
+
handleMousedown: b,
|
|
460
|
+
handleFocus: r,
|
|
461
461
|
handleKeydown: o
|
|
462
462
|
}), {
|
|
463
|
-
id:
|
|
463
|
+
id: d,
|
|
464
464
|
handleKeydown: o,
|
|
465
|
-
handleFocus:
|
|
466
|
-
handleMousedown:
|
|
465
|
+
handleFocus: r,
|
|
466
|
+
handleMousedown: b
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
469
|
});
|
|
470
|
-
function Bo(e,
|
|
471
|
-
const i =
|
|
472
|
-
return
|
|
470
|
+
function Bo(e, c, m, s, f, u) {
|
|
471
|
+
const i = R("el-roving-focus-collection-item");
|
|
472
|
+
return C(), V(i, {
|
|
473
473
|
id: e.id,
|
|
474
474
|
focusable: e.focusable,
|
|
475
475
|
active: e.active
|
|
476
476
|
}, {
|
|
477
|
-
default:
|
|
478
|
-
|
|
477
|
+
default: l(() => [
|
|
478
|
+
M(e.$slots, "default")
|
|
479
479
|
]),
|
|
480
480
|
_: 3
|
|
481
481
|
}, 8, ["id", "focusable", "active"]);
|
|
@@ -488,67 +488,67 @@ const Ao = L({
|
|
|
488
488
|
},
|
|
489
489
|
props: ke,
|
|
490
490
|
emits: ["pointermove", "pointerleave", "click", "clickimpl"],
|
|
491
|
-
setup(e, { emit:
|
|
492
|
-
const
|
|
491
|
+
setup(e, { emit: c }) {
|
|
492
|
+
const m = ue("dropdown"), { role: s } = P(ae, void 0), { collectionItemRef: f } = P(ao, void 0), { collectionItemRef: u } = P(yo, void 0), {
|
|
493
493
|
rovingFocusGroupItemRef: i,
|
|
494
|
-
tabIndex:
|
|
495
|
-
handleFocus:
|
|
496
|
-
handleKeydown:
|
|
497
|
-
handleMousedown:
|
|
498
|
-
} =
|
|
499
|
-
if ([
|
|
500
|
-
return
|
|
501
|
-
},
|
|
494
|
+
tabIndex: d,
|
|
495
|
+
handleFocus: w,
|
|
496
|
+
handleKeydown: b,
|
|
497
|
+
handleMousedown: r
|
|
498
|
+
} = P(De, void 0), o = he(f, u, i), a = k(() => s.value === "menu" ? "menuitem" : s.value === "navigation" ? "link" : "button"), n = O((p) => {
|
|
499
|
+
if ([S.enter, S.numpadEnter, S.space].includes(p.code))
|
|
500
|
+
return p.preventDefault(), p.stopImmediatePropagation(), c("clickimpl", p), !0;
|
|
501
|
+
}, b);
|
|
502
502
|
return {
|
|
503
|
-
ns:
|
|
503
|
+
ns: m,
|
|
504
504
|
itemRef: o,
|
|
505
505
|
dataset: {
|
|
506
506
|
[io]: ""
|
|
507
507
|
},
|
|
508
|
-
role:
|
|
509
|
-
tabIndex:
|
|
510
|
-
handleFocus:
|
|
511
|
-
handleKeydown:
|
|
512
|
-
handleMousedown:
|
|
508
|
+
role: a,
|
|
509
|
+
tabIndex: d,
|
|
510
|
+
handleFocus: w,
|
|
511
|
+
handleKeydown: n,
|
|
512
|
+
handleMousedown: r
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
|
-
function Uo(e,
|
|
517
|
-
const i =
|
|
518
|
-
return
|
|
519
|
-
e.divided ? (
|
|
516
|
+
function Uo(e, c, m, s, f, u) {
|
|
517
|
+
const i = R("el-icon");
|
|
518
|
+
return C(), K(Pe, null, [
|
|
519
|
+
e.divided ? (C(), K("li", {
|
|
520
520
|
key: 0,
|
|
521
521
|
role: "separator",
|
|
522
|
-
class:
|
|
523
|
-
}, null, 2)) :
|
|
524
|
-
|
|
522
|
+
class: X(e.ns.bem("menu", "item", "divided"))
|
|
523
|
+
}, null, 2)) : oe("v-if", !0),
|
|
524
|
+
ne("li", ee({ ref: e.itemRef }, { ...e.dataset, ...e.$attrs }, {
|
|
525
525
|
"aria-disabled": e.disabled,
|
|
526
526
|
class: [e.ns.be("menu", "item"), e.ns.is("disabled", e.disabled)],
|
|
527
527
|
tabindex: e.tabIndex,
|
|
528
528
|
role: e.role,
|
|
529
|
-
onClick: (
|
|
529
|
+
onClick: (d) => e.$emit("clickimpl", d),
|
|
530
530
|
onFocus: e.handleFocus,
|
|
531
|
-
onKeydown:
|
|
531
|
+
onKeydown: q(e.handleKeydown, ["self"]),
|
|
532
532
|
onMousedown: e.handleMousedown,
|
|
533
|
-
onPointermove: (
|
|
534
|
-
onPointerleave: (
|
|
533
|
+
onPointermove: (d) => e.$emit("pointermove", d),
|
|
534
|
+
onPointerleave: (d) => e.$emit("pointerleave", d)
|
|
535
535
|
}), [
|
|
536
|
-
e.icon ? (
|
|
537
|
-
default:
|
|
538
|
-
(
|
|
536
|
+
e.icon ? (C(), V(i, { key: 0 }, {
|
|
537
|
+
default: l(() => [
|
|
538
|
+
(C(), V(je(e.icon)))
|
|
539
539
|
]),
|
|
540
540
|
_: 1
|
|
541
|
-
})) :
|
|
542
|
-
|
|
541
|
+
})) : oe("v-if", !0),
|
|
542
|
+
M(e.$slots, "default")
|
|
543
543
|
], 16, ["aria-disabled", "tabindex", "role", "onClick", "onFocus", "onKeydown", "onMousedown", "onPointermove", "onPointerleave"])
|
|
544
544
|
], 64);
|
|
545
545
|
}
|
|
546
546
|
var Go = /* @__PURE__ */ z(Ao, [["render", Uo], ["__file", "dropdown-item-impl.vue"]]);
|
|
547
547
|
const Oe = () => {
|
|
548
|
-
const e =
|
|
548
|
+
const e = P(Ne, {}), c = k(() => e == null ? void 0 : e.dropdownSize);
|
|
549
549
|
return {
|
|
550
550
|
elDropdown: e,
|
|
551
|
-
_elDropdownSize:
|
|
551
|
+
_elDropdownSize: c
|
|
552
552
|
};
|
|
553
553
|
}, zo = L({
|
|
554
554
|
name: "ElDropdownItem",
|
|
@@ -560,58 +560,58 @@ const Oe = () => {
|
|
|
560
560
|
inheritAttrs: !1,
|
|
561
561
|
props: ke,
|
|
562
562
|
emits: ["pointermove", "pointerleave", "click"],
|
|
563
|
-
setup(e, { emit:
|
|
564
|
-
const { elDropdown:
|
|
565
|
-
var
|
|
566
|
-
return (
|
|
567
|
-
}), { onItemEnter:
|
|
563
|
+
setup(e, { emit: c, attrs: m }) {
|
|
564
|
+
const { elDropdown: s } = Oe(), f = Ce(), u = y(null), i = k(() => {
|
|
565
|
+
var n, p;
|
|
566
|
+
return (p = (n = h(u)) == null ? void 0 : n.textContent) != null ? p : "";
|
|
567
|
+
}), { onItemEnter: d, onItemLeave: w } = P(ae, void 0), b = O((n) => (c("pointermove", n), n.defaultPrevented), be((n) => {
|
|
568
568
|
if (e.disabled) {
|
|
569
|
-
|
|
569
|
+
w(n);
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
572
|
-
const
|
|
573
|
-
|
|
572
|
+
const p = n.currentTarget;
|
|
573
|
+
p === document.activeElement || p.contains(document.activeElement) || (d(n), n.defaultPrevented || p == null || p.focus({
|
|
574
574
|
preventScroll: !0
|
|
575
575
|
}));
|
|
576
|
-
})),
|
|
576
|
+
})), r = O((n) => (c("pointerleave", n), n.defaultPrevented), be(w)), o = O((n) => {
|
|
577
577
|
if (!e.disabled)
|
|
578
|
-
return
|
|
579
|
-
}, (
|
|
580
|
-
var
|
|
578
|
+
return c("click", n), n.type !== "keydown" && n.defaultPrevented;
|
|
579
|
+
}, (n) => {
|
|
580
|
+
var p, v, g;
|
|
581
581
|
if (e.disabled) {
|
|
582
|
-
|
|
582
|
+
n.stopImmediatePropagation();
|
|
583
583
|
return;
|
|
584
584
|
}
|
|
585
|
-
(
|
|
586
|
-
}),
|
|
585
|
+
(p = s == null ? void 0 : s.hideOnClick) != null && p.value && ((v = s.handleClick) == null || v.call(s)), (g = s.commandHandler) == null || g.call(s, e.command, f, n);
|
|
586
|
+
}), a = k(() => ({ ...e, ...m }));
|
|
587
587
|
return {
|
|
588
588
|
handleClick: o,
|
|
589
|
-
handlePointerMove:
|
|
590
|
-
handlePointerLeave:
|
|
589
|
+
handlePointerMove: b,
|
|
590
|
+
handlePointerLeave: r,
|
|
591
591
|
textContent: i,
|
|
592
|
-
propsAndAttrs:
|
|
592
|
+
propsAndAttrs: a
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
595
|
});
|
|
596
|
-
function Lo(e,
|
|
596
|
+
function Lo(e, c, m, s, f, u) {
|
|
597
597
|
var i;
|
|
598
|
-
const
|
|
599
|
-
return
|
|
598
|
+
const d = R("el-dropdown-item-impl"), w = R("el-roving-focus-item"), b = R("el-dropdown-collection-item");
|
|
599
|
+
return C(), V(b, {
|
|
600
600
|
disabled: e.disabled,
|
|
601
601
|
"text-value": (i = e.textValue) != null ? i : e.textContent
|
|
602
602
|
}, {
|
|
603
|
-
default:
|
|
604
|
-
|
|
603
|
+
default: l(() => [
|
|
604
|
+
t(w, {
|
|
605
605
|
focusable: !e.disabled
|
|
606
606
|
}, {
|
|
607
|
-
default:
|
|
608
|
-
|
|
607
|
+
default: l(() => [
|
|
608
|
+
t(d, ee(e.propsAndAttrs, {
|
|
609
609
|
onPointerleave: e.handlePointerLeave,
|
|
610
610
|
onPointermove: e.handlePointerMove,
|
|
611
611
|
onClickimpl: e.handleClick
|
|
612
612
|
}), {
|
|
613
|
-
default:
|
|
614
|
-
|
|
613
|
+
default: l(() => [
|
|
614
|
+
M(e.$slots, "default")
|
|
615
615
|
]),
|
|
616
616
|
_: 3
|
|
617
617
|
}, 16, ["onPointerleave", "onPointermove", "onClickimpl"])
|
|
@@ -627,159 +627,203 @@ const Yo = L({
|
|
|
627
627
|
name: "ElDropdownMenu",
|
|
628
628
|
props: co,
|
|
629
629
|
setup(e) {
|
|
630
|
-
const
|
|
630
|
+
const c = ue("dropdown"), { _elDropdownSize: m } = Oe(), s = m.value, { focusTrapRef: f, onKeydown: u } = P(ze, void 0), { contentRef: i, role: d, triggerId: w } = P(ae, void 0), { collectionRef: b, getItems: r } = P(po, void 0), {
|
|
631
631
|
rovingFocusGroupRef: o,
|
|
632
|
-
rovingFocusGroupRootStyle:
|
|
633
|
-
tabIndex:
|
|
634
|
-
onBlur:
|
|
632
|
+
rovingFocusGroupRootStyle: a,
|
|
633
|
+
tabIndex: n,
|
|
634
|
+
onBlur: p,
|
|
635
635
|
onFocus: v,
|
|
636
|
-
onMousedown:
|
|
637
|
-
} =
|
|
636
|
+
onMousedown: g
|
|
637
|
+
} = P(ve, void 0), { collectionRef: _ } = P(fe, void 0), E = k(() => [c.b("menu"), c.bm("menu", s == null ? void 0 : s.value)]), B = he(i, b, f, o, _), $ = O((D) => {
|
|
638
638
|
var U;
|
|
639
|
-
(U = e.onKeydown) == null || U.call(e,
|
|
640
|
-
}, (
|
|
641
|
-
const { currentTarget: U, code: G, target:
|
|
642
|
-
if (U.contains(
|
|
639
|
+
(U = e.onKeydown) == null || U.call(e, D);
|
|
640
|
+
}, (D) => {
|
|
641
|
+
const { currentTarget: U, code: G, target: N } = D;
|
|
642
|
+
if (U.contains(N), S.tab === G && D.stopImmediatePropagation(), D.preventDefault(), N !== h(i) || !mo.includes(G))
|
|
643
643
|
return;
|
|
644
|
-
const
|
|
645
|
-
fo.includes(G) &&
|
|
644
|
+
const x = r().filter((j) => !j.disabled).map((j) => j.ref);
|
|
645
|
+
fo.includes(G) && x.reverse(), _e(x);
|
|
646
646
|
});
|
|
647
647
|
return {
|
|
648
|
-
size:
|
|
649
|
-
rovingFocusGroupRootStyle:
|
|
650
|
-
tabIndex:
|
|
648
|
+
size: s,
|
|
649
|
+
rovingFocusGroupRootStyle: a,
|
|
650
|
+
tabIndex: n,
|
|
651
651
|
dropdownKls: E,
|
|
652
|
-
role:
|
|
653
|
-
triggerId:
|
|
654
|
-
dropdownListWrapperRef:
|
|
655
|
-
handleKeydown: (
|
|
656
|
-
|
|
652
|
+
role: d,
|
|
653
|
+
triggerId: w,
|
|
654
|
+
dropdownListWrapperRef: B,
|
|
655
|
+
handleKeydown: (D) => {
|
|
656
|
+
$(D), u(D);
|
|
657
657
|
},
|
|
658
|
-
onBlur:
|
|
658
|
+
onBlur: p,
|
|
659
659
|
onFocus: v,
|
|
660
|
-
onMousedown:
|
|
660
|
+
onMousedown: g
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
|
-
function Ho(e,
|
|
665
|
-
return
|
|
664
|
+
function Ho(e, c, m, s, f, u) {
|
|
665
|
+
return C(), K("ul", {
|
|
666
666
|
ref: e.dropdownListWrapperRef,
|
|
667
|
-
class:
|
|
667
|
+
class: X(e.dropdownKls),
|
|
668
668
|
style: We(e.rovingFocusGroupRootStyle),
|
|
669
669
|
tabindex: -1,
|
|
670
670
|
role: e.role,
|
|
671
671
|
"aria-labelledby": e.triggerId,
|
|
672
672
|
onBlur: e.onBlur,
|
|
673
673
|
onFocus: e.onFocus,
|
|
674
|
-
onKeydown:
|
|
675
|
-
onMousedown:
|
|
674
|
+
onKeydown: q(e.handleKeydown, ["self"]),
|
|
675
|
+
onMousedown: q(e.onMousedown, ["self"])
|
|
676
676
|
}, [
|
|
677
|
-
|
|
677
|
+
M(e.$slots, "default")
|
|
678
678
|
], 46, ["role", "aria-labelledby", "onBlur", "onFocus", "onKeydown", "onMousedown"]);
|
|
679
679
|
}
|
|
680
680
|
var Ke = /* @__PURE__ */ z(Yo, [["render", Ho], ["__file", "dropdown-menu.vue"]]);
|
|
681
|
-
const
|
|
681
|
+
const qo = Ae(Vo, {
|
|
682
682
|
DropdownItem: Ve,
|
|
683
683
|
DropdownMenu: Ke
|
|
684
|
-
}),
|
|
684
|
+
}), Jo = Ee(Ve), jo = Ee(Ke);
|
|
685
685
|
const Wo = { class: "mobile" }, Zo = {
|
|
686
|
+
key: 0,
|
|
687
|
+
class: "get-button disabled"
|
|
688
|
+
}, Qo = 60, Xo = {
|
|
686
689
|
__name: "Mobile",
|
|
687
690
|
setup(e) {
|
|
688
|
-
const
|
|
689
|
-
mobile: ""
|
|
690
|
-
|
|
691
|
+
const c = P("stConfig"), m = P("userData"), s = y(!1), f = y(), u = A({
|
|
692
|
+
mobile: "",
|
|
693
|
+
verifyCode: ""
|
|
694
|
+
}), i = A({
|
|
691
695
|
mobile: [
|
|
692
696
|
{ required: !0, message: "请输入手机号", trigger: "blur" },
|
|
693
697
|
{
|
|
694
|
-
validator: (
|
|
695
|
-
|
|
696
|
-
n === f.mobile ? o("新手机号与旧手机号相同") : r.test(n) ? o() : o("手机号格式错误");
|
|
698
|
+
validator: (n, p, v) => {
|
|
699
|
+
p === m.mobile ? v("新手机号与旧手机号相同") : b(p) ? v() : v("手机号格式错误");
|
|
697
700
|
},
|
|
698
701
|
trigger: "blur"
|
|
699
702
|
}
|
|
700
|
-
]
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
703
|
+
],
|
|
704
|
+
verifyCode: [{ required: !0, message: "请输入验证码", trigger: "blur" }]
|
|
705
|
+
}), d = y(null), w = y(0), b = (n) => /^1[3-9]\d{9}$/.test(n), r = async () => {
|
|
706
|
+
if (!u.mobile)
|
|
707
|
+
return !1;
|
|
708
|
+
if (!b(u.mobile))
|
|
709
|
+
return H.error("手机号格式错误");
|
|
710
|
+
const n = {
|
|
711
|
+
type: 5,
|
|
712
|
+
userId: m.id,
|
|
713
|
+
mobile: u.mobile
|
|
714
|
+
};
|
|
715
|
+
await c.request.post("/invest/sys/commonSms", n), H.success("短信验证码已发送"), w.value = Qo, d.value = setInterval(() => {
|
|
716
|
+
w.value -= 1, w.value === 0 && clearInterval(d.value);
|
|
717
|
+
}, 1e3);
|
|
718
|
+
}, o = () => {
|
|
719
|
+
u.mobile = "", s.value = !0;
|
|
720
|
+
}, a = () => {
|
|
721
|
+
f.value && f.value.validate(async (n) => {
|
|
722
|
+
if (!n)
|
|
706
723
|
return !1;
|
|
707
|
-
const
|
|
708
|
-
...
|
|
709
|
-
userId:
|
|
710
|
-
username:
|
|
724
|
+
const p = {
|
|
725
|
+
...u,
|
|
726
|
+
userId: m.id,
|
|
727
|
+
username: m.username
|
|
711
728
|
};
|
|
712
|
-
await
|
|
729
|
+
await c.request.post("/invest/sys/user/updateUserInfo", p), H.success("手机号修改成功!"), s.value = !1, m.mobile = u.mobile, pe(m);
|
|
713
730
|
});
|
|
714
731
|
};
|
|
715
|
-
return (
|
|
716
|
-
const
|
|
717
|
-
return
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
732
|
+
return (n, p) => {
|
|
733
|
+
const v = Re, g = re, _ = le, E = se, B = J, $ = te;
|
|
734
|
+
return C(), K(Pe, null, [
|
|
735
|
+
ne("div", Wo, [
|
|
736
|
+
h(m).mobile ? (C(), V(v, {
|
|
737
|
+
key: 0,
|
|
738
|
+
type: "info"
|
|
739
|
+
}, {
|
|
740
|
+
default: l(() => [
|
|
741
|
+
T(Z(h(m).mobile), 1)
|
|
722
742
|
]),
|
|
723
743
|
_: 1
|
|
724
|
-
}),
|
|
725
|
-
|
|
744
|
+
})) : oe("", !0),
|
|
745
|
+
t(v, {
|
|
726
746
|
class: "btn",
|
|
727
747
|
size: "small",
|
|
728
748
|
type: "primary",
|
|
729
|
-
onClick:
|
|
749
|
+
onClick: o
|
|
730
750
|
}, {
|
|
731
|
-
default:
|
|
732
|
-
|
|
751
|
+
default: l(() => [
|
|
752
|
+
T(Z(h(m).mobile ? "更换手机号" : "立即绑定"), 1)
|
|
733
753
|
]),
|
|
734
754
|
_: 1
|
|
735
755
|
})
|
|
736
756
|
]),
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
757
|
+
t($, {
|
|
758
|
+
"modal-class": "mobile-dialog",
|
|
759
|
+
modelValue: s.value,
|
|
760
|
+
"onUpdate:modelValue": p[3] || (p[3] = (F) => s.value = F),
|
|
740
761
|
width: "460",
|
|
741
762
|
title: "手机号绑定",
|
|
742
763
|
"append-to-body": "",
|
|
743
764
|
"destroy-on-close": ""
|
|
744
765
|
}, {
|
|
745
|
-
footer:
|
|
746
|
-
|
|
747
|
-
onClick:
|
|
766
|
+
footer: l(() => [
|
|
767
|
+
t(B, {
|
|
768
|
+
onClick: p[2] || (p[2] = (F) => s.value = !1)
|
|
748
769
|
}, {
|
|
749
|
-
default:
|
|
750
|
-
|
|
770
|
+
default: l(() => [
|
|
771
|
+
T(" 取消 ")
|
|
751
772
|
]),
|
|
752
773
|
_: 1
|
|
753
774
|
}),
|
|
754
|
-
|
|
775
|
+
t(B, {
|
|
755
776
|
type: "primary",
|
|
756
|
-
onClick:
|
|
777
|
+
onClick: a
|
|
757
778
|
}, {
|
|
758
|
-
default:
|
|
759
|
-
|
|
779
|
+
default: l(() => [
|
|
780
|
+
T(" 确认 ")
|
|
760
781
|
]),
|
|
761
782
|
_: 1
|
|
762
783
|
})
|
|
763
784
|
]),
|
|
764
|
-
default:
|
|
765
|
-
|
|
785
|
+
default: l(() => [
|
|
786
|
+
t(E, {
|
|
766
787
|
ref_key: "ruleFormRef",
|
|
767
|
-
ref:
|
|
788
|
+
ref: f,
|
|
768
789
|
rules: i,
|
|
769
|
-
model:
|
|
790
|
+
model: u
|
|
770
791
|
}, {
|
|
771
|
-
default:
|
|
772
|
-
|
|
792
|
+
default: l(() => [
|
|
793
|
+
t(_, {
|
|
773
794
|
label: "新手机",
|
|
774
795
|
prop: "mobile"
|
|
775
796
|
}, {
|
|
776
|
-
default:
|
|
777
|
-
|
|
778
|
-
modelValue:
|
|
779
|
-
"onUpdate:modelValue":
|
|
797
|
+
default: l(() => [
|
|
798
|
+
t(g, {
|
|
799
|
+
modelValue: u.mobile,
|
|
800
|
+
"onUpdate:modelValue": p[0] || (p[0] = (F) => u.mobile = F)
|
|
780
801
|
}, null, 8, ["modelValue"])
|
|
781
802
|
]),
|
|
782
803
|
_: 1
|
|
804
|
+
}),
|
|
805
|
+
t(_, {
|
|
806
|
+
label: "验证码",
|
|
807
|
+
prop: "verifyCode"
|
|
808
|
+
}, {
|
|
809
|
+
default: l(() => [
|
|
810
|
+
t(g, {
|
|
811
|
+
class: "sms-input",
|
|
812
|
+
modelValue: u.verifyCode,
|
|
813
|
+
"onUpdate:modelValue": p[1] || (p[1] = (F) => u.verifyCode = F),
|
|
814
|
+
placeholder: "验证码"
|
|
815
|
+
}, {
|
|
816
|
+
suffix: l(() => [
|
|
817
|
+
w.value ? (C(), K("span", Zo, " 重新发送(" + Z(w.value) + ") ", 1)) : (C(), K("span", {
|
|
818
|
+
key: 1,
|
|
819
|
+
class: X(["get-button", { disabled: !u.mobile }]),
|
|
820
|
+
onClick: q(r, ["stop"])
|
|
821
|
+
}, " 获取验证码 ", 2))
|
|
822
|
+
]),
|
|
823
|
+
_: 1
|
|
824
|
+
}, 8, ["modelValue"])
|
|
825
|
+
]),
|
|
826
|
+
_: 1
|
|
783
827
|
})
|
|
784
828
|
]),
|
|
785
829
|
_: 1
|
|
@@ -790,124 +834,124 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
790
834
|
], 64);
|
|
791
835
|
};
|
|
792
836
|
}
|
|
793
|
-
},
|
|
794
|
-
const
|
|
837
|
+
}, xo = /* @__PURE__ */ me(Xo, [["__scopeId", "data-v-40f6ee35"]]);
|
|
838
|
+
const en = {
|
|
795
839
|
__name: "index",
|
|
796
|
-
setup(e, { expose:
|
|
797
|
-
const
|
|
840
|
+
setup(e, { expose: c }) {
|
|
841
|
+
const m = P("stConfig"), s = P("userData"), f = y(!1), u = y(), i = A({
|
|
798
842
|
nickName: "",
|
|
799
843
|
email: ""
|
|
800
|
-
}),
|
|
844
|
+
}), d = A({
|
|
801
845
|
nickName: [
|
|
802
846
|
{
|
|
803
|
-
validator: (
|
|
804
|
-
|
|
847
|
+
validator: (b, r, o) => {
|
|
848
|
+
r ? /[\s@<>&%]/.test(r) ? o("昵称不能包含空格、@、<、>、&、%等特殊字符") : r && r.length > 12 ? o("昵称长度不能超过12个字符") : o() : o();
|
|
805
849
|
},
|
|
806
850
|
trigger: "blur"
|
|
807
851
|
}
|
|
808
852
|
],
|
|
809
853
|
email: [
|
|
810
854
|
{
|
|
811
|
-
validator: (
|
|
812
|
-
|
|
855
|
+
validator: (b, r, o) => {
|
|
856
|
+
r && !/^([a-zA-Z0-9._-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(r) ? o("邮箱格式错误") : o();
|
|
813
857
|
},
|
|
814
858
|
trigger: "blur"
|
|
815
859
|
}
|
|
816
860
|
]
|
|
817
|
-
}),
|
|
818
|
-
|
|
819
|
-
if (!
|
|
861
|
+
}), w = () => {
|
|
862
|
+
u.value && u.value.validate(async (b) => {
|
|
863
|
+
if (!b)
|
|
820
864
|
return !1;
|
|
821
|
-
const
|
|
865
|
+
const r = {
|
|
822
866
|
...i,
|
|
823
|
-
userId:
|
|
824
|
-
username:
|
|
867
|
+
userId: s.id,
|
|
868
|
+
username: s.username
|
|
825
869
|
};
|
|
826
|
-
|
|
870
|
+
r.nickName === s.nickName && delete r.nickName, r.email === s.email && delete r.email, await m.request.post("/invest/sys/user/updateUserInfo", r), H.success("资料修改成功!"), f.value = !1, Object.assign(s, i), pe(s);
|
|
827
871
|
});
|
|
828
872
|
};
|
|
829
|
-
return
|
|
873
|
+
return c({
|
|
830
874
|
open: () => {
|
|
831
875
|
Object.assign(i, {
|
|
832
|
-
nickName:
|
|
833
|
-
email:
|
|
834
|
-
}),
|
|
876
|
+
nickName: s.nickName,
|
|
877
|
+
email: s.email
|
|
878
|
+
}), f.value = !0;
|
|
835
879
|
}
|
|
836
|
-
}), (
|
|
837
|
-
const o = Re,
|
|
838
|
-
return
|
|
880
|
+
}), (b, r) => {
|
|
881
|
+
const o = Re, a = le, n = re, p = se, v = J, g = te;
|
|
882
|
+
return C(), V(g, {
|
|
839
883
|
"modal-class": "edit-info",
|
|
840
|
-
modelValue:
|
|
841
|
-
"onUpdate:modelValue":
|
|
884
|
+
modelValue: f.value,
|
|
885
|
+
"onUpdate:modelValue": r[3] || (r[3] = (_) => f.value = _),
|
|
842
886
|
title: "设置资料",
|
|
843
887
|
width: "460",
|
|
844
888
|
"destroy-on-close": "",
|
|
845
889
|
"z-index": 200
|
|
846
890
|
}, {
|
|
847
|
-
footer:
|
|
848
|
-
|
|
849
|
-
onClick:
|
|
891
|
+
footer: l(() => [
|
|
892
|
+
t(v, {
|
|
893
|
+
onClick: r[2] || (r[2] = (_) => f.value = !1)
|
|
850
894
|
}, {
|
|
851
|
-
default:
|
|
852
|
-
|
|
895
|
+
default: l(() => [
|
|
896
|
+
T(" 取消 ")
|
|
853
897
|
]),
|
|
854
898
|
_: 1
|
|
855
899
|
}),
|
|
856
|
-
|
|
900
|
+
t(v, {
|
|
857
901
|
type: "primary",
|
|
858
|
-
onClick:
|
|
902
|
+
onClick: w
|
|
859
903
|
}, {
|
|
860
|
-
default:
|
|
861
|
-
|
|
904
|
+
default: l(() => [
|
|
905
|
+
T(" 确认 ")
|
|
862
906
|
]),
|
|
863
907
|
_: 1
|
|
864
908
|
})
|
|
865
909
|
]),
|
|
866
|
-
default:
|
|
867
|
-
|
|
910
|
+
default: l(() => [
|
|
911
|
+
t(p, {
|
|
868
912
|
ref_key: "ruleFormRef",
|
|
869
|
-
ref:
|
|
870
|
-
rules:
|
|
913
|
+
ref: u,
|
|
914
|
+
rules: d,
|
|
871
915
|
model: i
|
|
872
916
|
}, {
|
|
873
|
-
default:
|
|
874
|
-
|
|
875
|
-
default:
|
|
876
|
-
|
|
877
|
-
default:
|
|
878
|
-
|
|
917
|
+
default: l(() => [
|
|
918
|
+
t(a, { label: "用户名" }, {
|
|
919
|
+
default: l(() => [
|
|
920
|
+
t(o, { type: "info" }, {
|
|
921
|
+
default: l(() => [
|
|
922
|
+
T(Z(h(s).username), 1)
|
|
879
923
|
]),
|
|
880
924
|
_: 1
|
|
881
925
|
})
|
|
882
926
|
]),
|
|
883
927
|
_: 1
|
|
884
928
|
}),
|
|
885
|
-
|
|
886
|
-
default:
|
|
887
|
-
|
|
929
|
+
t(a, { label: "手机号" }, {
|
|
930
|
+
default: l(() => [
|
|
931
|
+
t(xo)
|
|
888
932
|
]),
|
|
889
933
|
_: 1
|
|
890
934
|
}),
|
|
891
|
-
|
|
935
|
+
t(a, {
|
|
892
936
|
label: "昵称",
|
|
893
937
|
prop: "nickName"
|
|
894
938
|
}, {
|
|
895
|
-
default:
|
|
896
|
-
|
|
939
|
+
default: l(() => [
|
|
940
|
+
t(n, {
|
|
897
941
|
modelValue: i.nickName,
|
|
898
|
-
"onUpdate:modelValue":
|
|
942
|
+
"onUpdate:modelValue": r[0] || (r[0] = (_) => i.nickName = _)
|
|
899
943
|
}, null, 8, ["modelValue"])
|
|
900
944
|
]),
|
|
901
945
|
_: 1
|
|
902
946
|
}),
|
|
903
|
-
|
|
947
|
+
t(a, {
|
|
904
948
|
label: "邮箱",
|
|
905
949
|
prop: "email"
|
|
906
950
|
}, {
|
|
907
|
-
default:
|
|
908
|
-
|
|
951
|
+
default: l(() => [
|
|
952
|
+
t(n, {
|
|
909
953
|
modelValue: i.email,
|
|
910
|
-
"onUpdate:modelValue":
|
|
954
|
+
"onUpdate:modelValue": r[1] || (r[1] = (_) => i.email = _)
|
|
911
955
|
}, null, 8, ["modelValue"])
|
|
912
956
|
]),
|
|
913
957
|
_: 1
|
|
@@ -920,114 +964,114 @@ const Xo = {
|
|
|
920
964
|
}, 8, ["modelValue"]);
|
|
921
965
|
};
|
|
922
966
|
}
|
|
923
|
-
},
|
|
967
|
+
}, on = /* @__PURE__ */ me(en, [["__scopeId", "data-v-b7b637e7"]]), nn = { class: "set-password" }, tn = {
|
|
924
968
|
__name: "SetPasswordDialog",
|
|
925
|
-
setup(e, { expose:
|
|
926
|
-
const
|
|
969
|
+
setup(e, { expose: c }) {
|
|
970
|
+
const m = y(null), s = P("stConfig"), f = P("userData"), u = y(!1), i = y(), d = A({
|
|
927
971
|
newPassword: "",
|
|
928
972
|
newPassword2: ""
|
|
929
|
-
}),
|
|
973
|
+
}), w = A({
|
|
930
974
|
newPassword: [],
|
|
931
975
|
newPassword2: [
|
|
932
976
|
{ required: !0, message: "请输入确认密码", trigger: "blur" },
|
|
933
977
|
{
|
|
934
|
-
validator: (o,
|
|
935
|
-
|
|
978
|
+
validator: (o, a, n) => {
|
|
979
|
+
a === "" ? n(new Error("请输入确认密码")) : a !== d.newPassword ? n(new Error("两次输入密码不一致!")) : n();
|
|
936
980
|
},
|
|
937
981
|
trigger: "blur"
|
|
938
982
|
}
|
|
939
983
|
]
|
|
940
|
-
}),
|
|
941
|
-
o && o.validate(async (
|
|
942
|
-
if (!
|
|
984
|
+
}), b = y(!1), r = (o) => {
|
|
985
|
+
o && o.validate(async (a) => {
|
|
986
|
+
if (!a)
|
|
943
987
|
return !1;
|
|
944
|
-
await
|
|
988
|
+
await s.request.post("/invest/sys/user/setPassword", { newPassword: d.newPassword }), H.success("密码设置成功!"), u.value = !1, f.canSet = !1, pe(f);
|
|
945
989
|
});
|
|
946
990
|
};
|
|
947
|
-
return
|
|
991
|
+
return c({
|
|
948
992
|
open: () => {
|
|
949
|
-
Object.assign(
|
|
993
|
+
Object.assign(d, {
|
|
950
994
|
newPassword: "",
|
|
951
995
|
newPassword2: ""
|
|
952
|
-
}),
|
|
953
|
-
var o,
|
|
954
|
-
(o =
|
|
996
|
+
}), u.value = !0, de(() => {
|
|
997
|
+
var o, a;
|
|
998
|
+
(o = w.newPassword) != null && o.length || (w.newPassword = (a = m.value) == null ? void 0 : a.ruleFormPassword);
|
|
955
999
|
});
|
|
956
1000
|
}
|
|
957
|
-
}), (o,
|
|
958
|
-
const
|
|
959
|
-
return
|
|
960
|
-
|
|
961
|
-
modelValue:
|
|
962
|
-
"onUpdate:modelValue":
|
|
1001
|
+
}), (o, a) => {
|
|
1002
|
+
const n = re, p = le, v = se, g = J, _ = te;
|
|
1003
|
+
return C(), K("div", nn, [
|
|
1004
|
+
t(_, {
|
|
1005
|
+
modelValue: u.value,
|
|
1006
|
+
"onUpdate:modelValue": a[8] || (a[8] = (E) => u.value = E),
|
|
963
1007
|
title: "设置密码",
|
|
964
1008
|
width: "460",
|
|
965
1009
|
"destroy-on-close": "",
|
|
966
1010
|
"z-index": 200
|
|
967
1011
|
}, {
|
|
968
|
-
footer:
|
|
969
|
-
|
|
970
|
-
onClick:
|
|
1012
|
+
footer: l(() => [
|
|
1013
|
+
t(g, {
|
|
1014
|
+
onClick: a[6] || (a[6] = (E) => u.value = !1)
|
|
971
1015
|
}, {
|
|
972
|
-
default:
|
|
973
|
-
|
|
1016
|
+
default: l(() => [
|
|
1017
|
+
T(" 取消 ")
|
|
974
1018
|
]),
|
|
975
1019
|
_: 1
|
|
976
1020
|
}),
|
|
977
|
-
|
|
1021
|
+
t(g, {
|
|
978
1022
|
type: "primary",
|
|
979
|
-
onClick:
|
|
1023
|
+
onClick: a[7] || (a[7] = (E) => r(i.value))
|
|
980
1024
|
}, {
|
|
981
|
-
default:
|
|
982
|
-
|
|
1025
|
+
default: l(() => [
|
|
1026
|
+
T(" 确认 ")
|
|
983
1027
|
]),
|
|
984
1028
|
_: 1
|
|
985
1029
|
})
|
|
986
1030
|
]),
|
|
987
|
-
default:
|
|
988
|
-
|
|
1031
|
+
default: l(() => [
|
|
1032
|
+
t(v, {
|
|
989
1033
|
ref_key: "ruleFormRef",
|
|
990
1034
|
ref: i,
|
|
991
|
-
rules:
|
|
992
|
-
model:
|
|
1035
|
+
rules: w,
|
|
1036
|
+
model: d,
|
|
993
1037
|
"label-width": "auto",
|
|
994
1038
|
"validate-on-rule-change": !1,
|
|
995
|
-
onSubmit:
|
|
996
|
-
onKeyup:
|
|
1039
|
+
onSubmit: a[4] || (a[4] = q((E) => r(i.value), ["prevent"])),
|
|
1040
|
+
onKeyup: a[5] || (a[5] = $e((E) => r(i.value), ["enter", "native"]))
|
|
997
1041
|
}, {
|
|
998
|
-
default:
|
|
999
|
-
|
|
1042
|
+
default: l(() => [
|
|
1043
|
+
t(p, {
|
|
1000
1044
|
label: "密码",
|
|
1001
1045
|
prop: "newPassword"
|
|
1002
1046
|
}, {
|
|
1003
|
-
default:
|
|
1004
|
-
|
|
1005
|
-
modelValue:
|
|
1006
|
-
"onUpdate:modelValue":
|
|
1047
|
+
default: l(() => [
|
|
1048
|
+
t(n, {
|
|
1049
|
+
modelValue: d.newPassword,
|
|
1050
|
+
"onUpdate:modelValue": a[0] || (a[0] = (E) => d.newPassword = E),
|
|
1007
1051
|
type: "password",
|
|
1008
1052
|
"show-password": !0,
|
|
1009
|
-
onFocus:
|
|
1010
|
-
i.value.clearValidate(["newPassword"]),
|
|
1053
|
+
onFocus: a[1] || (a[1] = () => {
|
|
1054
|
+
i.value.clearValidate(["newPassword"]), b.value = !0;
|
|
1011
1055
|
}),
|
|
1012
|
-
onBlur:
|
|
1056
|
+
onBlur: a[2] || (a[2] = (E) => b.value = !1)
|
|
1013
1057
|
}, null, 8, ["modelValue"]),
|
|
1014
|
-
|
|
1058
|
+
t(Te, {
|
|
1015
1059
|
ref_key: "PasswordPromptRef",
|
|
1016
|
-
ref:
|
|
1017
|
-
value:
|
|
1018
|
-
isFocus:
|
|
1060
|
+
ref: m,
|
|
1061
|
+
value: d.newPassword,
|
|
1062
|
+
isFocus: b.value
|
|
1019
1063
|
}, null, 8, ["value", "isFocus"])
|
|
1020
1064
|
]),
|
|
1021
1065
|
_: 1
|
|
1022
1066
|
}),
|
|
1023
|
-
|
|
1067
|
+
t(p, {
|
|
1024
1068
|
label: "确认密码",
|
|
1025
1069
|
prop: "newPassword2"
|
|
1026
1070
|
}, {
|
|
1027
|
-
default:
|
|
1028
|
-
|
|
1029
|
-
modelValue:
|
|
1030
|
-
"onUpdate:modelValue":
|
|
1071
|
+
default: l(() => [
|
|
1072
|
+
t(n, {
|
|
1073
|
+
modelValue: d.newPassword2,
|
|
1074
|
+
"onUpdate:modelValue": a[3] || (a[3] = (E) => d.newPassword2 = E),
|
|
1031
1075
|
type: "password",
|
|
1032
1076
|
"show-password": !0
|
|
1033
1077
|
}, null, 8, ["modelValue"])
|
|
@@ -1043,131 +1087,131 @@ const Xo = {
|
|
|
1043
1087
|
]);
|
|
1044
1088
|
};
|
|
1045
1089
|
}
|
|
1046
|
-
},
|
|
1090
|
+
}, ln = { class: "edit-password" }, sn = {
|
|
1047
1091
|
__name: "EditPasswordDialog",
|
|
1048
|
-
setup(e, { expose:
|
|
1049
|
-
const
|
|
1092
|
+
setup(e, { expose: c }) {
|
|
1093
|
+
const m = P("stConfig"), s = y(null), f = y(!1), u = y(), i = A({
|
|
1050
1094
|
password: "",
|
|
1051
1095
|
newPassword: "",
|
|
1052
1096
|
newPassword2: ""
|
|
1053
|
-
}),
|
|
1097
|
+
}), d = A({
|
|
1054
1098
|
password: [{ required: !0, message: "请输入原密码", trigger: "blur" }],
|
|
1055
1099
|
newPassword: [],
|
|
1056
1100
|
newPassword2: [
|
|
1057
1101
|
{ required: !0, message: "请输入确认密码", trigger: "blur" },
|
|
1058
1102
|
{
|
|
1059
|
-
validator: (
|
|
1060
|
-
o === "" ?
|
|
1103
|
+
validator: (r, o, a) => {
|
|
1104
|
+
o === "" ? a(new Error("请输入确认密码")) : o !== i.newPassword ? a(new Error("两次输入密码不一致!")) : a();
|
|
1061
1105
|
},
|
|
1062
1106
|
trigger: "blur"
|
|
1063
1107
|
}
|
|
1064
1108
|
]
|
|
1065
|
-
}),
|
|
1066
|
-
|
|
1109
|
+
}), w = y(!1), b = (r) => {
|
|
1110
|
+
r && r.validate(async (o) => {
|
|
1067
1111
|
if (!o)
|
|
1068
1112
|
return !1;
|
|
1069
|
-
await
|
|
1113
|
+
await m.request.post("/invest/sys/user/password", i), H.success("密码修改成功!"), f.value = !1;
|
|
1070
1114
|
});
|
|
1071
1115
|
};
|
|
1072
|
-
return
|
|
1116
|
+
return c({
|
|
1073
1117
|
open: () => {
|
|
1074
1118
|
Object.assign(i, {
|
|
1075
1119
|
password: "",
|
|
1076
1120
|
newPassword: "",
|
|
1077
1121
|
newPassword2: ""
|
|
1078
|
-
}),
|
|
1079
|
-
var
|
|
1080
|
-
(
|
|
1122
|
+
}), f.value = !0, de(() => {
|
|
1123
|
+
var r, o;
|
|
1124
|
+
(r = d.newPassword) != null && r.length || (d.newPassword = (o = s.value) == null ? void 0 : o.ruleFormPassword);
|
|
1081
1125
|
});
|
|
1082
1126
|
}
|
|
1083
|
-
}), (
|
|
1084
|
-
const
|
|
1085
|
-
return
|
|
1086
|
-
|
|
1087
|
-
modelValue:
|
|
1088
|
-
"onUpdate:modelValue": o[9] || (o[9] = (
|
|
1127
|
+
}), (r, o) => {
|
|
1128
|
+
const a = re, n = le, p = se, v = J, g = te;
|
|
1129
|
+
return C(), K("div", ln, [
|
|
1130
|
+
t(g, {
|
|
1131
|
+
modelValue: f.value,
|
|
1132
|
+
"onUpdate:modelValue": o[9] || (o[9] = (_) => f.value = _),
|
|
1089
1133
|
title: "修改密码",
|
|
1090
1134
|
width: "460",
|
|
1091
1135
|
"destroy-on-close": "",
|
|
1092
1136
|
"z-index": 200
|
|
1093
1137
|
}, {
|
|
1094
|
-
footer:
|
|
1095
|
-
|
|
1096
|
-
onClick: o[7] || (o[7] = (
|
|
1138
|
+
footer: l(() => [
|
|
1139
|
+
t(v, {
|
|
1140
|
+
onClick: o[7] || (o[7] = (_) => f.value = !1)
|
|
1097
1141
|
}, {
|
|
1098
|
-
default:
|
|
1099
|
-
|
|
1142
|
+
default: l(() => [
|
|
1143
|
+
T(" 取消 ")
|
|
1100
1144
|
]),
|
|
1101
1145
|
_: 1
|
|
1102
1146
|
}),
|
|
1103
|
-
|
|
1147
|
+
t(v, {
|
|
1104
1148
|
type: "primary",
|
|
1105
|
-
onClick: o[8] || (o[8] = (
|
|
1149
|
+
onClick: o[8] || (o[8] = (_) => b(u.value))
|
|
1106
1150
|
}, {
|
|
1107
|
-
default:
|
|
1108
|
-
|
|
1151
|
+
default: l(() => [
|
|
1152
|
+
T(" 确认 ")
|
|
1109
1153
|
]),
|
|
1110
1154
|
_: 1
|
|
1111
1155
|
})
|
|
1112
1156
|
]),
|
|
1113
|
-
default:
|
|
1114
|
-
|
|
1157
|
+
default: l(() => [
|
|
1158
|
+
t(p, {
|
|
1115
1159
|
ref_key: "ruleFormRef",
|
|
1116
|
-
ref:
|
|
1117
|
-
rules:
|
|
1160
|
+
ref: u,
|
|
1161
|
+
rules: d,
|
|
1118
1162
|
model: i,
|
|
1119
1163
|
"label-width": "auto",
|
|
1120
1164
|
"validate-on-rule-change": !1,
|
|
1121
|
-
onSubmit: o[5] || (o[5] =
|
|
1122
|
-
onKeyup: o[6] || (o[6] =
|
|
1165
|
+
onSubmit: o[5] || (o[5] = q((_) => b(u.value), ["prevent"])),
|
|
1166
|
+
onKeyup: o[6] || (o[6] = $e((_) => b(u.value), ["enter", "native"]))
|
|
1123
1167
|
}, {
|
|
1124
|
-
default:
|
|
1125
|
-
|
|
1168
|
+
default: l(() => [
|
|
1169
|
+
t(n, {
|
|
1126
1170
|
label: "原密码",
|
|
1127
1171
|
prop: "password"
|
|
1128
1172
|
}, {
|
|
1129
|
-
default:
|
|
1130
|
-
|
|
1173
|
+
default: l(() => [
|
|
1174
|
+
t(a, {
|
|
1131
1175
|
modelValue: i.password,
|
|
1132
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1176
|
+
"onUpdate:modelValue": o[0] || (o[0] = (_) => i.password = _),
|
|
1133
1177
|
type: "password",
|
|
1134
1178
|
"show-password": !0
|
|
1135
1179
|
}, null, 8, ["modelValue"])
|
|
1136
1180
|
]),
|
|
1137
1181
|
_: 1
|
|
1138
1182
|
}),
|
|
1139
|
-
|
|
1183
|
+
t(n, {
|
|
1140
1184
|
label: "新密码",
|
|
1141
1185
|
prop: "newPassword"
|
|
1142
1186
|
}, {
|
|
1143
|
-
default:
|
|
1144
|
-
|
|
1187
|
+
default: l(() => [
|
|
1188
|
+
t(a, {
|
|
1145
1189
|
modelValue: i.newPassword,
|
|
1146
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
1190
|
+
"onUpdate:modelValue": o[1] || (o[1] = (_) => i.newPassword = _),
|
|
1147
1191
|
type: "password",
|
|
1148
1192
|
"show-password": !0,
|
|
1149
1193
|
onFocus: o[2] || (o[2] = () => {
|
|
1150
|
-
|
|
1194
|
+
u.value.clearValidate(["newPassword"]), w.value = !0;
|
|
1151
1195
|
}),
|
|
1152
|
-
onBlur: o[3] || (o[3] = (
|
|
1196
|
+
onBlur: o[3] || (o[3] = (_) => w.value = !1)
|
|
1153
1197
|
}, null, 8, ["modelValue"]),
|
|
1154
|
-
|
|
1198
|
+
t(Te, {
|
|
1155
1199
|
ref_key: "PasswordPromptRef",
|
|
1156
|
-
ref:
|
|
1200
|
+
ref: s,
|
|
1157
1201
|
value: i.newPassword,
|
|
1158
|
-
isFocus:
|
|
1202
|
+
isFocus: w.value
|
|
1159
1203
|
}, null, 8, ["value", "isFocus"])
|
|
1160
1204
|
]),
|
|
1161
1205
|
_: 1
|
|
1162
1206
|
}),
|
|
1163
|
-
|
|
1207
|
+
t(n, {
|
|
1164
1208
|
label: "确认密码",
|
|
1165
1209
|
prop: "newPassword2"
|
|
1166
1210
|
}, {
|
|
1167
|
-
default:
|
|
1168
|
-
|
|
1211
|
+
default: l(() => [
|
|
1212
|
+
t(a, {
|
|
1169
1213
|
modelValue: i.newPassword2,
|
|
1170
|
-
"onUpdate:modelValue": o[4] || (o[4] = (
|
|
1214
|
+
"onUpdate:modelValue": o[4] || (o[4] = (_) => i.newPassword2 = _),
|
|
1171
1215
|
type: "password",
|
|
1172
1216
|
"show-password": !0
|
|
1173
1217
|
}, null, 8, ["modelValue"])
|
|
@@ -1184,7 +1228,7 @@ const Xo = {
|
|
|
1184
1228
|
};
|
|
1185
1229
|
}
|
|
1186
1230
|
};
|
|
1187
|
-
const
|
|
1231
|
+
const rn = { class: "user" }, an = { class: "user-msg" }, un = {
|
|
1188
1232
|
__name: "index",
|
|
1189
1233
|
props: {
|
|
1190
1234
|
config: {
|
|
@@ -1194,62 +1238,62 @@ const ln = { class: "user" }, rn = { class: "user-msg" }, sn = {
|
|
|
1194
1238
|
}
|
|
1195
1239
|
},
|
|
1196
1240
|
emits: ["loginout"],
|
|
1197
|
-
setup(e, { emit:
|
|
1198
|
-
const
|
|
1199
|
-
const { loginUrl:
|
|
1200
|
-
xe(
|
|
1201
|
-
},
|
|
1202
|
-
const { loginoutToLogin:
|
|
1203
|
-
eo(
|
|
1241
|
+
setup(e, { emit: c }) {
|
|
1242
|
+
const m = y(null), s = y(null), f = y(null), u = A(Xe()), i = c, d = e, w = () => {
|
|
1243
|
+
const { loginUrl: r } = d.config || {};
|
|
1244
|
+
xe(r);
|
|
1245
|
+
}, b = () => {
|
|
1246
|
+
const { loginoutToLogin: r, loginoutUrl: o } = d.config || {};
|
|
1247
|
+
eo(r, o), i("loginout");
|
|
1204
1248
|
};
|
|
1205
|
-
return
|
|
1206
|
-
const
|
|
1207
|
-
return
|
|
1208
|
-
|
|
1249
|
+
return Q("userData", u), (r, o) => {
|
|
1250
|
+
const a = ce, n = Jo, p = jo, v = qo;
|
|
1251
|
+
return C(), K("div", rn, [
|
|
1252
|
+
u ? (C(), V(v, {
|
|
1209
1253
|
key: 0,
|
|
1210
1254
|
placement: "bottom"
|
|
1211
1255
|
}, {
|
|
1212
|
-
dropdown:
|
|
1213
|
-
|
|
1214
|
-
default:
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
onClick: o[0] || (o[0] = (
|
|
1218
|
-
var
|
|
1219
|
-
return (
|
|
1256
|
+
dropdown: l(() => [
|
|
1257
|
+
t(p, null, {
|
|
1258
|
+
default: l(() => [
|
|
1259
|
+
M(r.$slots, "dropdown-items", {}, void 0, !0),
|
|
1260
|
+
t(n, {
|
|
1261
|
+
onClick: o[0] || (o[0] = (g) => {
|
|
1262
|
+
var _;
|
|
1263
|
+
return (_ = m.value) == null ? void 0 : _.open();
|
|
1220
1264
|
})
|
|
1221
1265
|
}, {
|
|
1222
|
-
default:
|
|
1223
|
-
|
|
1266
|
+
default: l(() => [
|
|
1267
|
+
T("设置资料")
|
|
1224
1268
|
]),
|
|
1225
1269
|
_: 1
|
|
1226
1270
|
}),
|
|
1227
|
-
|
|
1271
|
+
u.canSet ? (C(), V(n, {
|
|
1228
1272
|
key: 0,
|
|
1229
|
-
onClick: o[1] || (o[1] = (
|
|
1230
|
-
var
|
|
1231
|
-
return (
|
|
1273
|
+
onClick: o[1] || (o[1] = (g) => {
|
|
1274
|
+
var _;
|
|
1275
|
+
return (_ = s.value) == null ? void 0 : _.open();
|
|
1232
1276
|
})
|
|
1233
1277
|
}, {
|
|
1234
|
-
default:
|
|
1235
|
-
|
|
1278
|
+
default: l(() => [
|
|
1279
|
+
T(" 设置密码 ")
|
|
1236
1280
|
]),
|
|
1237
1281
|
_: 1
|
|
1238
|
-
})) : (
|
|
1282
|
+
})) : (C(), V(n, {
|
|
1239
1283
|
key: 1,
|
|
1240
|
-
onClick: o[2] || (o[2] = (
|
|
1241
|
-
var
|
|
1242
|
-
return (
|
|
1284
|
+
onClick: o[2] || (o[2] = (g) => {
|
|
1285
|
+
var _;
|
|
1286
|
+
return (_ = f.value) == null ? void 0 : _.open();
|
|
1243
1287
|
})
|
|
1244
1288
|
}, {
|
|
1245
|
-
default:
|
|
1246
|
-
|
|
1289
|
+
default: l(() => [
|
|
1290
|
+
T(" 修改密码 ")
|
|
1247
1291
|
]),
|
|
1248
1292
|
_: 1
|
|
1249
1293
|
})),
|
|
1250
|
-
|
|
1251
|
-
default:
|
|
1252
|
-
|
|
1294
|
+
t(n, { onClick: b }, {
|
|
1295
|
+
default: l(() => [
|
|
1296
|
+
T("退出登录")
|
|
1253
1297
|
]),
|
|
1254
1298
|
_: 1
|
|
1255
1299
|
})
|
|
@@ -1257,57 +1301,57 @@ const ln = { class: "user" }, rn = { class: "user-msg" }, sn = {
|
|
|
1257
1301
|
_: 3
|
|
1258
1302
|
})
|
|
1259
1303
|
]),
|
|
1260
|
-
default:
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
default:
|
|
1264
|
-
|
|
1304
|
+
default: l(() => [
|
|
1305
|
+
ne("div", an, [
|
|
1306
|
+
t(a, { class: "user-msg-icon" }, {
|
|
1307
|
+
default: l(() => [
|
|
1308
|
+
t(h(Ze))
|
|
1265
1309
|
]),
|
|
1266
1310
|
_: 1
|
|
1267
1311
|
}),
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
default:
|
|
1271
|
-
|
|
1312
|
+
ne("span", null, Z(u.nickName || u.username), 1),
|
|
1313
|
+
t(a, { class: "user-msg-arrow" }, {
|
|
1314
|
+
default: l(() => [
|
|
1315
|
+
t(h(Fe))
|
|
1272
1316
|
]),
|
|
1273
1317
|
_: 1
|
|
1274
1318
|
})
|
|
1275
1319
|
])
|
|
1276
1320
|
]),
|
|
1277
1321
|
_: 3
|
|
1278
|
-
})) : (
|
|
1322
|
+
})) : (C(), K("div", {
|
|
1279
1323
|
key: 1,
|
|
1280
1324
|
class: "user-login",
|
|
1281
|
-
onClick:
|
|
1325
|
+
onClick: w
|
|
1282
1326
|
}, [
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
default:
|
|
1286
|
-
|
|
1327
|
+
T(" 前往登录 "),
|
|
1328
|
+
t(a, { class: "user-login-icon" }, {
|
|
1329
|
+
default: l(() => [
|
|
1330
|
+
t(h(Qe))
|
|
1287
1331
|
]),
|
|
1288
1332
|
_: 1
|
|
1289
1333
|
})
|
|
1290
1334
|
])),
|
|
1291
|
-
|
|
1335
|
+
t(on, {
|
|
1292
1336
|
ref_key: "EditInfoDialogRef",
|
|
1293
|
-
ref:
|
|
1337
|
+
ref: m
|
|
1294
1338
|
}, null, 512),
|
|
1295
|
-
|
|
1339
|
+
t(tn, {
|
|
1296
1340
|
ref_key: "SetPasswordDialogRef",
|
|
1297
|
-
ref:
|
|
1341
|
+
ref: s
|
|
1298
1342
|
}, null, 512),
|
|
1299
|
-
|
|
1343
|
+
t(sn, {
|
|
1300
1344
|
ref_key: "EditPasswordDialogRef",
|
|
1301
|
-
ref:
|
|
1345
|
+
ref: f
|
|
1302
1346
|
}, null, 512)
|
|
1303
1347
|
]);
|
|
1304
1348
|
};
|
|
1305
1349
|
}
|
|
1306
|
-
},
|
|
1350
|
+
}, dn = /* @__PURE__ */ me(un, [["__scopeId", "data-v-8631f578"]]), Yn = {
|
|
1307
1351
|
install(e) {
|
|
1308
|
-
e.component("st-user",
|
|
1352
|
+
e.component("st-user", dn);
|
|
1309
1353
|
}
|
|
1310
1354
|
};
|
|
1311
1355
|
export {
|
|
1312
|
-
|
|
1356
|
+
Yn as default
|
|
1313
1357
|
};
|