From 333331a11c0ee323ac7312f011b0902f47caa83b Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Mon, 25 Oct 2021 17:00:04 +0800 Subject: [PATCH] feat: dropdown support text type, close #4802 --- components/dropdown/props.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dropdown/props.ts b/components/dropdown/props.ts index 06b82be8d9..d9a5475a3c 100644 --- a/components/dropdown/props.ts +++ b/components/dropdown/props.ts @@ -45,7 +45,7 @@ const dropdownProps = () => ({ const ButtonTypesProps = buttonTypes(); const dropdownButtonProps = () => ({ ...dropdownProps(), - type: PropTypes.oneOf(tuple('primary', 'ghost', 'dashed', 'default')), + type: ButtonTypesProps.type, size: PropTypes.oneOf(tuple('small', 'large')), htmlType: ButtonTypesProps.htmlType, href: PropTypes.string,