@fonixtree/magic-design 0.0.162 → 0.0.163
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/common/ColorPicker/index.less +2 -1
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +2 -2
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +2 -1
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +6 -1
- package/es/composite-comp/bol/components/Carousel/pc/index.js +8 -2
- package/es/composite-comp/bol/components/Carousel/pc/index.less +7 -2
- package/es/composite-comp/bol/components/Text/index.js +2 -5
- package/es/composite-comp/bol/components/Text/index.less +2 -2
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
- package/es/core/Designer/ConfigPanel/index.js +10 -1
- package/es/meta-comp/components/Text/index.js +2 -1
- package/lib/common/ColorPicker/index.less +2 -1
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +2 -2
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +2 -1
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +6 -1
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +8 -2
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +7 -2
- package/lib/composite-comp/bol/components/Text/index.js +2 -5
- package/lib/composite-comp/bol/components/Text/index.less +2 -2
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +1 -1
- package/lib/core/Designer/ConfigPanel/index.js +10 -1
- package/lib/meta-comp/components/Text/index.js +2 -1
- package/package.json +1 -1
|
@@ -18,8 +18,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
18
18
|
open: true,
|
|
19
19
|
type: 'IMAGE',
|
|
20
20
|
content: {
|
|
21
|
-
h5Name: '
|
|
22
|
-
pcName: '
|
|
21
|
+
h5Name: 'Image Name',
|
|
22
|
+
pcName: 'Image Name',
|
|
23
23
|
h5ImgSrc: '',
|
|
24
24
|
pcImgSrc: '',
|
|
25
25
|
clickUrl: ''
|
|
@@ -208,12 +208,13 @@ function (_super) {
|
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
|
+
var dotsSpace = Math.max(data.setting.dots.size, data.setting.dots.hoverSize) + 12 + "px";
|
|
211
212
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
212
213
|
className: "m-carousel-mobile"
|
|
213
214
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
214
215
|
className: "content",
|
|
215
216
|
style: {
|
|
216
|
-
paddingBottom: data.setting.dots.open && data.groupSource.length / colNum > 1 ?
|
|
217
|
+
paddingBottom: data.setting.dots.open && data.groupSource.length / colNum > 1 ? dotsSpace : '0'
|
|
217
218
|
}
|
|
218
219
|
}, /*#__PURE__*/_react["default"].createElement(_reactSlick["default"], _extends({
|
|
219
220
|
ref: function ref(slider) {
|
|
@@ -85,11 +85,16 @@
|
|
|
85
85
|
border-radius: 50%;
|
|
86
86
|
background: #FFF;
|
|
87
87
|
cursor: inherit;
|
|
88
|
-
margin-right:
|
|
88
|
+
margin-right: 10px;
|
|
89
89
|
transition: all .5s;
|
|
90
90
|
|
|
91
|
+
&:last-child {
|
|
92
|
+
margin-right: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
91
95
|
&.active {
|
|
92
96
|
width: 2em;
|
|
97
|
+
height: 1em;
|
|
93
98
|
border-radius: 100px;
|
|
94
99
|
opacity: 1;
|
|
95
100
|
}
|
|
@@ -205,12 +205,14 @@ function (_super) {
|
|
|
205
205
|
fontSize: data.setting.navigation.size,
|
|
206
206
|
color: data.setting.navigation.color
|
|
207
207
|
};
|
|
208
|
+
var dotsSpace = Math.max(data.setting.dots.size, data.setting.dots.hoverSize) * 1.25 + 20 + "px";
|
|
209
|
+
var sliderWidth = "calc(100% - " + (data.setting.navigation.size + 20) * 2 + "px)";
|
|
208
210
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
209
211
|
className: "m-carousel-pc"
|
|
210
212
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
211
213
|
className: "content",
|
|
212
214
|
style: {
|
|
213
|
-
paddingBottom: data.setting.dots.open && data.groupSource.length / colNum > 1 ?
|
|
215
|
+
paddingBottom: data.setting.dots.open && data.groupSource.length / colNum > 1 ? dotsSpace : '0'
|
|
214
216
|
}
|
|
215
217
|
}, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
216
218
|
className: "carousel-icon-left",
|
|
@@ -225,7 +227,11 @@ function (_super) {
|
|
|
225
227
|
ref: function ref(slider) {
|
|
226
228
|
return _this.sliderRef = slider;
|
|
227
229
|
}
|
|
228
|
-
}, settings
|
|
230
|
+
}, settings, {
|
|
231
|
+
style: {
|
|
232
|
+
width: sliderWidth
|
|
233
|
+
}
|
|
234
|
+
}), data.groupSource.map(function (item) {
|
|
229
235
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
230
236
|
key: item.id,
|
|
231
237
|
className: "img-wrap"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.slider-wrap {
|
|
21
|
-
width: calc(100% - 72px);
|
|
21
|
+
// width: calc(100% - 72px);
|
|
22
22
|
margin: 0 auto;
|
|
23
23
|
line-height: 1;
|
|
24
24
|
|
|
@@ -101,11 +101,16 @@
|
|
|
101
101
|
border-radius: 50%;
|
|
102
102
|
background: #FFF;
|
|
103
103
|
cursor: inherit;
|
|
104
|
-
margin-right:
|
|
104
|
+
margin-right: 10px;
|
|
105
105
|
transition: all .5s;
|
|
106
106
|
|
|
107
|
+
&:last-child {
|
|
108
|
+
margin-right: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
107
111
|
&.active {
|
|
108
112
|
width: 2.5em;
|
|
113
|
+
height: 1.25em;
|
|
109
114
|
border-radius: 100px;
|
|
110
115
|
opacity: 1;
|
|
111
116
|
}
|
|
@@ -59,11 +59,6 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
59
59
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
// import './index.less';
|
|
63
|
-
// less to css 在线地址 https://tool.oschina.net/less
|
|
64
|
-
// css 压缩地址 https://www.runoob.com/csspack
|
|
65
|
-
var style = '.m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title-text{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{padding:10px 20px;}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}';
|
|
66
|
-
|
|
67
62
|
var Text =
|
|
68
63
|
/** @class */
|
|
69
64
|
function (_super) {
|
|
@@ -80,6 +75,8 @@ function (_super) {
|
|
|
80
75
|
nodeData = _b.nodeData,
|
|
81
76
|
mode = _b.mode,
|
|
82
77
|
outputType = _b.outputType;
|
|
78
|
+
var groupWrapContainerStyle = window.magicDesign.device === 'pc' ? 'padding: 16px 20px;' : 'padding: 12px 20px;';
|
|
79
|
+
var style = ".m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title-text{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{" + groupWrapContainerStyle + "}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}";
|
|
83
80
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
81
|
className: "m-text",
|
|
85
82
|
onClick: this.onComponentClick
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.m-text {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
.title-wrap {
|
|
6
6
|
font-weight: 500;
|
|
7
7
|
font-size: 20px;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
width: 100%;
|
|
18
18
|
|
|
19
19
|
.group-wrap-container {
|
|
20
|
-
padding:
|
|
20
|
+
padding: 16px 20px;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.group-wrap {
|
package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js
CHANGED
|
@@ -112,7 +112,7 @@ function (_super) {
|
|
|
112
112
|
src: ((0, _coreUtil.isPc)() ? src.image.content.pcImgSrc : src.image.content.h5ImgSrc) || _defaultImg["default"]
|
|
113
113
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
114
|
className: "name"
|
|
115
|
-
}, (0, _coreUtil.isPc)() ? src.image.content.
|
|
115
|
+
}, (0, _coreUtil.isPc)() ? src.image.content.pcName : src.image.content.h5Name));
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -217,7 +217,7 @@ function (_super) {
|
|
|
217
217
|
};
|
|
218
218
|
|
|
219
219
|
_this.getSecondConfigName = function () {
|
|
220
|
-
var _a, _b, _c, _d, _e;
|
|
220
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
221
221
|
|
|
222
222
|
var selectedNode = _this.state.selectedNode;
|
|
223
223
|
|
|
@@ -237,6 +237,7 @@ function (_super) {
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
var groupName = '';
|
|
240
|
+
console.log('...', selectedNode.type, panelProps);
|
|
240
241
|
|
|
241
242
|
switch (selectedNode.type) {
|
|
242
243
|
case 'IMAGE_GALLERY':
|
|
@@ -250,11 +251,19 @@ function (_super) {
|
|
|
250
251
|
|
|
251
252
|
break;
|
|
252
253
|
|
|
254
|
+
case 'CAROUSEL':
|
|
255
|
+
groupName = (0, _coreUtil.isPc)() ? (_g = (_f = panelProps.image) === null || _f === void 0 ? void 0 : _f.content) === null || _g === void 0 ? void 0 : _g.pcName : (_j = (_h = panelProps.image) === null || _h === void 0 ? void 0 : _h.content) === null || _j === void 0 ? void 0 : _j.h5Name;
|
|
256
|
+
break;
|
|
257
|
+
|
|
253
258
|
case 'MOBILE_NAVIGATION':
|
|
254
259
|
case 'PC_NAVIGATION':
|
|
255
260
|
groupName = (panelProps === null || panelProps === void 0 ? void 0 : panelProps.title.text) || (0, _locale.i18n)('NAVIGATION_NAME');
|
|
256
261
|
break;
|
|
257
262
|
|
|
263
|
+
case 'TEXT':
|
|
264
|
+
groupName = panelProps.content.title.text;
|
|
265
|
+
break;
|
|
266
|
+
|
|
258
267
|
case 'RECOMMEND':
|
|
259
268
|
groupName = panelProps.groupName.text;
|
|
260
269
|
break;
|
|
@@ -481,7 +481,8 @@ function (_super) {
|
|
|
481
481
|
style = __assign(__assign({}, style), {
|
|
482
482
|
textDecorationLine: data.underline.open ? 'underline' : 'none',
|
|
483
483
|
textDecorationColor: data.underline.textDecorationColor,
|
|
484
|
-
textDecorationStyle: data.underline.textDecorationStyle
|
|
484
|
+
textDecorationStyle: data.underline.textDecorationStyle,
|
|
485
|
+
textUnderlineOffset: Math.ceil(style.fontSize * 0.2) + 'px'
|
|
485
486
|
});
|
|
486
487
|
}
|
|
487
488
|
|
|
@@ -18,8 +18,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
|
|
|
18
18
|
open: true,
|
|
19
19
|
type: 'IMAGE',
|
|
20
20
|
content: {
|
|
21
|
-
h5Name: '
|
|
22
|
-
pcName: '
|
|
21
|
+
h5Name: 'Image Name',
|
|
22
|
+
pcName: 'Image Name',
|
|
23
23
|
h5ImgSrc: '',
|
|
24
24
|
pcImgSrc: '',
|
|
25
25
|
clickUrl: ''
|
|
@@ -208,12 +208,13 @@ function (_super) {
|
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
|
+
var dotsSpace = Math.max(data.setting.dots.size, data.setting.dots.hoverSize) + 12 + "px";
|
|
211
212
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
212
213
|
className: "m-carousel-mobile"
|
|
213
214
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
214
215
|
className: "content",
|
|
215
216
|
style: {
|
|
216
|
-
paddingBottom: data.setting.dots.open && data.groupSource.length / colNum > 1 ?
|
|
217
|
+
paddingBottom: data.setting.dots.open && data.groupSource.length / colNum > 1 ? dotsSpace : '0'
|
|
217
218
|
}
|
|
218
219
|
}, /*#__PURE__*/_react["default"].createElement(_reactSlick["default"], _extends({
|
|
219
220
|
ref: function ref(slider) {
|
|
@@ -85,11 +85,16 @@
|
|
|
85
85
|
border-radius: 50%;
|
|
86
86
|
background: #FFF;
|
|
87
87
|
cursor: inherit;
|
|
88
|
-
margin-right:
|
|
88
|
+
margin-right: 10px;
|
|
89
89
|
transition: all .5s;
|
|
90
90
|
|
|
91
|
+
&:last-child {
|
|
92
|
+
margin-right: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
91
95
|
&.active {
|
|
92
96
|
width: 2em;
|
|
97
|
+
height: 1em;
|
|
93
98
|
border-radius: 100px;
|
|
94
99
|
opacity: 1;
|
|
95
100
|
}
|
|
@@ -205,12 +205,14 @@ function (_super) {
|
|
|
205
205
|
fontSize: data.setting.navigation.size,
|
|
206
206
|
color: data.setting.navigation.color
|
|
207
207
|
};
|
|
208
|
+
var dotsSpace = Math.max(data.setting.dots.size, data.setting.dots.hoverSize) * 1.25 + 20 + "px";
|
|
209
|
+
var sliderWidth = "calc(100% - " + (data.setting.navigation.size + 20) * 2 + "px)";
|
|
208
210
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
209
211
|
className: "m-carousel-pc"
|
|
210
212
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
211
213
|
className: "content",
|
|
212
214
|
style: {
|
|
213
|
-
paddingBottom: data.setting.dots.open && data.groupSource.length / colNum > 1 ?
|
|
215
|
+
paddingBottom: data.setting.dots.open && data.groupSource.length / colNum > 1 ? dotsSpace : '0'
|
|
214
216
|
}
|
|
215
217
|
}, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
216
218
|
className: "carousel-icon-left",
|
|
@@ -225,7 +227,11 @@ function (_super) {
|
|
|
225
227
|
ref: function ref(slider) {
|
|
226
228
|
return _this.sliderRef = slider;
|
|
227
229
|
}
|
|
228
|
-
}, settings
|
|
230
|
+
}, settings, {
|
|
231
|
+
style: {
|
|
232
|
+
width: sliderWidth
|
|
233
|
+
}
|
|
234
|
+
}), data.groupSource.map(function (item) {
|
|
229
235
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
230
236
|
key: item.id,
|
|
231
237
|
className: "img-wrap"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.slider-wrap {
|
|
21
|
-
width: calc(100% - 72px);
|
|
21
|
+
// width: calc(100% - 72px);
|
|
22
22
|
margin: 0 auto;
|
|
23
23
|
line-height: 1;
|
|
24
24
|
|
|
@@ -101,11 +101,16 @@
|
|
|
101
101
|
border-radius: 50%;
|
|
102
102
|
background: #FFF;
|
|
103
103
|
cursor: inherit;
|
|
104
|
-
margin-right:
|
|
104
|
+
margin-right: 10px;
|
|
105
105
|
transition: all .5s;
|
|
106
106
|
|
|
107
|
+
&:last-child {
|
|
108
|
+
margin-right: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
107
111
|
&.active {
|
|
108
112
|
width: 2.5em;
|
|
113
|
+
height: 1.25em;
|
|
109
114
|
border-radius: 100px;
|
|
110
115
|
opacity: 1;
|
|
111
116
|
}
|
|
@@ -59,11 +59,6 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
59
59
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
// import './index.less';
|
|
63
|
-
// less to css 在线地址 https://tool.oschina.net/less
|
|
64
|
-
// css 压缩地址 https://www.runoob.com/csspack
|
|
65
|
-
var style = '.m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title-text{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{padding:10px 20px;}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}';
|
|
66
|
-
|
|
67
62
|
var Text =
|
|
68
63
|
/** @class */
|
|
69
64
|
function (_super) {
|
|
@@ -80,6 +75,8 @@ function (_super) {
|
|
|
80
75
|
nodeData = _b.nodeData,
|
|
81
76
|
mode = _b.mode,
|
|
82
77
|
outputType = _b.outputType;
|
|
78
|
+
var groupWrapContainerStyle = window.magicDesign.device === 'pc' ? 'padding: 16px 20px;' : 'padding: 12px 20px;';
|
|
79
|
+
var style = ".m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title-text{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{" + groupWrapContainerStyle + "}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}";
|
|
83
80
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
81
|
className: "m-text",
|
|
85
82
|
onClick: this.onComponentClick
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.m-text {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
.title-wrap {
|
|
6
6
|
font-weight: 500;
|
|
7
7
|
font-size: 20px;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
width: 100%;
|
|
18
18
|
|
|
19
19
|
.group-wrap-container {
|
|
20
|
-
padding:
|
|
20
|
+
padding: 16px 20px;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.group-wrap {
|
package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js
CHANGED
|
@@ -112,7 +112,7 @@ function (_super) {
|
|
|
112
112
|
src: ((0, _coreUtil.isPc)() ? src.image.content.pcImgSrc : src.image.content.h5ImgSrc) || _defaultImg["default"]
|
|
113
113
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
114
|
className: "name"
|
|
115
|
-
}, (0, _coreUtil.isPc)() ? src.image.content.
|
|
115
|
+
}, (0, _coreUtil.isPc)() ? src.image.content.pcName : src.image.content.h5Name));
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -217,7 +217,7 @@ function (_super) {
|
|
|
217
217
|
};
|
|
218
218
|
|
|
219
219
|
_this.getSecondConfigName = function () {
|
|
220
|
-
var _a, _b, _c, _d, _e;
|
|
220
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
221
221
|
|
|
222
222
|
var selectedNode = _this.state.selectedNode;
|
|
223
223
|
|
|
@@ -237,6 +237,7 @@ function (_super) {
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
var groupName = '';
|
|
240
|
+
console.log('...', selectedNode.type, panelProps);
|
|
240
241
|
|
|
241
242
|
switch (selectedNode.type) {
|
|
242
243
|
case 'IMAGE_GALLERY':
|
|
@@ -250,11 +251,19 @@ function (_super) {
|
|
|
250
251
|
|
|
251
252
|
break;
|
|
252
253
|
|
|
254
|
+
case 'CAROUSEL':
|
|
255
|
+
groupName = (0, _coreUtil.isPc)() ? (_g = (_f = panelProps.image) === null || _f === void 0 ? void 0 : _f.content) === null || _g === void 0 ? void 0 : _g.pcName : (_j = (_h = panelProps.image) === null || _h === void 0 ? void 0 : _h.content) === null || _j === void 0 ? void 0 : _j.h5Name;
|
|
256
|
+
break;
|
|
257
|
+
|
|
253
258
|
case 'MOBILE_NAVIGATION':
|
|
254
259
|
case 'PC_NAVIGATION':
|
|
255
260
|
groupName = (panelProps === null || panelProps === void 0 ? void 0 : panelProps.title.text) || (0, _locale.i18n)('NAVIGATION_NAME');
|
|
256
261
|
break;
|
|
257
262
|
|
|
263
|
+
case 'TEXT':
|
|
264
|
+
groupName = panelProps.content.title.text;
|
|
265
|
+
break;
|
|
266
|
+
|
|
258
267
|
case 'RECOMMEND':
|
|
259
268
|
groupName = panelProps.groupName.text;
|
|
260
269
|
break;
|
|
@@ -481,7 +481,8 @@ function (_super) {
|
|
|
481
481
|
style = __assign(__assign({}, style), {
|
|
482
482
|
textDecorationLine: data.underline.open ? 'underline' : 'none',
|
|
483
483
|
textDecorationColor: data.underline.textDecorationColor,
|
|
484
|
-
textDecorationStyle: data.underline.textDecorationStyle
|
|
484
|
+
textDecorationStyle: data.underline.textDecorationStyle,
|
|
485
|
+
textUnderlineOffset: Math.ceil(style.fontSize * 0.2) + 'px'
|
|
485
486
|
});
|
|
486
487
|
}
|
|
487
488
|
|