From dde8df5612f543231e178fae52488bf8ab27a662 Mon Sep 17 00:00:00 2001 From: newraina Date: Fri, 16 Jun 2017 20:28:42 +0800 Subject: [PATCH] fix Dropdown.Button Props (#6482) * fix DropdownButton Props * let DropdownButtonProps extends ButtonGroupProps * remove duplicated props --- components/dropdown/dropdown-button.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/dropdown/dropdown-button.tsx b/components/dropdown/dropdown-button.tsx index fed8961c4e..067e860f47 100644 --- a/components/dropdown/dropdown-button.tsx +++ b/components/dropdown/dropdown-button.tsx @@ -1,13 +1,12 @@ import React from 'react'; import Button from '../button'; +import { ButtonGroupProps } from '../button/button-group'; import Icon from '../icon'; import Dropdown from './dropdown'; const ButtonGroup = Button.Group; import classNames from 'classnames'; -export interface DropdownButtonProps { - prefixCls?: string; - className?: string; +export interface DropdownButtonProps extends ButtonGroupProps { type?: 'primary' | 'ghost' | 'dashed'; onClick?: React.MouseEventHandler; trigger?: ('click' | 'hover')[]; @@ -16,7 +15,6 @@ export interface DropdownButtonProps { visible?: boolean; disabled?: boolean; onVisibleChange?: (visible: boolean) => void; - style?: React.CSSProperties; children?: any; placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight'; }