Browse Source

this未绑定

pull/1350/head
tom 9 years ago
parent
commit
353f2cb004
  1. 5
      components/upload/index.jsx

5
components/upload/index.jsx

@ -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({

Loading…
Cancel
Save