mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
Add link for uploadItem when file.url is existed, close #1013
This commit is contained in:
parent
a0c01b54e8
commit
5c22e32db8
@ -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'
|
||||
? (
|
||||
|
Loading…
Reference in New Issue
Block a user