From 3588ae82c13bcaa20c870d80405a717ecd708160 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Fri, 30 Sep 2022 09:49:28 +0800 Subject: [PATCH] type: strong type (#37805) --- components/dropdown/dropdown-button.tsx | 6 +++--- components/dropdown/dropdown.tsx | 23 +++++++++++------------ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/components/dropdown/dropdown-button.tsx b/components/dropdown/dropdown-button.tsx index 3a90d26b10..225aa1ae6a 100644 --- a/components/dropdown/dropdown-button.tsx +++ b/components/dropdown/dropdown-button.tsx @@ -70,7 +70,7 @@ const DropdownButton: DropdownButtonInterface = props => { } = props; const prefixCls = getPrefixCls('dropdown-button', customizePrefixCls); - const dropdownProps = { + const dropdownProps: DropdownProps = { align, overlay, disabled, @@ -82,7 +82,7 @@ const DropdownButton: DropdownButtonInterface = props => { overlayClassName, overlayStyle, destroyPopupOnHide, - } as DropdownProps; + }; if ('open' in props) { dropdownProps.open = open; @@ -113,7 +113,7 @@ const DropdownButton: DropdownButtonInterface = props => { const rightButton =