Explorar o código

pagination:fix bug Pagination page number display problem

openks %!s(int64=8) %!d(string=hai) anos
pai
achega
78ec098960
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
           }
         }