fix: dropdown-button size not take effect

pull/1053/head
wangxueliang 2019-07-31 11:22:47 +08:00
parent 55a59f207f
commit 71b7c9d338
1 changed files with 9 additions and 1 deletions

View File

@ -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'),
@ -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>