mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
Merge pull request #7637 from 2betop/crud-autoGenerateFilter
fix: 优化autoGenerateFilter展开收起逻辑 Close: #7471
This commit is contained in:
commit
5cb15800f5
@ -1572,11 +1572,12 @@ export default class Table extends React.Component<TableProps, object> {
|
||||
})
|
||||
);
|
||||
|
||||
let showExpander = searchableColumns.length >= columnsNum * 2;
|
||||
let showExpander = searchableColumns.length >= columnsNum;
|
||||
|
||||
// todo 以后做动画
|
||||
if (!store.searchFormExpanded) {
|
||||
if (!store.searchFormExpanded && body.length) {
|
||||
body.splice(1, body.length - 1);
|
||||
body[0].body.splice(columnsNum - 1, body[0].body.length - columnsNum + 1);
|
||||
}
|
||||
|
||||
let lastGroup = body[body.length - 1];
|
||||
|
Loading…
Reference in New Issue
Block a user