diff --git a/src/components/upload-file/UploadFile.vue b/src/components/upload-file/UploadFile.vue index 75fa09a2..994e3261 100644 --- a/src/components/upload-file/UploadFile.vue +++ b/src/components/upload-file/UploadFile.vue @@ -16,6 +16,7 @@ const file = defineModel< }); const currentFile = computed(() => file.value.at(currentIndex.value)); +const statusOcr = defineModel('statusOcr', { default: false }); const currentIndex = ref(0); const scale = ref(1); @@ -25,7 +26,7 @@ const currentIndexDropdownList = ref(0); const props = withDefaults( defineProps<{ - treeFile: { lable: string; file: { lable: string }[] }[]; + treeFile: { label: string; file: { label: string }[] }[]; dropdownList?: { label: string; value: string }[]; hideAction?: boolean; }>(), @@ -70,6 +71,8 @@ function change(e: Event) { }); } + statusOcr.value = true; + emit( 'sendOcr', props.dropdownList?.[currentIndexDropdownList.value].value || '', @@ -121,8 +124,8 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
currentFile.value?.url));
- + - +
-
+