"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 = [{
  value: '10001',
  label: 'Lucy King'
}, {
  value: 10002,
  label: 'Lily King'
}, {
  value: 10003,
  label: 'Tom Cat',
  disabled: true
}];

function handleChange(value) {
  console.log(value);
}

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(_["default"], {
  useDetailValue: true,
  defaultValue: {
    value: '10001',
    label: 'Lucy King'
  },
  onChange: handleChange,
  dataSource: dataSource,
  style: {
    width: 150
  }
}), document.getElementById('select-demo-12'));