File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class NestingRadio extends React.Component {
5353 onChange= {this .onChildChange }
5454 vertical
5555 >
56- < Radio value= {1 }> mysql< / Radio>
56+ < Radio value= {1 } radioClassName = " test1 " className = " test2 " > mysql< / Radio>
5757 < Radio value= {2 }> mogondb< / Radio>
5858 < / Radio .Group >
5959 < / Radio .Group >
Original file line number Diff line number Diff line change @@ -46,11 +46,12 @@ class Radio extends React.Component {
4646 textStyle,
4747 desc,
4848 supportUnSelect,
49+ radioClassName,
4950 ...otherProps
5051 } = this . props ;
5152 return (
52- < div className = { `${ classSelector } -container` } >
53- < label className = { classnames ( classSelector , className ) } style = { style } >
53+ < div className = { classnames ( `${ classSelector } -container` , { [ radioClassName ] : ! ! radioClassName } ) } >
54+ < label className = { classnames ( classSelector , { [ className ] : ! ! className } ) } style = { style } >
5455 < span className = { `${ classSelector } -wrapper` } style = { radioStyle } >
5556 < input
5657 { ...otherProps }
Original file line number Diff line number Diff line change 3636| disabled | 是否禁用 | boolean | false |
3737| desc | 单选提示 | string 或 React.node | null |
3838| supportUnSelect | 是否支持反选 | boolean | false |
39+ | radioClassName | Radio 和 ComplexRadio 类名 | string | -- |
3940
4041### API ComplexRadio
4142
You can’t perform that action at this time.
0 commit comments