mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-13 04:53:11 +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 = '',
|
className = '',
|
||||||
options,
|
options,
|
||||||
optionType,
|
optionType,
|
||||||
buttonStyle,
|
buttonStyle = 'outline' as RadioGroupButtonStyle,
|
||||||
disabled,
|
disabled,
|
||||||
children,
|
children,
|
||||||
size: customizeSize,
|
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);
|
export default React.memo(RadioGroup);
|
||||||
|
Loading…
Reference in New Issue
Block a user