@koi-br/ocr-web-sdk 1.0.11 → 1.0.13
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.cjs.js +27 -27
- package/dist/index.esm.js +699 -697
- package/package.json +1 -1
- package/preview/docxPreview.vue +1 -9
- package/preview/index.vue +1 -0
- package/preview/ofdPreview.vue +1 -1
package/package.json
CHANGED
package/preview/docxPreview.vue
CHANGED
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
<p class="preview-loading-title">正在加载文档...</p>
|
|
9
9
|
</div>
|
|
10
10
|
<!-- 工具栏 -->
|
|
11
|
-
<div class="preview-toolbar preview-toolbar-right">
|
|
11
|
+
<div class="preview-toolbar preview-toolbar-right" v-if="isDownload">
|
|
12
12
|
<div class="toolbar-group">
|
|
13
13
|
<ATooltip
|
|
14
|
-
v-if="isDownload"
|
|
15
14
|
mini
|
|
16
15
|
position="bottom"
|
|
17
16
|
content="下载"
|
|
@@ -208,10 +207,3 @@ defineExpose({
|
|
|
208
207
|
rotate
|
|
209
208
|
});
|
|
210
209
|
</script>
|
|
211
|
-
|
|
212
|
-
<style lang="less" scoped>
|
|
213
|
-
// 样式已统一到公共样式文件,这里只保留组件特定样式
|
|
214
|
-
:deep(.docx-wrapper) {
|
|
215
|
-
background-color: #fff;
|
|
216
|
-
}
|
|
217
|
-
</style>
|
package/preview/index.vue
CHANGED
|
@@ -322,6 +322,7 @@ const preview = async (file, fileName, options = {}) => {
|
|
|
322
322
|
|
|
323
323
|
fileType.value = type;
|
|
324
324
|
fileUrl.value = URL.createObjectURL(file);
|
|
325
|
+
downloadUrl.value = fileUrl.value; // 设置下载 URL,用于下载功能
|
|
325
326
|
downloading.value = false;
|
|
326
327
|
progress.value = 100;
|
|
327
328
|
return;
|
package/preview/ofdPreview.vue
CHANGED