mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:08:32 +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 compile = useCompile();
|
||||||
const labelUiSchema = useLabelUiSchema(collectionField, fieldNames?.label || 'label');
|
const labelUiSchema = useLabelUiSchema(collectionField, fieldNames?.label || 'label');
|
||||||
const recordV2 = useCollectionRecord();
|
const recordV2 = useCollectionRecord();
|
||||||
|
|
||||||
const move = (fromIndex: number, toIndex: number) => {
|
const move = (fromIndex: number, toIndex: number) => {
|
||||||
if (toIndex === undefined) return;
|
if (toIndex === undefined) return;
|
||||||
if (!isArr(field.value)) return;
|
if (!isArr(field.value)) return;
|
||||||
@ -164,7 +163,7 @@ export const SubTable: any = observer(
|
|||||||
size={'small'}
|
size={'small'}
|
||||||
field={field}
|
field={field}
|
||||||
showIndex
|
showIndex
|
||||||
dragSort={field.editable}
|
dragSort={false}
|
||||||
showDel={field.editable}
|
showDel={field.editable}
|
||||||
pagination={false}
|
pagination={false}
|
||||||
rowSelection={{ type: 'none', hideSelectAll: true }}
|
rowSelection={{ type: 'none', hideSelectAll: true }}
|
||||||
|
Loading…
Reference in New Issue
Block a user