st-comp 0.0.248 → 0.0.249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.d.ts +1 -0
- package/es/ChartLayout.js +4 -4
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +82 -80
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +36 -35
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +20 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +30 -28
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +83 -82
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +19 -18
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +22 -21
- package/es/LinearLegend.cjs +1 -1
- package/es/LinearLegend.js +63 -1
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +28 -26
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +121 -120
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +31 -30
- package/es/User.cjs +1 -1
- package/es/User.js +157 -155
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +29 -27
- package/es/VarietyAiHelper.cjs +4 -0
- package/es/VarietyAiHelper.js +270 -0
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +13 -12
- package/es/VarietySearch.cjs +10 -10
- package/es/VarietySearch.js +70 -68
- package/es/{VarietySelect-2fd501da.cjs → VarietySelect-5c845562.cjs} +1 -1
- package/es/{VarietySelect-b9fe3000.js → VarietySelect-9f267958.js} +4 -4
- package/es/VarietyTextCopy.cjs +1 -1
- package/es/VarietyTextCopy.js +24 -22
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +70 -70
- package/es/{_initCloneObject-3823a101.cjs → _initCloneObject-2b82e9f7.cjs} +1 -1
- package/es/{_initCloneObject-382335b2.js → _initCloneObject-69c8ae23.js} +7 -7
- package/es/aiTools.js +36 -0
- package/es/{base-ff0e366f.js → base-29f73b05.js} +40 -40
- package/es/{castArray-15070be9.js → castArray-609a313e.js} +1 -1
- package/es/{config-provider-2182708a.cjs → config-provider-2ae47cc8.cjs} +1 -1
- package/es/{config-provider-2e85eee8.js → config-provider-7860903c.js} +6 -6
- package/es/{debounce-e9e47f9a.js → debounce-a09ce9a3.js} +1 -1
- package/es/{dropdown-2b35a683.js → dropdown-497442b7.js} +30 -29
- package/es/dropdown-eba9eaf5.cjs +1 -0
- package/es/{el-autocomplete-18be2c5a.js → el-autocomplete-27c60cc8.js} +24 -23
- package/es/el-autocomplete-b59eb529.cjs +1 -0
- package/es/{el-button-68baab7b.cjs → el-button-974ff9e9.cjs} +1 -1
- package/es/{el-button-f08c0639.js → el-button-e2c63c08.js} +39 -39
- package/es/el-checkbox-08185353.cjs +1 -0
- package/es/{el-checkbox-058dba2d.js → el-checkbox-71ebd862.js} +31 -31
- package/es/el-dialog-1b185570.cjs +1 -0
- package/es/{el-dialog-d328e0d8.js → el-dialog-eedcfd3e.js} +15 -15
- package/es/{el-divider-4fe55ebe.js → el-divider-523e5874.js} +1 -1
- package/es/{el-empty-ceecb81c.js → el-empty-f5a1607a.js} +5 -5
- package/es/{el-form-item-cb328886.js → el-form-item-bdcfd297.js} +36 -36
- package/es/{el-form-item-4076e55f.cjs → el-form-item-c997b4fa.cjs} +1 -1
- package/es/{el-input-0f6ead19.js → el-input-d47281da.js} +91 -91
- package/es/el-input-fa18ef84.cjs +1 -0
- package/es/el-input-number-3d94fa58.cjs +1 -0
- package/es/{el-input-number-66e68609.js → el-input-number-c8018cb1.js} +28 -28
- package/es/{el-loading-412370c7.js → el-loading-0cd81d05.js} +5 -5
- package/es/{el-loading-05826e64.cjs → el-loading-969a79ca.cjs} +1 -1
- package/es/el-menu-item-26071fd6.cjs +1 -0
- package/es/{el-menu-item-0ee8ad18.js → el-menu-item-dac65bb3.js} +31 -30
- package/es/el-message-0ea8fbf8.cjs +1 -0
- package/es/el-message-4ed993c7.js +1 -0
- package/es/el-message-box-31e0aa98.cjs +1 -0
- package/es/{el-message-box-6db52b29.js → el-message-box-fea4fca8.js} +11 -11
- package/es/{el-overlay-981f8d49.js → el-overlay-1ee0338d.js} +63 -63
- package/es/el-overlay-ea65cb05.cjs +1 -0
- package/es/{el-popconfirm-005013fa.js → el-popconfirm-089b8bec.js} +17 -16
- package/es/el-popconfirm-9e232436.cjs +1 -0
- package/es/el-popper-2d3914e4.cjs +1 -0
- package/es/el-popper-c9b3d3cf.js +1662 -0
- package/es/el-segmented-140ac042.cjs +1 -0
- package/es/{el-segmented-050d0090.js → el-segmented-9d3a9e11.js} +8 -8
- package/es/el-select-a11f33e8.cjs +1 -0
- package/es/{el-select-23a1f302.js → el-select-e51e11c1.js} +92 -91
- package/es/{el-table-column-d0c374cf.js → el-table-column-05d292a8.js} +25 -24
- package/es/el-table-column-98570a4d.cjs +14 -0
- package/es/{el-tag-f13f463b.js → el-tag-17cd04a1.js} +14 -14
- package/es/el-tag-6d8e653e.cjs +1 -0
- package/es/{el-text-27cef2be.js → el-text-2710fff3.js} +2 -2
- package/es/{el-text-1470de46.cjs → el-text-a18106cb.cjs} +1 -1
- package/es/{index-09bd2621.js → index-0ee486ad.js} +43 -43
- package/es/index-0f79095c.js +440 -0
- package/es/{index-e0901394.js → index-1d9b50de.js} +34 -34
- package/es/index-28e03bad.cjs +1 -0
- package/es/{index-269b22da.cjs → index-299ee017.cjs} +1 -1
- package/es/{index-cebc7160.cjs → index-33f80550.cjs} +1 -1
- package/es/{index-4f48940d.cjs → index-37b8d3c6.cjs} +1 -1
- package/es/{index-2375023e.cjs → index-5befc414.cjs} +4 -4
- package/es/{index-696b6a94.cjs → index-6b99def3.cjs} +1 -1
- package/es/index-6ca95c8a.cjs +1 -0
- package/es/index-7dce9f59.cjs +1 -0
- package/es/{index-269b8a8c.js → index-8391a3df.js} +37 -37
- package/es/{index-c266c23a.js → index-8f9d0d17.js} +16 -15
- package/es/{index-15b9603e.js → index-95e5d454.js} +3 -3
- package/es/{index-b937ea22.js → index-b0117ba2.js} +2 -2
- package/es/{index-80a7ad32.js → index-bcd895a0.js} +17 -17
- package/es/{index-ec7ad93f.js → index-c2b9bbfd.js} +95 -65
- package/es/{index-4a3f30c5.js → index-c71e37dc.js} +11 -11
- package/es/{index-93a8960e.js → index-de24705f.js} +1 -1
- package/es/index-e8eeea22.cjs +1 -0
- package/es/{index-ee977f79.cjs → index-eb99b188.cjs} +1 -1
- package/es/{el-message-e6c755df.js → index-f30561d3.js} +33 -33
- package/es/{python-c67c8901.cjs → python-27ece6fa.cjs} +2 -2
- package/es/{python-823b276b.js → python-656db04f.js} +30 -28
- package/es/raf-744cf95a.js +6 -0
- package/es/{scroll-41b4f625.js → scroll-6799bafc.js} +5 -5
- package/es/style.css +1 -1
- package/es/{use-form-common-props-631cacae.js → use-form-common-props-cb0ca65c.js} +72 -72
- package/es/{use-form-common-props-344056f9.cjs → use-form-common-props-d3ed62c6.cjs} +1 -1
- package/es/{use-global-config-cf78ebac.cjs → use-global-config-c80f33a4.cjs} +1 -1
- package/es/{use-global-config-5d001623.js → use-global-config-cdaeca54.js} +14 -14
- package/es/{validator-3cad04b2.cjs → validator-07160325.cjs} +1 -1
- package/es/{validator-4160d9e7.js → validator-4ab9774f.js} +1 -1
- package/es/{vnode-06571d5b.js → vnode-a83e6de8.js} +1 -1
- package/es/{zh-cn-aabfaa94.cjs → zh-cn-6a0f844c.cjs} +1 -1
- package/es/{zh-cn-5df98ac2.js → zh-cn-8a6390a4.js} +2 -2
- package/lib/aiTools.js +36 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +157 -154
- package/lib/{index-f00d1e1f.js → index-6ac0579e.js} +16077 -15806
- package/lib/{python-0f34e2e6.js → python-0432340a.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietyAiHelper/index.ts +8 -0
- package/packages/VarietyAiHelper/index.vue +430 -0
- package/packages/index.ts +2 -0
- package/public/aiTools.js +36 -0
- package/src/App.vue +24 -14
- package/src/pages/VarietyAiHelper/index.vue +20 -0
- package/src/pages/VarietySearch/index.vue +75 -51
- package/src/router/routes.ts +5 -0
- package/es/dropdown-89b74bc9.cjs +0 -1
- package/es/el-autocomplete-b9a3054a.cjs +0 -1
- package/es/el-checkbox-b982e2ef.cjs +0 -1
- package/es/el-dialog-ad7309e9.cjs +0 -1
- package/es/el-input-172c49f8.cjs +0 -1
- package/es/el-input-number-c2e71528.cjs +0 -1
- package/es/el-menu-item-7f986598.cjs +0 -1
- package/es/el-message-a86c0efa.cjs +0 -1
- package/es/el-message-box-40ff2af5.cjs +0 -1
- package/es/el-overlay-d7a6e4a9.cjs +0 -1
- package/es/el-popconfirm-737a015b.cjs +0 -1
- package/es/el-popper-7ba87e05.cjs +0 -1
- package/es/el-popper-fdc7c793.js +0 -2094
- package/es/el-segmented-3fd66a0e.cjs +0 -1
- package/es/el-select-12f6deb7.cjs +0 -1
- package/es/el-table-column-516a0ed9.cjs +0 -14
- package/es/el-tag-789f05d3.cjs +0 -1
- package/es/index-8de94a49.cjs +0 -1
- package/es/index-c04f444f.cjs +0 -1
- package/es/raf-8e05a7f4.js +0 -6
package/es/User.js
CHANGED
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import { b as Be,
|
|
2
|
-
import { E as J } from "./el-button-
|
|
3
|
-
import {
|
|
1
|
+
import { b as Be, e as ie, _ as L, u as ue, n as Me, w as Ae, l as Ee } from "./base-29f73b05.js";
|
|
2
|
+
import { E as J } from "./el-button-e2c63c08.js";
|
|
3
|
+
import { c as V, E as Ue, O as Ge, w as be } from "./el-popper-c9b3d3cf.js";
|
|
4
4
|
import "./el-scrollbar-323542e7.js";
|
|
5
|
-
import { defineComponent as
|
|
6
|
-
import { E as ce,
|
|
7
|
-
import { R as pe, V as
|
|
8
|
-
import { c as he, E as te } from "./el-dialog-
|
|
9
|
-
import "./el-overlay-
|
|
10
|
-
import {
|
|
11
|
-
import { E as
|
|
12
|
-
import { E as Re } from "./el-text-
|
|
13
|
-
import
|
|
5
|
+
import { defineComponent as z, ref as y, inject as P, computed as T, provide as Q, readonly as Le, toRef as W, unref as h, watch as ze, renderSlot as K, resolveComponent as R, openBlock as C, createBlock as D, withCtx as l, createVNode as t, normalizeProps as qe, guardReactiveProps as Ye, getCurrentInstance as Ce, createElementBlock as M, normalizeClass as X, createSlots as He, mergeProps as ee, createCommentVNode as oe, nextTick as de, Fragment as Pe, createElementVNode as ne, withModifiers as H, resolveDynamicComponent as Je, normalizeStyle as je, reactive as A, createTextVNode as k, toDisplayString as Z, withKeys as Fe } from "vue";
|
|
6
|
+
import { E as ce, f as $e, u as We, r as Ze } from "./index-c2b9bbfd.js";
|
|
7
|
+
import { R as pe, V as Qe, A as Xe, K as xe } from "./index-7ed0999e.js";
|
|
8
|
+
import { c as he, E as te } from "./el-dialog-eedcfd3e.js";
|
|
9
|
+
import "./el-overlay-1ee0338d.js";
|
|
10
|
+
import { a as le, E as re } from "./el-form-item-bdcfd297.js";
|
|
11
|
+
import { E as se } from "./el-input-d47281da.js";
|
|
12
|
+
import { E as Re } from "./el-text-2710fff3.js";
|
|
13
|
+
import "./el-message-4ed993c7.js";
|
|
14
14
|
import { _ as me } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { c as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
15
|
+
import { E as Y } from "./index-f30561d3.js";
|
|
16
|
+
import { P as ke } from "./index-b0117ba2.js";
|
|
17
|
+
import { E as eo } from "./index-1d9b50de.js";
|
|
18
|
+
import { c as oo, e as no } from "./use-form-common-props-cb0ca65c.js";
|
|
19
|
+
import { c as to, E as lo, d as ro, a as Te, C as so, b as ao, e as io, f as uo, g as co, F as po, L as mo } from "./dropdown-497442b7.js";
|
|
20
|
+
import { E as S, F as fo } from "./index-0f79095c.js";
|
|
21
|
+
import { u as vo } from "./index-de24705f.js";
|
|
22
|
+
import { u as Se } from "./index-8391a3df.js";
|
|
23
|
+
import { c as _o } from "./castArray-609a313e.js";
|
|
22
24
|
import "./index-2e331d74.js";
|
|
23
|
-
import "./use-global-config-
|
|
24
|
-
import "./index-
|
|
25
|
+
import "./use-global-config-cdaeca54.js";
|
|
26
|
+
import "./index-0ee486ad.js";
|
|
25
27
|
import "./index-657047bb.js";
|
|
26
|
-
import "./vnode-
|
|
27
|
-
import "./scroll-
|
|
28
|
-
import "./_initCloneObject-
|
|
28
|
+
import "./vnode-a83e6de8.js";
|
|
29
|
+
import "./scroll-6799bafc.js";
|
|
30
|
+
import "./_initCloneObject-69c8ae23.js";
|
|
29
31
|
import "./typescript-7ae59c4c.js";
|
|
30
|
-
import "./index-
|
|
31
|
-
import "./config-provider-
|
|
32
|
+
import "./index-c71e37dc.js";
|
|
33
|
+
import "./config-provider-7860903c.js";
|
|
32
34
|
const wo = Be({
|
|
33
35
|
style: { type: ie([String, Array, Object]) },
|
|
34
36
|
currentTabId: {
|
|
@@ -52,7 +54,7 @@ const wo = Be({
|
|
|
52
54
|
ElCollectionItem: bo,
|
|
53
55
|
COLLECTION_INJECTION_KEY: fe,
|
|
54
56
|
COLLECTION_ITEM_INJECTION_KEY: yo
|
|
55
|
-
} =
|
|
57
|
+
} = to("RovingFocusGroup"), ve = Symbol("elRovingFocusGroup"), De = Symbol("elRovingFocusGroupItem"), Io = {
|
|
56
58
|
ArrowLeft: "prev",
|
|
57
59
|
ArrowUp: "prev",
|
|
58
60
|
ArrowRight: "next",
|
|
@@ -73,29 +75,29 @@ const wo = Be({
|
|
|
73
75
|
return e;
|
|
74
76
|
}
|
|
75
77
|
}, Co = (e, c, m) => {
|
|
76
|
-
const
|
|
77
|
-
if (!(c === "vertical" && [S.left, S.right].includes(
|
|
78
|
-
return Io[
|
|
79
|
-
}, Po = (e, c) => e.map((m,
|
|
78
|
+
const r = Eo(e.code, m);
|
|
79
|
+
if (!(c === "vertical" && [S.left, S.right].includes(r)) && !(c === "horizontal" && [S.up, S.down].includes(r)))
|
|
80
|
+
return Io[r];
|
|
81
|
+
}, Po = (e, c) => e.map((m, r) => e[(r + c) % e.length]), _e = (e) => {
|
|
80
82
|
const { activeElement: c } = document;
|
|
81
83
|
for (const m of e)
|
|
82
84
|
if (m === c || (m.focus(), c !== document.activeElement))
|
|
83
85
|
return;
|
|
84
|
-
}, ye = "currentTabIdChange", Ie = "rovingFocusGroup.entryFocus", Fo = { bubbles: !1, cancelable: !0 }, $o =
|
|
86
|
+
}, ye = "currentTabIdChange", Ie = "rovingFocusGroup.entryFocus", Fo = { bubbles: !1, cancelable: !0 }, $o = z({
|
|
85
87
|
name: "ElRovingFocusGroupImpl",
|
|
86
88
|
inheritAttrs: !1,
|
|
87
89
|
props: wo,
|
|
88
90
|
emits: [ye, "entryFocus"],
|
|
89
91
|
setup(e, { emit: c }) {
|
|
90
92
|
var m;
|
|
91
|
-
const
|
|
93
|
+
const r = 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(() => [
|
|
92
94
|
{
|
|
93
95
|
outline: "none"
|
|
94
96
|
},
|
|
95
97
|
e.style
|
|
96
98
|
]), b = (_) => {
|
|
97
99
|
c(ye, _);
|
|
98
|
-
},
|
|
100
|
+
}, s = () => {
|
|
99
101
|
f.value = !0;
|
|
100
102
|
}, o = V((_) => {
|
|
101
103
|
var g;
|
|
@@ -110,7 +112,7 @@ const wo = Be({
|
|
|
110
112
|
if (v === I && g && !h(f)) {
|
|
111
113
|
const B = new Event(Ie, Fo);
|
|
112
114
|
if (I == null || I.dispatchEvent(B), !B.defaultPrevented) {
|
|
113
|
-
const F = d().filter((O) => O.focusable), $ = F.find((O) => O.active), N = F.find((O) => O.id === h(
|
|
115
|
+
const F = d().filter((O) => O.focusable), $ = F.find((O) => O.active), N = F.find((O) => O.id === h(r)), G = [$, N, ...F].filter(Boolean).map((O) => O.ref);
|
|
114
116
|
_e(G);
|
|
115
117
|
}
|
|
116
118
|
}
|
|
@@ -124,7 +126,7 @@ const wo = Be({
|
|
|
124
126
|
c("entryFocus", ..._);
|
|
125
127
|
};
|
|
126
128
|
Q(ve, {
|
|
127
|
-
currentTabbedId: Le(
|
|
129
|
+
currentTabbedId: Le(r),
|
|
128
130
|
loop: W(e, "loop"),
|
|
129
131
|
tabIndex: T(() => h(f) ? -1 : 0),
|
|
130
132
|
rovingFocusGroupRef: i,
|
|
@@ -132,31 +134,31 @@ const wo = Be({
|
|
|
132
134
|
orientation: W(e, "orientation"),
|
|
133
135
|
dir: W(e, "dir"),
|
|
134
136
|
onItemFocus: b,
|
|
135
|
-
onItemShiftTab:
|
|
137
|
+
onItemShiftTab: s,
|
|
136
138
|
onBlur: n,
|
|
137
139
|
onFocus: a,
|
|
138
140
|
onMousedown: o
|
|
139
|
-
}),
|
|
140
|
-
|
|
141
|
-
}),
|
|
141
|
+
}), ze(() => e.currentTabId, (_) => {
|
|
142
|
+
r.value = _ ?? null;
|
|
143
|
+
}), oo(i, Ie, p);
|
|
142
144
|
}
|
|
143
145
|
});
|
|
144
|
-
function ho(e, c, m,
|
|
146
|
+
function ho(e, c, m, r, f, u) {
|
|
145
147
|
return K(e.$slots, "default");
|
|
146
148
|
}
|
|
147
|
-
var Ro = /* @__PURE__ */
|
|
148
|
-
const ko =
|
|
149
|
+
var Ro = /* @__PURE__ */ L($o, [["render", ho], ["__file", "roving-focus-group-impl.vue"]]);
|
|
150
|
+
const ko = z({
|
|
149
151
|
name: "ElRovingFocusGroup",
|
|
150
152
|
components: {
|
|
151
153
|
ElFocusGroupCollection: go,
|
|
152
154
|
ElRovingFocusGroupImpl: Ro
|
|
153
155
|
}
|
|
154
156
|
});
|
|
155
|
-
function To(e, c, m,
|
|
157
|
+
function To(e, c, m, r, f, u) {
|
|
156
158
|
const i = R("el-roving-focus-group-impl"), d = R("el-focus-group-collection");
|
|
157
159
|
return C(), D(d, null, {
|
|
158
160
|
default: l(() => [
|
|
159
|
-
t(i, Ye(
|
|
161
|
+
t(i, qe(Ye(e.$attrs)), {
|
|
160
162
|
default: l(() => [
|
|
161
163
|
K(e.$slots, "default")
|
|
162
164
|
]),
|
|
@@ -166,14 +168,14 @@ function To(e, c, m, s, f, u) {
|
|
|
166
168
|
_: 3
|
|
167
169
|
});
|
|
168
170
|
}
|
|
169
|
-
var So = /* @__PURE__ */
|
|
170
|
-
const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No =
|
|
171
|
+
var So = /* @__PURE__ */ L(ko, [["render", To], ["__file", "roving-focus-group.vue"]]);
|
|
172
|
+
const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No = z({
|
|
171
173
|
name: "ElDropdown",
|
|
172
174
|
components: {
|
|
173
175
|
ElButton: J,
|
|
174
176
|
ElButtonGroup: Do,
|
|
175
|
-
ElScrollbar:
|
|
176
|
-
ElDropdownCollection:
|
|
177
|
+
ElScrollbar: eo,
|
|
178
|
+
ElDropdownCollection: lo,
|
|
177
179
|
ElTooltip: Ue,
|
|
178
180
|
ElRovingFocusGroup: So,
|
|
179
181
|
ElOnlyChild: Ge,
|
|
@@ -183,9 +185,9 @@ const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No
|
|
|
183
185
|
props: ro,
|
|
184
186
|
emits: ["visible-change", "click", "command"],
|
|
185
187
|
setup(e, { emit: c }) {
|
|
186
|
-
const m = Ce(),
|
|
188
|
+
const m = Ce(), r = ue("dropdown"), { t: f } = vo(), u = y(), i = y(), d = y(), w = y(), b = y(null), s = y(null), o = y(!1), a = T(() => ({
|
|
187
189
|
maxHeight: Me(e.maxHeight)
|
|
188
|
-
})), n = T(() => [
|
|
190
|
+
})), n = T(() => [r.m(F.value)]), p = T(() => _o(e.trigger)), _ = Se().value, g = T(() => e.id || _);
|
|
189
191
|
function v() {
|
|
190
192
|
var E;
|
|
191
193
|
(E = d.value) == null || E.onClose(void 0, 0);
|
|
@@ -198,7 +200,7 @@ const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No
|
|
|
198
200
|
var E;
|
|
199
201
|
(E = d.value) == null || E.onOpen();
|
|
200
202
|
}
|
|
201
|
-
const F =
|
|
203
|
+
const F = no();
|
|
202
204
|
function $(...E) {
|
|
203
205
|
c("command", ...E);
|
|
204
206
|
}
|
|
@@ -208,10 +210,10 @@ const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No
|
|
|
208
210
|
const E = h(w);
|
|
209
211
|
p.value.includes("hover") && (E == null || E.focus({
|
|
210
212
|
preventScroll: !0
|
|
211
|
-
})),
|
|
213
|
+
})), s.value = null;
|
|
212
214
|
}
|
|
213
215
|
function G(E) {
|
|
214
|
-
|
|
216
|
+
s.value = E;
|
|
215
217
|
}
|
|
216
218
|
function O(E) {
|
|
217
219
|
o.value || (E.preventDefault(), E.stopImmediatePropagation());
|
|
@@ -242,13 +244,13 @@ const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No
|
|
|
242
244
|
hideOnClick: W(e, "hideOnClick")
|
|
243
245
|
}), {
|
|
244
246
|
t: f,
|
|
245
|
-
ns:
|
|
247
|
+
ns: r,
|
|
246
248
|
scrollbar: b,
|
|
247
249
|
wrapStyle: a,
|
|
248
250
|
dropdownTriggerKls: n,
|
|
249
251
|
dropdownSize: F,
|
|
250
252
|
triggerId: g,
|
|
251
|
-
currentTabId:
|
|
253
|
+
currentTabId: s,
|
|
252
254
|
handleCurrentTabIdChange: G,
|
|
253
255
|
handlerMainButtonClick: (E) => {
|
|
254
256
|
c("click", E);
|
|
@@ -272,9 +274,9 @@ const ae = Symbol("elDropdown"), Ne = "elDropdown", { ButtonGroup: Do } = J, No
|
|
|
272
274
|
};
|
|
273
275
|
}
|
|
274
276
|
});
|
|
275
|
-
function Oo(e, c, m,
|
|
277
|
+
function Oo(e, c, m, r, f, u) {
|
|
276
278
|
var i, d;
|
|
277
|
-
const w = R("el-dropdown-collection"), b = R("el-roving-focus-group"),
|
|
279
|
+
const w = R("el-dropdown-collection"), b = R("el-roving-focus-group"), s = R("el-scrollbar"), o = R("el-only-child"), a = R("el-tooltip"), n = R("el-button"), p = R("arrow-down"), _ = R("el-icon"), g = R("el-button-group");
|
|
278
280
|
return C(), M("div", {
|
|
279
281
|
class: X([e.ns.b(), e.ns.is("disabled", e.disabled)])
|
|
280
282
|
}, [
|
|
@@ -307,9 +309,9 @@ function Oo(e, c, m, s, f, u) {
|
|
|
307
309
|
onBeforeShow: e.handleBeforeShowTooltip,
|
|
308
310
|
onShow: e.handleShowTooltip,
|
|
309
311
|
onBeforeHide: e.handleBeforeHideTooltip
|
|
310
|
-
},
|
|
312
|
+
}, He({
|
|
311
313
|
content: l(() => [
|
|
312
|
-
t(
|
|
314
|
+
t(s, {
|
|
313
315
|
ref: "scrollbar",
|
|
314
316
|
"wrap-style": e.wrapStyle,
|
|
315
317
|
tag: "div",
|
|
@@ -399,8 +401,8 @@ function Oo(e, c, m, s, f, u) {
|
|
|
399
401
|
})) : oe("v-if", !0)
|
|
400
402
|
], 2);
|
|
401
403
|
}
|
|
402
|
-
var Vo = /* @__PURE__ */
|
|
403
|
-
const Ko =
|
|
404
|
+
var Vo = /* @__PURE__ */ L(No, [["render", Oo], ["__file", "dropdown.vue"]]);
|
|
405
|
+
const Ko = z({
|
|
404
406
|
components: {
|
|
405
407
|
ElRovingFocusCollectionItem: bo
|
|
406
408
|
},
|
|
@@ -413,11 +415,11 @@ const Ko = L({
|
|
|
413
415
|
},
|
|
414
416
|
emits: ["mousedown", "focus", "keydown"],
|
|
415
417
|
setup(e, { emit: c }) {
|
|
416
|
-
const { currentTabbedId: m, loop:
|
|
418
|
+
const { currentTabbedId: m, loop: r, onItemFocus: f, onItemShiftTab: u } = P(ve, void 0), { getItems: i } = P(fe, void 0), d = Se(), w = y(), b = V((n) => {
|
|
417
419
|
c("mousedown", n);
|
|
418
420
|
}, (n) => {
|
|
419
421
|
e.focusable ? f(h(d)) : n.preventDefault();
|
|
420
|
-
}),
|
|
422
|
+
}), s = V((n) => {
|
|
421
423
|
c("focus", n);
|
|
422
424
|
}, () => {
|
|
423
425
|
f(h(d));
|
|
@@ -444,7 +446,7 @@ const Ko = L({
|
|
|
444
446
|
case "next": {
|
|
445
447
|
I === "prev" && F.reverse();
|
|
446
448
|
const $ = F.indexOf(v);
|
|
447
|
-
F =
|
|
449
|
+
F = r.value ? Po(F, $ + 1) : F.slice($ + 1);
|
|
448
450
|
break;
|
|
449
451
|
}
|
|
450
452
|
}
|
|
@@ -457,17 +459,17 @@ const Ko = L({
|
|
|
457
459
|
rovingFocusGroupItemRef: w,
|
|
458
460
|
tabIndex: T(() => h(a) ? 0 : -1),
|
|
459
461
|
handleMousedown: b,
|
|
460
|
-
handleFocus:
|
|
462
|
+
handleFocus: s,
|
|
461
463
|
handleKeydown: o
|
|
462
464
|
}), {
|
|
463
465
|
id: d,
|
|
464
466
|
handleKeydown: o,
|
|
465
|
-
handleFocus:
|
|
467
|
+
handleFocus: s,
|
|
466
468
|
handleMousedown: b
|
|
467
469
|
};
|
|
468
470
|
}
|
|
469
471
|
});
|
|
470
|
-
function Bo(e, c, m,
|
|
472
|
+
function Bo(e, c, m, r, f, u) {
|
|
471
473
|
const i = R("el-roving-focus-collection-item");
|
|
472
474
|
return C(), D(i, {
|
|
473
475
|
id: e.id,
|
|
@@ -480,8 +482,8 @@ function Bo(e, c, m, s, f, u) {
|
|
|
480
482
|
_: 3
|
|
481
483
|
}, 8, ["id", "focusable", "active"]);
|
|
482
484
|
}
|
|
483
|
-
var Mo = /* @__PURE__ */
|
|
484
|
-
const Ao =
|
|
485
|
+
var Mo = /* @__PURE__ */ L(Ko, [["render", Bo], ["__file", "roving-focus-item.vue"]]);
|
|
486
|
+
const Ao = z({
|
|
485
487
|
name: "DropdownItemImpl",
|
|
486
488
|
components: {
|
|
487
489
|
ElIcon: ce
|
|
@@ -489,13 +491,13 @@ const Ao = L({
|
|
|
489
491
|
props: Te,
|
|
490
492
|
emits: ["pointermove", "pointerleave", "click", "clickimpl"],
|
|
491
493
|
setup(e, { emit: c }) {
|
|
492
|
-
const m = ue("dropdown"), { role:
|
|
494
|
+
const m = ue("dropdown"), { role: r } = P(ae, void 0), { collectionItemRef: f } = P(so, void 0), { collectionItemRef: u } = P(yo, void 0), {
|
|
493
495
|
rovingFocusGroupItemRef: i,
|
|
494
496
|
tabIndex: d,
|
|
495
497
|
handleFocus: w,
|
|
496
498
|
handleKeydown: b,
|
|
497
|
-
handleMousedown:
|
|
498
|
-
} = P(De, void 0), o = he(f, u, i), a = T(() =>
|
|
499
|
+
handleMousedown: s
|
|
500
|
+
} = P(De, void 0), o = he(f, u, i), a = T(() => r.value === "menu" ? "menuitem" : r.value === "navigation" ? "link" : "button"), n = V((p) => {
|
|
499
501
|
if ([S.enter, S.numpadEnter, S.space].includes(p.code))
|
|
500
502
|
return p.preventDefault(), p.stopImmediatePropagation(), c("clickimpl", p), !0;
|
|
501
503
|
}, b);
|
|
@@ -503,17 +505,17 @@ const Ao = L({
|
|
|
503
505
|
ns: m,
|
|
504
506
|
itemRef: o,
|
|
505
507
|
dataset: {
|
|
506
|
-
[
|
|
508
|
+
[ao]: ""
|
|
507
509
|
},
|
|
508
510
|
role: a,
|
|
509
511
|
tabIndex: d,
|
|
510
512
|
handleFocus: w,
|
|
511
513
|
handleKeydown: n,
|
|
512
|
-
handleMousedown:
|
|
514
|
+
handleMousedown: s
|
|
513
515
|
};
|
|
514
516
|
}
|
|
515
517
|
});
|
|
516
|
-
function Uo(e, c, m,
|
|
518
|
+
function Uo(e, c, m, r, f, u) {
|
|
517
519
|
const i = R("el-icon");
|
|
518
520
|
return C(), M(Pe, null, [
|
|
519
521
|
e.divided ? (C(), M("li", {
|
|
@@ -535,7 +537,7 @@ function Uo(e, c, m, s, f, u) {
|
|
|
535
537
|
}), [
|
|
536
538
|
e.icon ? (C(), D(i, { key: 0 }, {
|
|
537
539
|
default: l(() => [
|
|
538
|
-
(C(), D(
|
|
540
|
+
(C(), D(Je(e.icon)))
|
|
539
541
|
]),
|
|
540
542
|
_: 1
|
|
541
543
|
})) : oe("v-if", !0),
|
|
@@ -543,17 +545,17 @@ function Uo(e, c, m, s, f, u) {
|
|
|
543
545
|
], 16, ["aria-disabled", "tabindex", "role", "onClick", "onFocus", "onKeydown", "onMousedown", "onPointermove", "onPointerleave"])
|
|
544
546
|
], 64);
|
|
545
547
|
}
|
|
546
|
-
var Go = /* @__PURE__ */
|
|
548
|
+
var Go = /* @__PURE__ */ L(Ao, [["render", Uo], ["__file", "dropdown-item-impl.vue"]]);
|
|
547
549
|
const Oe = () => {
|
|
548
550
|
const e = P(Ne, {}), c = T(() => e == null ? void 0 : e.dropdownSize);
|
|
549
551
|
return {
|
|
550
552
|
elDropdown: e,
|
|
551
553
|
_elDropdownSize: c
|
|
552
554
|
};
|
|
553
|
-
},
|
|
555
|
+
}, Lo = z({
|
|
554
556
|
name: "ElDropdownItem",
|
|
555
557
|
components: {
|
|
556
|
-
ElDropdownCollectionItem:
|
|
558
|
+
ElDropdownCollectionItem: io,
|
|
557
559
|
ElRovingFocusItem: Mo,
|
|
558
560
|
ElDropdownItemImpl: Go
|
|
559
561
|
},
|
|
@@ -561,7 +563,7 @@ const Oe = () => {
|
|
|
561
563
|
props: Te,
|
|
562
564
|
emits: ["pointermove", "pointerleave", "click"],
|
|
563
565
|
setup(e, { emit: c, attrs: m }) {
|
|
564
|
-
const { elDropdown:
|
|
566
|
+
const { elDropdown: r } = Oe(), f = Ce(), u = y(null), i = T(() => {
|
|
565
567
|
var n, p;
|
|
566
568
|
return (p = (n = h(u)) == null ? void 0 : n.textContent) != null ? p : "";
|
|
567
569
|
}), { onItemEnter: d, onItemLeave: w } = P(ae, void 0), b = V((n) => (c("pointermove", n), n.defaultPrevented), be((n) => {
|
|
@@ -573,7 +575,7 @@ const Oe = () => {
|
|
|
573
575
|
p === document.activeElement || p.contains(document.activeElement) || (d(n), n.defaultPrevented || p == null || p.focus({
|
|
574
576
|
preventScroll: !0
|
|
575
577
|
}));
|
|
576
|
-
})),
|
|
578
|
+
})), s = V((n) => (c("pointerleave", n), n.defaultPrevented), be(w)), o = V((n) => {
|
|
577
579
|
if (!e.disabled)
|
|
578
580
|
return c("click", n), n.type !== "keydown" && n.defaultPrevented;
|
|
579
581
|
}, (n) => {
|
|
@@ -582,18 +584,18 @@ const Oe = () => {
|
|
|
582
584
|
n.stopImmediatePropagation();
|
|
583
585
|
return;
|
|
584
586
|
}
|
|
585
|
-
(p =
|
|
587
|
+
(p = r == null ? void 0 : r.hideOnClick) != null && p.value && ((_ = r.handleClick) == null || _.call(r)), (g = r.commandHandler) == null || g.call(r, e.command, f, n);
|
|
586
588
|
}), a = T(() => ({ ...e, ...m }));
|
|
587
589
|
return {
|
|
588
590
|
handleClick: o,
|
|
589
591
|
handlePointerMove: b,
|
|
590
|
-
handlePointerLeave:
|
|
592
|
+
handlePointerLeave: s,
|
|
591
593
|
textContent: i,
|
|
592
594
|
propsAndAttrs: a
|
|
593
595
|
};
|
|
594
596
|
}
|
|
595
597
|
});
|
|
596
|
-
function
|
|
598
|
+
function zo(e, c, m, r, f, u) {
|
|
597
599
|
var i;
|
|
598
600
|
const d = R("el-dropdown-item-impl"), w = R("el-roving-focus-item"), b = R("el-dropdown-collection-item");
|
|
599
601
|
return C(), D(b, {
|
|
@@ -622,30 +624,30 @@ function Lo(e, c, m, s, f, u) {
|
|
|
622
624
|
_: 3
|
|
623
625
|
}, 8, ["disabled", "text-value"]);
|
|
624
626
|
}
|
|
625
|
-
var Ve = /* @__PURE__ */
|
|
626
|
-
const qo =
|
|
627
|
+
var Ve = /* @__PURE__ */ L(Lo, [["render", zo], ["__file", "dropdown-item.vue"]]);
|
|
628
|
+
const qo = z({
|
|
627
629
|
name: "ElDropdownMenu",
|
|
628
|
-
props:
|
|
630
|
+
props: uo,
|
|
629
631
|
setup(e) {
|
|
630
|
-
const c = ue("dropdown"), { _elDropdownSize: m } = Oe(),
|
|
632
|
+
const c = ue("dropdown"), { _elDropdownSize: m } = Oe(), r = m.value, { focusTrapRef: f, onKeydown: u } = P(fo, void 0), { contentRef: i, role: d, triggerId: w } = P(ae, void 0), { collectionRef: b, getItems: s } = P(co, void 0), {
|
|
631
633
|
rovingFocusGroupRef: o,
|
|
632
634
|
rovingFocusGroupRootStyle: a,
|
|
633
635
|
tabIndex: n,
|
|
634
636
|
onBlur: p,
|
|
635
637
|
onFocus: _,
|
|
636
638
|
onMousedown: g
|
|
637
|
-
} = P(ve, void 0), { collectionRef: v } = P(fe, void 0), I = T(() => [c.b("menu"), c.bm("menu",
|
|
639
|
+
} = P(ve, void 0), { collectionRef: v } = P(fe, void 0), I = T(() => [c.b("menu"), c.bm("menu", r == null ? void 0 : r.value)]), B = he(i, b, f, o, v), F = V((N) => {
|
|
638
640
|
var U;
|
|
639
641
|
(U = e.onKeydown) == null || U.call(e, N);
|
|
640
642
|
}, (N) => {
|
|
641
643
|
const { currentTarget: U, code: G, target: O } = N;
|
|
642
|
-
if (U.contains(O), S.tab === G && N.stopImmediatePropagation(), N.preventDefault(), O !== h(i) || !
|
|
644
|
+
if (U.contains(O), S.tab === G && N.stopImmediatePropagation(), N.preventDefault(), O !== h(i) || !po.includes(G))
|
|
643
645
|
return;
|
|
644
|
-
const x =
|
|
645
|
-
|
|
646
|
+
const x = s().filter((j) => !j.disabled).map((j) => j.ref);
|
|
647
|
+
mo.includes(G) && x.reverse(), _e(x);
|
|
646
648
|
});
|
|
647
649
|
return {
|
|
648
|
-
size:
|
|
650
|
+
size: r,
|
|
649
651
|
rovingFocusGroupRootStyle: a,
|
|
650
652
|
tabIndex: n,
|
|
651
653
|
dropdownKls: I,
|
|
@@ -661,11 +663,11 @@ const qo = L({
|
|
|
661
663
|
};
|
|
662
664
|
}
|
|
663
665
|
});
|
|
664
|
-
function Yo(e, c, m,
|
|
666
|
+
function Yo(e, c, m, r, f, u) {
|
|
665
667
|
return C(), M("ul", {
|
|
666
668
|
ref: e.dropdownListWrapperRef,
|
|
667
669
|
class: X(e.dropdownKls),
|
|
668
|
-
style:
|
|
670
|
+
style: je(e.rovingFocusGroupRootStyle),
|
|
669
671
|
tabindex: -1,
|
|
670
672
|
role: e.role,
|
|
671
673
|
"aria-labelledby": e.triggerId,
|
|
@@ -677,7 +679,7 @@ function Yo(e, c, m, s, f, u) {
|
|
|
677
679
|
K(e.$slots, "default")
|
|
678
680
|
], 46, ["role", "aria-labelledby", "onBlur", "onFocus", "onKeydown", "onMousedown"]);
|
|
679
681
|
}
|
|
680
|
-
var Ke = /* @__PURE__ */
|
|
682
|
+
var Ke = /* @__PURE__ */ L(qo, [["render", Yo], ["__file", "dropdown-menu.vue"]]);
|
|
681
683
|
const Ho = Ae(Vo, {
|
|
682
684
|
DropdownItem: Ve,
|
|
683
685
|
DropdownMenu: Ke
|
|
@@ -688,7 +690,7 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
688
690
|
}, Qo = 60, Xo = {
|
|
689
691
|
__name: "Mobile",
|
|
690
692
|
setup(e) {
|
|
691
|
-
const c = P("stConfig"), m = P("userData"),
|
|
693
|
+
const c = P("stConfig"), m = P("userData"), r = y(!1), f = y(), u = A({
|
|
692
694
|
mobile: "",
|
|
693
695
|
verifyCode: ""
|
|
694
696
|
}), i = A({
|
|
@@ -702,7 +704,7 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
702
704
|
}
|
|
703
705
|
],
|
|
704
706
|
verifyCode: [{ required: !0, message: "请输入验证码", trigger: "blur" }]
|
|
705
|
-
}), d = y(null), w = y(0), b = (n) => /^1[3-9]\d{9}$/.test(n),
|
|
707
|
+
}), d = y(null), w = y(0), b = (n) => /^1[3-9]\d{9}$/.test(n), s = async () => {
|
|
706
708
|
if (!u.mobile)
|
|
707
709
|
return !1;
|
|
708
710
|
if (!b(u.mobile))
|
|
@@ -716,7 +718,7 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
716
718
|
w.value -= 1, w.value === 0 && clearInterval(d.value);
|
|
717
719
|
}, 1e3);
|
|
718
720
|
}, o = () => {
|
|
719
|
-
u.mobile = "",
|
|
721
|
+
u.mobile = "", r.value = !0;
|
|
720
722
|
}, a = () => {
|
|
721
723
|
f.value && f.value.validate(async (n) => {
|
|
722
724
|
if (!n)
|
|
@@ -726,11 +728,11 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
726
728
|
userId: m.id,
|
|
727
729
|
username: m.username
|
|
728
730
|
};
|
|
729
|
-
await c.request.post("/invest/sys/user/updateUserInfo", p), Y.success("手机号修改成功!"),
|
|
731
|
+
await c.request.post("/invest/sys/user/updateUserInfo", p), Y.success("手机号修改成功!"), r.value = !1, m.mobile = u.mobile, pe(m);
|
|
730
732
|
});
|
|
731
733
|
};
|
|
732
734
|
return (n, p) => {
|
|
733
|
-
const _ = Re, g = J, v =
|
|
735
|
+
const _ = Re, g = J, v = se, I = le, B = re, F = te;
|
|
734
736
|
return C(), M(Pe, null, [
|
|
735
737
|
ne("div", Wo, [
|
|
736
738
|
h(m).mobile ? (C(), D(_, { key: 0 }, {
|
|
@@ -751,8 +753,8 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
751
753
|
]),
|
|
752
754
|
t(F, {
|
|
753
755
|
"modal-class": "mobile-dialog",
|
|
754
|
-
modelValue:
|
|
755
|
-
"onUpdate:modelValue": p[3] || (p[3] = ($) =>
|
|
756
|
+
modelValue: r.value,
|
|
757
|
+
"onUpdate:modelValue": p[3] || (p[3] = ($) => r.value = $),
|
|
756
758
|
width: "400",
|
|
757
759
|
title: "手机号绑定",
|
|
758
760
|
"align-center": "",
|
|
@@ -761,7 +763,7 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
761
763
|
}, {
|
|
762
764
|
footer: l(() => [
|
|
763
765
|
t(g, {
|
|
764
|
-
onClick: p[2] || (p[2] = ($) =>
|
|
766
|
+
onClick: p[2] || (p[2] = ($) => r.value = !1)
|
|
765
767
|
}, {
|
|
766
768
|
default: l(() => [
|
|
767
769
|
k(" 取消 ")
|
|
@@ -814,7 +816,7 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
814
816
|
w.value ? (C(), M("span", Zo, " 重新发送(" + Z(w.value) + ") ", 1)) : (C(), M("span", {
|
|
815
817
|
key: 1,
|
|
816
818
|
class: X(["get-button", { disabled: !u.mobile }]),
|
|
817
|
-
onClick: H(
|
|
819
|
+
onClick: H(s, ["stop"])
|
|
818
820
|
}, " 获取验证码 ", 2))
|
|
819
821
|
]),
|
|
820
822
|
_: 1
|
|
@@ -835,22 +837,22 @@ const Wo = { class: "mobile" }, Zo = {
|
|
|
835
837
|
const en = {
|
|
836
838
|
__name: "index",
|
|
837
839
|
setup(e, { expose: c }) {
|
|
838
|
-
const m = P("stConfig"),
|
|
840
|
+
const m = P("stConfig"), r = P("userData"), f = y(!1), u = y(), i = A({
|
|
839
841
|
nickName: "",
|
|
840
842
|
email: ""
|
|
841
843
|
}), d = A({
|
|
842
844
|
nickName: [
|
|
843
845
|
{
|
|
844
|
-
validator: (b,
|
|
845
|
-
|
|
846
|
+
validator: (b, s, o) => {
|
|
847
|
+
s ? /[\s@<>&%]/.test(s) ? o("昵称不能包含空格、@、<、>、&、%等特殊字符") : s && s.length > 12 ? o("昵称长度不能超过12个字符") : o() : o();
|
|
846
848
|
},
|
|
847
849
|
trigger: "blur"
|
|
848
850
|
}
|
|
849
851
|
],
|
|
850
852
|
email: [
|
|
851
853
|
{
|
|
852
|
-
validator: (b,
|
|
853
|
-
|
|
854
|
+
validator: (b, s, o) => {
|
|
855
|
+
s && !/^([a-zA-Z0-9._-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(s) ? o("邮箱格式错误") : o();
|
|
854
856
|
},
|
|
855
857
|
trigger: "blur"
|
|
856
858
|
}
|
|
@@ -859,27 +861,27 @@ const en = {
|
|
|
859
861
|
u.value && u.value.validate(async (b) => {
|
|
860
862
|
if (!b)
|
|
861
863
|
return !1;
|
|
862
|
-
const
|
|
864
|
+
const s = {
|
|
863
865
|
...i,
|
|
864
|
-
userId:
|
|
865
|
-
username:
|
|
866
|
+
userId: r.id,
|
|
867
|
+
username: r.username
|
|
866
868
|
};
|
|
867
|
-
|
|
869
|
+
s.nickName === r.nickName && delete s.nickName, s.email === r.email && delete s.email, await m.request.post("/invest/sys/user/updateUserInfo", s), Y.success("资料修改成功!"), f.value = !1, Object.assign(r, i), pe(r);
|
|
868
870
|
});
|
|
869
871
|
};
|
|
870
872
|
return c({
|
|
871
873
|
open: () => {
|
|
872
874
|
Object.assign(i, {
|
|
873
|
-
nickName:
|
|
874
|
-
email:
|
|
875
|
+
nickName: r.nickName,
|
|
876
|
+
email: r.email
|
|
875
877
|
}), f.value = !0;
|
|
876
878
|
}
|
|
877
|
-
}), (b,
|
|
878
|
-
const o = Re, a = le, n =
|
|
879
|
+
}), (b, s) => {
|
|
880
|
+
const o = Re, a = le, n = se, p = re, _ = J, g = te;
|
|
879
881
|
return C(), D(g, {
|
|
880
882
|
"modal-class": "edit-info",
|
|
881
883
|
modelValue: f.value,
|
|
882
|
-
"onUpdate:modelValue":
|
|
884
|
+
"onUpdate:modelValue": s[3] || (s[3] = (v) => f.value = v),
|
|
883
885
|
title: "设置资料",
|
|
884
886
|
width: "400",
|
|
885
887
|
"align-center": "",
|
|
@@ -888,7 +890,7 @@ const en = {
|
|
|
888
890
|
}, {
|
|
889
891
|
footer: l(() => [
|
|
890
892
|
t(_, {
|
|
891
|
-
onClick:
|
|
893
|
+
onClick: s[2] || (s[2] = (v) => f.value = !1)
|
|
892
894
|
}, {
|
|
893
895
|
default: l(() => [
|
|
894
896
|
k(" 取消 ")
|
|
@@ -918,7 +920,7 @@ const en = {
|
|
|
918
920
|
default: l(() => [
|
|
919
921
|
t(o, null, {
|
|
920
922
|
default: l(() => [
|
|
921
|
-
k(Z(h(
|
|
923
|
+
k(Z(h(r).username), 1)
|
|
922
924
|
]),
|
|
923
925
|
_: 1
|
|
924
926
|
})
|
|
@@ -938,7 +940,7 @@ const en = {
|
|
|
938
940
|
default: l(() => [
|
|
939
941
|
t(n, {
|
|
940
942
|
modelValue: i.nickName,
|
|
941
|
-
"onUpdate:modelValue":
|
|
943
|
+
"onUpdate:modelValue": s[0] || (s[0] = (v) => i.nickName = v)
|
|
942
944
|
}, null, 8, ["modelValue"])
|
|
943
945
|
]),
|
|
944
946
|
_: 1
|
|
@@ -950,7 +952,7 @@ const en = {
|
|
|
950
952
|
default: l(() => [
|
|
951
953
|
t(n, {
|
|
952
954
|
modelValue: i.email,
|
|
953
|
-
"onUpdate:modelValue":
|
|
955
|
+
"onUpdate:modelValue": s[1] || (s[1] = (v) => i.email = v)
|
|
954
956
|
}, null, 8, ["modelValue"])
|
|
955
957
|
]),
|
|
956
958
|
_: 1
|
|
@@ -967,7 +969,7 @@ const en = {
|
|
|
967
969
|
const nn = {
|
|
968
970
|
__name: "SetPasswordDialog",
|
|
969
971
|
setup(e, { expose: c }) {
|
|
970
|
-
const m = y(null),
|
|
972
|
+
const m = y(null), r = P("stConfig"), f = P("userData"), u = y(!1), i = y(), d = A({
|
|
971
973
|
newPassword: "",
|
|
972
974
|
newPassword2: ""
|
|
973
975
|
}), w = A({
|
|
@@ -981,11 +983,11 @@ const nn = {
|
|
|
981
983
|
trigger: "blur"
|
|
982
984
|
}
|
|
983
985
|
]
|
|
984
|
-
}), b = y(!1),
|
|
986
|
+
}), b = y(!1), s = (o) => {
|
|
985
987
|
o && o.validate(async (a) => {
|
|
986
988
|
if (!a)
|
|
987
989
|
return !1;
|
|
988
|
-
await
|
|
990
|
+
await r.request.post("/invest/sys/user/setPassword", { newPassword: d.newPassword }), Y.success("密码设置成功!"), u.value = !1, f.canSet = !1, pe(f);
|
|
989
991
|
});
|
|
990
992
|
};
|
|
991
993
|
return c({
|
|
@@ -999,7 +1001,7 @@ const nn = {
|
|
|
999
1001
|
});
|
|
1000
1002
|
}
|
|
1001
1003
|
}), (o, a) => {
|
|
1002
|
-
const n =
|
|
1004
|
+
const n = se, p = le, _ = re, g = J, v = te;
|
|
1003
1005
|
return C(), D(v, {
|
|
1004
1006
|
"modal-class": "set-password",
|
|
1005
1007
|
modelValue: u.value,
|
|
@@ -1021,7 +1023,7 @@ const nn = {
|
|
|
1021
1023
|
}),
|
|
1022
1024
|
t(g, {
|
|
1023
1025
|
type: "primary",
|
|
1024
|
-
onClick: a[7] || (a[7] = (I) =>
|
|
1026
|
+
onClick: a[7] || (a[7] = (I) => s(i.value))
|
|
1025
1027
|
}, {
|
|
1026
1028
|
default: l(() => [
|
|
1027
1029
|
k(" 确认 ")
|
|
@@ -1038,8 +1040,8 @@ const nn = {
|
|
|
1038
1040
|
"label-width": "auto",
|
|
1039
1041
|
"hide-required-asterisk": "",
|
|
1040
1042
|
"validate-on-rule-change": !1,
|
|
1041
|
-
onSubmit: a[4] || (a[4] = H((I) =>
|
|
1042
|
-
onKeyup: a[5] || (a[5] = Fe((I) =>
|
|
1043
|
+
onSubmit: a[4] || (a[4] = H((I) => s(i.value), ["prevent"])),
|
|
1044
|
+
onKeyup: a[5] || (a[5] = Fe((I) => s(i.value), ["enter", "native"]))
|
|
1043
1045
|
}, {
|
|
1044
1046
|
default: l(() => [
|
|
1045
1047
|
t(p, {
|
|
@@ -1092,7 +1094,7 @@ const nn = {
|
|
|
1092
1094
|
const tn = {
|
|
1093
1095
|
__name: "EditPasswordDialog",
|
|
1094
1096
|
setup(e, { expose: c }) {
|
|
1095
|
-
const m = P("stConfig"),
|
|
1097
|
+
const m = P("stConfig"), r = y(null), f = y(!1), u = y(), i = A({
|
|
1096
1098
|
password: "",
|
|
1097
1099
|
newPassword: "",
|
|
1098
1100
|
newPassword2: ""
|
|
@@ -1102,14 +1104,14 @@ const tn = {
|
|
|
1102
1104
|
newPassword2: [
|
|
1103
1105
|
{ required: !0, message: "请输入确认密码", trigger: "blur" },
|
|
1104
1106
|
{
|
|
1105
|
-
validator: (
|
|
1107
|
+
validator: (s, o, a) => {
|
|
1106
1108
|
o === "" ? a(new Error("请输入确认密码")) : o !== i.newPassword ? a(new Error("两次输入密码不一致!")) : a();
|
|
1107
1109
|
},
|
|
1108
1110
|
trigger: "blur"
|
|
1109
1111
|
}
|
|
1110
1112
|
]
|
|
1111
|
-
}), w = y(!1), b = (
|
|
1112
|
-
|
|
1113
|
+
}), w = y(!1), b = (s) => {
|
|
1114
|
+
s && s.validate(async (o) => {
|
|
1113
1115
|
if (!o)
|
|
1114
1116
|
return !1;
|
|
1115
1117
|
await m.request.post("/invest/sys/user/password", i), Y.success("密码修改成功!"), f.value = !1;
|
|
@@ -1122,12 +1124,12 @@ const tn = {
|
|
|
1122
1124
|
newPassword: "",
|
|
1123
1125
|
newPassword2: ""
|
|
1124
1126
|
}), f.value = !0, de(() => {
|
|
1125
|
-
var
|
|
1126
|
-
(
|
|
1127
|
+
var s, o;
|
|
1128
|
+
(s = d.newPassword) != null && s.length || (d.newPassword = (o = r.value) == null ? void 0 : o.ruleFormPassword);
|
|
1127
1129
|
});
|
|
1128
1130
|
}
|
|
1129
|
-
}), (
|
|
1130
|
-
const a =
|
|
1131
|
+
}), (s, o) => {
|
|
1132
|
+
const a = se, n = le, p = re, _ = J, g = te;
|
|
1131
1133
|
return C(), D(g, {
|
|
1132
1134
|
"modal-class": "edit-password",
|
|
1133
1135
|
modelValue: f.value,
|
|
@@ -1201,7 +1203,7 @@ const tn = {
|
|
|
1201
1203
|
}, null, 8, ["modelValue"]),
|
|
1202
1204
|
t(ke, {
|
|
1203
1205
|
ref_key: "PasswordPromptRef",
|
|
1204
|
-
ref:
|
|
1206
|
+
ref: r,
|
|
1205
1207
|
value: i.newPassword,
|
|
1206
1208
|
isFocus: w.value
|
|
1207
1209
|
}, null, 8, ["value", "isFocus"])
|
|
@@ -1231,7 +1233,7 @@ const tn = {
|
|
|
1231
1233
|
};
|
|
1232
1234
|
}
|
|
1233
1235
|
};
|
|
1234
|
-
const ln = { class: "user" },
|
|
1236
|
+
const ln = { class: "user" }, rn = { class: "user-msg" }, sn = {
|
|
1235
1237
|
__name: "index",
|
|
1236
1238
|
props: {
|
|
1237
1239
|
config: {
|
|
@@ -1242,14 +1244,14 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1242
1244
|
},
|
|
1243
1245
|
emits: ["loginout"],
|
|
1244
1246
|
setup(e, { emit: c }) {
|
|
1245
|
-
const m = y(null),
|
|
1246
|
-
const { loginUrl:
|
|
1247
|
-
|
|
1247
|
+
const m = y(null), r = y(null), f = y(null), u = A(Qe()), i = c, d = e, w = () => {
|
|
1248
|
+
const { loginUrl: s } = d.config || {};
|
|
1249
|
+
Xe(s);
|
|
1248
1250
|
}, b = () => {
|
|
1249
|
-
const { loginoutToLogin:
|
|
1250
|
-
|
|
1251
|
+
const { loginoutToLogin: s, loginoutUrl: o } = d.config || {};
|
|
1252
|
+
xe(s, o), i("loginout");
|
|
1251
1253
|
};
|
|
1252
|
-
return Q("userData", u), (
|
|
1254
|
+
return Q("userData", u), (s, o) => {
|
|
1253
1255
|
const a = ce, n = Jo, p = jo, _ = Ho;
|
|
1254
1256
|
return C(), M("div", ln, [
|
|
1255
1257
|
u ? (C(), D(_, {
|
|
@@ -1259,7 +1261,7 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1259
1261
|
dropdown: l(() => [
|
|
1260
1262
|
t(p, null, {
|
|
1261
1263
|
default: l(() => [
|
|
1262
|
-
K(
|
|
1264
|
+
K(s.$slots, "dropdown-items", {}, void 0, !0),
|
|
1263
1265
|
t(n, {
|
|
1264
1266
|
onClick: o[0] || (o[0] = (g) => {
|
|
1265
1267
|
var v;
|
|
@@ -1275,7 +1277,7 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1275
1277
|
key: 0,
|
|
1276
1278
|
onClick: o[1] || (o[1] = (g) => {
|
|
1277
1279
|
var v;
|
|
1278
|
-
return (v =
|
|
1280
|
+
return (v = r.value) == null ? void 0 : v.open();
|
|
1279
1281
|
})
|
|
1280
1282
|
}, {
|
|
1281
1283
|
default: l(() => [
|
|
@@ -1305,10 +1307,10 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1305
1307
|
})
|
|
1306
1308
|
]),
|
|
1307
1309
|
default: l(() => [
|
|
1308
|
-
ne("div",
|
|
1310
|
+
ne("div", rn, [
|
|
1309
1311
|
t(a, { class: "user-msg-icon" }, {
|
|
1310
1312
|
default: l(() => [
|
|
1311
|
-
t(h(
|
|
1313
|
+
t(h(We))
|
|
1312
1314
|
]),
|
|
1313
1315
|
_: 1
|
|
1314
1316
|
}),
|
|
@@ -1330,7 +1332,7 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1330
1332
|
k(" 前往登录 "),
|
|
1331
1333
|
t(a, { class: "user-login-icon" }, {
|
|
1332
1334
|
default: l(() => [
|
|
1333
|
-
t(h(
|
|
1335
|
+
t(h(Ze))
|
|
1334
1336
|
]),
|
|
1335
1337
|
_: 1
|
|
1336
1338
|
})
|
|
@@ -1341,7 +1343,7 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1341
1343
|
}, null, 512),
|
|
1342
1344
|
t(nn, {
|
|
1343
1345
|
ref_key: "SetPasswordDialogRef",
|
|
1344
|
-
ref:
|
|
1346
|
+
ref: r
|
|
1345
1347
|
}, null, 512),
|
|
1346
1348
|
t(tn, {
|
|
1347
1349
|
ref_key: "EditPasswordDialogRef",
|
|
@@ -1350,11 +1352,11 @@ const ln = { class: "user" }, sn = { class: "user-msg" }, rn = {
|
|
|
1350
1352
|
]);
|
|
1351
1353
|
};
|
|
1352
1354
|
}
|
|
1353
|
-
}, an = /* @__PURE__ */ me(
|
|
1355
|
+
}, an = /* @__PURE__ */ me(sn, [["__scopeId", "data-v-f2b88262"]]), qn = {
|
|
1354
1356
|
install(e) {
|
|
1355
1357
|
e.component("st-user", an);
|
|
1356
1358
|
}
|
|
1357
1359
|
};
|
|
1358
1360
|
export {
|
|
1359
|
-
|
|
1361
|
+
qn as default
|
|
1360
1362
|
};
|