"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 FormHeaderBox = /*#__PURE__*/function (_React$Component) {
  (0, _inheritsLoose2["default"])(FormHeaderBox, _React$Component);
  function FormHeaderBox(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' + (index + 1)
        }, " ", /*#__PURE__*/_react["default"].cloneElement(child));
      });
    };
    return _this;
  }
  var _proto = FormHeaderBox.prototype;
  _proto.render = function render() {
    var style = this.props.style;
    return /*#__PURE__*/_react["default"].createElement("div", {
      className: _variables.bizCssPrefix + '-form-header-box',
      style: style
    }, this._renderChildren());
  };
  return FormHeaderBox;
}(_react["default"].Component);
FormHeaderBox.displayName = "FormHeaderBoxProps";
var _default = FormHeaderBox;
exports["default"] = _default;