mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
Fix defaultPageSize in Table.pagination, close #2874
This commit is contained in:
parent
93fec41219
commit
9ae07d5bc7
@ -27,7 +27,6 @@ const defaultLocale = {
|
||||
};
|
||||
|
||||
const defaultPagination = {
|
||||
pageSize: 10,
|
||||
onChange: noop,
|
||||
onShowSizeChange: noop,
|
||||
};
|
||||
@ -82,6 +81,7 @@ export default class Table extends React.Component {
|
||||
...defaultPagination,
|
||||
...pagination,
|
||||
current: pagination.defaultCurrent || pagination.current || 1,
|
||||
pageSize: pagination.defaultPageSize || pagination.pageSize || 10,
|
||||
} : {},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user