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! ? '+' : ''))} 条
  • );