UNPKG

@grc/business

Version:

更新sider选项 : forceSubMenuRender

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