fix: sorting of sub table fields

This commit is contained in:
chenos 2021-01-08 08:52:55 +08:00
parent 747e743df8
commit 014f9128a5

View File

@ -141,7 +141,9 @@ const transforms = {
}
const props = {};
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('.')}))
}
arr.push({