From 598a3615e1dd6074c8d9bb25e8c4f3d0db90ec82 Mon Sep 17 00:00:00 2001 From: z Date: Wed, 9 Mar 2016 17:37:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E7=8A=B6=E6=80=81=E4=BC=A0=E9=80=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit onstart 时设置的是被封装后的对象的属性,这里直接传 file 的话没有 status/percent 属性. --- components/upload/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/upload/index.jsx b/components/upload/index.jsx index e3079bf154..60fc2a168a 100644 --- a/components/upload/index.jsx +++ b/components/upload/index.jsx @@ -142,7 +142,7 @@ const AntUpload = React.createClass({ targetItem.percent = e.percent; this.onChange({ event: e, - file, + file: targetItem, fileList: this.state.fileList }); },