Browse Source

pagination:fix bug Pagination page number display problem

openks 8 năm trước cách đây
mục cha
commit
78ec098960
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;
           }
         }