ant-design / ant-design/pro-components
👑 [需求] ProTable 的 LighterFilter 模式下,LightSelect 组件支持搜索时请求网络数据
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
### 🔩 所属模块或组件
pro-field ==> LightSelect
### 🥰 需求描述
ProTable 的 LighterFilter 模式下,LightSelect 组件支持搜索时请求网络数据
LightSelect 支持类似 SearchSelect 的 fetchDataOnSearch 功能
https://github.com/ant-design/pro-components/blob/8d3cd04eb581c6e03b31e79998c7df7556ed3471/packages/field/src/components/Select/SearchSelect/index.tsx#L230
### ⛰ 功能需求适用场景
开启 filterType: "light" 后搜索不再请求网络数据
### 🧐 解决方案
参照 SearchSelect 改一下。
### 🚑 其他信息
Contributor guide
Research direction
Start with packages/field/src/components/Select/SearchSelect/index.tsx at the referenced fetchDataOnSearch implementation, then compare its behavior with pro-field's LightSelect used by ProTable's LighterFilter mode. Done means LightSelect can request network data while searching in filterType: "light", with behavior matching SearchSelect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100