import React, { Component } from "react"; import { ShowUploadListInterface } from "antd/lib/upload/interface"; interface iProps { maxFileNumber?: number; maxFileLength?: number; minFileLength?: number; filePatten?: string; fileList?: any[]; action?: string; disabled?: boolean; showUploadList?: boolean | ShowUploadListInterface; onChange?: (files: any[]) => void; children?: React.ReactNode; checkUploaderUrl?: string; changeUploadDisableState?: (disableUploadState: boolean) => void; changeCurrentUploadFile?: (file: any) => void; } export default class FileUpload extends Component { private uploadService; state: any; initFileList: (fileList?: any[]) => any[]; componentDidMount(): void; componentWillReceiveProps(newProps: any): void; getExtraData: (file: any) => { key: string; AWSAccessKeyId: any; signature: any; }; transformFile: (file: any) => any; showTime: (val: number) => string; changeUploadComponentState: (disableUploadState: boolean, uploadStatus?: string) => Promise; getFileType: (suffix: any) => string; beforeUpload: (file: any) => boolean | Promise; /** * 计算md5,实现断点续传及秒传 * @param file */ computeMD5(file: any): Promise; handleUpload: (param: any) => void; splitComplete: () => Promise; handleChange: ({ fileList, file, event }: { fileList: any; file: any; event: any; }) => void; render(): JSX.Element; } export {};