Fix defaultPageSize in Table.pagination, close #2874

This commit is contained in:
afc163 2016-08-29 18:19:29 +08:00
parent 93fec41219
commit 9ae07d5bc7

View File

@ -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,
} : {},
};