@koi-br/ocr-web-sdk 1.0.64 → 1.0.65

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@koi-br/ocr-web-sdk",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "description": "一个支持多种Office文件格式预览的Vue3组件SDK,包括PDF、Word、Excel、图片、OFD、TIF等格式",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -2751,27 +2751,6 @@ const highlightPosition = (
2751
2751
  }
2752
2752
  }
2753
2753
 
2754
- // 5秒后自动取消高亮
2755
- // 清除之前的定时器(防止多个定时器同时存在)
2756
- if (highlightTimer) {
2757
- clearTimeout(highlightTimer);
2758
- }
2759
-
2760
- highlightTimer = setTimeout(() => {
2761
- if (activeBlockDiv.value === elementRef && isHighlighted.value) {
2762
- // 移除动画类
2763
- elementRef.classList.remove("highlight-animated");
2764
- elementRef.style.backgroundColor = "transparent";
2765
- elementRef.style.boxShadow = "none";
2766
- elementRef.style.border = "none";
2767
- activeBlockDiv.value = null;
2768
- isHighlighted.value = false;
2769
- // 触发高亮清除事件,用于清除连接线
2770
- emit("highlight-clear");
2771
- }
2772
- highlightTimer = null;
2773
- }, 5000);
2774
-
2775
2754
  return true;
2776
2755
  } finally {
2777
2756
  // 🔑 关键:无论成功还是失败,都要立即清除高亮标志