UNPKG

ost-ui

Version:
41 lines (32 loc) 1.19 kB
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; var OstWhiteBlank = function (_React$Component) { _inherits(OstWhiteBlank, _React$Component); function OstWhiteBlank() { _classCallCheck(this, OstWhiteBlank); return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); } OstWhiteBlank.prototype.render = function render() { var _props = this.props, fixedCls = _props.fixedCls, size = _props.size, className = _props.className, style = _props.style; var wrapCls = classnames(fixedCls, fixedCls + '-' + size, className); return React.createElement('div', { className: wrapCls, style: style }); }; return OstWhiteBlank; }(React.Component); OstWhiteBlank.defaultProps = { fixedCls: 'ost-white-blank', size: 'md' }; export default OstWhiteBlank; OstWhiteBlank.propTypes = { fixedCls: PropTypes.string, size: PropTypes.string };