import React from 'react';
import ReactDOM from 'react-dom';
import TreeSelect from '..';
const TreeNode = TreeSelect.Node;
class Demo extends React.Component {
    constructor(props) {
        super(props);
        this.handleChange = this.handleChange.bind(this);
    }
    handleChange(value, data) {
        console.log(value, data);
    }
    render() {
        return (React.createElement(TreeSelect, { treeDefaultExpandAll: true, onChange: this.handleChange, style: { width: 200 } },
            React.createElement(TreeNode, { key: "1", label: "Component" },
                React.createElement(TreeNode, { key: "2", label: "Form" },
                    React.createElement(TreeNode, { key: "4", label: "Input" }),
                    React.createElement(TreeNode, { key: "5", label: "Select", disabled: true })),
                React.createElement(TreeNode, { key: "3", label: "Display" },
                    React.createElement(TreeNode, { key: "6", label: "Table" })))));
    }
}
ReactDOM.render(React.createElement(Demo, null), document.getElementById('tree-select-demo-1'));
