"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

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

var _tree = _interopRequireDefault(require("../tree"));

var MutipleDropdown = function MutipleDropdown(props) {
  var treeData = props.treeData,
      checkedKeys = props.checkedKeys,
      onCheck = props.onCheck,
      onSelect = props.onSelect,
      fieldNames = props.fieldNames,
      columnWidth = props.columnWidth,
      columnStyle = props.columnStyle,
      loadData = props.loadData;
  var endFieldNames = {
    title: fieldNames['label'],
    key: fieldNames['value'],
    children: fieldNames.children
  };
  return /*#__PURE__*/_react.default.createElement(_tree.default, {
    direction: "horizontal",
    treeData: treeData,
    loadData: loadData,
    checkedKeys: checkedKeys || [],
    fieldNames: endFieldNames,
    onCheck: onCheck,
    onSelect: onSelect,
    columnWidth: columnWidth,
    columnStyle: columnStyle
  });
};

var _default = MutipleDropdown;
exports.default = _default;