mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-17 17:40:31 +08:00
disable drag in gridlayout in runtime
This commit is contained in:
parent
f0dabc001d
commit
2789e96e3b
@ -22,7 +22,13 @@ const GridLayout: ComponentImplementation<Static<typeof PropsSchema>> = ({
|
||||
|
||||
return (
|
||||
<Suspense fallback={null}>
|
||||
<BaseGridLayout onDragStop={onDragStop} onDrop={onDrop} layout={layout}>
|
||||
<BaseGridLayout
|
||||
isDraggable={!!gridCallbacks}
|
||||
isResizable={!!gridCallbacks}
|
||||
onDragStop={onDragStop}
|
||||
onDrop={onDrop}
|
||||
layout={layout}
|
||||
>
|
||||
{getSlots(slotsMap, 'content')}
|
||||
</BaseGridLayout>
|
||||
</Suspense>
|
||||
|
Loading…
Reference in New Issue
Block a user