ant design form下用checkbox
if (null != editDataSource.quitReason) {
quitReason = JSON.parse(editDataSource.quitReason);
}
<FormItem
label="申请原因:">
{getFieldDecorator("quitReason", {
initialValue: quitReason,
rules: [{
required: true, message: '请选择申请原因',
}]
})(
<CheckboxGroup onChange={this.handCheckQuitReason} options={[{value:"退网", label: '退网'},
{value:"其他原因:", label: '其他原因'}]}/>
)}
</FormItem>
得做一下数组化处理。