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