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 }}
>
<DndContext
autoScroll
sensors={sensors}
onDragStart={(event) => {
const el = event?.active?.data?.current?.nodeRef

View File

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