ant-design / ant-design/pro-components

🐛[BUG]ProFormField组件的类型是不是错了

Open
#8,845 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

### 🐛 bug 描述

![image](https://github.com/user-attachments/assets/018f9621-74dc-448c-ad37-cebf5b041bf1)
ProFormField组件的render方法识别到的类型是右侧这个,实际上打印出的类型不符合预期

看起来应该是这个才对:
![image](https://github.com/user-attachments/assets/6f2adfbb-ac2f-4514-a0ec-a463b1a8097c)

### 🏞 期望结果

希望类型能准确

### © 版本信息

- ProComponents 版本: 2.8.1
- umi 版本
- 浏览器环境 Chrome 130
- 开发环境 Mac OS

Contributor guide

Open the contributing guide

Research direction

Start at the ProFormField component's render method and reproduce the reported type mismatch using the ProComponents 2.8.1 environment described. Compare the type shown by render with the runtime-printed type; done means the component reports the expected type accurately.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.