Add link for uploadItem when file.url is existed, close #1013

This commit is contained in:
afc163 2016-02-18 11:43:24 +08:00
parent a0c01b54e8
commit 5c22e32db8

View File

@ -86,7 +86,9 @@ export default React.createClass({
<div className={infoUploadingClass} key={file.uid}>
<div className={`${prefixCls}-list-item-info`}>
{icon}
<span className={`${prefixCls}-list-item-name`}>{file.name}</span>
{file.url
? <a href={file.url} target="_blank" className={`${prefixCls}-list-item-name`}>{file.name}</a>
: <span className={`${prefixCls}-list-item-name`}>{file.name}</span>}
{
this.props.listType === 'picture-card' && file.status !== 'uploading'
? (