king
2021-11-13 182445f68ca03beb95a90e57867f356fe155126b
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>