"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
var _react = _interopRequireDefault(require("react"));
var _variables = require("../../variables");
require("./index.scss");
//列表头部工具栏
var TableHeaderBox = /*#__PURE__*/function (_React$Component) {
  (0, _inheritsLoose2["default"])(TableHeaderBox, _React$Component);
  function TableHeaderBox(props) {
    var _this;
    _this = _React$Component.call(this, props) || this;
    _this._renderChildren = function () {
      var children = _this.props.children;
      return _react["default"].Children.map(children, function (child, index) {
        return /*#__PURE__*/_react["default"].createElement("div", {
          className: "box-item"
        }, " ", /*#__PURE__*/_react["default"].cloneElement(child));
      });
    };
    return _this;
  }
  var _proto = TableHeaderBox.prototype;
  _proto.render = function render() {
    var style = this.props.style;
    return /*#__PURE__*/_react["default"].createElement("div", {
      className: _variables.bizCssPrefix + '-table-header-box',
      style: style
    }, this._renderChildren());
  };
  return TableHeaderBox;
}(_react["default"].Component);
TableHeaderBox.displayName = 'TableHeaderBox';
var _default = TableHeaderBox;
exports["default"] = _default;