import React from 'react'; import './index.less'; import { UploadFile, RcFile, UploadChangeParam, UploadFileStatus } from 'antd/lib/upload/interface'; interface IAttachmentFile { id?: string; uid?: string; entityId?: string; entityTypeName?: string; fileName?: string; fileSize?: number; fileType?: string; status?: UploadFileStatus; storePath?: string; } interface IAttachmentProp { value?: IAttachmentFile[]; onChange?: Function; action?: string | ((file: RcFile) => string) | ((file: RcFile) => PromiseLike); onRemove?: (file: UploadFile) => void | boolean | Promise; } declare class Attachment extends React.Component { constructor(props: IAttachmentProp); componentWillReceiveProps(nextProps: IAttachmentProp): void; onChange: (info: UploadChangeParam) => void; onRemove: (file: any) => boolean | void | Promise; render(): JSX.Element; } export default Attachment;