refactor: sub-table disabled dragSort (#4696)

* refactor: sub-table disableddragSort

* refactor: sub-table disabled dragSort
This commit is contained in:
Katherine 2024-06-18 16:42:47 +08:00 committed by GitHub
parent 8a7e86fdd6
commit c4c7a3ea3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 }}