项目中再table 中添加Upload,Upload中onChange只能返回file参数,如果相对起添加其他参数方便处理可以用下面方法
onChange={(file) => this.handleUploadFileOnChange(file,record)
<Form.Item key={index} required>
{getFieldDecorator(`table[${record.key}].example`, {
initialValue: typeof(text)=='string' ? undefined : text})
( <Upload {...props} fileList={this.state.fileList}
onChange={(file) => this.handleUploadFileOnChange(file,record) } >
<Button>选择文件</Button>
</Upload>
)}
</Form.Item>