Browse Source

Fix defaultPageSize in Table.pagination, close #2874

pull/2875/head
afc163 8 years ago
parent
commit
9ae07d5bc7
  1. 2
      components/table/Table.jsx

2
components/table/Table.jsx

@ -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…
Cancel
Save