lipu12281
     <AutoComplete
                      style={{ width: \'30%\' }}
                      dataSource={REGULAR_REPLACE}
                      placeholder="请输入正则"
                      onChange={this.setRegular}
                      value={searchVal}
    />



reRegular = e => {
     const reValue = e.target.value ? e.target.value : \'\';
     this.setState({
          searchValue01: reValue,
     });
};

  采用antd组件中的AutoComplete即可处理

 

分类:

技术点:

相关文章:

  • 2021-11-01
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2021-11-24
  • 2022-01-11
猜你喜欢
  • 2021-10-19
  • 2021-11-01
相关资源
相似解决方案