pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

🐛[BUG] ProFormSelect 组件上添加showSearch之后,每次输入都会触发request

Open frank7755 opened this issue 1 year ago • 1 comments

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

ProFormSelect 组件上添加showSearch之后,每次输入都会触发request请求,当ProFormSelect为多选模式时,不加showSearch不会触发重复请求, ProTable中的columns valueType=‘select’也会有同样的表现

🏞 期望结果

showSearch 不要重复请求

© 版本信息

  • ProComponents 版本: 2.8.5
  • umi 版本 ^4.1.1
  • 浏览器环境 132.0.6834.83
  • 开发环境 windows

🚑 其他信息

frank7755 avatar Feb 19 '25 02:02 frank7755

看上去是符合预期的,showSearch就是会去走request,如果需要防抖可以加一下防抖的配置

rubbishmaker avatar Jun 14 '25 02:06 rubbishmaker