Skip to content

Commit

Permalink
feat: 优化crud2组件移动端卡片模式自适应 headToolbar 时统计 button 数量的逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
jinye authored and CheshireJCat committed Nov 8, 2024
1 parent ea25b68 commit 0a8ceaa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/amis/src/renderers/CRUD2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 0a8ceaa

Please sign in to comment.