UNPKG

tdesign-mobile-vue

Version:
151 lines (150 loc) 5.42 kB
import { PropType } from 'vue'; declare const _default: { accept: { type: StringConstructor; default: string; }; action: { type: StringConstructor; default: string; }; addBtn: { type: BooleanConstructor; default: boolean; }; addContent: { type: PropType<string | ((h: typeof import("vue").h) => import("@/common").SlotReturnValue)>; }; allowUploadDuplicateFile: BooleanConstructor; autoUpload: { type: BooleanConstructor; default: boolean; }; beforeAllFilesUpload: { type: PropType<(file: import("@/components").UploadFile[]) => boolean | Promise<boolean>>; }; beforeUpload: { type: PropType<(file: import("@/components").UploadFile) => boolean | Promise<boolean>>; }; capture: { type: PropType<string | boolean>; }; data: { type: PropType<Record<string, any> | ((files: import("@/components").UploadFile[]) => Record<string, any>)>; }; disabled: { type: BooleanConstructor; default: any; }; fileListDisplay: { type: PropType<(h: typeof import("vue").h, props: { files: import("@/components").UploadFile[]; dragEvents?: import("@/common").UploadDisplayDragEvents; }) => import("@/common").SlotReturnValue>; }; files: { type: PropType<import("@/components").UploadFile[]>; default: import("@/components").UploadFile[]; }; defaultFiles: { type: PropType<import("@/components").UploadFile[]>; default: () => import("@/components").UploadFile[]; }; format: { type: PropType<(file: File) => import("@/components").UploadFile>; }; formatRequest: { type: PropType<(requestData: { [key: string]: any; }) => { [key: string]: any; }>; }; formatResponse: { type: PropType<(response: any, context: import("@/components").FormatResponseContext) => import("@/components").ResponseType>; }; headers: { type: PropType<{ [key: string]: string; }>; }; imageProps: { type: PropType<import("@/image").TdImageProps>; }; isBatchUpload: BooleanConstructor; max: { type: NumberConstructor; default: number; }; method: { type: PropType<"GET" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "get" | "options" | "patch" | "post" | "put">; default: "GET" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "get" | "options" | "patch" | "post" | "put"; validator(val: "GET" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "get" | "options" | "patch" | "post" | "put"): boolean; }; mockProgressDuration: { type: NumberConstructor; }; multiple: BooleanConstructor; name: { type: StringConstructor; default: string; }; preview: { type: BooleanConstructor; default: boolean; }; removeBtn: { type: BooleanConstructor; default: boolean; }; requestMethod: { type: PropType<(files: import("@/components").UploadFile[] | import("@/components").UploadFile) => Promise<import("@/components").RequestMethodResponse>>; }; sizeLimit: { type: PropType<number | import("@/components").SizeLimitObj>; }; useMockProgress: { type: BooleanConstructor; default: boolean; }; uploadAllFilesInOneRequest: BooleanConstructor; value: { type: PropType<import("@/components").UploadFile[]>; default: import("@/components").UploadFile[]; }; modelValue: { type: PropType<import("@/components").UploadFile[]>; default: import("@/components").UploadFile[]; }; defaultValue: { type: PropType<import("@/components").UploadFile[]>; default: () => import("@/components").UploadFile[]; }; withCredentials: BooleanConstructor; onCancelUpload: PropType<() => void>; onChange: PropType<(value: import("@/components").UploadFile[], context: import("@/components").UploadChangeContext) => void>; onClickUpload: PropType<(context: { e: MouseEvent; }) => void>; onFail: PropType<(options: import("@/components").UploadFailContext) => void>; onOneFileFail: PropType<(options: import("@/components").UploadFailContext) => void>; onOneFileSuccess: PropType<(context: Pick<import("@/components").SuccessContext, "XMLHttpRequest" | "e" | "file" | "response">) => void>; onPreview: PropType<(options: { file: import("@/components").UploadFile; index: number; e: MouseEvent; }) => void>; onProgress: PropType<(options: import("@/components").ProgressContext) => void>; onRemove: PropType<(context: import("@/components").UploadRemoveContext) => void>; onSelectChange: PropType<(files: File[], context: import("@/components").UploadSelectChangeContext) => void>; onSuccess: PropType<(context: import("@/components").SuccessContext) => void>; onValidate: PropType<(context: { type: import("@/components").UploadValidateType; files: import("@/components").UploadFile[]; }) => void>; onWaitingUploadFilesChange: PropType<(context: { files: import("@/components").UploadFile[]; trigger: "remove" | "uploaded" | "validate"; }) => void>; }; export default _default;