Skip to content

表单中多选框的值及其选中状态同步的问题 #1307

@unihon

Description

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

What problem does this feature solve?

表单中的多选框在使用 v-decorator 装饰后,可以在 option.initialValue 设置多选框的值。但该值并不会同步到多选框的选择状态,需要额外的设置 <a-checkbox defaultChecked=bool>。这样就有一个情况就是,在通过 form.setFieldsValue() 或者其他方法修改多选框的值时,为了实现值和选择状态的一致,同样的还要额外的修改 defaultChecked 或者 checkedbool 值。我认为这里应该改良一下。

What does the proposed API look like?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions