From a9bceec602182d14835588dcd4796c7431c15ab4 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, 18 Jul 2023 23:59:53 +0800 Subject: [PATCH] fix: Button ts (#43629) --- components/button/__tests__/index.test.tsx | 11 +++++++++++ components/button/button.tsx | 12 ++++++++---- components/popconfirm/PurePanel.tsx | 6 +++++- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/components/button/__tests__/index.test.tsx b/components/button/__tests__/index.test.tsx index 4e6216ca5b..496de4d8c8 100644 --- a/components/button/__tests__/index.test.tsx +++ b/components/button/__tests__/index.test.tsx @@ -343,4 +343,15 @@ describe('Button', () => { ); expect(window.getComputedStyle(container.querySelector('#link')!).pointerEvents).toBe('none'); }); + + it('Correct type', () => { + const onBtnClick: React.MouseEventHandler = () => {}; + const onAnchorClick: React.MouseEventHandler = () => {}; + + const button = )}