var _jsxFileName = 'src/table/colGroup.jsx';
/**
 * colGroup.jsx
 *
 * @Author: apple
 * @Date: 2018/3/8 16:55
 */

import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
/**
 * @ignore
 * */
export default function ColGroup(props) {
    var _this = this;

    var renderColumns = props.renderColumns;

    return React.createElement(
        'colgroup',
        {
            __source: {
                fileName: _jsxFileName,
                lineNumber: 17
            },
            __self: this
        },
        renderColumns.map(function (item, index) {
            var colClassName = item.colClassName,
                width = item.width,
                _item$colSpan = item.colSpan,
                colSpan = _item$colSpan === undefined ? 1 : _item$colSpan;

            return React.createElement('col', { span: colSpan, className: colClassName, style: { width: width }, key: 'col-' + index, __source: {
                    fileName: _jsxFileName,
                    lineNumber: 20
                },
                __self: _this
            });
        })
    );
}