From 353f2cb004f47d9b145906a64125717d4a5ad1a8 Mon Sep 17 00:00:00 2001 From: tom Date: Thu, 7 Apr 2016 11:18:32 +0800 Subject: [PATCH] =?UTF-8?q?this=E6=9C=AA=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/upload/index.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/upload/index.jsx b/components/upload/index.jsx index 3ec2a8403a..316df0aab8 100644 --- a/components/upload/index.jsx +++ b/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({