kt-factor-legend 1.1.1 → 1.1.3
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/dist/kt-factor-legend.es.js +7 -7
- package/dist/kt-factor-legend.umd.js +1 -1
- package/package.json +4 -1
- package/dist/style.css +0 -1
- package/index.html +0 -13
- package/src/KtFactorLegend.vue +0 -94
- package/src/factorJson.js +0 -508
- package/src/imageBase64.js +0 -25
- package/src/index.js +0 -5
- package/src/index.scss +0 -103
- package/vite.config.js +0 -30
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as c, createElementBlock as t, normalizeClass as m, Fragment as d, renderList as s, createElementVNode as b, toDisplayString as
|
|
1
|
+
import { openBlock as c, createElementBlock as t, normalizeClass as m, Fragment as d, renderList as s, createElementVNode as b, toDisplayString as V, normalizeStyle as L, createCommentVNode as X, reactive as W, watch as x, onMounted as O, toRefs as Z } from "vue";
|
|
2
2
|
const C = [
|
|
3
3
|
{
|
|
4
4
|
name: "积水深度(cm)",
|
|
@@ -546,7 +546,7 @@ const Y = (A, n) => {
|
|
|
546
546
|
u[e] = z;
|
|
547
547
|
return u;
|
|
548
548
|
}, a = {
|
|
549
|
-
name: "
|
|
549
|
+
name: "KtFactorLegend",
|
|
550
550
|
props: {
|
|
551
551
|
elements: {
|
|
552
552
|
type: Array,
|
|
@@ -608,16 +608,16 @@ function p(A, n, u, e, z, g) {
|
|
|
608
608
|
class: m(["kt-factor-legend", { dark: u.dark }])
|
|
609
609
|
}, [
|
|
610
610
|
(c(!0), t(d, null, s(A.factors, (r) => {
|
|
611
|
-
var
|
|
611
|
+
var l;
|
|
612
612
|
return c(), t(d, {
|
|
613
613
|
key: r.key
|
|
614
614
|
}, [
|
|
615
|
-
(
|
|
615
|
+
(l = r == null ? void 0 : r.children) != null && l.length ? (c(), t("div", {
|
|
616
616
|
key: 0,
|
|
617
617
|
class: m(["kt-factor-legend-group", { "kt-wind-l": r.key == "wind-l" }])
|
|
618
618
|
}, [
|
|
619
619
|
b("div", F, [
|
|
620
|
-
b("div", N,
|
|
620
|
+
b("div", N, V(r.name), 1),
|
|
621
621
|
r.type == "icon" ? (c(), t("div", f, [
|
|
622
622
|
(c(!0), t(d, null, s(r.children, (w, B) => (c(), t("div", { key: B }, [
|
|
623
623
|
b("img", {
|
|
@@ -625,7 +625,7 @@ function p(A, n, u, e, z, g) {
|
|
|
625
625
|
src1: w.icon,
|
|
626
626
|
alt: ""
|
|
627
627
|
}, null, 8, H),
|
|
628
|
-
b("div", P,
|
|
628
|
+
b("div", P, V(w.text), 1)
|
|
629
629
|
]))), 128))
|
|
630
630
|
])) : (c(), t("div", h, [
|
|
631
631
|
(c(!0), t(d, null, s(r.children, (w, B) => (c(), t("div", { key: B }, [
|
|
@@ -633,7 +633,7 @@ function p(A, n, u, e, z, g) {
|
|
|
633
633
|
class: "bar",
|
|
634
634
|
style: L({ backgroundColor: w.color })
|
|
635
635
|
}, null, 4),
|
|
636
|
-
b("div", y,
|
|
636
|
+
b("div", y, V(w.text), 1)
|
|
637
637
|
]))), 128))
|
|
638
638
|
]))
|
|
639
639
|
])
|