File tree Expand file tree Collapse file tree 12 files changed +88
-73
lines changed Expand file tree Collapse file tree 12 files changed +88
-73
lines changed Original file line number Diff line number Diff line change 1+ ## simple
2+
3+ <code src =" ../examples/simple.jsx " >
Original file line number Diff line number Diff line change 1+ ## default
2+
3+ <code src =" ../examples/controlled.jsx " >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- ## simple
1+ ## stupid
22
33<code src =" ../examples/simple.jsx " >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import '../../assets/index.less' ;
2+ import React from 'react' ;
3+ import Pagination from 'rc-pagination' ;
4+
5+ const App = ( ) => (
6+ < >
7+ < Pagination total = { 25 } />
8+ < Pagination total = { 50 } />
9+ < Pagination total = { 60 } />
10+ < Pagination total = { 70 } />
11+ < Pagination total = { 80 } />
12+ < Pagination total = { 90 } />
13+ < Pagination total = { 100 } />
14+ < Pagination total = { 120 } />
15+ < Pagination total = { 500 } />
16+ </ >
17+ ) ;
18+
19+ export default App ;
Original file line number Diff line number Diff line change 1+ import React , { useState } from 'react' ;
2+ import Pagination from 'rc-pagination' ;
3+ import '../../assets/index.less' ;
4+ import 'rc-select/assets/index.less' ;
5+
6+ const App = ( ) => {
7+ const [ current , setCurrent ] = useState ( 1 ) ;
8+ const onChange = page => {
9+ setCurrent ( page ) ;
10+ } ;
11+ return (
12+ < Pagination
13+ onChange = { onChange }
14+ current = { current }
15+ total = { 25 }
16+ />
17+ ) ;
18+ } ;
19+
20+ export default App ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import '../../assets/index.less' ;
21import React from 'react' ;
32import Pagination from 'rc-pagination' ;
3+ import '../../assets/index.less' ;
44
5- const App = ( ) => (
6- < >
7- < Pagination total = { 25 } />
8- < Pagination total = { 50 } />
9- < Pagination total = { 60 } />
10- < Pagination total = { 70 } />
11- < Pagination total = { 80 } />
12- < Pagination total = { 90 } />
13- < Pagination total = { 100 } />
14- < Pagination total = { 120 } />
15- < Pagination total = { 500 } />
16- </ >
17- ) ;
18-
19- export default App ;
5+ export default ( ) => < Pagination simple defaultCurrent = { 1 } total = { 50 } /> ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments