sctj-components 1.0.19 → 1.0.20
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/sctj-components.es.js +12 -7
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -2639,8 +2639,8 @@ const _sfc_main$a = {
|
|
|
2639
2639
|
}
|
|
2640
2640
|
};
|
|
2641
2641
|
const emptyImg = "data:image/png;base64,";
|
|
2642
|
-
const
|
|
2643
|
-
const _withScopeId$3 = (n) => (pushScopeId("data-v-
|
|
2642
|
+
const CommonChart_vue_vue_type_style_index_0_scoped_2f3b9e13_lang = "";
|
|
2643
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-2f3b9e13"), n = n(), popScopeId(), n);
|
|
2644
2644
|
const _hoisted_1$7 = ["element-loading-background"];
|
|
2645
2645
|
const _hoisted_2$5 = {
|
|
2646
2646
|
key: 1,
|
|
@@ -2868,7 +2868,9 @@ const _sfc_main$9 = {
|
|
|
2868
2868
|
const firstY = props.seriesConfig.filter((item) => !item.axisIndex);
|
|
2869
2869
|
const flotArr = arr.reduce((res, item) => {
|
|
2870
2870
|
firstY.forEach((i) => {
|
|
2871
|
-
|
|
2871
|
+
if (!isNaN(Number(item[i.prop]))) {
|
|
2872
|
+
res.push(Number(item[i.prop]));
|
|
2873
|
+
}
|
|
2872
2874
|
});
|
|
2873
2875
|
return res;
|
|
2874
2876
|
}, []);
|
|
@@ -2888,7 +2890,9 @@ const _sfc_main$9 = {
|
|
|
2888
2890
|
}
|
|
2889
2891
|
const flotArr = arr.reduce((res, item) => {
|
|
2890
2892
|
secondY.forEach((i) => {
|
|
2891
|
-
|
|
2893
|
+
if (!isNaN(Number(item[i.prop]))) {
|
|
2894
|
+
res.push(Number(item[i.prop]));
|
|
2895
|
+
}
|
|
2892
2896
|
});
|
|
2893
2897
|
return res;
|
|
2894
2898
|
}, []);
|
|
@@ -2920,10 +2924,11 @@ const _sfc_main$9 = {
|
|
|
2920
2924
|
return waterSupply > power ? [maxInit, minInit] : [minInit, maxInit];
|
|
2921
2925
|
};
|
|
2922
2926
|
const getBisection = (waterSupply, power) => {
|
|
2927
|
+
const min = Math.min(waterSupply, power, 5);
|
|
2923
2928
|
if (!waterSupply || !power)
|
|
2924
2929
|
return [];
|
|
2925
|
-
let res1 = Math.ceil(waterSupply /
|
|
2926
|
-
let res2 = Math.ceil(power /
|
|
2930
|
+
let res1 = Math.ceil(waterSupply / min);
|
|
2931
|
+
let res2 = Math.ceil(power / min);
|
|
2927
2932
|
return [res1, res2];
|
|
2928
2933
|
};
|
|
2929
2934
|
const option = computed$1(() => {
|
|
@@ -3209,7 +3214,7 @@ const _sfc_main$9 = {
|
|
|
3209
3214
|
};
|
|
3210
3215
|
}
|
|
3211
3216
|
};
|
|
3212
|
-
const SCTJCommonChart = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
3217
|
+
const SCTJCommonChart = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-2f3b9e13"]]);
|
|
3213
3218
|
const PieChart_vue_vue_type_style_index_0_scoped_747db0fa_lang = "";
|
|
3214
3219
|
const _hoisted_1$6 = ["element-loading-background"];
|
|
3215
3220
|
const _sfc_main$8 = {
|