add 'danger' type to dropdown-button (#179)

This commit is contained in:
zeratul1 2018-09-11 21:38:22 +08:00 committed by tangjinzhou
parent 79f4cafeba
commit 8a45202d91

View File

@ -11,7 +11,7 @@ const ButtonGroup = Button.Group
const DropdownButtonProps = {
...ButtonGroupProps,
...DropdownProps,
type: PropTypes.oneOf(['primary', 'ghost', 'dashed', 'default']).def('default'),
type: PropTypes.oneOf(['primary', 'ghost', 'dashed', 'danger', 'default']).def('default'),
disabled: PropTypes.bool,
prefixCls: PropTypes.string.def('ant-dropdown-button'),
placement: DropdownProps.placement.def('bottomRight'),