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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "st-comp",
3
3
  "public": true,
4
- "version": "0.0.178",
4
+ "version": "0.0.179",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -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;