Эх сурвалжийг харах

pagination:fix bug Pagination page number display problem

openks 8 жил өмнө
parent
commit
78ec098960

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

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