This commit is contained in:
chenos 2021-01-27 14:19:20 +08:00
parent 18e7d5ba77
commit 7e96e9d469

View File

@ -26,8 +26,10 @@ function toGroups(fields: any[], { displayFields = [] }) {
if (Array.isArray(displayFields) && displayFields.length && displayFields.indexOf(field.id) === -1) { if (Array.isArray(displayFields) && displayFields.length && displayFields.indexOf(field.id) === -1) {
return null; return null;
} }
if (field.interface === 'description' && group.children.length) { if (field.interface === 'description') {
groups.push(group); if (group.children.length) {
groups.push(group);
}
group = { group = {
title: field.title, title: field.title,
tooltip: get(field, 'component.tooltip'), tooltip: get(field, 'component.tooltip'),