king
2020-03-03 e603c97dbe7a4f1dbd6445e00383ed651182e0fe
src/templates/tableshare/gridbtnform/index.jsx
@@ -7,7 +7,8 @@
class MainSearch extends Component {
  static propTpyes = {
    dict: PropTypes.object, // 字典项
    card: PropTypes.any
    card: PropTypes.any,
    inputSubmit: PropTypes.any  // 回车提交事件
  }
  state = {
@@ -75,6 +76,14 @@
    ]
  }
  handleSubmit = (e) => {
    e.preventDefault()
    if (this.props.inputSubmit) {
      this.props.inputSubmit()
    }
  }
  getFields() {
    const { getFieldDecorator } = this.props.form
    const fields = []
@@ -95,7 +104,7 @@
                    message: formRule.input.message
                  }
                ]
              })(<Input placeholder="" autoComplete="off" disabled={item.readonly} />)}
              })(<Input placeholder="" autoComplete="off" disabled={item.readonly} onPressEnter={this.handleSubmit} />)}
            </Form.Item>
          </Col>
        )