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