From 9ae07d5bc7203703126d52a041782c5e4f46f290 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 29 Aug 2016 18:19:29 +0800 Subject: [PATCH] Fix defaultPageSize in Table.pagination, close #2874 --- components/table/Table.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/table/Table.jsx b/components/table/Table.jsx index 542f3b8a83..c3c419c006 100644 --- a/components/table/Table.jsx +++ b/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, } : {}, };