From 008242b35ee604f77f2bface62805fec73ea00c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=AF=E4=B8=80?= Date: Mon, 13 Sep 2021 15:29:57 +0800 Subject: [PATCH] chore: add Button.shape 'default' definition (#32004) * feat: add Button.shape 'default' * fix: ignore shape when falsy value * fix: generate className only when shape match * fix: remove necessary .ant-btn-default and update snapshot --- .../__tests__/__snapshots__/demo.test.ts.snap | 4 ++-- components/button/button.tsx | 7 +++--- components/button/index.en-US.md | 2 +- components/button/index.zh-CN.md | 2 +- .../__snapshots__/components.test.js.snap | 24 +++++++++---------- .../__tests__/__snapshots__/demo.test.js.snap | 16 ++++++------- .../dropdown-button.test.js.snap | 8 +++---- 7 files changed, 32 insertions(+), 31 deletions(-) diff --git a/components/button/__tests__/__snapshots__/demo.test.ts.snap b/components/button/__tests__/__snapshots__/demo.test.ts.snap index 0269732929..0181fa1140 100644 --- a/components/button/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/button/__tests__/__snapshots__/demo.test.ts.snap @@ -1184,7 +1184,7 @@ Array [ class="ant-btn-group ant-dropdown-button" >