ant-design / ant-design/pro-components
自定义使用valueType的问题
- 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
### 🧐 问题描述
```
export const valueTypeMap = {
datePicker: {
renderFormItem(text, props) {
return ;
},
},
select: {
renderFormItem(text, props) {
console.log(props);
return ;
},
}
}
```
当与原生valueType重复且要改变时,页面会卡死。 是不允许这样操作嘛
### 💻 示例代码
### 🚑 其他信息
Contributor guide
Research direction
Start by reproducing the freeze with the shown valueTypeMap, especially the renderFormItem entries for datePicker and select. Then trace how custom value types are resolved when they reuse native names. Done means the supported behavior is clarified and the freeze is fixed or explicitly prevented, with a regression check for this case.
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
- 25/100