@fonixtree/magic-design 0.0.92 → 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/bol/components/ImageText/defaultJSON.js +2 -4
- package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +1 -1
- package/es/composite-comp/bol/components/Text/defaultJSON.js +1 -1
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +8 -2
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +4 -4
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +3 -3
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -0
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +5 -3
- package/es/core/Designer/ViewArea/index.js +3 -1
- package/es/core/Designer/ViewArea/index.less +14 -3
- package/es/decorator/metaDecorator.js +37 -5
- 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/es/meta-comp/components/Text/index.js +1 -3
- package/es/meta-comp/components/Text/index.less +0 -1
- 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/bol/components/ImageText/defaultJSON.js +2 -4
- package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +1 -1
- package/lib/composite-comp/bol/components/Text/defaultJSON.js +1 -1
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +8 -2
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +4 -4
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +3 -3
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +2 -0
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +5 -3
- package/lib/core/Designer/ViewArea/index.js +3 -1
- package/lib/core/Designer/ViewArea/index.less +14 -3
- package/lib/decorator/metaDecorator.js +37 -5
- 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/lib/meta-comp/components/Text/index.js +1 -3
- package/lib/meta-comp/components/Text/index.less +0 -1
- 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
|
}
|
|
@@ -48,8 +48,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
48
48
|
fontFamily: 'Open Sans',
|
|
49
49
|
fontWeight: 600,
|
|
50
50
|
fontSize: 12,
|
|
51
|
-
color: '#232F46'
|
|
52
|
-
width: 0
|
|
51
|
+
color: '#232F46'
|
|
53
52
|
},
|
|
54
53
|
underline: {
|
|
55
54
|
open: false,
|
|
@@ -70,8 +69,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
|
|
|
70
69
|
fontFamily: 'Open Sans',
|
|
71
70
|
fontWeight: 400,
|
|
72
71
|
fontSize: 10,
|
|
73
|
-
color: '#8493AF'
|
|
74
|
-
width: 0
|
|
72
|
+
color: '#8493AF'
|
|
75
73
|
},
|
|
76
74
|
underline: {},
|
|
77
75
|
vertical: {}
|
|
@@ -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 () {
|
|
@@ -21,7 +21,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
21
21
|
headline: {
|
|
22
22
|
id: (0, _uuid.v4)(),
|
|
23
23
|
open: true,
|
|
24
|
-
type: '
|
|
24
|
+
type: 'TEXT',
|
|
25
25
|
specialContent: [],
|
|
26
26
|
text: 'Flash Deal',
|
|
27
27
|
content: {
|
|
@@ -135,7 +135,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
135
135
|
id: (0, _uuid.v4)(),
|
|
136
136
|
contentId: contentId,
|
|
137
137
|
open: true,
|
|
138
|
-
type: '
|
|
138
|
+
type: 'TEXT',
|
|
139
139
|
specialContent: [],
|
|
140
140
|
text: 'Flash Deal',
|
|
141
141
|
content: {
|
|
@@ -159,7 +159,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
159
159
|
id: (0, _uuid.v4)(),
|
|
160
160
|
contentId: contentId,
|
|
161
161
|
open: true,
|
|
162
|
-
type: '
|
|
162
|
+
type: 'TEXT',
|
|
163
163
|
specialContent: [],
|
|
164
164
|
text: 'Flash Deal',
|
|
165
165
|
content: {
|
|
@@ -183,7 +183,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
183
183
|
id: (0, _uuid.v4)(),
|
|
184
184
|
contentId: contentId,
|
|
185
185
|
open: true,
|
|
186
|
-
type: '
|
|
186
|
+
type: 'TEXT',
|
|
187
187
|
specialContent: [],
|
|
188
188
|
text: 'Flash Deal',
|
|
189
189
|
content: {
|
|
@@ -204,7 +204,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
204
204
|
productName: {
|
|
205
205
|
id: (0, _uuid.v4)(),
|
|
206
206
|
open: true,
|
|
207
|
-
type: '
|
|
207
|
+
type: 'TEXT',
|
|
208
208
|
specialContent: [],
|
|
209
209
|
text: 'Flash Deal',
|
|
210
210
|
content: {
|
|
@@ -227,7 +227,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
227
227
|
activityPrice: {
|
|
228
228
|
id: (0, _uuid.v4)(),
|
|
229
229
|
open: true,
|
|
230
|
-
type: '
|
|
230
|
+
type: 'TEXT',
|
|
231
231
|
specialContent: [],
|
|
232
232
|
text: 'Flash Deal',
|
|
233
233
|
content: {
|
|
@@ -250,7 +250,7 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
250
250
|
salesPrice: {
|
|
251
251
|
id: (0, _uuid.v4)(),
|
|
252
252
|
open: true,
|
|
253
|
-
type: '
|
|
253
|
+
type: 'TEXT',
|
|
254
254
|
specialContent: [],
|
|
255
255
|
text: 'Flash Deal',
|
|
256
256
|
content: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.m-search-bar {
|
|
2
2
|
height: 48px;
|
|
3
|
-
padding: 8px
|
|
3
|
+
padding: 8px 0;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row-reverse;
|
|
6
6
|
align-items: center;
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
.right {
|
|
11
11
|
display: flex;
|
|
12
|
+
flex: 1;
|
|
13
|
+
margin-left: 15px;
|
|
12
14
|
align-items: center;
|
|
13
15
|
justify-content: space-between;
|
|
14
16
|
|
|
15
17
|
.search-input-wrap {
|
|
16
|
-
|
|
18
|
+
flex: 1;
|
|
17
19
|
background: #fff;
|
|
18
20
|
border-radius: 4px;
|
|
19
21
|
border: 1px solid #D2D9E5;
|
|
@@ -24,7 +26,7 @@
|
|
|
24
26
|
|
|
25
27
|
.message-wrap {
|
|
26
28
|
position: relative;
|
|
27
|
-
margin-left:
|
|
29
|
+
margin-left: 10px;
|
|
28
30
|
|
|
29
31
|
.num {
|
|
30
32
|
position: absolute;
|
|
@@ -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
|
}
|
|
@@ -41,6 +41,22 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
41
41
|
};
|
|
42
42
|
}();
|
|
43
43
|
|
|
44
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
45
|
+
__assign = Object.assign || function (t) {
|
|
46
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
47
|
+
s = arguments[i];
|
|
48
|
+
|
|
49
|
+
for (var p in s) {
|
|
50
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
return __assign.apply(this, arguments);
|
|
58
|
+
};
|
|
59
|
+
|
|
44
60
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
45
61
|
var t = {};
|
|
46
62
|
|
|
@@ -133,7 +149,7 @@ function metaDecorator(WrappedComponent) {
|
|
|
133
149
|
return false;
|
|
134
150
|
};
|
|
135
151
|
|
|
136
|
-
_this.
|
|
152
|
+
_this.getInteractStyle = function () {
|
|
137
153
|
var _a = _this.state,
|
|
138
154
|
hoveredMeta = _a.hoveredMeta,
|
|
139
155
|
clickedMeta = _a.clickedMeta;
|
|
@@ -154,6 +170,22 @@ function metaDecorator(WrappedComponent) {
|
|
|
154
170
|
}
|
|
155
171
|
|
|
156
172
|
return style;
|
|
173
|
+
}; // text元组件在选中或悬浮时 需要实时展示其宽度
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
_this.getStyle = function () {
|
|
177
|
+
var _a = _this.props,
|
|
178
|
+
style = _a.style,
|
|
179
|
+
rest = __rest(_a, ["style"]);
|
|
180
|
+
|
|
181
|
+
var newStyle = __assign({}, style);
|
|
182
|
+
|
|
183
|
+
if (rest.data.type === 'TEXT') {
|
|
184
|
+
var width = window.magicDesign.device === 'pc' ? rest.data.content.pcWidth : rest.data.content.width;
|
|
185
|
+
newStyle.width = (width || 100) + "%";
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return newStyle;
|
|
157
189
|
};
|
|
158
190
|
|
|
159
191
|
return _this;
|
|
@@ -177,13 +209,13 @@ function metaDecorator(WrappedComponent) {
|
|
|
177
209
|
Wrapper.prototype.render = function () {
|
|
178
210
|
var _a = this.props,
|
|
179
211
|
className = _a.className,
|
|
180
|
-
|
|
181
|
-
rest = __rest(_a, ["className", "style"]);
|
|
212
|
+
rest = __rest(_a, ["className"]);
|
|
182
213
|
|
|
183
|
-
var hoverStyle = this.
|
|
214
|
+
var hoverStyle = this.getInteractStyle();
|
|
215
|
+
console.log(rest);
|
|
184
216
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
185
217
|
className: className,
|
|
186
|
-
style:
|
|
218
|
+
style: this.getStyle()
|
|
187
219
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
188
220
|
className: "meta_wrap",
|
|
189
221
|
onClick: this.onMetaClick,
|
|
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),
|
|
@@ -94,7 +94,6 @@ var __spreadArrays = void 0 && (void 0).__spreadArrays || function () {
|
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
var contentStyle = function contentStyle(content) {
|
|
97
|
-
var baseWidth = (window.magicDesign.device == 'pc' ? content.pcWidth : content.width) || 100;
|
|
98
97
|
return {
|
|
99
98
|
fontSize: window.magicDesign.device == 'pc' ? content.pcFontSize : content.fontSize,
|
|
100
99
|
fontFamily: content.fontFamily,
|
|
@@ -103,8 +102,7 @@ var contentStyle = function contentStyle(content) {
|
|
|
103
102
|
color: content.color,
|
|
104
103
|
backgroundColor: content.backgroundColor,
|
|
105
104
|
textAlign: content.textAlign,
|
|
106
|
-
|
|
107
|
-
width: Math.min(baseWidth, 100) + "%"
|
|
105
|
+
width: '100%'
|
|
108
106
|
};
|
|
109
107
|
};
|
|
110
108
|
/** 从父级数组中 分离出 片段数组 */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|