@fonixtree/magic-design 0.0.93 → 0.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +38 -14
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +17 -13
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +40 -14
- package/es/composite-comp/bol/components/ImageGallery/pc/index.less +18 -13
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +8 -2
- package/es/core/Designer/ViewArea/index.js +3 -1
- package/es/core/Designer/ViewArea/index.less +14 -3
- package/es/meta-comp/components/Image/image/h5DefImg.png +0 -0
- package/es/meta-comp/components/Image/image/h5Img.png +0 -0
- package/es/meta-comp/components/Image/image/pcDefImg.png +0 -0
- package/es/meta-comp/components/Image/image/pcImg.png +0 -0
- package/es/meta-comp/components/Image/index.js +6 -3
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg2.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg3.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg4.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/defImg5.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg1.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg2.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg3.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg4.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg5.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/imgs/pcDefImg6.png +0 -0
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +38 -14
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +17 -13
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +40 -14
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.less +18 -13
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +8 -2
- package/lib/core/Designer/ViewArea/index.js +3 -1
- package/lib/core/Designer/ViewArea/index.less +14 -3
- package/lib/meta-comp/components/Image/image/h5DefImg.png +0 -0
- package/lib/meta-comp/components/Image/image/h5Img.png +0 -0
- package/lib/meta-comp/components/Image/image/pcDefImg.png +0 -0
- package/lib/meta-comp/components/Image/image/pcImg.png +0 -0
- package/lib/meta-comp/components/Image/index.js +6 -3
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -41,6 +41,20 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
41
41
|
};
|
|
42
42
|
}();
|
|
43
43
|
|
|
44
|
+
var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
45
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
|
|
46
|
+
s += arguments[i].length;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
|
|
50
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
|
|
51
|
+
r[k] = a[j];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return r;
|
|
56
|
+
};
|
|
57
|
+
|
|
44
58
|
var MOBILE_IMG_SIZE = {
|
|
45
59
|
1: {
|
|
46
60
|
maxW: 343,
|
|
@@ -85,26 +99,36 @@ function (_super) {
|
|
|
85
99
|
var data = this.props.data;
|
|
86
100
|
var isHorizontal = data.customize.layout.h5Layout === 'layout2';
|
|
87
101
|
var colNum = isHorizontal ? data.customize.rowNum : 1;
|
|
102
|
+
var newData = data.groupSource.reduce(function (prev, curr, index) {
|
|
103
|
+
var i = Math.floor(index / colNum);
|
|
104
|
+
prev[i] = __spreadArrays(prev[i] || [], [curr]);
|
|
105
|
+
return prev;
|
|
106
|
+
}, []);
|
|
88
107
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
108
|
className: "m-image-gallery-mobile"
|
|
90
109
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
-
className:
|
|
92
|
-
|
|
93
|
-
}),
|
|
94
|
-
style: {
|
|
95
|
-
gap: MOBILE_IMG_SIZE[colNum].gap
|
|
96
|
-
}
|
|
97
|
-
}, data.groupSource.map(function (m) {
|
|
110
|
+
className: "content"
|
|
111
|
+
}, newData.map(function (arr, index) {
|
|
98
112
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
|
-
key:
|
|
100
|
-
className: "
|
|
113
|
+
key: index,
|
|
114
|
+
className: (0, _classnames["default"])('line', {
|
|
115
|
+
isHorizontal: isHorizontal
|
|
116
|
+
}),
|
|
101
117
|
style: {
|
|
102
|
-
|
|
118
|
+
gap: MOBILE_IMG_SIZE[colNum].gap
|
|
103
119
|
}
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
120
|
+
}, arr.map(function (item) {
|
|
121
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
|
+
key: item.id,
|
|
123
|
+
className: "img-wrap",
|
|
124
|
+
style: {
|
|
125
|
+
width: "calc((100% - " + MOBILE_IMG_SIZE[colNum].gap * (colNum - 1) + "px) / " + colNum + ")"
|
|
126
|
+
}
|
|
127
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
128
|
+
data: item.image,
|
|
129
|
+
maxHeight: MOBILE_IMG_SIZE[colNum].maxH,
|
|
130
|
+
maxWidth: MOBILE_IMG_SIZE[colNum].maxW
|
|
131
|
+
}));
|
|
108
132
|
}));
|
|
109
133
|
})));
|
|
110
134
|
};
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
.m-image-gallery-mobile {
|
|
2
|
-
overflow-x: auto;
|
|
3
|
-
|
|
4
2
|
.content {
|
|
5
|
-
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
flex-wrap: wrap;
|
|
8
|
-
width: 345px;
|
|
3
|
+
max-width: 345px;
|
|
9
4
|
margin: 0 auto;
|
|
10
5
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
.line {
|
|
7
|
+
margin-bottom: 12px;
|
|
8
|
+
|
|
9
|
+
&.isHorizontal {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: flex-start;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:last-child {
|
|
15
|
+
margin-bottom: 0;
|
|
16
|
+
}
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
.img-wrap {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
}
|
|
@@ -41,6 +41,20 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
41
41
|
};
|
|
42
42
|
}();
|
|
43
43
|
|
|
44
|
+
var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
45
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
|
|
46
|
+
s += arguments[i].length;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
|
|
50
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
|
|
51
|
+
r[k] = a[j];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return r;
|
|
56
|
+
};
|
|
57
|
+
|
|
44
58
|
var PC_IMG_SIZE = {
|
|
45
59
|
1: {
|
|
46
60
|
minW: 150,
|
|
@@ -102,26 +116,38 @@ function (_super) {
|
|
|
102
116
|
var data = this.props.data;
|
|
103
117
|
var isHorizontal = data.customize.layout.pcLayout === 'layout2';
|
|
104
118
|
var colNum = isHorizontal ? data.customize.pcRowNum : 1;
|
|
119
|
+
var newData = data.groupSource.reduce(function (prev, curr, index) {
|
|
120
|
+
var i = Math.floor(index / colNum);
|
|
121
|
+
prev[i] = __spreadArrays(prev[i] || [], [curr]);
|
|
122
|
+
return prev;
|
|
123
|
+
}, []);
|
|
105
124
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
125
|
className: "m-image-gallery-pc"
|
|
107
126
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
|
-
className:
|
|
109
|
-
|
|
110
|
-
}),
|
|
111
|
-
style: {
|
|
112
|
-
gap: PC_IMG_SIZE[colNum].gap
|
|
113
|
-
}
|
|
114
|
-
}, data.groupSource.map(function (m) {
|
|
127
|
+
className: "content"
|
|
128
|
+
}, newData.map(function (arr, index) {
|
|
115
129
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
116
|
-
key:
|
|
117
|
-
className: "
|
|
130
|
+
key: index,
|
|
131
|
+
className: (0, _classnames["default"])('line', {
|
|
132
|
+
isHorizontal: isHorizontal
|
|
133
|
+
}),
|
|
118
134
|
style: {
|
|
119
|
-
|
|
135
|
+
gap: PC_IMG_SIZE[colNum].gap
|
|
120
136
|
}
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
137
|
+
}, arr.map(function (item) {
|
|
138
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
|
+
key: item.id,
|
|
140
|
+
className: "img-wrap",
|
|
141
|
+
style: {
|
|
142
|
+
width: "calc((100% - " + PC_IMG_SIZE[colNum].gap * (colNum - 1) + "px) / " + colNum + ")"
|
|
143
|
+
}
|
|
144
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
145
|
+
data: item.image,
|
|
146
|
+
maxHeight: PC_IMG_SIZE[colNum].maxH,
|
|
147
|
+
maxWidth: PC_IMG_SIZE[colNum].maxW,
|
|
148
|
+
minHeight: PC_IMG_SIZE[colNum].minH,
|
|
149
|
+
minWidth: PC_IMG_SIZE[colNum].minW
|
|
150
|
+
}));
|
|
125
151
|
}));
|
|
126
152
|
})));
|
|
127
153
|
};
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
.m-image-gallery-pc {
|
|
2
|
-
overflow-x: auto;
|
|
3
|
-
|
|
4
2
|
.content {
|
|
5
|
-
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
flex-wrap: wrap;
|
|
8
|
-
width: 1280px;
|
|
3
|
+
max-width: 1280px;
|
|
9
4
|
margin: 0 auto;
|
|
10
5
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
.line {
|
|
7
|
+
margin-bottom: 20px;
|
|
8
|
+
|
|
9
|
+
&.isHorizontal {
|
|
10
|
+
margin-bottom: 24px;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: flex-start;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&:last-child {
|
|
16
|
+
margin-bottom: 0;
|
|
17
|
+
}
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
.img-wrap {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
}
|
|
19
24
|
}
|
|
20
25
|
}
|
|
21
26
|
}
|
|
@@ -185,9 +185,15 @@ function (_super) {
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
CustomizeConfig.prototype.componentDidMount = function () {
|
|
188
|
-
var _a
|
|
188
|
+
var _a = this.props,
|
|
189
|
+
selectedLayoutFun = _a.selectedLayoutFun,
|
|
190
|
+
data = _a.data;
|
|
189
191
|
|
|
190
|
-
|
|
192
|
+
if (selectedLayoutFun) {
|
|
193
|
+
this.onInit((0, _coreUtil.isPc)() ? data.layout.pcLayout : data.layout.h5Layout);
|
|
194
|
+
} else {
|
|
195
|
+
this.onInit(data.layout);
|
|
196
|
+
}
|
|
191
197
|
};
|
|
192
198
|
|
|
193
199
|
CustomizeConfig.prototype.render = function () {
|
|
@@ -164,6 +164,8 @@ function (_super) {
|
|
|
164
164
|
style: {
|
|
165
165
|
background: window.magicDesign.pageBackground
|
|
166
166
|
}
|
|
167
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
className: "device_content"
|
|
167
169
|
}, this.filterCompFloor(pageData).map(function (nodeData) {
|
|
168
170
|
var Clazz = _componentTypes.componentMap[nodeData.type];
|
|
169
171
|
|
|
@@ -179,7 +181,7 @@ function (_super) {
|
|
|
179
181
|
key: nodeData.id,
|
|
180
182
|
id: "view" + nodeData.id
|
|
181
183
|
}, /*#__PURE__*/_react["default"].createElement(Clazz, __assign({}, newInstanceProps), null));
|
|
182
|
-
}))));
|
|
184
|
+
})))));
|
|
183
185
|
};
|
|
184
186
|
|
|
185
187
|
return ViewArea;
|
|
@@ -8,19 +8,22 @@
|
|
|
8
8
|
transition-property: all;
|
|
9
9
|
transition-duration: .3s;
|
|
10
10
|
transition-timing-function: ease;
|
|
11
|
+
|
|
11
12
|
.appointment_wrap {
|
|
12
13
|
height: 44px;
|
|
13
14
|
background-color: #FFF8F0;
|
|
14
15
|
display: flex;
|
|
15
16
|
align-items: center;
|
|
16
17
|
justify-content: center;
|
|
17
|
-
|
|
18
|
+
|
|
19
|
+
.appointment_tip {
|
|
18
20
|
font-family: 'Open Sans';
|
|
19
21
|
font-style: normal;
|
|
20
22
|
font-weight: 400;
|
|
21
23
|
font-size: 13px;
|
|
22
|
-
color
|
|
24
|
+
color: #FF8541;
|
|
23
25
|
}
|
|
26
|
+
|
|
24
27
|
.cancel_btn {
|
|
25
28
|
font-family: 'Open Sans';
|
|
26
29
|
font-style: normal;
|
|
@@ -37,21 +40,24 @@
|
|
|
37
40
|
cursor: pointer;
|
|
38
41
|
}
|
|
39
42
|
}
|
|
43
|
+
|
|
40
44
|
&.phone-edit {
|
|
41
45
|
margin-left: 355px;
|
|
42
46
|
}
|
|
47
|
+
|
|
43
48
|
.phone_view_area {
|
|
44
49
|
flex-grow: 1;
|
|
45
50
|
display: flex;
|
|
46
51
|
align-items: center;
|
|
47
52
|
justify-content: center;
|
|
48
53
|
padding: 24px 0;
|
|
54
|
+
|
|
49
55
|
.device_border {
|
|
50
56
|
width: 375px;
|
|
51
57
|
max-height: 691px;
|
|
52
58
|
height: calc(100vh - 150px);
|
|
53
59
|
overflow: scroll;
|
|
54
|
-
overflow-x:hidden;
|
|
60
|
+
overflow-x: hidden;
|
|
55
61
|
border: 10px solid #FFF;
|
|
56
62
|
background-color: #F2F2F2;
|
|
57
63
|
border-radius: 12px;
|
|
@@ -59,12 +65,14 @@
|
|
|
59
65
|
|
|
60
66
|
}
|
|
61
67
|
}
|
|
68
|
+
|
|
62
69
|
.pc_view_area {
|
|
63
70
|
flex-grow: 1;
|
|
64
71
|
display: flex;
|
|
65
72
|
align-items: center;
|
|
66
73
|
justify-content: center;
|
|
67
74
|
padding: 24px;
|
|
75
|
+
|
|
68
76
|
.device_border {
|
|
69
77
|
padding: 1px;
|
|
70
78
|
max-width: 1240px;
|
|
@@ -77,6 +85,9 @@
|
|
|
77
85
|
overflow: scroll;
|
|
78
86
|
box-sizing: content-box;
|
|
79
87
|
|
|
88
|
+
.device_content {
|
|
89
|
+
min-width: 1200px;
|
|
90
|
+
}
|
|
80
91
|
}
|
|
81
92
|
}
|
|
82
93
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -11,7 +11,9 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _h5DefImg = _interopRequireDefault(require("./image/h5DefImg.png"));
|
|
15
|
+
|
|
16
|
+
var _pcDefImg = _interopRequireDefault(require("./image/pcDefImg.png"));
|
|
15
17
|
|
|
16
18
|
var _coreUtil = require("../../../utils/coreUtil");
|
|
17
19
|
|
|
@@ -175,9 +177,10 @@ function (_super) {
|
|
|
175
177
|
}
|
|
176
178
|
|
|
177
179
|
if (!srcImg) {
|
|
178
|
-
srcImg =
|
|
180
|
+
srcImg = (0, _coreUtil.isPc)() ? _pcDefImg["default"] : _h5DefImg["default"];
|
|
179
181
|
}
|
|
180
182
|
|
|
183
|
+
var areas = data.content.openHotArea && ((0, _coreUtil.isPc)() ? data.content.pcAreas : data.content.h5Areas);
|
|
181
184
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
182
185
|
className: (0, _classnames["default"])('m-meta-image', {
|
|
183
186
|
backgroundImg: isBackground
|
|
@@ -198,7 +201,7 @@ function (_super) {
|
|
|
198
201
|
onMouseLeave: this.mouseLeaveImg,
|
|
199
202
|
src: srcImg,
|
|
200
203
|
style: this.getStyle()
|
|
201
|
-
}),
|
|
204
|
+
}), areas && areas.length > 0 && areas.map(function (v, i) {
|
|
202
205
|
var aStyle = {
|
|
203
206
|
position: 'absolute',
|
|
204
207
|
top: parseInt(v.y * _this.state.scale),
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -41,6 +41,20 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
41
41
|
};
|
|
42
42
|
}();
|
|
43
43
|
|
|
44
|
+
var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
45
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
|
|
46
|
+
s += arguments[i].length;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
|
|
50
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
|
|
51
|
+
r[k] = a[j];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return r;
|
|
56
|
+
};
|
|
57
|
+
|
|
44
58
|
var MOBILE_IMG_SIZE = {
|
|
45
59
|
1: {
|
|
46
60
|
maxW: 343,
|
|
@@ -85,26 +99,36 @@ function (_super) {
|
|
|
85
99
|
var data = this.props.data;
|
|
86
100
|
var isHorizontal = data.customize.layout.h5Layout === 'layout2';
|
|
87
101
|
var colNum = isHorizontal ? data.customize.rowNum : 1;
|
|
102
|
+
var newData = data.groupSource.reduce(function (prev, curr, index) {
|
|
103
|
+
var i = Math.floor(index / colNum);
|
|
104
|
+
prev[i] = __spreadArrays(prev[i] || [], [curr]);
|
|
105
|
+
return prev;
|
|
106
|
+
}, []);
|
|
88
107
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
108
|
className: "m-image-gallery-mobile"
|
|
90
109
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
-
className:
|
|
92
|
-
|
|
93
|
-
}),
|
|
94
|
-
style: {
|
|
95
|
-
gap: MOBILE_IMG_SIZE[colNum].gap
|
|
96
|
-
}
|
|
97
|
-
}, data.groupSource.map(function (m) {
|
|
110
|
+
className: "content"
|
|
111
|
+
}, newData.map(function (arr, index) {
|
|
98
112
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
|
-
key:
|
|
100
|
-
className: "
|
|
113
|
+
key: index,
|
|
114
|
+
className: (0, _classnames["default"])('line', {
|
|
115
|
+
isHorizontal: isHorizontal
|
|
116
|
+
}),
|
|
101
117
|
style: {
|
|
102
|
-
|
|
118
|
+
gap: MOBILE_IMG_SIZE[colNum].gap
|
|
103
119
|
}
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
120
|
+
}, arr.map(function (item) {
|
|
121
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
|
+
key: item.id,
|
|
123
|
+
className: "img-wrap",
|
|
124
|
+
style: {
|
|
125
|
+
width: "calc((100% - " + MOBILE_IMG_SIZE[colNum].gap * (colNum - 1) + "px) / " + colNum + ")"
|
|
126
|
+
}
|
|
127
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
128
|
+
data: item.image,
|
|
129
|
+
maxHeight: MOBILE_IMG_SIZE[colNum].maxH,
|
|
130
|
+
maxWidth: MOBILE_IMG_SIZE[colNum].maxW
|
|
131
|
+
}));
|
|
108
132
|
}));
|
|
109
133
|
})));
|
|
110
134
|
};
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
.m-image-gallery-mobile {
|
|
2
|
-
overflow-x: auto;
|
|
3
|
-
|
|
4
2
|
.content {
|
|
5
|
-
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
flex-wrap: wrap;
|
|
8
|
-
width: 345px;
|
|
3
|
+
max-width: 345px;
|
|
9
4
|
margin: 0 auto;
|
|
10
5
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
.line {
|
|
7
|
+
margin-bottom: 12px;
|
|
8
|
+
|
|
9
|
+
&.isHorizontal {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: flex-start;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:last-child {
|
|
15
|
+
margin-bottom: 0;
|
|
16
|
+
}
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
.img-wrap {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
}
|
|
@@ -41,6 +41,20 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
41
41
|
};
|
|
42
42
|
}();
|
|
43
43
|
|
|
44
|
+
var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
45
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
|
|
46
|
+
s += arguments[i].length;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
|
|
50
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
|
|
51
|
+
r[k] = a[j];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return r;
|
|
56
|
+
};
|
|
57
|
+
|
|
44
58
|
var PC_IMG_SIZE = {
|
|
45
59
|
1: {
|
|
46
60
|
minW: 150,
|
|
@@ -102,26 +116,38 @@ function (_super) {
|
|
|
102
116
|
var data = this.props.data;
|
|
103
117
|
var isHorizontal = data.customize.layout.pcLayout === 'layout2';
|
|
104
118
|
var colNum = isHorizontal ? data.customize.pcRowNum : 1;
|
|
119
|
+
var newData = data.groupSource.reduce(function (prev, curr, index) {
|
|
120
|
+
var i = Math.floor(index / colNum);
|
|
121
|
+
prev[i] = __spreadArrays(prev[i] || [], [curr]);
|
|
122
|
+
return prev;
|
|
123
|
+
}, []);
|
|
105
124
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
125
|
className: "m-image-gallery-pc"
|
|
107
126
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
|
-
className:
|
|
109
|
-
|
|
110
|
-
}),
|
|
111
|
-
style: {
|
|
112
|
-
gap: PC_IMG_SIZE[colNum].gap
|
|
113
|
-
}
|
|
114
|
-
}, data.groupSource.map(function (m) {
|
|
127
|
+
className: "content"
|
|
128
|
+
}, newData.map(function (arr, index) {
|
|
115
129
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
116
|
-
key:
|
|
117
|
-
className: "
|
|
130
|
+
key: index,
|
|
131
|
+
className: (0, _classnames["default"])('line', {
|
|
132
|
+
isHorizontal: isHorizontal
|
|
133
|
+
}),
|
|
118
134
|
style: {
|
|
119
|
-
|
|
135
|
+
gap: PC_IMG_SIZE[colNum].gap
|
|
120
136
|
}
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
137
|
+
}, arr.map(function (item) {
|
|
138
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
|
+
key: item.id,
|
|
140
|
+
className: "img-wrap",
|
|
141
|
+
style: {
|
|
142
|
+
width: "calc((100% - " + PC_IMG_SIZE[colNum].gap * (colNum - 1) + "px) / " + colNum + ")"
|
|
143
|
+
}
|
|
144
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
145
|
+
data: item.image,
|
|
146
|
+
maxHeight: PC_IMG_SIZE[colNum].maxH,
|
|
147
|
+
maxWidth: PC_IMG_SIZE[colNum].maxW,
|
|
148
|
+
minHeight: PC_IMG_SIZE[colNum].minH,
|
|
149
|
+
minWidth: PC_IMG_SIZE[colNum].minW
|
|
150
|
+
}));
|
|
125
151
|
}));
|
|
126
152
|
})));
|
|
127
153
|
};
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
.m-image-gallery-pc {
|
|
2
|
-
overflow-x: auto;
|
|
3
|
-
|
|
4
2
|
.content {
|
|
5
|
-
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
flex-wrap: wrap;
|
|
8
|
-
width: 1280px;
|
|
3
|
+
max-width: 1280px;
|
|
9
4
|
margin: 0 auto;
|
|
10
5
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
.line {
|
|
7
|
+
margin-bottom: 20px;
|
|
8
|
+
|
|
9
|
+
&.isHorizontal {
|
|
10
|
+
margin-bottom: 24px;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: flex-start;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&:last-child {
|
|
16
|
+
margin-bottom: 0;
|
|
17
|
+
}
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
.img-wrap {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
}
|
|
19
24
|
}
|
|
20
25
|
}
|
|
21
26
|
}
|
|
@@ -185,9 +185,15 @@ function (_super) {
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
CustomizeConfig.prototype.componentDidMount = function () {
|
|
188
|
-
var _a
|
|
188
|
+
var _a = this.props,
|
|
189
|
+
selectedLayoutFun = _a.selectedLayoutFun,
|
|
190
|
+
data = _a.data;
|
|
189
191
|
|
|
190
|
-
|
|
192
|
+
if (selectedLayoutFun) {
|
|
193
|
+
this.onInit((0, _coreUtil.isPc)() ? data.layout.pcLayout : data.layout.h5Layout);
|
|
194
|
+
} else {
|
|
195
|
+
this.onInit(data.layout);
|
|
196
|
+
}
|
|
191
197
|
};
|
|
192
198
|
|
|
193
199
|
CustomizeConfig.prototype.render = function () {
|
|
@@ -164,6 +164,8 @@ function (_super) {
|
|
|
164
164
|
style: {
|
|
165
165
|
background: window.magicDesign.pageBackground
|
|
166
166
|
}
|
|
167
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
className: "device_content"
|
|
167
169
|
}, this.filterCompFloor(pageData).map(function (nodeData) {
|
|
168
170
|
var Clazz = _componentTypes.componentMap[nodeData.type];
|
|
169
171
|
|
|
@@ -179,7 +181,7 @@ function (_super) {
|
|
|
179
181
|
key: nodeData.id,
|
|
180
182
|
id: "view" + nodeData.id
|
|
181
183
|
}, /*#__PURE__*/_react["default"].createElement(Clazz, __assign({}, newInstanceProps), null));
|
|
182
|
-
}))));
|
|
184
|
+
})))));
|
|
183
185
|
};
|
|
184
186
|
|
|
185
187
|
return ViewArea;
|
|
@@ -8,19 +8,22 @@
|
|
|
8
8
|
transition-property: all;
|
|
9
9
|
transition-duration: .3s;
|
|
10
10
|
transition-timing-function: ease;
|
|
11
|
+
|
|
11
12
|
.appointment_wrap {
|
|
12
13
|
height: 44px;
|
|
13
14
|
background-color: #FFF8F0;
|
|
14
15
|
display: flex;
|
|
15
16
|
align-items: center;
|
|
16
17
|
justify-content: center;
|
|
17
|
-
|
|
18
|
+
|
|
19
|
+
.appointment_tip {
|
|
18
20
|
font-family: 'Open Sans';
|
|
19
21
|
font-style: normal;
|
|
20
22
|
font-weight: 400;
|
|
21
23
|
font-size: 13px;
|
|
22
|
-
color
|
|
24
|
+
color: #FF8541;
|
|
23
25
|
}
|
|
26
|
+
|
|
24
27
|
.cancel_btn {
|
|
25
28
|
font-family: 'Open Sans';
|
|
26
29
|
font-style: normal;
|
|
@@ -37,21 +40,24 @@
|
|
|
37
40
|
cursor: pointer;
|
|
38
41
|
}
|
|
39
42
|
}
|
|
43
|
+
|
|
40
44
|
&.phone-edit {
|
|
41
45
|
margin-left: 355px;
|
|
42
46
|
}
|
|
47
|
+
|
|
43
48
|
.phone_view_area {
|
|
44
49
|
flex-grow: 1;
|
|
45
50
|
display: flex;
|
|
46
51
|
align-items: center;
|
|
47
52
|
justify-content: center;
|
|
48
53
|
padding: 24px 0;
|
|
54
|
+
|
|
49
55
|
.device_border {
|
|
50
56
|
width: 375px;
|
|
51
57
|
max-height: 691px;
|
|
52
58
|
height: calc(100vh - 150px);
|
|
53
59
|
overflow: scroll;
|
|
54
|
-
overflow-x:hidden;
|
|
60
|
+
overflow-x: hidden;
|
|
55
61
|
border: 10px solid #FFF;
|
|
56
62
|
background-color: #F2F2F2;
|
|
57
63
|
border-radius: 12px;
|
|
@@ -59,12 +65,14 @@
|
|
|
59
65
|
|
|
60
66
|
}
|
|
61
67
|
}
|
|
68
|
+
|
|
62
69
|
.pc_view_area {
|
|
63
70
|
flex-grow: 1;
|
|
64
71
|
display: flex;
|
|
65
72
|
align-items: center;
|
|
66
73
|
justify-content: center;
|
|
67
74
|
padding: 24px;
|
|
75
|
+
|
|
68
76
|
.device_border {
|
|
69
77
|
padding: 1px;
|
|
70
78
|
max-width: 1240px;
|
|
@@ -77,6 +85,9 @@
|
|
|
77
85
|
overflow: scroll;
|
|
78
86
|
box-sizing: content-box;
|
|
79
87
|
|
|
88
|
+
.device_content {
|
|
89
|
+
min-width: 1200px;
|
|
90
|
+
}
|
|
80
91
|
}
|
|
81
92
|
}
|
|
82
93
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -11,7 +11,9 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _h5DefImg = _interopRequireDefault(require("./image/h5DefImg.png"));
|
|
15
|
+
|
|
16
|
+
var _pcDefImg = _interopRequireDefault(require("./image/pcDefImg.png"));
|
|
15
17
|
|
|
16
18
|
var _coreUtil = require("../../../utils/coreUtil");
|
|
17
19
|
|
|
@@ -175,9 +177,10 @@ function (_super) {
|
|
|
175
177
|
}
|
|
176
178
|
|
|
177
179
|
if (!srcImg) {
|
|
178
|
-
srcImg =
|
|
180
|
+
srcImg = (0, _coreUtil.isPc)() ? _pcDefImg["default"] : _h5DefImg["default"];
|
|
179
181
|
}
|
|
180
182
|
|
|
183
|
+
var areas = data.content.openHotArea && ((0, _coreUtil.isPc)() ? data.content.pcAreas : data.content.h5Areas);
|
|
181
184
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
182
185
|
className: (0, _classnames["default"])('m-meta-image', {
|
|
183
186
|
backgroundImg: isBackground
|
|
@@ -198,7 +201,7 @@ function (_super) {
|
|
|
198
201
|
onMouseLeave: this.mouseLeaveImg,
|
|
199
202
|
src: srcImg,
|
|
200
203
|
style: this.getStyle()
|
|
201
|
-
}),
|
|
204
|
+
}), areas && areas.length > 0 && areas.map(function (v, i) {
|
|
202
205
|
var aStyle = {
|
|
203
206
|
position: 'absolute',
|
|
204
207
|
top: parseInt(v.y * _this.state.scale),
|