step7.jsx 918 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import React from 'react';
  2. import { Spin, Form, Button } from 'antd';
  3. import './step7.less';
  4. const FormItem = Form.Item;
  5. const formItemLayout = {
  6. labelCol: { span: 4 },
  7. wrapperCol: { span: 10 },
  8. };
  9. const EvaluateStep7 = Form.create({})(React.createClass({
  10. getInitialState() {
  11. return {
  12. loading: false
  13. };
  14. },
  15. componentWillMount() {
  16. },
  17. next() {
  18. if (this.props.next) {
  19. this.props.next();
  20. }
  21. },
  22. prev() {
  23. if (this.props.prev) {
  24. this.props.prev();
  25. }
  26. },
  27. render() {
  28. let {loading} = this.state;
  29. return (
  30. <Spin spinning={loading}>
  31. <div>Step 7</div>
  32. <div className="steps-action">
  33. <Button type="primary" onClick={() => this.next()}>保存,下一步</Button>
  34. <Button style={{ marginLeft: 8 }} onClick={() => this.prev()}>上一步</Button>
  35. </div>
  36. </Spin>
  37. )
  38. },
  39. }));
  40. export default EvaluateStep7;