st-comp 0.0.279 → 0.0.280

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