king
2020-03-03 e603c97dbe7a4f1dbd6445e00383ed651182e0fe
src/templates/tableshare/colspanform/index.jsx
@@ -9,11 +9,8 @@
  static propTpyes = {
    dict: PropTypes.object, // 字典项
    columns: PropTypes.array,
    card: PropTypes.any
  }
  state = {
    card: PropTypes.any,
    inputSubmit: PropTypes.any   // 回车提交事件
  }
  componentDidMount () {
@@ -56,6 +53,14 @@
    })
  }
  handleSubmit = (e) => {
    e.preventDefault()
    if (this.props.inputSubmit) {
      this.props.inputSubmit()
    }
  }
  render() {
    const { getFieldDecorator } = this.props.form
    const formItemLayout = {
@@ -85,7 +90,7 @@
                    message: formRule.input.message
                  }
                ]
              })(<Input placeholder="" autoComplete="off" />)}
              })(<Input placeholder="" autoComplete="off" onPressEnter={this.handleSubmit} />)}
            </Form.Item>
          </Col>
          <Col span={12}>