diff --git a/packages/client/src/schemas/kanban/index.tsx b/packages/client/src/schemas/kanban/index.tsx index 31e7ed73b..810d124a0 100644 --- a/packages/client/src/schemas/kanban/index.tsx +++ b/packages/client/src/schemas/kanban/index.tsx @@ -115,33 +115,35 @@ const KanbanColumn = (props) => { const { field, schemas } = useKanban(); const { items } = props; return ( - - {items?.map((item) => { - const index = field.value?.findIndex((val) => val.id === item.id); - return ( - - + + {items?.map((item) => { + const index = field.value?.findIndex((val) => val.id === item.id); + return ( + - {/* {item.id} */} - - - - ); - })} - + + {/* {item.id} */} + + + + ); + })} + + ); }; @@ -414,7 +416,7 @@ Kanban.useCreateAction = () => { const column = useContext(KanbanColumnContext); const groupField = props.groupField; const form = useForm(); - const [,setVisible] = useContext(VisibleContext); + const [, setVisible] = useContext(VisibleContext); return { async run() { await resource.create({ @@ -432,7 +434,7 @@ Kanban.useUpdateAction = () => { const { service, resource, props } = useKanban(); const ctx = useContext(KanbanCardContext); const form = useForm(); - const [,setVisible] = useContext(VisibleContext); + const [, setVisible] = useContext(VisibleContext); return { async run() { await resource.save(omit(form.values, ['sort']), { diff --git a/packages/client/src/schemas/kanban/style.less b/packages/client/src/schemas/kanban/style.less index 2351e9058..8aef2825c 100644 --- a/packages/client/src/schemas/kanban/style.less +++ b/packages/client/src/schemas/kanban/style.less @@ -14,8 +14,11 @@ background: #f9f9f9; margin-right: 12px; padding: 12px; - height: 60vh; - overflow: auto; + .nb-kanban-list { + height: 60vh; + overflow: auto; + margin-bottom: 12px; + } } .nb-kanban-item {