st-comp 0.0.115 → 0.0.116
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/auto-imports.d.ts +1 -0
- package/components.d.ts +1 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +11 -11
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +1070 -272
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +13 -13
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +12 -12
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +30 -30
- package/es/Pie.cjs +1 -1
- package/es/Pie.js +1 -1
- package/es/Table.cjs +1 -1
- package/es/Table.js +31 -31
- package/es/User.cjs +1 -1
- package/es/User.js +84 -84
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +1116 -936
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +56 -56
- package/es/base-ec05f348.cjs +9 -0
- package/es/{base-a3fcf99a.js → base-f7877059.js} +345 -328
- package/es/{castArray-0e8e51f9.js → castArray-18f43497.js} +1 -1
- package/es/{castArray-e6cd255c.cjs → castArray-a45823fe.cjs} +1 -1
- package/es/{config-provider-e4ebacca.js → config-provider-6479d795.js} +6 -6
- package/es/{config-provider-957c280a.cjs → config-provider-7cdfca4d.cjs} +1 -1
- package/es/{debounce-7f3a3471.js → debounce-2336e546.js} +14 -14
- package/es/{debounce-3ad03224.cjs → debounce-b2ff12bd.cjs} +1 -1
- package/es/{dropdown-c505d260.js → dropdown-46daf582.js} +4 -4
- package/es/{dropdown-e73864c0.cjs → dropdown-9a974876.cjs} +1 -1
- package/es/{el-button-e389429d.cjs → el-button-196807af.cjs} +1 -1
- package/es/{el-button-fe99fee6.js → el-button-802f579a.js} +6 -6
- package/es/{el-empty-848e4e08.cjs → el-empty-19ea04f4.cjs} +1 -1
- package/es/{el-empty-a338aa98.js → el-empty-3c5ec277.js} +5 -5
- package/es/el-form-item-84099d46.js +1599 -0
- package/es/el-form-item-c39f717e.cjs +12 -0
- package/es/{el-input-65ed0dba.cjs → el-input-6c6f5bda.cjs} +1 -1
- package/es/{el-input-35c8ebc3.js → el-input-fac5b401.js} +39 -39
- package/es/{el-overlay-851ea246.js → el-overlay-69e9ae49.js} +105 -101
- package/es/el-overlay-891dcc40.cjs +1 -0
- package/es/{el-popover-246eb710.js → el-popover-694ded47.js} +22 -22
- package/es/{el-popover-b0deb095.cjs → el-popover-8735b1fa.cjs} +1 -1
- package/es/{el-popper-e052fb84.js → el-popper-6126b1f6.js} +91 -91
- package/es/{el-popper-4da22fdc.cjs → el-popper-f62316cd.cjs} +1 -1
- package/es/el-scrollbar-d1c3e7f7.cjs +1 -0
- package/es/el-scrollbar-e0493906.js +201 -0
- package/es/el-select-513126a5.js +1128 -0
- package/es/el-select-928f8c19.cjs +1 -0
- package/es/{el-table-column-661deade.js → el-table-column-3c920bdd.js} +69 -69
- package/es/{el-table-column-d636a7d6.cjs → el-table-column-dd8b62aa.cjs} +1 -1
- package/es/{el-tag-a45bdd1e.cjs → el-tag-3b03d13e.cjs} +1 -1
- package/es/{el-tag-7601f7e6.js → el-tag-5becabc9.js} +74 -74
- package/es/index-048dca7e.js +303 -0
- package/es/{index-28cd5fde.js → index-35117549.js} +25 -25
- package/es/{index-fc652f21.js → index-57f8f7b9.js} +15 -1
- package/es/index-7e40be25.js +167 -0
- package/es/index-80a2b137.cjs +1 -0
- package/es/{index-35665af5.cjs → index-8a0b1c53.cjs} +1 -1
- package/es/{index-25aca205.cjs → index-dc273ea2.cjs} +1 -1
- package/es/index-e1e83173.cjs +1 -0
- package/es/{raf-a97e05a3.js → raf-07da7cdf.js} +1 -1
- package/es/{raf-da075499.cjs → raf-8fc301fd.cjs} +1 -1
- package/es/{refs-f0ee592c.js → refs-1b1fe6ca.js} +1 -1
- package/es/{refs-34a69f8c.cjs → refs-d00b710b.cjs} +1 -1
- package/es/{scroll-1e0c8fab.js → scroll-3b521d81.js} +1 -1
- package/es/{scroll-c7ef9180.cjs → scroll-41224831.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-96d2ea48.cjs → use-form-common-props-1b84d8f4.cjs} +1 -1
- package/es/{use-form-common-props-d0739feb.js → use-form-common-props-f3a520d0.js} +53 -53
- package/es/{vnode-8f40662d.js → vnode-25d7c2f5.js} +1 -1
- package/es/{vnode-562e063c.cjs → vnode-7fbc61e1.cjs} +1 -1
- package/es/{zh-cn-0ab4aa73.js → zh-cn-74781bbd.js} +2 -2
- package/es/{zh-cn-bf58db71.cjs → zh-cn-ab9a583d.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +192 -192
- package/lib/{index-a981dd97.js → index-c6ba3bcd.js} +30058 -29227
- package/lib/{python-72fd599d.js → python-49e22e65.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/FactorWarning/index.vue +296 -97
- package/packages/FactorWarning/tools.js +10 -0
- package/src/pages/FactorWarning/index.vue +69 -25
- package/es/base-adc4e34e.cjs +0 -9
- package/es/el-overlay-84e3cb6c.cjs +0 -1
- package/es/el-radio-button-12b07ac2.js +0 -1782
- package/es/el-radio-button-5259a46b.cjs +0 -12
- package/es/el-scrollbar-8cb3663b.cjs +0 -1
- package/es/el-scrollbar-c23060d5.js +0 -193
- package/es/el-select-4987a187.cjs +0 -1
- package/es/el-select-d1a33fbe.js +0 -1233
- package/es/index-4090cb2c.cjs +0 -1
- package/es/index-af687c16.js +0 -302
- package/es/index-b4bbc58d.js +0 -59
- package/es/index-f14354e6.cjs +0 -1
package/es/User.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { b as Fe, d as X, _ as z, u as oe,
|
|
2
|
-
import { E as _e } from "./el-button-
|
|
3
|
-
import { c as P,
|
|
4
|
-
import {
|
|
5
|
-
import { defineComponent as K, ref as $, inject as y, computed as T, provide as
|
|
6
|
-
import { E as ne,
|
|
7
|
-
import { V as
|
|
8
|
-
import { c as Xe, E as Ze, d as xe, a as he, C as eo, b as oo, e as no, f as to, g as
|
|
9
|
-
import { E as R, F as io } from "./index-
|
|
10
|
-
import { c as ao } from "./castArray-
|
|
11
|
-
import { c as Ie } from "./refs-
|
|
1
|
+
import { b as Fe, d as X, _ as z, u as oe, x as Re, y as Se, e as me, w as ke, v as ve } from "./base-f7877059.js";
|
|
2
|
+
import { E as _e } from "./el-button-802f579a.js";
|
|
3
|
+
import { c as P, d as Oe, E as De, O as Pe, w as ue } from "./el-popper-6126b1f6.js";
|
|
4
|
+
import { b as Ne } from "./el-scrollbar-e0493906.js";
|
|
5
|
+
import { defineComponent as K, ref as $, inject as y, computed as T, provide as W, readonly as Be, toRef as H, unref as E, watch as ge, renderSlot as N, resolveComponent as I, openBlock as F, createBlock as V, withCtx as p, createVNode as m, normalizeProps as Ke, guardReactiveProps as Le, getCurrentInstance as we, onBeforeUnmount as Me, createElementBlock as A, normalizeClass as j, createSlots as Ge, mergeProps as q, createCommentVNode as Z, nextTick as Ae, Fragment as ze, createElementVNode as x, withModifiers as ee, resolveDynamicComponent as Ue, normalizeStyle as Ve, createTextVNode as ce, toDisplayString as Ye } from "vue";
|
|
6
|
+
import { E as ne, g as be, a as He, s as Je, t as We } from "./use-form-common-props-f3a520d0.js";
|
|
7
|
+
import { V as je, A as qe, K as Qe } from "./index-57f8f7b9.js";
|
|
8
|
+
import { c as Xe, E as Ze, d as xe, a as he, C as eo, b as oo, e as no, f as to, g as lo, F as ro, L as so } from "./dropdown-46daf582.js";
|
|
9
|
+
import { E as R, F as io } from "./index-048dca7e.js";
|
|
10
|
+
import { c as ao } from "./castArray-18f43497.js";
|
|
11
|
+
import { c as Ie } from "./refs-1b1fe6ca.js";
|
|
12
12
|
import { _ as uo } from "./_plugin-vue_export-helper-dad06003.js";
|
|
13
|
-
import "./index-
|
|
13
|
+
import "./index-35117549.js";
|
|
14
14
|
import "./index-657047bb.js";
|
|
15
15
|
const co = Fe({
|
|
16
16
|
style: { type: X([String, Array, Object]) },
|
|
@@ -35,7 +35,7 @@ const co = Fe({
|
|
|
35
35
|
ElCollectionItem: fo,
|
|
36
36
|
COLLECTION_INJECTION_KEY: te,
|
|
37
37
|
COLLECTION_ITEM_INJECTION_KEY: mo
|
|
38
|
-
} = Xe("RovingFocusGroup"),
|
|
38
|
+
} = Xe("RovingFocusGroup"), le = Symbol("elRovingFocusGroup"), Ee = Symbol("elRovingFocusGroupItem"), vo = {
|
|
39
39
|
ArrowLeft: "prev",
|
|
40
40
|
ArrowUp: "prev",
|
|
41
41
|
ArrowRight: "next",
|
|
@@ -59,7 +59,7 @@ const co = Fe({
|
|
|
59
59
|
const t = _o(e.code, s);
|
|
60
60
|
if (!(n === "vertical" && [R.left, R.right].includes(t)) && !(n === "horizontal" && [R.up, R.down].includes(t)))
|
|
61
61
|
return vo[t];
|
|
62
|
-
}, wo = (e, n) => e.map((s, t) => e[(t + n) % e.length]),
|
|
62
|
+
}, wo = (e, n) => e.map((s, t) => e[(t + n) % e.length]), re = (e) => {
|
|
63
63
|
const { activeElement: n } = document;
|
|
64
64
|
for (const s of e)
|
|
65
65
|
if (s === n || (s.focus(), n !== document.activeElement))
|
|
@@ -71,7 +71,7 @@ const co = Fe({
|
|
|
71
71
|
emits: [pe, "entryFocus"],
|
|
72
72
|
setup(e, { emit: n }) {
|
|
73
73
|
var s;
|
|
74
|
-
const t = $((s = e.currentTabId || e.defaultCurrentTabId) != null ? s : null), u = $(!1), a = $(!1), i = $(null), { getItems:
|
|
74
|
+
const t = $((s = e.currentTabId || e.defaultCurrentTabId) != null ? s : null), u = $(!1), a = $(!1), i = $(null), { getItems: r } = y(te, void 0), f = T(() => [
|
|
75
75
|
{
|
|
76
76
|
outline: "none"
|
|
77
77
|
},
|
|
@@ -93,8 +93,8 @@ const co = Fe({
|
|
|
93
93
|
if (B === S && _ && !E(u)) {
|
|
94
94
|
const L = new Event(fe, bo);
|
|
95
95
|
if (S == null || S.dispatchEvent(L), !L.defaultPrevented) {
|
|
96
|
-
const b =
|
|
97
|
-
|
|
96
|
+
const b = r().filter((k) => k.focusable), O = b.find((k) => k.active), C = b.find((k) => k.id === E(t)), G = [O, C, ...b].filter(Boolean).map((k) => k.ref);
|
|
97
|
+
re(G);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
a.value = !1;
|
|
@@ -106,7 +106,7 @@ const co = Fe({
|
|
|
106
106
|
}), d = (...c) => {
|
|
107
107
|
n("entryFocus", ...c);
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
W(le, {
|
|
110
110
|
currentTabbedId: Be(t),
|
|
111
111
|
loop: H(e, "loop"),
|
|
112
112
|
tabIndex: T(() => E(u) ? -1 : 0),
|
|
@@ -136,8 +136,8 @@ const Co = K({
|
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
function yo(e, n, s, t, u, a) {
|
|
139
|
-
const i = I("el-roving-focus-group-impl"),
|
|
140
|
-
return F(), V(
|
|
139
|
+
const i = I("el-roving-focus-group-impl"), r = I("el-focus-group-collection");
|
|
140
|
+
return F(), V(r, null, {
|
|
141
141
|
default: p(() => [
|
|
142
142
|
m(i, Ke(Le(e.$attrs)), {
|
|
143
143
|
default: p(() => [
|
|
@@ -166,64 +166,64 @@ const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
|
|
|
166
166
|
props: xe,
|
|
167
167
|
emits: ["visible-change", "click", "command"],
|
|
168
168
|
setup(e, { emit: n }) {
|
|
169
|
-
const s = we(), t = oe("dropdown"), { t: u } = Re(), a = $(), i = $(),
|
|
169
|
+
const s = we(), t = oe("dropdown"), { t: u } = Re(), a = $(), i = $(), r = $(null), f = $(null), v = $(null), g = $(null), w = $(!1), h = T(() => ({
|
|
170
170
|
maxHeight: Se(e.maxHeight)
|
|
171
171
|
})), o = T(() => [t.m(b.value)]), d = T(() => ao(e.trigger)), c = me().value, _ = T(() => e.id || c);
|
|
172
|
-
ge([a, d], ([
|
|
172
|
+
ge([a, d], ([l, D], [U]) => {
|
|
173
173
|
var ie, ae, de;
|
|
174
|
-
(ie = U == null ? void 0 : U.$el) != null && ie.removeEventListener && U.$el.removeEventListener("pointerenter", C), (ae =
|
|
174
|
+
(ie = U == null ? void 0 : U.$el) != null && ie.removeEventListener && U.$el.removeEventListener("pointerenter", C), (ae = l == null ? void 0 : l.$el) != null && ae.removeEventListener && l.$el.removeEventListener("pointerenter", C), (de = l == null ? void 0 : l.$el) != null && de.addEventListener && D.includes("hover") && l.$el.addEventListener("pointerenter", C);
|
|
175
175
|
}, { immediate: !0 }), Me(() => {
|
|
176
|
-
var
|
|
177
|
-
(D = (
|
|
176
|
+
var l, D;
|
|
177
|
+
(D = (l = a.value) == null ? void 0 : l.$el) != null && D.removeEventListener && a.value.$el.removeEventListener("pointerenter", C);
|
|
178
178
|
});
|
|
179
179
|
function B() {
|
|
180
180
|
S();
|
|
181
181
|
}
|
|
182
182
|
function S() {
|
|
183
|
-
var
|
|
184
|
-
(
|
|
183
|
+
var l;
|
|
184
|
+
(l = r.value) == null || l.onClose();
|
|
185
185
|
}
|
|
186
186
|
function L() {
|
|
187
|
-
var
|
|
188
|
-
(
|
|
187
|
+
var l;
|
|
188
|
+
(l = r.value) == null || l.onOpen();
|
|
189
189
|
}
|
|
190
190
|
const b = He();
|
|
191
|
-
function O(...
|
|
192
|
-
n("command", ...
|
|
191
|
+
function O(...l) {
|
|
192
|
+
n("command", ...l);
|
|
193
193
|
}
|
|
194
194
|
function C() {
|
|
195
|
-
var
|
|
196
|
-
(D = (
|
|
195
|
+
var l, D;
|
|
196
|
+
(D = (l = a.value) == null ? void 0 : l.$el) == null || D.focus();
|
|
197
197
|
}
|
|
198
198
|
function M() {
|
|
199
199
|
}
|
|
200
200
|
function G() {
|
|
201
|
-
const
|
|
202
|
-
d.value.includes("hover") && (
|
|
201
|
+
const l = E(f);
|
|
202
|
+
d.value.includes("hover") && (l == null || l.focus()), g.value = null;
|
|
203
203
|
}
|
|
204
|
-
function k(
|
|
205
|
-
g.value =
|
|
204
|
+
function k(l) {
|
|
205
|
+
g.value = l;
|
|
206
206
|
}
|
|
207
|
-
function se(
|
|
208
|
-
w.value || (
|
|
207
|
+
function se(l) {
|
|
208
|
+
w.value || (l.preventDefault(), l.stopImmediatePropagation());
|
|
209
209
|
}
|
|
210
210
|
function J() {
|
|
211
211
|
n("visible-change", !0);
|
|
212
212
|
}
|
|
213
|
-
function Y(
|
|
214
|
-
(
|
|
213
|
+
function Y(l) {
|
|
214
|
+
(l == null ? void 0 : l.type) === "keydown" && f.value.focus();
|
|
215
215
|
}
|
|
216
216
|
function $e() {
|
|
217
217
|
n("visible-change", !1);
|
|
218
218
|
}
|
|
219
|
-
return
|
|
219
|
+
return W(Q, {
|
|
220
220
|
contentRef: f,
|
|
221
221
|
role: T(() => e.role),
|
|
222
222
|
triggerId: _,
|
|
223
223
|
isUsingKeyboard: w,
|
|
224
224
|
onItemEnter: M,
|
|
225
225
|
onItemLeave: G
|
|
226
|
-
}),
|
|
226
|
+
}), W("elDropdown", {
|
|
227
227
|
instance: s,
|
|
228
228
|
dropdownSize: b,
|
|
229
229
|
handleClick: B,
|
|
@@ -240,8 +240,8 @@ const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
|
|
|
240
240
|
triggerId: _,
|
|
241
241
|
currentTabId: g,
|
|
242
242
|
handleCurrentTabIdChange: k,
|
|
243
|
-
handlerMainButtonClick: (
|
|
244
|
-
n("click",
|
|
243
|
+
handlerMainButtonClick: (l) => {
|
|
244
|
+
n("click", l);
|
|
245
245
|
},
|
|
246
246
|
handleEntryFocus: se,
|
|
247
247
|
handleClose: S,
|
|
@@ -249,13 +249,13 @@ const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
|
|
|
249
249
|
handleBeforeShowTooltip: J,
|
|
250
250
|
handleShowTooltip: Y,
|
|
251
251
|
handleBeforeHideTooltip: $e,
|
|
252
|
-
onFocusAfterTrapped: (
|
|
252
|
+
onFocusAfterTrapped: (l) => {
|
|
253
253
|
var D, U;
|
|
254
|
-
|
|
254
|
+
l.preventDefault(), (U = (D = f.value) == null ? void 0 : D.focus) == null || U.call(D, {
|
|
255
255
|
preventScroll: !0
|
|
256
256
|
});
|
|
257
257
|
},
|
|
258
|
-
popperRef:
|
|
258
|
+
popperRef: r,
|
|
259
259
|
contentRef: f,
|
|
260
260
|
triggeringElementRef: a,
|
|
261
261
|
referenceElementRef: i
|
|
@@ -264,9 +264,9 @@ const Q = Symbol("elDropdown"), { ButtonGroup: $o } = _e, Fo = K({
|
|
|
264
264
|
});
|
|
265
265
|
function Ro(e, n, s, t, u, a) {
|
|
266
266
|
var i;
|
|
267
|
-
const
|
|
267
|
+
const r = I("el-dropdown-collection"), f = I("el-roving-focus-group"), v = I("el-scrollbar"), g = I("el-only-child"), w = I("el-tooltip"), h = I("el-button"), o = I("arrow-down"), d = I("el-icon"), c = I("el-button-group");
|
|
268
268
|
return F(), A("div", {
|
|
269
|
-
class:
|
|
269
|
+
class: j([e.ns.b(), e.ns.is("disabled", e.disabled)])
|
|
270
270
|
}, [
|
|
271
271
|
m(w, {
|
|
272
272
|
ref: "popperRef",
|
|
@@ -312,7 +312,7 @@ function Ro(e, n, s, t, u, a) {
|
|
|
312
312
|
onEntryFocus: e.handleEntryFocus
|
|
313
313
|
}, {
|
|
314
314
|
default: p(() => [
|
|
315
|
-
m(
|
|
315
|
+
m(r, null, {
|
|
316
316
|
default: p(() => [
|
|
317
317
|
N(e.$slots, "dropdown")
|
|
318
318
|
]),
|
|
@@ -372,7 +372,7 @@ function Ro(e, n, s, t, u, a) {
|
|
|
372
372
|
}), {
|
|
373
373
|
default: p(() => [
|
|
374
374
|
m(d, {
|
|
375
|
-
class:
|
|
375
|
+
class: j(e.ns.e("icon"))
|
|
376
376
|
}, {
|
|
377
377
|
default: p(() => [
|
|
378
378
|
m(o)
|
|
@@ -404,14 +404,14 @@ const ko = K({
|
|
|
404
404
|
},
|
|
405
405
|
emits: ["mousedown", "focus", "keydown"],
|
|
406
406
|
setup(e, { emit: n }) {
|
|
407
|
-
const { currentTabbedId: s, loop: t, onItemFocus: u, onItemShiftTab: a } = y(
|
|
407
|
+
const { currentTabbedId: s, loop: t, onItemFocus: u, onItemShiftTab: a } = y(le, void 0), { getItems: i } = y(te, void 0), r = me(), f = $(null), v = P((o) => {
|
|
408
408
|
n("mousedown", o);
|
|
409
409
|
}, (o) => {
|
|
410
|
-
e.focusable ? u(E(
|
|
410
|
+
e.focusable ? u(E(r)) : o.preventDefault();
|
|
411
411
|
}), g = P((o) => {
|
|
412
412
|
n("focus", o);
|
|
413
413
|
}, () => {
|
|
414
|
-
u(E(
|
|
414
|
+
u(E(r));
|
|
415
415
|
}), w = P((o) => {
|
|
416
416
|
n("keydown", o);
|
|
417
417
|
}, (o) => {
|
|
@@ -440,18 +440,18 @@ const ko = K({
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
Ae(() => {
|
|
443
|
-
|
|
443
|
+
re(b);
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
|
-
}), h = T(() => s.value === E(
|
|
447
|
-
return
|
|
446
|
+
}), h = T(() => s.value === E(r));
|
|
447
|
+
return W(Ee, {
|
|
448
448
|
rovingFocusGroupItemRef: f,
|
|
449
449
|
tabIndex: T(() => E(h) ? 0 : -1),
|
|
450
450
|
handleMousedown: v,
|
|
451
451
|
handleFocus: g,
|
|
452
452
|
handleKeydown: w
|
|
453
453
|
}), {
|
|
454
|
-
id:
|
|
454
|
+
id: r,
|
|
455
455
|
handleKeydown: w,
|
|
456
456
|
handleFocus: g,
|
|
457
457
|
handleMousedown: v
|
|
@@ -482,7 +482,7 @@ const Po = K({
|
|
|
482
482
|
setup(e, { emit: n }) {
|
|
483
483
|
const s = oe("dropdown"), { role: t } = y(Q, void 0), { collectionItemRef: u } = y(eo, void 0), { collectionItemRef: a } = y(mo, void 0), {
|
|
484
484
|
rovingFocusGroupItemRef: i,
|
|
485
|
-
tabIndex:
|
|
485
|
+
tabIndex: r,
|
|
486
486
|
handleFocus: f,
|
|
487
487
|
handleKeydown: v,
|
|
488
488
|
handleMousedown: g
|
|
@@ -497,7 +497,7 @@ const Po = K({
|
|
|
497
497
|
[oo]: ""
|
|
498
498
|
},
|
|
499
499
|
role: h,
|
|
500
|
-
tabIndex:
|
|
500
|
+
tabIndex: r,
|
|
501
501
|
handleFocus: f,
|
|
502
502
|
handleKeydown: o,
|
|
503
503
|
handleMousedown: g
|
|
@@ -510,19 +510,19 @@ function No(e, n, s, t, u, a) {
|
|
|
510
510
|
e.divided ? (F(), A("li", {
|
|
511
511
|
key: 0,
|
|
512
512
|
role: "separator",
|
|
513
|
-
class:
|
|
513
|
+
class: j(e.ns.bem("menu", "item", "divided"))
|
|
514
514
|
}, null, 2)) : Z("v-if", !0),
|
|
515
515
|
x("li", q({ ref: e.itemRef }, { ...e.dataset, ...e.$attrs }, {
|
|
516
516
|
"aria-disabled": e.disabled,
|
|
517
517
|
class: [e.ns.be("menu", "item"), e.ns.is("disabled", e.disabled)],
|
|
518
518
|
tabindex: e.tabIndex,
|
|
519
519
|
role: e.role,
|
|
520
|
-
onClick: (
|
|
520
|
+
onClick: (r) => e.$emit("clickimpl", r),
|
|
521
521
|
onFocus: e.handleFocus,
|
|
522
522
|
onKeydown: ee(e.handleKeydown, ["self"]),
|
|
523
523
|
onMousedown: e.handleMousedown,
|
|
524
|
-
onPointermove: (
|
|
525
|
-
onPointerleave: (
|
|
524
|
+
onPointermove: (r) => e.$emit("pointermove", r),
|
|
525
|
+
onPointerleave: (r) => e.$emit("pointerleave", r)
|
|
526
526
|
}), [
|
|
527
527
|
e.icon ? (F(), V(i, { key: 0 }, {
|
|
528
528
|
default: p(() => [
|
|
@@ -555,13 +555,13 @@ const Ce = () => {
|
|
|
555
555
|
const { elDropdown: t } = Ce(), u = we(), a = $(null), i = T(() => {
|
|
556
556
|
var o, d;
|
|
557
557
|
return (d = (o = E(a)) == null ? void 0 : o.textContent) != null ? d : "";
|
|
558
|
-
}), { onItemEnter:
|
|
558
|
+
}), { onItemEnter: r, onItemLeave: f } = y(Q, void 0), v = P((o) => (n("pointermove", o), o.defaultPrevented), ue((o) => {
|
|
559
559
|
if (e.disabled) {
|
|
560
560
|
f(o);
|
|
561
561
|
return;
|
|
562
562
|
}
|
|
563
563
|
const d = o.currentTarget;
|
|
564
|
-
d === document.activeElement || d.contains(document.activeElement) || (
|
|
564
|
+
d === document.activeElement || d.contains(document.activeElement) || (r(o), o.defaultPrevented || d == null || d.focus());
|
|
565
565
|
})), g = P((o) => (n("pointerleave", o), o.defaultPrevented), ue(f)), w = P((o) => {
|
|
566
566
|
if (!e.disabled)
|
|
567
567
|
return n("click", o), o.type !== "keydown" && o.defaultPrevented;
|
|
@@ -584,7 +584,7 @@ const Ce = () => {
|
|
|
584
584
|
});
|
|
585
585
|
function Lo(e, n, s, t, u, a) {
|
|
586
586
|
var i;
|
|
587
|
-
const
|
|
587
|
+
const r = I("el-dropdown-item-impl"), f = I("el-roving-focus-item"), v = I("el-dropdown-collection-item");
|
|
588
588
|
return F(), V(v, {
|
|
589
589
|
disabled: e.disabled,
|
|
590
590
|
"text-value": (i = e.textValue) != null ? i : e.textContent
|
|
@@ -594,7 +594,7 @@ function Lo(e, n, s, t, u, a) {
|
|
|
594
594
|
focusable: !e.disabled
|
|
595
595
|
}, {
|
|
596
596
|
default: p(() => [
|
|
597
|
-
m(
|
|
597
|
+
m(r, q(e.propsAndAttrs, {
|
|
598
598
|
onPointerleave: e.handlePointerLeave,
|
|
599
599
|
onPointermove: e.handlePointerMove,
|
|
600
600
|
onClickimpl: e.handleClick
|
|
@@ -616,29 +616,29 @@ const Mo = K({
|
|
|
616
616
|
name: "ElDropdownMenu",
|
|
617
617
|
props: to,
|
|
618
618
|
setup(e) {
|
|
619
|
-
const n = oe("dropdown"), { _elDropdownSize: s } = Ce(), t = s.value, { focusTrapRef: u, onKeydown: a } = y(io, void 0), { contentRef: i, role:
|
|
619
|
+
const n = oe("dropdown"), { _elDropdownSize: s } = Ce(), t = s.value, { focusTrapRef: u, onKeydown: a } = y(io, void 0), { contentRef: i, role: r, triggerId: f } = y(Q, void 0), { collectionRef: v, getItems: g } = y(lo, void 0), {
|
|
620
620
|
rovingFocusGroupRef: w,
|
|
621
621
|
rovingFocusGroupRootStyle: h,
|
|
622
622
|
tabIndex: o,
|
|
623
623
|
onBlur: d,
|
|
624
624
|
onFocus: c,
|
|
625
625
|
onMousedown: _
|
|
626
|
-
} = y(
|
|
626
|
+
} = y(le, void 0), { collectionRef: B } = y(te, void 0), S = T(() => [n.b("menu"), n.bm("menu", t == null ? void 0 : t.value)]), L = Ie(i, v, u, w, B), b = P((C) => {
|
|
627
627
|
var M;
|
|
628
628
|
(M = e.onKeydown) == null || M.call(e, C);
|
|
629
629
|
}, (C) => {
|
|
630
630
|
const { currentTarget: M, code: G, target: k } = C;
|
|
631
|
-
if (M.contains(k), R.tab === G && C.stopImmediatePropagation(), C.preventDefault(), k !== E(i) || !
|
|
631
|
+
if (M.contains(k), R.tab === G && C.stopImmediatePropagation(), C.preventDefault(), k !== E(i) || !ro.includes(G))
|
|
632
632
|
return;
|
|
633
633
|
const J = g().filter((Y) => !Y.disabled).map((Y) => Y.ref);
|
|
634
|
-
so.includes(G) && J.reverse(),
|
|
634
|
+
so.includes(G) && J.reverse(), re(J);
|
|
635
635
|
});
|
|
636
636
|
return {
|
|
637
637
|
size: t,
|
|
638
638
|
rovingFocusGroupRootStyle: h,
|
|
639
639
|
tabIndex: o,
|
|
640
640
|
dropdownKls: S,
|
|
641
|
-
role:
|
|
641
|
+
role: r,
|
|
642
642
|
triggerId: f,
|
|
643
643
|
dropdownListWrapperRef: L,
|
|
644
644
|
handleKeydown: (C) => {
|
|
@@ -653,7 +653,7 @@ const Mo = K({
|
|
|
653
653
|
function Go(e, n, s, t, u, a) {
|
|
654
654
|
return F(), A("ul", {
|
|
655
655
|
ref: e.dropdownListWrapperRef,
|
|
656
|
-
class:
|
|
656
|
+
class: j(e.dropdownKls),
|
|
657
657
|
style: Ve(e.rovingFocusGroupRootStyle),
|
|
658
658
|
tabindex: -1,
|
|
659
659
|
role: e.role,
|
|
@@ -682,14 +682,14 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
|
|
|
682
682
|
},
|
|
683
683
|
emits: ["loginout"],
|
|
684
684
|
setup(e, { emit: n }) {
|
|
685
|
-
const s =
|
|
686
|
-
const { loginUrl:
|
|
687
|
-
qe(
|
|
685
|
+
const s = je(), t = n, u = e, a = () => {
|
|
686
|
+
const { loginUrl: r } = u.config || {};
|
|
687
|
+
qe(r);
|
|
688
688
|
}, i = () => {
|
|
689
|
-
const { loginoutToLogin:
|
|
690
|
-
Qe(
|
|
689
|
+
const { loginoutToLogin: r, loginoutUrl: f } = u.config || {};
|
|
690
|
+
Qe(r, f), t("loginout");
|
|
691
691
|
};
|
|
692
|
-
return (
|
|
692
|
+
return (r, f) => {
|
|
693
693
|
const v = ne, g = zo, w = Uo, h = Ao;
|
|
694
694
|
return F(), A("div", Vo, [
|
|
695
695
|
E(s) ? (F(), A("div", Yo, [
|
|
@@ -737,7 +737,7 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
|
|
|
737
737
|
ce(" 前往登录 "),
|
|
738
738
|
m(v, { class: "user-login-icon" }, {
|
|
739
739
|
default: p(() => [
|
|
740
|
-
m(E(
|
|
740
|
+
m(E(We))
|
|
741
741
|
]),
|
|
742
742
|
_: 1
|
|
743
743
|
})
|
|
@@ -746,9 +746,9 @@ const Vo = { class: "user" }, Yo = { key: 0 }, Ho = { class: "user-msg" }, Jo =
|
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
748
|
});
|
|
749
|
-
const
|
|
749
|
+
const Wo = /* @__PURE__ */ uo(Jo, [["__scopeId", "data-v-b83bf27d"]]), cn = {
|
|
750
750
|
install(e) {
|
|
751
|
-
e.component("st-user",
|
|
751
|
+
e.component("st-user", Wo);
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
754
|
export {
|