"use strict";

var _react = _interopRequireDefault(require("react"));

var _reactDom = _interopRequireDefault(require("react-dom"));

var _ = _interopRequireDefault(require(".."));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var dataSource = ['Lucy King', 'Lily King', 'Jim Green', {
  label: 'Chinese',
  children: [{
    value: 'Hang Meimei',
    label: 'Hang Meimei'
  }, 'Li Lei', {
    value: 'Gao Hui',
    label: 'Gao Hui',
    disabled: true
  }, 'Zhang San', 'Li Si', 'Wang Wu', {
    value: 'Zhao Benshan',
    label: 'Zhao Benshan',
    disabled: true
  }, 'Sun Yang', 'Song Shuying']
}, {
  label: 'Pets',
  children: ['Poly', 'Kitty']
}];

var onChange = function onChange(v) {
  console.log(v);
};

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(_["default"].AutoComplete, {
  // @ts-ignore
  autoHighlightFirstItem: false,
  style: {
    width: 300
  },
  onChange: onChange,
  dataSource: dataSource
}), document.getElementById('select-demo-13'));