Skip to content

Commit 448e5ae

Browse files
author
KevinBrother
authored
Update simple.jsx
1 parent 8045097 commit 448e5ae

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/examples/simple.jsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,15 @@ import React from 'react';
22
import Pagination from 'rc-pagination';
33
import '../../assets/index.less';
44

5-
export default () => <Pagination simple defaultCurrent={1} total={50} />;
5+
export default () => (
6+
<>
7+
<Pagination simple defaultCurrent={1} total={50} />
8+
<br />
9+
<Pagination
10+
simple
11+
defaultCurrent={1}
12+
total={50}
13+
showTotal={(total) => `Total ${total} items`}
14+
/>
15+
</>
16+
);

0 commit comments

Comments
 (0)