1 | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
2 | import _createClass from 'babel-runtime/helpers/createClass';
|
3 | import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
4 | import _inherits from 'babel-runtime/helpers/inherits';
|
5 | import classnames from 'classnames';
|
6 | import React from 'react';
|
7 |
|
8 | var WhiteSpace = function (_React$Component) {
|
9 | _inherits(WhiteSpace, _React$Component);
|
10 |
|
11 | function WhiteSpace() {
|
12 | _classCallCheck(this, WhiteSpace);
|
13 |
|
14 | return _possibleConstructorReturn(this, (WhiteSpace.__proto__ || Object.getPrototypeOf(WhiteSpace)).apply(this, arguments));
|
15 | }
|
16 |
|
17 | _createClass(WhiteSpace, [{
|
18 | key: 'render',
|
19 | value: function render() {
|
20 | var _props = this.props,
|
21 | prefixCls = _props.prefixCls,
|
22 | size = _props.size,
|
23 | className = _props.className,
|
24 | style = _props.style,
|
25 | onClick = _props.onClick;
|
26 |
|
27 | var wrapCls = classnames(prefixCls, prefixCls + '-' + size, className);
|
28 | return React.createElement('div', { className: wrapCls, style: style, onClick: onClick });
|
29 | }
|
30 | }]);
|
31 |
|
32 | return WhiteSpace;
|
33 | }(React.Component);
|
34 |
|
35 | export default WhiteSpace;
|
36 |
|
37 | WhiteSpace.defaultProps = {
|
38 | prefixCls: 'am-whitespace',
|
39 | size: 'md'
|
40 | }; |
\ | No newline at end of file |