Skip to content

Commit 71b7c9d

Browse files
committed
fix: dropdown-button size not take effect
1 parent 55a59f2 commit 71b7c9d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: components/dropdown/dropdown-button.jsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const DropdownButtonProps = {
1212
...ButtonGroupProps,
1313
...DropdownProps,
1414
type: PropTypes.oneOf(['primary', 'ghost', 'dashed', 'danger', 'default']).def('default'),
15+
size: PropTypes.oneOf(['small', 'large', 'default']).def('default'),
1516
htmlType: ButtonTypesProps.htmlType,
1617
disabled: PropTypes.bool,
1718
prefixCls: PropTypes.string.def('ant-dropdown-button'),
@@ -74,8 +75,15 @@ export default {
7475
dropdownProps.props.visible = visible;
7576
}
7677

78+
const buttonGroupProps = {
79+
props: {
80+
...restProps,
81+
},
82+
class: prefixCls,
83+
};
84+
7785
return (
78-
<ButtonGroup {...restProps} class={prefixCls}>
86+
<ButtonGroup {...buttonGroupProps}>
7987
<Button type={type} disabled={disabled} onClick={this.onClick} htmlType={htmlType}>
8088
{this.$slots.default}
8189
</Button>

0 commit comments

Comments
 (0)