Skip to content

Commit b4de86f

Browse files
authored
fix: blur goto input should reset to 1 (#404)
* fix: blur goto input should came back to `1` close ant-design/ant-design#35118 * update demo file name
1 parent c4fcce6 commit b4de86f

File tree

12 files changed

+88
-73
lines changed

12 files changed

+88
-73
lines changed

docs/demo/basic.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## simple
2+
3+
<code src="../examples/simple.jsx">

docs/demo/controlled.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## default
2+
3+
<code src="../examples/controlled.jsx">

docs/demo/default.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/demo/simple.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
## simple
1+
## stupid
22

33
<code src="../examples/simple.jsx">

docs/demo/stupid.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/examples/basic.jsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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;

docs/examples/controlled.jsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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;

docs/examples/default.jsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

docs/examples/simple.jsx

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
1-
import '../../assets/index.less';
21
import React from 'react';
32
import 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} />;

docs/examples/stupid.jsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)