import Radio from '..';
import React from 'react';
import ReactDOM from 'react-dom';
const RadioGroup = Radio.Group;
const list = [
    {
        value: 'apple',
        label: 'Apple',
        disabled: false,
    },
    {
        value: 'pear',
        label: 'Pear',
    },
    {
        value: 'orange',
        label: 'Orange',
        disabled: true,
    },
];
class App extends React.Component {
    constructor(props) {
        super(props);
        this.onChange = value => {
            this.setState({
                value,
            });
        };
        this.onButtonChange = value => {
            this.setState({
                buttonValue: value,
            });
        };
        this.state = {
            value: 'apple',
            buttonValue: 'pear',
        };
    }
    render() {
        return (React.createElement("div", null,
            React.createElement(RadioGroup, { dataSource: list, value: this.state.value, onChange: this.onChange }),
            React.createElement("br", null),
            React.createElement("br", null),
            React.createElement(RadioGroup, { dataSource: list, shape: "button", value: this.state.buttonValue, onChange: this.onButtonChange })));
    }
}
ReactDOM.render(React.createElement(App, null), document.getElementById('radio-demo-3'));
