st-comp 0.0.198 → 0.0.200

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 (151) hide show
  1. package/auto-imports.d.ts +3 -0
  2. package/components.d.ts +0 -3
  3. package/es/ChartLayout.js +4 -4
  4. package/es/ConfigProvider.cjs +1 -1
  5. package/es/ConfigProvider.js +1 -1
  6. package/es/CustomFunction.cjs +1 -1
  7. package/es/CustomFunction.js +281 -217
  8. package/es/FactorWarning.cjs +1 -1
  9. package/es/FactorWarning.js +68 -71
  10. package/es/Kline.cjs +1 -1
  11. package/es/Kline.js +19 -21
  12. package/es/KlineBasic.cjs +1 -1
  13. package/es/KlineBasic.js +28 -30
  14. package/es/KlineConfig.cjs +1 -1
  15. package/es/KlineConfig.js +23 -25
  16. package/es/KlineNew.cjs +1 -1
  17. package/es/KlineNew.js +18 -20
  18. package/es/KlinePlus.cjs +1 -1
  19. package/es/KlinePlus.js +21 -23
  20. package/es/MonacoEditor.cjs +1 -1
  21. package/es/MonacoEditor.js +2 -2
  22. package/es/Pagination.cjs +1 -1
  23. package/es/Pagination.js +72 -74
  24. package/es/PasswordPrompt.cjs +1 -1
  25. package/es/PasswordPrompt.js +157 -9
  26. package/es/Pie.cjs +1 -1
  27. package/es/Pie.js +1 -1
  28. package/es/Table.cjs +1 -1
  29. package/es/Table.js +50 -53
  30. package/es/User.cjs +1 -1
  31. package/es/User.js +1 -1215
  32. package/es/VarSelectDialog.cjs +1 -1
  33. package/es/VarSelectDialog.js +26 -28
  34. package/es/VarietyAutoComplete.cjs +1 -1
  35. package/es/VarietyAutoComplete.js +18 -19
  36. package/es/VarietySearch.cjs +7 -7
  37. package/es/VarietySearch.js +693 -697
  38. package/es/VarietyTextCopy.cjs +1 -1
  39. package/es/VarietyTextCopy.js +12 -12
  40. package/es/VirtualTable.cjs +1 -1
  41. package/es/VirtualTable.js +79 -80
  42. package/es/{base-a5af3db3.js → base-8348063b.js} +38 -38
  43. package/es/{castArray-7741a212.js → castArray-3f45c3ec.js} +1 -1
  44. package/es/{config-provider-b16efd62.js → config-provider-1a687690.js} +6 -6
  45. package/es/{config-provider-a584d81e.cjs → config-provider-eb0460f1.cjs} +1 -1
  46. package/es/el-autocomplete-86c0d989.cjs +1 -0
  47. package/es/{el-autocomplete-ba808eb6.js → el-autocomplete-d4cd96cd.js} +16 -16
  48. package/es/{el-button-c95adb85.js → el-button-2e680390.js} +33 -33
  49. package/es/{el-button-eec58cff.cjs → el-button-4ccd7122.cjs} +1 -1
  50. package/es/el-checkbox-group-dfdad075.cjs +1 -0
  51. package/es/el-checkbox-group-e26a4533.js +67 -0
  52. package/es/{el-dialog-ae86edb8.cjs → el-dialog-6413b4af.cjs} +1 -1
  53. package/es/{el-dialog-41ab8417.js → el-dialog-bafc4b2b.js} +6 -7
  54. package/es/{el-divider-4e059794.js → el-divider-93b0ee21.js} +1 -1
  55. package/es/{el-empty-33cb66f1.js → el-empty-56783dca.js} +3 -3
  56. package/es/el-form-item-41becb31.js +1749 -0
  57. package/es/el-form-item-95476197.cjs +12 -0
  58. package/es/{el-input-7fd293af.cjs → el-input-6c5ac889.cjs} +1 -1
  59. package/es/{el-input-2f75c4ba.js → el-input-735575f4.js} +34 -34
  60. package/es/{el-input-number-5193fe6d.js → el-input-number-6634a6ea.js} +35 -35
  61. package/es/{el-input-number-22e21d16.cjs → el-input-number-d5770776.cjs} +1 -1
  62. package/es/{el-loading-f6022062.js → el-loading-049dacc5.js} +5 -5
  63. package/es/{el-loading-cfd86c15.cjs → el-loading-98dcebee.cjs} +1 -1
  64. package/es/{el-menu-item-17dc717e.cjs → el-menu-item-828bc6fa.cjs} +1 -1
  65. package/es/{el-menu-item-7e881203.js → el-menu-item-8a210e21.js} +22 -22
  66. package/es/{el-message-5e6a6be9.cjs → el-message-a1ac37d4.cjs} +1 -1
  67. package/es/{el-message-e544a8f5.js → el-message-def216ae.js} +24 -24
  68. package/es/{el-overlay-09ad71cd.js → el-overlay-4ea38eab.js} +51 -51
  69. package/es/{el-overlay-9e34965f.cjs → el-overlay-69dfacb6.cjs} +1 -1
  70. package/es/{el-popconfirm-81dcd202.js → el-popconfirm-aace1104.js} +20 -20
  71. package/es/{el-popconfirm-70a976bf.cjs → el-popconfirm-bdeceeb7.cjs} +1 -1
  72. package/es/{_initCloneObject-52b6a510.cjs → el-popover-5421d52a.cjs} +1 -1
  73. package/es/{_initCloneObject-eaef9418.js → el-popover-7a1c6412.js} +9 -9
  74. package/es/{el-popper-b4f97157.js → el-popper-986a8371.js} +112 -115
  75. package/es/{el-popper-b6c99b28.cjs → el-popper-b962125f.cjs} +1 -1
  76. package/es/el-scrollbar-139aa96d.cjs +1 -0
  77. package/es/el-scrollbar-cdadd788.js +115 -0
  78. package/es/{el-segmented-f8fce9ac.cjs → el-segmented-6b057ed5.cjs} +1 -1
  79. package/es/{el-segmented-b868d074.js → el-segmented-f892ec18.js} +8 -8
  80. package/es/{el-select-95627997.js → el-select-2189a8ac.js} +41 -42
  81. package/es/el-select-e1046cc6.cjs +1 -0
  82. package/es/{el-table-column-72c50d58.js → el-table-column-91d69c86.js} +14 -14
  83. package/es/el-table-column-f1c4af89.cjs +14 -0
  84. package/es/{el-tag-66cab138.js → el-tag-75a7573a.js} +16 -16
  85. package/es/{el-tag-a33c4b22.cjs → el-tag-a15520b3.cjs} +1 -1
  86. package/es/{index-d77a7336.js → index-14c88a1a.js} +1 -1
  87. package/es/{index-11547a0c.cjs → index-16802b35.cjs} +1 -1
  88. package/es/{index-098c2447.cjs → index-1fb95601.cjs} +1 -1
  89. package/es/index-56ea97a9.js +122 -0
  90. package/es/{index-c108567d.cjs → index-5e0314ac.cjs} +1 -1
  91. package/es/{index-298075cf.cjs → index-680be212.cjs} +1 -1
  92. package/es/{index-bc8e277e.js → index-780e7fd2.js} +2 -2
  93. package/es/{index-d725fef6.cjs → index-78381381.cjs} +2 -2
  94. package/es/{index-a871c3eb.js → index-847d58bc.js} +62 -92
  95. package/es/index-8583c047.cjs +1 -0
  96. package/es/{index-7ed0999e.js → index-9cfb6ccf.js} +0 -2
  97. package/es/{index-e5566b94.js → index-c94b9543.js} +43 -43
  98. package/es/{index-8901a38c.cjs → index-cc200b99.cjs} +1 -1
  99. package/es/index-ce63356a.cjs +1 -0
  100. package/es/index-db1e1861.js +318 -0
  101. package/es/{index-960806da.js → index-e00ee015.js} +36 -36
  102. package/es/{index-844bdd85.js → index-f3a86049.js} +29 -29
  103. package/es/{index-d91dc23f.js → index-f45c2897.js} +20 -20
  104. package/es/{python-c27ba105.cjs → python-2e916d28.cjs} +1 -1
  105. package/es/{python-ecde9ff2.js → python-7cf0b6ba.js} +2 -2
  106. package/es/{raf-80ef0c0a.js → raf-8e5f0699.js} +1 -1
  107. package/es/{scroll-679bd6bf.js → scroll-c43468ab.js} +1 -1
  108. package/es/style.css +1 -1
  109. package/es/{use-form-common-props-fd9b61a0.cjs → use-form-common-props-d8866dc6.cjs} +1 -1
  110. package/es/{use-form-common-props-815d48a6.js → use-form-common-props-e6cba60f.js} +69 -69
  111. package/es/{use-global-config-30d7d8ce.cjs → use-global-config-72d50e62.cjs} +1 -1
  112. package/es/{use-global-config-b5e9d3d5.js → use-global-config-76ff2e3e.js} +14 -14
  113. package/es/{validator-764a9db0.js → validator-220652c5.js} +1 -1
  114. package/es/{validator-1b8a6128.cjs → validator-e759d43d.cjs} +1 -1
  115. package/es/{zh-cn-90317f62.cjs → zh-cn-33e7aee6.cjs} +1 -1
  116. package/es/{zh-cn-e963c628.js → zh-cn-c7fa42ea.js} +2 -2
  117. package/lib/bundle.js +1 -1
  118. package/lib/bundle.umd.cjs +205 -205
  119. package/lib/{index-a75ac019.js → index-410c490f.js} +19955 -19794
  120. package/lib/{python-0eadb75b.js → python-589861d2.js} +1 -1
  121. package/lib/style.css +1 -1
  122. package/package.json +1 -1
  123. package/packages/CustomFunction/index.vue +141 -30
  124. package/packages/User/components/EditInfoDialog/Mobile.vue +110 -0
  125. package/packages/User/components/EditInfoDialog/index.vue +136 -0
  126. package/packages/User/components/SetPasswordDialog.vue +6 -3
  127. package/packages/User/index.vue +7 -22
  128. package/es/debounce-62f5b6e8.cjs +0 -1
  129. package/es/debounce-8d53f4dd.js +0 -83
  130. package/es/dropdown-071c5d7e.cjs +0 -1
  131. package/es/dropdown-a59bba73.js +0 -178
  132. package/es/el-autocomplete-a07e9439.cjs +0 -1
  133. package/es/el-form-item-c3fe189b.cjs +0 -12
  134. package/es/el-form-item-eeb64520.js +0 -1269
  135. package/es/el-message-box-48d71ee5.cjs +0 -1
  136. package/es/el-message-box-81ffd21e.js +0 -550
  137. package/es/el-popover-0ea8fbf8.cjs +0 -1
  138. package/es/el-popover-4ed993c7.js +0 -1
  139. package/es/el-scrollbar-323542e7.js +0 -34
  140. package/es/el-scrollbar-bc3f790d.cjs +0 -1
  141. package/es/el-select-d8d91db1.cjs +0 -1
  142. package/es/el-table-column-079b76f5.cjs +0 -14
  143. package/es/index-1f7d4f70.js +0 -157
  144. package/es/index-57672682.js +0 -113
  145. package/es/index-88546436.js +0 -163
  146. package/es/index-9b9ef5dd.cjs +0 -1
  147. package/es/index-f3562b52.cjs +0 -1
  148. package/es/index-f967d6c1.cjs +0 -1
  149. package/es/vnode-5ddb7ed1.js +0 -14
  150. package/es/vnode-b906ae6d.cjs +0 -1
  151. package/packages/User/components/EditInfoDialog.vue +0 -132
package/es/User.js CHANGED
@@ -1,1215 +1 @@
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 Me, w as _e, F as Ae } from "./el-popper-b4f97157.js";
4
- import "./el-scrollbar-323542e7.js";
5
- import { defineComponent as z, ref as y, inject as F, computed as k, provide as Q, 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 M, normalizeClass as X, createSlots as Ye, mergeProps as Z, createCommentVNode as oe, nextTick as re, Fragment as He, createElementVNode as ne, withModifiers as H, resolveDynamicComponent as Je, normalizeStyle as je, reactive as A, createTextVNode as D, withKeys as se, toDisplayString as qe } from "vue";
6
- import { E as ae, f as Pe, u as We, r as Qe } from "./index-a871c3eb.js";
7
- import { V as te, A as Xe, K as Ze, R as be } from "./index-7ed0999e.js";
8
- import { c as $e, E as ie } from "./el-dialog-41ab8417.js";
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";
21
- import "./index-2e331d74.js";
22
- import "./use-global-config-b5e9d3d5.js";
23
- import "./index-e5566b94.js";
24
- import "./index-657047bb.js";
25
- import "./vnode-5ddb7ed1.js";
26
- import "./scroll-679bd6bf.js";
27
- import "./_initCloneObject-eaef9418.js";
28
- import "./typescript-7ae59c4c.js";
29
- import "./index-d91dc23f.js";
30
- import "./config-provider-b16efd62.js";
31
- const wo = De({
32
- style: { type: ee([String, Array, Object]) },
33
- currentTabId: {
34
- type: ee(String)
35
- },
36
- defaultCurrentTabId: String,
37
- loop: Boolean,
38
- dir: {
39
- type: String,
40
- values: ["ltr", "rtl"],
41
- default: "ltr"
42
- },
43
- orientation: {
44
- type: ee(String)
45
- },
46
- onBlur: Function,
47
- onFocus: Function,
48
- onMousedown: Function
49
- }), {
50
- 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 = {
55
- ArrowLeft: "prev",
56
- ArrowUp: "prev",
57
- ArrowRight: "next",
58
- ArrowDown: "next",
59
- PageUp: "first",
60
- Home: "first",
61
- PageDown: "last",
62
- End: "last"
63
- }, Eo = (e, d) => {
64
- if (d !== "rtl")
65
- return e;
66
- switch (e) {
67
- case T.right:
68
- return T.left;
69
- case T.left:
70
- return T.right;
71
- default:
72
- return e;
73
- }
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
- for (const v of e)
81
- if (v === d || (v.focus(), d !== document.activeElement))
82
- return;
83
- }, Ie = "currentTabIdChange", Ee = "rovingFocusGroup.entryFocus", Po = { bubbles: !1, cancelable: !0 }, $o = z({
84
- name: "ElRovingFocusGroupImpl",
85
- inheritAttrs: !1,
86
- props: wo,
87
- emits: [Ie, "entryFocus"],
88
- 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(() => [
91
- {
92
- outline: "none"
93
- },
94
- 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);
102
- }, () => {
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);
114
- }
115
- }
116
- r.value = !1;
117
- }), o = V((m) => {
118
- var g;
119
- (g = e.onBlur) == null || g.call(e, m);
120
- }, () => {
121
- f.value = !1;
122
- }), p = (...m) => {
123
- d("entryFocus", ...m);
124
- };
125
- Q(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);
141
- }
142
- });
143
- function Fo(e, d, v, c, f, r) {
144
- return B(e.$slots, "default");
145
- }
146
- var ho = /* @__PURE__ */ L($o, [["render", Fo], ["__file", "roving-focus-group-impl.vue"]]);
147
- const ko = z({
148
- name: "ElRovingFocusGroup",
149
- components: {
150
- ElFocusGroupCollection: go,
151
- ElRovingFocusGroupImpl: ho
152
- }
153
- });
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")
161
- ]),
162
- _: 3
163
- }, 16)
164
- ]),
165
- _: 3
166
- });
167
- }
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
- name: "ElDropdown",
171
- components: {
172
- ElButton: q,
173
- ElButtonGroup: So,
174
- ElScrollbar: eo,
175
- ElDropdownCollection: lo,
176
- ElTooltip: Ke,
177
- ElRovingFocusGroup: To,
178
- ElOnlyChild: Me,
179
- ElIcon: ae,
180
- ArrowDown: Pe
181
- },
182
- props: ro,
183
- emits: ["visible-change", "click", "command"],
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
- }
192
- function I() {
193
- var C;
194
- (C = i.value) == null || C.onClose();
195
- }
196
- function E() {
197
- var C;
198
- (C = i.value) == null || C.onOpen();
199
- }
200
- const $ = no();
201
- function O(...C) {
202
- d("command", ...C);
203
- }
204
- function S() {
205
- }
206
- function G() {
207
- const C = R(u);
208
- p.value.includes("hover") && (C == null || C.focus({
209
- preventScroll: !0
210
- })), w.value = null;
211
- }
212
- function U(C) {
213
- w.value = C;
214
- }
215
- function N(C) {
216
- t.value || (C.preventDefault(), C.stopImmediatePropagation());
217
- }
218
- function we() {
219
- d("visible-change", !0);
220
- }
221
- function W(C) {
222
- var Y;
223
- (C == null ? void 0 : C.type) === "keydown" && ((Y = u.value) == null || Y.focus());
224
- }
225
- function J() {
226
- d("visible-change", !1);
227
- }
228
- return Q(x, {
229
- contentRef: u,
230
- role: k(() => e.role),
231
- triggerId: g,
232
- isUsingKeyboard: t,
233
- onItemEnter: S,
234
- onItemLeave: G
235
- }), Q(Te, {
236
- instance: v,
237
- dropdownSize: $,
238
- handleClick: b,
239
- commandHandler: O,
240
- trigger: j(e, "trigger"),
241
- hideOnClick: j(e, "hideOnClick")
242
- }), {
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);
254
- },
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
- preventScroll: !0
265
- });
266
- },
267
- popperRef: i,
268
- contentRef: u,
269
- triggeringElementRef: r,
270
- referenceElementRef: s
271
- };
272
- }
273
- });
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(), M("div", {
278
- class: X([e.ns.b(), e.ns.is("disabled", e.disabled)])
279
- }, [
280
- l(n, {
281
- ref: "popperRef",
282
- role: e.role,
283
- effect: e.effect,
284
- "fallback-placements": ["bottom", "top"],
285
- "popper-options": e.popperOptions,
286
- "gpu-acceleration": !1,
287
- "manual-mode": !0,
288
- placement: e.placement,
289
- "popper-class": [e.ns.e("popper"), e.popperClass],
290
- "reference-element": (s = e.referenceElementRef) == null ? void 0 : s.$el,
291
- trigger: e.trigger,
292
- "trigger-keys": e.triggerKeys,
293
- "trigger-target-el": e.contentRef,
294
- "show-arrow": e.showArrow,
295
- "show-after": e.trigger === "hover" ? e.showTimeout : 0,
296
- "hide-after": e.trigger === "hover" ? e.hideTimeout : 0,
297
- "stop-popper-mouse-event": !1,
298
- "virtual-ref": (i = e.virtualRef) != null ? i : e.triggeringElementRef,
299
- "virtual-triggering": e.virtualTriggering || e.splitButton,
300
- disabled: e.disabled,
301
- transition: `${e.ns.namespace.value}-zoom-in-top`,
302
- teleported: e.teleported,
303
- pure: "",
304
- "focus-on-target": "",
305
- persistent: e.persistent,
306
- onBeforeShow: e.handleBeforeShowTooltip,
307
- onShow: e.handleShowTooltip,
308
- onBeforeHide: e.handleBeforeHideTooltip
309
- }, Ye({
310
- content: a(() => [
311
- l(w, {
312
- ref: "scrollbar",
313
- "wrap-style": e.wrapStyle,
314
- tag: "div",
315
- "view-class": e.ns.e("list")
316
- }, {
317
- default: a(() => [
318
- l(_, {
319
- loop: e.loop,
320
- "current-tab-id": e.currentTabId,
321
- orientation: "horizontal",
322
- onCurrentTabIdChange: e.handleCurrentTabIdChange,
323
- onEntryFocus: e.handleEntryFocus
324
- }, {
325
- default: a(() => [
326
- l(u, null, {
327
- default: a(() => [
328
- B(e.$slots, "dropdown")
329
- ]),
330
- _: 3
331
- })
332
- ]),
333
- _: 3
334
- }, 8, ["loop", "current-tab-id", "onCurrentTabIdChange", "onEntryFocus"])
335
- ]),
336
- _: 3
337
- }, 8, ["wrap-style", "view-class"])
338
- ]),
339
- _: 2
340
- }, [
341
- e.splitButton ? void 0 : {
342
- name: "default",
343
- fn: a(() => [
344
- l(t, {
345
- id: e.triggerId,
346
- ref: "triggeringElementRef",
347
- role: "button",
348
- tabindex: e.tabindex
349
- }, {
350
- default: a(() => [
351
- B(e.$slots, "default")
352
- ]),
353
- _: 3
354
- }, 8, ["id", "tabindex"])
355
- ])
356
- }
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(g, { key: 0 }, {
359
- default: a(() => [
360
- l(o, Z({ ref: "referenceElementRef" }, e.buttonProps, {
361
- size: e.dropdownSize,
362
- type: e.type,
363
- disabled: e.disabled,
364
- tabindex: e.tabindex,
365
- onClick: e.handlerMainButtonClick
366
- }), {
367
- default: a(() => [
368
- B(e.$slots, "default")
369
- ]),
370
- _: 3
371
- }, 16, ["size", "type", "disabled", "tabindex", "onClick"]),
372
- l(o, Z({
373
- id: e.triggerId,
374
- ref: "triggeringElementRef"
375
- }, e.buttonProps, {
376
- role: "button",
377
- size: e.dropdownSize,
378
- type: e.type,
379
- class: e.ns.e("caret-button"),
380
- disabled: e.disabled,
381
- tabindex: e.tabindex,
382
- "aria-label": e.t("el.dropdown.toggleDropdown")
383
- }), {
384
- default: a(() => [
385
- l(m, {
386
- class: X(e.ns.e("icon"))
387
- }, {
388
- default: a(() => [
389
- l(p)
390
- ]),
391
- _: 1
392
- }, 8, ["class"])
393
- ]),
394
- _: 1
395
- }, 16, ["id", "size", "type", "class", "disabled", "tabindex", "aria-label"])
396
- ]),
397
- _: 3
398
- })) : oe("v-if", !0)
399
- ], 2);
400
- }
401
- var Do = /* @__PURE__ */ L(No, [["render", Oo], ["__file", "dropdown.vue"]]);
402
- const Vo = z({
403
- components: {
404
- ElRovingFocusCollectionItem: _o
405
- },
406
- props: {
407
- focusable: {
408
- type: Boolean,
409
- default: !0
410
- },
411
- active: Boolean
412
- },
413
- emits: ["mousedown", "focus", "keydown"],
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
- }, (o) => {
418
- e.focusable ? f(R(i)) : o.preventDefault();
419
- }), w = V((o) => {
420
- d("focus", o);
421
- }, () => {
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();
429
- return;
430
- }
431
- if (g !== b)
432
- 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) {
438
- case "last": {
439
- $.reverse();
440
- break;
441
- }
442
- case "prev":
443
- case "next": {
444
- I === "prev" && $.reverse();
445
- const O = $.indexOf(b);
446
- $ = c.value ? Co($, O + 1) : $.slice(O + 1);
447
- break;
448
- }
449
- }
450
- re(() => {
451
- ve($);
452
- });
453
- }
454
- }), n = k(() => v.value === R(i));
455
- return Q(Re, {
456
- rovingFocusGroupItemRef: u,
457
- tabIndex: k(() => R(n) ? 0 : -1),
458
- handleMousedown: _,
459
- handleFocus: w,
460
- handleKeydown: t
461
- }), {
462
- id: i,
463
- handleKeydown: t,
464
- handleFocus: w,
465
- handleMousedown: _
466
- };
467
- }
468
- });
469
- function Bo(e, d, v, c, f, r) {
470
- const s = h("el-roving-focus-collection-item");
471
- return P(), K(s, {
472
- id: e.id,
473
- focusable: e.focusable,
474
- active: e.active
475
- }, {
476
- default: a(() => [
477
- B(e.$slots, "default")
478
- ]),
479
- _: 3
480
- }, 8, ["id", "focusable", "active"]);
481
- }
482
- var Ko = /* @__PURE__ */ L(Vo, [["render", Bo], ["__file", "roving-focus-item.vue"]]);
483
- const Mo = z({
484
- name: "DropdownItemImpl",
485
- components: {
486
- ElIcon: ae
487
- },
488
- props: he,
489
- emits: ["pointermove", "pointerleave", "click", "clickimpl"],
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
- 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
- }, _);
501
- return {
502
- ns: v,
503
- itemRef: t,
504
- dataset: {
505
- [ao]: ""
506
- },
507
- role: n,
508
- tabIndex: i,
509
- handleFocus: u,
510
- handleKeydown: o,
511
- handleMousedown: w
512
- };
513
- }
514
- });
515
- function Ao(e, d, v, c, f, r) {
516
- const s = h("el-icon");
517
- return P(), M(He, null, [
518
- e.divided ? (P(), M("li", {
519
- key: 0,
520
- role: "separator",
521
- class: X(e.ns.bem("menu", "item", "divided"))
522
- }, null, 2)) : oe("v-if", !0),
523
- ne("li", Z({ ref: e.itemRef }, { ...e.dataset, ...e.$attrs }, {
524
- "aria-disabled": e.disabled,
525
- class: [e.ns.be("menu", "item"), e.ns.is("disabled", e.disabled)],
526
- tabindex: e.tabIndex,
527
- role: e.role,
528
- onClick: (i) => e.$emit("clickimpl", i),
529
- onFocus: e.handleFocus,
530
- onKeydown: H(e.handleKeydown, ["self"]),
531
- onMousedown: e.handleMousedown,
532
- onPointermove: (i) => e.$emit("pointermove", i),
533
- onPointerleave: (i) => e.$emit("pointerleave", i)
534
- }), [
535
- e.icon ? (P(), K(s, { key: 0 }, {
536
- default: a(() => [
537
- (P(), K(Je(e.icon)))
538
- ]),
539
- _: 1
540
- })) : oe("v-if", !0),
541
- B(e.$slots, "default")
542
- ], 16, ["aria-disabled", "tabindex", "role", "onClick", "onFocus", "onKeydown", "onMousedown", "onPointermove", "onPointerleave"])
543
- ], 64);
544
- }
545
- var Go = /* @__PURE__ */ L(Mo, [["render", Ao], ["__file", "dropdown-item-impl.vue"]]);
546
- const Se = () => {
547
- const e = F(Te, {}), d = k(() => e == null ? void 0 : e.dropdownSize);
548
- return {
549
- elDropdown: e,
550
- _elDropdownSize: d
551
- };
552
- }, Uo = z({
553
- name: "ElDropdownItem",
554
- components: {
555
- ElDropdownCollectionItem: io,
556
- ElRovingFocusItem: Ko,
557
- ElDropdownItemImpl: Go
558
- },
559
- inheritAttrs: !1,
560
- props: he,
561
- 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) => {
567
- if (e.disabled) {
568
- u(o);
569
- return;
570
- }
571
- const p = o.currentTarget;
572
- p === document.activeElement || p.contains(document.activeElement) || (i(o), o.defaultPrevented || p == null || p.focus({
573
- preventScroll: !0
574
- }));
575
- })), w = V((o) => (d("pointerleave", o), o.defaultPrevented), _e(u)), t = V((o) => {
576
- if (!e.disabled)
577
- return d("click", o), o.type !== "keydown" && o.defaultPrevented;
578
- }, (o) => {
579
- var p, m, g;
580
- if (e.disabled) {
581
- o.stopImmediatePropagation();
582
- return;
583
- }
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
- return {
587
- handleClick: t,
588
- handlePointerMove: _,
589
- handlePointerLeave: w,
590
- textContent: s,
591
- propsAndAttrs: n
592
- };
593
- }
594
- });
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
- disabled: e.disabled,
600
- "text-value": (s = e.textValue) != null ? s : e.textContent
601
- }, {
602
- default: a(() => [
603
- l(u, {
604
- focusable: !e.disabled
605
- }, {
606
- default: a(() => [
607
- l(i, Z(e.propsAndAttrs, {
608
- onPointerleave: e.handlePointerLeave,
609
- onPointermove: e.handlePointerMove,
610
- onClickimpl: e.handleClick
611
- }), {
612
- default: a(() => [
613
- B(e.$slots, "default")
614
- ]),
615
- _: 3
616
- }, 16, ["onPointerleave", "onPointermove", "onClickimpl"])
617
- ]),
618
- _: 3
619
- }, 8, ["focusable"])
620
- ]),
621
- _: 3
622
- }, 8, ["disabled", "text-value"]);
623
- }
624
- var Ne = /* @__PURE__ */ L(Uo, [["render", Lo], ["__file", "dropdown-item.vue"]]);
625
- const zo = z({
626
- name: "ElDropdownMenu",
627
- props: uo,
628
- setup(e) {
629
- const d = le("dropdown"), { _elDropdownSize: v } = Se(), c = v.value, { focusTrapRef: f, onKeydown: r } = F(Ae, 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);
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
- return;
643
- const W = w().filter((J) => !J.disabled).map((J) => J.ref);
644
- mo.includes(U) && W.reverse(), ve(W);
645
- });
646
- return {
647
- size: c,
648
- rovingFocusGroupRootStyle: n,
649
- tabIndex: o,
650
- dropdownKls: I,
651
- role: i,
652
- triggerId: u,
653
- dropdownListWrapperRef: E,
654
- handleKeydown: (S) => {
655
- $(S), r(S);
656
- },
657
- onBlur: p,
658
- onFocus: m,
659
- onMousedown: g
660
- };
661
- }
662
- });
663
- function Yo(e, d, v, c, f, r) {
664
- return P(), M("ul", {
665
- ref: e.dropdownListWrapperRef,
666
- class: X(e.dropdownKls),
667
- style: je(e.rovingFocusGroupRootStyle),
668
- tabindex: -1,
669
- role: e.role,
670
- "aria-labelledby": e.triggerId,
671
- onBlur: e.onBlur,
672
- onFocus: e.onFocus,
673
- onKeydown: H(e.handleKeydown, ["self"]),
674
- onMousedown: H(e.onMousedown, ["self"])
675
- }, [
676
- B(e.$slots, "default")
677
- ], 46, ["role", "aria-labelledby", "onBlur", "onFocus", "onKeydown", "onMousedown"]);
678
- }
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 = A(te()), s = y(!1), i = y(), u = A({
689
- nickName: "",
690
- email: "",
691
- mobile: ""
692
- }), _ = A({
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
- mobile: [
703
- { required: !0, message: "请输入手机号", trigger: "blur" },
704
- {
705
- validator: (t, n, o) => {
706
- /^1[3-9]\d{9}$/.test(n) ? o() : o("手机号格式错误");
707
- },
708
- trigger: "blur"
709
- }
710
- ]
711
- }), w = (t) => {
712
- t && t.validate(async (n) => {
713
- if (!n)
714
- return !1;
715
- const o = {
716
- ...u,
717
- userId: r.id,
718
- username: r.username
719
- };
720
- 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);
721
- });
722
- };
723
- return d({
724
- open: () => {
725
- Object.assign(r, te()), Object.assign(u, {
726
- nickName: r.nickName,
727
- email: r.email,
728
- mobile: r.mobile
729
- }), s.value = !0;
730
- }
731
- }), (t, n) => {
732
- const o = ce, p = de, m = ue, g = q, b = ie;
733
- return P(), M("div", qo, [
734
- l(b, {
735
- modelValue: s.value,
736
- "onUpdate:modelValue": n[7] || (n[7] = (I) => s.value = I),
737
- title: "设置资料",
738
- width: "460",
739
- "destroy-on-close": "",
740
- "z-index": 200
741
- }, {
742
- footer: a(() => [
743
- l(g, {
744
- onClick: n[5] || (n[5] = (I) => s.value = !1)
745
- }, {
746
- default: a(() => [
747
- D(" 取消 ")
748
- ]),
749
- _: 1
750
- }),
751
- l(g, {
752
- type: "primary",
753
- onClick: n[6] || (n[6] = (I) => w(i.value))
754
- }, {
755
- default: a(() => [
756
- D(" 确认 ")
757
- ]),
758
- _: 1
759
- })
760
- ]),
761
- default: a(() => [
762
- l(m, {
763
- ref_key: "ruleFormRef",
764
- ref: i,
765
- rules: _,
766
- model: u,
767
- "label-width": "auto",
768
- "validate-on-rule-change": !1,
769
- onSubmit: n[3] || (n[3] = H((I) => w(i.value), ["prevent"])),
770
- onKeyup: n[4] || (n[4] = se((I) => w(i.value), ["enter", "native"]))
771
- }, {
772
- default: a(() => [
773
- l(p, {
774
- label: "昵称",
775
- prop: "nickName"
776
- }, {
777
- default: a(() => [
778
- l(o, {
779
- modelValue: u.nickName,
780
- "onUpdate:modelValue": n[0] || (n[0] = (I) => u.nickName = I)
781
- }, null, 8, ["modelValue"])
782
- ]),
783
- _: 1
784
- }),
785
- l(p, {
786
- label: "邮箱",
787
- prop: "email"
788
- }, {
789
- default: a(() => [
790
- l(o, {
791
- modelValue: u.email,
792
- "onUpdate:modelValue": n[1] || (n[1] = (I) => u.email = I)
793
- }, null, 8, ["modelValue"])
794
- ]),
795
- _: 1
796
- }),
797
- l(p, {
798
- label: "手机号",
799
- prop: "mobile"
800
- }, {
801
- default: a(() => [
802
- l(o, {
803
- modelValue: u.mobile,
804
- "onUpdate:modelValue": n[2] || (n[2] = (I) => u.mobile = I)
805
- }, null, 8, ["modelValue"])
806
- ]),
807
- _: 1
808
- })
809
- ]),
810
- _: 1
811
- }, 8, ["rules", "model"])
812
- ]),
813
- _: 1
814
- }, 8, ["modelValue"])
815
- ]);
816
- };
817
- }
818
- }, Qo = { class: "set-password" }, Xo = {
819
- __name: "SetPasswordDialog",
820
- emits: ["callBack"],
821
- setup(e, { expose: d, emit: v }) {
822
- const c = F("stConfig"), f = v, r = y(null), s = y(!1), i = y(), u = A({
823
- newPassword: "",
824
- newPassword2: ""
825
- }), _ = A({
826
- newPassword: [],
827
- newPassword2: [
828
- { required: !0, message: "请输入确认密码", trigger: "blur" },
829
- {
830
- validator: (n, o, p) => {
831
- o === "" ? p(new Error("请输入确认密码")) : o !== u.newPassword ? p(new Error("两次输入密码不一致!")) : p();
832
- },
833
- trigger: "blur"
834
- }
835
- ]
836
- }), w = y(!1), t = (n) => {
837
- n && n.validate(async (o) => {
838
- if (!o)
839
- return !1;
840
- await c.request.post("/invest/sys/user/setPassword", { newPassword: u.newPassword }), pe.success("密码设置成功!"), s.value = !1, f("callBack");
841
- });
842
- };
843
- return d({
844
- open: () => {
845
- Object.assign(u, {
846
- newPassword: "",
847
- newPassword2: ""
848
- }), s.value = !0, re(() => {
849
- var n, o;
850
- (n = _.newPassword) != null && n.length || (_.newPassword = (o = r.value) == null ? void 0 : o.ruleFormPassword);
851
- });
852
- }
853
- }), (n, o) => {
854
- const p = ce, m = de, g = ue, b = q, I = ie;
855
- return P(), M("div", Qo, [
856
- l(I, {
857
- modelValue: s.value,
858
- "onUpdate:modelValue": o[8] || (o[8] = (E) => s.value = E),
859
- title: "设置密码",
860
- width: "460",
861
- "destroy-on-close": "",
862
- "z-index": 200
863
- }, {
864
- footer: a(() => [
865
- l(b, {
866
- onClick: o[6] || (o[6] = (E) => s.value = !1)
867
- }, {
868
- default: a(() => [
869
- D(" 取消 ")
870
- ]),
871
- _: 1
872
- }),
873
- l(b, {
874
- type: "primary",
875
- onClick: o[7] || (o[7] = (E) => t(i.value))
876
- }, {
877
- default: a(() => [
878
- D(" 确认 ")
879
- ]),
880
- _: 1
881
- })
882
- ]),
883
- default: a(() => [
884
- l(g, {
885
- ref_key: "ruleFormRef",
886
- ref: i,
887
- rules: _,
888
- model: u,
889
- "label-width": "auto",
890
- "validate-on-rule-change": !1,
891
- onSubmit: o[4] || (o[4] = H((E) => t(i.value), ["prevent"])),
892
- onKeyup: o[5] || (o[5] = se((E) => t(i.value), ["enter", "native"]))
893
- }, {
894
- default: a(() => [
895
- l(m, {
896
- label: "密码",
897
- prop: "newPassword"
898
- }, {
899
- default: a(() => [
900
- l(p, {
901
- modelValue: u.newPassword,
902
- "onUpdate:modelValue": o[0] || (o[0] = (E) => u.newPassword = E),
903
- type: "password",
904
- "show-password": !0,
905
- onFocus: o[1] || (o[1] = () => {
906
- i.value.clearValidate(["newPassword"]), w.value = !0;
907
- }),
908
- onBlur: o[2] || (o[2] = (E) => w.value = !1)
909
- }, null, 8, ["modelValue"]),
910
- l(Fe, {
911
- ref_key: "PasswordPromptRef",
912
- ref: r,
913
- value: u.newPassword,
914
- isFocus: w.value
915
- }, null, 8, ["value", "isFocus"])
916
- ]),
917
- _: 1
918
- }),
919
- l(m, {
920
- label: "确认密码",
921
- prop: "newPassword2"
922
- }, {
923
- default: a(() => [
924
- l(p, {
925
- modelValue: u.newPassword2,
926
- "onUpdate:modelValue": o[3] || (o[3] = (E) => u.newPassword2 = E),
927
- type: "password",
928
- "show-password": !0
929
- }, null, 8, ["modelValue"])
930
- ]),
931
- _: 1
932
- })
933
- ]),
934
- _: 1
935
- }, 8, ["rules", "model"])
936
- ]),
937
- _: 1
938
- }, 8, ["modelValue"])
939
- ]);
940
- };
941
- }
942
- }, Zo = { class: "edit-password" }, xo = {
943
- __name: "EditPasswordDialog",
944
- setup(e, { expose: d }) {
945
- const v = F("stConfig"), c = y(null), f = y(!1), r = y(), s = A({
946
- password: "",
947
- newPassword: "",
948
- newPassword2: ""
949
- }), i = A({
950
- password: [{ required: !0, message: "请输入原密码", trigger: "blur" }],
951
- newPassword: [],
952
- newPassword2: [
953
- { required: !0, message: "请输入确认密码", trigger: "blur" },
954
- {
955
- validator: (w, t, n) => {
956
- t === "" ? n(new Error("请输入确认密码")) : t !== s.newPassword ? n(new Error("两次输入密码不一致!")) : n();
957
- },
958
- trigger: "blur"
959
- }
960
- ]
961
- }), u = y(!1), _ = (w) => {
962
- w && w.validate(async (t) => {
963
- if (!t)
964
- return !1;
965
- await v.request.post("/invest/sys/user/password", s), pe.success("密码修改成功!"), f.value = !1;
966
- });
967
- };
968
- return d({
969
- open: () => {
970
- Object.assign(s, {
971
- password: "",
972
- newPassword: "",
973
- newPassword2: ""
974
- }), f.value = !0, re(() => {
975
- var w, t;
976
- (w = i.newPassword) != null && w.length || (i.newPassword = (t = c.value) == null ? void 0 : t.ruleFormPassword);
977
- });
978
- }
979
- }), (w, t) => {
980
- const n = ce, o = de, p = ue, m = q, g = ie;
981
- return P(), M("div", Zo, [
982
- l(g, {
983
- modelValue: f.value,
984
- "onUpdate:modelValue": t[9] || (t[9] = (b) => f.value = b),
985
- title: "修改密码",
986
- width: "460",
987
- "destroy-on-close": "",
988
- "z-index": 200
989
- }, {
990
- footer: a(() => [
991
- l(m, {
992
- onClick: t[7] || (t[7] = (b) => f.value = !1)
993
- }, {
994
- default: a(() => [
995
- D(" 取消 ")
996
- ]),
997
- _: 1
998
- }),
999
- l(m, {
1000
- type: "primary",
1001
- onClick: t[8] || (t[8] = (b) => _(r.value))
1002
- }, {
1003
- default: a(() => [
1004
- D(" 确认 ")
1005
- ]),
1006
- _: 1
1007
- })
1008
- ]),
1009
- default: a(() => [
1010
- l(p, {
1011
- ref_key: "ruleFormRef",
1012
- ref: r,
1013
- rules: i,
1014
- model: s,
1015
- "label-width": "auto",
1016
- "validate-on-rule-change": !1,
1017
- onSubmit: t[5] || (t[5] = H((b) => _(r.value), ["prevent"])),
1018
- onKeyup: t[6] || (t[6] = se((b) => _(r.value), ["enter", "native"]))
1019
- }, {
1020
- default: a(() => [
1021
- l(o, {
1022
- label: "原密码",
1023
- prop: "password"
1024
- }, {
1025
- default: a(() => [
1026
- l(n, {
1027
- modelValue: s.password,
1028
- "onUpdate:modelValue": t[0] || (t[0] = (b) => s.password = b),
1029
- type: "password",
1030
- "show-password": !0
1031
- }, null, 8, ["modelValue"])
1032
- ]),
1033
- _: 1
1034
- }),
1035
- l(o, {
1036
- label: "新密码",
1037
- prop: "newPassword"
1038
- }, {
1039
- default: a(() => [
1040
- l(n, {
1041
- modelValue: s.newPassword,
1042
- "onUpdate:modelValue": t[1] || (t[1] = (b) => s.newPassword = b),
1043
- type: "password",
1044
- "show-password": !0,
1045
- onFocus: t[2] || (t[2] = () => {
1046
- r.value.clearValidate(["newPassword"]), u.value = !0;
1047
- }),
1048
- onBlur: t[3] || (t[3] = (b) => u.value = !1)
1049
- }, null, 8, ["modelValue"]),
1050
- l(Fe, {
1051
- ref_key: "PasswordPromptRef",
1052
- ref: c,
1053
- value: s.newPassword,
1054
- isFocus: u.value
1055
- }, null, 8, ["value", "isFocus"])
1056
- ]),
1057
- _: 1
1058
- }),
1059
- l(o, {
1060
- label: "确认密码",
1061
- prop: "newPassword2"
1062
- }, {
1063
- default: a(() => [
1064
- l(n, {
1065
- modelValue: s.newPassword2,
1066
- "onUpdate:modelValue": t[4] || (t[4] = (b) => s.newPassword2 = b),
1067
- type: "password",
1068
- "show-password": !0
1069
- }, null, 8, ["modelValue"])
1070
- ]),
1071
- _: 1
1072
- })
1073
- ]),
1074
- _: 1
1075
- }, 8, ["rules", "model"])
1076
- ]),
1077
- _: 1
1078
- }, 8, ["modelValue"])
1079
- ]);
1080
- };
1081
- }
1082
- };
1083
- const en = { class: "user" }, on = { class: "user-msg" }, nn = {
1084
- __name: "index",
1085
- props: {
1086
- config: {
1087
- type: Object,
1088
- default: () => ({})
1089
- // loginUrl: 登录后的跳转地址 loginoutToLogin: 是否跳转到登录页 loginoutUrl: 退出登录后的跳转地址
1090
- }
1091
- },
1092
- emits: ["loginout"],
1093
- setup(e, { emit: d }) {
1094
- const v = y(null), c = y(null), f = y(null), r = A(te()), s = d, i = e, u = () => {
1095
- const { loginUrl: n } = i.config || {};
1096
- Xe(n);
1097
- }, _ = () => {
1098
- const { loginoutToLogin: n, loginoutUrl: o } = i.config || {};
1099
- Ze(n, o), s("loginout");
1100
- }, w = (n) => {
1101
- Object.assign(r, n), be(r);
1102
- }, t = () => {
1103
- r.canSet = !1, be(r);
1104
- };
1105
- return (n, o) => {
1106
- const p = ae, m = Jo, g = jo, b = Ho;
1107
- return P(), M("div", en, [
1108
- r ? (P(), K(b, {
1109
- key: 0,
1110
- placement: "bottom"
1111
- }, {
1112
- dropdown: a(() => [
1113
- l(g, null, {
1114
- default: a(() => [
1115
- B(n.$slots, "dropdown-items", {}, void 0, !0),
1116
- l(m, {
1117
- onClick: o[0] || (o[0] = (I) => {
1118
- var E;
1119
- return (E = v.value) == null ? void 0 : E.open();
1120
- })
1121
- }, {
1122
- default: a(() => [
1123
- D("设置资料")
1124
- ]),
1125
- _: 1
1126
- }),
1127
- r.canSet ? (P(), K(m, {
1128
- key: 0,
1129
- onClick: o[1] || (o[1] = (I) => {
1130
- var E;
1131
- return (E = c.value) == null ? void 0 : E.open();
1132
- })
1133
- }, {
1134
- default: a(() => [
1135
- D(" 设置密码 ")
1136
- ]),
1137
- _: 1
1138
- })) : (P(), K(m, {
1139
- key: 1,
1140
- onClick: o[2] || (o[2] = (I) => {
1141
- var E;
1142
- return (E = f.value) == null ? void 0 : E.open();
1143
- })
1144
- }, {
1145
- default: a(() => [
1146
- D(" 修改密码 ")
1147
- ]),
1148
- _: 1
1149
- })),
1150
- l(m, { onClick: _ }, {
1151
- default: a(() => [
1152
- D("退出登录")
1153
- ]),
1154
- _: 1
1155
- })
1156
- ]),
1157
- _: 3
1158
- })
1159
- ]),
1160
- default: a(() => [
1161
- ne("div", on, [
1162
- l(p, { class: "user-msg-icon" }, {
1163
- default: a(() => [
1164
- l(R(We))
1165
- ]),
1166
- _: 1
1167
- }),
1168
- ne("span", null, qe((r == null ? void 0 : r.nickName) ?? (r == null ? void 0 : r.username)), 1),
1169
- l(p, { class: "user-msg-arrow" }, {
1170
- default: a(() => [
1171
- l(R(Pe))
1172
- ]),
1173
- _: 1
1174
- })
1175
- ])
1176
- ]),
1177
- _: 3
1178
- })) : (P(), M("div", {
1179
- key: 1,
1180
- class: "user-login",
1181
- onClick: u
1182
- }, [
1183
- D(" 前往登录 "),
1184
- l(p, { class: "user-login-icon" }, {
1185
- default: a(() => [
1186
- l(R(Qe))
1187
- ]),
1188
- _: 1
1189
- })
1190
- ])),
1191
- l(Wo, {
1192
- ref_key: "EditInfoDialogRef",
1193
- ref: v,
1194
- onCallBack: w
1195
- }, null, 512),
1196
- l(Xo, {
1197
- ref_key: "SetPasswordDialogRef",
1198
- ref: c,
1199
- onCallBack: t
1200
- }, null, 512),
1201
- l(xo, {
1202
- ref_key: "EditPasswordDialogRef",
1203
- ref: f
1204
- }, null, 512)
1205
- ]);
1206
- };
1207
- }
1208
- }, tn = /* @__PURE__ */ xe(nn, [["__scopeId", "data-v-b7b01106"]]), Kn = {
1209
- install(e) {
1210
- e.component("st-user", tn);
1211
- }
1212
- };
1213
- export {
1214
- Kn as default
1215
- };
1
+