ant-design / ant-design/pro-components

🐛[BUG] ProFormSelect 不支持 antd6 api showSearch 的对象写法

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

Description

https://codesandbox.io/p/devbox/cha-xun-biao-ge-forked-hkpj32

### 🐛 bug 描述

需要的,这是 antd6 写法.
Image

现在的

Image
可见 `showSearch: {
autoClearSearchValue: false,
optionFilterProp: 'label',
}`
这样的写法是不生效的.

### 🏞 期望结果

支持 showSearch 对象写法

### 💻 复现代码
https://codesandbox.io/p/devbox/cha-xun-biao-ge-forked-hkpj32

### © 版本信息

- ProComponents 版本: [e.g. 4.0.0] 3.1.14-6
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and trace the ProFormSelect handling of the showSearch prop. Compare the current behavior with the antd 6 object form, especially autoClearSearchValue and optionFilterProp. Done means the object syntax works as expected without breaking existing showSearch usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.