ant-design / ant-design/pro-components
🧐[问题] ProFormSelect能否默认不调用request,聚焦后再调用
Open
- 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
### 🧐 问题描述
存在多个ProFormSelect的情况,初始每个ProFormSelect都默认调用request没有必要,能否默认不调用request,select聚焦后再调用
### 💻 示例代码
能否增加一个lazyLoad属性,输入框聚焦时再请求接口
### 🚑 其他信息
Contributor guide
Research direction
The issue does not name a file, test, or entry point. Start by locating ProFormSelect and its request-loading behavior, then determine how focus-triggered loading and a lazyLoad option should fit the existing API. Done means initial rendering does not request data when lazy loading is enabled, while focusing the select triggers the request.
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