@koi-br/ocr-web-sdk 1.0.27 → 1.0.29
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/dist/{index-j1qGOVkF.js → index-DG14_3TA.js} +80 -80
- package/dist/{index-5LNwsgpW.mjs → index-QOLKOKLO.mjs} +8576 -8474
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/{tiff.min-KfzRTYak.js → tiff.min-Com-G-pb.js} +1 -1
- package/dist/{tiff.min-vkppgIK-.mjs → tiff.min-D0JMbw7k.mjs} +1 -1
- package/package.json +1 -1
- package/preview/ImagePreview.vue +785 -472
- package/preview/index.vue +4 -4
package/preview/index.vue
CHANGED
|
@@ -488,9 +488,9 @@ defineExpose({
|
|
|
488
488
|
if (fileType.value === 'pdf' && pdfPreviewRef.value) {
|
|
489
489
|
return pdfPreviewRef.value.jumpToPosition(pageNum, bbox, emitEvent);
|
|
490
490
|
}
|
|
491
|
-
//
|
|
491
|
+
// 图片预览的定位方法(现在也支持 pageNum)
|
|
492
492
|
if (fileType.value === 'image' && imagePreviewRef.value) {
|
|
493
|
-
return imagePreviewRef.value.jumpToPosition(bbox, emitEvent);
|
|
493
|
+
return imagePreviewRef.value.jumpToPosition(pageNum, bbox, emitEvent);
|
|
494
494
|
}
|
|
495
495
|
},
|
|
496
496
|
getCurrentPage: () => pdfPreviewRef.value?.getCurrentPage(),
|
|
@@ -498,8 +498,8 @@ defineExpose({
|
|
|
498
498
|
// 图片预览的代理方法
|
|
499
499
|
resetImage: () => imagePreviewRef.value?.reset(),
|
|
500
500
|
resetTif: () => tifPreviewRef.value?.reset(),
|
|
501
|
-
//
|
|
502
|
-
jumpToImagePosition: (bbox, emitEvent) => imagePreviewRef.value?.jumpToPosition(bbox, emitEvent),
|
|
501
|
+
// 图片预览的定位方法(已废弃,请使用 jumpToPosition,需要传入 pageNum)
|
|
502
|
+
jumpToImagePosition: (pageNum, bbox, emitEvent) => imagePreviewRef.value?.jumpToPosition(pageNum, bbox, emitEvent),
|
|
503
503
|
});
|
|
504
504
|
|
|
505
505
|
// 组件销毁时清理资源
|