引入 antd 了 Form, Input, Checkbox
通过getFieldProps可以给checkbox正常做initialValue赋值
<Checkbox
{...getFieldProps('firstSocialSecurity', {
initialValue: true
})}>第一次在北京缴纳社保
</Checkbox>
当getFieldProps和checkbox结合使用时,initialValue无法生效;
http://ant.design/components/form#getFieldProps options
Please read documentation & FAQ and search issues before open an issue, THX!
It will be better if you read smart questions(提问的智慧).
valuePropName: 'checked',
initialValue: true
})}>第一次在北京缴纳社保
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
Most helpful comment
valuePropName: 'checked',
initialValue: true
})}>第一次在北京缴纳社保