Merge pull request #7637 from 2betop/crud-autoGenerateFilter

fix: 优化autoGenerateFilter展开收起逻辑 Close: #7471
This commit is contained in:
hsm-lv 2023-08-01 10:06:52 +08:00 committed by GitHub
commit 5cb15800f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];