fix: form action dragging area is too large (#1628)
This commit is contained in:
parent
f5171ce6e7
commit
ecdd46bf83
@ -13,6 +13,7 @@ export const ActionBar = observer((props: any) => {
|
|||||||
const { designable } = useDesignable();
|
const { designable } = useDesignable();
|
||||||
if (layout === 'one-column') {
|
if (layout === 'one-column') {
|
||||||
return (
|
return (
|
||||||
|
<DndContext>
|
||||||
<div style={{ display: 'flex', ...style }} {...others}>
|
<div style={{ display: 'flex', ...style }} {...others}>
|
||||||
{props.children && (
|
{props.children && (
|
||||||
<div style={{ marginRight: 8 }}>
|
<div style={{ marginRight: 8 }}>
|
||||||
@ -25,6 +26,7 @@ export const ActionBar = observer((props: any) => {
|
|||||||
)}
|
)}
|
||||||
{render()}
|
{render()}
|
||||||
</div>
|
</div>
|
||||||
|
</DndContext>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const hasActions = Object.keys(fieldSchema.properties ?? {}).length > 0;
|
const hasActions = Object.keys(fieldSchema.properties ?? {}).length > 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user