ant-design / ant-design/pro-components
🐛[BUG]ProFormSelect使用fieldNames配置字段后options的类型无法正确识别
Open
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🐛 bug 描述
ProFormSelect使用fieldNames配置字段后options的类型无法正确识别。
5.16.1可以正确识别,升级到5.20.1就提示类型错误。
### 📷 复现步骤
一个简单的调用
```js
```
### 🏞 期望结果
### 💻 复现代码
### © 版本信息
- ProComponents 版本: 5.20.1
- umi 版本
- 浏览器环境 chrome latest
- 开发环境 mac OS
### 🚑 其他信息
Contributor guide
Research direction
Start at the ProFormSelect entry point and inspect the TypeScript definitions connecting fieldProps.fieldNames with options. Reproduce the shown call on ProComponents 5.20.1, compare its behavior with 5.16.1, and consider the issue done when options shaped as { a: 1, b: 1 } type-check correctly with the custom field names.
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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100