import React from 'react'; import type { UploadProps, ButtonProps } from 'antd'; import { type UploadFile } from 'antd'; import type { ProFormFieldItemProps } from '../../interface'; export declare type ProFormDraggerProps = ProFormFieldItemProps & { icon?: React.ReactNode; title?: React.ReactNode; name?: UploadProps['name']; listType?: UploadProps['listType']; action?: UploadProps['action']; accept?: UploadProps['accept']; max?: number; value?: UploadProps['fileList']; onChange?: UploadProps['onChange']; buttonProps?: ButtonProps; disabled?: ButtonProps['disabled']; fileList?: UploadProps['fileList']; /** @name 桶名(默认为RETAIL) */ code?: string; /** @name 分类(文件夹,eg:mdm,pms...) */ catalog?: string; /** @name 是否处理结果(默认为false) */ handleResult?: boolean; /** @name 是否走download域名 */ ifDownloadDomain?: boolean; /** @name 多大文件启用分片上传(单位MB),默认50MB,设置为0时不开启分片上传 */ chunckBigFileSize?: number; /** @name 分片上传时,每个分片大小(单位MB),默认2MB */ chunkSize?: number; /** @name 分片上传失败重试次数,默认3次 */ chunkUploadMaxRetries?: number; /** @name 每批并发上传的分片数量,默认1个 */ batchSize?: number; /** @name 单个文件最大大小(单位MB),默认为150MB,设置为0不限制 */ maxSize?: number; }; declare const _default: React.ComponentClass<{ fieldProps?: (import("../../interface").FieldProps & UploadProps) | undefined; placeholder?: string | string[] | undefined; secondary?: boolean | undefined; allowClear?: boolean | undefined; disabled?: boolean | undefined; width?: number | "sm" | "md" | "xl" | "xs" | "lg" | undefined; proFieldProps?: import("ls-pro-utils").ProFieldProps | undefined; footerRender?: import("../../interface").LightFilterFooterRender | undefined; } & Omit & import("../../interface").ExtendsProps & { icon?: React.ReactNode; title?: React.ReactNode; name?: string | undefined; listType?: import("antd/lib/upload/interface").UploadListType | undefined; action?: string | ((file: import("antd/lib/upload").RcFile) => string) | ((file: import("antd/lib/upload").RcFile) => PromiseLike) | undefined; accept?: string | undefined; max?: number | undefined; value?: UploadFile[] | undefined; onChange?: ((info: import("antd/lib/upload").UploadChangeParam>) => void) | undefined; buttonProps?: Partial<{ /** @name 多大文件启用分片上传(单位MB),默认50MB,设置为0时不开启分片上传 */ href: string; target?: string | undefined; onClick?: React.MouseEventHandler | undefined; } & import("antd/lib/button/button").BaseButtonProps & Omit, "type" | "onClick"> & { htmlType?: "button" | "submit" | "reset" | undefined; onClick?: React.MouseEventHandler | undefined; } & Omit, "type" | "onClick">> | undefined; disabled?: boolean | undefined; fileList?: UploadFile[] | undefined; /** @name 桶名(默认为RETAIL) */ code?: string | undefined; /** @name 分类(文件夹,eg:mdm,pms...) */ catalog?: string | undefined; /** @name 是否处理结果(默认为false) */ handleResult?: boolean | undefined; /** @name 是否走download域名 */ ifDownloadDomain?: boolean | undefined; /** @name 多大文件启用分片上传(单位MB),默认50MB,设置为0时不开启分片上传 */ chunckBigFileSize?: number | undefined; /** @name 分片上传时,每个分片大小(单位MB),默认2MB */ chunkSize?: number | undefined; /** @name 分片上传失败重试次数,默认3次 */ chunkUploadMaxRetries?: number | undefined; /** @name 每批并发上传的分片数量,默认1个 */ batchSize?: number | undefined; /** @name 单个文件最大大小(单位MB),默认为150MB,设置为0不限制 */ maxSize?: number | undefined; }, any> | React.FunctionComponent<{ fieldProps?: (import("../../interface").FieldProps & UploadProps) | undefined; placeholder?: string | string[] | undefined; secondary?: boolean | undefined; allowClear?: boolean | undefined; disabled?: boolean | undefined; width?: number | "sm" | "md" | "xl" | "xs" | "lg" | undefined; proFieldProps?: import("ls-pro-utils").ProFieldProps | undefined; footerRender?: import("../../interface").LightFilterFooterRender | undefined; } & Omit & import("../../interface").ExtendsProps & { icon?: React.ReactNode; title?: React.ReactNode; name?: string | undefined; listType?: import("antd/lib/upload/interface").UploadListType | undefined; action?: string | ((file: import("antd/lib/upload").RcFile) => string) | ((file: import("antd/lib/upload").RcFile) => PromiseLike) | undefined; accept?: string | undefined; max?: number | undefined; value?: UploadFile[] | undefined; onChange?: ((info: import("antd/lib/upload").UploadChangeParam>) => void) | undefined; buttonProps?: Partial<{ /** @name 多大文件启用分片上传(单位MB),默认50MB,设置为0时不开启分片上传 */ href: string; target?: string | undefined; onClick?: React.MouseEventHandler | undefined; } & import("antd/lib/button/button").BaseButtonProps & Omit, "type" | "onClick"> & { htmlType?: "button" | "submit" | "reset" | undefined; onClick?: React.MouseEventHandler | undefined; } & Omit, "type" | "onClick">> | undefined; disabled?: boolean | undefined; fileList?: UploadFile[] | undefined; /** @name 桶名(默认为RETAIL) */ code?: string | undefined; /** @name 分类(文件夹,eg:mdm,pms...) */ catalog?: string | undefined; /** @name 是否处理结果(默认为false) */ handleResult?: boolean | undefined; /** @name 是否走download域名 */ ifDownloadDomain?: boolean | undefined; /** @name 多大文件启用分片上传(单位MB),默认50MB,设置为0时不开启分片上传 */ chunckBigFileSize?: number | undefined; /** @name 分片上传时,每个分片大小(单位MB),默认2MB */ chunkSize?: number | undefined; /** @name 分片上传失败重试次数,默认3次 */ chunkUploadMaxRetries?: number | undefined; /** @name 每批并发上传的分片数量,默认1个 */ batchSize?: number | undefined; /** @name 单个文件最大大小(单位MB),默认为150MB,设置为0不限制 */ maxSize?: number | undefined; }>; export default _default;