UNPKG

vimr

Version:

## 安装 ``` pnpm add vimr ``` ## 使用

8 lines (7 loc) 627 B
import type { Ref } from 'vue'; import type { UploadCustomRequestOptions, UploadFileInfo } from './props'; export declare const isImage: (file: File) => boolean; export declare const getThumbnail: (file: File) => Promise<unknown>; export declare const changeStatus: (fileList: Ref<UploadFileInfo[]>, id: string, status: UploadFileInfo['status']) => void; export declare const changePercentage: (fileList: Ref<UploadFileInfo[]>, id: string, percentage: number) => void; export declare const defaultUploadRequest: ({ file, action, data, headers, name, onFinish, onError, onProgress }: UploadCustomRequestOptions) => void;