UNPKG

@arco-design/web-vue

Version:

Arco Design Vue 2.0: A Vue.js 3 UI Library

8 lines (7 loc) 770 B
import { FileItem, FileStatus, RequestOption, UploadRequest } from './interfaces'; export declare const getProgressStatus: (status?: FileStatus | undefined) => "normal" | "success" | "danger"; export declare const processFileList: (fileList?: FileItem[] | undefined) => FileItem[]; export declare const uploadRequest: ({ fileItem, action, name: originName, data: originData, headers, withCredentials, onProgress, onSuccess, onError, }: RequestOption) => UploadRequest; export declare const loopDirectory: (itemList: DataTransferItemList, accept: string | undefined, callback: (files: File[]) => void) => void; export declare const isImage: (file: File) => boolean; export declare const getFiles: (fileList?: FileList | undefined, accept?: string | undefined) => File[];