kanban auto scroll

This commit is contained in:
chenos 2021-08-23 12:05:37 +08:00
parent 6188060475
commit 6f84f925aa
2 changed files with 3 additions and 0 deletions

View File

@ -214,6 +214,7 @@ const InternalKanban = observer((props: any) => {
value={{ field, resource, service, schemas, props }} value={{ field, resource, service, schemas, props }}
> >
<DndContext <DndContext
autoScroll
sensors={sensors} sensors={sensors}
onDragStart={(event) => { onDragStart={(event) => {
const el = event?.active?.data?.current?.nodeRef const el = event?.active?.data?.current?.nodeRef

View File

@ -14,6 +14,8 @@
background: #f9f9f9; background: #f9f9f9;
margin-right: 12px; margin-right: 12px;
padding: 12px; padding: 12px;
height: 60vh;
overflow: auto;
} }
.nb-kanban-item { .nb-kanban-item {