@koi-br/ocr-web-sdk 1.0.46 → 1.0.47

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.46",
3
+ "version": "1.0.47",
4
4
  "description": "一个支持多种Office文件格式预览的Vue3组件SDK,包括PDF、Word、Excel、图片、OFD、TIF等格式",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -1950,8 +1950,7 @@ const saveAnnotation = () => {
1950
1950
 
1951
1951
  const annotation: AnnotationInfo = {
1952
1952
  id:
1953
- existingAnnotation?.id ||
1954
- `annotation_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
1953
+ existingAnnotation?.id || "",
1955
1954
  blockBbox: bbox,
1956
1955
  blockContent: content,
1957
1956
  blockPage: currentPage.value,
@@ -1966,7 +1965,7 @@ const saveAnnotation = () => {
1966
1965
  } else {
1967
1966
  // 添加新批注
1968
1967
  emit("annotation-add", annotation);
1969
- Message.success("批注已添加");
1968
+ // Message.success("批注已添加");
1970
1969
  }
1971
1970
 
1972
1971
  // 关闭输入框