mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
b34269a6b1
convert var to const fix bug fix bug fix for jshint fix import
19 lines
319 B
JavaScript
19 lines
319 B
JavaScript
import Radio from 'rc-radio';
|
|
import React from 'react';
|
|
|
|
export default React.createClass({
|
|
getDefaultProps() {
|
|
return {
|
|
prefixCls: 'ant-radio'
|
|
};
|
|
},
|
|
render() {
|
|
return (
|
|
<label>
|
|
<Radio {...this.props} children={null} />
|
|
{this.props.children}
|
|
</label>
|
|
);
|
|
}
|
|
});
|