From 968495e389f95dd6eb6ca6de90d2e1b4ae595c3f Mon Sep 17 00:00:00 2001 From: walt <912788137@qq.com> Date: Thu, 30 Jun 2016 15:01:59 +0800 Subject: [PATCH] fix --- src/Table.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Table.jsx b/src/Table.jsx index 6ca2e94e5..888682ee1 100644 --- a/src/Table.jsx +++ b/src/Table.jsx @@ -423,7 +423,7 @@ const Table = React.createClass({ getMaxColumnsPage() { const { columnsPageRange, columnsPageSize } = this.props; - return Math.floor((columnsPageRange[1] - columnsPageRange[0] + 1) / columnsPageSize); + return Math.ceil((columnsPageRange[1] - columnsPageRange[0] + 1) / columnsPageSize) - 1; }, goToColumnsPage(currentColumnsPage) {