|
@ -80,14 +80,19 @@ const AntUpload = React.createClass({ |
|
|
return { |
|
|
return { |
|
|
fileList: prevState.fileList.concat(info.file) |
|
|
fileList: prevState.fileList.concat(info.file) |
|
|
}; |
|
|
}; |
|
|
|
|
|
}, function() { |
|
|
|
|
|
info.fileList = this.state.fileList; |
|
|
|
|
|
this.props.onChange(info); |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
this.setState({ |
|
|
this.setState({ |
|
|
fileList: info.fileList |
|
|
fileList: info.fileList |
|
|
|
|
|
}, function() { |
|
|
|
|
|
info.fileList = this.state.fileList; |
|
|
|
|
|
this.props.onChange(info); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.props.onChange(info); |
|
|
|
|
|
}, |
|
|
}, |
|
|
getDefaultProps() { |
|
|
getDefaultProps() { |
|
|
return { |
|
|
return { |
|
|