From c4c7a3ea3e000efd1b7b348ac8bdda2369105e51 Mon Sep 17 00:00:00 2001 From: Katherine Date: Tue, 18 Jun 2024 16:42:47 +0800 Subject: [PATCH] refactor: sub-table disabled dragSort (#4696) * refactor: sub-table disableddragSort * refactor: sub-table disabled dragSort --- .../src/schema-component/antd/association-field/SubTable.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx b/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx index d1b2ec35df..9ead589cfb 100644 --- a/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/SubTable.tsx @@ -50,7 +50,6 @@ export const SubTable: any = observer( const compile = useCompile(); const labelUiSchema = useLabelUiSchema(collectionField, fieldNames?.label || 'label'); const recordV2 = useCollectionRecord(); - const move = (fromIndex: number, toIndex: number) => { if (toIndex === undefined) return; if (!isArr(field.value)) return; @@ -164,7 +163,7 @@ export const SubTable: any = observer( size={'small'} field={field} showIndex - dragSort={field.editable} + dragSort={false} showDel={field.editable} pagination={false} rowSelection={{ type: 'none', hideSelectAll: true }}