diff --git a/docs/examples/simple.tsx b/docs/examples/simple.tsx
index d04b9b53..3469f6b9 100644
--- a/docs/examples/simple.tsx
+++ b/docs/examples/simple.tsx
@@ -32,6 +32,18 @@ export default () => {
showSizeChanger
selectComponentClass={Select}
/>
+
+
+ Antd #46671
+
+
>
);
};
diff --git a/src/Pagination.tsx b/src/Pagination.tsx
index 31626e2e..b3c6763c 100644
--- a/src/Pagination.tsx
+++ b/src/Pagination.tsx
@@ -348,27 +348,32 @@ const Pagination: React.FC = (props) => {
let simplePager: React.ReactNode = null;
if (simple) {
- if (typeof goButton === 'boolean') {
+ // ====== Simple quick jump ======
+ if (goButton) {
+ if (typeof goButton === 'boolean') {
+ gotoButton = (
+
+ );
+ } else {
+ gotoButton = (
+
+ {goButton}
+
+ );
+ }
+
gotoButton = (
-
+
+ {gotoButton}
+
);
- } else {
-
- {goButton}
- ;
}
- gotoButton = (
-
- {gotoButton}
-
- );
-
simplePager = (
-
-
-
-
-
-`;
-
-exports[`Example controlled 1`] = `
-
-`;
-
-exports[`Example itemRender 1`] = `
-
-`;
-
-exports[`Example jumper 1`] = `
-
- 默认
-
-`;
-
-exports[`Example jumperWithGoButton 1`] = `
-
- customize node
-
-`;
-
-exports[`Example lessPages 1`] = `
-
-
-
- Is using icon:
- true
-
-
-
-`;
-
-exports[`Example locale 1`] = `
-
-`;
-
-exports[`Example more 1`] = `
-
-`;
-
-exports[`Example showTitle 1`] = `
-
-
-`;
-
-exports[`Example showTotal 1`] = `
-
-`;
-
-exports[`Example simple 1`] = `
-
-`;
-
-exports[`Example sizer 1`] = `
-
-
+
+
+
+
+`;
+
+exports[`Example controlled 1`] = `
+
+
+
+`;
+
+exports[`Example itemRender 1`] = `
+
+
+
+
+
+
+`;
+
+exports[`Example jumper 1`] = `
+
+
+ 默认
+
+
+
+ 禁用
+
+
+
+ 单页默认隐藏
+
+
+
+
+
+`;
+
+exports[`Example jumperWithGoButton 1`] = `
+
+
+ customize node
+
+
+
+ default node
+
+
+
+`;
+
+exports[`Example lessPages 1`] = `
+
+
+
+
+
+
+
+ Is using icon:
+ true
+
+
+
+
+`;
+
+exports[`Example locale 1`] = `
+
+
+
+`;
+
+exports[`Example more 1`] = `
+
+
+
+`;
+
+exports[`Example showTitle 1`] = `
+
+`;
+
+exports[`Example showTotal 1`] = `
+
+
+
+
+
+
+
+`;
+
+exports[`Example simple 1`] = `
+
`;
-exports[`Example styles 1`] = `
-