diff --git a/components/pagination/__tests__/__snapshots__/demo.test.js.snap b/components/pagination/__tests__/__snapshots__/demo.test.js.snap
index da7d1630d0..24217b6fd3 100644
--- a/components/pagination/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/pagination/__tests__/__snapshots__/demo.test.js.snap
@@ -2159,6 +2159,212 @@ Array [
,
+
,
]
`;
@@ -2455,92 +2661,182 @@ exports[`renders ./components/pagination/demo/more.md correctly 1`] = `
`;
exports[`renders ./components/pagination/demo/simple.md correctly 1`] = `
-
+ 5
+
+
+ ,
+
,
+ ,
+]
`;
exports[`renders ./components/pagination/demo/total.md correctly 1`] = `
diff --git a/components/pagination/demo/mini.md b/components/pagination/demo/mini.md
index 1b226549bc..c4c785d4de 100644
--- a/components/pagination/demo/mini.md
+++ b/components/pagination/demo/mini.md
@@ -25,6 +25,14 @@ ReactDOM.render(
+
>,
mountNode,
);
diff --git a/components/pagination/demo/simple.md b/components/pagination/demo/simple.md
index 9e4d80abdf..91829496c6 100644
--- a/components/pagination/demo/simple.md
+++ b/components/pagination/demo/simple.md
@@ -16,5 +16,12 @@ Simple mode.
```jsx
import { Pagination } from 'antd';
-ReactDOM.render(, mountNode);
+ReactDOM.render(
+ <>
+
+
+
+ >,
+ mountNode,
+);
```
diff --git a/components/pagination/style/index.less b/components/pagination/style/index.less
index 4225a85eb4..ad858f89dc 100644
--- a/components/pagination/style/index.less
+++ b/components/pagination/style/index.less
@@ -282,6 +282,13 @@
&:hover {
border-color: @primary-color;
}
+
+ &[disabled] {
+ color: @disabled-color;
+ background: @disabled-bg;
+ border-color: @border-color-base;
+ cursor: not-allowed;
+ }
}
}
@@ -377,6 +384,9 @@
background: @disabled-bg;
border-color: @border-color-base;
cursor: not-allowed;
+ .@{pagination-prefix-cls}-simple& {
+ background: transparent;
+ }
}
.@{pagination-prefix-cls}-item-link-icon {
@@ -386,6 +396,10 @@
.@{pagination-prefix-cls}-item-ellipsis {
opacity: 1;
}
+
+ .@{pagination-prefix-cls}-simple-pager {
+ color: @disabled-color;
+ }
}
}
diff --git a/package.json b/package.json
index 82a2e724fb..e4d031f7ab 100644
--- a/package.json
+++ b/package.json
@@ -128,7 +128,7 @@
"rc-mentions": "~1.4.0",
"rc-menu": "~8.5.0",
"rc-notification": "~4.4.0",
- "rc-pagination": "~2.4.1",
+ "rc-pagination": "~2.4.5",
"rc-picker": "~1.15.1",
"rc-progress": "~3.0.0",
"rc-rate": "~2.8.2",