From 1af8f378054d10b020704e117c92112fdfaaaf78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Tue, 4 Nov 2025 15:52:10 +0800 Subject: [PATCH 1/2] chore: fix items missing --- src/Pagination.tsx | 6 +++++- tests/simple.test.tsx | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/Pagination.tsx b/src/Pagination.tsx index dbc977d4..b285eb06 100644 --- a/src/Pagination.tsx +++ b/src/Pagination.tsx @@ -381,7 +381,11 @@ const Pagination: React.FC = (props) => { simplePager = (
  • {isReadOnly ? ( internalInputVal diff --git a/tests/simple.test.tsx b/tests/simple.test.tsx index bce7826e..4454525f 100644 --- a/tests/simple.test.tsx +++ b/tests/simple.test.tsx @@ -305,4 +305,22 @@ describe('simple Pagination', () => { const { container } = render(); expect(container).toMatchSnapshot(); }); + + it('should apply semantic item styles to simplePager', () => { + const customClassName = 'custom-item-class'; + const customStyle = { backgroundColor: 'red' }; + + const { container } = render( + , + ); + + const simplePager = container.querySelector('.rc-pagination-simple-pager'); + expect(simplePager).toHaveClass(customClassName); + expect(simplePager).toHaveStyle('background-color: red'); + }); }); From 639875d7ebb75320b45e495213cd0c730da699bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Tue, 4 Nov 2025 16:02:52 +0800 Subject: [PATCH 2/2] Update tests/simple.test.tsx Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- tests/simple.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/simple.test.tsx b/tests/simple.test.tsx index 4454525f..4191ab39 100644 --- a/tests/simple.test.tsx +++ b/tests/simple.test.tsx @@ -321,6 +321,6 @@ describe('simple Pagination', () => { const simplePager = container.querySelector('.rc-pagination-simple-pager'); expect(simplePager).toHaveClass(customClassName); - expect(simplePager).toHaveStyle('background-color: red'); + expect(simplePager).toHaveStyle({ 'background-color': 'red' }); }); });