UNPKG

@vuux/editor

Version:

Vue Nuxt 富文本编辑器

22 lines (21 loc) 568 B
/** * 上传配置类型 */ interface Request { uid: string; uploadUrl: string; selectedFile: File; headers?: Record<string, string>; data?: Record<string, any>; name?: string; onSuccess: (uid: string, response: any) => void; onError: (uid: string, error: any) => void; onProgress: (uid: string, percent: number) => void; } /** * 上传请求封装 */ export declare const UploadRequest: ({ uid, uploadUrl, selectedFile, headers, data, name, onSuccess, onError, onProgress }: Request) => { cancel: () => void; }; export {};