Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

给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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant