fix: dropdown-button size not take effect
parent
55a59f207f
commit
71b7c9d338
|
@ -12,6 +12,7 @@ const DropdownButtonProps = {
|
||||||
...ButtonGroupProps,
|
...ButtonGroupProps,
|
||||||
...DropdownProps,
|
...DropdownProps,
|
||||||
type: PropTypes.oneOf(['primary', 'ghost', 'dashed', 'danger', 'default']).def('default'),
|
type: PropTypes.oneOf(['primary', 'ghost', 'dashed', 'danger', 'default']).def('default'),
|
||||||
|
size: PropTypes.oneOf(['small', 'large', 'default']).def('default'),
|
||||||
htmlType: ButtonTypesProps.htmlType,
|
htmlType: ButtonTypesProps.htmlType,
|
||||||
disabled: PropTypes.bool,
|
disabled: PropTypes.bool,
|
||||||
prefixCls: PropTypes.string.def('ant-dropdown-button'),
|
prefixCls: PropTypes.string.def('ant-dropdown-button'),
|
||||||
|
@ -74,8 +75,15 @@ export default {
|
||||||
dropdownProps.props.visible = visible;
|
dropdownProps.props.visible = visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const buttonGroupProps = {
|
||||||
|
props: {
|
||||||
|
...restProps,
|
||||||
|
},
|
||||||
|
class: prefixCls,
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ButtonGroup {...restProps} class={prefixCls}>
|
<ButtonGroup {...buttonGroupProps}>
|
||||||
<Button type={type} disabled={disabled} onClick={this.onClick} htmlType={htmlType}>
|
<Button type={type} disabled={disabled} onClick={this.onClick} htmlType={htmlType}>
|
||||||
{this.$slots.default}
|
{this.$slots.default}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
Loading…
Reference in New Issue