feat: 优化crud2组件移动端卡片模式自适应 headToolbar 时统计 button 数量的逻辑

This commit is contained in:
jinye 2024-11-08 11:23:09 +08:00 committed by lmaomaoz
parent ea25b68c87
commit 0a8ceaaf39

View File

@ -1436,7 +1436,10 @@ export default class CRUD2 extends React.Component<CRUD2Props, any> {
} else if (node.type === 'search-box') {
searchBox = node;
}
Object.values(node).forEach((item: any) => traverse(item, node));
if (node.items || node.body) {
traverse(node.items || node.body, node);
}
}
}
toolbar.forEach((item: any) => {