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
onClick={e => {
e.stopPropagation();
if (
testUrl(url, {
exclude: ['.png', '.jpg', '.jpeg', '.gif'],
})
) {
if (testUrl(url)) {
props.onClick && props.onClick();
// setVisible(true);
e.preventDefault();

View File

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