fix eslint error

This commit is contained in:
kasinooya 2016-01-15 15:57:41 +08:00
parent 4d0e873c88
commit a6f68b2d37

View File

@ -57,22 +57,18 @@ export default React.createClass({
let icon = <Icon type="paper-clip" />;
if (this.props.listType === 'picture' || this.props.listType === 'picture-card') {
if (file.status === 'uploading' || (!file.thumbUrl && !file.url)) {
if (this.props.listType === 'picture-card') {
icon = <div className={prefixCls + '-list-item-uploading-text'}>文件上传中</div>
if (this.props.listType === 'picture-card') {
icon = <div className={prefixCls + '-list-item-uploading-text'}>文件上传中</div>;
} else {
icon = <Icon className={prefixCls + '-list-item-thumbnail'} type="picture" />;
}
} else {
icon = (<a className={prefixCls + '-list-item-thumbnail'}
href={file.url}
target="_blank"><img src={file.thumbUrl || file.url} alt={file.name} /></a>
);
}
}
if (file.status === 'uploading') {