st-comp 0.0.68 → 0.0.70
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/lib/ChartLayout.cjs.js +1 -0
- package/lib/ChartLayout.es.js +72 -0
- package/lib/Dialog.cjs.js +1 -0
- package/lib/Dialog.es.js +90 -0
- package/lib/HeatMap.cjs.js +1 -0
- package/lib/HeatMap.es.js +118 -0
- package/lib/Kline.cjs.js +1 -0
- package/lib/Kline.es.js +2631 -0
- package/lib/KlineNew.cjs.js +1 -0
- package/lib/KlineNew.es.js +614 -0
- package/lib/LinearLegend.cjs.js +1 -0
- package/lib/LinearLegend.es.js +63 -0
- package/lib/Map.cjs.js +1 -0
- package/lib/{bundle.js → Map.es.js} +43 -41503
- package/lib/Pagination.cjs.js +1 -0
- package/lib/Pagination.es.js +625 -0
- package/lib/Pie.cjs.js +2 -0
- package/lib/Pie.es.js +160 -0
- package/lib/Table.cjs.js +20 -0
- package/lib/Table.es.js +4007 -0
- package/lib/TreeMap.cjs.js +2 -0
- package/lib/TreeMap.es.js +163 -0
- package/lib/VarietySearch.cjs.js +12 -0
- package/lib/VarietySearch.es.js +3336 -0
- package/lib/VirtualTable.cjs.js +13 -0
- package/lib/VirtualTable.es.js +2680 -0
- package/lib/_commonjsHelpers-10dfc225.js +8 -0
- package/lib/_commonjsHelpers-87b0abe8.cjs +1 -0
- package/lib/_plugin-vue_export-helper-dad06003.js +9 -0
- package/lib/_plugin-vue_export-helper-f246444f.cjs +1 -0
- package/lib/base-4865d432.cjs +9 -0
- package/lib/base-a240bf62.js +762 -0
- package/lib/bundle.cjs.js +1 -0
- package/lib/bundle.es.js +46 -0
- package/lib/bundle.umd-4967d574.js +16091 -0
- package/lib/bundle.umd-c5698c50.cjs +71 -0
- package/lib/castArray-3341cbb4.cjs +1 -0
- package/lib/castArray-a723a736.js +10 -0
- package/lib/config-provider-3db4dac6.js +148 -0
- package/lib/config-provider-cf4edc1e.cjs +1 -0
- package/lib/el-button-c24606d0.cjs +1 -0
- package/lib/el-button-fa6a5742.js +231 -0
- package/lib/el-empty-282e5e93.js +204 -0
- package/lib/el-empty-608948d9.cjs +1 -0
- package/lib/el-icon-7718f55e.cjs +1 -0
- package/lib/el-icon-d9ef9ccc.js +592 -0
- package/lib/el-overlay-7fceb816.cjs +5 -0
- package/lib/el-overlay-9b7bdd18.js +678 -0
- package/lib/el-scrollbar-7dc53299.js +248 -0
- package/lib/el-scrollbar-bc381e35.cjs +1 -0
- package/lib/el-select-85ed2643.js +1894 -0
- package/lib/el-select-a50741c1.cjs +9 -0
- package/lib/el-tag-308f715a.js +2416 -0
- package/lib/el-tag-87fd3960.cjs +1 -0
- package/lib/el-tooltip-0ea8fbf8.cjs +1 -0
- package/lib/el-tooltip-4ed993c7.js +1 -0
- package/lib/focus-trap-2a734f35.cjs +3 -0
- package/lib/focus-trap-6922b96b.js +376 -0
- package/lib/index-1508a06b.js +556 -0
- package/lib/index-48a9f60d.cjs +1 -0
- package/lib/index-657047bb.js +513 -0
- package/lib/index-eea0bcb3.cjs +1 -0
- package/lib/index.esm-8d9a2abe.js +2432 -0
- package/lib/index.esm-94a95a2a.cjs +3 -0
- package/lib/raf-5e5c53db.cjs +1 -0
- package/lib/raf-fc8a56cf.js +6 -0
- package/lib/scroll-bb8039ba.cjs +1 -0
- package/lib/scroll-cfdae01b.js +35 -0
- package/lib/style.css +1 -1
- package/lib/typescript-7ae59c4c.js +4 -0
- package/lib/typescript-b63f8e83.cjs +1 -0
- package/lib/vnode-a9714179.js +14 -0
- package/lib/vnode-abafec9e.cjs +1 -0
- package/lib/zh-cn-92978806.js +134 -0
- package/lib/zh-cn-d4df7172.cjs +1 -0
- package/package.json +3 -3
- package/packages/Kline/componentsNew/KlineUtils/index.vue +8 -12
- package/lib/bundle.umd.cjs +0 -139
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent as v, computed as L, openBlock as d, createElementBlock as r, toDisplayString as c, createCommentVNode as y, createElementVNode as s, Fragment as u, renderList as _, normalizeStyle as g } from "vue";
|
|
2
|
+
import { _ as x } from "./_plugin-vue_export-helper-dad06003.js";
|
|
3
|
+
const m = { class: "linearLegend" }, w = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "linearLegend-unit"
|
|
6
|
+
}, S = { class: "linearLegend-content" }, k = { class: "linearLegend-content-box" }, C = { class: "linearLegend-content-number" }, B = /* @__PURE__ */ v({
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
data: {
|
|
10
|
+
type: Array,
|
|
11
|
+
default: () => []
|
|
12
|
+
},
|
|
13
|
+
// 数据
|
|
14
|
+
unit: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: () => null
|
|
17
|
+
}
|
|
18
|
+
// 单位
|
|
19
|
+
},
|
|
20
|
+
setup(o, { expose: p }) {
|
|
21
|
+
const i = o, f = L(() => i.data.reduce((e, t, a) => a === i.data.length - 1 ? e : t.type === "=" ? (e[e.length - 1].width = 2, e) : t.range.length === 1 ? [...e, { value: t.range[0], width: 1 }] : [...e, { value: t.range[1], width: 1 }], []));
|
|
22
|
+
return p({
|
|
23
|
+
numberToColor: (e) => {
|
|
24
|
+
let t = 1;
|
|
25
|
+
i.unit === "亿" ? t = 1e8 : i.unit === "万" && (t = 1e4);
|
|
26
|
+
for (let a = 0; a < i.data.length; a++) {
|
|
27
|
+
const { type: l, color: h, range: n } = i.data[a];
|
|
28
|
+
if (l === "=" && e === n[0] * t || l === ">" && e > n[0] * t || l === ">=" && e >= n[0] * t || l === "<" && e < n[0] * t || l === "<=" && e <= n[0] * t || l === "()" && e > n[0] * t && e < n[1] * t || l === "(]" && e > n[0] * t && e <= n[1] * t || l === "[]" && e >= n[0] * t && e <= n[1] * t || l === "[)" && e >= n[0] * t && e < n[1] * t)
|
|
29
|
+
return h;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
// 数值转颜色
|
|
33
|
+
}), (e, t) => (d(), r("div", m, [
|
|
34
|
+
o.unit ? (d(), r("div", w, "(单位:" + c(o.unit) + ")", 1)) : y("", !0),
|
|
35
|
+
s("div", S, [
|
|
36
|
+
s("div", k, [
|
|
37
|
+
(d(!0), r(u, null, _(o.data, (a) => (d(), r("div", {
|
|
38
|
+
class: "linearLegend-content-box-item",
|
|
39
|
+
style: g({
|
|
40
|
+
background: a.color
|
|
41
|
+
})
|
|
42
|
+
}, null, 4))), 256))
|
|
43
|
+
]),
|
|
44
|
+
s("div", C, [
|
|
45
|
+
(d(!0), r(u, null, _(f.value, (a) => (d(), r("div", {
|
|
46
|
+
class: "linearLegend-content-number-item",
|
|
47
|
+
style: g({
|
|
48
|
+
width: `${a.width * 36}px`
|
|
49
|
+
})
|
|
50
|
+
}, c(a.value), 5))), 256))
|
|
51
|
+
])
|
|
52
|
+
])
|
|
53
|
+
]));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
const D = /* @__PURE__ */ x(B, [["__scopeId", "data-v-88fd5500"]]), V = {
|
|
57
|
+
install(o) {
|
|
58
|
+
o.component("st-linearLegend", D);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
V as default
|
|
63
|
+
};
|