docs: fix Pagination total demo (#25247)

This commit is contained in:
xrkffgg 2020-06-28 15:16:23 +08:00 committed by GitHub
parent 74e4150ddb
commit 97df0f0fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,14 +21,14 @@ ReactDOM.render(
<Pagination
total={85}
showTotal={total => `Total ${total} items`}
pageSize={20}
defaultPageSize={20}
defaultCurrent={1}
/>
<br />
<Pagination
total={85}
showTotal={(total, range) => `${range[0]}-${range[1]} of ${total} items`}
pageSize={20}
defaultPageSize={20}
defaultCurrent={1}
/>
</div>,