mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 03:46:08 +00:00
refactor: sub-table disabled dragSort (#4696)
* refactor: sub-table disableddragSort * refactor: sub-table disabled dragSort
This commit is contained in:
parent
8a7e86fdd6
commit
c4c7a3ea3e
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user