Skip to content

Use validateFields to report an error #3886

@wpbjiuy

Description

@wpbjiuy
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.7.2

Environment

^vue2.6.10

Reproduction link

https://www.antdv.com/components/form-cn/

Steps to reproduce

form 表单使用 v-decorator, 使用validateFields赋值报错

What is expected?

没有错误

What is actually happening?

Warning: You cannot set a form field before rendering a field associated with the value. You can use getFieldDecorator(id, options) instead v-decorator="[id, options]" to register it before render.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions