导入界面增加上一步
This commit is contained in:
parent
0c235113f9
commit
69343a6193
|
|
@ -53,6 +53,13 @@ export default class StepDialog extends React.Component {
|
||||||
current === steps.length - 1 && newImport.startImport();
|
current === steps.length - 1 && newImport.startImport();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
up() {
|
||||||
|
const {newImport} = this.props;
|
||||||
|
let {current,steps} = newImport;
|
||||||
|
current = current - 1;
|
||||||
|
newImport.current = current;
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
newImport
|
newImport
|
||||||
|
|
@ -65,8 +72,8 @@ export default class StepDialog extends React.Component {
|
||||||
height,
|
height,
|
||||||
title
|
title
|
||||||
} = this.state;
|
} = this.state;
|
||||||
|
|
||||||
const buttons = [
|
const buttons = [
|
||||||
|
((current === 0 || current === steps.length - 1) ? '' : <Button ecId={`${this && this.props && this.props.ecId || ''}_Button@jd6baw`} type="primary" onClick={() => this.up()}>上一步</Button>),
|
||||||
(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@jd6baw`} type="primary" onClick={() => this.next()}>{current === steps.length - 1 ? '关闭' : i18n.button.nextStep()}</Button>),
|
(<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@jd6baw`} type="primary" onClick={() => this.next()}>{current === steps.length - 1 ? '关闭' : i18n.button.nextStep()}</Button>),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue