fix: image can not be previewed
This commit is contained in:
parent
6c75950b6a
commit
1bf32c7f7e
@ -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();
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user