mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 19:42:54 +08:00
refactor: Radio.Group defaultProps (#27807)
This commit is contained in:
parent
572601fb4b
commit
1ab93a3cf4
@ -33,7 +33,7 @@ const RadioGroup = React.forwardRef<HTMLDivElement, RadioGroupProps>((props, ref
|
||||
className = '',
|
||||
options,
|
||||
optionType,
|
||||
buttonStyle,
|
||||
buttonStyle = 'outline' as RadioGroupButtonStyle,
|
||||
disabled,
|
||||
children,
|
||||
size: customizeSize,
|
||||
@ -117,8 +117,4 @@ const RadioGroup = React.forwardRef<HTMLDivElement, RadioGroupProps>((props, ref
|
||||
);
|
||||
});
|
||||
|
||||
RadioGroup.defaultProps = {
|
||||
buttonStyle: 'outline' as RadioGroupButtonStyle,
|
||||
};
|
||||
|
||||
export default React.memo(RadioGroup);
|
||||
|
Loading…
Reference in New Issue
Block a user