Browse Source

Merge branch 'dev' of http://192.168.1.41:3000/outaozhen/cldV2react into dev

outaozhen 4 years ago
parent
commit
3b31bf0932
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/components/Table/src/BasicTable.tsx

+ 3 - 2
src/components/Table/src/BasicTable.tsx

@@ -2,7 +2,7 @@
 /* eslint-disable no-param-reassign */
 import PermSelect from '@/pages/Customer/Company/components/PermSelect'
 import { TABLE_COLUMNS_MAP, ColumnStateEnum } from '@/utils/cache/cacheEnum'
-import { isNullOrUnDef, isUnDef } from '@/utils/is'
+import { isBoolean, isNullOrUnDef } from '@/utils/is'
 import type { ColumnsState } from '@ant-design/pro-table'
 import ProTable from '@ant-design/pro-table'
 import { useModel } from 'umi'
@@ -96,7 +96,8 @@ const BasicTable: {
     columnsRef,
     state.selectKeysRef,
     state.sizeRef,
-    isUnDef(resetProps.pagination)
+    // TODO: 只要是boolean[false]说明不需要分页器, 则高度计算时不应该计入
+    !isBoolean(resetProps.pagination)
   )
 
   useLayoutEffect(() => {