import { Ref } from '@vue/composition-api'; import { TdUploadProps } from '../type'; export interface UploadDragEvents { onDragFileChange?: (files: File[]) => void; onDragenter?: TdUploadProps['onDragenter']; onDragleave?: TdUploadProps['onDragleave']; onDrop?: TdUploadProps['onDrop']; } export default function useDrag(props: UploadDragEvents, accept: Ref): { target: any; dragActive: Ref; handleDrop: (event: DragEvent) => void; handleDragenter: (event: DragEvent) => void; handleDragleave: (event: DragEvent) => void; handleDragover: (event: DragEvent) => void; };