UNPKG

eagle-ui

Version:

This is a used to develop the background management system based on the react to develop a set of UI framework

56 lines (37 loc) 2.56 kB
'use strict'; exports.__esModule = true; var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames); var _utilsClassNameMixin = require('./utils/ClassNameMixin'); var _utilsClassNameMixin2 = _interopRequireDefault(_utilsClassNameMixin); var FormGroup = (function (_Component) { _inherits(FormGroup, _Component); _createClass(FormGroup, null, [{ key: 'propTypes', value: {}, enumerable: true }]); function FormGroup(props, context) { _classCallCheck(this, _FormGroup); _Component.call(this, props, context); } FormGroup.prototype.render = function render() { return _react2['default'].createElement( 'div', { style: this.props.style, className: _classnames2['default'](this.getClassName('form-group'), this.props.className || '') }, this.props.children ); }; var _FormGroup = FormGroup; FormGroup = _utilsClassNameMixin2['default'](FormGroup) || FormGroup; return FormGroup; })(_react.Component); exports['default'] = FormGroup; module.exports = exports['default'];