@@ -338,9 +338,10 @@ class Pagination extends React.Component {
338338 let lastPager = null ;
339339 let gotoButton = null ;
340340
341+ const pageBoundaryCount = hideBoundary ? 0 : 1 ;
341342 const { pagerCount, hideBoundary } = props ;
342343 const goButton = ( props . showQuickJumper && props . showQuickJumper . goButton ) ;
343- const halfPagerCount = Math . max ( 1 , Math . floor ( pagerCount / 2 ) )
344+ const halfPagerCount = Math . max ( 1 , Math . floor ( pagerCount / 2 ) ) ;
344345 const pageBufferSize = props . showLessItems ? 1 : halfPagerCount ;
345346 const { current, pageSize } = this . state ;
346347
@@ -536,8 +537,7 @@ class Pagination extends React.Component {
536537
537538 let left = Math . max ( 1 , current - pageBufferSize ) ;
538539 let right = Math . min ( current + pageBufferSize , allPages ) ;
539- const pageBoundaryCount = hideBoundary ? 0 : 1 ;
540-
540+
541541 if ( current - 1 <= pageBufferSize ) {
542542 right = 1 + pageBufferSize * 2 + pageBoundaryCount ;
543543 }
@@ -563,7 +563,10 @@ class Pagination extends React.Component {
563563 ) ;
564564 }
565565
566- if ( current - pageBoundaryCount > pageBufferSize && current !== pageBoundaryCount + pageBufferSize + 1 ) {
566+ if (
567+ current - pageBoundaryCount > pageBufferSize &&
568+ current !== pageBoundaryCount + pageBufferSize + 1
569+ ) {
567570 pagerList [ 0 ] = React . cloneElement ( pagerList [ 0 ] , {
568571 className : `${ prefixCls } -item-after-jump-prev` ,
569572 } ) ;
0 commit comments