分页total显示修正

This commit is contained in:
lxy 2025-06-18 09:31:07 +08:00
parent 0345dbcf9d
commit 962292593a
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ export default function Render(props) {
])}
</li>) : (<li className={Style[`${prefixCls}-total-text`]}>
{/* 共 {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 ? '+' : ''))}
</li>);
//上一页
function renderPrev(prevPage) {

View File

@ -154,7 +154,7 @@ export default function Render(
) : (
<li className={Style[`${prefixCls}-total-text`]}>
{/* 共 {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! ? '+' : ''))}
</li>
);