@koi-br/ocr-web-sdk 1.0.10 → 1.0.11
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 +65 -86
- package/dist/index.cjs.js +32 -32
- package/dist/index.esm.js +4885 -4859
- package/package.json +1 -1
- package/preview/PdfPreview.vue +1 -1
- package/preview/index.vue +36 -0
package/package.json
CHANGED
package/preview/PdfPreview.vue
CHANGED
package/preview/index.vue
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
ref="pdfPreviewRef"
|
|
29
29
|
:pdf-url="fileUrl"
|
|
30
30
|
:is-download="props.isDownload"
|
|
31
|
+
v-bind="props.pdfProps || {}"
|
|
31
32
|
@download="handleDownload"
|
|
32
33
|
/>
|
|
33
34
|
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
:url="fileUrl"
|
|
39
40
|
:original-id="originalId"
|
|
40
41
|
:is-download="props.isDownload"
|
|
42
|
+
v-bind="props.imageProps || {}"
|
|
41
43
|
@original="handleOriginal"
|
|
42
44
|
@download="handleDownload"
|
|
43
45
|
/>
|
|
@@ -48,6 +50,7 @@
|
|
|
48
50
|
ref="tifPreviewRe"
|
|
49
51
|
:url="fileUrl"
|
|
50
52
|
:is-download="props.isDownload"
|
|
53
|
+
v-bind="props.tifProps || {}"
|
|
51
54
|
@download="handleDownload"
|
|
52
55
|
/>
|
|
53
56
|
|
|
@@ -57,6 +60,7 @@
|
|
|
57
60
|
ref="docxPreviewRef"
|
|
58
61
|
:url="fileUrl"
|
|
59
62
|
:is-download="props.isDownload"
|
|
63
|
+
v-bind="props.docxProps || {}"
|
|
60
64
|
@download="handleDownload"
|
|
61
65
|
/>
|
|
62
66
|
|
|
@@ -66,6 +70,7 @@
|
|
|
66
70
|
ref="ofdPreviewRef"
|
|
67
71
|
:url="fileUrl"
|
|
68
72
|
:is-download="props.isDownload"
|
|
73
|
+
v-bind="props.ofdProps || {}"
|
|
69
74
|
@download="handleDownload"
|
|
70
75
|
/>
|
|
71
76
|
|
|
@@ -75,6 +80,7 @@
|
|
|
75
80
|
ref="xlsxPreviewRef"
|
|
76
81
|
:url="fileUrl"
|
|
77
82
|
:is-download="props.isDownload"
|
|
83
|
+
v-bind="props.xlsxProps || {}"
|
|
78
84
|
@download="handleDownload"
|
|
79
85
|
/>
|
|
80
86
|
|
|
@@ -107,6 +113,36 @@ const props = defineProps({
|
|
|
107
113
|
isDownload: {
|
|
108
114
|
type: Boolean,
|
|
109
115
|
default: false
|
|
116
|
+
},
|
|
117
|
+
// PDF 预览组件的 props
|
|
118
|
+
pdfProps: {
|
|
119
|
+
type: Object,
|
|
120
|
+
default: () => ({})
|
|
121
|
+
},
|
|
122
|
+
// 图片预览组件的 props
|
|
123
|
+
imageProps: {
|
|
124
|
+
type: Object,
|
|
125
|
+
default: () => ({})
|
|
126
|
+
},
|
|
127
|
+
// TIF 预览组件的 props
|
|
128
|
+
tifProps: {
|
|
129
|
+
type: Object,
|
|
130
|
+
default: () => ({})
|
|
131
|
+
},
|
|
132
|
+
// Word 预览组件的 props
|
|
133
|
+
docxProps: {
|
|
134
|
+
type: Object,
|
|
135
|
+
default: () => ({})
|
|
136
|
+
},
|
|
137
|
+
// OFD 预览组件的 props
|
|
138
|
+
ofdProps: {
|
|
139
|
+
type: Object,
|
|
140
|
+
default: () => ({})
|
|
141
|
+
},
|
|
142
|
+
// Excel 预览组件的 props
|
|
143
|
+
xlsxProps: {
|
|
144
|
+
type: Object,
|
|
145
|
+
default: () => ({})
|
|
110
146
|
}
|
|
111
147
|
});
|
|
112
148
|
|