function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

/*
 * @Author: codingfly
 * @Description:
 * @Date: 2021-08-05 14:56:14
 * @LastEditTime: 2021-09-08 15:49:49
 * @FilePath: \annar-master\components\col\index.tsx
 */
import * as React from 'react';
import { View } from 'remax/one';
import classNames from 'classnames';
import { getPrefixCls } from './../common';
var prefixCls = getPrefixCls('col');

var Col = function Col(props) {
  var _classNames;

  var span = props.span,
      _props$offset = props.offset,
      offset = _props$offset === void 0 ? 0 : _props$offset,
      flex = props.flex,
      style = props.style,
      className = props.className,
      children = props.children;
  return /*#__PURE__*/React.createElement(View, {
    className: classNames(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(span), span), _defineProperty(_classNames, "".concat(prefixCls, "-offset-").concat(offset), offset), _classNames)),
    style: Object.assign({
      flex: flex
    }, style)
  }, children);
};

export default Col;