mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 12:40:50 +00:00
fix: sorting of sub table fields
This commit is contained in:
parent
747e743df8
commit
014f9128a5
@ -141,7 +141,9 @@ const transforms = {
|
|||||||
}
|
}
|
||||||
const props = {};
|
const props = {};
|
||||||
if (field.get('interface') === 'subTable') {
|
if (field.get('interface') === 'subTable') {
|
||||||
const children = await field.getChildren();
|
const children = await field.getChildren({
|
||||||
|
order: [['sort', 'asc']],
|
||||||
|
});
|
||||||
props['children'] = children.map(child => ({...child.toJSON(), dataIndex: child.name.split('.')}))
|
props['children'] = children.map(child => ({...child.toJSON(), dataIndex: child.name.split('.')}))
|
||||||
}
|
}
|
||||||
arr.push({
|
arr.push({
|
||||||
|
Loading…
Reference in New Issue
Block a user