this未绑定

This commit is contained in:
tom 2016-04-07 11:18:32 +08:00
parent 749bf18e8d
commit 353f2cb004

View File

@ -173,12 +173,13 @@ export default class Upload extends React.Component {
this.handleRemove(targetItem);
}
beforeUpload(file) {
beforeUpload = (file) => {
console.log(this.props);
this.recentUploadStatus = this.props.beforeUpload(file);
return this.recentUploadStatus;
}
handleRemove(file) {
handleRemove = (file) => {
let fileList = this.removeFile(file);
if (fileList) {
this.onChange({