@fonixtree/magic-design 1.0.221 → 1.0.224
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/GroupList/index.js +9 -4
- package/es/composite-comp/bol/components/Banner/pc/index.less +1 -1
- package/es/composite-comp/common/components/ProductItem/index.less +1 -1
- package/es/composite-comp/dito/components/GroupedImage/defaultJSON.js +3 -2
- package/es/composite-comp/dito/components/GroupedImage/pc/index.js +3 -51
- package/es/composite-comp/dito/components/GroupedImage/pc/index.less +1 -9
- package/es/composite-comp/dito/components/Recommend/pc/index.js +23 -7
- package/es/composite-comp/dito/components/Recommend/pc/index.less +11 -3
- package/es/composite-comp/dito/second-config-panels/GroupedImageSecondConfig/index.js +8 -35
- package/es/composite-comp/dito/third-config-panels/GroupedImageThirdConfig/index.js +72 -0
- package/es/constants/component-types.js +7 -3
- package/es/core/Designer/ConfigPanel/index.js +104 -80
- package/es/core/Designer/QuickMenuBar/index.js +1 -0
- package/es/core/Designer/index.js +1 -0
- package/es/core/Renderer/index.js +55 -14
- package/es/decorator/metaDecorator.js +20 -9
- package/es/mobx/Store.js +3 -4
- package/es/utils/coreUtil.js +3 -4
- package/lib/common/GroupList/index.js +9 -4
- package/lib/composite-comp/bol/components/Banner/pc/index.less +1 -1
- package/lib/composite-comp/common/components/ProductItem/index.less +1 -1
- package/lib/composite-comp/dito/components/GroupedImage/defaultJSON.js +3 -2
- package/lib/composite-comp/dito/components/GroupedImage/pc/index.js +3 -51
- package/lib/composite-comp/dito/components/GroupedImage/pc/index.less +1 -9
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +23 -7
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +11 -3
- package/lib/composite-comp/dito/second-config-panels/GroupedImageSecondConfig/index.js +8 -35
- package/lib/composite-comp/dito/third-config-panels/GroupedImageThirdConfig/index.js +72 -0
- package/lib/constants/component-types.js +7 -3
- package/lib/core/Designer/ConfigPanel/index.js +104 -80
- package/lib/core/Designer/QuickMenuBar/index.js +1 -0
- package/lib/core/Designer/index.js +1 -0
- package/lib/core/Renderer/index.js +55 -14
- package/lib/decorator/metaDecorator.js +20 -9
- package/lib/mobx/Store.js +3 -4
- package/lib/utils/coreUtil.js +3 -4
- package/package.json +1 -1
|
@@ -114,12 +114,16 @@ function (_super) {
|
|
|
114
114
|
e.stopPropagation();
|
|
115
115
|
var _a = _this.props,
|
|
116
116
|
source = _a.source,
|
|
117
|
-
max = _a.max
|
|
117
|
+
max = _a.max,
|
|
118
|
+
parentId = _a.parentId;
|
|
118
119
|
if (source.length >= max) return;
|
|
119
120
|
var index = source.findIndex(function (src) {
|
|
120
121
|
return src.id === item.id;
|
|
121
|
-
});
|
|
122
|
-
|
|
122
|
+
}); // 传递 parentId 给 copyNode,如果提供了 parentId,复制的节点会有正确的 parentId
|
|
123
|
+
// 如果没有提供 parentId,copyNode 会使用原节点的 parentId
|
|
124
|
+
|
|
125
|
+
var copiedItem = (0, _coreUtil.copyNode)(item, parentId);
|
|
126
|
+
source.splice(index, 0, copiedItem);
|
|
123
127
|
|
|
124
128
|
_this.setState({});
|
|
125
129
|
|
|
@@ -211,7 +215,8 @@ function (_super) {
|
|
|
211
215
|
onClickItem: function onClickItem() {},
|
|
212
216
|
reRender: function reRender() {},
|
|
213
217
|
renderCard: renderCardDefault,
|
|
214
|
-
max: 99
|
|
218
|
+
max: 99,
|
|
219
|
+
parentId: undefined
|
|
215
220
|
};
|
|
216
221
|
return GroupList;
|
|
217
222
|
}(_react["default"].Component);
|
|
@@ -59,9 +59,10 @@ var createTextMeta = function createTextMeta(parentId, text, color, fontSize, fo
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
var createImageMeta = function createImageMeta(parentId) {
|
|
62
|
+
var createImageMeta = function createImageMeta(parentId, grandId) {
|
|
63
63
|
return {
|
|
64
64
|
parentId: parentId,
|
|
65
|
+
grandId: grandId,
|
|
65
66
|
id: (0, _uuid.v4)(),
|
|
66
67
|
open: true,
|
|
67
68
|
type: 'IMAGE',
|
|
@@ -94,7 +95,7 @@ var groupedImageGroupSourceJSON = function groupedImageGroupSourceJSON(parentId,
|
|
|
94
95
|
image: baseImage,
|
|
95
96
|
groupName: baseGroupName,
|
|
96
97
|
title: createTextMeta(groupId, 'Group Title', '#CE1126', '16px', 700),
|
|
97
|
-
images: [createImageMeta(groupId), createImageMeta(groupId), createImageMeta(groupId), createImageMeta(groupId)],
|
|
98
|
+
images: [createImageMeta(groupId, parentId), createImageMeta(groupId, parentId), createImageMeta(groupId, parentId), createImageMeta(groupId, parentId)],
|
|
98
99
|
hover: {
|
|
99
100
|
open: true,
|
|
100
101
|
image: __assign(__assign({}, createImageMeta(groupId)), {
|
|
@@ -68,30 +68,6 @@ function (_super) {
|
|
|
68
68
|
groupSource: [],
|
|
69
69
|
scrollToLeftDisabled: true,
|
|
70
70
|
scrollToRightDisabled: true
|
|
71
|
-
}; // 数据迁移:将旧的image1-4迁移到images数组
|
|
72
|
-
|
|
73
|
-
_this.migrateData = function (groupSource) {
|
|
74
|
-
groupSource.forEach(function (group) {
|
|
75
|
-
// 如果存在旧的image1-4字段且没有images数组,进行迁移
|
|
76
|
-
if (!group.images && (group.image1 || group.image2 || group.image3 || group.image4)) {
|
|
77
|
-
group.images = [];
|
|
78
|
-
[group.image1, group.image2, group.image3, group.image4].forEach(function (img) {
|
|
79
|
-
if (img) {
|
|
80
|
-
group.images.push(img);
|
|
81
|
-
}
|
|
82
|
-
}); // 删除旧字段
|
|
83
|
-
|
|
84
|
-
delete group.image1;
|
|
85
|
-
delete group.image2;
|
|
86
|
-
delete group.image3;
|
|
87
|
-
delete group.image4;
|
|
88
|
-
} // 确保images数组存在
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
if (!group.images) {
|
|
92
|
-
group.images = [];
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
71
|
};
|
|
96
72
|
|
|
97
73
|
_this.initScroll = function (resetPosition) {
|
|
@@ -244,9 +220,8 @@ function (_super) {
|
|
|
244
220
|
GroupedImagePc.prototype.componentDidMount = function () {
|
|
245
221
|
var _this = this;
|
|
246
222
|
|
|
247
|
-
var panelProps = this.props.panelProps;
|
|
248
|
-
|
|
249
|
-
this.migrateData(panelProps.groupSource);
|
|
223
|
+
var panelProps = this.props.panelProps;
|
|
224
|
+
console.log('panelProps......', panelProps);
|
|
250
225
|
var source = [];
|
|
251
226
|
panelProps.groupSource.forEach(function (m) {
|
|
252
227
|
var show = m.image.open || m.groupName.open;
|
|
@@ -267,9 +242,7 @@ function (_super) {
|
|
|
267
242
|
var _this = this;
|
|
268
243
|
|
|
269
244
|
var tabIndex = this.state.tabIndex;
|
|
270
|
-
var panelProps = nextProps.panelProps;
|
|
271
|
-
|
|
272
|
-
this.migrateData(panelProps.groupSource);
|
|
245
|
+
var panelProps = nextProps.panelProps;
|
|
273
246
|
var source = [];
|
|
274
247
|
panelProps.groupSource.forEach(function (m) {
|
|
275
248
|
var show = m.image.open || m.groupName.open;
|
|
@@ -353,27 +326,6 @@ function (_super) {
|
|
|
353
326
|
return img.id;
|
|
354
327
|
}, idx),
|
|
355
328
|
className: "image-item",
|
|
356
|
-
onClick: function onClick(e) {
|
|
357
|
-
// 只在设计模式下才触发联动
|
|
358
|
-
if (!(0, _coreUtil.isDesignMode)()) {
|
|
359
|
-
return;
|
|
360
|
-
} // 点击图片时,联动到第三级属性面板
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
e.stopPropagation();
|
|
364
|
-
e.preventDefault(); // 获取当前tab的group id和楼层id
|
|
365
|
-
|
|
366
|
-
var panelProps = _this.props.panelProps;
|
|
367
|
-
var currentGroupId = current.id; // panelProps.id 就是楼层ID
|
|
368
|
-
|
|
369
|
-
var floorId = panelProps.id; // 一次性设置所有需要的状态,确保联动正常
|
|
370
|
-
|
|
371
|
-
_mobx.store.setState({
|
|
372
|
-
clickedGroup: currentGroupId,
|
|
373
|
-
clickedFloor: floorId,
|
|
374
|
-
clickedImage: img.id
|
|
375
|
-
});
|
|
376
|
-
},
|
|
377
329
|
style: {
|
|
378
330
|
cursor: (0, _coreUtil.isDesignMode)() ? 'pointer' : 'default'
|
|
379
331
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
&.less-than-4 {
|
|
7
7
|
.image-list-wrapper {
|
|
8
|
-
padding-left: 0!important;
|
|
9
8
|
.image-list {
|
|
10
9
|
width: fit-content;
|
|
11
10
|
margin: 0 auto;
|
|
@@ -17,7 +16,6 @@
|
|
|
17
16
|
display: flex;
|
|
18
17
|
align-items: center;
|
|
19
18
|
gap: 16px;
|
|
20
|
-
background: #ffffff;
|
|
21
19
|
// overflow: auto;
|
|
22
20
|
position: relative;
|
|
23
21
|
width: fit-content;
|
|
@@ -48,7 +46,6 @@
|
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
.image-list-wrapper {
|
|
51
|
-
padding-left: 88px;
|
|
52
49
|
position: relative;
|
|
53
50
|
|
|
54
51
|
.image-list {
|
|
@@ -60,20 +57,15 @@
|
|
|
60
57
|
flex: 1;
|
|
61
58
|
scroll-behavior: smooth;
|
|
62
59
|
-webkit-overflow-scrolling: touch;
|
|
60
|
+
scrollbar-width: none;
|
|
63
61
|
|
|
64
62
|
&::-webkit-scrollbar {
|
|
65
63
|
display: none;
|
|
66
64
|
}
|
|
67
65
|
|
|
68
|
-
scrollbar-width: none;
|
|
69
|
-
|
|
70
66
|
.image-item {
|
|
71
67
|
flex-shrink: 0;
|
|
72
68
|
width: 300px;
|
|
73
|
-
|
|
74
|
-
&:last-child {
|
|
75
|
-
margin-right: 40px;
|
|
76
|
-
}
|
|
77
69
|
}
|
|
78
70
|
|
|
79
71
|
.empty-placeholder {
|
|
@@ -642,9 +642,27 @@ function (_super) {
|
|
|
642
642
|
var colNumber = layout === 'layout1' ? panelProps.customize.pcRowNum : panelProps.customize.pcRowNum + 0.5;
|
|
643
643
|
var spaceNumber = layout === 'layout1' ? panelProps.customize.pcRowNum - 1 : panelProps.customize.pcRowNum;
|
|
644
644
|
if (contentWidth) imgSize = (contentWidth - 24 * spaceNumber - otherWidth) / colNumber;
|
|
645
|
+
var background = panelProps.background.tabBackground;
|
|
646
|
+
var tabStyle = {};
|
|
647
|
+
|
|
648
|
+
if (background) {
|
|
649
|
+
if (background.tabBgType === 'color') {
|
|
650
|
+
tabStyle.backgroundColor = background.color;
|
|
651
|
+
tabStyle.opacity = background.opacity ? background.opacity : 1;
|
|
652
|
+
} else {
|
|
653
|
+
tabStyle.backgroundImage = "url(" + background.image + ")";
|
|
654
|
+
tabStyle.backgroundPosition = 'center center';
|
|
655
|
+
tabStyle.backgroundSize = 'cover';
|
|
656
|
+
tabStyle.backgroundRepeat = 'no-repeat';
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
645
660
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
646
661
|
className: "m-recommend-pc"
|
|
647
662
|
}, !hideTabs && /*#__PURE__*/_react["default"].createElement("div", {
|
|
663
|
+
className: "recommend-tab-select-bg",
|
|
664
|
+
style: tabStyle
|
|
665
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
648
666
|
className: "recommend-tab-select-wrap"
|
|
649
667
|
}, groupSource.map(function (tab, index) {
|
|
650
668
|
var _image = index == tabIndex && tab.hover.open && tab.hover.image.open ? tab.hover.image : tab.image;
|
|
@@ -681,7 +699,7 @@ function (_super) {
|
|
|
681
699
|
transform: "translateX(" + tabLeft + "px)",
|
|
682
700
|
background: this.getTabBarActiveColor(panelProps)
|
|
683
701
|
}
|
|
684
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
702
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
685
703
|
className: "tab-content"
|
|
686
704
|
}, layout !== 'layout1' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
687
705
|
className: "arrow-icon left",
|
|
@@ -704,10 +722,9 @@ function (_super) {
|
|
|
704
722
|
data: item,
|
|
705
723
|
fixHeight: true,
|
|
706
724
|
imgHeight: imgSize,
|
|
707
|
-
imgWidth: "100%"
|
|
708
|
-
,
|
|
725
|
+
imgWidth: "100%",
|
|
709
726
|
onItemClick: function onItemClick() {
|
|
710
|
-
|
|
727
|
+
(0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || item.productId || ''));
|
|
711
728
|
},
|
|
712
729
|
panelProps: panelProps.content,
|
|
713
730
|
showProgress: false
|
|
@@ -733,10 +750,9 @@ function (_super) {
|
|
|
733
750
|
data: item,
|
|
734
751
|
fixHeight: true,
|
|
735
752
|
imgHeight: imgSize,
|
|
736
|
-
imgWidth: imgSize
|
|
737
|
-
,
|
|
753
|
+
imgWidth: imgSize,
|
|
738
754
|
onItemClick: function onItemClick() {
|
|
739
|
-
|
|
755
|
+
(0, _coreUtil.clickUrl)("proDetail-" + item.offerId + "-" + (item.sppProductId || item.productId || ''));
|
|
740
756
|
},
|
|
741
757
|
panelProps: panelProps.content,
|
|
742
758
|
showProgress: false
|
|
@@ -12,17 +12,19 @@
|
|
|
12
12
|
// height: 0;
|
|
13
13
|
// display: none;
|
|
14
14
|
// }
|
|
15
|
+
|
|
16
|
+
.recommend-tab-select-bg {
|
|
17
|
+
margin-bottom: 15px;
|
|
18
|
+
}
|
|
15
19
|
|
|
16
20
|
.recommend-tab-select-wrap {
|
|
17
21
|
display: flex;
|
|
18
22
|
align-items: center;
|
|
19
|
-
height: 50px;
|
|
20
|
-
background: rgb(255 255 255);
|
|
23
|
+
// height: 50px;
|
|
21
24
|
// overflow: auto;
|
|
22
25
|
position: relative;
|
|
23
26
|
width: fit-content;
|
|
24
27
|
margin: 0 auto;
|
|
25
|
-
margin-bottom: 15px;
|
|
26
28
|
|
|
27
29
|
.tabTitle {
|
|
28
30
|
display: flex;
|
|
@@ -97,6 +99,10 @@
|
|
|
97
99
|
margin: 0;
|
|
98
100
|
}
|
|
99
101
|
|
|
102
|
+
.scrollContainer::-webkit-scrollbar {
|
|
103
|
+
display: none; /* Chrome, Safari, Opera */
|
|
104
|
+
}
|
|
105
|
+
|
|
100
106
|
.scrollContainer {
|
|
101
107
|
display: flex;
|
|
102
108
|
flex-direction: row;
|
|
@@ -104,6 +110,8 @@
|
|
|
104
110
|
flex: 1;
|
|
105
111
|
margin: 0;
|
|
106
112
|
overflow-x: auto;
|
|
113
|
+
scrollbar-width: none; /* Firefox */
|
|
114
|
+
-ms-overflow-style: none; /* IE 和 Edge */
|
|
107
115
|
padding-bottom: 15px;
|
|
108
116
|
|
|
109
117
|
&.pl_100 {
|
|
@@ -95,29 +95,7 @@ function (_super) {
|
|
|
95
95
|
__extends(GroupedImageSecondConfig, _super);
|
|
96
96
|
|
|
97
97
|
function GroupedImageSecondConfig() {
|
|
98
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
_this.migrateData = function (panelProps) {
|
|
102
|
-
if (!panelProps.images && (panelProps.image1 || panelProps.image2 || panelProps.image3 || panelProps.image4)) {
|
|
103
|
-
panelProps.images = [];
|
|
104
|
-
[panelProps.image1, panelProps.image2, panelProps.image3, panelProps.image4].forEach(function (img) {
|
|
105
|
-
if (img) {
|
|
106
|
-
panelProps.images.push(img);
|
|
107
|
-
}
|
|
108
|
-
}); // 删除旧字段
|
|
109
|
-
|
|
110
|
-
delete panelProps.image1;
|
|
111
|
-
delete panelProps.image2;
|
|
112
|
-
delete panelProps.image3;
|
|
113
|
-
delete panelProps.image4;
|
|
114
|
-
} // 确保images数组存在
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if (!panelProps.images) {
|
|
118
|
-
panelProps.images = [];
|
|
119
|
-
}
|
|
120
|
-
};
|
|
98
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
121
99
|
|
|
122
100
|
_this.getContentPanel = function () {
|
|
123
101
|
var panelProps = _this.props.panelProps;
|
|
@@ -149,9 +127,9 @@ function (_super) {
|
|
|
149
127
|
|
|
150
128
|
_this.getImagePanel = function () {
|
|
151
129
|
var panelProps = _this.props.panelProps;
|
|
152
|
-
var
|
|
130
|
+
var clickedSecondGroup = _mobx.store.clickedSecondGroup; // 如果选中了图片,不显示图片列表,由ConfigPanel统一处理第三级面板
|
|
153
131
|
|
|
154
|
-
if (
|
|
132
|
+
if (clickedSecondGroup) {
|
|
155
133
|
return null;
|
|
156
134
|
} // 显示图片列表
|
|
157
135
|
|
|
@@ -171,7 +149,7 @@ function (_super) {
|
|
|
171
149
|
|
|
172
150
|
var onClickItem = function onClickItem(node) {
|
|
173
151
|
_mobx.store.setState({
|
|
174
|
-
|
|
152
|
+
clickedSecondGroup: node.id
|
|
175
153
|
});
|
|
176
154
|
};
|
|
177
155
|
|
|
@@ -200,7 +178,8 @@ function (_super) {
|
|
|
200
178
|
onClickItem: onClickItem,
|
|
201
179
|
renderCard: renderCard,
|
|
202
180
|
reRender: reRender,
|
|
203
|
-
source: panelProps.images || []
|
|
181
|
+
source: panelProps.images || [],
|
|
182
|
+
parentId: panelProps.id
|
|
204
183
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
184
|
className: "btn_wrap"
|
|
206
185
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
@@ -221,15 +200,9 @@ function (_super) {
|
|
|
221
200
|
return _this;
|
|
222
201
|
}
|
|
223
202
|
|
|
224
|
-
GroupedImageSecondConfig.prototype.componentDidMount = function () {
|
|
225
|
-
var panelProps = this.props.panelProps;
|
|
226
|
-
this.migrateData(panelProps);
|
|
227
|
-
};
|
|
203
|
+
GroupedImageSecondConfig.prototype.componentDidMount = function () {};
|
|
228
204
|
|
|
229
|
-
GroupedImageSecondConfig.prototype.componentWillReceiveProps = function (nextProps) {
|
|
230
|
-
var panelProps = nextProps.panelProps;
|
|
231
|
-
this.migrateData(panelProps);
|
|
232
|
-
};
|
|
205
|
+
GroupedImageSecondConfig.prototype.componentWillReceiveProps = function (nextProps) {};
|
|
233
206
|
|
|
234
207
|
GroupedImageSecondConfig.prototype.render = function () {
|
|
235
208
|
var _this = this;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
11
|
+
|
|
12
|
+
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
17
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
18
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
19
|
+
__proto__: []
|
|
20
|
+
} instanceof Array && function (d, b) {
|
|
21
|
+
d.__proto__ = b;
|
|
22
|
+
} || function (d, b) {
|
|
23
|
+
for (var p in b) {
|
|
24
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return _extendStatics(d, b);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
return function (d, b) {
|
|
32
|
+
_extendStatics(d, b);
|
|
33
|
+
|
|
34
|
+
function __() {
|
|
35
|
+
this.constructor = d;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
39
|
+
};
|
|
40
|
+
}();
|
|
41
|
+
|
|
42
|
+
var GroupedImageThirdConfig =
|
|
43
|
+
/** @class */
|
|
44
|
+
function (_super) {
|
|
45
|
+
__extends(GroupedImageThirdConfig, _super);
|
|
46
|
+
|
|
47
|
+
function GroupedImageThirdConfig() {
|
|
48
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
GroupedImageThirdConfig.prototype.render = function () {
|
|
52
|
+
var panelProps = this.props.panelProps;
|
|
53
|
+
|
|
54
|
+
if (!panelProps) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
59
|
+
className: "grouped_image_third_conf_wrap"
|
|
60
|
+
}, /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
61
|
+
data: panelProps
|
|
62
|
+
}));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
GroupedImageThirdConfig.defaultProps = {
|
|
66
|
+
panelProps: {}
|
|
67
|
+
};
|
|
68
|
+
return GroupedImageThirdConfig;
|
|
69
|
+
}(_BaseConfig["default"]);
|
|
70
|
+
|
|
71
|
+
var _default = GroupedImageThirdConfig;
|
|
72
|
+
exports["default"] = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.secondConfigPanelMap = exports.configPanelMap = exports.componentMap = void 0;
|
|
6
|
+
exports.thirdConfigPanelMap = exports.secondConfigPanelMap = exports.configPanelMap = exports.componentMap = void 0;
|
|
7
7
|
|
|
8
8
|
var _Banner = _interopRequireDefault(require("../composite-comp/bol/components/Banner"));
|
|
9
9
|
|
|
@@ -197,9 +197,11 @@ var _NewsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/s
|
|
|
197
197
|
|
|
198
198
|
var _CampaignSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/CampaignSecondConfig"));
|
|
199
199
|
|
|
200
|
+
var _GroupedImageThirdConfig = _interopRequireDefault(require("../composite-comp/dito/third-config-panels/GroupedImageThirdConfig"));
|
|
201
|
+
|
|
200
202
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
201
203
|
|
|
202
|
-
var _a, _b, _c; // 组件
|
|
204
|
+
var _a, _b, _c, _d; // 组件
|
|
203
205
|
|
|
204
206
|
|
|
205
207
|
/**
|
|
@@ -218,4 +220,6 @@ var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["defa
|
|
|
218
220
|
|
|
219
221
|
exports.configPanelMap = configPanelMap;
|
|
220
222
|
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig2["default"], _c[_PersonalInformationSecond["default"].type] = _PersonalInformationSecondSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_SearchBanner["default"].type] = _SearchBannerSecondConfig["default"], _c[_GroupedCarousel["default"].type] = _GroupedCarouselSecondConfig["default"], _c[_GroupedImage["default"].type] = _GroupedImageSecondConfig["default"], _c[_SlideImage["default"].type] = _SlideImageSecondConfig["default"], _c[_SearchDITO["default"].type] = _SearchDITOSecondConfig["default"], _c[_News["default"].type] = _NewsSecondConfig["default"], _c[_Campaign["default"].type] = _CampaignSecondConfig["default"], _c);
|
|
221
|
-
exports.secondConfigPanelMap = secondConfigPanelMap;
|
|
223
|
+
exports.secondConfigPanelMap = secondConfigPanelMap;
|
|
224
|
+
var thirdConfigPanelMap = (_d = {}, _d[_GroupedImage["default"].type] = _GroupedImageThirdConfig["default"], _d);
|
|
225
|
+
exports.thirdConfigPanelMap = thirdConfigPanelMap;
|