st-comp 0.0.143 → 0.0.144
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.js +2 -2
- package/es/ConfigProvider.cjs +1 -1
- package/es/ConfigProvider.js +28 -11
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +22 -24
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +28 -27
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +14 -14
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +24 -25
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +12 -12
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +16 -16
- package/es/Table.cjs +1 -1
- package/es/Table.js +16 -16
- package/es/User.cjs +1 -1
- package/es/User.js +510 -382
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +37 -36
- package/es/VirtualTable.js +10 -10
- package/es/_initCloneObject-14b53c6f.js +81 -0
- package/es/_initCloneObject-441db749.cjs +1 -0
- package/es/{base-3ecbc734.js → base-437d17f3.js} +25 -25
- package/es/{castArray-7d3fc921.js → castArray-4251bbe4.js} +1 -1
- package/es/{config-provider-83904b4d.js → config-provider-55482a43.js} +3 -3
- package/es/{debounce-7344b088.js → debounce-ac30be50.js} +14 -14
- package/es/{dropdown-7da44c8f.js → dropdown-634b5e27.js} +4 -4
- package/es/{dropdown-9a974876.cjs → dropdown-d7c59a21.cjs} +1 -1
- package/es/{el-button-24f79286.js → el-button-e1665717.js} +3 -3
- package/es/el-checkbox-group-492b95cc.cjs +1 -0
- package/es/el-checkbox-group-e8fece80.js +67 -0
- package/es/{el-empty-79c5f7a8.js → el-empty-bacc6613.js} +1 -1
- package/es/el-form-item-5bdffd07.cjs +12 -0
- package/es/el-form-item-af1855f0.js +1262 -0
- package/es/{el-input-6c6f5bda.cjs → el-input-23e2bac3.cjs} +1 -1
- package/es/{el-input-ee7db655.js → el-input-4961b99f.js} +71 -71
- package/es/{el-input-number-0524d787.cjs → el-input-number-40a81eb5.cjs} +1 -1
- package/es/{el-input-number-63c21037.js → el-input-number-610fc8ba.js} +24 -24
- package/es/{el-menu-item-dc904a35.cjs → el-menu-item-78b858f2.cjs} +1 -1
- package/es/{el-menu-item-0d92e7dc.js → el-menu-item-7d04c11a.js} +7 -7
- package/es/{el-message-71aa42ca.js → el-message-c3b3ac96.js} +16 -16
- package/es/{el-message-562e923d.cjs → el-message-d4df8136.cjs} +1 -1
- package/es/{el-overlay-6056c89a.js → el-overlay-12dd9b35.js} +140 -137
- package/es/el-overlay-bc0790a2.cjs +1 -0
- package/es/{el-popover-c8b2456c.js → el-popover-0aa071f2.js} +4 -4
- package/es/{el-popover-8735b1fa.cjs → el-popover-8a77e015.cjs} +1 -1
- package/es/el-popper-50100766.js +2262 -0
- package/es/el-popper-746070ba.cjs +1 -0
- package/es/{el-scrollbar-66f3bb72.js → el-scrollbar-562d0595.js} +11 -11
- package/es/{el-select-5fb7d469.js → el-select-9381b156.js} +55 -55
- package/es/el-select-b162dffc.cjs +1 -0
- package/es/{el-table-column-560db3aa.js → el-table-column-55bffba5.js} +1049 -1124
- package/es/el-table-column-6d761fce.cjs +14 -0
- package/es/el-tag-985d9aff.js +279 -0
- package/es/el-tag-c51a6490.cjs +1 -0
- package/es/{index-68ee64fa.js → index-09e01b1d.js} +7 -7
- package/es/{index-fa07a823.js → index-0cb48e01.js} +81 -78
- package/es/index-39ec9741.js +112 -0
- package/es/index-3bf8d597.cjs +1 -0
- package/es/index-a387515d.cjs +1 -0
- package/es/index-a902a0d9.js +59 -0
- package/es/index-deb8de52.cjs +1 -0
- package/es/{raf-377cf8f5.js → raf-b128c7b7.js} +1 -1
- package/es/{scroll-1efa8148.js → scroll-387fcfdb.js} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-9c0363ac.js → use-form-common-props-f377e500.js} +30 -30
- package/es/{vnode-cfcdab70.js → vnode-7dfd4ed5.js} +1 -1
- package/es/{zh-cn-4a476dc8.js → zh-cn-eb9c2820.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +141 -141
- package/lib/{index-a992391a.js → index-e7a32fed.js} +12131 -11996
- package/lib/{python-58a62aaf.js → python-ae8d98bd.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/ConfigProvider/index.vue +28 -0
- package/packages/User/index.vue +87 -1
- package/es/el-form-item-7d32befa.cjs +0 -12
- package/es/el-form-item-afc3dcf2.js +0 -1324
- package/es/el-overlay-891dcc40.cjs +0 -1
- package/es/el-popper-d3eef7ed.js +0 -2093
- package/es/el-popper-f62316cd.cjs +0 -1
- package/es/el-select-928f8c19.cjs +0 -1
- package/es/el-table-column-dd8b62aa.cjs +0 -14
- package/es/el-tag-3b03d13e.cjs +0 -1
- package/es/el-tag-6a31c968.js +0 -450
- package/es/event-09e37cc8.js +0 -6
- package/es/event-61f49698.cjs +0 -1
- package/es/index-80a2b137.cjs +0 -1
- package/es/index-a1ecf26c.js +0 -167
- package/es/index-e1e83173.cjs +0 -1
- package/es/refs-46cf8186.js +0 -9
- package/es/refs-d00b710b.cjs +0 -1
package/es/User.js
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
|
-
import { b as Fe, d as
|
|
2
|
-
import { E as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { E as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { _ as
|
|
13
|
-
import "./
|
|
1
|
+
import { b as Fe, d as oe, _ as V, u as te, x as Te, y as Re, e as ve, w as Se, v as we } from "./base-437d17f3.js";
|
|
2
|
+
import { d as ge, E as ke } from "./el-overlay-12dd9b35.js";
|
|
3
|
+
import { E as le } from "./el-button-e1665717.js";
|
|
4
|
+
import { E as Oe, a as De } from "./el-form-item-af1855f0.js";
|
|
5
|
+
import { E as Ne } from "./el-input-4961b99f.js";
|
|
6
|
+
import { c as K, d as Ke, E as Be, O as Le, w as pe } from "./el-popper-50100766.js";
|
|
7
|
+
import { b as Me } from "./el-scrollbar-562d0595.js";
|
|
8
|
+
import { defineComponent as U, ref as I, inject as R, computed as k, provide as Q, readonly as Ge, toRef as q, unref as P, watch as _e, renderSlot as G, resolveComponent as y, openBlock as O, createBlock as Y, withCtx as d, createVNode as u, normalizeProps as Ae, guardReactiveProps as Ve, getCurrentInstance as be, onBeforeUnmount as Ue, createElementBlock as A, normalizeClass as X, createSlots as ze, mergeProps as Z, createCommentVNode as ne, nextTick as Ye, Fragment as He, createElementVNode as j, withModifiers as x, resolveDynamicComponent as Je, normalizeStyle as qe, createTextVNode as J, toDisplayString as We, withKeys as je } from "vue";
|
|
9
|
+
import { E as re, g as Ee, a as Qe, s as Xe, t as Ze } from "./use-form-common-props-f377e500.js";
|
|
10
|
+
import { V as xe, A as eo, K as oo } from "./index-8542fe24.js";
|
|
11
|
+
import { E as no } from "./el-message-c3b3ac96.js";
|
|
12
|
+
import { _ as to } from "./_plugin-vue_export-helper-dad06003.js";
|
|
13
|
+
import { c as lo, E as ro, d as so, a as Ie, C as ao, b as io, e as uo, f as co, g as po, F as fo, L as mo } from "./dropdown-634b5e27.js";
|
|
14
|
+
import { E as D, F as vo } from "./index-0cb48e01.js";
|
|
15
|
+
import { c as wo } from "./castArray-4251bbe4.js";
|
|
16
|
+
import "./vnode-7dfd4ed5.js";
|
|
17
|
+
import "./scroll-387fcfdb.js";
|
|
18
|
+
import "./index-09e01b1d.js";
|
|
14
19
|
import "./index-657047bb.js";
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
import "./_initCloneObject-14b53c6f.js";
|
|
21
|
+
import "./typescript-7ae59c4c.js";
|
|
22
|
+
import "./index-a902a0d9.js";
|
|
23
|
+
import "./config-provider-55482a43.js";
|
|
24
|
+
const go = Fe({
|
|
25
|
+
style: { type: oe([String, Array, Object]) },
|
|
17
26
|
currentTabId: {
|
|
18
|
-
type:
|
|
27
|
+
type: oe(String)
|
|
19
28
|
},
|
|
20
29
|
defaultCurrentTabId: String,
|
|
21
30
|
loop: Boolean,
|
|
@@ -25,17 +34,17 @@ const co = Fe({
|
|
|
25
34
|
default: "ltr"
|
|
26
35
|
},
|
|
27
36
|
orientation: {
|
|
28
|
-
type:
|
|
37
|
+
type: oe(String)
|
|
29
38
|
},
|
|
30
39
|
onBlur: Function,
|
|
31
40
|
onFocus: Function,
|
|
32
41
|
onMousedown: Function
|
|
33
42
|
}), {
|
|
34
|
-
ElCollection:
|
|
35
|
-
ElCollectionItem:
|
|
36
|
-
COLLECTION_INJECTION_KEY:
|
|
37
|
-
COLLECTION_ITEM_INJECTION_KEY:
|
|
38
|
-
} =
|
|
43
|
+
ElCollection: _o,
|
|
44
|
+
ElCollectionItem: bo,
|
|
45
|
+
COLLECTION_INJECTION_KEY: se,
|
|
46
|
+
COLLECTION_ITEM_INJECTION_KEY: Eo
|
|
47
|
+
} = lo("RovingFocusGroup"), ae = Symbol("elRovingFocusGroup"), he = Symbol("elRovingFocusGroupItem"), Io = {
|
|
39
48
|
ArrowLeft: "prev",
|
|
40
49
|
ArrowUp: "prev",
|
|
41
50
|
ArrowRight: "next",
|
|
@@ -44,104 +53,104 @@ const co = Fe({
|
|
|
44
53
|
Home: "first",
|
|
45
54
|
PageDown: "last",
|
|
46
55
|
End: "last"
|
|
47
|
-
},
|
|
56
|
+
}, ho = (e, n) => {
|
|
48
57
|
if (n !== "rtl")
|
|
49
58
|
return e;
|
|
50
59
|
switch (e) {
|
|
51
|
-
case
|
|
52
|
-
return
|
|
53
|
-
case
|
|
54
|
-
return
|
|
60
|
+
case D.right:
|
|
61
|
+
return D.left;
|
|
62
|
+
case D.left:
|
|
63
|
+
return D.right;
|
|
55
64
|
default:
|
|
56
65
|
return e;
|
|
57
66
|
}
|
|
58
|
-
},
|
|
59
|
-
const
|
|
60
|
-
if (!(n === "vertical" && [
|
|
61
|
-
return
|
|
62
|
-
},
|
|
67
|
+
}, Co = (e, n, f) => {
|
|
68
|
+
const l = ho(e.code, f);
|
|
69
|
+
if (!(n === "vertical" && [D.left, D.right].includes(l)) && !(n === "horizontal" && [D.up, D.down].includes(l)))
|
|
70
|
+
return Io[l];
|
|
71
|
+
}, yo = (e, n) => e.map((f, l) => e[(l + n) % e.length]), ie = (e) => {
|
|
63
72
|
const { activeElement: n } = document;
|
|
64
|
-
for (const
|
|
65
|
-
if (
|
|
73
|
+
for (const f of e)
|
|
74
|
+
if (f === n || (f.focus(), n !== document.activeElement))
|
|
66
75
|
return;
|
|
67
|
-
},
|
|
76
|
+
}, fe = "currentTabIdChange", me = "rovingFocusGroup.entryFocus", Po = { bubbles: !1, cancelable: !0 }, $o = U({
|
|
68
77
|
name: "ElRovingFocusGroupImpl",
|
|
69
78
|
inheritAttrs: !1,
|
|
70
|
-
props:
|
|
71
|
-
emits: [
|
|
79
|
+
props: go,
|
|
80
|
+
emits: [fe, "entryFocus"],
|
|
72
81
|
setup(e, { emit: n }) {
|
|
73
|
-
var
|
|
74
|
-
const
|
|
82
|
+
var f;
|
|
83
|
+
const l = I((f = e.currentTabId || e.defaultCurrentTabId) != null ? f : null), v = I(!1), m = I(!1), c = I(null), { getItems: s } = R(se, void 0), a = k(() => [
|
|
75
84
|
{
|
|
76
85
|
outline: "none"
|
|
77
86
|
},
|
|
78
87
|
e.style
|
|
79
|
-
]),
|
|
80
|
-
n(
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
var
|
|
85
|
-
(
|
|
88
|
+
]), b = (i) => {
|
|
89
|
+
n(fe, i);
|
|
90
|
+
}, _ = () => {
|
|
91
|
+
v.value = !0;
|
|
92
|
+
}, E = K((i) => {
|
|
93
|
+
var t;
|
|
94
|
+
(t = e.onMousedown) == null || t.call(e, i);
|
|
86
95
|
}, () => {
|
|
87
|
-
|
|
88
|
-
}), h =
|
|
89
|
-
var
|
|
90
|
-
(
|
|
91
|
-
}, (
|
|
92
|
-
const
|
|
93
|
-
if (
|
|
94
|
-
const L = new Event(
|
|
95
|
-
if (
|
|
96
|
-
const
|
|
97
|
-
|
|
96
|
+
m.value = !0;
|
|
97
|
+
}), h = K((i) => {
|
|
98
|
+
var t;
|
|
99
|
+
(t = e.onFocus) == null || t.call(e, i);
|
|
100
|
+
}, (i) => {
|
|
101
|
+
const t = !P(m), { target: C, currentTarget: $ } = i;
|
|
102
|
+
if (C === $ && t && !P(v)) {
|
|
103
|
+
const L = new Event(me, Po);
|
|
104
|
+
if ($ == null || $.dispatchEvent(L), !L.defaultPrevented) {
|
|
105
|
+
const w = s().filter((S) => S.focusable), F = w.find((S) => S.active), g = w.find((S) => S.id === P(l)), B = [F, g, ...w].filter(Boolean).map((S) => S.ref);
|
|
106
|
+
ie(B);
|
|
98
107
|
}
|
|
99
108
|
}
|
|
100
|
-
|
|
101
|
-
}), o =
|
|
102
|
-
var
|
|
103
|
-
(
|
|
109
|
+
m.value = !1;
|
|
110
|
+
}), o = K((i) => {
|
|
111
|
+
var t;
|
|
112
|
+
(t = e.onBlur) == null || t.call(e, i);
|
|
104
113
|
}, () => {
|
|
105
|
-
|
|
106
|
-
}),
|
|
107
|
-
n("entryFocus", ...
|
|
114
|
+
v.value = !1;
|
|
115
|
+
}), p = (...i) => {
|
|
116
|
+
n("entryFocus", ...i);
|
|
108
117
|
};
|
|
109
|
-
|
|
110
|
-
currentTabbedId:
|
|
111
|
-
loop:
|
|
112
|
-
tabIndex:
|
|
113
|
-
rovingFocusGroupRef:
|
|
114
|
-
rovingFocusGroupRootStyle:
|
|
115
|
-
orientation:
|
|
116
|
-
dir:
|
|
117
|
-
onItemFocus:
|
|
118
|
-
onItemShiftTab:
|
|
118
|
+
Q(ae, {
|
|
119
|
+
currentTabbedId: Ge(l),
|
|
120
|
+
loop: q(e, "loop"),
|
|
121
|
+
tabIndex: k(() => P(v) ? -1 : 0),
|
|
122
|
+
rovingFocusGroupRef: c,
|
|
123
|
+
rovingFocusGroupRootStyle: a,
|
|
124
|
+
orientation: q(e, "orientation"),
|
|
125
|
+
dir: q(e, "dir"),
|
|
126
|
+
onItemFocus: b,
|
|
127
|
+
onItemShiftTab: _,
|
|
119
128
|
onBlur: o,
|
|
120
129
|
onFocus: h,
|
|
121
|
-
onMousedown:
|
|
122
|
-
}),
|
|
123
|
-
|
|
124
|
-
}),
|
|
130
|
+
onMousedown: E
|
|
131
|
+
}), _e(() => e.currentTabId, (i) => {
|
|
132
|
+
l.value = i ?? null;
|
|
133
|
+
}), Me(c, me, p);
|
|
125
134
|
}
|
|
126
135
|
});
|
|
127
|
-
function
|
|
128
|
-
return
|
|
136
|
+
function Fo(e, n, f, l, v, m) {
|
|
137
|
+
return G(e.$slots, "default");
|
|
129
138
|
}
|
|
130
|
-
var
|
|
131
|
-
const
|
|
139
|
+
var To = /* @__PURE__ */ V($o, [["render", Fo], ["__file", "roving-focus-group-impl.vue"]]);
|
|
140
|
+
const Ro = U({
|
|
132
141
|
name: "ElRovingFocusGroup",
|
|
133
142
|
components: {
|
|
134
|
-
ElFocusGroupCollection:
|
|
135
|
-
ElRovingFocusGroupImpl:
|
|
143
|
+
ElFocusGroupCollection: _o,
|
|
144
|
+
ElRovingFocusGroupImpl: To
|
|
136
145
|
}
|
|
137
146
|
});
|
|
138
|
-
function
|
|
139
|
-
const
|
|
140
|
-
return
|
|
141
|
-
default:
|
|
142
|
-
|
|
143
|
-
default:
|
|
144
|
-
|
|
147
|
+
function So(e, n, f, l, v, m) {
|
|
148
|
+
const c = y("el-roving-focus-group-impl"), s = y("el-focus-group-collection");
|
|
149
|
+
return O(), Y(s, null, {
|
|
150
|
+
default: d(() => [
|
|
151
|
+
u(c, Ae(Ve(e.$attrs)), {
|
|
152
|
+
default: d(() => [
|
|
153
|
+
G(e.$slots, "default")
|
|
145
154
|
]),
|
|
146
155
|
_: 3
|
|
147
156
|
}, 16)
|
|
@@ -149,126 +158,126 @@ function yo(e, n, s, t, u, a) {
|
|
|
149
158
|
_: 3
|
|
150
159
|
});
|
|
151
160
|
}
|
|
152
|
-
var
|
|
153
|
-
const
|
|
161
|
+
var ko = /* @__PURE__ */ V(Ro, [["render", So], ["__file", "roving-focus-group.vue"]]);
|
|
162
|
+
const ee = Symbol("elDropdown"), { ButtonGroup: Oo } = le, Do = U({
|
|
154
163
|
name: "ElDropdown",
|
|
155
164
|
components: {
|
|
156
|
-
ElButton:
|
|
157
|
-
ElButtonGroup:
|
|
158
|
-
ElScrollbar:
|
|
159
|
-
ElDropdownCollection:
|
|
160
|
-
ElTooltip:
|
|
161
|
-
ElRovingFocusGroup:
|
|
162
|
-
ElOnlyChild:
|
|
163
|
-
ElIcon:
|
|
164
|
-
ArrowDown:
|
|
165
|
+
ElButton: le,
|
|
166
|
+
ElButtonGroup: Oo,
|
|
167
|
+
ElScrollbar: Ke,
|
|
168
|
+
ElDropdownCollection: ro,
|
|
169
|
+
ElTooltip: Be,
|
|
170
|
+
ElRovingFocusGroup: ko,
|
|
171
|
+
ElOnlyChild: Le,
|
|
172
|
+
ElIcon: re,
|
|
173
|
+
ArrowDown: Ee
|
|
165
174
|
},
|
|
166
|
-
props:
|
|
175
|
+
props: so,
|
|
167
176
|
emits: ["visible-change", "click", "command"],
|
|
168
177
|
setup(e, { emit: n }) {
|
|
169
|
-
const
|
|
170
|
-
maxHeight:
|
|
171
|
-
})), o =
|
|
172
|
-
|
|
173
|
-
var
|
|
174
|
-
(
|
|
175
|
-
}, { immediate: !0 }),
|
|
176
|
-
var
|
|
177
|
-
(
|
|
178
|
+
const f = be(), l = te("dropdown"), { t: v } = Te(), m = I(), c = I(), s = I(null), a = I(null), b = I(null), _ = I(null), E = I(!1), h = k(() => ({
|
|
179
|
+
maxHeight: Re(e.maxHeight)
|
|
180
|
+
})), o = k(() => [l.m(w.value)]), p = k(() => wo(e.trigger)), i = ve().value, t = k(() => e.id || i);
|
|
181
|
+
_e([m, p], ([r, N], [z]) => {
|
|
182
|
+
var de, ue, ce;
|
|
183
|
+
(de = z == null ? void 0 : z.$el) != null && de.removeEventListener && z.$el.removeEventListener("pointerenter", g), (ue = r == null ? void 0 : r.$el) != null && ue.removeEventListener && r.$el.removeEventListener("pointerenter", g), (ce = r == null ? void 0 : r.$el) != null && ce.addEventListener && N.includes("hover") && r.$el.addEventListener("pointerenter", g);
|
|
184
|
+
}, { immediate: !0 }), Ue(() => {
|
|
185
|
+
var r, N;
|
|
186
|
+
(N = (r = m.value) == null ? void 0 : r.$el) != null && N.removeEventListener && m.value.$el.removeEventListener("pointerenter", g);
|
|
178
187
|
});
|
|
179
|
-
function
|
|
180
|
-
|
|
188
|
+
function C() {
|
|
189
|
+
$();
|
|
181
190
|
}
|
|
182
|
-
function
|
|
183
|
-
var
|
|
184
|
-
(
|
|
191
|
+
function $() {
|
|
192
|
+
var r;
|
|
193
|
+
(r = s.value) == null || r.onClose();
|
|
185
194
|
}
|
|
186
195
|
function L() {
|
|
187
|
-
var
|
|
188
|
-
(
|
|
196
|
+
var r;
|
|
197
|
+
(r = s.value) == null || r.onOpen();
|
|
189
198
|
}
|
|
190
|
-
const
|
|
191
|
-
function
|
|
192
|
-
n("command", ...
|
|
199
|
+
const w = Qe();
|
|
200
|
+
function F(...r) {
|
|
201
|
+
n("command", ...r);
|
|
193
202
|
}
|
|
194
|
-
function
|
|
195
|
-
var
|
|
196
|
-
(
|
|
203
|
+
function g() {
|
|
204
|
+
var r, N;
|
|
205
|
+
(N = (r = m.value) == null ? void 0 : r.$el) == null || N.focus();
|
|
197
206
|
}
|
|
198
207
|
function M() {
|
|
199
208
|
}
|
|
200
|
-
function
|
|
201
|
-
const
|
|
202
|
-
|
|
209
|
+
function B() {
|
|
210
|
+
const r = P(a);
|
|
211
|
+
p.value.includes("hover") && (r == null || r.focus()), _.value = null;
|
|
203
212
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
213
|
+
function S(r) {
|
|
214
|
+
_.value = r;
|
|
206
215
|
}
|
|
207
|
-
function
|
|
208
|
-
|
|
216
|
+
function T(r) {
|
|
217
|
+
E.value || (r.preventDefault(), r.stopImmediatePropagation());
|
|
209
218
|
}
|
|
210
|
-
function
|
|
219
|
+
function W() {
|
|
211
220
|
n("visible-change", !0);
|
|
212
221
|
}
|
|
213
|
-
function
|
|
214
|
-
(
|
|
222
|
+
function H(r) {
|
|
223
|
+
(r == null ? void 0 : r.type) === "keydown" && a.value.focus();
|
|
215
224
|
}
|
|
216
225
|
function $e() {
|
|
217
226
|
n("visible-change", !1);
|
|
218
227
|
}
|
|
219
|
-
return
|
|
220
|
-
contentRef:
|
|
221
|
-
role:
|
|
222
|
-
triggerId:
|
|
223
|
-
isUsingKeyboard:
|
|
228
|
+
return Q(ee, {
|
|
229
|
+
contentRef: a,
|
|
230
|
+
role: k(() => e.role),
|
|
231
|
+
triggerId: t,
|
|
232
|
+
isUsingKeyboard: E,
|
|
224
233
|
onItemEnter: M,
|
|
225
|
-
onItemLeave:
|
|
226
|
-
}),
|
|
227
|
-
instance:
|
|
228
|
-
dropdownSize:
|
|
229
|
-
handleClick:
|
|
230
|
-
commandHandler:
|
|
231
|
-
trigger:
|
|
232
|
-
hideOnClick:
|
|
234
|
+
onItemLeave: B
|
|
235
|
+
}), Q("elDropdown", {
|
|
236
|
+
instance: f,
|
|
237
|
+
dropdownSize: w,
|
|
238
|
+
handleClick: C,
|
|
239
|
+
commandHandler: F,
|
|
240
|
+
trigger: q(e, "trigger"),
|
|
241
|
+
hideOnClick: q(e, "hideOnClick")
|
|
233
242
|
}), {
|
|
234
|
-
t:
|
|
235
|
-
ns:
|
|
236
|
-
scrollbar:
|
|
243
|
+
t: v,
|
|
244
|
+
ns: l,
|
|
245
|
+
scrollbar: b,
|
|
237
246
|
wrapStyle: h,
|
|
238
247
|
dropdownTriggerKls: o,
|
|
239
|
-
dropdownSize:
|
|
240
|
-
triggerId:
|
|
241
|
-
currentTabId:
|
|
242
|
-
handleCurrentTabIdChange:
|
|
243
|
-
handlerMainButtonClick: (
|
|
244
|
-
n("click",
|
|
248
|
+
dropdownSize: w,
|
|
249
|
+
triggerId: t,
|
|
250
|
+
currentTabId: _,
|
|
251
|
+
handleCurrentTabIdChange: S,
|
|
252
|
+
handlerMainButtonClick: (r) => {
|
|
253
|
+
n("click", r);
|
|
245
254
|
},
|
|
246
|
-
handleEntryFocus:
|
|
247
|
-
handleClose:
|
|
255
|
+
handleEntryFocus: T,
|
|
256
|
+
handleClose: $,
|
|
248
257
|
handleOpen: L,
|
|
249
|
-
handleBeforeShowTooltip:
|
|
250
|
-
handleShowTooltip:
|
|
258
|
+
handleBeforeShowTooltip: W,
|
|
259
|
+
handleShowTooltip: H,
|
|
251
260
|
handleBeforeHideTooltip: $e,
|
|
252
|
-
onFocusAfterTrapped: (
|
|
253
|
-
var
|
|
254
|
-
|
|
261
|
+
onFocusAfterTrapped: (r) => {
|
|
262
|
+
var N, z;
|
|
263
|
+
r.preventDefault(), (z = (N = a.value) == null ? void 0 : N.focus) == null || z.call(N, {
|
|
255
264
|
preventScroll: !0
|
|
256
265
|
});
|
|
257
266
|
},
|
|
258
|
-
popperRef:
|
|
259
|
-
contentRef:
|
|
260
|
-
triggeringElementRef:
|
|
261
|
-
referenceElementRef:
|
|
267
|
+
popperRef: s,
|
|
268
|
+
contentRef: a,
|
|
269
|
+
triggeringElementRef: m,
|
|
270
|
+
referenceElementRef: c
|
|
262
271
|
};
|
|
263
272
|
}
|
|
264
273
|
});
|
|
265
|
-
function
|
|
266
|
-
var
|
|
267
|
-
const
|
|
268
|
-
return
|
|
269
|
-
class:
|
|
274
|
+
function No(e, n, f, l, v, m) {
|
|
275
|
+
var c;
|
|
276
|
+
const s = y("el-dropdown-collection"), a = y("el-roving-focus-group"), b = y("el-scrollbar"), _ = y("el-only-child"), E = y("el-tooltip"), h = y("el-button"), o = y("arrow-down"), p = y("el-icon"), i = y("el-button-group");
|
|
277
|
+
return O(), A("div", {
|
|
278
|
+
class: X([e.ns.b(), e.ns.is("disabled", e.disabled)])
|
|
270
279
|
}, [
|
|
271
|
-
|
|
280
|
+
u(E, {
|
|
272
281
|
ref: "popperRef",
|
|
273
282
|
role: e.role,
|
|
274
283
|
effect: e.effect,
|
|
@@ -279,7 +288,7 @@ function Ro(e, n, s, t, u, a) {
|
|
|
279
288
|
"manual-mode": !0,
|
|
280
289
|
placement: e.placement,
|
|
281
290
|
"popper-class": [e.ns.e("popper"), e.popperClass],
|
|
282
|
-
"reference-element": (
|
|
291
|
+
"reference-element": (c = e.referenceElementRef) == null ? void 0 : c.$el,
|
|
283
292
|
trigger: e.trigger,
|
|
284
293
|
"trigger-keys": e.triggerKeys,
|
|
285
294
|
"trigger-target-el": e.contentRef,
|
|
@@ -295,26 +304,26 @@ function Ro(e, n, s, t, u, a) {
|
|
|
295
304
|
onBeforeShow: e.handleBeforeShowTooltip,
|
|
296
305
|
onShow: e.handleShowTooltip,
|
|
297
306
|
onBeforeHide: e.handleBeforeHideTooltip
|
|
298
|
-
},
|
|
299
|
-
content:
|
|
300
|
-
|
|
307
|
+
}, ze({
|
|
308
|
+
content: d(() => [
|
|
309
|
+
u(b, {
|
|
301
310
|
ref: "scrollbar",
|
|
302
311
|
"wrap-style": e.wrapStyle,
|
|
303
312
|
tag: "div",
|
|
304
313
|
"view-class": e.ns.e("list")
|
|
305
314
|
}, {
|
|
306
|
-
default:
|
|
307
|
-
|
|
315
|
+
default: d(() => [
|
|
316
|
+
u(a, {
|
|
308
317
|
loop: e.loop,
|
|
309
318
|
"current-tab-id": e.currentTabId,
|
|
310
319
|
orientation: "horizontal",
|
|
311
320
|
onCurrentTabIdChange: e.handleCurrentTabIdChange,
|
|
312
321
|
onEntryFocus: e.handleEntryFocus
|
|
313
322
|
}, {
|
|
314
|
-
default:
|
|
315
|
-
|
|
316
|
-
default:
|
|
317
|
-
|
|
323
|
+
default: d(() => [
|
|
324
|
+
u(s, null, {
|
|
325
|
+
default: d(() => [
|
|
326
|
+
G(e.$slots, "dropdown")
|
|
318
327
|
]),
|
|
319
328
|
_: 3
|
|
320
329
|
})
|
|
@@ -329,36 +338,36 @@ function Ro(e, n, s, t, u, a) {
|
|
|
329
338
|
}, [
|
|
330
339
|
e.splitButton ? void 0 : {
|
|
331
340
|
name: "default",
|
|
332
|
-
fn:
|
|
333
|
-
|
|
341
|
+
fn: d(() => [
|
|
342
|
+
u(_, {
|
|
334
343
|
id: e.triggerId,
|
|
335
344
|
ref: "triggeringElementRef",
|
|
336
345
|
role: "button",
|
|
337
346
|
tabindex: e.tabindex
|
|
338
347
|
}, {
|
|
339
|
-
default:
|
|
340
|
-
|
|
348
|
+
default: d(() => [
|
|
349
|
+
G(e.$slots, "default")
|
|
341
350
|
]),
|
|
342
351
|
_: 3
|
|
343
352
|
}, 8, ["id", "tabindex"])
|
|
344
353
|
])
|
|
345
354
|
}
|
|
346
355
|
]), 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"]),
|
|
347
|
-
e.splitButton ? (
|
|
348
|
-
default:
|
|
349
|
-
|
|
356
|
+
e.splitButton ? (O(), Y(i, { key: 0 }, {
|
|
357
|
+
default: d(() => [
|
|
358
|
+
u(h, Z({ ref: "referenceElementRef" }, e.buttonProps, {
|
|
350
359
|
size: e.dropdownSize,
|
|
351
360
|
type: e.type,
|
|
352
361
|
disabled: e.disabled,
|
|
353
362
|
tabindex: e.tabindex,
|
|
354
363
|
onClick: e.handlerMainButtonClick
|
|
355
364
|
}), {
|
|
356
|
-
default:
|
|
357
|
-
|
|
365
|
+
default: d(() => [
|
|
366
|
+
G(e.$slots, "default")
|
|
358
367
|
]),
|
|
359
368
|
_: 3
|
|
360
369
|
}, 16, ["size", "type", "disabled", "tabindex", "onClick"]),
|
|
361
|
-
|
|
370
|
+
u(h, Z({
|
|
362
371
|
id: e.triggerId,
|
|
363
372
|
ref: "triggeringElementRef"
|
|
364
373
|
}, e.buttonProps, {
|
|
@@ -370,12 +379,12 @@ function Ro(e, n, s, t, u, a) {
|
|
|
370
379
|
tabindex: e.tabindex,
|
|
371
380
|
"aria-label": e.t("el.dropdown.toggleDropdown")
|
|
372
381
|
}), {
|
|
373
|
-
default:
|
|
374
|
-
|
|
375
|
-
class:
|
|
382
|
+
default: d(() => [
|
|
383
|
+
u(p, {
|
|
384
|
+
class: X(e.ns.e("icon"))
|
|
376
385
|
}, {
|
|
377
|
-
default:
|
|
378
|
-
|
|
386
|
+
default: d(() => [
|
|
387
|
+
u(o)
|
|
379
388
|
]),
|
|
380
389
|
_: 1
|
|
381
390
|
}, 8, ["class"])
|
|
@@ -384,13 +393,13 @@ function Ro(e, n, s, t, u, a) {
|
|
|
384
393
|
}, 16, ["id", "size", "type", "class", "disabled", "tabindex", "aria-label"])
|
|
385
394
|
]),
|
|
386
395
|
_: 3
|
|
387
|
-
})) :
|
|
396
|
+
})) : ne("v-if", !0)
|
|
388
397
|
], 2);
|
|
389
398
|
}
|
|
390
|
-
var
|
|
391
|
-
const
|
|
399
|
+
var Ko = /* @__PURE__ */ V(Do, [["render", No], ["__file", "dropdown.vue"]]);
|
|
400
|
+
const Bo = U({
|
|
392
401
|
components: {
|
|
393
|
-
ElRovingFocusCollectionItem:
|
|
402
|
+
ElRovingFocusCollectionItem: bo
|
|
394
403
|
},
|
|
395
404
|
props: {
|
|
396
405
|
focusable: {
|
|
@@ -404,203 +413,203 @@ const ko = K({
|
|
|
404
413
|
},
|
|
405
414
|
emits: ["mousedown", "focus", "keydown"],
|
|
406
415
|
setup(e, { emit: n }) {
|
|
407
|
-
const { currentTabbedId:
|
|
416
|
+
const { currentTabbedId: f, loop: l, onItemFocus: v, onItemShiftTab: m } = R(ae, void 0), { getItems: c } = R(se, void 0), s = ve(), a = I(null), b = K((o) => {
|
|
408
417
|
n("mousedown", o);
|
|
409
418
|
}, (o) => {
|
|
410
|
-
e.focusable ?
|
|
411
|
-
}),
|
|
419
|
+
e.focusable ? v(P(s)) : o.preventDefault();
|
|
420
|
+
}), _ = K((o) => {
|
|
412
421
|
n("focus", o);
|
|
413
422
|
}, () => {
|
|
414
|
-
|
|
415
|
-
}),
|
|
423
|
+
v(P(s));
|
|
424
|
+
}), E = K((o) => {
|
|
416
425
|
n("keydown", o);
|
|
417
426
|
}, (o) => {
|
|
418
|
-
const { code:
|
|
419
|
-
if (
|
|
420
|
-
|
|
427
|
+
const { code: p, shiftKey: i, target: t, currentTarget: C } = o;
|
|
428
|
+
if (p === D.tab && i) {
|
|
429
|
+
m();
|
|
421
430
|
return;
|
|
422
431
|
}
|
|
423
|
-
if (
|
|
432
|
+
if (t !== C)
|
|
424
433
|
return;
|
|
425
|
-
const
|
|
426
|
-
if (
|
|
434
|
+
const $ = Co(o);
|
|
435
|
+
if ($) {
|
|
427
436
|
o.preventDefault();
|
|
428
|
-
let
|
|
429
|
-
switch (
|
|
437
|
+
let w = c().filter((F) => F.focusable).map((F) => F.ref);
|
|
438
|
+
switch ($) {
|
|
430
439
|
case "last": {
|
|
431
|
-
|
|
440
|
+
w.reverse();
|
|
432
441
|
break;
|
|
433
442
|
}
|
|
434
443
|
case "prev":
|
|
435
444
|
case "next": {
|
|
436
|
-
|
|
437
|
-
const
|
|
438
|
-
|
|
445
|
+
$ === "prev" && w.reverse();
|
|
446
|
+
const F = w.indexOf(C);
|
|
447
|
+
w = l.value ? yo(w, F + 1) : w.slice(F + 1);
|
|
439
448
|
break;
|
|
440
449
|
}
|
|
441
450
|
}
|
|
442
|
-
|
|
443
|
-
|
|
451
|
+
Ye(() => {
|
|
452
|
+
ie(w);
|
|
444
453
|
});
|
|
445
454
|
}
|
|
446
|
-
}), h =
|
|
447
|
-
return
|
|
448
|
-
rovingFocusGroupItemRef:
|
|
449
|
-
tabIndex:
|
|
450
|
-
handleMousedown:
|
|
451
|
-
handleFocus:
|
|
452
|
-
handleKeydown:
|
|
455
|
+
}), h = k(() => f.value === P(s));
|
|
456
|
+
return Q(he, {
|
|
457
|
+
rovingFocusGroupItemRef: a,
|
|
458
|
+
tabIndex: k(() => P(h) ? 0 : -1),
|
|
459
|
+
handleMousedown: b,
|
|
460
|
+
handleFocus: _,
|
|
461
|
+
handleKeydown: E
|
|
453
462
|
}), {
|
|
454
|
-
id:
|
|
455
|
-
handleKeydown:
|
|
456
|
-
handleFocus:
|
|
457
|
-
handleMousedown:
|
|
463
|
+
id: s,
|
|
464
|
+
handleKeydown: E,
|
|
465
|
+
handleFocus: _,
|
|
466
|
+
handleMousedown: b
|
|
458
467
|
};
|
|
459
468
|
}
|
|
460
469
|
});
|
|
461
|
-
function
|
|
462
|
-
const
|
|
463
|
-
return
|
|
470
|
+
function Lo(e, n, f, l, v, m) {
|
|
471
|
+
const c = y("el-roving-focus-collection-item");
|
|
472
|
+
return O(), Y(c, {
|
|
464
473
|
id: e.id,
|
|
465
474
|
focusable: e.focusable,
|
|
466
475
|
active: e.active
|
|
467
476
|
}, {
|
|
468
|
-
default:
|
|
469
|
-
|
|
477
|
+
default: d(() => [
|
|
478
|
+
G(e.$slots, "default")
|
|
470
479
|
]),
|
|
471
480
|
_: 3
|
|
472
481
|
}, 8, ["id", "focusable", "active"]);
|
|
473
482
|
}
|
|
474
|
-
var
|
|
475
|
-
const
|
|
483
|
+
var Mo = /* @__PURE__ */ V(Bo, [["render", Lo], ["__file", "roving-focus-item.vue"]]);
|
|
484
|
+
const Go = U({
|
|
476
485
|
name: "DropdownItemImpl",
|
|
477
486
|
components: {
|
|
478
|
-
ElIcon:
|
|
487
|
+
ElIcon: re
|
|
479
488
|
},
|
|
480
|
-
props:
|
|
489
|
+
props: Ie,
|
|
481
490
|
emits: ["pointermove", "pointerleave", "click", "clickimpl"],
|
|
482
491
|
setup(e, { emit: n }) {
|
|
483
|
-
const
|
|
484
|
-
rovingFocusGroupItemRef:
|
|
485
|
-
tabIndex:
|
|
486
|
-
handleFocus:
|
|
487
|
-
handleKeydown:
|
|
488
|
-
handleMousedown:
|
|
489
|
-
} =
|
|
490
|
-
if ([
|
|
491
|
-
return
|
|
492
|
-
},
|
|
492
|
+
const f = te("dropdown"), { role: l } = R(ee, void 0), { collectionItemRef: v } = R(ao, void 0), { collectionItemRef: m } = R(Eo, void 0), {
|
|
493
|
+
rovingFocusGroupItemRef: c,
|
|
494
|
+
tabIndex: s,
|
|
495
|
+
handleFocus: a,
|
|
496
|
+
handleKeydown: b,
|
|
497
|
+
handleMousedown: _
|
|
498
|
+
} = R(he, void 0), E = ge(v, m, c), h = k(() => l.value === "menu" ? "menuitem" : l.value === "navigation" ? "link" : "button"), o = K((p) => {
|
|
499
|
+
if ([D.enter, D.numpadEnter, D.space].includes(p.code))
|
|
500
|
+
return p.preventDefault(), p.stopImmediatePropagation(), n("clickimpl", p), !0;
|
|
501
|
+
}, b);
|
|
493
502
|
return {
|
|
494
|
-
ns:
|
|
495
|
-
itemRef:
|
|
503
|
+
ns: f,
|
|
504
|
+
itemRef: E,
|
|
496
505
|
dataset: {
|
|
497
|
-
[
|
|
506
|
+
[io]: ""
|
|
498
507
|
},
|
|
499
508
|
role: h,
|
|
500
|
-
tabIndex:
|
|
501
|
-
handleFocus:
|
|
509
|
+
tabIndex: s,
|
|
510
|
+
handleFocus: a,
|
|
502
511
|
handleKeydown: o,
|
|
503
|
-
handleMousedown:
|
|
512
|
+
handleMousedown: _
|
|
504
513
|
};
|
|
505
514
|
}
|
|
506
515
|
});
|
|
507
|
-
function
|
|
508
|
-
const
|
|
509
|
-
return
|
|
510
|
-
e.divided ? (
|
|
516
|
+
function Ao(e, n, f, l, v, m) {
|
|
517
|
+
const c = y("el-icon");
|
|
518
|
+
return O(), A(He, null, [
|
|
519
|
+
e.divided ? (O(), A("li", {
|
|
511
520
|
key: 0,
|
|
512
521
|
role: "separator",
|
|
513
|
-
class:
|
|
514
|
-
}, null, 2)) :
|
|
515
|
-
|
|
522
|
+
class: X(e.ns.bem("menu", "item", "divided"))
|
|
523
|
+
}, null, 2)) : ne("v-if", !0),
|
|
524
|
+
j("li", Z({ ref: e.itemRef }, { ...e.dataset, ...e.$attrs }, {
|
|
516
525
|
"aria-disabled": e.disabled,
|
|
517
526
|
class: [e.ns.be("menu", "item"), e.ns.is("disabled", e.disabled)],
|
|
518
527
|
tabindex: e.tabIndex,
|
|
519
528
|
role: e.role,
|
|
520
|
-
onClick: (
|
|
529
|
+
onClick: (s) => e.$emit("clickimpl", s),
|
|
521
530
|
onFocus: e.handleFocus,
|
|
522
|
-
onKeydown:
|
|
531
|
+
onKeydown: x(e.handleKeydown, ["self"]),
|
|
523
532
|
onMousedown: e.handleMousedown,
|
|
524
|
-
onPointermove: (
|
|
525
|
-
onPointerleave: (
|
|
533
|
+
onPointermove: (s) => e.$emit("pointermove", s),
|
|
534
|
+
onPointerleave: (s) => e.$emit("pointerleave", s)
|
|
526
535
|
}), [
|
|
527
|
-
e.icon ? (
|
|
528
|
-
default:
|
|
529
|
-
(
|
|
536
|
+
e.icon ? (O(), Y(c, { key: 0 }, {
|
|
537
|
+
default: d(() => [
|
|
538
|
+
(O(), Y(Je(e.icon)))
|
|
530
539
|
]),
|
|
531
540
|
_: 1
|
|
532
|
-
})) :
|
|
533
|
-
|
|
541
|
+
})) : ne("v-if", !0),
|
|
542
|
+
G(e.$slots, "default")
|
|
534
543
|
], 16, ["aria-disabled", "tabindex", "role", "onClick", "onFocus", "onKeydown", "onMousedown", "onPointermove", "onPointerleave"])
|
|
535
544
|
], 64);
|
|
536
545
|
}
|
|
537
|
-
var
|
|
546
|
+
var Vo = /* @__PURE__ */ V(Go, [["render", Ao], ["__file", "dropdown-item-impl.vue"]]);
|
|
538
547
|
const Ce = () => {
|
|
539
|
-
const e =
|
|
548
|
+
const e = R("elDropdown", {}), n = k(() => e == null ? void 0 : e.dropdownSize);
|
|
540
549
|
return {
|
|
541
550
|
elDropdown: e,
|
|
542
551
|
_elDropdownSize: n
|
|
543
552
|
};
|
|
544
|
-
},
|
|
553
|
+
}, Uo = U({
|
|
545
554
|
name: "ElDropdownItem",
|
|
546
555
|
components: {
|
|
547
|
-
ElDropdownCollectionItem:
|
|
548
|
-
ElRovingFocusItem:
|
|
549
|
-
ElDropdownItemImpl:
|
|
556
|
+
ElDropdownCollectionItem: uo,
|
|
557
|
+
ElRovingFocusItem: Mo,
|
|
558
|
+
ElDropdownItemImpl: Vo
|
|
550
559
|
},
|
|
551
560
|
inheritAttrs: !1,
|
|
552
|
-
props:
|
|
561
|
+
props: Ie,
|
|
553
562
|
emits: ["pointermove", "pointerleave", "click"],
|
|
554
|
-
setup(e, { emit: n, attrs:
|
|
555
|
-
const { elDropdown:
|
|
556
|
-
var o,
|
|
557
|
-
return (
|
|
558
|
-
}), { onItemEnter:
|
|
563
|
+
setup(e, { emit: n, attrs: f }) {
|
|
564
|
+
const { elDropdown: l } = Ce(), v = be(), m = I(null), c = k(() => {
|
|
565
|
+
var o, p;
|
|
566
|
+
return (p = (o = P(m)) == null ? void 0 : o.textContent) != null ? p : "";
|
|
567
|
+
}), { onItemEnter: s, onItemLeave: a } = R(ee, void 0), b = K((o) => (n("pointermove", o), o.defaultPrevented), pe((o) => {
|
|
559
568
|
if (e.disabled) {
|
|
560
|
-
|
|
569
|
+
a(o);
|
|
561
570
|
return;
|
|
562
571
|
}
|
|
563
|
-
const
|
|
564
|
-
|
|
565
|
-
})),
|
|
572
|
+
const p = o.currentTarget;
|
|
573
|
+
p === document.activeElement || p.contains(document.activeElement) || (s(o), o.defaultPrevented || p == null || p.focus());
|
|
574
|
+
})), _ = K((o) => (n("pointerleave", o), o.defaultPrevented), pe(a)), E = K((o) => {
|
|
566
575
|
if (!e.disabled)
|
|
567
576
|
return n("click", o), o.type !== "keydown" && o.defaultPrevented;
|
|
568
577
|
}, (o) => {
|
|
569
|
-
var
|
|
578
|
+
var p, i, t;
|
|
570
579
|
if (e.disabled) {
|
|
571
580
|
o.stopImmediatePropagation();
|
|
572
581
|
return;
|
|
573
582
|
}
|
|
574
|
-
(
|
|
575
|
-
}), h =
|
|
583
|
+
(p = l == null ? void 0 : l.hideOnClick) != null && p.value && ((i = l.handleClick) == null || i.call(l)), (t = l.commandHandler) == null || t.call(l, e.command, v, o);
|
|
584
|
+
}), h = k(() => ({ ...e, ...f }));
|
|
576
585
|
return {
|
|
577
|
-
handleClick:
|
|
578
|
-
handlePointerMove:
|
|
579
|
-
handlePointerLeave:
|
|
580
|
-
textContent:
|
|
586
|
+
handleClick: E,
|
|
587
|
+
handlePointerMove: b,
|
|
588
|
+
handlePointerLeave: _,
|
|
589
|
+
textContent: c,
|
|
581
590
|
propsAndAttrs: h
|
|
582
591
|
};
|
|
583
592
|
}
|
|
584
593
|
});
|
|
585
|
-
function
|
|
586
|
-
var
|
|
587
|
-
const
|
|
588
|
-
return
|
|
594
|
+
function zo(e, n, f, l, v, m) {
|
|
595
|
+
var c;
|
|
596
|
+
const s = y("el-dropdown-item-impl"), a = y("el-roving-focus-item"), b = y("el-dropdown-collection-item");
|
|
597
|
+
return O(), Y(b, {
|
|
589
598
|
disabled: e.disabled,
|
|
590
|
-
"text-value": (
|
|
599
|
+
"text-value": (c = e.textValue) != null ? c : e.textContent
|
|
591
600
|
}, {
|
|
592
|
-
default:
|
|
593
|
-
|
|
601
|
+
default: d(() => [
|
|
602
|
+
u(a, {
|
|
594
603
|
focusable: !e.disabled
|
|
595
604
|
}, {
|
|
596
|
-
default:
|
|
597
|
-
|
|
605
|
+
default: d(() => [
|
|
606
|
+
u(s, Z(e.propsAndAttrs, {
|
|
598
607
|
onPointerleave: e.handlePointerLeave,
|
|
599
608
|
onPointermove: e.handlePointerMove,
|
|
600
609
|
onClickimpl: e.handleClick
|
|
601
610
|
}), {
|
|
602
|
-
default:
|
|
603
|
-
|
|
611
|
+
default: d(() => [
|
|
612
|
+
G(e.$slots, "default")
|
|
604
613
|
]),
|
|
605
614
|
_: 3
|
|
606
615
|
}, 16, ["onPointerleave", "onPointermove", "onClickimpl"])
|
|
@@ -611,67 +620,67 @@ function Lo(e, n, s, t, u, a) {
|
|
|
611
620
|
_: 3
|
|
612
621
|
}, 8, ["disabled", "text-value"]);
|
|
613
622
|
}
|
|
614
|
-
var ye = /* @__PURE__ */
|
|
615
|
-
const
|
|
623
|
+
var ye = /* @__PURE__ */ V(Uo, [["render", zo], ["__file", "dropdown-item.vue"]]);
|
|
624
|
+
const Yo = U({
|
|
616
625
|
name: "ElDropdownMenu",
|
|
617
|
-
props:
|
|
626
|
+
props: co,
|
|
618
627
|
setup(e) {
|
|
619
|
-
const n =
|
|
620
|
-
rovingFocusGroupRef:
|
|
628
|
+
const n = te("dropdown"), { _elDropdownSize: f } = Ce(), l = f.value, { focusTrapRef: v, onKeydown: m } = R(vo, void 0), { contentRef: c, role: s, triggerId: a } = R(ee, void 0), { collectionRef: b, getItems: _ } = R(po, void 0), {
|
|
629
|
+
rovingFocusGroupRef: E,
|
|
621
630
|
rovingFocusGroupRootStyle: h,
|
|
622
631
|
tabIndex: o,
|
|
623
|
-
onBlur:
|
|
624
|
-
onFocus:
|
|
625
|
-
onMousedown:
|
|
626
|
-
} =
|
|
632
|
+
onBlur: p,
|
|
633
|
+
onFocus: i,
|
|
634
|
+
onMousedown: t
|
|
635
|
+
} = R(ae, void 0), { collectionRef: C } = R(se, void 0), $ = k(() => [n.b("menu"), n.bm("menu", l == null ? void 0 : l.value)]), L = ge(c, b, v, E, C), w = K((g) => {
|
|
627
636
|
var M;
|
|
628
|
-
(M = e.onKeydown) == null || M.call(e,
|
|
629
|
-
}, (
|
|
630
|
-
const { currentTarget: M, code:
|
|
631
|
-
if (M.contains(
|
|
637
|
+
(M = e.onKeydown) == null || M.call(e, g);
|
|
638
|
+
}, (g) => {
|
|
639
|
+
const { currentTarget: M, code: B, target: S } = g;
|
|
640
|
+
if (M.contains(S), D.tab === B && g.stopImmediatePropagation(), g.preventDefault(), S !== P(c) || !fo.includes(B))
|
|
632
641
|
return;
|
|
633
|
-
const
|
|
634
|
-
|
|
642
|
+
const W = _().filter((H) => !H.disabled).map((H) => H.ref);
|
|
643
|
+
mo.includes(B) && W.reverse(), ie(W);
|
|
635
644
|
});
|
|
636
645
|
return {
|
|
637
|
-
size:
|
|
646
|
+
size: l,
|
|
638
647
|
rovingFocusGroupRootStyle: h,
|
|
639
648
|
tabIndex: o,
|
|
640
|
-
dropdownKls:
|
|
641
|
-
role:
|
|
642
|
-
triggerId:
|
|
649
|
+
dropdownKls: $,
|
|
650
|
+
role: s,
|
|
651
|
+
triggerId: a,
|
|
643
652
|
dropdownListWrapperRef: L,
|
|
644
|
-
handleKeydown: (
|
|
645
|
-
|
|
653
|
+
handleKeydown: (g) => {
|
|
654
|
+
w(g), m(g);
|
|
646
655
|
},
|
|
647
|
-
onBlur:
|
|
648
|
-
onFocus:
|
|
649
|
-
onMousedown:
|
|
656
|
+
onBlur: p,
|
|
657
|
+
onFocus: i,
|
|
658
|
+
onMousedown: t
|
|
650
659
|
};
|
|
651
660
|
}
|
|
652
661
|
});
|
|
653
|
-
function
|
|
654
|
-
return
|
|
662
|
+
function Ho(e, n, f, l, v, m) {
|
|
663
|
+
return O(), A("ul", {
|
|
655
664
|
ref: e.dropdownListWrapperRef,
|
|
656
|
-
class:
|
|
657
|
-
style:
|
|
665
|
+
class: X(e.dropdownKls),
|
|
666
|
+
style: qe(e.rovingFocusGroupRootStyle),
|
|
658
667
|
tabindex: -1,
|
|
659
668
|
role: e.role,
|
|
660
669
|
"aria-labelledby": e.triggerId,
|
|
661
670
|
onBlur: e.onBlur,
|
|
662
671
|
onFocus: e.onFocus,
|
|
663
|
-
onKeydown:
|
|
664
|
-
onMousedown:
|
|
672
|
+
onKeydown: x(e.handleKeydown, ["self"]),
|
|
673
|
+
onMousedown: x(e.onMousedown, ["self"])
|
|
665
674
|
}, [
|
|
666
|
-
|
|
675
|
+
G(e.$slots, "default")
|
|
667
676
|
], 46, ["role", "aria-labelledby", "onBlur", "onFocus", "onKeydown", "onMousedown"]);
|
|
668
677
|
}
|
|
669
|
-
var
|
|
670
|
-
const
|
|
678
|
+
var Pe = /* @__PURE__ */ V(Yo, [["render", Ho], ["__file", "dropdown-menu.vue"]]);
|
|
679
|
+
const Jo = Se(Ko, {
|
|
671
680
|
DropdownItem: ye,
|
|
672
|
-
DropdownMenu:
|
|
673
|
-
}),
|
|
674
|
-
const
|
|
681
|
+
DropdownMenu: Pe
|
|
682
|
+
}), qo = we(ye), Wo = we(Pe);
|
|
683
|
+
const jo = { class: "user" }, Qo = { key: 0 }, Xo = { class: "user-msg" }, Zo = { class: "dialog-footer" }, xo = {
|
|
675
684
|
__name: "index",
|
|
676
685
|
props: {
|
|
677
686
|
config: {
|
|
@@ -682,24 +691,59 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
|
|
|
682
691
|
},
|
|
683
692
|
emits: ["loginout"],
|
|
684
693
|
setup(e, { emit: n }) {
|
|
685
|
-
const
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
694
|
+
const f = R("stConfig"), l = xe(), v = n, m = e, c = I(null), s = I(!1), a = I({
|
|
695
|
+
oldPassword: "",
|
|
696
|
+
newPassword: "",
|
|
697
|
+
confirmPassword: ""
|
|
698
|
+
}), _ = I({
|
|
699
|
+
oldPassword: [{ required: !0, message: "请输入原密码", trigger: "blur" }],
|
|
700
|
+
newPassword: [{ required: !0, message: "请输入新密码", trigger: "blur" }],
|
|
701
|
+
confirmPassword: [
|
|
702
|
+
{ required: !0, message: "请输入确认密码", trigger: "blur" },
|
|
703
|
+
{ validator: (i, t, C) => {
|
|
704
|
+
t === "" ? C(new Error("请输入确认密码")) : t !== a.value.newPassword ? C(new Error("两次输入密码不一致!")) : C();
|
|
705
|
+
}, trigger: "blur" }
|
|
706
|
+
]
|
|
707
|
+
}), E = () => {
|
|
708
|
+
const { loginUrl: i } = m.config || {};
|
|
709
|
+
eo(i);
|
|
710
|
+
}, h = () => {
|
|
711
|
+
const { loginoutToLogin: i, loginoutUrl: t } = m.config || {};
|
|
712
|
+
oo(i, t), v("loginout");
|
|
713
|
+
}, o = () => {
|
|
714
|
+
c.value.validate(async (i, t) => {
|
|
715
|
+
i && (await f.request.post("/invest/sys/user/password", {
|
|
716
|
+
password: a.value.oldPassword,
|
|
717
|
+
newPassword: a.value.newPassword,
|
|
718
|
+
newPassword2: a.value.confirmPassword
|
|
719
|
+
}), no.success("修改成功!"), s.value = !1);
|
|
720
|
+
});
|
|
721
|
+
}, p = () => {
|
|
722
|
+
a.value = {
|
|
723
|
+
oldPassword: "",
|
|
724
|
+
newPassword: "",
|
|
725
|
+
confirmPassword: ""
|
|
726
|
+
}, c.value.resetFields();
|
|
691
727
|
};
|
|
692
|
-
return (
|
|
693
|
-
const
|
|
694
|
-
return
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
dropdown:
|
|
698
|
-
|
|
699
|
-
default:
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
728
|
+
return (i, t) => {
|
|
729
|
+
const C = re, $ = qo, L = Wo, w = Jo, F = Ne, g = Oe, M = De, B = le, S = ke;
|
|
730
|
+
return O(), A("div", jo, [
|
|
731
|
+
P(l) ? (O(), A("div", Qo, [
|
|
732
|
+
u(w, { placement: "bottom" }, {
|
|
733
|
+
dropdown: d(() => [
|
|
734
|
+
u(L, null, {
|
|
735
|
+
default: d(() => [
|
|
736
|
+
u($, {
|
|
737
|
+
onClick: t[0] || (t[0] = (T) => s.value = !0)
|
|
738
|
+
}, {
|
|
739
|
+
default: d(() => [
|
|
740
|
+
J("修改密码")
|
|
741
|
+
]),
|
|
742
|
+
_: 1
|
|
743
|
+
}),
|
|
744
|
+
u($, { onClick: h }, {
|
|
745
|
+
default: d(() => [
|
|
746
|
+
J("退出登录")
|
|
703
747
|
]),
|
|
704
748
|
_: 1
|
|
705
749
|
})
|
|
@@ -707,20 +751,20 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
|
|
|
707
751
|
_: 1
|
|
708
752
|
})
|
|
709
753
|
]),
|
|
710
|
-
default:
|
|
711
|
-
var
|
|
754
|
+
default: d(() => {
|
|
755
|
+
var T;
|
|
712
756
|
return [
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
default:
|
|
716
|
-
|
|
757
|
+
j("div", Xo, [
|
|
758
|
+
u(C, { class: "user-msg-icon" }, {
|
|
759
|
+
default: d(() => [
|
|
760
|
+
u(P(Xe))
|
|
717
761
|
]),
|
|
718
762
|
_: 1
|
|
719
763
|
}),
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
default:
|
|
723
|
-
|
|
764
|
+
j("span", null, We((T = P(l)) == null ? void 0 : T.username), 1),
|
|
765
|
+
u(C, { class: "user-msg-arrow" }, {
|
|
766
|
+
default: d(() => [
|
|
767
|
+
u(P(Ee))
|
|
724
768
|
]),
|
|
725
769
|
_: 1
|
|
726
770
|
})
|
|
@@ -729,28 +773,112 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
|
|
|
729
773
|
}),
|
|
730
774
|
_: 1
|
|
731
775
|
})
|
|
732
|
-
])) : (
|
|
776
|
+
])) : (O(), A("div", {
|
|
733
777
|
key: 1,
|
|
734
778
|
class: "user-login",
|
|
735
|
-
onClick:
|
|
779
|
+
onClick: E
|
|
736
780
|
}, [
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
default:
|
|
740
|
-
|
|
781
|
+
J(" 前往登录 "),
|
|
782
|
+
u(C, { class: "user-login-icon" }, {
|
|
783
|
+
default: d(() => [
|
|
784
|
+
u(P(Ze))
|
|
741
785
|
]),
|
|
742
786
|
_: 1
|
|
743
787
|
})
|
|
744
|
-
]))
|
|
788
|
+
])),
|
|
789
|
+
u(S, {
|
|
790
|
+
modelValue: s.value,
|
|
791
|
+
"onUpdate:modelValue": t[5] || (t[5] = (T) => s.value = T),
|
|
792
|
+
title: "修改密码",
|
|
793
|
+
width: "500",
|
|
794
|
+
"z-index": 200,
|
|
795
|
+
onClosed: p
|
|
796
|
+
}, {
|
|
797
|
+
footer: d(() => [
|
|
798
|
+
j("div", Zo, [
|
|
799
|
+
u(B, {
|
|
800
|
+
onClick: t[4] || (t[4] = (T) => s.value = !1)
|
|
801
|
+
}, {
|
|
802
|
+
default: d(() => [
|
|
803
|
+
J("取消")
|
|
804
|
+
]),
|
|
805
|
+
_: 1
|
|
806
|
+
}),
|
|
807
|
+
u(B, {
|
|
808
|
+
type: "primary",
|
|
809
|
+
onClick: o
|
|
810
|
+
}, {
|
|
811
|
+
default: d(() => [
|
|
812
|
+
J(" 修改 ")
|
|
813
|
+
]),
|
|
814
|
+
_: 1
|
|
815
|
+
})
|
|
816
|
+
])
|
|
817
|
+
]),
|
|
818
|
+
default: d(() => [
|
|
819
|
+
u(M, {
|
|
820
|
+
ref_key: "changePasswordFormRef",
|
|
821
|
+
ref: c,
|
|
822
|
+
model: a.value,
|
|
823
|
+
rules: _.value,
|
|
824
|
+
onSubmit: x(o, ["prevent"]),
|
|
825
|
+
onKeyup: je(o, ["enter", "native"]),
|
|
826
|
+
"label-width": "auto"
|
|
827
|
+
}, {
|
|
828
|
+
default: d(() => [
|
|
829
|
+
u(g, {
|
|
830
|
+
label: "原密码",
|
|
831
|
+
prop: "oldPassword"
|
|
832
|
+
}, {
|
|
833
|
+
default: d(() => [
|
|
834
|
+
u(F, {
|
|
835
|
+
modelValue: a.value.oldPassword,
|
|
836
|
+
"onUpdate:modelValue": t[1] || (t[1] = (T) => a.value.oldPassword = T),
|
|
837
|
+
type: "password"
|
|
838
|
+
}, null, 8, ["modelValue"])
|
|
839
|
+
]),
|
|
840
|
+
_: 1
|
|
841
|
+
}),
|
|
842
|
+
u(g, {
|
|
843
|
+
label: "新密码",
|
|
844
|
+
prop: "newPassword"
|
|
845
|
+
}, {
|
|
846
|
+
default: d(() => [
|
|
847
|
+
u(F, {
|
|
848
|
+
modelValue: a.value.newPassword,
|
|
849
|
+
"onUpdate:modelValue": t[2] || (t[2] = (T) => a.value.newPassword = T),
|
|
850
|
+
type: "password"
|
|
851
|
+
}, null, 8, ["modelValue"])
|
|
852
|
+
]),
|
|
853
|
+
_: 1
|
|
854
|
+
}),
|
|
855
|
+
u(g, {
|
|
856
|
+
label: "确认密码",
|
|
857
|
+
prop: "confirmPassword"
|
|
858
|
+
}, {
|
|
859
|
+
default: d(() => [
|
|
860
|
+
u(F, {
|
|
861
|
+
modelValue: a.value.confirmPassword,
|
|
862
|
+
"onUpdate:modelValue": t[3] || (t[3] = (T) => a.value.confirmPassword = T),
|
|
863
|
+
type: "password"
|
|
864
|
+
}, null, 8, ["modelValue"])
|
|
865
|
+
]),
|
|
866
|
+
_: 1
|
|
867
|
+
})
|
|
868
|
+
]),
|
|
869
|
+
_: 1
|
|
870
|
+
}, 8, ["model", "rules"])
|
|
871
|
+
]),
|
|
872
|
+
_: 1
|
|
873
|
+
}, 8, ["modelValue"])
|
|
745
874
|
]);
|
|
746
875
|
};
|
|
747
876
|
}
|
|
748
|
-
})
|
|
749
|
-
const Wo = /* @__PURE__ */ uo(Jo, [["__scopeId", "data-v-b83bf27d"]]), cn = {
|
|
877
|
+
}, en = /* @__PURE__ */ to(xo, [["__scopeId", "data-v-fcebd320"]]), Fn = {
|
|
750
878
|
install(e) {
|
|
751
|
-
e.component("st-user",
|
|
879
|
+
e.component("st-user", en);
|
|
752
880
|
}
|
|
753
881
|
};
|
|
754
882
|
export {
|
|
755
|
-
|
|
883
|
+
Fn as default
|
|
756
884
|
};
|