king
2021-08-20 6c66c9c2a6d0f7e7ccc65d4d9e478f1acb74d87e
src/tabviews/zshare/topSearch/advanceform/index.jsx
@@ -43,9 +43,9 @@
      if (item.type === 'text') {
        if (item.inputType === 'search') {
          content = <Search placeholder={item.labelShow === 'false' ? item.label : ''} autoComplete="off" onSearch={this.handleSubmit} enterButton/>
          content = <Search allowClear placeholder={item.labelShow === 'false' ? item.label : ''} autoComplete="off" onSearch={this.handleSubmit} enterButton/>
        } else {
          content = <Input placeholder={item.labelShow === 'false' ? item.label : ''} autoComplete="off" onPressEnter={this.handleSubmit} />
          content = <Input allowClear placeholder={item.labelShow === 'false' ? item.label : ''} autoComplete="off" onPressEnter={this.handleSubmit} />
        }
      } else if (item.type === 'select' || item.type === 'link' || item.type === 'multiselect') {
        content = (<MKSelect config={item}/>)
@@ -72,7 +72,8 @@
    return fields
  }
  handleSubmit = () => {
  handleSubmit = (e) => {
    e.stopPropagation()
    // 回车或点击搜索
    this.props.form.validateFields((err, values) => {
      if (err) return