File tree Expand file tree Collapse file tree 13 files changed +17
-14
lines changed Expand file tree Collapse file tree 13 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint func-names: 0, no-console: 0 */
2
2
import React from 'react' ;
3
- import Pagination from 'rc-pagination ' ;
3
+ import Pagination from '.. ' ;
4
4
import '../assets/index.less' ;
5
5
import 'rc-select/assets/index.less' ;
6
6
7
7
export default class App extends React . Component {
8
8
state = {
9
9
current : 3 ,
10
10
} ;
11
+
11
12
onChange = page => {
12
13
console . log ( page ) ;
13
14
this . setState ( {
14
15
current : page ,
15
16
} ) ;
16
17
} ;
18
+
17
19
render ( ) {
18
20
return (
19
21
< Pagination
Original file line number Diff line number Diff line change 1
1
import '../assets/index.less' ;
2
- import Pagination from 'rc-pagination ' ;
2
+ import Pagination from '.. ' ;
3
3
import React from 'react' ;
4
4
5
5
const itemRender = ( current , type , element ) => {
Original file line number Diff line number Diff line change 1
1
/* eslint func-names: 0, no-console: 0 */
2
2
import React from 'react' ;
3
3
import Select from 'rc-select' ;
4
- import Pagination from 'rc-pagination ' ;
4
+ import Pagination from '.. ' ;
5
5
import '../assets/index.less' ;
6
6
import 'rc-select/assets/index.less' ;
7
7
Original file line number Diff line number Diff line change 1
1
/* eslint func-names: 0, no-console: 0 */
2
2
import React from 'react' ;
3
3
import Select from 'rc-select' ;
4
- import Pagination from 'rc-pagination ' ;
4
+ import Pagination from '.. ' ;
5
5
import '../assets/index.less' ;
6
6
import 'rc-select/assets/index.less' ;
7
7
Original file line number Diff line number Diff line change 1
1
/* eslint func-names: 0, no-console: 0 */
2
2
import React from 'react' ;
3
- import Pagination from 'rc-pagination ' ;
3
+ import Pagination from '.. ' ;
4
4
import '../assets/index.less' ;
5
5
6
6
const arrowPath =
Original file line number Diff line number Diff line change 2
2
import React from 'react' ;
3
3
import ReactDOM from 'react-dom' ;
4
4
import Select from 'rc-select' ;
5
- import Pagination from 'rc-pagination ' ;
5
+ import Pagination from '.. ' ;
6
6
import localeInfo from '../src/locale/en_US' ;
7
7
import '../assets/index.less' ;
8
8
import 'rc-select/assets/index.less' ;
Original file line number Diff line number Diff line change 1
1
import '../assets/index.less' ;
2
- import Pagination from 'rc-pagination ' ;
2
+ import Pagination from '.. ' ;
3
3
import React from 'react' ;
4
4
5
5
const App = ( ) => (
Original file line number Diff line number Diff line change 1
1
/* eslint func-names: 0, no-console: 0 */
2
2
import React from 'react' ;
3
- import Pagination from 'rc-pagination ' ;
3
+ import Pagination from '.. ' ;
4
4
import '../assets/index.less' ;
5
5
6
6
class App extends React . Component {
7
7
state = {
8
8
current : 3 ,
9
9
} ;
10
+
10
11
onChange = page => {
11
12
console . log ( page ) ;
12
13
this . setState ( {
13
14
current : page ,
14
15
} ) ;
15
16
} ;
17
+
16
18
render ( ) {
17
19
return (
18
20
< div >
Original file line number Diff line number Diff line change 1
1
/* eslint func-names: 0, no-console: 0 */
2
2
import React from 'react' ;
3
- import ReactDOM from 'react-dom' ;
4
- import Pagination from 'rc-pagination' ;
3
+ import Pagination from '..' ;
5
4
import '../assets/index.less' ;
6
5
7
6
const App = ( ) => (
Original file line number Diff line number Diff line change 1
1
// use jsx to render html, do not modify simple.html
2
2
3
3
import '../assets/index.less' ;
4
- import Pagination from 'rc-pagination ' ;
4
+ import Pagination from '.. ' ;
5
5
import React from 'react' ;
6
6
7
7
const App = ( ) => < Pagination defaultCurrent = { 2 } total = { 25 } /> ;
Original file line number Diff line number Diff line change 1
1
/* eslint func-names: 0, no-console: 0 */
2
2
import React from 'react' ;
3
3
import Select from 'rc-select' ;
4
- import Pagination from 'rc-pagination ' ;
4
+ import Pagination from '.. ' ;
5
5
import '../assets/index.less' ;
6
6
import 'rc-select/assets/index.less' ;
7
7
Original file line number Diff line number Diff line change 1
1
// use jsx to render html, do not modify simple.html
2
2
3
- import Pagination from 'rc-pagination ' ;
3
+ import Pagination from '.. ' ;
4
4
import React from 'react' ;
5
5
import ReactDOM from 'react-dom' ;
6
6
import '../assets/index.less' ;
Original file line number Diff line number Diff line change 1
1
import '../assets/index.less' ;
2
- import Pagination from 'rc-pagination ' ;
2
+ import Pagination from '.. ' ;
3
3
import React from 'react' ;
4
4
5
5
export default ( ) => (
You can’t perform that action at this time.
0 commit comments