Skip to content

Commit

Permalink
fix: dropdown-button size not take effect
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxueliang committed Jul 31, 2019
1 parent 55a59f2 commit 71b7c9d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/dropdown/dropdown-button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const DropdownButtonProps = {
...ButtonGroupProps,
...DropdownProps,
type: PropTypes.oneOf(['primary', 'ghost', 'dashed', 'danger', 'default']).def('default'),
size: PropTypes.oneOf(['small', 'large', 'default']).def('default'),
htmlType: ButtonTypesProps.htmlType,
disabled: PropTypes.bool,
prefixCls: PropTypes.string.def('ant-dropdown-button'),
Expand Down Expand Up @@ -74,8 +75,15 @@ export default {
dropdownProps.props.visible = visible;
}

const buttonGroupProps = {
props: {
...restProps,
},
class: prefixCls,
};

return (
<ButtonGroup {...restProps} class={prefixCls}>
<ButtonGroup {...buttonGroupProps}>
<Button type={type} disabled={disabled} onClick={this.onClick} htmlType={htmlType}>
{this.$slots.default}
</Button>
Expand Down

0 comments on commit 71b7c9d

Please sign in to comment.