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