king
2021-09-01 31ec63f0419895876cbaba99637a884a32d33d0d
src/templates/zshare/pasteform/index.jsx
@@ -7,7 +7,7 @@
class MainSearch extends Component {
  static propTpyes = {
    dict: PropTypes.object     // 字典项
    inputSubmit: PropTypes.func // 回车事件
  }
  componentDidMount () {
@@ -16,7 +16,7 @@
      if (_form && _form.select) {
        _form.select()
      }
    } catch {
    } catch (e) {
      console.warn('Form focusing error!')
    }
  }
@@ -71,10 +71,10 @@
                rules: [
                  {
                    required: true,
                    message: this.props.dict['form.required.input'] + '配置信息!'
                    message: '请输入配置信息!'
                  }
                ]
              })(<TextArea autosize={{ minRows: 4, maxRows: 8 }} />)}
              })(<TextArea autoSize={{ minRows: 6, maxRows: 6 }} onPressEnter={() => this.props.inputSubmit && this.props.inputSubmit()}/>)}
            </Form.Item>
          </Col>
        </Row>