mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
this未绑定
This commit is contained in:
parent
749bf18e8d
commit
353f2cb004
@ -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…
Reference in New Issue
Block a user