st-comp 0.0.178 → 0.0.179
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/KlinePlus.cjs +3 -3
- package/es/KlinePlus.js +126 -124
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +2 -2
- package/lib/{index-0f16f8b0.js → index-d328adc0.js} +5 -3
- package/lib/{python-e9c32bc9.js → python-c3ccce40.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlinePlus/index.vue +2 -1
package/package.json
CHANGED
|
@@ -298,7 +298,7 @@ const getMoreData = async (type) => {
|
|
|
298
298
|
};
|
|
299
299
|
// 图表: 获取数据 [当屏首末时间范围]
|
|
300
300
|
const getScreenTimeRange = () => {
|
|
301
|
-
if (!klineData.value.time) return (screenTimeRange.value = []);
|
|
301
|
+
if (!klineData.value.time.length) return (screenTimeRange.value = []);
|
|
302
302
|
const { time } = klineData.value;
|
|
303
303
|
const { startValue, endValue } = mainChartIns.getOption()?.dataZoom[0] ?? {};
|
|
304
304
|
const startTime = time[startValue];
|
|
@@ -642,6 +642,7 @@ const draw = (params = { startValue: 0, endValue: 0 }) => {
|
|
|
642
642
|
};
|
|
643
643
|
// 图表: 绘制(当屏最高价)
|
|
644
644
|
const drawScreenMaxPrice = () => {
|
|
645
|
+
if (!props.userKlineConfig.enable_showScreenMaxPrice || !klineData.value.time.length) return;
|
|
645
646
|
const { data } = klineData.value;
|
|
646
647
|
const { startValue, endValue } = mainChartIns.getOption()?.dataZoom[0] ?? {};
|
|
647
648
|
let maxPrice = 0;
|