import React from 'react'; import { WeaSteps, WeaDatePicker, WeaInput } from 'ecCom'; import { Upload, Icon, Modal, Row, Col, Button } from "antd"; import ModalStep1 from './modalStep1' import ModalStep2 from './modalStep2' import ModalStep3 from './modalStep3' const Dragger = Upload.Dragger; const Step = WeaSteps.Step; export default class ImportModal extends React.Component { constructor(props) { super(props) this.state = { currentStep: 0, } } nextStep() { this.setState({ currentStep: this.state.currentStep + 1 }) } preStep() { this.setState({ currentStep: this.state.currentStep - 1 }) } render() { const { currentStep } = this.state; return (
{ this.state.currentStep == 0 && ( {this.nextStep();}}/>) } { this.state.currentStep == 1 && ( {this.nextStep()}} onStep2Pre={() => {this.preStep()}}/>) } { this.state.currentStep == 2 && ( {}}/>) }
) } }