UNPKG

antd-mobile

Version:

基于 React 的移动设计规范实现

47 lines (38 loc) 1.63 kB
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import classNames from 'classnames'; var WingBlank = function (_React$Component) { _inherits(WingBlank, _React$Component); function WingBlank() { _classCallCheck(this, WingBlank); return _possibleConstructorReturn(this, (WingBlank.__proto__ || Object.getPrototypeOf(WingBlank)).apply(this, arguments)); } _createClass(WingBlank, [{ key: 'render', value: function render() { var _classNames; var _props = this.props, prefixCls = _props.prefixCls, size = _props.size, className = _props.className, children = _props.children, style = _props.style; var wrapCls = classNames((_classNames = {}, _defineProperty(_classNames, '' + prefixCls, true), _defineProperty(_classNames, prefixCls + '-' + size, true), _defineProperty(_classNames, className, !!className), _classNames)); return React.createElement( 'div', { className: wrapCls, style: style }, children ); } }]); return WingBlank; }(React.Component); export default WingBlank; WingBlank.defaultProps = { prefixCls: 'am-wingblank', size: 'lg' };