From 05a251b1fc06012e77e402b422e3120430effef1 Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 25 Apr 2022 12:04:59 +0800 Subject: [PATCH] feat: kanban disableCardDrag --- .../client/src/schema-component/antd/kanban-v2/Kanban.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/kanban-v2/Kanban.tsx b/packages/core/client/src/schema-component/antd/kanban-v2/Kanban.tsx index 1154f08d7..33e822670 100644 --- a/packages/core/client/src/schema-component/antd/kanban-v2/Kanban.tsx +++ b/packages/core/client/src/schema-component/antd/kanban-v2/Kanban.tsx @@ -58,7 +58,7 @@ export const Kanban: ComposedKanban = observer((props: any) => { const { groupField, onCardDragEnd, ...restProps } = useProps(props); const field = useField(); const fieldSchema = useFieldSchema(); - const [disableCardDrag, setDisableCardDrag] = useState(!!restProps.disableCardDrag); + const [disableCardDrag, setDisableCardDrag] = useState(false); const schemas = useMemo( () => fieldSchema.reduceProperties( @@ -88,10 +88,11 @@ export const Kanban: ComposedKanban = observer((props: any) => { return ( ( @@ -135,7 +136,6 @@ export const Kanban: ComposedKanban = observer((props: any) => { ); }} - {...restProps} > {{ columns: field.value || [],