@koi-br/ocr-web-sdk 1.0.68 → 1.1.0
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-B8tiq4v7.js → index-BngqS3RU.js} +3 -3
- package/dist/{index-DzJtAxhd.mjs → index-DuCZ_Am_.mjs} +4 -4
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.umd.js +26 -26
- package/dist/style.css +1 -1
- package/dist/{tiff.min-rWzDCVgp.js → tiff.min-8gTbSZDP.js} +1 -1
- package/dist/{tiff.min-bV-iuali.mjs → tiff.min-KAQAp3fU.mjs} +1 -1
- package/package.json +4 -3
- package/preview/PdfPreview.vue +5 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getAugmentedNamespace, a as getDefaultExportFromCjs } from "./index-
|
|
1
|
+
import { g as getAugmentedNamespace, a as getDefaultExportFromCjs } from "./index-DuCZ_Am_.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koi-br/ocr-web-sdk",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "一个支持多种Office文件格式预览的Vue3组件SDK,包括PDF、Word、Excel、图片、OFD、TIF等格式",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -57,9 +57,10 @@
|
|
|
57
57
|
"less": "^4.4.2",
|
|
58
58
|
"typescript": "^5.3.0",
|
|
59
59
|
"vite": "^5.0.0",
|
|
60
|
-
"vite-plugin-dts": "^3.6.0"
|
|
60
|
+
"vite-plugin-dts": "^3.6.0",
|
|
61
|
+
"vue-router": "^4.6.4"
|
|
61
62
|
},
|
|
62
63
|
"peerDependencies": {
|
|
63
64
|
"vue": "^3.0.0"
|
|
64
65
|
}
|
|
65
|
-
}
|
|
66
|
+
}
|
package/preview/PdfPreview.vue
CHANGED
|
@@ -2242,13 +2242,15 @@ onBeforeUnmount(() => {
|
|
|
2242
2242
|
.pdf-content {
|
|
2243
2243
|
position: relative;
|
|
2244
2244
|
flex: 1;
|
|
2245
|
-
overflow:
|
|
2245
|
+
overflow-x: auto;
|
|
2246
|
+
overflow-y: auto;
|
|
2246
2247
|
background-color: rgb(243 244 246);
|
|
2247
2248
|
transition: width 0.3s ease;
|
|
2248
2249
|
|
|
2249
2250
|
// 自定义滚动条(浅色主题配色)
|
|
2250
2251
|
&::-webkit-scrollbar {
|
|
2251
|
-
width: 6px;
|
|
2252
|
+
width: 6px; // 纵向滚动条宽度
|
|
2253
|
+
height: 6px; // 横向滚动条高度(不设置时在部分环境下几乎不可见)
|
|
2252
2254
|
}
|
|
2253
2255
|
|
|
2254
2256
|
&::-webkit-scrollbar-thumb {
|
|
@@ -2281,6 +2283,7 @@ onBeforeUnmount(() => {
|
|
|
2281
2283
|
align-items: flex-start;
|
|
2282
2284
|
justify-content: center;
|
|
2283
2285
|
width: 100%;
|
|
2286
|
+
box-sizing: border-box;
|
|
2284
2287
|
padding: 0 5px;
|
|
2285
2288
|
}
|
|
2286
2289
|
|
|
@@ -2508,12 +2511,6 @@ onBeforeUnmount(() => {
|
|
|
2508
2511
|
visibility: hidden; // 完全隐藏,防止在宽度变化时可见
|
|
2509
2512
|
pointer-events: none; // 收起时禁止交互,防止内容可见
|
|
2510
2513
|
transition: opacity 0.15s ease 0s, visibility 0s linear 0s; // 收起时立即隐藏
|
|
2511
|
-
|
|
2512
|
-
// 自定义滚动条样式
|
|
2513
|
-
&::-webkit-scrollbar {
|
|
2514
|
-
width: 6px;
|
|
2515
|
-
}
|
|
2516
|
-
|
|
2517
2514
|
&::-webkit-scrollbar-thumb {
|
|
2518
2515
|
background-color: #d1d5db;
|
|
2519
2516
|
border-radius: 3px;
|