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.
Files changed (37) hide show
  1. package/auto-imports.d.ts +3 -0
  2. package/es/CustomFunction.cjs +1 -1
  3. package/es/CustomFunction.js +267 -199
  4. package/es/FactorWarning.cjs +1 -1
  5. package/es/FactorWarning.js +27 -25
  6. package/es/KlinePlus.cjs +3 -3
  7. package/es/KlinePlus.js +252 -249
  8. package/es/User.cjs +1 -1
  9. package/es/User.js +714 -624
  10. package/es/VarietySearch.cjs +6 -6
  11. package/es/VarietySearch.js +19 -17
  12. package/es/VarietyTextCopy.cjs +3 -3
  13. package/es/VarietyTextCopy.js +4 -4
  14. package/es/el-checkbox-group-0ea8fbf8.cjs +1 -0
  15. package/es/el-checkbox-group-4ed993c7.js +1 -0
  16. package/es/{el-form-item-eeb64520.js → el-form-item-c53c374d.js} +2 -2
  17. package/es/el-message-box-a93d2f6a.js +489 -0
  18. package/es/el-message-box-c10adb52.cjs +1 -0
  19. package/es/el-text-ac60d0f2.js +67 -0
  20. package/es/el-text-c20a9f48.cjs +1 -0
  21. package/es/style.css +1 -1
  22. package/lib/bundle.js +1 -1
  23. package/lib/bundle.umd.cjs +206 -206
  24. package/lib/{index-c9dddb13.js → index-c0ce50bc.js} +20375 -20219
  25. package/lib/{python-8de8f552.js → python-9dae326e.js} +1 -1
  26. package/lib/style.css +1 -1
  27. package/package.json +1 -1
  28. package/packages/CustomFunction/index.vue +141 -30
  29. package/packages/KlinePlus/index.vue +17 -7
  30. package/packages/User/components/EditInfoDialog/Mobile.vue +110 -0
  31. package/packages/User/components/EditInfoDialog/index.vue +136 -0
  32. package/packages/User/components/SetPasswordDialog.vue +6 -3
  33. package/packages/User/index.vue +7 -22
  34. package/src/pages/KlinePlus/index.vue +6 -5
  35. package/es/el-message-box-48d71ee5.cjs +0 -1
  36. package/es/el-message-box-81ffd21e.js +0 -550
  37. package/packages/User/components/EditInfoDialog.vue +0 -144
package/es/User.js CHANGED
@@ -1,23 +1,24 @@
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";
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 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";
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 { 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
- import { _ as xe } from "./_plugin-vue_export-helper-dad06003.js";
15
- import { E as eo } from "./index-844bdd85.js";
16
- import { c as oo, e as no } from "./use-form-common-props-815d48a6.js";
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
- import { c as vo } from "./castArray-7741a212.js";
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 = De({
32
- style: { type: ee([String, Array, Object]) },
32
+ const wo = Be({
33
+ style: { type: ae([String, Array, Object]) },
33
34
  currentTabId: {
34
- type: ee(String)
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: ee(String)
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: _o,
52
- COLLECTION_INJECTION_KEY: me,
53
- COLLECTION_ITEM_INJECTION_KEY: bo
54
- } = to("RovingFocusGroup"), fe = Symbol("elRovingFocusGroup"), Re = Symbol("elRovingFocusGroupItem"), Io = {
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 T.right:
68
- return T.left;
69
- case T.left:
70
- return T.right;
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
- }, 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) => {
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 v of e)
81
- if (v === d || (v.focus(), d !== document.activeElement))
81
+ for (const f of e)
82
+ if (f === d || (f.focus(), d !== document.activeElement))
82
83
  return;
83
- }, Ie = "currentTabIdChange", Ee = "rovingFocusGroup.entryFocus", Po = { bubbles: !1, cancelable: !0 }, $o = z({
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: [Ie, "entryFocus"],
88
+ emits: [ye, "entryFocus"],
88
89
  setup(e, { emit: d }) {
89
- var v;
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(() => [
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
- ]), _ = (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);
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
- r.value = !0;
104
- }), n = V((m) => {
105
- var g;
106
- (g = e.onFocus) == null || g.call(e, m);
107
- }, (m) => {
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);
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
- r.value = !1;
117
- }), o = V((m) => {
118
- var g;
119
- (g = e.onBlur) == null || g.call(e, m);
117
+ c.value = !1;
118
+ }), t = O((v) => {
119
+ var b;
120
+ (b = e.onBlur) == null || b.call(e, v);
120
121
  }, () => {
121
- f.value = !1;
122
- }), p = (...m) => {
123
- d("entryFocus", ...m);
122
+ p.value = !1;
123
+ }), _ = (...v) => {
124
+ d("entryFocus", ...v);
124
125
  };
125
- Z(fe, {
126
- currentTabbedId: Ge(c),
127
- loop: j(e, "loop"),
128
- tabIndex: k(() => R(f) ? -1 : 0),
129
- rovingFocusGroupRef: s,
130
- rovingFocusGroupRootStyle: u,
131
- orientation: j(e, "orientation"),
132
- dir: j(e, "dir"),
133
- onItemFocus: _,
134
- onItemShiftTab: w,
135
- onBlur: o,
136
- onFocus: n,
137
- onMousedown: t
138
- }), Ue(() => e.currentTabId, (m) => {
139
- c.value = m ?? null;
140
- }), oo(s, Ee, p);
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 Fo(e, d, v, c, f, r) {
144
- return B(e.$slots, "default");
144
+ function ho(e, d, f, a, p, c) {
145
+ return V(e.$slots, "default");
145
146
  }
146
- var ho = /* @__PURE__ */ L($o, [["render", Fo], ["__file", "roving-focus-group-impl.vue"]]);
147
- const ko = z({
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: ho
152
+ ElRovingFocusGroupImpl: Ro
152
153
  }
153
154
  });
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
- B(e.$slots, "default")
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 To = /* @__PURE__ */ L(ko, [["render", Ro], ["__file", "roving-focus-group.vue"]]);
169
- const x = Symbol("elDropdown"), Te = "elDropdown", { ButtonGroup: So } = q, No = z({
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: q,
173
- ElButtonGroup: So,
174
- ElScrollbar: eo,
175
- ElDropdownCollection: lo,
176
- ElTooltip: Ke,
177
- ElRovingFocusGroup: To,
178
- ElOnlyChild: Ae,
179
- ElIcon: ae,
180
- ArrowDown: Pe
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: ro,
183
+ props: so,
183
184
  emits: ["visible-change", "click", "command"],
184
185
  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
- }
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 C;
198
- (C = i.value) == null || C.onOpen();
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 $ = no();
201
- function O(...C) {
202
- d("command", ...C);
201
+ const F = to();
202
+ function N(...I) {
203
+ d("command", ...I);
203
204
  }
204
205
  function S() {
205
206
  }
206
- function G() {
207
- const C = R(u);
208
- p.value.includes("hover") && (C == null || C.focus({
207
+ function U() {
208
+ const I = $(g);
209
+ _.value.includes("hover") && (I == null || I.focus({
209
210
  preventScroll: !0
210
- })), w.value = null;
211
+ })), n.value = null;
211
212
  }
212
- function U(C) {
213
- w.value = C;
213
+ function G(I) {
214
+ n.value = I;
214
215
  }
215
- function N(C) {
216
- t.value || (C.preventDefault(), C.stopImmediatePropagation());
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 W(C) {
222
+ function Z(I) {
222
223
  var Y;
223
- (C == null ? void 0 : C.type) === "keydown" && ((Y = u.value) == null || Y.focus());
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 Z(x, {
229
- contentRef: u,
230
- role: k(() => e.role),
231
- triggerId: g,
232
- isUsingKeyboard: t,
229
+ return j(se, {
230
+ contentRef: g,
231
+ role: T(() => e.role),
232
+ triggerId: b,
233
+ isUsingKeyboard: o,
233
234
  onItemEnter: S,
234
- onItemLeave: G
235
- }), Z(Te, {
236
- instance: v,
237
- dropdownSize: $,
238
- handleClick: b,
239
- commandHandler: O,
240
- trigger: j(e, "trigger"),
241
- hideOnClick: j(e, "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: f,
244
- ns: c,
245
- scrollbar: _,
246
- wrapStyle: n,
247
- dropdownTriggerKls: o,
248
- dropdownSize: $,
249
- triggerId: g,
250
- currentTabId: w,
251
- handleCurrentTabIdChange: U,
252
- handlerMainButtonClick: (C) => {
253
- d("click", C);
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: N,
256
- handleClose: I,
257
- handleOpen: E,
256
+ handleEntryFocus: D,
257
+ handleClose: E,
258
+ handleOpen: A,
258
259
  handleBeforeShowTooltip: we,
259
- handleShowTooltip: W,
260
+ handleShowTooltip: Z,
260
261
  handleBeforeHideTooltip: J,
261
- onFocusAfterTrapped: (C) => {
262
+ onFocusAfterTrapped: (I) => {
262
263
  var Y, ge;
263
- C.preventDefault(), (ge = (Y = u.value) == null ? void 0 : Y.focus) == null || ge.call(Y, {
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: i,
268
- contentRef: u,
269
- triggeringElementRef: r,
270
- referenceElementRef: s
268
+ popperRef: u,
269
+ contentRef: g,
270
+ triggeringElementRef: c,
271
+ referenceElementRef: i
271
272
  };
272
273
  }
273
274
  });
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", {
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(n, {
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": (s = e.referenceElementRef) == null ? void 0 : s.$el,
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": (i = e.virtualRef) != null ? i : e.triggeringElementRef,
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
- }, Ye({
310
- content: a(() => [
311
- l(w, {
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: a(() => [
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: a(() => [
326
- l(u, null, {
327
- default: a(() => [
328
- B(e.$slots, "dropdown")
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: a(() => [
344
- l(t, {
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: a(() => [
351
- B(e.$slots, "default")
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(g, { key: 0 }, {
359
- default: a(() => [
360
- l(o, X({ ref: "referenceElementRef" }, e.buttonProps, {
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: a(() => [
368
- B(e.$slots, "default")
368
+ default: s(() => [
369
+ V(e.$slots, "default")
369
370
  ]),
370
371
  _: 3
371
372
  }, 16, ["size", "type", "disabled", "tabindex", "onClick"]),
372
- l(o, X({
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: a(() => [
385
- l(m, {
385
+ default: s(() => [
386
+ l(v, {
386
387
  class: Q(e.ns.e("icon"))
387
388
  }, {
388
- default: a(() => [
389
- l(p)
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
- })) : oe("v-if", !0)
399
+ })) : ie("v-if", !0)
399
400
  ], 2);
400
401
  }
401
- var Do = /* @__PURE__ */ L(No, [["render", Oo], ["__file", "dropdown.vue"]]);
402
- const Vo = z({
402
+ var Vo = /* @__PURE__ */ z(No, [["render", Oo], ["__file", "dropdown.vue"]]);
403
+ const Ko = L({
403
404
  components: {
404
- ElRovingFocusCollectionItem: _o
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: 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
- }, (o) => {
418
- e.focusable ? f(R(i)) : o.preventDefault();
419
- }), w = V((o) => {
420
- d("focus", o);
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
- f(R(i));
423
- }), t = V((o) => {
424
- d("keydown", o);
425
- }, (o) => {
426
- const { code: p, shiftKey: m, target: g, currentTarget: b } = o;
427
- if (p === T.tab && m) {
428
- r();
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 (g !== b)
432
+ if (b !== m)
432
433
  return;
433
- const I = yo(o);
434
- if (I) {
435
- o.preventDefault();
436
- let $ = s().filter((O) => O.focusable).map((O) => O.ref);
437
- switch (I) {
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
- $.reverse();
440
+ F.reverse();
440
441
  break;
441
442
  }
442
443
  case "prev":
443
444
  case "next": {
444
- I === "prev" && $.reverse();
445
- const O = $.indexOf(b);
446
- $ = c.value ? Co($, O + 1) : $.slice(O + 1);
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
- re(() => {
451
- ve($);
451
+ de(() => {
452
+ _e(F);
452
453
  });
453
454
  }
454
- }), n = k(() => v.value === R(i));
455
- return Z(Re, {
456
- rovingFocusGroupItemRef: u,
457
- tabIndex: k(() => R(n) ? 0 : -1),
458
- handleMousedown: _,
459
- handleFocus: w,
460
- handleKeydown: t
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: i,
463
- handleKeydown: t,
464
- handleFocus: w,
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, v, c, f, r) {
470
- const s = h("el-roving-focus-collection-item");
471
- return P(), K(s, {
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: a(() => [
477
- B(e.$slots, "default")
477
+ default: s(() => [
478
+ V(e.$slots, "default")
478
479
  ]),
479
480
  _: 3
480
481
  }, 8, ["id", "focusable", "active"]);
481
482
  }
482
- var Ko = /* @__PURE__ */ L(Vo, [["render", Bo], ["__file", "roving-focus-item.vue"]]);
483
- const Ao = z({
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: ae
487
+ ElIcon: ce
487
488
  },
488
- props: he,
489
+ props: ke,
489
490
  emits: ["pointermove", "pointerleave", "click", "clickimpl"],
490
491
  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
- handleFocus: u,
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
- }, _);
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: v,
503
- itemRef: t,
503
+ ns: f,
504
+ itemRef: o,
504
505
  dataset: {
505
- [ao]: ""
506
+ [io]: ""
506
507
  },
507
- role: n,
508
- tabIndex: i,
509
- handleFocus: u,
510
- handleKeydown: o,
511
- handleMousedown: w
508
+ role: r,
509
+ tabIndex: u,
510
+ handleFocus: g,
511
+ handleKeydown: t,
512
+ handleMousedown: n
512
513
  };
513
514
  }
514
515
  });
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", {
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)) : oe("v-if", !0),
523
- ne("li", X({ ref: e.itemRef }, { ...e.dataset, ...e.$attrs }, {
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: (i) => e.$emit("clickimpl", i),
529
+ onClick: (u) => e.$emit("clickimpl", u),
529
530
  onFocus: e.handleFocus,
530
- onKeydown: H(e.handleKeydown, ["self"]),
531
+ onKeydown: W(e.handleKeydown, ["self"]),
531
532
  onMousedown: e.handleMousedown,
532
- onPointermove: (i) => e.$emit("pointermove", i),
533
- onPointerleave: (i) => e.$emit("pointerleave", i)
533
+ onPointermove: (u) => e.$emit("pointermove", u),
534
+ onPointerleave: (u) => e.$emit("pointerleave", u)
534
535
  }), [
535
- e.icon ? (P(), K(s, { key: 0 }, {
536
- default: a(() => [
537
- (P(), K(Je(e.icon)))
536
+ e.icon ? (P(), K(i, { key: 0 }, {
537
+ default: s(() => [
538
+ (P(), K(je(e.icon)))
538
539
  ]),
539
540
  _: 1
540
- })) : oe("v-if", !0),
541
- B(e.$slots, "default")
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__ */ 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);
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
- }, Uo = z({
553
+ }, zo = L({
553
554
  name: "ElDropdownItem",
554
555
  components: {
555
- ElDropdownCollectionItem: io,
556
- ElRovingFocusItem: Ko,
556
+ ElDropdownCollectionItem: uo,
557
+ ElRovingFocusItem: Mo,
557
558
  ElDropdownItemImpl: Go
558
559
  },
559
560
  inheritAttrs: !1,
560
- props: he,
561
+ props: ke,
561
562
  emits: ["pointermove", "pointerleave", "click"],
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) => {
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
- u(o);
569
+ g(t);
569
570
  return;
570
571
  }
571
- const p = o.currentTarget;
572
- p === document.activeElement || p.contains(document.activeElement) || (i(o), o.defaultPrevented || p == null || p.focus({
572
+ const _ = t.currentTarget;
573
+ _ === document.activeElement || _.contains(document.activeElement) || (u(t), t.defaultPrevented || _ == null || _.focus({
573
574
  preventScroll: !0
574
575
  }));
575
- })), w = V((o) => (d("pointerleave", o), o.defaultPrevented), _e(u)), t = V((o) => {
576
+ })), n = O((t) => (d("pointerleave", t), t.defaultPrevented), be(g)), o = O((t) => {
576
577
  if (!e.disabled)
577
- return d("click", o), o.type !== "keydown" && o.defaultPrevented;
578
- }, (o) => {
579
- var p, m, g;
578
+ return d("click", t), t.type !== "keydown" && t.defaultPrevented;
579
+ }, (t) => {
580
+ var _, v, b;
580
581
  if (e.disabled) {
581
- o.stopImmediatePropagation();
582
+ t.stopImmediatePropagation();
582
583
  return;
583
584
  }
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 }));
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: t,
588
- handlePointerMove: _,
589
- handlePointerLeave: w,
590
- textContent: s,
591
- propsAndAttrs: n
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, 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(_, {
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": (s = e.textValue) != null ? s : e.textContent
601
+ "text-value": (i = e.textValue) != null ? i : e.textContent
601
602
  }, {
602
- default: a(() => [
603
- l(u, {
603
+ default: s(() => [
604
+ l(g, {
604
605
  focusable: !e.disabled
605
606
  }, {
606
- default: a(() => [
607
- l(i, X(e.propsAndAttrs, {
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: a(() => [
613
- B(e.$slots, "default")
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 Ne = /* @__PURE__ */ L(Uo, [["render", Lo], ["__file", "dropdown-item.vue"]]);
625
- const zo = z({
625
+ var Ve = /* @__PURE__ */ z(zo, [["render", Lo], ["__file", "dropdown-item.vue"]]);
626
+ const Yo = L({
626
627
  name: "ElDropdownMenu",
627
- props: uo,
628
+ props: co,
628
629
  setup(e) {
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
- tabIndex: o,
633
- onBlur: p,
634
- onFocus: m,
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);
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: G, code: U, target: N } = S;
641
- if (G.contains(N), T.tab === U && S.stopImmediatePropagation(), S.preventDefault(), N !== R(s) || !po.includes(U))
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 W = w().filter((J) => !J.disabled).map((J) => J.ref);
644
- mo.includes(U) && W.reverse(), ve(W);
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: c,
648
- rovingFocusGroupRootStyle: n,
649
- tabIndex: o,
650
- dropdownKls: I,
651
- role: i,
652
- triggerId: u,
653
- dropdownListWrapperRef: E,
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
- $(S), r(S);
656
+ F(S), c(S);
656
657
  },
657
- onBlur: p,
658
- onFocus: m,
659
- onMousedown: g
658
+ onBlur: _,
659
+ onFocus: v,
660
+ onMousedown: b
660
661
  };
661
662
  }
662
663
  });
663
- function Yo(e, d, v, c, f, r) {
664
- return P(), A("ul", {
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: je(e.rovingFocusGroupRootStyle),
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: H(e.handleKeydown, ["self"]),
674
- onMousedown: H(e.onMousedown, ["self"])
674
+ onKeydown: W(e.handleKeydown, ["self"]),
675
+ onMousedown: W(e.onMousedown, ["self"])
675
676
  }, [
676
- B(e.$slots, "default")
677
+ V(e.$slots, "default")
677
678
  ], 46, ["role", "aria-labelledby", "onBlur", "onFocus", "onKeydown", "onMousedown"]);
678
679
  }
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: "",
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
- }), _ = 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
- ],
690
+ }), i = M({
710
691
  mobile: [
711
692
  { required: !0, message: "请输入手机号", trigger: "blur" },
712
693
  {
713
- validator: (t, n, o) => {
714
- /^1[3-9]\d{9}$/.test(n) ? o() : o("手机号格式错误");
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
- }), w = (t) => {
720
- t && t.validate(async (n) => {
721
- if (!n)
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 o = {
724
- ...u,
725
- userId: r.id,
726
- username: r.username
707
+ const n = {
708
+ ...c,
709
+ userId: f.id,
710
+ username: f.username
727
711
  };
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);
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 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, [
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: s.value,
744
- "onUpdate:modelValue": n[7] || (n[7] = (I) => s.value = I),
745
- title: "设置资料",
738
+ modelValue: a.value,
739
+ "onUpdate:modelValue": n[2] || (n[2] = (m) => a.value = m),
746
740
  width: "460",
747
- "destroy-on-close": "",
748
- "z-index": 200
741
+ title: "手机号绑定",
742
+ "append-to-body": "",
743
+ "destroy-on-close": ""
749
744
  }, {
750
- footer: a(() => [
751
- l(g, {
752
- onClick: n[5] || (n[5] = (I) => s.value = !1)
745
+ footer: s(() => [
746
+ l(v, {
747
+ onClick: n[1] || (n[1] = (m) => a.value = !1)
753
748
  }, {
754
- default: a(() => [
755
- D(" 取消 ")
749
+ default: s(() => [
750
+ R(" 取消 ")
756
751
  ]),
757
752
  _: 1
758
753
  }),
759
- l(g, {
754
+ l(v, {
760
755
  type: "primary",
761
- onClick: n[6] || (n[6] = (I) => w(i.value))
756
+ onClick: g
762
757
  }, {
763
- default: a(() => [
764
- D(" 确认 ")
758
+ default: s(() => [
759
+ R(" 确认 ")
765
760
  ]),
766
761
  _: 1
767
762
  })
768
763
  ]),
769
- default: a(() => [
770
- l(m, {
764
+ default: s(() => [
765
+ l(_, {
771
766
  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"]))
767
+ ref: p,
768
+ rules: i,
769
+ model: c
779
770
  }, {
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: "手机号",
771
+ default: s(() => [
772
+ l(t, {
773
+ label: "新手机",
807
774
  prop: "mobile"
808
775
  }, {
809
- default: a(() => [
810
- l(o, {
811
- modelValue: u.mobile,
812
- "onUpdate:modelValue": n[2] || (n[2] = (I) => u.mobile = I)
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
- }, Zo = { class: "set-password" }, Qo = {
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
- emits: ["callBack"],
829
- setup(e, { expose: d, emit: v }) {
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
- }), _ = M({
929
+ }), g = M({
834
930
  newPassword: [],
835
931
  newPassword2: [
836
932
  { required: !0, message: "请输入确认密码", trigger: "blur" },
837
933
  {
838
- validator: (n, o, p) => {
839
- o === "" ? p(new Error("请输入确认密码")) : o !== u.newPassword ? p(new Error("两次输入密码不一致!")) : p();
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), t = (n) => {
845
- n && n.validate(async (o) => {
846
- if (!o)
940
+ }), w = y(!1), n = (o) => {
941
+ o && o.validate(async (r) => {
942
+ if (!r)
847
943
  return !1;
848
- await c.request.post("/invest/sys/user/setPassword", { newPassword: u.newPassword }), pe.success("密码设置成功!"), s.value = !1, f("callBack");
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
- }), s.value = !0, re(() => {
857
- var n, o;
858
- (n = _.newPassword) != null && n.length || (_.newPassword = (o = r.value) == null ? void 0 : o.ruleFormPassword);
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
- }), (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),
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: a(() => [
968
+ footer: s(() => [
873
969
  l(b, {
874
- onClick: o[6] || (o[6] = (E) => s.value = !1)
970
+ onClick: r[6] || (r[6] = (E) => c.value = !1)
875
971
  }, {
876
- default: a(() => [
877
- D(" 取消 ")
972
+ default: s(() => [
973
+ R(" 取消 ")
878
974
  ]),
879
975
  _: 1
880
976
  }),
881
977
  l(b, {
882
978
  type: "primary",
883
- onClick: o[7] || (o[7] = (E) => t(i.value))
979
+ onClick: r[7] || (r[7] = (E) => n(i.value))
884
980
  }, {
885
- default: a(() => [
886
- D(" 确认 ")
981
+ default: s(() => [
982
+ R(" 确认 ")
887
983
  ]),
888
984
  _: 1
889
985
  })
890
986
  ]),
891
- default: a(() => [
892
- l(g, {
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: o[4] || (o[4] = H((E) => t(i.value), ["prevent"])),
900
- onKeyup: o[5] || (o[5] = se((E) => t(i.value), ["enter", "native"]))
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: a(() => [
903
- l(m, {
998
+ default: s(() => [
999
+ l(_, {
904
1000
  label: "密码",
905
1001
  prop: "newPassword"
906
1002
  }, {
907
- default: a(() => [
908
- l(p, {
1003
+ default: s(() => [
1004
+ l(t, {
909
1005
  modelValue: u.newPassword,
910
- "onUpdate:modelValue": o[0] || (o[0] = (E) => u.newPassword = E),
1006
+ "onUpdate:modelValue": r[0] || (r[0] = (E) => u.newPassword = E),
911
1007
  type: "password",
912
1008
  "show-password": !0,
913
- onFocus: o[1] || (o[1] = () => {
1009
+ onFocus: r[1] || (r[1] = () => {
914
1010
  i.value.clearValidate(["newPassword"]), w.value = !0;
915
1011
  }),
916
- onBlur: o[2] || (o[2] = (E) => w.value = !1)
1012
+ onBlur: r[2] || (r[2] = (E) => w.value = !1)
917
1013
  }, null, 8, ["modelValue"]),
918
- l(Fe, {
1014
+ l(Te, {
919
1015
  ref_key: "PasswordPromptRef",
920
- ref: r,
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(m, {
1023
+ l(_, {
928
1024
  label: "确认密码",
929
1025
  prop: "newPassword2"
930
1026
  }, {
931
- default: a(() => [
932
- l(p, {
1027
+ default: s(() => [
1028
+ l(t, {
933
1029
  modelValue: u.newPassword2,
934
- "onUpdate:modelValue": o[3] || (o[3] = (E) => u.newPassword2 = E),
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
- }, Xo = { class: "edit-password" }, xo = {
1046
+ }, nn = { class: "edit-password" }, tn = {
951
1047
  __name: "EditPasswordDialog",
952
1048
  setup(e, { expose: d }) {
953
- const v = F("stConfig"), c = y(null), f = y(!1), r = y(), s = M({
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
- }), i = M({
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: (w, t, n) => {
964
- t === "" ? n(new Error("请输入确认密码")) : t !== s.newPassword ? n(new Error("两次输入密码不一致!")) : n();
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
- }), u = y(!1), _ = (w) => {
970
- w && w.validate(async (t) => {
971
- if (!t)
1065
+ }), g = y(!1), w = (n) => {
1066
+ n && n.validate(async (o) => {
1067
+ if (!o)
972
1068
  return !1;
973
- await v.request.post("/invest/sys/user/password", s), pe.success("密码修改成功!"), f.value = !1;
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(s, {
1074
+ Object.assign(i, {
979
1075
  password: "",
980
1076
  newPassword: "",
981
1077
  newPassword2: ""
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);
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
- }), (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),
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: a(() => [
999
- l(m, {
1000
- onClick: t[7] || (t[7] = (b) => f.value = !1)
1094
+ footer: s(() => [
1095
+ l(v, {
1096
+ onClick: o[7] || (o[7] = (m) => p.value = !1)
1001
1097
  }, {
1002
- default: a(() => [
1003
- D(" 取消 ")
1098
+ default: s(() => [
1099
+ R(" 取消 ")
1004
1100
  ]),
1005
1101
  _: 1
1006
1102
  }),
1007
- l(m, {
1103
+ l(v, {
1008
1104
  type: "primary",
1009
- onClick: t[8] || (t[8] = (b) => _(r.value))
1105
+ onClick: o[8] || (o[8] = (m) => w(c.value))
1010
1106
  }, {
1011
- default: a(() => [
1012
- D(" 确认 ")
1107
+ default: s(() => [
1108
+ R(" 确认 ")
1013
1109
  ]),
1014
1110
  _: 1
1015
1111
  })
1016
1112
  ]),
1017
- default: a(() => [
1018
- l(p, {
1113
+ default: s(() => [
1114
+ l(_, {
1019
1115
  ref_key: "ruleFormRef",
1020
- ref: r,
1021
- rules: i,
1022
- model: s,
1116
+ ref: c,
1117
+ rules: u,
1118
+ model: i,
1023
1119
  "label-width": "auto",
1024
1120
  "validate-on-rule-change": !1,
1025
- onSubmit: t[5] || (t[5] = H((b) => _(r.value), ["prevent"])),
1026
- onKeyup: t[6] || (t[6] = se((b) => _(r.value), ["enter", "native"]))
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: a(() => [
1029
- l(o, {
1124
+ default: s(() => [
1125
+ l(t, {
1030
1126
  label: "原密码",
1031
1127
  prop: "password"
1032
1128
  }, {
1033
- default: a(() => [
1034
- l(n, {
1035
- modelValue: s.password,
1036
- "onUpdate:modelValue": t[0] || (t[0] = (b) => s.password = b),
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(o, {
1139
+ l(t, {
1044
1140
  label: "新密码",
1045
1141
  prop: "newPassword"
1046
1142
  }, {
1047
- default: a(() => [
1048
- l(n, {
1049
- modelValue: s.newPassword,
1050
- "onUpdate:modelValue": t[1] || (t[1] = (b) => s.newPassword = b),
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: t[2] || (t[2] = () => {
1054
- r.value.clearValidate(["newPassword"]), u.value = !0;
1149
+ onFocus: o[2] || (o[2] = () => {
1150
+ c.value.clearValidate(["newPassword"]), g.value = !0;
1055
1151
  }),
1056
- onBlur: t[3] || (t[3] = (b) => u.value = !1)
1152
+ onBlur: o[3] || (o[3] = (m) => g.value = !1)
1057
1153
  }, null, 8, ["modelValue"]),
1058
- l(Fe, {
1154
+ l(Te, {
1059
1155
  ref_key: "PasswordPromptRef",
1060
- ref: c,
1061
- value: s.newPassword,
1062
- isFocus: u.value
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(o, {
1163
+ l(t, {
1068
1164
  label: "确认密码",
1069
1165
  prop: "newPassword2"
1070
1166
  }, {
1071
- default: a(() => [
1072
- l(n, {
1073
- modelValue: s.newPassword2,
1074
- "onUpdate:modelValue": t[4] || (t[4] = (b) => s.newPassword2 = b),
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 en = { class: "user" }, on = { class: "user-msg" }, nn = {
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 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);
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 p = ae, m = Jo, g = jo, b = Ho;
1115
- return P(), A("div", en, [
1116
- r ? (P(), K(b, {
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: 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();
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: a(() => [
1131
- D("设置资料")
1222
+ default: s(() => [
1223
+ R("设置资料")
1132
1224
  ]),
1133
1225
  _: 1
1134
1226
  }),
1135
- r.canSet ? (P(), K(m, {
1227
+ c.canSet ? (P(), K(t, {
1136
1228
  key: 0,
1137
- onClick: o[1] || (o[1] = (I) => {
1138
- var E;
1139
- return (E = c.value) == null ? void 0 : E.open();
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: a(() => [
1143
- D(" 设置密码 ")
1234
+ default: s(() => [
1235
+ R(" 设置密码 ")
1144
1236
  ]),
1145
1237
  _: 1
1146
- })) : (P(), K(m, {
1238
+ })) : (P(), K(t, {
1147
1239
  key: 1,
1148
- onClick: o[2] || (o[2] = (I) => {
1149
- var E;
1150
- return (E = f.value) == null ? void 0 : E.open();
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: a(() => [
1154
- D(" 修改密码 ")
1245
+ default: s(() => [
1246
+ R(" 修改密码 ")
1155
1247
  ]),
1156
1248
  _: 1
1157
1249
  })),
1158
- l(m, { onClick: _ }, {
1159
- default: a(() => [
1160
- D("退出登录")
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: a(() => [
1169
- ne("div", on, [
1170
- l(p, { class: "user-msg-icon" }, {
1171
- default: a(() => [
1172
- l(R(We))
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
- 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))
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(), A("div", {
1278
+ })) : (P(), B("div", {
1187
1279
  key: 1,
1188
1280
  class: "user-login",
1189
- onClick: u
1281
+ onClick: g
1190
1282
  }, [
1191
- D(" 前往登录 "),
1192
- l(p, { class: "user-login-icon" }, {
1193
- default: a(() => [
1194
- l(R(Ze))
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(Wo, {
1291
+ l(xo, {
1200
1292
  ref_key: "EditInfoDialogRef",
1201
- ref: v,
1202
- onCallBack: w
1293
+ ref: f
1203
1294
  }, null, 512),
1204
- l(Qo, {
1295
+ l(on, {
1205
1296
  ref_key: "SetPasswordDialogRef",
1206
- ref: c,
1207
- onCallBack: t
1297
+ ref: a
1208
1298
  }, null, 512),
1209
- l(xo, {
1299
+ l(tn, {
1210
1300
  ref_key: "EditPasswordDialogRef",
1211
- ref: f
1301
+ ref: p
1212
1302
  }, null, 512)
1213
1303
  ]);
1214
1304
  };
1215
1305
  }
1216
- }, tn = /* @__PURE__ */ xe(nn, [["__scopeId", "data-v-b7b01106"]]), Kn = {
1306
+ }, an = /* @__PURE__ */ me(sn, [["__scopeId", "data-v-8631f578"]]), zn = {
1217
1307
  install(e) {
1218
- e.component("st-user", tn);
1308
+ e.component("st-user", an);
1219
1309
  }
1220
1310
  };
1221
1311
  export {
1222
- Kn as default
1312
+ zn as default
1223
1313
  };