You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.4 KiB
38 lines
1.4 KiB
import type { UploadFile, UploadStatus, ElFile, ElUploadProgressEvent, IUseHandlersProps } from './upload.type';
|
|
declare const _default: (props: IUseHandlersProps) => {
|
|
abort: (file: UploadFile) => void;
|
|
clearFiles: (status?: UploadStatus[]) => void;
|
|
handleError: (err: Error, rawFile: ElFile) => void;
|
|
handleProgress: (ev: ElUploadProgressEvent, rawFile: ElFile) => void;
|
|
handleStart: (rawFile: ElFile) => void;
|
|
handleSuccess: (res: any, rawFile: ElFile) => void;
|
|
handleRemove: (file: UploadFile, raw: ElFile) => void;
|
|
submit: () => void;
|
|
uploadFiles: import("vue").Ref<{
|
|
name: string;
|
|
percentage?: number | undefined;
|
|
status: UploadStatus;
|
|
size: number;
|
|
response?: unknown;
|
|
uid: number;
|
|
url?: string | undefined;
|
|
raw: {
|
|
uid: number;
|
|
readonly lastModified: number;
|
|
readonly name: string;
|
|
readonly webkitRelativePath: string;
|
|
readonly size: number;
|
|
readonly type: string;
|
|
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
slice: (start?: number | undefined, end?: number | undefined, contentType?: string | undefined) => Blob;
|
|
stream: () => ReadableStream<any>;
|
|
text: () => Promise<string>;
|
|
};
|
|
}[]>;
|
|
uploadRef: import("vue").Ref<{
|
|
abort: (file: UploadFile) => void;
|
|
upload: (file: ElFile) => void;
|
|
}>;
|
|
};
|
|
export default _default;
|