-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- 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 或者 checked 的 bool 值。我认为这里应该改良一下。