fix: image can not be previewed

This commit is contained in:
chenos 2021-04-25 11:55:32 +08:00
parent 6c75950b6a
commit 1bf32c7f7e
2 changed files with 2 additions and 8 deletions

View File

@ -446,11 +446,7 @@ export function AttachmentFieldItem(props: any) {
<a <a
onClick={e => { onClick={e => {
e.stopPropagation(); e.stopPropagation();
if ( if (testUrl(url)) {
testUrl(url, {
exclude: ['.png', '.jpg', '.jpeg', '.gif'],
})
) {
props.onClick && props.onClick(); props.onClick && props.onClick();
// setVisible(true); // setVisible(true);
e.preventDefault(); e.preventDefault();

View File

@ -1,7 +1,5 @@
.ant-drawer-body { .ant-drawer-body {
> div { padding-bottom: 50px;
margin-bottom: 50px;
}
.form-button-group { .form-button-group {
position: absolute; position: absolute;
bottom: 0; bottom: 0;