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

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

@kxiaolan

Description

@kxiaolan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions