From 962292593a39dd5f7745a44dfccd04151aae4b5a Mon Sep 17 00:00:00 2001 From: lxy Date: Wed, 18 Jun 2025 09:31:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5total=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- es/components/pagination/web.js | 2 +- src/components/pagination/web.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/es/components/pagination/web.js b/es/components/pagination/web.js index 1812cff2..71d8e08b 100644 --- a/es/components/pagination/web.js +++ b/es/components/pagination/web.js @@ -87,7 +87,7 @@ export default function Render(props) { ])} ) : (
  • {/* 共 {newTotal >= total! ? (more ? newTotal + '+' : (currentPage! - 1) * pageSize! + count!) : total} 条 */} - 共 {(newTotal > total ? (more ? (newTotal - pageSize) + '+' : (currentPage - 1) * pageSize + count) : total + newTotal >= getTotal ? '+' : '')} 条 + 共 {(newTotal > total ? (more ? (newTotal - pageSize) + '+' : (currentPage - 1) * pageSize + count) : total + (newTotal >= getTotal ? '+' : ''))} 条
  • ); //上一页 function renderPrev(prevPage) { diff --git a/src/components/pagination/web.tsx b/src/components/pagination/web.tsx index a0566e8b..df9f556c 100644 --- a/src/components/pagination/web.tsx +++ b/src/components/pagination/web.tsx @@ -154,7 +154,7 @@ export default function Render( ) : (
  • {/* 共 {newTotal >= total! ? (more ? newTotal + '+' : (currentPage! - 1) * pageSize! + count!) : total} 条 */} - 共 {(newTotal > total! ? (more ? (newTotal - pageSize!) + '+' : (currentPage! - 1) * pageSize! + count!) : total! + newTotal >= getTotal! ? '+' : '')} 条 + 共 {(newTotal > total! ? (more ? (newTotal - pageSize!) + '+' : (currentPage! - 1) * pageSize! + count!) : total! + (newTotal >= getTotal! ? '+' : ''))} 条
  • );