-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: defaultValue类型为number时的bug (#3288)
- Loading branch information
1 parent
100f3cf
commit 3b2760c
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3b2760c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还是没有彻底解决
这样去设置还是不生效,即使把RadioButtonGroup加入defaultValueComponents,也不行,把isEmpty(currentFieldsValue[item.field]) 去掉就可以了 updateSchema 在 setFieldsValue 后面执行会把_setDefaultValue这个方法走一遍,这个判断本身就有问题: