disabled 了应该还是可以看大图的

This commit is contained in:
2betop 2020-01-09 12:05:08 +08:00
parent 3d099943d6
commit 6e24fef1c5

View File

@ -1057,21 +1057,20 @@ export default class ImageControl extends React.Component<
<div>...</div>
)}
{!disabled ? (
<a
data-tooltip="查看大图"
data-position="bottom"
target="_blank"
href={file.url || file.preview}
onClick={this.previewImage.bind(
this,
file,
key
)}
>
<Icon icon="view" className="icon" />
</a>
) : null}
<a
data-tooltip="查看大图"
data-position="bottom"
target="_blank"
href={file.url || file.preview}
onClick={this.previewImage.bind(
this,
file,
key
)}
>
<Icon icon="view" className="icon" />
</a>
{!!crop && !disabled ? (
<a
data-tooltip="裁剪图片"