Browse Source

pagination:fix bug Pagination page number display problem

openks 8 years ago
parent
commit
78ec098960
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/pagination/src/pager.vue

+ 2 - 2
packages/pagination/src/pager.vue

@@ -96,11 +96,11 @@
         let showNextMore = false;
 
         if (pageCount > pagerCount) {
-          if (currentPage > pagerCount - 2) {
+          if (currentPage > pagerCount - 3) {
             showPrevMore = true;
           }
 
-          if (currentPage < pageCount - 2) {
+          if (currentPage < pageCount - 3) {
             showNextMore = true;
           }
         }