/* preview-render 树选择 TreeSelect */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { TreeSelect } from "antd";
export default function previewRender(dom) {
  return ReactDOM.render(<TreeSelect showSearch dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}>
              <TreeSelect.TreeNode value="parent 1" title="parent 1">
        <TreeSelect.TreeNode value="parent 1-0" title="parent 1-0">
          <TreeSelect.TreeNode value="leaf1" title="leaf1" />
          <TreeSelect.TreeNode value="leaf2" title="leaf2" />
        </TreeSelect.TreeNode>
        <TreeSelect.TreeNode value="parent 1-1" title="parent 1-1">
          <TreeSelect.TreeNode value="leaf3" title={<b style={{ color: '#08c' }}>leaf3</b>} />
        </TreeSelect.TreeNode>
      </TreeSelect.TreeNode>
              </TreeSelect>, dom);
};