UNPKG

@nutui/nutui-react-taro

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

31 lines (30 loc) 804 B
export declare class UploadOptions { url: string; name: string; fileType?: string | undefined; formData?: FormData; sourceFile: any; method: string; xhrState: string | number; timeout: number; headers: {}; withCredentials: boolean; onStart?: any; taroFilePath?: string; onProgress?: any; onSuccess?: any; onFailure?: any; beforeXhrUpload?: any; } export declare const UPLOADING = "uploading"; export declare const SUCCESS = "success"; export declare const ERROR = "error"; export declare class Upload { options: UploadOptions; constructor(options: UploadOptions); upload(): void; } export declare class UploaderTaro extends Upload { constructor(options: UploadOptions); uploadTaro(uploadFile: any, env: string): void; }