king
2021-11-16 cb8c83978177a8d3de769fca12d2aa3642eb0275
src/templates/zshare/pasteform/index.jsx
@@ -49,6 +49,14 @@
    })
  }
  submit = () => {
    if (this.props.inputSubmit) {
      setTimeout(() => {
        this.props.inputSubmit()
      }, 10)
    }
  }
  render() {
    const { getFieldDecorator } = this.props.form
    const formItemLayout = {
@@ -74,7 +82,7 @@
                    message: '请输入配置信息!'
                  }
                ]
              })(<TextArea autoSize={{ minRows: 6, maxRows: 6 }} onPressEnter={() => this.props.inputSubmit && this.props.inputSubmit()}/>)}
              })(<TextArea autoSize={{ minRows: 6, maxRows: 6 }} onPressEnter={this.submit}/>)}
            </Form.Item>
          </Col>
        </Row>