import _Collapse from "@alifd/next/es/collapse";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["dataList", "children"];
import React from 'react';
import "./index.scss";
var AccordionSelector = function AccordionSelector(_ref) {
  var dataList = _ref.dataList,
    children = _ref.children,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  console.log(dataList, children);
  var _otherProps = otherProps || {};
  return /*#__PURE__*/React.createElement(_Collapse, _extends({
    className: "accordion-selector"
  }, _otherProps), children);
};

// 确保Item组件在AccordionSelector定义后立即挂载
AccordionSelector.Item = _Collapse.Panel;
AccordionSelector.Item.displayName = 'AccordionSelector.Item';
AccordionSelector.displayName = 'AccordionSelector';
export default AccordionSelector;