24 lines
925 B
JavaScript
24 lines
925 B
JavaScript
import React from 'react'
|
|
import { Table, Button } from 'antd'
|
|
|
|
export default class ModalStep2 extends React.Component {
|
|
|
|
componentWillMount() {
|
|
this.props.onPreviewDate();
|
|
}
|
|
render() {
|
|
const {dataSource, columns} = this.props;
|
|
return (
|
|
<div style={{height: "550px", display: "flex", flexFlow: "column"}}>
|
|
<div style={{flex: "1"}}>
|
|
<Table dataSource={dataSource} columns={columns}/>
|
|
</div>
|
|
<div className="footerBtnWrapper" style={{marginTop: "10px", overflow: "hidden", height: "30px"}}>
|
|
<Button type="primary" style={{float: "right", marginLeft: "10px"}} onClick={this.props.onStep2Next}>下一步</Button>
|
|
<Button type="default" style={{float: "right"}} onClick={this.props.onStep2Pre}>上一步</Button>
|
|
</div>
|
|
|
|
</div>
|
|
)
|
|
}
|
|
} |