st-comp 0.0.196 → 0.0.198

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