@koi-br/ocr-web-sdk 1.0.35 → 1.0.36
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/README.md +117 -0
- package/dist/{index-CKWQDPoP.js → index-BBpVx1t-.js} +73 -73
- package/dist/{index-Dx9CNRoV.mjs → index-BK8otfpE.mjs} +3758 -3559
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +11 -9
- package/dist/src/composables/useSyncScroll.d.ts +111 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/{tiff.min-D5eSYpnb.js → tiff.min-DstYahTd.js} +1 -1
- package/dist/{tiff.min-B8vWRefT.mjs → tiff.min-WauPM8ew.mjs} +1 -1
- package/package.json +1 -1
- package/preview/ImagePreview.vue +1 -0
- package/preview/index.vue +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getAugmentedNamespace, a as getDefaultExportFromCjs } from "./index-
|
|
1
|
+
import { g as getAugmentedNamespace, a as getDefaultExportFromCjs } from "./index-BK8otfpE.mjs";
|
|
2
2
|
function _mergeNamespaces(U, W) {
|
|
3
3
|
for (var Z = 0; Z < W.length; Z++) {
|
|
4
4
|
const s0 = W[Z];
|
package/package.json
CHANGED
package/preview/ImagePreview.vue
CHANGED
|
@@ -2320,6 +2320,7 @@ defineExpose({
|
|
|
2320
2320
|
goToPage: switchToPage, // 暴露翻页方法给父组件
|
|
2321
2321
|
getCurrentPage: () => currentPage.value, // 获取当前页码
|
|
2322
2322
|
getTotalPages: () => totalPages.value, // 获取总页数
|
|
2323
|
+
getContainer: () => containerRef.value, // 暴露容器引用,用于同步滚动
|
|
2323
2324
|
});
|
|
2324
2325
|
</script>
|
|
2325
2326
|
|
package/preview/index.vue
CHANGED
|
@@ -475,6 +475,8 @@ defineExpose({
|
|
|
475
475
|
// 子组件引用(方便直接访问子组件的方法)
|
|
476
476
|
getPdfPreview: () => pdfPreviewRef.value,
|
|
477
477
|
getImagePreview: () => imagePreviewRef.value,
|
|
478
|
+
// 暴露 imagePreviewRef,用于同步滚动等功能
|
|
479
|
+
imagePreviewRef: imagePreviewRef,
|
|
478
480
|
getTifPreview: () => tifPreviewRef.value,
|
|
479
481
|
getDocxPreview: () => docxPreviewRef.value,
|
|
480
482
|
getOfdPreview: () => ofdPreviewRef.value,
|