st-comp 0.0.225 → 0.0.227

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.225",
4
+ "version": "0.0.227",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -28,8 +28,8 @@
28
28
  Array.from(tipsRef.value.children).forEach((item: any, index) => {
29
29
  if (props.data?.[index]?.label === '涨跌') {
30
30
  widthList.value[index] = '85px'
31
- } else if(props.data?.[index]?.label === '至今涨跌') {
32
- widthList.value[index] = '105px'
31
+ } else if(props.data?.[index]?.label === '至今涨幅') {
32
+ widthList.value[index] = '115px'
33
33
  } else if(props.data?.[index]?.label === '额') {
34
34
  widthList.value[index] = '75px'
35
35
  } else if(['开', '高', '低', '收'].includes(props.data?.[index]?.label)) {
@@ -347,8 +347,11 @@ const addEventListener = () => {
347
347
  });
348
348
  // 移出图表事件
349
349
  mainChartIns?.on("globalout", () => {
350
- const index = mainChartIns?.getOption()?.dataZoom?.[0]?.endValue;
351
- activeIndex.value = index;
350
+ const timer = setTimeout(() => {
351
+ clearTimeout(timer)
352
+ const index = mainChartIns?.getOption()?.dataZoom?.[0]?.endValue;
353
+ activeIndex.value = index;
354
+ }, 30);
352
355
  });
353
356
  // 右键点击事件
354
357
  let echartsContextMenuTimer = null;