Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给InputNumber赋值number类型,被转化成了string #153

Open
kxiaolan opened this issue Jun 14, 2024 · 0 comments
Open

给InputNumber赋值number类型,被转化成了string #153

kxiaolan opened this issue Jun 14, 2024 · 0 comments

Comments

@kxiaolan
Copy link

在使用BasicForm时候,用useForm的setFieldsValue方法给InputNumber组件赋值回显的时候,number类型的1被强制转化为了'1',导致校验报错。
经追查代码发现,这里有强制转化,不明白原因,求解释。
image
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant