Skip to content

Commit c0d8bc5

Browse files
link-zhao-1llinkzhao
andauthored
feat(array-table): 支持totalPage为1时仍然显示分页 (#50)
Co-authored-by: llinkzhao <linkzhao@aaxis.io>
1 parent 2f67bd2 commit c0d8bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/src/array-table/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ const ArrayTablePagination: ReactFC<IArrayTablePaginationProps> = (props) => {
293293
}, [totalPage, current])
294294

295295
const renderPagination = () => {
296-
if (!showPagination || totalPage <= 1) return
296+
if (!showPagination || totalPage < 1) return
297297
return (
298298
<div className={cls(`${prefixCls}-pagination`, hashId)}>
299299
<Space>

0 commit comments

Comments
 (0)