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 _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
5 | import _inherits from "@babel/runtime/helpers/inherits";
|
6 | import React, { Component } from 'react';
|
7 | import './index.css';
|
8 |
|
9 | var index =
|
10 |
|
11 | function (_Component) {
|
12 | _inherits(index, _Component);
|
13 |
|
14 | function index() {
|
15 | _classCallCheck(this, index);
|
16 |
|
17 | return _possibleConstructorReturn(this, _getPrototypeOf(index).apply(this, arguments));
|
18 | }
|
19 |
|
20 | _createClass(index, [{
|
21 | key: "render",
|
22 | value: function render() {
|
23 | var _this$props = this.props,
|
24 | _this$props$children = _this$props.children,
|
25 | children = _this$props$children === void 0 ? [] : _this$props$children,
|
26 | title = _this$props.title,
|
27 | desc = _this$props.desc,
|
28 | _this$props$extraCls = _this$props.extraCls,
|
29 | extraCls = _this$props$extraCls === void 0 ? "" : _this$props$extraCls,
|
30 | cmpWidth = _this$props.cmpWidth,
|
31 | cmpHeight = _this$props.cmpHeight;
|
32 | return React.createElement(React.Fragment, null, React.createElement("div", {
|
33 | className: "cmp-example--group " + extraCls
|
34 | }, React.createElement("div", {
|
35 | className: "cmp-example--content"
|
36 | }, React.Children.map(children, function (child) {
|
37 | return React.createElement("div", {
|
38 | className: "cmp-example--type",
|
39 | style: {
|
40 | width: cmpWidth,
|
41 | height: cmpHeight
|
42 | }
|
43 | }, child);
|
44 | })), React.createElement("div", {
|
45 | className: "cmp-example--title"
|
46 | }, React.createElement("div", {
|
47 | className: "cmp-example--leftLine"
|
48 | }), React.createElement("div", {
|
49 | className: "cmp-example--text"
|
50 | }, title), React.createElement("div", {
|
51 | className: "cmp-example--line"
|
52 | })), React.createElement("div", {
|
53 | className: "cmp-example--desc"
|
54 | }, React.createElement("span", {
|
55 | className: "cmp-example--desc-text"
|
56 | }, desc))));
|
57 | }
|
58 | }]);
|
59 |
|
60 | return index;
|
61 | }(Component);
|
62 |
|
63 | export default index;
|
64 | export var NatureContainer =
|
65 |
|
66 | function (_Component2) {
|
67 | _inherits(NatureContainer, _Component2);
|
68 |
|
69 | function NatureContainer() {
|
70 | _classCallCheck(this, NatureContainer);
|
71 |
|
72 | return _possibleConstructorReturn(this, _getPrototypeOf(NatureContainer).apply(this, arguments));
|
73 | }
|
74 |
|
75 | _createClass(NatureContainer, [{
|
76 | key: "render",
|
77 | value: function render() {
|
78 | var children = this.props.children;
|
79 | return React.createElement("div", {
|
80 | className: "nature__container"
|
81 | }, React.Children.map(children, function (child) {
|
82 | return React.createElement(React.Fragment, null, child);
|
83 | }));
|
84 | }
|
85 | }]);
|
86 |
|
87 | return NatureContainer;
|
88 | }(Component);
|
89 | export var NatureItemTwoCol =
|
90 |
|
91 | function (_Component3) {
|
92 | _inherits(NatureItemTwoCol, _Component3);
|
93 |
|
94 | function NatureItemTwoCol() {
|
95 | _classCallCheck(this, NatureItemTwoCol);
|
96 |
|
97 | return _possibleConstructorReturn(this, _getPrototypeOf(NatureItemTwoCol).apply(this, arguments));
|
98 | }
|
99 |
|
100 | _createClass(NatureItemTwoCol, [{
|
101 | key: "render",
|
102 | value: function render() {
|
103 | var _this$props2 = this.props,
|
104 | children = _this$props2.children,
|
105 | _this$props2$extraCls = _this$props2.extraCls,
|
106 | extraCls = _this$props2$extraCls === void 0 ? "" : _this$props2$extraCls;
|
107 | return React.createElement("div", {
|
108 | className: "nature__block--column-two " + extraCls
|
109 | }, React.Children.map(children, function (child) {
|
110 | return React.createElement(React.Fragment, null, child);
|
111 | }));
|
112 | }
|
113 | }]);
|
114 |
|
115 | return NatureItemTwoCol;
|
116 | }(Component);
|
117 | export var NatureItem =
|
118 |
|
119 | function (_Component4) {
|
120 | _inherits(NatureItem, _Component4);
|
121 |
|
122 | function NatureItem() {
|
123 | _classCallCheck(this, NatureItem);
|
124 |
|
125 | return _possibleConstructorReturn(this, _getPrototypeOf(NatureItem).apply(this, arguments));
|
126 | }
|
127 |
|
128 | _createClass(NatureItem, [{
|
129 | key: "render",
|
130 | value: function render() {
|
131 | var children = this.props.children;
|
132 | return React.createElement("div", {
|
133 | className: "nature__block"
|
134 | }, React.Children.map(children, function (child) {
|
135 | return React.createElement(React.Fragment, null, child);
|
136 | }));
|
137 | }
|
138 | }]);
|
139 |
|
140 | return NatureItem;
|
141 | }(Component); |
\ | No newline at end of file |