diff --git a/components/upload/index.jsx b/components/upload/index.jsx index 316df0aab8..c1b5666077 100644 --- a/components/upload/index.jsx +++ b/components/upload/index.jsx @@ -174,12 +174,11 @@ export default class Upload extends React.Component { } 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({ diff --git a/components/upload/uploadList.jsx b/components/upload/uploadList.jsx index 8c962f13bb..641b0bcb8e 100644 --- a/components/upload/uploadList.jsx +++ b/components/upload/uploadList.jsx @@ -2,7 +2,7 @@ import React from 'react'; import Animate from 'rc-animate'; import Icon from '../icon'; const prefixCls = 'ant-upload'; -import { Line } from '../progress'; +import Progress from '../progress'; import classNames from 'classnames'; // https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL @@ -81,7 +81,7 @@ export default class UploadList extends React.Component { if (file.status === 'uploading') { progress = (
- +
); }