"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _collapse = _interopRequireDefault(require("@alifd/next/lib/collapse"));
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
var _react = _interopRequireDefault(require("react"));
require("./index.scss");
var _excluded = ["dataList", "children"];
var AccordionSelector = function AccordionSelector(_ref) {
  var dataList = _ref.dataList,
    children = _ref.children,
    otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
  console.log(dataList, children);
  var _otherProps = otherProps || {};
  return /*#__PURE__*/_react["default"].createElement(_collapse["default"], (0, _extends2["default"])({
    className: "accordion-selector"
  }, _otherProps), children);
};

// 确保Item组件在AccordionSelector定义后立即挂载
AccordionSelector.Item = _collapse["default"].Panel;
AccordionSelector.Item.displayName = 'AccordionSelector.Item';
AccordionSelector.displayName = 'AccordionSelector';
var _default = exports["default"] = AccordionSelector;