mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
feat: 优化crud2组件移动端卡片模式自适应 headToolbar 时统计 button 数量的逻辑
This commit is contained in:
parent
ea25b68c87
commit
0a8ceaaf39
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user