mirror of
https://github.com/keven1024/015.git
synced 2026-06-08 05:14:33 +00:00
refactor(front): update onFileHandle prop to use config instead of data for improved clarity
This commit is contained in:
@@ -8,7 +8,7 @@ import FileShareHandle from '~/components/Preprocessing/FileShareHandle.vue';
|
||||
const props = defineProps<{
|
||||
hide: () => void
|
||||
file: File
|
||||
onFileHandle: ({ data, type }: { data: any, type: string }) => void
|
||||
onFileHandle: ({ type, config }: { type: string, config: any }) => void
|
||||
}>()
|
||||
|
||||
const isImage = computed(() => props.file.type.startsWith('image/'))
|
||||
|
||||
Reference in New Issue
Block a user