使用 mobx-form 我试图在表单加载时设置标记复选框以选中。设置值或选中的属性似乎不起作用。
const fields = [
{
name: 'my_checkbox',
label: 'The Checkbox: ',
type: 'checkbox',
rules: 'boolean',
value: true, // do I set initial, default ?
checked:true
},
];
...
<input {...form.$('my_checkbox').bind()} />