import { PureComponent } from "react"; import { ImportFileComponentState, ImportFileComponentProps } from "./interfaces"; export default class ImportFileComponent extends PureComponent, ImportFileComponentState> { private _uploadRef; state: ImportFileComponentState; constructor(props: ImportFileComponentProps, context: any); static defaultProps: Partial>; /** * 文件变化 */ private _onChange; /** * 文件上传成功 */ private _onSuccess; /** * 文件上传失败 */ private _onFail; /** * 文件重新或继续导入回调 * @param isSuccess 是否导入成功 */ private _continiuHandle; /** * 上传 * @param data 其他参数 */ upload(data?: { [key: string]: string; }): void; /** * 重置 */ reset(): void; render(): JSX.Element; }