@koi-br/ocr-web-sdk 1.0.0 → 1.0.1
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 +8 -8
- package/dist/index.cjs.js +131 -468
- package/dist/index.esm.js +27287 -68066
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @koi-br/ocr-web-sdk
|
|
2
2
|
|
|
3
3
|
一个功能强大的 Vue3 文件预览组件 SDK,支持多种 Office 文件格式和图片格式的在线预览,包括 PDF、Word、Excel、图片、OFD、TIF 等格式。
|
|
4
4
|
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
## 📦 安装
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
npm install ocr-web-sdk
|
|
53
|
+
npm install @koi-br/ocr-web-sdk
|
|
54
54
|
# 或
|
|
55
|
-
yarn add ocr-web-sdk
|
|
55
|
+
yarn add @koi-br/ocr-web-sdk
|
|
56
56
|
# 或
|
|
57
|
-
pnpm add ocr-web-sdk
|
|
57
|
+
pnpm add @koi-br/ocr-web-sdk
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
## 🔧 依赖要求
|
|
@@ -86,7 +86,7 @@ pnpm add ocr-web-sdk
|
|
|
86
86
|
|
|
87
87
|
<script setup>
|
|
88
88
|
import { ref } from 'vue';
|
|
89
|
-
import { FilePreview } from 'ocr-web-sdk';
|
|
89
|
+
import { FilePreview } from '@koi-br/ocr-web-sdk';
|
|
90
90
|
|
|
91
91
|
const previewRef = ref(null);
|
|
92
92
|
|
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
DocxPreview,
|
|
197
197
|
OfdPreview,
|
|
198
198
|
TifPreview
|
|
199
|
-
} from 'ocr-web-sdk';
|
|
199
|
+
} from '@koi-br/ocr-web-sdk';
|
|
200
200
|
|
|
201
201
|
const pdfUrl = ref('https://example.com/file.pdf');
|
|
202
202
|
const imageUrl = ref('https://example.com/image.jpg');
|
|
@@ -348,7 +348,7 @@ interface BlockInfo {
|
|
|
348
348
|
|
|
349
349
|
<script setup>
|
|
350
350
|
import { ref } from 'vue';
|
|
351
|
-
import { PdfPreview } from 'ocr-web-sdk';
|
|
351
|
+
import { PdfPreview } from '@koi-br/ocr-web-sdk';
|
|
352
352
|
|
|
353
353
|
const pdfRef = ref(null);
|
|
354
354
|
|
|
@@ -644,7 +644,7 @@ npm run preview
|
|
|
644
644
|
### 项目结构
|
|
645
645
|
|
|
646
646
|
```
|
|
647
|
-
ocr-web-sdk/
|
|
647
|
+
@koi-br/ocr-web-sdk/
|
|
648
648
|
├── Preview/ # 预览组件目录
|
|
649
649
|
│ ├── index.vue # FilePreview 主组件
|
|
650
650
|
│ ├── PdfPreview.vue # PDF 预览组件
|