st-comp 0.0.147 → 0.0.148
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 -3
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +22 -20
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +631 -566
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +83 -77
- package/es/KlineNew.cjs +2 -2
- package/es/KlineNew.js +14 -10
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +95 -89
- package/es/Table.cjs +1 -1
- package/es/Table.js +62 -58
- package/es/User.cjs +1 -1
- package/es/User.js +151 -146
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +1 -2384
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +2800 -1
- package/es/_initCloneObject-476b02ce.cjs +1 -0
- package/es/{_initCloneObject-a8dcd058.js → _initCloneObject-ec5c9523.js} +5 -5
- package/es/{base-00ce90ec.cjs → base-6ccc8fc2.cjs} +3 -3
- package/es/{base-674a354a.js → base-950bac7e.js} +59 -58
- package/es/castArray-374558a5.cjs +1 -0
- package/es/castArray-c770910d.js +10 -0
- package/es/config-provider-c87e277f.cjs +1 -0
- package/es/config-provider-feed0e8a.js +47 -0
- package/es/debounce-a6b4f91b.cjs +1 -0
- package/es/debounce-c64fb3b5.js +83 -0
- package/es/dropdown-6bdb3cf4.cjs +1 -0
- package/es/{dropdown-ce30ada6.js → dropdown-c9272ca3.js} +31 -30
- package/es/el-button-b8f71c7d.cjs +1 -0
- package/es/{el-button-7b9f5933.js → el-button-d7b6eebd.js} +12 -12
- package/es/{el-empty-87154b6d.cjs → el-empty-12eece57.cjs} +1 -1
- package/es/{el-empty-39b3aed7.js → el-empty-89a523ed.js} +5 -5
- package/es/{el-form-item-fc6f80ab.js → el-form-item-55d36086.js} +72 -71
- package/es/el-form-item-ebbf096d.cjs +12 -0
- package/es/el-input-2c7e70a3.cjs +1 -0
- package/es/{el-input-d249ac86.js → el-input-cb528574.js} +65 -63
- package/es/el-input-number-8e168e83.cjs +1 -0
- package/es/{el-input-number-2066fbb7.js → el-input-number-ce30bfa8.js} +22 -21
- package/es/el-message-612c2346.cjs +1 -0
- package/es/{el-message-9859835d.js → el-message-d51d032b.js} +80 -78
- package/es/{el-overlay-f0757cc4.js → el-overlay-07414277.js} +70 -69
- package/es/el-overlay-fb255b83.cjs +1 -0
- package/es/el-popper-8360bd91.cjs +1 -0
- package/es/el-popper-f4b01f85.js +2262 -0
- package/es/el-scrollbar-271142ad.cjs +1 -0
- package/es/el-scrollbar-e8e93751.js +201 -0
- package/es/el-select-2e71d4af.cjs +1 -0
- package/es/{el-select-bcbb7e55.js → el-select-e71af2e6.js} +333 -329
- package/es/el-table-column-9fe79f05.cjs +14 -0
- package/es/el-table-column-dc562f14.js +3933 -0
- package/es/el-tag-930e7b32.cjs +1 -0
- package/es/el-tag-d65768f4.js +279 -0
- package/es/index-0ed86daf.cjs +3 -0
- package/es/index-121e2861.js +306 -0
- package/es/index-18416440.cjs +1 -0
- package/es/index-674d2fd7.cjs +1 -0
- package/es/index-709675d5.js +59 -0
- package/es/{index-45de4a12.js → index-92ba4292.js} +13 -13
- package/es/index-aece600c.js +81 -0
- package/es/index-da646183.cjs +1 -0
- package/es/raf-2d77cbbe.cjs +1 -0
- package/es/raf-f55e0daa.js +6 -0
- package/es/{scroll-cca17da0.cjs → scroll-c8ac196e.cjs} +1 -1
- package/es/{scroll-cb696ed2.js → scroll-ca84f80a.js} +1 -1
- package/es/style.css +1 -1
- package/es/typescript-7ae59c4c.js +4 -0
- package/es/typescript-b63f8e83.cjs +1 -0
- package/es/use-form-common-props-4d37077d.js +586 -0
- package/es/use-form-common-props-c1960844.cjs +2 -0
- package/es/{zh-cn-ef7d7220.js → zh-cn-23c8e0d1.js} +2 -2
- package/es/{zh-cn-37af467d.cjs → zh-cn-414d7f0c.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-24f8572c.js → index-ffeb163e.js} +2 -2
- package/lib/{python-2143eee4.js → python-0ec8f68c.js} +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/utils.js +1 -1
- package/es/_initCloneObject-7493ecd5.cjs +0 -1
- package/es/config-provider-419ffbf2.js +0 -120
- package/es/config-provider-68414290.cjs +0 -3
- package/es/dropdown-127a8c0d.cjs +0 -1
- package/es/el-button-c00975e1.cjs +0 -1
- package/es/el-checkbox-group-0554b352.js +0 -67
- package/es/el-checkbox-group-7a313d34.cjs +0 -1
- package/es/el-form-item-7867f64d.cjs +0 -12
- package/es/el-input-2ff1628c.cjs +0 -1
- package/es/el-input-number-d6801a5c.cjs +0 -1
- package/es/el-message-ffcf690c.cjs +0 -1
- package/es/el-overlay-91784be2.cjs +0 -1
- package/es/el-popover-4db657e2.cjs +0 -1
- package/es/el-popover-b7b43c1f.js +0 -138
- package/es/el-scrollbar-35bac6b3.js +0 -2452
- package/es/el-scrollbar-ec09bbd3.cjs +0 -1
- package/es/el-select-0785c35a.cjs +0 -1
- package/es/el-table-column-2478adf8.cjs +0 -14
- package/es/el-table-column-c1e1a206.js +0 -3798
- package/es/el-tag-13ee17b3.cjs +0 -1
- package/es/el-tag-73372c6c.js +0 -359
- package/es/index-07b61d12.cjs +0 -1
- package/es/index-65b719a4.cjs +0 -1
- package/es/index-8b5fbc11.js +0 -66
- package/es/index-8c85d7c5.js +0 -858
- package/es/index-a49f4743.cjs +0 -2
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { getCurrentInstance as C, shallowRef as E, ref as m, watch as g, onMounted as F, nextTick as x } from "vue";
|
|
2
|
+
import { u as r } from "./el-scrollbar-e8e93751.js";
|
|
3
|
+
import { c as _, e as f } from "./base-950bac7e.js";
|
|
4
|
+
function y(l, {
|
|
5
|
+
beforeFocus: t,
|
|
6
|
+
afterFocus: e,
|
|
7
|
+
beforeBlur: d,
|
|
8
|
+
afterBlur: c
|
|
9
|
+
} = {}) {
|
|
10
|
+
const p = C(), { emit: v } = p, o = E(), s = m(!1), u = (n) => {
|
|
11
|
+
f(t) && t(n) || s.value || (s.value = !0, v("focus", n), e == null || e());
|
|
12
|
+
}, i = (n) => {
|
|
13
|
+
var a;
|
|
14
|
+
f(d) && d(n) || n.relatedTarget && ((a = o.value) != null && a.contains(n.relatedTarget)) || (s.value = !1, v("blur", n), c == null || c());
|
|
15
|
+
}, h = () => {
|
|
16
|
+
var n, a;
|
|
17
|
+
(n = o.value) != null && n.contains(document.activeElement) && o.value !== document.activeElement || (a = l.value) == null || a.focus();
|
|
18
|
+
};
|
|
19
|
+
return g(o, (n) => {
|
|
20
|
+
n && n.setAttribute("tabindex", "-1");
|
|
21
|
+
}), r(o, "focus", u, !0), r(o, "blur", i, !0), r(o, "click", h, !0), process.env.NODE_ENV === "test" && F(() => {
|
|
22
|
+
const n = _(l.value) ? l.value : document.querySelector("input,textarea");
|
|
23
|
+
n && (r(n, "focus", u, !0), r(n, "blur", i, !0));
|
|
24
|
+
}), {
|
|
25
|
+
isFocused: s,
|
|
26
|
+
wrapperRef: o,
|
|
27
|
+
handleFocus: u,
|
|
28
|
+
handleBlur: i
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const b = (l) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(l);
|
|
32
|
+
function D({
|
|
33
|
+
afterComposition: l,
|
|
34
|
+
emit: t
|
|
35
|
+
}) {
|
|
36
|
+
const e = m(!1), d = (o) => {
|
|
37
|
+
t == null || t("compositionstart", o), e.value = !0;
|
|
38
|
+
}, c = (o) => {
|
|
39
|
+
var s;
|
|
40
|
+
t == null || t("compositionupdate", o);
|
|
41
|
+
const u = (s = o.target) == null ? void 0 : s.value, i = u[u.length - 1] || "";
|
|
42
|
+
e.value = !b(i);
|
|
43
|
+
}, p = (o) => {
|
|
44
|
+
t == null || t("compositionend", o), e.value && (e.value = !1, x(() => l(o)));
|
|
45
|
+
};
|
|
46
|
+
return {
|
|
47
|
+
isComposing: e,
|
|
48
|
+
handleComposition: (o) => {
|
|
49
|
+
o.type === "compositionend" ? p(o) : c(o);
|
|
50
|
+
},
|
|
51
|
+
handleCompositionStart: d,
|
|
52
|
+
handleCompositionUpdate: c,
|
|
53
|
+
handleCompositionEnd: p
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
D as a,
|
|
58
|
+
y as u
|
|
59
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as E, computed as w, openBlock as i, createElementBlock as M, normalizeClass as n, unref as s, normalizeStyle as
|
|
2
|
-
import { c as V,
|
|
3
|
-
import { b as I, u as P, _ as F, w as K } from "./base-
|
|
1
|
+
import { defineComponent as E, computed as w, openBlock as i, createElementBlock as M, normalizeClass as n, unref as s, normalizeStyle as b, createElementVNode as r, renderSlot as g, createBlock as u, withModifiers as y, withCtx as p, createVNode as v, createCommentVNode as C, Transition as N } from "vue";
|
|
2
|
+
import { c as V, b as $, E as _, d as h } from "./use-form-common-props-4d37077d.js";
|
|
3
|
+
import { b as I, u as P, _ as F, w as K } from "./base-950bac7e.js";
|
|
4
4
|
const j = I({
|
|
5
5
|
type: {
|
|
6
6
|
type: String,
|
|
@@ -30,8 +30,8 @@ const j = I({
|
|
|
30
30
|
...A,
|
|
31
31
|
props: j,
|
|
32
32
|
emits: q,
|
|
33
|
-
setup(a, { emit:
|
|
34
|
-
const S = a, T = $(), o = P("tag"),
|
|
33
|
+
setup(a, { emit: d }) {
|
|
34
|
+
const S = a, T = $(), o = P("tag"), m = w(() => {
|
|
35
35
|
const { type: e, hit: l, effect: t, closable: c, round: B } = S;
|
|
36
36
|
return [
|
|
37
37
|
o.b(),
|
|
@@ -43,23 +43,23 @@ const j = I({
|
|
|
43
43
|
o.is("round", B)
|
|
44
44
|
];
|
|
45
45
|
}), f = (e) => {
|
|
46
|
-
|
|
46
|
+
d("close", e);
|
|
47
47
|
}, k = (e) => {
|
|
48
|
-
|
|
48
|
+
d("click", e);
|
|
49
49
|
}, z = (e) => {
|
|
50
50
|
var l, t, c;
|
|
51
51
|
(c = (t = (l = e == null ? void 0 : e.component) == null ? void 0 : l.subTree) == null ? void 0 : t.component) != null && c.bum && (e.component.subTree.component.bum = null);
|
|
52
52
|
};
|
|
53
53
|
return (e, l) => e.disableTransitions ? (i(), M("span", {
|
|
54
54
|
key: 0,
|
|
55
|
-
class: n(s(
|
|
56
|
-
style:
|
|
55
|
+
class: n(s(m)),
|
|
56
|
+
style: b({ backgroundColor: e.color }),
|
|
57
57
|
onClick: k
|
|
58
58
|
}, [
|
|
59
59
|
r("span", {
|
|
60
60
|
class: n(s(o).e("content"))
|
|
61
61
|
}, [
|
|
62
|
-
|
|
62
|
+
g(e.$slots, "default")
|
|
63
63
|
], 2),
|
|
64
64
|
e.closable ? (i(), u(s(_), {
|
|
65
65
|
key: 0,
|
|
@@ -79,14 +79,14 @@ const j = I({
|
|
|
79
79
|
}, {
|
|
80
80
|
default: p(() => [
|
|
81
81
|
r("span", {
|
|
82
|
-
class: n(s(
|
|
83
|
-
style:
|
|
82
|
+
class: n(s(m)),
|
|
83
|
+
style: b({ backgroundColor: e.color }),
|
|
84
84
|
onClick: k
|
|
85
85
|
}, [
|
|
86
86
|
r("span", {
|
|
87
87
|
class: n(s(o).e("content"))
|
|
88
88
|
}, [
|
|
89
|
-
|
|
89
|
+
g(e.$slots, "default")
|
|
90
90
|
], 2),
|
|
91
91
|
e.closable ? (i(), u(s(_), {
|
|
92
92
|
key: 0,
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ref as C, getCurrentInstance as f, provide as x, computed as s, unref as i, inject as y, watch as I } from "vue";
|
|
2
|
+
import { C as b, q as p, D as z, E as _, u as S, F as K, o as G } from "./base-950bac7e.js";
|
|
3
|
+
import { j as O, z as $, S as k, k as E, l as N, n as F } from "./use-form-common-props-4d37077d.js";
|
|
4
|
+
const m = Symbol();
|
|
5
|
+
function P(n, o, a) {
|
|
6
|
+
return n == null ? n : O(n, o, a);
|
|
7
|
+
}
|
|
8
|
+
const d = (n) => Object.keys(n), q = (n, o, a) => ({
|
|
9
|
+
get value() {
|
|
10
|
+
return b(n, o, a);
|
|
11
|
+
},
|
|
12
|
+
set value(t) {
|
|
13
|
+
P(n, o, t);
|
|
14
|
+
}
|
|
15
|
+
}), v = C();
|
|
16
|
+
function g(n, o = void 0) {
|
|
17
|
+
const a = f() ? y(m, v) : v;
|
|
18
|
+
return n ? s(() => {
|
|
19
|
+
var t, l;
|
|
20
|
+
return (l = (t = a.value) == null ? void 0 : t[n]) != null ? l : o;
|
|
21
|
+
}) : a;
|
|
22
|
+
}
|
|
23
|
+
function A(n, o) {
|
|
24
|
+
const a = g(), t = S(n, s(() => {
|
|
25
|
+
var e;
|
|
26
|
+
return ((e = a.value) == null ? void 0 : e.namespace) || K;
|
|
27
|
+
})), l = G(s(() => {
|
|
28
|
+
var e;
|
|
29
|
+
return (e = a.value) == null ? void 0 : e.locale;
|
|
30
|
+
})), r = N(s(() => {
|
|
31
|
+
var e;
|
|
32
|
+
return ((e = a.value) == null ? void 0 : e.zIndex) || F;
|
|
33
|
+
})), u = s(() => {
|
|
34
|
+
var e;
|
|
35
|
+
return i(o) || ((e = a.value) == null ? void 0 : e.size) || "";
|
|
36
|
+
});
|
|
37
|
+
return V(s(() => i(a) || {})), {
|
|
38
|
+
ns: t,
|
|
39
|
+
locale: l,
|
|
40
|
+
zIndex: r,
|
|
41
|
+
size: u
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
const V = (n, o, a = !1) => {
|
|
45
|
+
var t;
|
|
46
|
+
const l = !!f(), r = l ? g() : void 0, u = (t = o == null ? void 0 : o.provide) != null ? t : l ? x : void 0;
|
|
47
|
+
if (!u) {
|
|
48
|
+
p("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const e = s(() => {
|
|
52
|
+
const c = i(n);
|
|
53
|
+
return r != null && r.value ? Z(r.value, c) : c;
|
|
54
|
+
});
|
|
55
|
+
return u(m, e), u(z, s(() => e.value.locale)), u(_, s(() => e.value.namespace)), u($, s(() => e.value.zIndex)), u(k, {
|
|
56
|
+
size: s(() => e.value.size || "")
|
|
57
|
+
}), u(E, s(() => ({
|
|
58
|
+
emptyValues: e.value.emptyValues,
|
|
59
|
+
valueOnClear: e.value.valueOnClear
|
|
60
|
+
}))), (a || !v.value) && (v.value = e.value), e;
|
|
61
|
+
}, Z = (n, o) => {
|
|
62
|
+
const a = [.../* @__PURE__ */ new Set([...d(n), ...d(o)])], t = {};
|
|
63
|
+
for (const l of a)
|
|
64
|
+
t[l] = o[l] !== void 0 ? o[l] : n[l];
|
|
65
|
+
return t;
|
|
66
|
+
}, J = ({ from: n, replacement: o, scope: a, version: t, ref: l, type: r = "API" }, u) => {
|
|
67
|
+
I(() => i(u), (e) => {
|
|
68
|
+
e && p(a, `[${r}] ${n} is about to be deprecated in version ${t}, please use ${o} instead.
|
|
69
|
+
For more detail, please visit: ${l}
|
|
70
|
+
`);
|
|
71
|
+
}, {
|
|
72
|
+
immediate: !0
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
J as a,
|
|
77
|
+
g as b,
|
|
78
|
+
q as g,
|
|
79
|
+
V as p,
|
|
80
|
+
A as u
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("vue"),d=require("./el-scrollbar-271142ad.cjs"),m=require("./base-6ccc8fc2.cjs");function h(s,{beforeFocus:t,afterFocus:o,beforeBlur:v,afterBlur:a}={}){const f=l.getCurrentInstance(),{emit:p}=f,e=l.shallowRef(),u=l.ref(!1),i=n=>{m.isFunction(t)&&t(n)||u.value||(u.value=!0,p("focus",n),o==null||o())},r=n=>{var c;m.isFunction(v)&&v(n)||n.relatedTarget&&((c=e.value)!=null&&c.contains(n.relatedTarget))||(u.value=!1,p("blur",n),a==null||a())},C=()=>{var n,c;(n=e.value)!=null&&n.contains(document.activeElement)&&e.value!==document.activeElement||(c=s.value)==null||c.focus()};return l.watch(e,n=>{n&&n.setAttribute("tabindex","-1")}),d.useEventListener(e,"focus",i,!0),d.useEventListener(e,"blur",r,!0),d.useEventListener(e,"click",C,!0),process.env.NODE_ENV==="test"&&l.onMounted(()=>{const n=m.isElement(s.value)?s.value:document.querySelector("input,textarea");n&&(d.useEventListener(n,"focus",i,!0),d.useEventListener(n,"blur",r,!0))}),{isFocused:u,wrapperRef:e,handleFocus:i,handleBlur:r}}const E=s=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(s);function F({afterComposition:s,emit:t}){const o=l.ref(!1),v=e=>{t==null||t("compositionstart",e),o.value=!0},a=e=>{var u;t==null||t("compositionupdate",e);const i=(u=e.target)==null?void 0:u.value,r=i[i.length-1]||"";o.value=!E(r)},f=e=>{t==null||t("compositionend",e),o.value&&(o.value=!1,l.nextTick(()=>s(e)))};return{isComposing:o,handleComposition:e=>{e.type==="compositionend"?f(e):a(e)},handleCompositionStart:v,handleCompositionUpdate:a,handleCompositionEnd:f}}exports.useComposition=F;exports.useFocusController=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./base-6ccc8fc2.cjs"),t=e=>i.isClient?window.requestAnimationFrame(e):setTimeout(e,16),n=e=>i.isClient?window.cancelAnimationFrame(e):clearTimeout(e);exports.cAF=n;exports.rAF=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./base-
|
|
1
|
+
"use strict";const c=require("./base-6ccc8fc2.cjs");let r;const h=o=>{var l;if(!c.isClient)return 0;if(r!==void 0)return r;const t=document.createElement("div");t.className=`${o}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const e=t.offsetWidth;t.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",t.appendChild(s);const i=s.offsetWidth;return(l=t.parentNode)==null||l.removeChild(t),r=e-i,r};function u(o,l){if(!c.isClient)return;if(!l){o.scrollTop=0;return}const t=[];let e=l.offsetParent;for(;e!==null&&o!==e&&o.contains(e);)t.push(e),e=e.offsetParent;const s=l.offsetTop+t.reduce((d,p)=>d+p.offsetTop,0),i=s+l.offsetHeight,n=o.scrollTop,f=n+o.clientHeight;s<n?o.scrollTop=s:i>f&&(o.scrollTop=i-o.clientHeight)}exports.getScrollBarWidth=h;exports.scrollIntoView=u;
|