1 | import React,{Component} from 'react';
|
2 | import Radio from './Radio';
|
3 | import PropTypes from 'prop-types';
|
4 |
|
5 |
|
6 | const propTypes = {
|
7 | value: PropTypes.oneOfType([
|
8 | PropTypes.string,
|
9 | PropTypes.number
|
10 | ]),
|
11 | style: PropTypes.object
|
12 | }
|
13 | const defaultProps = {
|
14 | clsPrefix : "u-radio-button"
|
15 | }
|
16 |
|
17 | class RadioButton extends Component{
|
18 |
|
19 | render() {
|
20 | return (
|
21 | <Radio {...this.props} />
|
22 | );
|
23 | }
|
24 | }
|
25 |
|
26 | RadioButton.propTypes = propTypes;
|
27 | RadioButton.defaultProps = defaultProps;
|
28 | export default RadioButton; |
\ | No newline at end of file |