st-comp 0.0.148 → 0.0.150
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 +3 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +5 -4
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +28 -24
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +577 -631
- package/es/Kline.cjs +1 -0
- package/es/Kline.js +1903 -0
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +677 -1428
- package/es/KlineNew.cjs +1 -3
- package/es/KlineNew.js +316 -2740
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +60 -58
- package/es/PasswordPrompt.cjs +1 -0
- package/es/PasswordPrompt.js +13 -0
- package/es/Table.cjs +1 -1
- package/es/Table.js +102 -98
- package/es/User.cjs +1 -1
- package/es/User.js +397 -373
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +2395 -1
- package/es/VirtualTable.cjs +5 -5
- package/es/VirtualTable.js +154 -151
- package/es/_initCloneObject-47814efa.cjs +1 -0
- package/es/{_initCloneObject-ec5c9523.js → _initCloneObject-e3d8a9ab.js} +13 -13
- package/es/base-0ca7c43a.cjs +5 -0
- package/es/base-19787dfb.js +303 -0
- package/es/{castArray-c770910d.js → castArray-8405000b.js} +1 -1
- package/es/castArray-a78ae889.cjs +1 -0
- package/es/{config-provider-feed0e8a.js → config-provider-0f6672af.js} +3 -3
- package/es/{config-provider-c87e277f.cjs → config-provider-cfbb9cd8.cjs} +1 -1
- package/es/{debounce-c64fb3b5.js → debounce-6cb0781f.js} +29 -29
- package/es/debounce-cf26af24.cjs +1 -0
- package/es/{dropdown-c9272ca3.js → dropdown-17b3ef6a.js} +4 -4
- package/es/{dropdown-6bdb3cf4.cjs → dropdown-790d31ea.cjs} +1 -1
- package/es/el-button-0bf1d532.js +236 -0
- package/es/el-button-62966947.cjs +1 -0
- package/es/el-checkbox-group-45247bbf.cjs +1 -0
- package/es/el-checkbox-group-d53bc316.js +67 -0
- package/es/el-empty-2ece1134.cjs +1 -0
- package/es/{el-empty-89a523ed.js → el-empty-bd5343a7.js} +10 -9
- package/es/{el-form-item-55d36086.js → el-form-item-05c0e335.js} +82 -81
- package/es/el-form-item-47e255d4.cjs +12 -0
- package/es/{el-input-cb528574.js → el-input-1e309239.js} +46 -45
- package/es/el-input-6a3805c5.cjs +1 -0
- package/es/{el-input-number-ce30bfa8.js → el-input-number-60ebc58f.js} +50 -48
- package/es/el-input-number-96ff2e47.cjs +1 -0
- package/es/el-menu-item-4c9eb7ad.cjs +1 -0
- package/es/el-menu-item-6c6236a1.js +772 -0
- package/es/{el-message-d51d032b.js → el-message-7d927756.js} +56 -55
- package/es/el-message-d5ed7a4f.cjs +1 -0
- package/es/el-overlay-26bf0945.js +521 -0
- package/es/el-overlay-41994f67.cjs +1 -0
- package/es/el-popover-17e2e66c.js +140 -0
- package/es/el-popover-7bd8a7c3.cjs +1 -0
- package/es/el-popper-7adbf1c6.cjs +1 -0
- package/es/{el-popper-f4b01f85.js → el-popper-b6527ae2.js} +217 -216
- package/es/{el-scrollbar-e8e93751.js → el-scrollbar-29bcab5f.js} +22 -22
- package/es/el-scrollbar-ac525239.cjs +1 -0
- package/es/el-select-31f8ac8a.cjs +1 -0
- package/es/{el-select-e71af2e6.js → el-select-7395562b.js} +42 -40
- package/es/el-table-column-47d80736.js +3804 -0
- package/es/el-table-column-bdc46568.cjs +14 -0
- package/es/{el-tag-d65768f4.js → el-tag-7414e0c7.js} +59 -58
- package/es/el-tag-9732314f.cjs +1 -0
- package/es/{index-da646183.cjs → index-1d85ba4b.cjs} +1 -1
- package/es/{index-92ba4292.js → index-273822d1.js} +26 -25
- package/es/index-2f958e56.cjs +3 -0
- package/es/index-375e8de4.cjs +5 -0
- package/es/{index-121e2861.js → index-621b092b.js} +3 -3
- package/es/index-657047bb.js +513 -0
- package/es/{index-18416440.cjs → index-65b4113e.cjs} +1 -1
- package/es/index-70372cdb.js +519 -0
- package/es/{use-form-common-props-4d37077d.js → index-72151b24.js} +151 -312
- package/es/index-9e6e8d03.cjs +1 -0
- package/es/index-ab96bbf4.js +156 -0
- package/es/index-afc88a4b.cjs +1 -0
- package/es/index-c066fe0d.js +82 -0
- package/es/index-ce3223db.cjs +1 -0
- package/es/{index-709675d5.js → index-dc22ffe4.js} +18 -18
- package/es/index-eea0bcb3.cjs +1 -0
- package/es/index.esm-8d9a2abe.js +2432 -0
- package/es/index.esm-94a95a2a.cjs +3 -0
- package/es/{raf-f55e0daa.js → raf-a532c514.js} +1 -1
- package/es/{raf-2d77cbbe.cjs → raf-f46caea0.cjs} +1 -1
- package/es/{scroll-c8ac196e.cjs → scroll-339681d4.cjs} +1 -1
- package/es/{scroll-ca84f80a.js → scroll-d787d648.js} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-5ff2f51b.js +171 -0
- package/es/use-form-common-props-74a96df2.cjs +2 -0
- package/es/vnode-6a0c7411.js +14 -0
- package/es/vnode-b15eb11b.cjs +1 -0
- package/es/{zh-cn-414d7f0c.cjs → zh-cn-36f34912.cjs} +1 -1
- package/es/{zh-cn-23c8e0d1.js → zh-cn-f37255ae.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +206 -206
- package/lib/{index-ffeb163e.js → index-d0cb2fa2.js} +33754 -31705
- package/lib/{python-0ec8f68c.js → python-050ba5a4.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/Kline/components/Contextmenu/index.vue +110 -0
- package/packages/Kline/components/Tips/index.vue +40 -0
- package/packages/Kline/componentsNew/KlineSlide/index.vue +155 -0
- package/packages/Kline/componentsNew/KlineSub/index.vue +297 -0
- package/packages/Kline/componentsNew/KlineTips/index.vue +66 -0
- package/packages/Kline/componentsNew/KlineUtils/index.vue +84 -0
- package/packages/Kline/componentsNew/Tips/index.vue +33 -0
- package/packages/Kline/formatKlineData.ts +109 -0
- package/packages/Kline/images/buy.svg +1 -0
- package/packages/Kline/images/pen.png +0 -0
- package/packages/Kline/images/sell.svg +1 -0
- package/packages/Kline/images/t.svg +1 -0
- package/packages/Kline/index.ts +16 -0
- package/packages/Kline/index.vue +891 -0
- package/packages/Kline/option.ts +539 -0
- package/packages/Kline/type.d.ts +219 -0
- package/packages/Kline/utils.ts +682 -0
- package/packages/PasswordPrompt/index.ts +8 -0
- package/packages/PasswordPrompt/index.vue +266 -0
- package/packages/User/index.vue +97 -58
- package/packages/index.ts +4 -0
- package/src/pages/Kline/index.vue +12 -0
- package/src/pages/PasswordPrompt/index.vue +12 -0
- package/src/router/routes.ts +10 -0
- package/es/_initCloneObject-476b02ce.cjs +0 -1
- package/es/base-6ccc8fc2.cjs +0 -9
- package/es/base-950bac7e.js +0 -816
- package/es/castArray-374558a5.cjs +0 -1
- package/es/debounce-a6b4f91b.cjs +0 -1
- package/es/el-button-b8f71c7d.cjs +0 -1
- package/es/el-button-d7b6eebd.js +0 -745
- package/es/el-empty-12eece57.cjs +0 -1
- package/es/el-form-item-ebbf096d.cjs +0 -12
- package/es/el-input-2c7e70a3.cjs +0 -1
- package/es/el-input-number-8e168e83.cjs +0 -1
- package/es/el-message-612c2346.cjs +0 -1
- package/es/el-overlay-07414277.js +0 -526
- package/es/el-overlay-fb255b83.cjs +0 -1
- package/es/el-popper-8360bd91.cjs +0 -1
- package/es/el-scrollbar-271142ad.cjs +0 -1
- package/es/el-select-2e71d4af.cjs +0 -1
- package/es/el-table-column-9fe79f05.cjs +0 -14
- package/es/el-table-column-dc562f14.js +0 -3933
- package/es/el-tag-930e7b32.cjs +0 -1
- package/es/index-0ed86daf.cjs +0 -3
- package/es/index-674d2fd7.cjs +0 -1
- package/es/index-aece600c.js +0 -81
- package/es/use-form-common-props-c1960844.cjs +0 -2
package/es/User.js
CHANGED
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { d as
|
|
3
|
-
import { E as re } from "./el-button-
|
|
4
|
-
import { E as
|
|
5
|
-
import { E as Ne } from "./el-input-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { defineComponent as U, ref as
|
|
9
|
-
import { E as le,
|
|
10
|
-
import { V as
|
|
1
|
+
import { b as Te, d as oe, _ as V, u as te, v as Re, w as Se, s as ve } from "./base-19787dfb.js";
|
|
2
|
+
import { d as we, E as ke } from "./el-overlay-26bf0945.js";
|
|
3
|
+
import { E as re } from "./el-button-0bf1d532.js";
|
|
4
|
+
import { E as Oe, a as De } from "./el-form-item-05c0e335.js";
|
|
5
|
+
import { E as Ne } from "./el-input-1e309239.js";
|
|
6
|
+
import { c as M, d as Ke, E as Be, O as Le, w as pe } from "./el-popper-b6527ae2.js";
|
|
7
|
+
import { b as Me } from "./el-scrollbar-29bcab5f.js";
|
|
8
|
+
import { defineComponent as U, ref as h, inject as R, computed as k, provide as Q, readonly as Ge, toRef as j, unref as $, watch as ge, renderSlot as G, resolveComponent as F, openBlock as D, createBlock as H, withCtx as i, createVNode as a, normalizeProps as Ae, guardReactiveProps as Ve, getCurrentInstance as _e, onBeforeUnmount as Ue, createElementBlock as A, normalizeClass as X, createSlots as ze, mergeProps as Z, createCommentVNode as ne, nextTick as be, Fragment as Ye, createElementVNode as q, withModifiers as x, resolveDynamicComponent as He, normalizeStyle as Je, createTextVNode as W, toDisplayString as We, withKeys as je } from "vue";
|
|
9
|
+
import { E as le, a as Ee, u as qe, r as Qe } from "./index-72151b24.js";
|
|
10
|
+
import { V as Xe, A as Ze, K as xe } from "./index-8542fe24.js";
|
|
11
|
+
import { P as eo } from "./index-ab96bbf4.js";
|
|
12
|
+
import { E as oo } from "./el-message-7d927756.js";
|
|
11
13
|
import { _ as no } from "./_plugin-vue_export-helper-dad06003.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
14
|
+
import { c as to, E as ro, d as lo, a as Ie, C as so, b as ao, e as io, f as uo, g as co, F as po, L as fo } from "./dropdown-17b3ef6a.js";
|
|
15
|
+
import { E as N, F as mo } from "./index-621b092b.js";
|
|
16
|
+
import { a as vo, u as he } from "./index-70372cdb.js";
|
|
17
|
+
import { a as wo } from "./use-form-common-props-5ff2f51b.js";
|
|
18
|
+
import { c as go } from "./castArray-8405000b.js";
|
|
19
|
+
import "./vnode-6a0c7411.js";
|
|
20
|
+
import "./scroll-d787d648.js";
|
|
21
|
+
import "./index-c066fe0d.js";
|
|
22
|
+
import "./index-657047bb.js";
|
|
23
|
+
import "./_initCloneObject-e3d8a9ab.js";
|
|
19
24
|
import "./typescript-7ae59c4c.js";
|
|
20
|
-
import "./index-
|
|
21
|
-
import "./config-provider-
|
|
22
|
-
const
|
|
25
|
+
import "./index-dc22ffe4.js";
|
|
26
|
+
import "./config-provider-0f6672af.js";
|
|
27
|
+
const _o = Te({
|
|
23
28
|
style: { type: oe([String, Array, Object]) },
|
|
24
29
|
currentTabId: {
|
|
25
30
|
type: oe(String)
|
|
@@ -38,11 +43,11 @@ const go = $e({
|
|
|
38
43
|
onFocus: Function,
|
|
39
44
|
onMousedown: Function
|
|
40
45
|
}), {
|
|
41
|
-
ElCollection:
|
|
42
|
-
ElCollectionItem:
|
|
46
|
+
ElCollection: bo,
|
|
47
|
+
ElCollectionItem: Eo,
|
|
43
48
|
COLLECTION_INJECTION_KEY: se,
|
|
44
|
-
COLLECTION_ITEM_INJECTION_KEY:
|
|
45
|
-
} =
|
|
49
|
+
COLLECTION_ITEM_INJECTION_KEY: Io
|
|
50
|
+
} = to("RovingFocusGroup"), ae = Symbol("elRovingFocusGroup"), Ce = Symbol("elRovingFocusGroupItem"), ho = {
|
|
46
51
|
ArrowLeft: "prev",
|
|
47
52
|
ArrowUp: "prev",
|
|
48
53
|
ArrowRight: "next",
|
|
@@ -51,103 +56,103 @@ const go = $e({
|
|
|
51
56
|
Home: "first",
|
|
52
57
|
PageDown: "last",
|
|
53
58
|
End: "last"
|
|
54
|
-
},
|
|
59
|
+
}, Co = (e, n) => {
|
|
55
60
|
if (n !== "rtl")
|
|
56
61
|
return e;
|
|
57
62
|
switch (e) {
|
|
58
|
-
case
|
|
59
|
-
return
|
|
60
|
-
case
|
|
61
|
-
return
|
|
63
|
+
case N.right:
|
|
64
|
+
return N.left;
|
|
65
|
+
case N.left:
|
|
66
|
+
return N.right;
|
|
62
67
|
default:
|
|
63
68
|
return e;
|
|
64
69
|
}
|
|
65
|
-
},
|
|
66
|
-
const
|
|
67
|
-
if (!(n === "vertical" && [
|
|
68
|
-
return
|
|
69
|
-
},
|
|
70
|
+
}, yo = (e, n, p) => {
|
|
71
|
+
const t = Co(e.code, p);
|
|
72
|
+
if (!(n === "vertical" && [N.left, N.right].includes(t)) && !(n === "horizontal" && [N.up, N.down].includes(t)))
|
|
73
|
+
return ho[t];
|
|
74
|
+
}, Po = (e, n) => e.map((p, t) => e[(t + n) % e.length]), ie = (e) => {
|
|
70
75
|
const { activeElement: n } = document;
|
|
71
|
-
for (const
|
|
72
|
-
if (
|
|
76
|
+
for (const p of e)
|
|
77
|
+
if (p === n || (p.focus(), n !== document.activeElement))
|
|
73
78
|
return;
|
|
74
|
-
}, fe = "currentTabIdChange", me = "rovingFocusGroup.entryFocus", Fo = { bubbles: !1, cancelable: !0 },
|
|
79
|
+
}, fe = "currentTabIdChange", me = "rovingFocusGroup.entryFocus", Fo = { bubbles: !1, cancelable: !0 }, $o = U({
|
|
75
80
|
name: "ElRovingFocusGroupImpl",
|
|
76
81
|
inheritAttrs: !1,
|
|
77
|
-
props:
|
|
82
|
+
props: _o,
|
|
78
83
|
emits: [fe, "entryFocus"],
|
|
79
84
|
setup(e, { emit: n }) {
|
|
80
|
-
var
|
|
81
|
-
const
|
|
85
|
+
var p;
|
|
86
|
+
const t = h((p = e.currentTabId || e.defaultCurrentTabId) != null ? p : null), w = h(!1), m = h(!1), c = h(null), { getItems: s } = R(se, void 0), v = k(() => [
|
|
82
87
|
{
|
|
83
88
|
outline: "none"
|
|
84
89
|
},
|
|
85
90
|
e.style
|
|
86
|
-
]),
|
|
87
|
-
n(fe,
|
|
91
|
+
]), d = (f) => {
|
|
92
|
+
n(fe, f);
|
|
88
93
|
}, _ = () => {
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
var
|
|
92
|
-
(
|
|
94
|
+
w.value = !0;
|
|
95
|
+
}, E = M((f) => {
|
|
96
|
+
var g;
|
|
97
|
+
(g = e.onMousedown) == null || g.call(e, f);
|
|
93
98
|
}, () => {
|
|
94
99
|
m.value = !0;
|
|
95
|
-
}),
|
|
96
|
-
var
|
|
97
|
-
(
|
|
98
|
-
}, (
|
|
99
|
-
const
|
|
100
|
-
if (C ===
|
|
101
|
-
const
|
|
102
|
-
if (
|
|
103
|
-
const
|
|
100
|
+
}), P = M((f) => {
|
|
101
|
+
var g;
|
|
102
|
+
(g = e.onFocus) == null || g.call(e, f);
|
|
103
|
+
}, (f) => {
|
|
104
|
+
const g = !$(m), { target: C, currentTarget: r } = f;
|
|
105
|
+
if (C === r && g && !$(w)) {
|
|
106
|
+
const T = new Event(me, Fo);
|
|
107
|
+
if (r == null || r.dispatchEvent(T), !T.defaultPrevented) {
|
|
108
|
+
const b = s().filter((S) => S.focusable), O = b.find((S) => S.active), y = b.find((S) => S.id === $(t)), B = [O, y, ...b].filter(Boolean).map((S) => S.ref);
|
|
104
109
|
ie(B);
|
|
105
110
|
}
|
|
106
111
|
}
|
|
107
112
|
m.value = !1;
|
|
108
|
-
}), o =
|
|
109
|
-
var
|
|
110
|
-
(
|
|
113
|
+
}), o = M((f) => {
|
|
114
|
+
var g;
|
|
115
|
+
(g = e.onBlur) == null || g.call(e, f);
|
|
111
116
|
}, () => {
|
|
112
|
-
|
|
113
|
-
}),
|
|
114
|
-
n("entryFocus", ...
|
|
117
|
+
w.value = !1;
|
|
118
|
+
}), u = (...f) => {
|
|
119
|
+
n("entryFocus", ...f);
|
|
115
120
|
};
|
|
116
121
|
Q(ae, {
|
|
117
|
-
currentTabbedId: Ge(
|
|
118
|
-
loop:
|
|
119
|
-
tabIndex: k(() =>
|
|
122
|
+
currentTabbedId: Ge(t),
|
|
123
|
+
loop: j(e, "loop"),
|
|
124
|
+
tabIndex: k(() => $(w) ? -1 : 0),
|
|
120
125
|
rovingFocusGroupRef: c,
|
|
121
|
-
rovingFocusGroupRootStyle:
|
|
122
|
-
orientation:
|
|
123
|
-
dir:
|
|
124
|
-
onItemFocus:
|
|
126
|
+
rovingFocusGroupRootStyle: v,
|
|
127
|
+
orientation: j(e, "orientation"),
|
|
128
|
+
dir: j(e, "dir"),
|
|
129
|
+
onItemFocus: d,
|
|
125
130
|
onItemShiftTab: _,
|
|
126
131
|
onBlur: o,
|
|
127
|
-
onFocus:
|
|
128
|
-
onMousedown:
|
|
129
|
-
}),
|
|
130
|
-
|
|
131
|
-
}), Me(c, me,
|
|
132
|
+
onFocus: P,
|
|
133
|
+
onMousedown: E
|
|
134
|
+
}), ge(() => e.currentTabId, (f) => {
|
|
135
|
+
t.value = f ?? null;
|
|
136
|
+
}), Me(c, me, u);
|
|
132
137
|
}
|
|
133
138
|
});
|
|
134
|
-
function
|
|
139
|
+
function To(e, n, p, t, w, m) {
|
|
135
140
|
return G(e.$slots, "default");
|
|
136
141
|
}
|
|
137
|
-
var
|
|
138
|
-
const
|
|
142
|
+
var Ro = /* @__PURE__ */ V($o, [["render", To], ["__file", "roving-focus-group-impl.vue"]]);
|
|
143
|
+
const So = U({
|
|
139
144
|
name: "ElRovingFocusGroup",
|
|
140
145
|
components: {
|
|
141
|
-
ElFocusGroupCollection:
|
|
142
|
-
ElRovingFocusGroupImpl:
|
|
146
|
+
ElFocusGroupCollection: bo,
|
|
147
|
+
ElRovingFocusGroupImpl: Ro
|
|
143
148
|
}
|
|
144
149
|
});
|
|
145
|
-
function
|
|
146
|
-
const c =
|
|
147
|
-
return D(),
|
|
148
|
-
default:
|
|
149
|
-
|
|
150
|
-
default:
|
|
150
|
+
function ko(e, n, p, t, w, m) {
|
|
151
|
+
const c = F("el-roving-focus-group-impl"), s = F("el-focus-group-collection");
|
|
152
|
+
return D(), H(s, null, {
|
|
153
|
+
default: i(() => [
|
|
154
|
+
a(c, Ae(Ve(e.$attrs)), {
|
|
155
|
+
default: i(() => [
|
|
151
156
|
G(e.$slots, "default")
|
|
152
157
|
]),
|
|
153
158
|
_: 3
|
|
@@ -156,126 +161,126 @@ function So(e, n, f, r, v, m) {
|
|
|
156
161
|
_: 3
|
|
157
162
|
});
|
|
158
163
|
}
|
|
159
|
-
var
|
|
160
|
-
const ee = Symbol("elDropdown"), { ButtonGroup: Do } = re,
|
|
164
|
+
var Oo = /* @__PURE__ */ V(So, [["render", ko], ["__file", "roving-focus-group.vue"]]);
|
|
165
|
+
const ee = Symbol("elDropdown"), { ButtonGroup: Do } = re, No = U({
|
|
161
166
|
name: "ElDropdown",
|
|
162
167
|
components: {
|
|
163
168
|
ElButton: re,
|
|
164
169
|
ElButtonGroup: Do,
|
|
165
170
|
ElScrollbar: Ke,
|
|
166
|
-
ElDropdownCollection:
|
|
171
|
+
ElDropdownCollection: ro,
|
|
167
172
|
ElTooltip: Be,
|
|
168
|
-
ElRovingFocusGroup:
|
|
173
|
+
ElRovingFocusGroup: Oo,
|
|
169
174
|
ElOnlyChild: Le,
|
|
170
175
|
ElIcon: le,
|
|
171
|
-
ArrowDown:
|
|
176
|
+
ArrowDown: Ee
|
|
172
177
|
},
|
|
173
|
-
props:
|
|
178
|
+
props: lo,
|
|
174
179
|
emits: ["visible-change", "click", "command"],
|
|
175
180
|
setup(e, { emit: n }) {
|
|
176
|
-
const
|
|
181
|
+
const p = _e(), t = te("dropdown"), { t: w } = vo(), m = h(), c = h(), s = h(null), v = h(null), d = h(null), _ = h(null), E = h(!1), P = k(() => ({
|
|
177
182
|
maxHeight: Re(e.maxHeight)
|
|
178
|
-
})), o = k(() => [
|
|
179
|
-
|
|
183
|
+
})), o = k(() => [t.m(b.value)]), u = k(() => go(e.trigger)), f = he().value, g = k(() => e.id || f);
|
|
184
|
+
ge([m, u], ([l, L], [Y]) => {
|
|
180
185
|
var de, ue, ce;
|
|
181
|
-
(de =
|
|
186
|
+
(de = Y == null ? void 0 : Y.$el) != null && de.removeEventListener && Y.$el.removeEventListener("pointerenter", y), (ue = l == null ? void 0 : l.$el) != null && ue.removeEventListener && l.$el.removeEventListener("pointerenter", y), (ce = l == null ? void 0 : l.$el) != null && ce.addEventListener && L.includes("hover") && l.$el.addEventListener("pointerenter", y);
|
|
182
187
|
}, { immediate: !0 }), Ue(() => {
|
|
183
|
-
var l,
|
|
184
|
-
(
|
|
188
|
+
var l, L;
|
|
189
|
+
(L = (l = m.value) == null ? void 0 : l.$el) != null && L.removeEventListener && m.value.$el.removeEventListener("pointerenter", y);
|
|
185
190
|
});
|
|
186
191
|
function C() {
|
|
187
|
-
|
|
192
|
+
r();
|
|
188
193
|
}
|
|
189
|
-
function
|
|
194
|
+
function r() {
|
|
190
195
|
var l;
|
|
191
196
|
(l = s.value) == null || l.onClose();
|
|
192
197
|
}
|
|
193
|
-
function
|
|
198
|
+
function T() {
|
|
194
199
|
var l;
|
|
195
200
|
(l = s.value) == null || l.onOpen();
|
|
196
201
|
}
|
|
197
|
-
const
|
|
198
|
-
function
|
|
202
|
+
const b = wo();
|
|
203
|
+
function O(...l) {
|
|
199
204
|
n("command", ...l);
|
|
200
205
|
}
|
|
201
|
-
function
|
|
202
|
-
var l,
|
|
203
|
-
(
|
|
206
|
+
function y() {
|
|
207
|
+
var l, L;
|
|
208
|
+
(L = (l = m.value) == null ? void 0 : l.$el) == null || L.focus();
|
|
204
209
|
}
|
|
205
|
-
function
|
|
210
|
+
function K() {
|
|
206
211
|
}
|
|
207
212
|
function B() {
|
|
208
|
-
const l =
|
|
209
|
-
|
|
213
|
+
const l = $(v);
|
|
214
|
+
u.value.includes("hover") && (l == null || l.focus()), _.value = null;
|
|
210
215
|
}
|
|
211
216
|
function S(l) {
|
|
212
217
|
_.value = l;
|
|
213
218
|
}
|
|
214
|
-
function
|
|
215
|
-
|
|
219
|
+
function J(l) {
|
|
220
|
+
E.value || (l.preventDefault(), l.stopImmediatePropagation());
|
|
216
221
|
}
|
|
217
|
-
function
|
|
222
|
+
function z() {
|
|
218
223
|
n("visible-change", !0);
|
|
219
224
|
}
|
|
220
|
-
function
|
|
221
|
-
(l == null ? void 0 : l.type) === "keydown" &&
|
|
225
|
+
function I(l) {
|
|
226
|
+
(l == null ? void 0 : l.type) === "keydown" && v.value.focus();
|
|
222
227
|
}
|
|
223
|
-
function
|
|
228
|
+
function $e() {
|
|
224
229
|
n("visible-change", !1);
|
|
225
230
|
}
|
|
226
231
|
return Q(ee, {
|
|
227
|
-
contentRef:
|
|
232
|
+
contentRef: v,
|
|
228
233
|
role: k(() => e.role),
|
|
229
|
-
triggerId:
|
|
230
|
-
isUsingKeyboard:
|
|
231
|
-
onItemEnter:
|
|
234
|
+
triggerId: g,
|
|
235
|
+
isUsingKeyboard: E,
|
|
236
|
+
onItemEnter: K,
|
|
232
237
|
onItemLeave: B
|
|
233
238
|
}), Q("elDropdown", {
|
|
234
|
-
instance:
|
|
235
|
-
dropdownSize:
|
|
239
|
+
instance: p,
|
|
240
|
+
dropdownSize: b,
|
|
236
241
|
handleClick: C,
|
|
237
|
-
commandHandler:
|
|
238
|
-
trigger:
|
|
239
|
-
hideOnClick:
|
|
242
|
+
commandHandler: O,
|
|
243
|
+
trigger: j(e, "trigger"),
|
|
244
|
+
hideOnClick: j(e, "hideOnClick")
|
|
240
245
|
}), {
|
|
241
|
-
t:
|
|
242
|
-
ns:
|
|
243
|
-
scrollbar:
|
|
244
|
-
wrapStyle:
|
|
246
|
+
t: w,
|
|
247
|
+
ns: t,
|
|
248
|
+
scrollbar: d,
|
|
249
|
+
wrapStyle: P,
|
|
245
250
|
dropdownTriggerKls: o,
|
|
246
|
-
dropdownSize:
|
|
247
|
-
triggerId:
|
|
251
|
+
dropdownSize: b,
|
|
252
|
+
triggerId: g,
|
|
248
253
|
currentTabId: _,
|
|
249
254
|
handleCurrentTabIdChange: S,
|
|
250
255
|
handlerMainButtonClick: (l) => {
|
|
251
256
|
n("click", l);
|
|
252
257
|
},
|
|
253
|
-
handleEntryFocus:
|
|
254
|
-
handleClose:
|
|
255
|
-
handleOpen:
|
|
256
|
-
handleBeforeShowTooltip:
|
|
257
|
-
handleShowTooltip:
|
|
258
|
-
handleBeforeHideTooltip:
|
|
258
|
+
handleEntryFocus: J,
|
|
259
|
+
handleClose: r,
|
|
260
|
+
handleOpen: T,
|
|
261
|
+
handleBeforeShowTooltip: z,
|
|
262
|
+
handleShowTooltip: I,
|
|
263
|
+
handleBeforeHideTooltip: $e,
|
|
259
264
|
onFocusAfterTrapped: (l) => {
|
|
260
|
-
var
|
|
261
|
-
l.preventDefault(), (
|
|
265
|
+
var L, Y;
|
|
266
|
+
l.preventDefault(), (Y = (L = v.value) == null ? void 0 : L.focus) == null || Y.call(L, {
|
|
262
267
|
preventScroll: !0
|
|
263
268
|
});
|
|
264
269
|
},
|
|
265
270
|
popperRef: s,
|
|
266
|
-
contentRef:
|
|
271
|
+
contentRef: v,
|
|
267
272
|
triggeringElementRef: m,
|
|
268
273
|
referenceElementRef: c
|
|
269
274
|
};
|
|
270
275
|
}
|
|
271
276
|
});
|
|
272
|
-
function
|
|
277
|
+
function Ko(e, n, p, t, w, m) {
|
|
273
278
|
var c;
|
|
274
|
-
const s =
|
|
279
|
+
const s = F("el-dropdown-collection"), v = F("el-roving-focus-group"), d = F("el-scrollbar"), _ = F("el-only-child"), E = F("el-tooltip"), P = F("el-button"), o = F("arrow-down"), u = F("el-icon"), f = F("el-button-group");
|
|
275
280
|
return D(), A("div", {
|
|
276
281
|
class: X([e.ns.b(), e.ns.is("disabled", e.disabled)])
|
|
277
282
|
}, [
|
|
278
|
-
|
|
283
|
+
a(E, {
|
|
279
284
|
ref: "popperRef",
|
|
280
285
|
role: e.role,
|
|
281
286
|
effect: e.effect,
|
|
@@ -303,24 +308,24 @@ function No(e, n, f, r, v, m) {
|
|
|
303
308
|
onShow: e.handleShowTooltip,
|
|
304
309
|
onBeforeHide: e.handleBeforeHideTooltip
|
|
305
310
|
}, ze({
|
|
306
|
-
content:
|
|
307
|
-
|
|
311
|
+
content: i(() => [
|
|
312
|
+
a(d, {
|
|
308
313
|
ref: "scrollbar",
|
|
309
314
|
"wrap-style": e.wrapStyle,
|
|
310
315
|
tag: "div",
|
|
311
316
|
"view-class": e.ns.e("list")
|
|
312
317
|
}, {
|
|
313
|
-
default:
|
|
314
|
-
|
|
318
|
+
default: i(() => [
|
|
319
|
+
a(v, {
|
|
315
320
|
loop: e.loop,
|
|
316
321
|
"current-tab-id": e.currentTabId,
|
|
317
322
|
orientation: "horizontal",
|
|
318
323
|
onCurrentTabIdChange: e.handleCurrentTabIdChange,
|
|
319
324
|
onEntryFocus: e.handleEntryFocus
|
|
320
325
|
}, {
|
|
321
|
-
default:
|
|
322
|
-
|
|
323
|
-
default:
|
|
326
|
+
default: i(() => [
|
|
327
|
+
a(s, null, {
|
|
328
|
+
default: i(() => [
|
|
324
329
|
G(e.$slots, "dropdown")
|
|
325
330
|
]),
|
|
326
331
|
_: 3
|
|
@@ -336,14 +341,14 @@ function No(e, n, f, r, v, m) {
|
|
|
336
341
|
}, [
|
|
337
342
|
e.splitButton ? void 0 : {
|
|
338
343
|
name: "default",
|
|
339
|
-
fn:
|
|
340
|
-
|
|
344
|
+
fn: i(() => [
|
|
345
|
+
a(_, {
|
|
341
346
|
id: e.triggerId,
|
|
342
347
|
ref: "triggeringElementRef",
|
|
343
348
|
role: "button",
|
|
344
349
|
tabindex: e.tabindex
|
|
345
350
|
}, {
|
|
346
|
-
default:
|
|
351
|
+
default: i(() => [
|
|
347
352
|
G(e.$slots, "default")
|
|
348
353
|
]),
|
|
349
354
|
_: 3
|
|
@@ -351,21 +356,21 @@ function No(e, n, f, r, v, m) {
|
|
|
351
356
|
])
|
|
352
357
|
}
|
|
353
358
|
]), 1032, ["role", "effect", "popper-options", "hide-after", "placement", "popper-class", "reference-element", "trigger", "trigger-keys", "trigger-target-el", "show-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "teleported", "onBeforeShow", "onShow", "onBeforeHide"]),
|
|
354
|
-
e.splitButton ? (D(),
|
|
355
|
-
default:
|
|
356
|
-
|
|
359
|
+
e.splitButton ? (D(), H(f, { key: 0 }, {
|
|
360
|
+
default: i(() => [
|
|
361
|
+
a(P, Z({ ref: "referenceElementRef" }, e.buttonProps, {
|
|
357
362
|
size: e.dropdownSize,
|
|
358
363
|
type: e.type,
|
|
359
364
|
disabled: e.disabled,
|
|
360
365
|
tabindex: e.tabindex,
|
|
361
366
|
onClick: e.handlerMainButtonClick
|
|
362
367
|
}), {
|
|
363
|
-
default:
|
|
368
|
+
default: i(() => [
|
|
364
369
|
G(e.$slots, "default")
|
|
365
370
|
]),
|
|
366
371
|
_: 3
|
|
367
372
|
}, 16, ["size", "type", "disabled", "tabindex", "onClick"]),
|
|
368
|
-
|
|
373
|
+
a(P, Z({
|
|
369
374
|
id: e.triggerId,
|
|
370
375
|
ref: "triggeringElementRef"
|
|
371
376
|
}, e.buttonProps, {
|
|
@@ -377,12 +382,12 @@ function No(e, n, f, r, v, m) {
|
|
|
377
382
|
tabindex: e.tabindex,
|
|
378
383
|
"aria-label": e.t("el.dropdown.toggleDropdown")
|
|
379
384
|
}), {
|
|
380
|
-
default:
|
|
381
|
-
u
|
|
385
|
+
default: i(() => [
|
|
386
|
+
a(u, {
|
|
382
387
|
class: X(e.ns.e("icon"))
|
|
383
388
|
}, {
|
|
384
|
-
default:
|
|
385
|
-
|
|
389
|
+
default: i(() => [
|
|
390
|
+
a(o)
|
|
386
391
|
]),
|
|
387
392
|
_: 1
|
|
388
393
|
}, 8, ["class"])
|
|
@@ -394,10 +399,10 @@ function No(e, n, f, r, v, m) {
|
|
|
394
399
|
})) : ne("v-if", !0)
|
|
395
400
|
], 2);
|
|
396
401
|
}
|
|
397
|
-
var
|
|
398
|
-
const
|
|
402
|
+
var Bo = /* @__PURE__ */ V(No, [["render", Ko], ["__file", "dropdown.vue"]]);
|
|
403
|
+
const Lo = U({
|
|
399
404
|
components: {
|
|
400
|
-
ElRovingFocusCollectionItem:
|
|
405
|
+
ElRovingFocusCollectionItem: Eo
|
|
401
406
|
},
|
|
402
407
|
props: {
|
|
403
408
|
focusable: {
|
|
@@ -411,115 +416,115 @@ const Bo = U({
|
|
|
411
416
|
},
|
|
412
417
|
emits: ["mousedown", "focus", "keydown"],
|
|
413
418
|
setup(e, { emit: n }) {
|
|
414
|
-
const { currentTabbedId:
|
|
419
|
+
const { currentTabbedId: p, loop: t, onItemFocus: w, onItemShiftTab: m } = R(ae, void 0), { getItems: c } = R(se, void 0), s = he(), v = h(null), d = M((o) => {
|
|
415
420
|
n("mousedown", o);
|
|
416
421
|
}, (o) => {
|
|
417
|
-
e.focusable ?
|
|
418
|
-
}), _ =
|
|
422
|
+
e.focusable ? w($(s)) : o.preventDefault();
|
|
423
|
+
}), _ = M((o) => {
|
|
419
424
|
n("focus", o);
|
|
420
425
|
}, () => {
|
|
421
|
-
|
|
422
|
-
}),
|
|
426
|
+
w($(s));
|
|
427
|
+
}), E = M((o) => {
|
|
423
428
|
n("keydown", o);
|
|
424
429
|
}, (o) => {
|
|
425
|
-
const { code:
|
|
426
|
-
if (
|
|
430
|
+
const { code: u, shiftKey: f, target: g, currentTarget: C } = o;
|
|
431
|
+
if (u === N.tab && f) {
|
|
427
432
|
m();
|
|
428
433
|
return;
|
|
429
434
|
}
|
|
430
|
-
if (
|
|
435
|
+
if (g !== C)
|
|
431
436
|
return;
|
|
432
|
-
const
|
|
433
|
-
if (
|
|
437
|
+
const r = yo(o);
|
|
438
|
+
if (r) {
|
|
434
439
|
o.preventDefault();
|
|
435
|
-
let
|
|
436
|
-
switch (
|
|
440
|
+
let b = c().filter((O) => O.focusable).map((O) => O.ref);
|
|
441
|
+
switch (r) {
|
|
437
442
|
case "last": {
|
|
438
|
-
|
|
443
|
+
b.reverse();
|
|
439
444
|
break;
|
|
440
445
|
}
|
|
441
446
|
case "prev":
|
|
442
447
|
case "next": {
|
|
443
|
-
|
|
444
|
-
const
|
|
445
|
-
|
|
448
|
+
r === "prev" && b.reverse();
|
|
449
|
+
const O = b.indexOf(C);
|
|
450
|
+
b = t.value ? Po(b, O + 1) : b.slice(O + 1);
|
|
446
451
|
break;
|
|
447
452
|
}
|
|
448
453
|
}
|
|
449
|
-
|
|
450
|
-
ie(
|
|
454
|
+
be(() => {
|
|
455
|
+
ie(b);
|
|
451
456
|
});
|
|
452
457
|
}
|
|
453
|
-
}),
|
|
454
|
-
return Q(
|
|
455
|
-
rovingFocusGroupItemRef:
|
|
456
|
-
tabIndex: k(() =>
|
|
457
|
-
handleMousedown:
|
|
458
|
+
}), P = k(() => p.value === $(s));
|
|
459
|
+
return Q(Ce, {
|
|
460
|
+
rovingFocusGroupItemRef: v,
|
|
461
|
+
tabIndex: k(() => $(P) ? 0 : -1),
|
|
462
|
+
handleMousedown: d,
|
|
458
463
|
handleFocus: _,
|
|
459
|
-
handleKeydown:
|
|
464
|
+
handleKeydown: E
|
|
460
465
|
}), {
|
|
461
466
|
id: s,
|
|
462
|
-
handleKeydown:
|
|
467
|
+
handleKeydown: E,
|
|
463
468
|
handleFocus: _,
|
|
464
|
-
handleMousedown:
|
|
469
|
+
handleMousedown: d
|
|
465
470
|
};
|
|
466
471
|
}
|
|
467
472
|
});
|
|
468
|
-
function
|
|
469
|
-
const c =
|
|
470
|
-
return D(),
|
|
473
|
+
function Mo(e, n, p, t, w, m) {
|
|
474
|
+
const c = F("el-roving-focus-collection-item");
|
|
475
|
+
return D(), H(c, {
|
|
471
476
|
id: e.id,
|
|
472
477
|
focusable: e.focusable,
|
|
473
478
|
active: e.active
|
|
474
479
|
}, {
|
|
475
|
-
default:
|
|
480
|
+
default: i(() => [
|
|
476
481
|
G(e.$slots, "default")
|
|
477
482
|
]),
|
|
478
483
|
_: 3
|
|
479
484
|
}, 8, ["id", "focusable", "active"]);
|
|
480
485
|
}
|
|
481
|
-
var
|
|
482
|
-
const
|
|
486
|
+
var Go = /* @__PURE__ */ V(Lo, [["render", Mo], ["__file", "roving-focus-item.vue"]]);
|
|
487
|
+
const Ao = U({
|
|
483
488
|
name: "DropdownItemImpl",
|
|
484
489
|
components: {
|
|
485
490
|
ElIcon: le
|
|
486
491
|
},
|
|
487
|
-
props:
|
|
492
|
+
props: Ie,
|
|
488
493
|
emits: ["pointermove", "pointerleave", "click", "clickimpl"],
|
|
489
494
|
setup(e, { emit: n }) {
|
|
490
|
-
const
|
|
495
|
+
const p = te("dropdown"), { role: t } = R(ee, void 0), { collectionItemRef: w } = R(so, void 0), { collectionItemRef: m } = R(Io, void 0), {
|
|
491
496
|
rovingFocusGroupItemRef: c,
|
|
492
497
|
tabIndex: s,
|
|
493
|
-
handleFocus:
|
|
494
|
-
handleKeydown:
|
|
498
|
+
handleFocus: v,
|
|
499
|
+
handleKeydown: d,
|
|
495
500
|
handleMousedown: _
|
|
496
|
-
} = R(
|
|
497
|
-
if ([
|
|
498
|
-
return
|
|
499
|
-
},
|
|
501
|
+
} = R(Ce, void 0), E = we(w, m, c), P = k(() => t.value === "menu" ? "menuitem" : t.value === "navigation" ? "link" : "button"), o = M((u) => {
|
|
502
|
+
if ([N.enter, N.numpadEnter, N.space].includes(u.code))
|
|
503
|
+
return u.preventDefault(), u.stopImmediatePropagation(), n("clickimpl", u), !0;
|
|
504
|
+
}, d);
|
|
500
505
|
return {
|
|
501
|
-
ns:
|
|
502
|
-
itemRef:
|
|
506
|
+
ns: p,
|
|
507
|
+
itemRef: E,
|
|
503
508
|
dataset: {
|
|
504
|
-
[
|
|
509
|
+
[ao]: ""
|
|
505
510
|
},
|
|
506
|
-
role:
|
|
511
|
+
role: P,
|
|
507
512
|
tabIndex: s,
|
|
508
|
-
handleFocus:
|
|
513
|
+
handleFocus: v,
|
|
509
514
|
handleKeydown: o,
|
|
510
515
|
handleMousedown: _
|
|
511
516
|
};
|
|
512
517
|
}
|
|
513
518
|
});
|
|
514
|
-
function
|
|
515
|
-
const c =
|
|
516
|
-
return D(), A(
|
|
519
|
+
function Vo(e, n, p, t, w, m) {
|
|
520
|
+
const c = F("el-icon");
|
|
521
|
+
return D(), A(Ye, null, [
|
|
517
522
|
e.divided ? (D(), A("li", {
|
|
518
523
|
key: 0,
|
|
519
524
|
role: "separator",
|
|
520
525
|
class: X(e.ns.bem("menu", "item", "divided"))
|
|
521
526
|
}, null, 2)) : ne("v-if", !0),
|
|
522
|
-
|
|
527
|
+
q("li", Z({ ref: e.itemRef }, { ...e.dataset, ...e.$attrs }, {
|
|
523
528
|
"aria-disabled": e.disabled,
|
|
524
529
|
class: [e.ns.be("menu", "item"), e.ns.is("disabled", e.disabled)],
|
|
525
530
|
tabindex: e.tabIndex,
|
|
@@ -531,9 +536,9 @@ function Ao(e, n, f, r, v, m) {
|
|
|
531
536
|
onPointermove: (s) => e.$emit("pointermove", s),
|
|
532
537
|
onPointerleave: (s) => e.$emit("pointerleave", s)
|
|
533
538
|
}), [
|
|
534
|
-
e.icon ? (D(),
|
|
535
|
-
default:
|
|
536
|
-
(D(),
|
|
539
|
+
e.icon ? (D(), H(c, { key: 0 }, {
|
|
540
|
+
default: i(() => [
|
|
541
|
+
(D(), H(He(e.icon)))
|
|
537
542
|
]),
|
|
538
543
|
_: 1
|
|
539
544
|
})) : ne("v-if", !0),
|
|
@@ -541,72 +546,72 @@ function Ao(e, n, f, r, v, m) {
|
|
|
541
546
|
], 16, ["aria-disabled", "tabindex", "role", "onClick", "onFocus", "onKeydown", "onMousedown", "onPointermove", "onPointerleave"])
|
|
542
547
|
], 64);
|
|
543
548
|
}
|
|
544
|
-
var
|
|
545
|
-
const
|
|
549
|
+
var Uo = /* @__PURE__ */ V(Ao, [["render", Vo], ["__file", "dropdown-item-impl.vue"]]);
|
|
550
|
+
const ye = () => {
|
|
546
551
|
const e = R("elDropdown", {}), n = k(() => e == null ? void 0 : e.dropdownSize);
|
|
547
552
|
return {
|
|
548
553
|
elDropdown: e,
|
|
549
554
|
_elDropdownSize: n
|
|
550
555
|
};
|
|
551
|
-
},
|
|
556
|
+
}, zo = U({
|
|
552
557
|
name: "ElDropdownItem",
|
|
553
558
|
components: {
|
|
554
|
-
ElDropdownCollectionItem:
|
|
555
|
-
ElRovingFocusItem:
|
|
556
|
-
ElDropdownItemImpl:
|
|
559
|
+
ElDropdownCollectionItem: io,
|
|
560
|
+
ElRovingFocusItem: Go,
|
|
561
|
+
ElDropdownItemImpl: Uo
|
|
557
562
|
},
|
|
558
563
|
inheritAttrs: !1,
|
|
559
|
-
props:
|
|
564
|
+
props: Ie,
|
|
560
565
|
emits: ["pointermove", "pointerleave", "click"],
|
|
561
|
-
setup(e, { emit: n, attrs:
|
|
562
|
-
const { elDropdown:
|
|
563
|
-
var o,
|
|
564
|
-
return (
|
|
565
|
-
}), { onItemEnter: s, onItemLeave:
|
|
566
|
+
setup(e, { emit: n, attrs: p }) {
|
|
567
|
+
const { elDropdown: t } = ye(), w = _e(), m = h(null), c = k(() => {
|
|
568
|
+
var o, u;
|
|
569
|
+
return (u = (o = $(m)) == null ? void 0 : o.textContent) != null ? u : "";
|
|
570
|
+
}), { onItemEnter: s, onItemLeave: v } = R(ee, void 0), d = M((o) => (n("pointermove", o), o.defaultPrevented), pe((o) => {
|
|
566
571
|
if (e.disabled) {
|
|
567
|
-
|
|
572
|
+
v(o);
|
|
568
573
|
return;
|
|
569
574
|
}
|
|
570
|
-
const
|
|
571
|
-
|
|
572
|
-
})), _ =
|
|
575
|
+
const u = o.currentTarget;
|
|
576
|
+
u === document.activeElement || u.contains(document.activeElement) || (s(o), o.defaultPrevented || u == null || u.focus());
|
|
577
|
+
})), _ = M((o) => (n("pointerleave", o), o.defaultPrevented), pe(v)), E = M((o) => {
|
|
573
578
|
if (!e.disabled)
|
|
574
579
|
return n("click", o), o.type !== "keydown" && o.defaultPrevented;
|
|
575
580
|
}, (o) => {
|
|
576
|
-
var
|
|
581
|
+
var u, f, g;
|
|
577
582
|
if (e.disabled) {
|
|
578
583
|
o.stopImmediatePropagation();
|
|
579
584
|
return;
|
|
580
585
|
}
|
|
581
|
-
(
|
|
582
|
-
}),
|
|
586
|
+
(u = t == null ? void 0 : t.hideOnClick) != null && u.value && ((f = t.handleClick) == null || f.call(t)), (g = t.commandHandler) == null || g.call(t, e.command, w, o);
|
|
587
|
+
}), P = k(() => ({ ...e, ...p }));
|
|
583
588
|
return {
|
|
584
|
-
handleClick:
|
|
585
|
-
handlePointerMove:
|
|
589
|
+
handleClick: E,
|
|
590
|
+
handlePointerMove: d,
|
|
586
591
|
handlePointerLeave: _,
|
|
587
592
|
textContent: c,
|
|
588
|
-
propsAndAttrs:
|
|
593
|
+
propsAndAttrs: P
|
|
589
594
|
};
|
|
590
595
|
}
|
|
591
596
|
});
|
|
592
|
-
function
|
|
597
|
+
function Yo(e, n, p, t, w, m) {
|
|
593
598
|
var c;
|
|
594
|
-
const s =
|
|
595
|
-
return D(),
|
|
599
|
+
const s = F("el-dropdown-item-impl"), v = F("el-roving-focus-item"), d = F("el-dropdown-collection-item");
|
|
600
|
+
return D(), H(d, {
|
|
596
601
|
disabled: e.disabled,
|
|
597
602
|
"text-value": (c = e.textValue) != null ? c : e.textContent
|
|
598
603
|
}, {
|
|
599
|
-
default:
|
|
600
|
-
|
|
604
|
+
default: i(() => [
|
|
605
|
+
a(v, {
|
|
601
606
|
focusable: !e.disabled
|
|
602
607
|
}, {
|
|
603
|
-
default:
|
|
604
|
-
|
|
608
|
+
default: i(() => [
|
|
609
|
+
a(s, Z(e.propsAndAttrs, {
|
|
605
610
|
onPointerleave: e.handlePointerLeave,
|
|
606
611
|
onPointermove: e.handlePointerMove,
|
|
607
612
|
onClickimpl: e.handleClick
|
|
608
613
|
}), {
|
|
609
|
-
default:
|
|
614
|
+
default: i(() => [
|
|
610
615
|
G(e.$slots, "default")
|
|
611
616
|
]),
|
|
612
617
|
_: 3
|
|
@@ -618,50 +623,50 @@ function zo(e, n, f, r, v, m) {
|
|
|
618
623
|
_: 3
|
|
619
624
|
}, 8, ["disabled", "text-value"]);
|
|
620
625
|
}
|
|
621
|
-
var
|
|
622
|
-
const
|
|
626
|
+
var Pe = /* @__PURE__ */ V(zo, [["render", Yo], ["__file", "dropdown-item.vue"]]);
|
|
627
|
+
const Ho = U({
|
|
623
628
|
name: "ElDropdownMenu",
|
|
624
|
-
props:
|
|
629
|
+
props: uo,
|
|
625
630
|
setup(e) {
|
|
626
|
-
const n = te("dropdown"), { _elDropdownSize:
|
|
627
|
-
rovingFocusGroupRef:
|
|
628
|
-
rovingFocusGroupRootStyle:
|
|
631
|
+
const n = te("dropdown"), { _elDropdownSize: p } = ye(), t = p.value, { focusTrapRef: w, onKeydown: m } = R(mo, void 0), { contentRef: c, role: s, triggerId: v } = R(ee, void 0), { collectionRef: d, getItems: _ } = R(co, void 0), {
|
|
632
|
+
rovingFocusGroupRef: E,
|
|
633
|
+
rovingFocusGroupRootStyle: P,
|
|
629
634
|
tabIndex: o,
|
|
630
|
-
onBlur:
|
|
631
|
-
onFocus:
|
|
632
|
-
onMousedown:
|
|
633
|
-
} = R(ae, void 0), { collectionRef: C } = R(se, void 0),
|
|
634
|
-
var
|
|
635
|
-
(
|
|
636
|
-
}, (
|
|
637
|
-
const { currentTarget:
|
|
638
|
-
if (
|
|
635
|
+
onBlur: u,
|
|
636
|
+
onFocus: f,
|
|
637
|
+
onMousedown: g
|
|
638
|
+
} = R(ae, void 0), { collectionRef: C } = R(se, void 0), r = k(() => [n.b("menu"), n.bm("menu", t == null ? void 0 : t.value)]), T = we(c, d, w, E, C), b = M((y) => {
|
|
639
|
+
var K;
|
|
640
|
+
(K = e.onKeydown) == null || K.call(e, y);
|
|
641
|
+
}, (y) => {
|
|
642
|
+
const { currentTarget: K, code: B, target: S } = y;
|
|
643
|
+
if (K.contains(S), N.tab === B && y.stopImmediatePropagation(), y.preventDefault(), S !== $(c) || !po.includes(B))
|
|
639
644
|
return;
|
|
640
|
-
const
|
|
641
|
-
|
|
645
|
+
const z = _().filter((I) => !I.disabled).map((I) => I.ref);
|
|
646
|
+
fo.includes(B) && z.reverse(), ie(z);
|
|
642
647
|
});
|
|
643
648
|
return {
|
|
644
|
-
size:
|
|
645
|
-
rovingFocusGroupRootStyle:
|
|
649
|
+
size: t,
|
|
650
|
+
rovingFocusGroupRootStyle: P,
|
|
646
651
|
tabIndex: o,
|
|
647
|
-
dropdownKls:
|
|
652
|
+
dropdownKls: r,
|
|
648
653
|
role: s,
|
|
649
|
-
triggerId:
|
|
650
|
-
dropdownListWrapperRef:
|
|
651
|
-
handleKeydown: (
|
|
652
|
-
|
|
654
|
+
triggerId: v,
|
|
655
|
+
dropdownListWrapperRef: T,
|
|
656
|
+
handleKeydown: (y) => {
|
|
657
|
+
b(y), m(y);
|
|
653
658
|
},
|
|
654
|
-
onBlur:
|
|
655
|
-
onFocus:
|
|
656
|
-
onMousedown:
|
|
659
|
+
onBlur: u,
|
|
660
|
+
onFocus: f,
|
|
661
|
+
onMousedown: g
|
|
657
662
|
};
|
|
658
663
|
}
|
|
659
664
|
});
|
|
660
|
-
function
|
|
665
|
+
function Jo(e, n, p, t, w, m) {
|
|
661
666
|
return D(), A("ul", {
|
|
662
667
|
ref: e.dropdownListWrapperRef,
|
|
663
668
|
class: X(e.dropdownKls),
|
|
664
|
-
style:
|
|
669
|
+
style: Je(e.rovingFocusGroupRootStyle),
|
|
665
670
|
tabindex: -1,
|
|
666
671
|
role: e.role,
|
|
667
672
|
"aria-labelledby": e.triggerId,
|
|
@@ -673,12 +678,12 @@ function Ho(e, n, f, r, v, m) {
|
|
|
673
678
|
G(e.$slots, "default")
|
|
674
679
|
], 46, ["role", "aria-labelledby", "onBlur", "onFocus", "onKeydown", "onMousedown"]);
|
|
675
680
|
}
|
|
676
|
-
var Fe = /* @__PURE__ */ V(
|
|
677
|
-
const
|
|
678
|
-
DropdownItem:
|
|
681
|
+
var Fe = /* @__PURE__ */ V(Ho, [["render", Jo], ["__file", "dropdown-menu.vue"]]);
|
|
682
|
+
const Wo = Se(Bo, {
|
|
683
|
+
DropdownItem: Pe,
|
|
679
684
|
DropdownMenu: Fe
|
|
680
|
-
}),
|
|
681
|
-
const
|
|
685
|
+
}), jo = ve(Pe), qo = ve(Fe);
|
|
686
|
+
const Qo = { class: "user" }, Xo = { key: 0 }, Zo = { class: "user-msg" }, xo = { class: "dialog-footer" }, en = {
|
|
682
687
|
__name: "index",
|
|
683
688
|
props: {
|
|
684
689
|
config: {
|
|
@@ -689,66 +694,74 @@ const jo = { class: "user" }, Qo = { key: 0 }, Xo = { class: "user-msg" }, Zo =
|
|
|
689
694
|
},
|
|
690
695
|
emits: ["loginout"],
|
|
691
696
|
setup(e, { emit: n }) {
|
|
692
|
-
const
|
|
697
|
+
const p = R("stConfig"), t = Xe(), w = h(null), m = n, c = e, s = h(null), v = h(!1), d = h({
|
|
693
698
|
oldPassword: "",
|
|
694
699
|
newPassword: "",
|
|
695
700
|
confirmPassword: ""
|
|
696
|
-
}), _ =
|
|
701
|
+
}), _ = h({
|
|
697
702
|
oldPassword: [
|
|
698
703
|
{ required: !0, message: "请输入原密码", trigger: "blur" },
|
|
699
704
|
{ min: 6, max: 18, trigger: "blur", message: "密码长度为6到18位" }
|
|
700
705
|
],
|
|
701
|
-
newPassword: [
|
|
702
|
-
{ required: !0, message: "请输入新密码", trigger: "blur" },
|
|
703
|
-
{ min: 6, max: 18, trigger: "blur", message: "密码长度为6到18位" }
|
|
704
|
-
],
|
|
706
|
+
newPassword: [],
|
|
705
707
|
confirmPassword: [
|
|
706
708
|
{ required: !0, message: "请输入确认密码", trigger: "blur" },
|
|
707
|
-
{
|
|
708
|
-
|
|
709
|
-
|
|
709
|
+
{
|
|
710
|
+
validator: (C, r, T) => {
|
|
711
|
+
r === "" ? T(new Error("请输入确认密码")) : r !== d.value.newPassword ? T(new Error("两次输入密码不一致!")) : T();
|
|
712
|
+
},
|
|
713
|
+
trigger: "blur"
|
|
714
|
+
},
|
|
710
715
|
{ min: 6, max: 18, trigger: "blur", message: "密码长度为6到18位" }
|
|
711
716
|
]
|
|
712
|
-
}), h = () => {
|
|
713
|
-
const { loginUrl:
|
|
714
|
-
|
|
715
|
-
}, I = () => {
|
|
716
|
-
const { loginoutToLogin: i, loginoutUrl: t } = m.config || {};
|
|
717
|
-
oo(i, t), v("loginout");
|
|
717
|
+
}), E = h(!1), P = () => {
|
|
718
|
+
const { loginUrl: C } = c.config || {};
|
|
719
|
+
Ze(C);
|
|
718
720
|
}, o = () => {
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
721
|
+
const { loginoutToLogin: C, loginoutUrl: r } = c.config || {};
|
|
722
|
+
xe(C, r), m("loginout");
|
|
723
|
+
}, u = () => {
|
|
724
|
+
s.value.validate(async (C, r) => {
|
|
725
|
+
C && (await p.request.post("/invest/sys/user/password", {
|
|
726
|
+
password: d.value.oldPassword,
|
|
727
|
+
newPassword: d.value.newPassword,
|
|
728
|
+
newPassword2: d.value.confirmPassword
|
|
729
|
+
}), oo.success("修改成功!"), v.value = !1);
|
|
730
|
+
});
|
|
731
|
+
}, f = () => {
|
|
732
|
+
_.value.newPassword.length === 0 && be(() => {
|
|
733
|
+
var r;
|
|
734
|
+
_.value.newPassword = (r = w.value) == null ? void 0 : r.ruleFormPassword;
|
|
735
|
+
let C = setTimeout(() => {
|
|
736
|
+
s.value.resetFields(), clearTimeout(C);
|
|
737
|
+
}, 0);
|
|
725
738
|
});
|
|
726
|
-
},
|
|
727
|
-
|
|
739
|
+
}, g = () => {
|
|
740
|
+
d.value = {
|
|
728
741
|
oldPassword: "",
|
|
729
742
|
newPassword: "",
|
|
730
743
|
confirmPassword: ""
|
|
731
|
-
},
|
|
744
|
+
}, s.value.resetFields();
|
|
732
745
|
};
|
|
733
|
-
return (
|
|
734
|
-
const
|
|
735
|
-
return D(), A("div",
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
dropdown:
|
|
739
|
-
|
|
740
|
-
default:
|
|
741
|
-
|
|
742
|
-
onClick:
|
|
746
|
+
return (C, r) => {
|
|
747
|
+
const T = le, b = jo, O = qo, y = Wo, K = Ne, B = Oe, S = De, J = re, z = ke;
|
|
748
|
+
return D(), A("div", Qo, [
|
|
749
|
+
$(t) ? (D(), A("div", Xo, [
|
|
750
|
+
a(y, { placement: "bottom" }, {
|
|
751
|
+
dropdown: i(() => [
|
|
752
|
+
a(O, null, {
|
|
753
|
+
default: i(() => [
|
|
754
|
+
a(b, {
|
|
755
|
+
onClick: r[0] || (r[0] = (I) => v.value = !0)
|
|
743
756
|
}, {
|
|
744
|
-
default:
|
|
745
|
-
|
|
757
|
+
default: i(() => [
|
|
758
|
+
W("修改密码")
|
|
746
759
|
]),
|
|
747
760
|
_: 1
|
|
748
761
|
}),
|
|
749
|
-
|
|
750
|
-
default:
|
|
751
|
-
|
|
762
|
+
a(b, { onClick: o }, {
|
|
763
|
+
default: i(() => [
|
|
764
|
+
W("退出登录")
|
|
752
765
|
]),
|
|
753
766
|
_: 1
|
|
754
767
|
})
|
|
@@ -756,20 +769,20 @@ const jo = { class: "user" }, Qo = { key: 0 }, Xo = { class: "user-msg" }, Zo =
|
|
|
756
769
|
_: 1
|
|
757
770
|
})
|
|
758
771
|
]),
|
|
759
|
-
default:
|
|
760
|
-
var
|
|
772
|
+
default: i(() => {
|
|
773
|
+
var I;
|
|
761
774
|
return [
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
default:
|
|
765
|
-
|
|
775
|
+
q("div", Zo, [
|
|
776
|
+
a(T, { class: "user-msg-icon" }, {
|
|
777
|
+
default: i(() => [
|
|
778
|
+
a($(qe))
|
|
766
779
|
]),
|
|
767
780
|
_: 1
|
|
768
781
|
}),
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
default:
|
|
772
|
-
|
|
782
|
+
q("span", null, We((I = $(t)) == null ? void 0 : I.username), 1),
|
|
783
|
+
a(T, { class: "user-msg-arrow" }, {
|
|
784
|
+
default: i(() => [
|
|
785
|
+
a($(Ee))
|
|
773
786
|
]),
|
|
774
787
|
_: 1
|
|
775
788
|
})
|
|
@@ -781,92 +794,103 @@ const jo = { class: "user" }, Qo = { key: 0 }, Xo = { class: "user-msg" }, Zo =
|
|
|
781
794
|
])) : (D(), A("div", {
|
|
782
795
|
key: 1,
|
|
783
796
|
class: "user-login",
|
|
784
|
-
onClick:
|
|
797
|
+
onClick: P
|
|
785
798
|
}, [
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
default:
|
|
789
|
-
|
|
799
|
+
W(" 前往登录 "),
|
|
800
|
+
a(T, { class: "user-login-icon" }, {
|
|
801
|
+
default: i(() => [
|
|
802
|
+
a($(Qe))
|
|
790
803
|
]),
|
|
791
804
|
_: 1
|
|
792
805
|
})
|
|
793
806
|
])),
|
|
794
|
-
|
|
795
|
-
modelValue:
|
|
796
|
-
"onUpdate:modelValue":
|
|
807
|
+
a(z, {
|
|
808
|
+
modelValue: v.value,
|
|
809
|
+
"onUpdate:modelValue": r[7] || (r[7] = (I) => v.value = I),
|
|
797
810
|
title: "修改密码",
|
|
798
811
|
width: "500",
|
|
799
812
|
"z-index": 200,
|
|
800
|
-
|
|
813
|
+
onOpened: f,
|
|
814
|
+
onClosed: g
|
|
801
815
|
}, {
|
|
802
|
-
footer:
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
onClick:
|
|
816
|
+
footer: i(() => [
|
|
817
|
+
q("div", xo, [
|
|
818
|
+
a(J, {
|
|
819
|
+
onClick: r[6] || (r[6] = (I) => v.value = !1)
|
|
806
820
|
}, {
|
|
807
|
-
default:
|
|
808
|
-
|
|
821
|
+
default: i(() => [
|
|
822
|
+
W("取消")
|
|
809
823
|
]),
|
|
810
824
|
_: 1
|
|
811
825
|
}),
|
|
812
|
-
|
|
826
|
+
a(J, {
|
|
813
827
|
type: "primary",
|
|
814
|
-
onClick:
|
|
828
|
+
onClick: u
|
|
815
829
|
}, {
|
|
816
|
-
default:
|
|
817
|
-
|
|
830
|
+
default: i(() => [
|
|
831
|
+
W(" 修改 ")
|
|
818
832
|
]),
|
|
819
833
|
_: 1
|
|
820
834
|
})
|
|
821
835
|
])
|
|
822
836
|
]),
|
|
823
|
-
default:
|
|
824
|
-
|
|
837
|
+
default: i(() => [
|
|
838
|
+
a(S, {
|
|
825
839
|
ref_key: "changePasswordFormRef",
|
|
826
|
-
ref:
|
|
827
|
-
model:
|
|
840
|
+
ref: s,
|
|
841
|
+
model: d.value,
|
|
828
842
|
rules: _.value,
|
|
829
|
-
onSubmit: x(
|
|
830
|
-
onKeyup: je(
|
|
843
|
+
onSubmit: x(u, ["prevent"]),
|
|
844
|
+
onKeyup: je(u, ["enter", "native"]),
|
|
831
845
|
"label-width": "auto"
|
|
832
846
|
}, {
|
|
833
|
-
default:
|
|
834
|
-
|
|
847
|
+
default: i(() => [
|
|
848
|
+
a(B, {
|
|
835
849
|
label: "原密码",
|
|
836
850
|
prop: "oldPassword"
|
|
837
851
|
}, {
|
|
838
|
-
default:
|
|
839
|
-
|
|
840
|
-
modelValue:
|
|
841
|
-
"onUpdate:modelValue":
|
|
852
|
+
default: i(() => [
|
|
853
|
+
a(K, {
|
|
854
|
+
modelValue: d.value.oldPassword,
|
|
855
|
+
"onUpdate:modelValue": r[1] || (r[1] = (I) => d.value.oldPassword = I),
|
|
842
856
|
type: "password",
|
|
843
857
|
"show-password": !0
|
|
844
858
|
}, null, 8, ["modelValue"])
|
|
845
859
|
]),
|
|
846
860
|
_: 1
|
|
847
861
|
}),
|
|
848
|
-
|
|
862
|
+
a(B, {
|
|
849
863
|
label: "新密码",
|
|
850
864
|
prop: "newPassword"
|
|
851
865
|
}, {
|
|
852
|
-
default:
|
|
853
|
-
|
|
854
|
-
modelValue:
|
|
855
|
-
"onUpdate:modelValue":
|
|
866
|
+
default: i(() => [
|
|
867
|
+
a(K, {
|
|
868
|
+
modelValue: d.value.newPassword,
|
|
869
|
+
"onUpdate:modelValue": r[2] || (r[2] = (I) => d.value.newPassword = I),
|
|
856
870
|
type: "password",
|
|
857
|
-
"show-password": !0
|
|
858
|
-
|
|
871
|
+
"show-password": !0,
|
|
872
|
+
onFocus: r[3] || (r[3] = () => {
|
|
873
|
+
s.value.clearValidate(["newPassword"]), E.value = !0;
|
|
874
|
+
}),
|
|
875
|
+
onBlur: r[4] || (r[4] = (I) => E.value = !1)
|
|
876
|
+
}, null, 8, ["modelValue"]),
|
|
877
|
+
a(eo, {
|
|
878
|
+
ref_key: "PasswordPromptRef",
|
|
879
|
+
ref: w,
|
|
880
|
+
value: d.value.newPassword,
|
|
881
|
+
isFocus: E.value
|
|
882
|
+
}, null, 8, ["value", "isFocus"])
|
|
859
883
|
]),
|
|
860
884
|
_: 1
|
|
861
885
|
}),
|
|
862
|
-
|
|
886
|
+
a(B, {
|
|
863
887
|
label: "确认密码",
|
|
864
888
|
prop: "confirmPassword"
|
|
865
889
|
}, {
|
|
866
|
-
default:
|
|
867
|
-
|
|
868
|
-
modelValue:
|
|
869
|
-
"onUpdate:modelValue":
|
|
890
|
+
default: i(() => [
|
|
891
|
+
a(K, {
|
|
892
|
+
modelValue: d.value.confirmPassword,
|
|
893
|
+
"onUpdate:modelValue": r[5] || (r[5] = (I) => d.value.confirmPassword = I),
|
|
870
894
|
type: "password",
|
|
871
895
|
"show-password": !0
|
|
872
896
|
}, null, 8, ["modelValue"])
|
|
@@ -882,11 +906,11 @@ const jo = { class: "user" }, Qo = { key: 0 }, Xo = { class: "user-msg" }, Zo =
|
|
|
882
906
|
]);
|
|
883
907
|
};
|
|
884
908
|
}
|
|
885
|
-
},
|
|
909
|
+
}, on = /* @__PURE__ */ no(en, [["__scopeId", "data-v-7e945ac7"]]), kn = {
|
|
886
910
|
install(e) {
|
|
887
|
-
e.component("st-user",
|
|
911
|
+
e.component("st-user", on);
|
|
888
912
|
}
|
|
889
913
|
};
|
|
890
914
|
export {
|
|
891
|
-
|
|
915
|
+
kn as default
|
|
892
916
|
};
|