st-comp 0.0.247 → 0.0.248
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 +4 -4
- package/es/CustomFunction.js +42 -42
- package/es/FactorWarning.js +33 -33
- package/es/Kline.js +17 -17
- package/es/KlineBasic.js +26 -26
- package/es/KlineConfig.js +61 -61
- package/es/KlineNew.js +16 -16
- package/es/KlinePlus.cjs +4 -4
- package/es/KlinePlus.js +589 -575
- package/es/LinearLegend.cjs +1 -1
- package/es/LinearLegend.js +1 -63
- package/es/MonacoEditor.js +24 -24
- package/es/Pagination.js +73 -73
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.js +38 -38
- package/es/User.js +44 -44
- package/es/VarSelectDialog.js +25 -25
- package/es/VarietyAutoComplete.js +10 -10
- package/es/VarietySearch.js +38 -38
- package/es/{VarietySelect-5a9dd50b.js → VarietySelect-b9fe3000.js} +4 -4
- package/es/VarietyTextCopy.js +12 -12
- package/es/VirtualTable.js +14 -14
- package/es/{_initCloneObject-c34c65bc.js → _initCloneObject-382335b2.js} +7 -7
- package/es/{base-a5af3db3.js → base-ff0e366f.js} +40 -40
- package/es/{castArray-7741a212.js → castArray-15070be9.js} +1 -1
- package/es/{config-provider-06a63185.js → config-provider-2e85eee8.js} +6 -6
- package/es/{debounce-8d53f4dd.js → debounce-e9e47f9a.js} +1 -1
- package/es/{dropdown-302f71e7.js → dropdown-2b35a683.js} +13 -13
- package/es/{el-autocomplete-ed75a659.js → el-autocomplete-18be2c5a.js} +16 -16
- package/es/{el-button-d09ff85f.js → el-button-f08c0639.js} +39 -39
- package/es/{el-checkbox-64648e02.js → el-checkbox-058dba2d.js} +31 -31
- package/es/{el-dialog-6a80e3d8.js → el-dialog-d328e0d8.js} +15 -15
- package/es/{el-divider-4e059794.js → el-divider-4fe55ebe.js} +1 -1
- package/es/{el-empty-33cb66f1.js → el-empty-ceecb81c.js} +5 -5
- package/es/{el-form-item-4eca95be.js → el-form-item-cb328886.js} +36 -36
- package/es/{el-input-cae60510.js → el-input-0f6ead19.js} +50 -50
- package/es/{el-input-number-c2499410.js → el-input-number-66e68609.js} +36 -36
- package/es/{el-loading-c738468d.js → el-loading-412370c7.js} +5 -5
- package/es/{el-menu-item-f904f685.js → el-menu-item-0ee8ad18.js} +22 -22
- package/es/{el-message-box-05d8cf39.js → el-message-box-6db52b29.js} +11 -11
- package/es/{el-message-0df23ae7.js → el-message-e6c755df.js} +23 -23
- package/es/{el-overlay-cc9bc792.js → el-overlay-981f8d49.js} +56 -56
- package/es/{el-popconfirm-a6f66a0e.js → el-popconfirm-005013fa.js} +20 -20
- package/es/{el-popper-a38874f4.js → el-popper-fdc7c793.js} +109 -109
- package/es/{el-segmented-51b1c797.js → el-segmented-050d0090.js} +8 -8
- package/es/{el-select-1b149fab.js → el-select-23a1f302.js} +64 -64
- package/es/{el-table-column-3e30ebae.js → el-table-column-d0c374cf.js} +15 -15
- package/es/{el-tag-0a25efdf.js → el-tag-f13f463b.js} +15 -15
- package/es/{el-text-73d899ff.js → el-text-27cef2be.js} +2 -2
- package/es/{index-42e59bf5.js → index-09bd2621.js} +43 -43
- package/es/{index-94e43e0d.js → index-15b9603e.js} +3 -3
- package/es/{index-960806da.js → index-269b8a8c.js} +36 -36
- package/es/{index-54d289d1.js → index-4a3f30c5.js} +12 -12
- package/es/{index-6e967429.js → index-80a7ad32.js} +17 -17
- package/es/{index-d77a7336.js → index-93a8960e.js} +1 -1
- package/es/{index-4194c942.js → index-b937ea22.js} +2 -2
- package/es/{index-ac98a4d8.js → index-c266c23a.js} +10 -10
- package/es/{index-6806997d.js → index-e0901394.js} +34 -34
- package/es/{index-87b4bf61.js → index-ec7ad93f.js} +31 -31
- package/es/{python-a914569a.js → python-823b276b.js} +24 -24
- package/es/raf-8e05a7f4.js +6 -0
- package/es/{scroll-679bd6bf.js → scroll-41b4f625.js} +5 -5
- package/es/style.css +1 -1
- package/es/{use-form-common-props-47e50c10.js → use-form-common-props-631cacae.js} +65 -65
- package/es/{use-global-config-f52caea0.js → use-global-config-5d001623.js} +14 -14
- package/es/{validator-94c04152.js → validator-4160d9e7.js} +1 -1
- package/es/{vnode-5ddb7ed1.js → vnode-06571d5b.js} +1 -1
- package/es/{zh-cn-4921961d.js → zh-cn-5df98ac2.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +79 -79
- package/lib/{index-750ede1b.js → index-f00d1e1f.js} +4912 -4898
- package/lib/{python-e34a2958.js → python-0f34e2e6.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlinePlus/index.vue +88 -62
- package/src/App.vue +15 -4
- package/src/pages/KlineNew/components/KlineAction/mockApi/index.js +1 -1
- package/src/pages/KlineNew/components/KlineBasic/utils.js +1 -1
- package/src/pages/KlineNew/components/KlineSlide/utils.js +1 -1
- package/src/pages/KlinePlus/KlineDialog/MultiCycle.vue +312 -0
- package/src/pages/KlinePlus/KlineDialog/api.js +108 -0
- package/src/pages/KlinePlus/KlineDialog/index.vue +582 -0
- package/src/pages/KlinePlus/KlineDialog/indicator.js +109 -0
- package/src/pages/KlinePlus/KlineDialog/tools.js +86 -0
- package/src/pages/KlinePlus/index.vue +23 -209
- package/es/raf-80ef0c0a.js +0 -6
|
@@ -239,50 +239,50 @@ const Qt = (t, e) => {
|
|
|
239
239
|
n.directive(e, t);
|
|
240
240
|
}, t), Yt = (t) => (t.install = X, t);
|
|
241
241
|
export {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
242
|
+
Yt as A,
|
|
243
|
+
Zt as B,
|
|
244
|
+
At as C,
|
|
245
|
+
Nt as D,
|
|
246
|
+
Tt as E,
|
|
247
|
+
xt as F,
|
|
248
|
+
V as G,
|
|
249
|
+
O as H,
|
|
250
|
+
ht as I,
|
|
251
|
+
Ft as J,
|
|
252
|
+
Bt as K,
|
|
253
|
+
zt as L,
|
|
254
|
+
It as M,
|
|
255
255
|
X as N,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
256
|
+
Ot as O,
|
|
257
|
+
jt as P,
|
|
258
|
+
Rt as Q,
|
|
259
|
+
Z as R,
|
|
260
|
+
Dt as S,
|
|
261
261
|
Ut as _,
|
|
262
|
-
|
|
262
|
+
P as a,
|
|
263
263
|
Mt as b,
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
264
|
+
w as c,
|
|
265
|
+
Lt as d,
|
|
266
|
+
A as e,
|
|
267
|
+
at as f,
|
|
268
|
+
Vt as g,
|
|
269
|
+
_ as h,
|
|
270
|
+
bt as i,
|
|
271
|
+
Ht as j,
|
|
272
|
+
Gt as k,
|
|
273
|
+
Jt as l,
|
|
274
|
+
Et as m,
|
|
275
|
+
Xt as n,
|
|
276
|
+
St as o,
|
|
277
|
+
Q as p,
|
|
278
|
+
g as q,
|
|
279
279
|
Wt as r,
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
b as s,
|
|
281
|
+
Ct as t,
|
|
282
282
|
$t as u,
|
|
283
|
-
|
|
283
|
+
ot as v,
|
|
284
284
|
Qt as w,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
285
|
+
rt as x,
|
|
286
|
+
qt as y,
|
|
287
|
+
Kt as z
|
|
288
288
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as p, watch as s, renderSlot as l } from "vue";
|
|
2
|
-
import { p as
|
|
3
|
-
import {
|
|
4
|
-
import { b as d, e } from "./base-
|
|
5
|
-
import {
|
|
2
|
+
import { p as u } from "./use-global-config-5d001623.js";
|
|
3
|
+
import { u as m } from "./index-09bd2621.js";
|
|
4
|
+
import { b as d, d as e } from "./base-ff0e366f.js";
|
|
5
|
+
import { u as c } from "./use-form-common-props-631cacae.js";
|
|
6
6
|
const f = d({
|
|
7
7
|
a11y: {
|
|
8
8
|
type: Boolean,
|
|
@@ -39,14 +39,14 @@ const f = d({
|
|
|
39
39
|
type: String,
|
|
40
40
|
default: "el"
|
|
41
41
|
},
|
|
42
|
-
...
|
|
42
|
+
...m
|
|
43
43
|
}), b = {
|
|
44
44
|
placement: "top"
|
|
45
45
|
}, P = p({
|
|
46
46
|
name: "ElConfigProvider",
|
|
47
47
|
props: f,
|
|
48
48
|
setup(o, { slots: i }) {
|
|
49
|
-
const t =
|
|
49
|
+
const t = u(o);
|
|
50
50
|
return s(() => o.message, (a) => {
|
|
51
51
|
var r, n;
|
|
52
52
|
Object.assign(b, (n = (r = t == null ? void 0 : t.value) == null ? void 0 : r.message) != null ? n : {}, a ?? {});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as g, b as E,
|
|
3
|
-
import { i as L } from "./use-form-common-props-
|
|
1
|
+
import { c as f, e, a as _, r as b } from "./el-popper-fdc7c793.js";
|
|
2
|
+
import { _ as g, b as E, d as o } from "./base-ff0e366f.js";
|
|
3
|
+
import { i as L } from "./use-form-common-props-631cacae.js";
|
|
4
4
|
import { defineComponent as y, renderSlot as T, ref as I, provide as C, inject as $, onMounted as v, unref as m, onBeforeUnmount as h } from "vue";
|
|
5
5
|
const w = y({
|
|
6
6
|
inheritAttrs: !1
|
|
7
7
|
});
|
|
8
|
-
function M(n, r,
|
|
8
|
+
function M(n, r, i, l, a, d) {
|
|
9
9
|
return T(n.$slots, "default");
|
|
10
10
|
}
|
|
11
11
|
var A = /* @__PURE__ */ g(w, [["render", M], ["__file", "collection.vue"]]);
|
|
@@ -13,12 +13,12 @@ const B = y({
|
|
|
13
13
|
name: "ElCollectionItem",
|
|
14
14
|
inheritAttrs: !1
|
|
15
15
|
});
|
|
16
|
-
function K(n, r,
|
|
16
|
+
function K(n, r, i, l, a, d) {
|
|
17
17
|
return T(n.$slots, "default");
|
|
18
18
|
}
|
|
19
19
|
var P = /* @__PURE__ */ g(B, [["render", K], ["__file", "collection-item.vue"]]);
|
|
20
20
|
const x = "data-el-collection-item", Y = (n) => {
|
|
21
|
-
const r = `El${n}Collection`,
|
|
21
|
+
const r = `El${n}Collection`, i = `${r}Item`, l = Symbol(r), a = Symbol(i), d = {
|
|
22
22
|
...A,
|
|
23
23
|
name: r,
|
|
24
24
|
setup() {
|
|
@@ -26,10 +26,10 @@ const x = "data-el-collection-item", Y = (n) => {
|
|
|
26
26
|
C(l, {
|
|
27
27
|
itemMap: c,
|
|
28
28
|
getItems: () => {
|
|
29
|
-
const
|
|
30
|
-
if (!
|
|
29
|
+
const s = m(u);
|
|
30
|
+
if (!s)
|
|
31
31
|
return [];
|
|
32
|
-
const t = Array.from(
|
|
32
|
+
const t = Array.from(s.querySelectorAll(`[${x}]`));
|
|
33
33
|
return [...c.values()].sort((N, S) => t.indexOf(N.ref) - t.indexOf(S.ref));
|
|
34
34
|
},
|
|
35
35
|
collectionRef: u
|
|
@@ -37,20 +37,20 @@ const x = "data-el-collection-item", Y = (n) => {
|
|
|
37
37
|
}
|
|
38
38
|
}, O = {
|
|
39
39
|
...P,
|
|
40
|
-
name:
|
|
40
|
+
name: i,
|
|
41
41
|
setup(u, { attrs: c }) {
|
|
42
|
-
const p = I(),
|
|
42
|
+
const p = I(), s = $(l, void 0);
|
|
43
43
|
C(a, {
|
|
44
44
|
collectionItemRef: p
|
|
45
45
|
}), v(() => {
|
|
46
46
|
const t = m(p);
|
|
47
|
-
t &&
|
|
47
|
+
t && s.itemMap.set(t, {
|
|
48
48
|
ref: t,
|
|
49
49
|
...c
|
|
50
50
|
});
|
|
51
51
|
}), h(() => {
|
|
52
52
|
const t = m(p);
|
|
53
|
-
|
|
53
|
+
s.itemMap.delete(t);
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as oe, computed as k, useAttrs as Ce, ref as d, onBeforeUnmount as Se, onMounted as Ie, openBlock as b, createBlock as Ne, unref as t, withCtx as v, createElementVNode as X, normalizeClass as y, normalizeStyle as Y, createElementBlock as w, withModifiers as N, renderSlot as g, createCommentVNode as Z, createVNode as T, Fragment as Te, renderList as Ae, createTextVNode as Fe, toDisplayString as Pe, mergeProps as x, withKeys as C, createSlots as Ve } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { E as De, l as Oe } from "./index-
|
|
4
|
-
import { i as se, E as Ke } from "./el-input-
|
|
5
|
-
import { E as Re } from "./index-
|
|
6
|
-
import {
|
|
7
|
-
import { b as Le,
|
|
8
|
-
import { u as Je } from "./index-
|
|
9
|
-
import { d as Qe } from "./debounce-
|
|
2
|
+
import { d as _e, o as Be } from "./use-form-common-props-631cacae.js";
|
|
3
|
+
import { E as De, l as Oe } from "./index-ec7ad93f.js";
|
|
4
|
+
import { i as se, E as Ke } from "./el-input-0f6ead19.js";
|
|
5
|
+
import { E as Re } from "./index-e0901394.js";
|
|
6
|
+
import { a as ee, U as A, I as K, C as le, p as Me, E as Ue, t as We } from "./el-popper-fdc7c793.js";
|
|
7
|
+
import { b as Le, d as te, N as He, e as B, f as D, h as qe, u as ze, _ as je, i as O, w as Ge } from "./base-ff0e366f.js";
|
|
8
|
+
import { u as Je } from "./index-269b8a8c.js";
|
|
9
|
+
import { d as Qe } from "./debounce-e9e47f9a.js";
|
|
10
10
|
const Xe = Le({
|
|
11
11
|
...se,
|
|
12
12
|
valueKey: {
|
|
@@ -67,7 +67,7 @@ const Xe = Le({
|
|
|
67
67
|
props: Xe,
|
|
68
68
|
emits: Ye,
|
|
69
69
|
setup(l, { expose: ne, emit: i }) {
|
|
70
|
-
const n = l, re = k(() => Me(n, Object.keys(se))), ue = Ce(), R = _e(), r =
|
|
70
|
+
const n = l, re = k(() => Me(n, Object.keys(se))), ue = Ce(), R = _e(), r = ze("autocomplete"), p = d(), M = d(), S = d(), U = d();
|
|
71
71
|
let W = !1, F = !1;
|
|
72
72
|
const c = d([]), a = d(-1), L = d(""), f = d(!1), I = d(!1), h = d(!1), E = Je(), ie = k(() => ue.style), m = k(() => (c.value.length > 0 || h.value) && f.value), H = k(() => !n.hideLoading && h.value), ce = k(() => p.value ? Array.from(p.value.$el.querySelectorAll("input")) : []), pe = () => {
|
|
73
73
|
m.value && (L.value = `${p.value.$el.offsetWidth}px`);
|
|
@@ -85,13 +85,13 @@ const Xe = Le({
|
|
|
85
85
|
const s = await n.fetchSuggestions(e, o);
|
|
86
86
|
O(s) && o(s);
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, z = Qe(q, n.debounce), fe = (e) => {
|
|
89
89
|
const o = !!e;
|
|
90
90
|
if (i(K, e), i(A, e), I.value = !1, f.value || (f.value = o), !n.triggerOnFocus && !e) {
|
|
91
91
|
I.value = !0, c.value = [];
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
z(e);
|
|
95
95
|
}, ve = (e) => {
|
|
96
96
|
var o;
|
|
97
97
|
R.value || (((o = e.target) == null ? void 0 : o.tagName) !== "INPUT" || ce.value.includes(document.activeElement)) && (f.value = !0);
|
|
@@ -104,7 +104,7 @@ const Xe = Le({
|
|
|
104
104
|
else {
|
|
105
105
|
f.value = !0, i("focus", e);
|
|
106
106
|
const s = (o = n.modelValue) != null ? o : "";
|
|
107
|
-
n.triggerOnFocus && !W &&
|
|
107
|
+
n.triggerOnFocus && !W && z(String(s));
|
|
108
108
|
}
|
|
109
109
|
}, he = (e) => {
|
|
110
110
|
setTimeout(() => {
|
|
@@ -117,7 +117,7 @@ const Xe = Le({
|
|
|
117
117
|
});
|
|
118
118
|
}, be = () => {
|
|
119
119
|
f.value = !1, i(A, ""), i("clear");
|
|
120
|
-
},
|
|
120
|
+
}, j = async () => {
|
|
121
121
|
var e;
|
|
122
122
|
(e = p.value) != null && e.isComposing || (m.value && a.value >= 0 && a.value < c.value.length ? P(c.value[a.value]) : n.selectWhenUnmatched && (i("select", { value: n.modelValue }), c.value = [], a.value = -1));
|
|
123
123
|
}, ye = (e) => {
|
|
@@ -169,7 +169,7 @@ const Xe = Le({
|
|
|
169
169
|
popperRef: S,
|
|
170
170
|
suggestions: c,
|
|
171
171
|
handleSelect: P,
|
|
172
|
-
handleKeyEnter:
|
|
172
|
+
handleKeyEnter: j,
|
|
173
173
|
focus: Ee,
|
|
174
174
|
blur: $e,
|
|
175
175
|
close: $,
|
|
@@ -283,7 +283,7 @@ const Xe = Le({
|
|
|
283
283
|
onKeydown: [
|
|
284
284
|
C(N((s) => V(a.value - 1), ["prevent"]), ["up"]),
|
|
285
285
|
C(N((s) => V(a.value + 1), ["prevent"]), ["down"]),
|
|
286
|
-
C(
|
|
286
|
+
C(j, ["enter"]),
|
|
287
287
|
C($, ["tab"]),
|
|
288
288
|
C(ye, ["esc"])
|
|
289
289
|
],
|
|
@@ -322,7 +322,7 @@ const Xe = Le({
|
|
|
322
322
|
}, 8, ["visible", "placement", "popper-class", "teleported", "append-to", "transition"]));
|
|
323
323
|
}
|
|
324
324
|
});
|
|
325
|
-
var et = /* @__PURE__ */
|
|
325
|
+
var et = /* @__PURE__ */ je(xe, [["__file", "autocomplete.vue"]]);
|
|
326
326
|
const ct = Ge(et);
|
|
327
327
|
export {
|
|
328
328
|
ct as E
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed as u, inject as M, ref as O, useSlots as R, Text as q, defineComponent as B, openBlock as m, createBlock as y, resolveDynamicComponent as N, mergeProps as H, unref as d, withCtx as V, createElementBlock as $, Fragment as J, renderSlot as k, normalizeClass as w, createCommentVNode as T, provide as L, reactive as Q, toRef as P } from "vue";
|
|
2
|
-
import { l as W, E as G } from "./index-
|
|
2
|
+
import { l as W, E as G } from "./index-ec7ad93f.js";
|
|
3
3
|
import { u as X } from "./index-2e331d74.js";
|
|
4
|
-
import { a as Y } from "./use-global-config-
|
|
5
|
-
import {
|
|
6
|
-
import { b as ot,
|
|
4
|
+
import { a as Y } from "./use-global-config-5d001623.js";
|
|
5
|
+
import { e as Z, a as tt, d as F, u as et, i as D } from "./use-form-common-props-631cacae.js";
|
|
6
|
+
import { b as ot, d as nt, u as I, _ as A, w as lt, A as at } from "./base-ff0e366f.js";
|
|
7
7
|
import { T as rt } from "./index-657047bb.js";
|
|
8
|
-
const
|
|
8
|
+
const K = Symbol("buttonGroupContextKey"), st = (t, c) => {
|
|
9
9
|
X({
|
|
10
10
|
from: "type.text",
|
|
11
11
|
replacement: "link",
|
|
@@ -13,21 +13,21 @@ const j = Symbol("buttonGroupContextKey"), st = (t, c) => {
|
|
|
13
13
|
scope: "props",
|
|
14
14
|
ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
|
|
15
15
|
}, u(() => t.type === "text"));
|
|
16
|
-
const
|
|
16
|
+
const l = M(K, void 0), n = Y("button"), { form: s } = Z(), a = tt(u(() => l == null ? void 0 : l.size)), o = F(), b = O(), v = R(), p = u(() => {
|
|
17
17
|
var e;
|
|
18
|
-
return t.type || (
|
|
18
|
+
return t.type || (l == null ? void 0 : l.type) || ((e = n.value) == null ? void 0 : e.type) || "";
|
|
19
19
|
}), g = u(() => {
|
|
20
20
|
var e, r, i;
|
|
21
|
-
return (i = (r = t.autoInsertSpace) != null ? r : (e =
|
|
21
|
+
return (i = (r = t.autoInsertSpace) != null ? r : (e = n.value) == null ? void 0 : e.autoInsertSpace) != null ? i : !1;
|
|
22
22
|
}), h = u(() => {
|
|
23
23
|
var e, r, i;
|
|
24
|
-
return (i = (r = t.plain) != null ? r : (e =
|
|
24
|
+
return (i = (r = t.plain) != null ? r : (e = n.value) == null ? void 0 : e.plain) != null ? i : !1;
|
|
25
25
|
}), S = u(() => {
|
|
26
26
|
var e, r, i;
|
|
27
|
-
return (i = (r = t.round) != null ? r : (e =
|
|
27
|
+
return (i = (r = t.round) != null ? r : (e = n.value) == null ? void 0 : e.round) != null ? i : !1;
|
|
28
28
|
}), C = u(() => {
|
|
29
29
|
var e, r, i;
|
|
30
|
-
return (i = (r = t.text) != null ? r : (e =
|
|
30
|
+
return (i = (r = t.text) != null ? r : (e = n.value) == null ? void 0 : e.text) != null ? i : !1;
|
|
31
31
|
}), _ = u(() => t.tag === "button" ? {
|
|
32
32
|
ariaDisabled: o.value || t.loading,
|
|
33
33
|
disabled: o.value || t.loading,
|
|
@@ -116,7 +116,7 @@ const j = Symbol("buttonGroupContextKey"), st = (t, c) => {
|
|
|
116
116
|
default: void 0
|
|
117
117
|
},
|
|
118
118
|
tag: {
|
|
119
|
-
type:
|
|
119
|
+
type: nt([String, Object]),
|
|
120
120
|
default: "button"
|
|
121
121
|
}
|
|
122
122
|
}), ut = {
|
|
@@ -126,28 +126,28 @@ function f(t, c = 20) {
|
|
|
126
126
|
return t.mix("#141414", c).toString();
|
|
127
127
|
}
|
|
128
128
|
function dt(t) {
|
|
129
|
-
const c = F(),
|
|
129
|
+
const c = F(), l = I("button");
|
|
130
130
|
return u(() => {
|
|
131
|
-
let
|
|
131
|
+
let n = {}, s = t.color;
|
|
132
132
|
if (s) {
|
|
133
133
|
const a = s.match(/var\((.*?)\)/);
|
|
134
134
|
a && (s = window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));
|
|
135
135
|
const o = new rt(s), b = t.dark ? o.tint(20).toString() : f(o, 20);
|
|
136
136
|
if (t.plain)
|
|
137
|
-
|
|
137
|
+
n = l.cssVarBlock({
|
|
138
138
|
"bg-color": t.dark ? f(o, 90) : o.tint(90).toString(),
|
|
139
139
|
"text-color": s,
|
|
140
140
|
"border-color": t.dark ? f(o, 50) : o.tint(50).toString(),
|
|
141
|
-
"hover-text-color": `var(${
|
|
141
|
+
"hover-text-color": `var(${l.cssVarName("color-white")})`,
|
|
142
142
|
"hover-bg-color": s,
|
|
143
143
|
"hover-border-color": s,
|
|
144
144
|
"active-bg-color": b,
|
|
145
|
-
"active-text-color": `var(${
|
|
145
|
+
"active-text-color": `var(${l.cssVarName("color-white")})`,
|
|
146
146
|
"active-border-color": b
|
|
147
|
-
}), c.value && (l
|
|
147
|
+
}), c.value && (n[l.cssVarBlockName("disabled-bg-color")] = t.dark ? f(o, 90) : o.tint(90).toString(), n[l.cssVarBlockName("disabled-text-color")] = t.dark ? f(o, 50) : o.tint(50).toString(), n[l.cssVarBlockName("disabled-border-color")] = t.dark ? f(o, 80) : o.tint(80).toString());
|
|
148
148
|
else {
|
|
149
|
-
const v = t.dark ? f(o, 30) : o.tint(30).toString(), p = o.isDark() ? `var(${
|
|
150
|
-
if (
|
|
149
|
+
const v = t.dark ? f(o, 30) : o.tint(30).toString(), p = o.isDark() ? `var(${l.cssVarName("color-white")})` : `var(${l.cssVarName("color-black")})`;
|
|
150
|
+
if (n = l.cssVarBlock({
|
|
151
151
|
"bg-color": s,
|
|
152
152
|
"text-color": p,
|
|
153
153
|
"border-color": s,
|
|
@@ -158,11 +158,11 @@ function dt(t) {
|
|
|
158
158
|
"active-border-color": b
|
|
159
159
|
}), c.value) {
|
|
160
160
|
const g = t.dark ? f(o, 50) : o.tint(50).toString();
|
|
161
|
-
l
|
|
161
|
+
n[l.cssVarBlockName("disabled-bg-color")] = g, n[l.cssVarBlockName("disabled-text-color")] = t.dark ? "rgba(255, 255, 255, 0.5)" : `var(${l.cssVarName("color-white")})`, n[l.cssVarBlockName("disabled-border-color")] = g;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
return
|
|
165
|
+
return n;
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
168
|
const bt = B({
|
|
@@ -171,8 +171,8 @@ const bt = B({
|
|
|
171
171
|
...bt,
|
|
172
172
|
props: z,
|
|
173
173
|
emits: ut,
|
|
174
|
-
setup(t, { expose: c, emit:
|
|
175
|
-
const
|
|
174
|
+
setup(t, { expose: c, emit: l }) {
|
|
175
|
+
const n = t, s = dt(n), a = I("button"), {
|
|
176
176
|
_ref: o,
|
|
177
177
|
_size: b,
|
|
178
178
|
_type: v,
|
|
@@ -183,18 +183,18 @@ const bt = B({
|
|
|
183
183
|
_text: C,
|
|
184
184
|
shouldAddSpace: _,
|
|
185
185
|
handleClick: x
|
|
186
|
-
} = st(
|
|
186
|
+
} = st(n, l), E = u(() => [
|
|
187
187
|
a.b(),
|
|
188
188
|
a.m(v.value),
|
|
189
189
|
a.m(b.value),
|
|
190
190
|
a.is("disabled", p.value),
|
|
191
|
-
a.is("loading",
|
|
191
|
+
a.is("loading", n.loading),
|
|
192
192
|
a.is("plain", h.value),
|
|
193
193
|
a.is("round", S.value),
|
|
194
|
-
a.is("circle",
|
|
194
|
+
a.is("circle", n.circle),
|
|
195
195
|
a.is("text", C.value),
|
|
196
|
-
a.is("link",
|
|
197
|
-
a.is("has-bg",
|
|
196
|
+
a.is("link", n.link),
|
|
197
|
+
a.is("has-bg", n.bg)
|
|
198
198
|
]);
|
|
199
199
|
return c({
|
|
200
200
|
ref: o,
|
|
@@ -238,7 +238,7 @@ const bt = B({
|
|
|
238
238
|
}, 16, ["class", "style", "onClick"]));
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
-
var ft = /* @__PURE__ */
|
|
241
|
+
var ft = /* @__PURE__ */ A(vt, [["__file", "button.vue"]]);
|
|
242
242
|
const mt = {
|
|
243
243
|
size: z.size,
|
|
244
244
|
type: z.type
|
|
@@ -249,23 +249,23 @@ const mt = {
|
|
|
249
249
|
props: mt,
|
|
250
250
|
setup(t) {
|
|
251
251
|
const c = t;
|
|
252
|
-
L(
|
|
252
|
+
L(K, Q({
|
|
253
253
|
size: P(c, "size"),
|
|
254
254
|
type: P(c, "type")
|
|
255
255
|
}));
|
|
256
|
-
const
|
|
257
|
-
return (
|
|
258
|
-
class: w(d(
|
|
256
|
+
const l = I("button");
|
|
257
|
+
return (n, s) => (m(), $("div", {
|
|
258
|
+
class: w(d(l).b("group"))
|
|
259
259
|
}, [
|
|
260
|
-
k(
|
|
260
|
+
k(n.$slots, "default")
|
|
261
261
|
], 2));
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
|
-
var
|
|
265
|
-
const xt =
|
|
266
|
-
ButtonGroup:
|
|
264
|
+
var j = /* @__PURE__ */ A(gt, [["__file", "button-group.vue"]]);
|
|
265
|
+
const xt = lt(ft, {
|
|
266
|
+
ButtonGroup: j
|
|
267
267
|
});
|
|
268
|
-
at(
|
|
268
|
+
at(j);
|
|
269
269
|
export {
|
|
270
270
|
xt as E,
|
|
271
271
|
it as b
|