From ea61aa3caba529c0e8e8d8d121dec3dd09ed0702 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 19 Jul 2016 20:28:56 +0800 Subject: [PATCH] upload code style --- components/upload/index.tsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/components/upload/index.tsx b/components/upload/index.tsx index a6866321bd..502b406e80 100644 --- a/components/upload/index.tsx +++ b/components/upload/index.tsx @@ -201,9 +201,9 @@ export default class Upload extends React.Component { } handleManualRemove = (file) => { - /*eslint-disable */ + /* eslint-disable */ file.status = 'removed'; - /*eslint-enable */ + /* eslint-enable */ if ('onRemove' in this.props) { this.props.onRemove(file); } else { @@ -213,7 +213,7 @@ export default class Upload extends React.Component { onChange = (info) => { if (!('fileList' in this.props)) { - this.setState({fileList: info.fileList}); + this.setState({ fileList: info.fileList }); } this.props.onChange(info); } @@ -248,10 +248,11 @@ export default class Upload extends React.Component { let uploadList; if (this.props.showUploadList) { uploadList = ( - ); } @@ -262,10 +263,11 @@ export default class Upload extends React.Component { ? `${prefixCls}-drag-hover` : ''; return ( -