import * as React from 'react'; interface AttachmentProps { /**显示类型 */ type?: 'normal' | 'popup'; /**是否可编辑 */ editable?: boolean; /**已经上传的文件列表 */ value?: Array; /**文件列表,在selectable为true时使用 */ options?: Array; /**是否可编辑 */ onChange?: Function; /**上传文件最大大小,单位为MB */ fileSize?: number; /**最大文件个数 */ max?: number; /**最大高度,大于最大高度的部分在不可编辑是会自动隐藏 */ maxHeight?: number; /** 是否显示批量下载按钮 */ showDownloadButton?: boolean; /**处理文件下载URL */ urlPreProcessor?: Function; /**显示在文件列表最后,如果显示批量下载按钮,则显示在批量下载按钮后面 */ extra?: React.ReactNode; /**自定义批量下载处理 */ onDownloadAll?: Function; /**支持预览的文件类型,多个类型之间使用逗号分隔。当文件支持预览时,文件的最后会显示预览按钮 */ previewAccept?: string; /**文件预览url。文件支持预览时,点击预览按钮打开的url地址 */ previewUrl?: string; /**渲染预览按钮的函数 */ previewButtonRender?: Function; /**是否支持多选文件,ie10+ 支持。开启后按住 ctrl 可选择多个文件 */ multiple?: boolean; } interface AttachmentState {} declare class Attachment extends React.Component { state: AttachmentState; componentDidMount(): void; componentDidUpdate(prevProps: AttachmentProps): void; componentWillUnmount(): void; render: () => React.ReactElement; } export default Attachment;