st-comp 0.0.148 → 0.0.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.d.ts +3 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +5 -4
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +28 -24
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +577 -631
- package/es/Kline.cjs +1 -0
- package/es/Kline.js +1903 -0
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +677 -1428
- package/es/KlineNew.cjs +1 -3
- package/es/KlineNew.js +316 -2740
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +60 -58
- package/es/PasswordPrompt.cjs +1 -0
- package/es/PasswordPrompt.js +13 -0
- package/es/Table.cjs +1 -1
- package/es/Table.js +102 -98
- package/es/User.cjs +1 -1
- package/es/User.js +397 -373
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +2395 -1
- package/es/VirtualTable.cjs +5 -5
- package/es/VirtualTable.js +154 -151
- package/es/_initCloneObject-47814efa.cjs +1 -0
- package/es/{_initCloneObject-ec5c9523.js → _initCloneObject-e3d8a9ab.js} +13 -13
- package/es/base-0ca7c43a.cjs +5 -0
- package/es/base-19787dfb.js +303 -0
- package/es/{castArray-c770910d.js → castArray-8405000b.js} +1 -1
- package/es/castArray-a78ae889.cjs +1 -0
- package/es/{config-provider-feed0e8a.js → config-provider-0f6672af.js} +3 -3
- package/es/{config-provider-c87e277f.cjs → config-provider-cfbb9cd8.cjs} +1 -1
- package/es/{debounce-c64fb3b5.js → debounce-6cb0781f.js} +29 -29
- package/es/debounce-cf26af24.cjs +1 -0
- package/es/{dropdown-c9272ca3.js → dropdown-17b3ef6a.js} +4 -4
- package/es/{dropdown-6bdb3cf4.cjs → dropdown-790d31ea.cjs} +1 -1
- package/es/el-button-0bf1d532.js +236 -0
- package/es/el-button-62966947.cjs +1 -0
- package/es/el-checkbox-group-45247bbf.cjs +1 -0
- package/es/el-checkbox-group-d53bc316.js +67 -0
- package/es/el-empty-2ece1134.cjs +1 -0
- package/es/{el-empty-89a523ed.js → el-empty-bd5343a7.js} +10 -9
- package/es/{el-form-item-55d36086.js → el-form-item-05c0e335.js} +82 -81
- package/es/el-form-item-47e255d4.cjs +12 -0
- package/es/{el-input-cb528574.js → el-input-1e309239.js} +46 -45
- package/es/el-input-6a3805c5.cjs +1 -0
- package/es/{el-input-number-ce30bfa8.js → el-input-number-60ebc58f.js} +50 -48
- package/es/el-input-number-96ff2e47.cjs +1 -0
- package/es/el-menu-item-4c9eb7ad.cjs +1 -0
- package/es/el-menu-item-6c6236a1.js +772 -0
- package/es/{el-message-d51d032b.js → el-message-7d927756.js} +56 -55
- package/es/el-message-d5ed7a4f.cjs +1 -0
- package/es/el-overlay-26bf0945.js +521 -0
- package/es/el-overlay-41994f67.cjs +1 -0
- package/es/el-popover-17e2e66c.js +140 -0
- package/es/el-popover-7bd8a7c3.cjs +1 -0
- package/es/el-popper-7adbf1c6.cjs +1 -0
- package/es/{el-popper-f4b01f85.js → el-popper-b6527ae2.js} +217 -216
- package/es/{el-scrollbar-e8e93751.js → el-scrollbar-29bcab5f.js} +22 -22
- package/es/el-scrollbar-ac525239.cjs +1 -0
- package/es/el-select-31f8ac8a.cjs +1 -0
- package/es/{el-select-e71af2e6.js → el-select-7395562b.js} +42 -40
- package/es/el-table-column-47d80736.js +3804 -0
- package/es/el-table-column-bdc46568.cjs +14 -0
- package/es/{el-tag-d65768f4.js → el-tag-7414e0c7.js} +59 -58
- package/es/el-tag-9732314f.cjs +1 -0
- package/es/{index-da646183.cjs → index-1d85ba4b.cjs} +1 -1
- package/es/{index-92ba4292.js → index-273822d1.js} +26 -25
- package/es/index-2f958e56.cjs +3 -0
- package/es/index-375e8de4.cjs +5 -0
- package/es/{index-121e2861.js → index-621b092b.js} +3 -3
- package/es/index-657047bb.js +513 -0
- package/es/{index-18416440.cjs → index-65b4113e.cjs} +1 -1
- package/es/index-70372cdb.js +519 -0
- package/es/{use-form-common-props-4d37077d.js → index-72151b24.js} +151 -312
- package/es/index-9e6e8d03.cjs +1 -0
- package/es/index-ab96bbf4.js +156 -0
- package/es/index-afc88a4b.cjs +1 -0
- package/es/index-c066fe0d.js +82 -0
- package/es/index-ce3223db.cjs +1 -0
- package/es/{index-709675d5.js → index-dc22ffe4.js} +18 -18
- package/es/index-eea0bcb3.cjs +1 -0
- package/es/index.esm-8d9a2abe.js +2432 -0
- package/es/index.esm-94a95a2a.cjs +3 -0
- package/es/{raf-f55e0daa.js → raf-a532c514.js} +1 -1
- package/es/{raf-2d77cbbe.cjs → raf-f46caea0.cjs} +1 -1
- package/es/{scroll-c8ac196e.cjs → scroll-339681d4.cjs} +1 -1
- package/es/{scroll-ca84f80a.js → scroll-d787d648.js} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-5ff2f51b.js +171 -0
- package/es/use-form-common-props-74a96df2.cjs +2 -0
- package/es/vnode-6a0c7411.js +14 -0
- package/es/vnode-b15eb11b.cjs +1 -0
- package/es/{zh-cn-414d7f0c.cjs → zh-cn-36f34912.cjs} +1 -1
- package/es/{zh-cn-23c8e0d1.js → zh-cn-f37255ae.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +206 -206
- package/lib/{index-ffeb163e.js → index-d0cb2fa2.js} +33754 -31705
- package/lib/{python-0ec8f68c.js → python-050ba5a4.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/Kline/components/Contextmenu/index.vue +110 -0
- package/packages/Kline/components/Tips/index.vue +40 -0
- package/packages/Kline/componentsNew/KlineSlide/index.vue +155 -0
- package/packages/Kline/componentsNew/KlineSub/index.vue +297 -0
- package/packages/Kline/componentsNew/KlineTips/index.vue +66 -0
- package/packages/Kline/componentsNew/KlineUtils/index.vue +84 -0
- package/packages/Kline/componentsNew/Tips/index.vue +33 -0
- package/packages/Kline/formatKlineData.ts +109 -0
- package/packages/Kline/images/buy.svg +1 -0
- package/packages/Kline/images/pen.png +0 -0
- package/packages/Kline/images/sell.svg +1 -0
- package/packages/Kline/images/t.svg +1 -0
- package/packages/Kline/index.ts +16 -0
- package/packages/Kline/index.vue +891 -0
- package/packages/Kline/option.ts +539 -0
- package/packages/Kline/type.d.ts +219 -0
- package/packages/Kline/utils.ts +682 -0
- package/packages/PasswordPrompt/index.ts +8 -0
- package/packages/PasswordPrompt/index.vue +266 -0
- package/packages/User/index.vue +97 -58
- package/packages/index.ts +4 -0
- package/src/pages/Kline/index.vue +12 -0
- package/src/pages/PasswordPrompt/index.vue +12 -0
- package/src/router/routes.ts +10 -0
- package/es/_initCloneObject-476b02ce.cjs +0 -1
- package/es/base-6ccc8fc2.cjs +0 -9
- package/es/base-950bac7e.js +0 -816
- package/es/castArray-374558a5.cjs +0 -1
- package/es/debounce-a6b4f91b.cjs +0 -1
- package/es/el-button-b8f71c7d.cjs +0 -1
- package/es/el-button-d7b6eebd.js +0 -745
- package/es/el-empty-12eece57.cjs +0 -1
- package/es/el-form-item-ebbf096d.cjs +0 -12
- package/es/el-input-2c7e70a3.cjs +0 -1
- package/es/el-input-number-8e168e83.cjs +0 -1
- package/es/el-message-612c2346.cjs +0 -1
- package/es/el-overlay-07414277.js +0 -526
- package/es/el-overlay-fb255b83.cjs +0 -1
- package/es/el-popper-8360bd91.cjs +0 -1
- package/es/el-scrollbar-271142ad.cjs +0 -1
- package/es/el-select-2e71d4af.cjs +0 -1
- package/es/el-table-column-9fe79f05.cjs +0 -14
- package/es/el-table-column-dc562f14.js +0 -3933
- package/es/el-tag-930e7b32.cjs +0 -1
- package/es/index-0ed86daf.cjs +0 -3
- package/es/index-674d2fd7.cjs +0 -1
- package/es/index-aece600c.js +0 -81
- package/es/use-form-common-props-c1960844.cjs +0 -2
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { computed as f, inject as j, ref as A, useSlots as U, Text as M, defineComponent as _, openBlock as b, createBlock as y, resolveDynamicComponent as S, mergeProps as O, unref as i, withCtx as C, createElementBlock as N, Fragment as R, renderSlot as B, normalizeClass as V, createCommentVNode as z, provide as q, reactive as H, toRef as I } from "vue";
|
|
2
|
+
import { l as J, E } from "./index-72151b24.js";
|
|
3
|
+
import { a as L, b as Q } from "./index-c066fe0d.js";
|
|
4
|
+
import { d as W, a as X, b as P, u as Y, i as T } from "./use-form-common-props-5ff2f51b.js";
|
|
5
|
+
import { b as Z, d as tt, u as w, _ as G, w as ot, s as et } from "./base-19787dfb.js";
|
|
6
|
+
import { T as nt } from "./index-657047bb.js";
|
|
7
|
+
const D = Symbol("buttonGroupContextKey"), lt = (t, r) => {
|
|
8
|
+
L({
|
|
9
|
+
from: "type.text",
|
|
10
|
+
replacement: "link",
|
|
11
|
+
version: "3.0.0",
|
|
12
|
+
scope: "props",
|
|
13
|
+
ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
|
|
14
|
+
}, f(() => t.type === "text"));
|
|
15
|
+
const n = j(D, void 0), e = Q("button"), { form: s } = W(), a = X(f(() => n == null ? void 0 : n.size)), o = P(), c = A(), u = U(), m = f(() => t.type || (n == null ? void 0 : n.type) || ""), g = f(() => {
|
|
16
|
+
var l, p, v;
|
|
17
|
+
return (v = (p = t.autoInsertSpace) != null ? p : (l = e.value) == null ? void 0 : l.autoInsertSpace) != null ? v : !1;
|
|
18
|
+
}), k = f(() => t.tag === "button" ? {
|
|
19
|
+
ariaDisabled: o.value || t.loading,
|
|
20
|
+
disabled: o.value || t.loading,
|
|
21
|
+
autofocus: t.autofocus,
|
|
22
|
+
type: t.nativeType
|
|
23
|
+
} : {}), h = f(() => {
|
|
24
|
+
var l;
|
|
25
|
+
const p = (l = u.default) == null ? void 0 : l.call(u);
|
|
26
|
+
if (g.value && (p == null ? void 0 : p.length) === 1) {
|
|
27
|
+
const v = p[0];
|
|
28
|
+
if ((v == null ? void 0 : v.type) === M) {
|
|
29
|
+
const K = v.children;
|
|
30
|
+
return /^\p{Unified_Ideograph}{2}$/u.test(K.trim());
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return !1;
|
|
34
|
+
});
|
|
35
|
+
return {
|
|
36
|
+
_disabled: o,
|
|
37
|
+
_size: a,
|
|
38
|
+
_type: m,
|
|
39
|
+
_ref: c,
|
|
40
|
+
_props: k,
|
|
41
|
+
shouldAddSpace: h,
|
|
42
|
+
handleClick: (l) => {
|
|
43
|
+
if (o.value || t.loading) {
|
|
44
|
+
l.stopPropagation();
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
t.nativeType === "reset" && (s == null || s.resetFields()), r("click", l);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}, at = [
|
|
51
|
+
"default",
|
|
52
|
+
"primary",
|
|
53
|
+
"success",
|
|
54
|
+
"warning",
|
|
55
|
+
"info",
|
|
56
|
+
"danger",
|
|
57
|
+
"text",
|
|
58
|
+
""
|
|
59
|
+
], st = ["button", "submit", "reset"], $ = Z({
|
|
60
|
+
size: Y,
|
|
61
|
+
disabled: Boolean,
|
|
62
|
+
type: {
|
|
63
|
+
type: String,
|
|
64
|
+
values: at,
|
|
65
|
+
default: ""
|
|
66
|
+
},
|
|
67
|
+
icon: {
|
|
68
|
+
type: T
|
|
69
|
+
},
|
|
70
|
+
nativeType: {
|
|
71
|
+
type: String,
|
|
72
|
+
values: st,
|
|
73
|
+
default: "button"
|
|
74
|
+
},
|
|
75
|
+
loading: Boolean,
|
|
76
|
+
loadingIcon: {
|
|
77
|
+
type: T,
|
|
78
|
+
default: () => J
|
|
79
|
+
},
|
|
80
|
+
plain: Boolean,
|
|
81
|
+
text: Boolean,
|
|
82
|
+
link: Boolean,
|
|
83
|
+
bg: Boolean,
|
|
84
|
+
autofocus: Boolean,
|
|
85
|
+
round: Boolean,
|
|
86
|
+
circle: Boolean,
|
|
87
|
+
color: String,
|
|
88
|
+
dark: Boolean,
|
|
89
|
+
autoInsertSpace: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: void 0
|
|
92
|
+
},
|
|
93
|
+
tag: {
|
|
94
|
+
type: tt([String, Object]),
|
|
95
|
+
default: "button"
|
|
96
|
+
}
|
|
97
|
+
}), rt = {
|
|
98
|
+
click: (t) => t instanceof MouseEvent
|
|
99
|
+
};
|
|
100
|
+
function d(t, r = 20) {
|
|
101
|
+
return t.mix("#141414", r).toString();
|
|
102
|
+
}
|
|
103
|
+
function it(t) {
|
|
104
|
+
const r = P(), n = w("button");
|
|
105
|
+
return f(() => {
|
|
106
|
+
let e = {}, s = t.color;
|
|
107
|
+
if (s) {
|
|
108
|
+
const a = s.match(/var\((.*?)\)/);
|
|
109
|
+
a && (s = window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));
|
|
110
|
+
const o = new nt(s), c = t.dark ? o.tint(20).toString() : d(o, 20);
|
|
111
|
+
if (t.plain)
|
|
112
|
+
e = n.cssVarBlock({
|
|
113
|
+
"bg-color": t.dark ? d(o, 90) : o.tint(90).toString(),
|
|
114
|
+
"text-color": s,
|
|
115
|
+
"border-color": t.dark ? d(o, 50) : o.tint(50).toString(),
|
|
116
|
+
"hover-text-color": `var(${n.cssVarName("color-white")})`,
|
|
117
|
+
"hover-bg-color": s,
|
|
118
|
+
"hover-border-color": s,
|
|
119
|
+
"active-bg-color": c,
|
|
120
|
+
"active-text-color": `var(${n.cssVarName("color-white")})`,
|
|
121
|
+
"active-border-color": c
|
|
122
|
+
}), r.value && (e[n.cssVarBlockName("disabled-bg-color")] = t.dark ? d(o, 90) : o.tint(90).toString(), e[n.cssVarBlockName("disabled-text-color")] = t.dark ? d(o, 50) : o.tint(50).toString(), e[n.cssVarBlockName("disabled-border-color")] = t.dark ? d(o, 80) : o.tint(80).toString());
|
|
123
|
+
else {
|
|
124
|
+
const u = t.dark ? d(o, 30) : o.tint(30).toString(), m = o.isDark() ? `var(${n.cssVarName("color-white")})` : `var(${n.cssVarName("color-black")})`;
|
|
125
|
+
if (e = n.cssVarBlock({
|
|
126
|
+
"bg-color": s,
|
|
127
|
+
"text-color": m,
|
|
128
|
+
"border-color": s,
|
|
129
|
+
"hover-bg-color": u,
|
|
130
|
+
"hover-text-color": m,
|
|
131
|
+
"hover-border-color": u,
|
|
132
|
+
"active-bg-color": c,
|
|
133
|
+
"active-border-color": c
|
|
134
|
+
}), r.value) {
|
|
135
|
+
const g = t.dark ? d(o, 50) : o.tint(50).toString();
|
|
136
|
+
e[n.cssVarBlockName("disabled-bg-color")] = g, e[n.cssVarBlockName("disabled-text-color")] = t.dark ? "rgba(255, 255, 255, 0.5)" : `var(${n.cssVarName("color-white")})`, e[n.cssVarBlockName("disabled-border-color")] = g;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return e;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
const ct = _({
|
|
144
|
+
name: "ElButton"
|
|
145
|
+
}), ut = /* @__PURE__ */ _({
|
|
146
|
+
...ct,
|
|
147
|
+
props: $,
|
|
148
|
+
emits: rt,
|
|
149
|
+
setup(t, { expose: r, emit: n }) {
|
|
150
|
+
const e = t, s = it(e), a = w("button"), { _ref: o, _size: c, _type: u, _disabled: m, _props: g, shouldAddSpace: k, handleClick: h } = lt(e, n), x = f(() => [
|
|
151
|
+
a.b(),
|
|
152
|
+
a.m(u.value),
|
|
153
|
+
a.m(c.value),
|
|
154
|
+
a.is("disabled", m.value),
|
|
155
|
+
a.is("loading", e.loading),
|
|
156
|
+
a.is("plain", e.plain),
|
|
157
|
+
a.is("round", e.round),
|
|
158
|
+
a.is("circle", e.circle),
|
|
159
|
+
a.is("text", e.text),
|
|
160
|
+
a.is("link", e.link),
|
|
161
|
+
a.is("has-bg", e.bg)
|
|
162
|
+
]);
|
|
163
|
+
return r({
|
|
164
|
+
ref: o,
|
|
165
|
+
size: c,
|
|
166
|
+
type: u,
|
|
167
|
+
disabled: m,
|
|
168
|
+
shouldAddSpace: k
|
|
169
|
+
}), (l, p) => (b(), y(S(l.tag), O({
|
|
170
|
+
ref_key: "_ref",
|
|
171
|
+
ref: o
|
|
172
|
+
}, i(g), {
|
|
173
|
+
class: i(x),
|
|
174
|
+
style: i(s),
|
|
175
|
+
onClick: i(h)
|
|
176
|
+
}), {
|
|
177
|
+
default: C(() => [
|
|
178
|
+
l.loading ? (b(), N(R, { key: 0 }, [
|
|
179
|
+
l.$slots.loading ? B(l.$slots, "loading", { key: 0 }) : (b(), y(i(E), {
|
|
180
|
+
key: 1,
|
|
181
|
+
class: V(i(a).is("loading"))
|
|
182
|
+
}, {
|
|
183
|
+
default: C(() => [
|
|
184
|
+
(b(), y(S(l.loadingIcon)))
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["class"]))
|
|
188
|
+
], 64)) : l.icon || l.$slots.icon ? (b(), y(i(E), { key: 1 }, {
|
|
189
|
+
default: C(() => [
|
|
190
|
+
l.icon ? (b(), y(S(l.icon), { key: 0 })) : B(l.$slots, "icon", { key: 1 })
|
|
191
|
+
]),
|
|
192
|
+
_: 3
|
|
193
|
+
})) : z("v-if", !0),
|
|
194
|
+
l.$slots.default ? (b(), N("span", {
|
|
195
|
+
key: 2,
|
|
196
|
+
class: V({ [i(a).em("text", "expand")]: i(k) })
|
|
197
|
+
}, [
|
|
198
|
+
B(l.$slots, "default")
|
|
199
|
+
], 2)) : z("v-if", !0)
|
|
200
|
+
]),
|
|
201
|
+
_: 3
|
|
202
|
+
}, 16, ["class", "style", "onClick"]));
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
var dt = /* @__PURE__ */ G(ut, [["__file", "button.vue"]]);
|
|
206
|
+
const bt = {
|
|
207
|
+
size: $.size,
|
|
208
|
+
type: $.type
|
|
209
|
+
}, ft = _({
|
|
210
|
+
name: "ElButtonGroup"
|
|
211
|
+
}), mt = /* @__PURE__ */ _({
|
|
212
|
+
...ft,
|
|
213
|
+
props: bt,
|
|
214
|
+
setup(t) {
|
|
215
|
+
const r = t;
|
|
216
|
+
q(D, H({
|
|
217
|
+
size: I(r, "size"),
|
|
218
|
+
type: I(r, "type")
|
|
219
|
+
}));
|
|
220
|
+
const n = w("button");
|
|
221
|
+
return (e, s) => (b(), N("div", {
|
|
222
|
+
class: V(i(n).b("group"))
|
|
223
|
+
}, [
|
|
224
|
+
B(e.$slots, "default")
|
|
225
|
+
], 2));
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
var F = /* @__PURE__ */ G(mt, [["__file", "button-group.vue"]]);
|
|
229
|
+
const _t = ot(dt, {
|
|
230
|
+
ButtonGroup: F
|
|
231
|
+
});
|
|
232
|
+
et(F);
|
|
233
|
+
export {
|
|
234
|
+
_t as E,
|
|
235
|
+
at as b
|
|
236
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),B=require("./index-afc88a4b.cjs"),S=require("./index-2f958e56.cjs"),b=require("./use-form-common-props-74a96df2.cjs"),u=require("./base-0ca7c43a.cjs"),V=require("./index-eea0bcb3.cjs"),h=Symbol("buttonGroupContextKey"),w=(o,c)=>{S.useDeprecated({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},e.computed(()=>o.type==="text"));const l=e.inject(h,void 0),n=S.useGlobalConfig("button"),{form:s}=b.useFormItem(),a=b.useFormSize(e.computed(()=>l==null?void 0:l.size)),t=b.useFormDisabled(),i=e.ref(),d=e.useSlots(),p=e.computed(()=>o.type||(l==null?void 0:l.type)||""),v=e.computed(()=>{var r,f,g;return(g=(f=o.autoInsertSpace)!=null?f:(r=n.value)==null?void 0:r.autoInsertSpace)!=null?g:!1}),k=e.computed(()=>o.tag==="button"?{ariaDisabled:t.value||o.loading,disabled:t.value||o.loading,autofocus:o.autofocus,type:o.nativeType}:{}),y=e.computed(()=>{var r;const f=(r=d.default)==null?void 0:r.call(d);if(v.value&&(f==null?void 0:f.length)===1){const g=f[0];if((g==null?void 0:g.type)===e.Text){const $=g.children;return/^\p{Unified_Ideograph}{2}$/u.test($.trim())}}return!1});return{_disabled:t,_size:a,_type:p,_ref:i,_props:k,shouldAddSpace:y,handleClick:r=>{if(t.value||o.loading){r.stopPropagation();return}o.nativeType==="reset"&&(s==null||s.resetFields()),c("click",r)}}},x=["default","primary","success","warning","info","danger","text",""],z=["button","submit","reset"],C=u.buildProps({size:b.useSizeProp,disabled:Boolean,type:{type:String,values:x,default:""},icon:{type:b.iconPropType},nativeType:{type:String,values:z,default:"button"},loading:Boolean,loadingIcon:{type:b.iconPropType,default:()=>B.loading_default},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:u.definePropType([String,Object]),default:"button"}}),E={click:o=>o instanceof MouseEvent};function m(o,c=20){return o.mix("#141414",c).toString()}function I(o){const c=b.useFormDisabled(),l=u.useNamespace("button");return e.computed(()=>{let n={},s=o.color;if(s){const a=s.match(/var\((.*?)\)/);a&&(s=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const t=new V.TinyColor(s),i=o.dark?t.tint(20).toString():m(t,20);if(o.plain)n=l.cssVarBlock({"bg-color":o.dark?m(t,90):t.tint(90).toString(),"text-color":s,"border-color":o.dark?m(t,50):t.tint(50).toString(),"hover-text-color":`var(${l.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":i,"active-text-color":`var(${l.cssVarName("color-white")})`,"active-border-color":i}),c.value&&(n[l.cssVarBlockName("disabled-bg-color")]=o.dark?m(t,90):t.tint(90).toString(),n[l.cssVarBlockName("disabled-text-color")]=o.dark?m(t,50):t.tint(50).toString(),n[l.cssVarBlockName("disabled-border-color")]=o.dark?m(t,80):t.tint(80).toString());else{const d=o.dark?m(t,30):t.tint(30).toString(),p=t.isDark()?`var(${l.cssVarName("color-white")})`:`var(${l.cssVarName("color-black")})`;if(n=l.cssVarBlock({"bg-color":s,"text-color":p,"border-color":s,"hover-bg-color":d,"hover-text-color":p,"hover-border-color":d,"active-bg-color":i,"active-border-color":i}),c.value){const v=o.dark?m(t,50):t.tint(50).toString();n[l.cssVarBlockName("disabled-bg-color")]=v,n[l.cssVarBlockName("disabled-text-color")]=o.dark?"rgba(255, 255, 255, 0.5)":`var(${l.cssVarName("color-white")})`,n[l.cssVarBlockName("disabled-border-color")]=v}}}return n})}const P=e.defineComponent({name:"ElButton"}),T=e.defineComponent({...P,props:C,emits:E,setup(o,{expose:c,emit:l}){const n=o,s=I(n),a=u.useNamespace("button"),{_ref:t,_size:i,_type:d,_disabled:p,_props:v,shouldAddSpace:k,handleClick:y}=w(n,l),_=e.computed(()=>[a.b(),a.m(d.value),a.m(i.value),a.is("disabled",p.value),a.is("loading",n.loading),a.is("plain",n.plain),a.is("round",n.round),a.is("circle",n.circle),a.is("text",n.text),a.is("link",n.link),a.is("has-bg",n.bg)]);return c({ref:t,size:i,type:d,disabled:p,shouldAddSpace:k}),(r,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.tag),e.mergeProps({ref_key:"_ref",ref:t},e.unref(v),{class:e.unref(_),style:e.unref(s),onClick:e.unref(y)}),{default:e.withCtx(()=>[r.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[r.$slots.loading?e.renderSlot(r.$slots,"loading",{key:0}):(e.openBlock(),e.createBlock(e.unref(B.ElIcon),{key:1,class:e.normalizeClass(e.unref(a).is("loading"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.loadingIcon)))]),_:1},8,["class"]))],64)):r.icon||r.$slots.icon?(e.openBlock(),e.createBlock(e.unref(B.ElIcon),{key:1},{default:e.withCtx(()=>[r.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon),{key:0})):e.renderSlot(r.$slots,"icon",{key:1})]),_:3})):e.createCommentVNode("v-if",!0),r.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass({[e.unref(a).em("text","expand")]:e.unref(k)})},[e.renderSlot(r.$slots,"default")],2)):e.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var D=u._export_sfc(T,[["__file","button.vue"]]);const F={size:C.size,type:C.type},G=e.defineComponent({name:"ElButtonGroup"}),q=e.defineComponent({...G,props:F,setup(o){const c=o;e.provide(h,e.reactive({size:e.toRef(c,"size"),type:e.toRef(c,"type")}));const l=u.useNamespace("button");return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(l).b("group"))},[e.renderSlot(n.$slots,"default")],2))}});var N=u._export_sfc(q,[["__file","button-group.vue"]]);const K=u.withInstall(D,{ButtonGroup:N});u.withNoopInstall(N);exports.ElButton=K;exports.buttonTypes=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),n=require("./base-0ca7c43a.cjs"),m=require("./use-form-common-props-74a96df2.cjs"),y=n.buildProps({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:m.componentSizes,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),C=e.defineComponent({name:"ElText"}),b=e.defineComponent({...C,props:y,setup(v){const s=v,t=e.ref(),_=m.useFormSize(),o=n.useNamespace("text"),h=e.computed(()=>[o.b(),o.m(s.type),o.m(_.value),o.is("truncated",s.truncated),o.is("line-clamp",!n.isUndefined(s.lineClamp))]),x=e.useAttrs().title,c=()=>{var l,a,d,p,f;if(x)return;let u=!1;const g=((l=t.value)==null?void 0:l.textContent)||"";if(s.truncated){const i=(a=t.value)==null?void 0:a.offsetWidth,r=(d=t.value)==null?void 0:d.scrollWidth;i&&r&&r>i&&(u=!0)}else if(!n.isUndefined(s.lineClamp)){const i=(p=t.value)==null?void 0:p.offsetHeight,r=(f=t.value)==null?void 0:f.scrollHeight;i&&r&&r>i&&(u=!0)}u?t.value.setAttribute("title",g):t.value.removeAttribute("title")};return e.onMounted(c),e.onUpdated(c),(l,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.tag),{ref_key:"textRef",ref:t,class:e.normalizeClass(e.unref(h)),style:e.normalizeStyle({"-webkit-line-clamp":l.lineClamp})},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["class","style"]))}});var S=n._export_sfc(b,[["__file","text.vue"]]);const T=n.withInstall(S);exports.ElText=T;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent as f, ref as g, computed as y, useAttrs as b, onMounted as C, onUpdated as S, openBlock as T, createBlock as k, resolveDynamicComponent as w, normalizeClass as z, unref as A, normalizeStyle as B, withCtx as E, renderSlot as H } from "vue";
|
|
2
|
+
import { b as W, u as N, k as p, _ as P, w as R } from "./base-19787dfb.js";
|
|
3
|
+
import { c as U, a as D } from "./use-form-common-props-5ff2f51b.js";
|
|
4
|
+
const F = W({
|
|
5
|
+
type: {
|
|
6
|
+
type: String,
|
|
7
|
+
values: ["primary", "success", "info", "warning", "danger", ""],
|
|
8
|
+
default: ""
|
|
9
|
+
},
|
|
10
|
+
size: {
|
|
11
|
+
type: String,
|
|
12
|
+
values: U,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
truncated: Boolean,
|
|
16
|
+
lineClamp: {
|
|
17
|
+
type: [String, Number]
|
|
18
|
+
},
|
|
19
|
+
tag: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "span"
|
|
22
|
+
}
|
|
23
|
+
}), G = f({
|
|
24
|
+
name: "ElText"
|
|
25
|
+
}), I = /* @__PURE__ */ f({
|
|
26
|
+
...G,
|
|
27
|
+
props: F,
|
|
28
|
+
setup(m) {
|
|
29
|
+
const l = m, e = g(), v = D(), s = N("text"), _ = y(() => [
|
|
30
|
+
s.b(),
|
|
31
|
+
s.m(l.type),
|
|
32
|
+
s.m(v.value),
|
|
33
|
+
s.is("truncated", l.truncated),
|
|
34
|
+
s.is("line-clamp", !p(l.lineClamp))
|
|
35
|
+
]), h = b().title, r = () => {
|
|
36
|
+
var t, i, u, c, d;
|
|
37
|
+
if (h)
|
|
38
|
+
return;
|
|
39
|
+
let a = !1;
|
|
40
|
+
const x = ((t = e.value) == null ? void 0 : t.textContent) || "";
|
|
41
|
+
if (l.truncated) {
|
|
42
|
+
const n = (i = e.value) == null ? void 0 : i.offsetWidth, o = (u = e.value) == null ? void 0 : u.scrollWidth;
|
|
43
|
+
n && o && o > n && (a = !0);
|
|
44
|
+
} else if (!p(l.lineClamp)) {
|
|
45
|
+
const n = (c = e.value) == null ? void 0 : c.offsetHeight, o = (d = e.value) == null ? void 0 : d.scrollHeight;
|
|
46
|
+
n && o && o > n && (a = !0);
|
|
47
|
+
}
|
|
48
|
+
a ? e.value.setAttribute("title", x) : e.value.removeAttribute("title");
|
|
49
|
+
};
|
|
50
|
+
return C(r), S(r), (t, i) => (T(), k(w(t.tag), {
|
|
51
|
+
ref_key: "textRef",
|
|
52
|
+
ref: e,
|
|
53
|
+
class: z(A(_)),
|
|
54
|
+
style: B({ "-webkit-line-clamp": t.lineClamp })
|
|
55
|
+
}, {
|
|
56
|
+
default: E(() => [
|
|
57
|
+
H(t.$slots, "default")
|
|
58
|
+
]),
|
|
59
|
+
_: 3
|
|
60
|
+
}, 8, ["class", "style"]));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
var K = /* @__PURE__ */ P(I, [["__file", "text.vue"]]);
|
|
64
|
+
const q = R(K);
|
|
65
|
+
export {
|
|
66
|
+
q as E
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),o=require("./base-0ca7c43a.cjs"),c=require("./index-375e8de4.cjs"),m=e.defineComponent({name:"ImgEmpty"}),f=e.defineComponent({...m,setup(a){const l=o.useNamespace("empty"),t=c.useId();return(n,s)=>(e.openBlock(),e.createElementBlock("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`linearGradient-1-${e.unref(t)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[e.createElementVNode("stop",{"stop-color":`var(${e.unref(l).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),e.createElementVNode("stop",{"stop-color":`var(${e.unref(l).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),e.createElementVNode("linearGradient",{id:`linearGradient-2-${e.unref(t)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[e.createElementVNode("stop",{"stop-color":`var(${e.unref(l).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),e.createElementVNode("stop",{"stop-color":`var(${e.unref(l).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),e.createElementVNode("rect",{id:`path-3-${e.unref(t)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),e.createElementVNode("g",{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("g",{id:"B-type",transform:"translate(-1268.000000, -535.000000)"},[e.createElementVNode("g",{id:"Group-2",transform:"translate(1268.000000, 535.000000)"},[e.createElementVNode("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${e.unref(l).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),e.createElementVNode("polygon",{id:"Rectangle-Copy-14",fill:`var(${e.unref(l).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),e.createElementVNode("g",{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[e.createElementVNode("polygon",{id:"Rectangle-Copy-10",fill:`var(${e.unref(l).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),e.createElementVNode("polygon",{id:"Rectangle-Copy-11",fill:`var(${e.unref(l).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),e.createElementVNode("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${e.unref(t)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),e.createElementVNode("polygon",{id:"Rectangle-Copy-13",fill:`var(${e.unref(l).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),e.createElementVNode("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e.unref(t)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),e.createElementVNode("g",{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},[e.createElementVNode("use",{id:"Mask",fill:`var(${e.unref(l).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e.unref(t)}`},null,8,["fill","xlink:href"]),e.createElementVNode("polygon",{id:"Rectangle-Copy",fill:`var(${e.unref(l).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${e.unref(t)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),e.createElementVNode("polygon",{id:"Rectangle-Copy-18",fill:`var(${e.unref(l).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var d=o._export_sfc(f,[["__file","img-empty.vue"]]);const p=o.buildProps({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),u=e.defineComponent({name:"ElEmpty"}),y=e.defineComponent({...u,props:p,setup(a){const l=a,{t}=c.useLocale(),n=o.useNamespace("empty"),s=e.computed(()=>l.description||t("el.table.emptyText")),i=e.computed(()=>({width:o.addUnit(l.imageSize)}));return(r,E)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(n).b())},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).e("image")),style:e.normalizeStyle(e.unref(i))},[r.image?(e.openBlock(),e.createElementBlock("img",{key:0,src:r.image,ondragstart:"return false"},null,8,["src"])):e.renderSlot(r.$slots,"image",{key:1},()=>[e.createVNode(d)])],6),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n).e("description"))},[r.$slots.description?e.renderSlot(r.$slots,"description",{key:0}):(e.openBlock(),e.createElementBlock("p",{key:1},e.toDisplayString(e.unref(s)),1))],2),r.$slots.default?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(n).e("bottom"))},[e.renderSlot(r.$slots,"default")],2)):e.createCommentVNode("v-if",!0)],2))}});var g=o._export_sfc(y,[["__file","empty.vue"]]);const N=o.withInstall(g);exports.ElEmpty=N;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { defineComponent as c, openBlock as r, createElementBlock as n, createElementVNode as l, unref as e, computed as d, normalizeClass as i, normalizeStyle as k, renderSlot as p, createVNode as v, toDisplayString as $, createCommentVNode as h } from "vue";
|
|
2
|
-
import { u
|
|
2
|
+
import { u, _ as y, b as C, v as _, w as N } from "./base-19787dfb.js";
|
|
3
|
+
import { u as w, a as B } from "./index-70372cdb.js";
|
|
3
4
|
const V = c({
|
|
4
5
|
name: "ImgEmpty"
|
|
5
6
|
}), x = /* @__PURE__ */ c({
|
|
6
7
|
...V,
|
|
7
8
|
setup(f) {
|
|
8
|
-
const t =
|
|
9
|
+
const t = u("empty"), a = w();
|
|
9
10
|
return (s, m) => (r(), n("svg", {
|
|
10
11
|
viewBox: "0 0 79 86",
|
|
11
12
|
version: "1.1",
|
|
@@ -148,8 +149,8 @@ const V = c({
|
|
|
148
149
|
]));
|
|
149
150
|
}
|
|
150
151
|
});
|
|
151
|
-
var E = /* @__PURE__ */
|
|
152
|
-
const R =
|
|
152
|
+
var E = /* @__PURE__ */ y(x, [["__file", "img-empty.vue"]]);
|
|
153
|
+
const R = C({
|
|
153
154
|
image: {
|
|
154
155
|
type: String,
|
|
155
156
|
default: ""
|
|
@@ -165,8 +166,8 @@ const R = _({
|
|
|
165
166
|
...G,
|
|
166
167
|
props: R,
|
|
167
168
|
setup(f) {
|
|
168
|
-
const t = f, { t: a } =
|
|
169
|
-
width:
|
|
169
|
+
const t = f, { t: a } = B(), s = u("empty"), m = d(() => t.description || a("el.table.emptyText")), g = d(() => ({
|
|
170
|
+
width: _(t.imageSize)
|
|
170
171
|
}));
|
|
171
172
|
return (o, I) => (r(), n("div", {
|
|
172
173
|
class: i(e(s).b())
|
|
@@ -197,8 +198,8 @@ const R = _({
|
|
|
197
198
|
], 2));
|
|
198
199
|
}
|
|
199
200
|
});
|
|
200
|
-
var b = /* @__PURE__ */
|
|
201
|
-
const
|
|
201
|
+
var b = /* @__PURE__ */ y(S, [["__file", "empty.vue"]]);
|
|
202
|
+
const P = N(b);
|
|
202
203
|
export {
|
|
203
|
-
|
|
204
|
+
P as E
|
|
204
205
|
};
|