ant-design / ant-design/pro-components

👑 [需求] ProFormSelect 接口获取数据后本地搜索

Open
#9,682 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🔩 所属模块或组件
ProFormSelect
### 🥰 需求描述
数据是通过 request 一次性全部返回的,希望只有在初始化的时候调用该函数获取数据,后面搜索都走 antd Select 的本地搜索就行,不需要每次 change 都调用 request 函数.
当然现在每次搜索调用 request 函数 也是一种应用场景, 希望能否给 ProFormSelect 组件拓展出一个新的参数, 即 在使用 request 时开启搜索是否进行本地搜索.

Image

[gift](https://codesandbox.io/p/devbox/cha-xun-biao-ge-forked-ffzpsv?workspaceId=ws_2roJxHfyoYcoc1EN6ohJ8C)

Contributor guide

Open the contributing guide

Research direction

Start at the ProFormSelect component and use the linked CodeSandbox to reproduce the request-driven search behavior. Trace how request loads options and how search changes trigger it; done means an added option can keep the initial results locally and filter them without repeated requests, while preserving the existing request-search use case.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.