问题描述
antd表单绑定select组件,
问题出现的环境背景及自己尝试过哪些方法
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)
<FormItem label={label}
key={fileId}
{...formItemLayout}>
{
getFieldDecorator([fileId], {
initialValue
})(
<Select placeholder={placeholder}
showSearch
allowClear>
{this.getOptionList(item.optionList)}
</Select>
)
}
</FormItem>
[fileId]这直接写 fileId 这个位置放String,而不是Array