分页total显示修正
This commit is contained in:
parent
0345dbcf9d
commit
962292593a
|
|
@ -87,7 +87,7 @@ export default function Render(props) {
|
||||||
])}
|
])}
|
||||||
</li>) : (<li className={Style[`${prefixCls}-total-text`]}>
|
</li>) : (<li className={Style[`${prefixCls}-total-text`]}>
|
||||||
{/* 共 {newTotal >= total! ? (more ? newTotal + '+' : (currentPage! - 1) * pageSize! + count!) : total} 条 */}
|
{/* 共 {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>);
|
</li>);
|
||||||
//上一页
|
//上一页
|
||||||
function renderPrev(prevPage) {
|
function renderPrev(prevPage) {
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ export default function Render(
|
||||||
) : (
|
) : (
|
||||||
<li className={Style[`${prefixCls}-total-text`]}>
|
<li className={Style[`${prefixCls}-total-text`]}>
|
||||||
{/* 共 {newTotal >= total! ? (more ? newTotal + '+' : (currentPage! - 1) * pageSize! + count!) : total} 条 */}
|
{/* 共 {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>
|
</li>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue