@fonixtree/magic-design 0.0.70 → 0.0.71
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/ImageModal/index.js +2 -2
- package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/es/common/LinkModal/FilteredProductModal/index.less +6 -2
- package/es/common/ProductModal/index.js +1 -1
- package/es/common/ProductModal/index.less +12 -7
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +1 -0
- package/es/composite-comp/bol/components/Carousel/pc/index.js +11 -6
- package/es/composite-comp/bol/components/Carousel/pc/index.less +13 -5
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +1 -2
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +4 -4
- package/es/composite-comp/dito/components/Recommend/pc/index.js +1 -2
- package/es/composite-comp/dito/components/Recommend/pc/index.less +4 -4
- package/es/core/Designer/PageCompList/index.js +4 -2
- package/lib/common/ImageModal/index.js +2 -2
- package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/lib/common/LinkModal/FilteredProductModal/index.less +6 -2
- package/lib/common/ProductModal/index.js +1 -1
- package/lib/common/ProductModal/index.less +12 -7
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +1 -0
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +11 -6
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +13 -5
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +1 -2
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +4 -4
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +1 -2
- package/lib/composite-comp/dito/components/Recommend/pc/index.less +4 -4
- package/lib/core/Designer/PageCompList/index.js +4 -2
- package/package.json +1 -1
|
@@ -723,7 +723,7 @@ function ImageModal(_a) {
|
|
|
723
723
|
className: "catg_img"
|
|
724
724
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Card, {
|
|
725
725
|
bodyStyle: {
|
|
726
|
-
height:
|
|
726
|
+
height: 410,
|
|
727
727
|
overflowX: 'auto'
|
|
728
728
|
}
|
|
729
729
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Spin, {
|
|
@@ -744,7 +744,7 @@ function ImageModal(_a) {
|
|
|
744
744
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
745
745
|
style: {
|
|
746
746
|
"float": 'right',
|
|
747
|
-
|
|
747
|
+
marginTop: '16px'
|
|
748
748
|
}
|
|
749
749
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Pagination, _extends({
|
|
750
750
|
size: "small"
|
|
@@ -513,13 +513,13 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
513
513
|
queryStore();
|
|
514
514
|
}, []);
|
|
515
515
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
516
|
-
className: "
|
|
516
|
+
className: "mFilteredProductModal"
|
|
517
517
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
518
518
|
className: "proModalWrap"
|
|
519
519
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
520
520
|
className: "info"
|
|
521
521
|
}, (0, _locale.i18n)('THE_PRODUCT_QUANTITY_WILL_BE_AUTOMATICALLY_UPDATED_WITH_THE_ITEMS_THAT_MEET_THE_CATEGORY_CONDITIONS')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
522
|
-
className: "
|
|
522
|
+
className: "mFilteredProductModalContent"
|
|
523
523
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
524
524
|
className: "leftCot"
|
|
525
525
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.mFilteredProductModal {
|
|
2
2
|
.proModalWrap {
|
|
3
3
|
.info {
|
|
4
4
|
background: #ecf1fd;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
padding: 5px 0 5px 16px;
|
|
8
8
|
margin-bottom: 8px;
|
|
9
9
|
}
|
|
10
|
+
|
|
10
11
|
.prodImage {
|
|
11
12
|
width: 36px;
|
|
12
13
|
height: 36px;
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
background-size: contain;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
.
|
|
19
|
+
.mFilteredProductModalContent {
|
|
19
20
|
display: flex;
|
|
20
21
|
|
|
21
22
|
.rightCot {
|
|
@@ -87,6 +88,7 @@
|
|
|
87
88
|
box-sizing: border-box;
|
|
88
89
|
border-right: 1px solid #e0e0e0;
|
|
89
90
|
padding-right: 15px;
|
|
91
|
+
|
|
90
92
|
.price {
|
|
91
93
|
display: flex;
|
|
92
94
|
width: calc(100% - 16px);
|
|
@@ -100,9 +102,11 @@
|
|
|
100
102
|
border-radius: 2px;
|
|
101
103
|
}
|
|
102
104
|
}
|
|
105
|
+
|
|
103
106
|
.ant-form-item {
|
|
104
107
|
margin-bottom: 4px;
|
|
105
108
|
}
|
|
109
|
+
|
|
106
110
|
.buttonStyle {
|
|
107
111
|
margin-top: 10px;
|
|
108
112
|
text-align: right;
|
|
@@ -11,13 +11,15 @@
|
|
|
11
11
|
.content {
|
|
12
12
|
display: flex;
|
|
13
13
|
margin-bottom: 8px;
|
|
14
|
+
|
|
14
15
|
.rightCot {
|
|
15
16
|
width: calc(100% - 260px);
|
|
16
17
|
margin-left: 16px;
|
|
17
18
|
display: flex;
|
|
18
19
|
flex-direction: column;
|
|
19
20
|
justify-content: space-between;
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
.prodImg {
|
|
21
23
|
display: inline-block;
|
|
22
24
|
width: 36px;
|
|
23
25
|
height: 36px;
|
|
@@ -25,16 +27,18 @@
|
|
|
25
27
|
background-position: 50% 50%;
|
|
26
28
|
background-repeat: no-repeat;
|
|
27
29
|
}
|
|
30
|
+
|
|
28
31
|
.selectedCot {
|
|
32
|
+
padding-right: 18px;
|
|
29
33
|
margin-left: 4px;
|
|
30
|
-
height:
|
|
34
|
+
height: 78px;
|
|
31
35
|
background: #f8f8f8;
|
|
32
36
|
border: 1px solid #e0e0e0;
|
|
33
37
|
border-radius: 2px;
|
|
34
38
|
display: flex;
|
|
35
39
|
flex-direction: row;
|
|
36
|
-
flex-wrap: wrap;
|
|
37
|
-
overflow-
|
|
40
|
+
// flex-wrap: wrap;
|
|
41
|
+
overflow-x: auto;
|
|
38
42
|
|
|
39
43
|
.selectedItem {
|
|
40
44
|
box-sizing: border-box;
|
|
@@ -71,9 +75,9 @@
|
|
|
71
75
|
cursor: pointer;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
|
-
&:nth-child(n + 11) {
|
|
75
|
-
|
|
76
|
-
}
|
|
78
|
+
// &:nth-child(n + 11) {
|
|
79
|
+
// margin-top: 5px !important;
|
|
80
|
+
// }
|
|
77
81
|
|
|
78
82
|
.selectedItemImg {
|
|
79
83
|
height: 52px;
|
|
@@ -94,6 +98,7 @@
|
|
|
94
98
|
padding-right: 14px;
|
|
95
99
|
box-sizing: border-box;
|
|
96
100
|
border-right: 1px solid #e0e0e0;
|
|
101
|
+
|
|
97
102
|
.divider {
|
|
98
103
|
width: 10%;
|
|
99
104
|
display: inline-block;
|
|
@@ -177,6 +177,7 @@ function (_super) {
|
|
|
177
177
|
autoplay: data.setting.autoplay.open,
|
|
178
178
|
autoplaySpeed: data.setting.autoplay.interval * 1000,
|
|
179
179
|
speed: 500,
|
|
180
|
+
draggable: window.magicDesign.mode === 'renderer',
|
|
180
181
|
slidesToShow: colNum,
|
|
181
182
|
slidesToScroll: 1,
|
|
182
183
|
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
@@ -153,8 +153,6 @@ function (_super) {
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
var spacing = data.spacing[window.magicDesign.device];
|
|
157
|
-
if (spacing.contentWidth) bgStyle.width = spacing.contentWidth;
|
|
158
156
|
var settings = {
|
|
159
157
|
className: 'slider-wrap',
|
|
160
158
|
arrows: false,
|
|
@@ -162,6 +160,7 @@ function (_super) {
|
|
|
162
160
|
autoplay: data.setting.autoplay.open,
|
|
163
161
|
autoplaySpeed: data.setting.autoplay.interval * 1000,
|
|
164
162
|
speed: 500,
|
|
163
|
+
draggable: window.magicDesign.mode === 'renderer',
|
|
165
164
|
slidesToShow: colNum,
|
|
166
165
|
slidesToScroll: 1,
|
|
167
166
|
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
@@ -174,9 +173,12 @@ function (_super) {
|
|
|
174
173
|
fontSize: data.setting.navigation.size,
|
|
175
174
|
color: data.setting.navigation.color
|
|
176
175
|
};
|
|
176
|
+
var spacing = data.spacing[window.magicDesign.device];
|
|
177
177
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
178
178
|
className: "m-carousel-pc",
|
|
179
179
|
style: bgStyle
|
|
180
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
181
|
+
className: "content"
|
|
180
182
|
}, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
181
183
|
className: "carousel-icon-left",
|
|
182
184
|
onClick: function onClick() {
|
|
@@ -186,7 +188,11 @@ function (_super) {
|
|
|
186
188
|
onMouseLeave: this.mouseLeaveBtn,
|
|
187
189
|
style: navStyle,
|
|
188
190
|
type: "icon-left"
|
|
189
|
-
}), /*#__PURE__*/_react["default"].createElement(
|
|
191
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
192
|
+
style: {
|
|
193
|
+
width: spacing.contentWidth || 'calc(100% - 52px)'
|
|
194
|
+
}
|
|
195
|
+
}, /*#__PURE__*/_react["default"].createElement(_reactSlick["default"], _extends({
|
|
190
196
|
ref: function ref(slider) {
|
|
191
197
|
return _this.sliderRef = slider;
|
|
192
198
|
}
|
|
@@ -198,7 +204,6 @@ function (_super) {
|
|
|
198
204
|
className: "img"
|
|
199
205
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
200
206
|
data: item.image,
|
|
201
|
-
isBackground: true,
|
|
202
207
|
maxHeight: PC_IMG_SIZE[colNum - 1].maxH,
|
|
203
208
|
maxWidth: PC_IMG_SIZE[colNum - 1].maxW,
|
|
204
209
|
minWidth: PC_IMG_SIZE[colNum - 1].minW
|
|
@@ -220,7 +225,7 @@ function (_super) {
|
|
|
220
225
|
}), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
221
226
|
data: item.secondButtonTag
|
|
222
227
|
}))));
|
|
223
|
-
})), data.setting.dots.open && Math.ceil(data.groupSource.length / colNum) > 1 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
228
|
+
}))), data.setting.dots.open && Math.ceil(data.groupSource.length / colNum) > 1 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
224
229
|
className: "swiper-ban"
|
|
225
230
|
}, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
|
|
226
231
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -245,7 +250,7 @@ function (_super) {
|
|
|
245
250
|
onMouseLeave: this.mouseLeaveBtn,
|
|
246
251
|
style: navStyle,
|
|
247
252
|
type: "icon-right"
|
|
248
|
-
}));
|
|
253
|
+
})));
|
|
249
254
|
};
|
|
250
255
|
|
|
251
256
|
CarouselPc.defaultProps = {
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
.m-carousel-pc {
|
|
2
|
-
display: flex;
|
|
3
2
|
position: relative;
|
|
4
|
-
|
|
3
|
+
overflow-x: auto;
|
|
4
|
+
width: 100%;
|
|
5
|
+
|
|
6
|
+
.content {
|
|
7
|
+
display: flex;
|
|
8
|
+
width: fit-content;
|
|
9
|
+
margin: 0 auto;
|
|
10
|
+
}
|
|
5
11
|
|
|
6
12
|
.carousel-icon-left {
|
|
7
13
|
float: left;
|
|
8
|
-
margin-left:
|
|
14
|
+
margin-left: 10px;
|
|
9
15
|
}
|
|
10
16
|
|
|
11
17
|
.carousel-icon-right {
|
|
12
18
|
float: right;
|
|
13
|
-
margin-right:
|
|
19
|
+
margin-right: 10px;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
.slider-wrap {
|
|
17
|
-
width:
|
|
23
|
+
width: 100%;
|
|
18
24
|
padding: 30px 0;
|
|
19
25
|
margin: 0 auto;
|
|
20
26
|
|
|
@@ -65,6 +71,8 @@
|
|
|
65
71
|
position: absolute;
|
|
66
72
|
width: 100%;
|
|
67
73
|
bottom: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
right: 0;
|
|
68
76
|
display: flex;
|
|
69
77
|
align-items: center;
|
|
70
78
|
justify-content: center;
|
|
@@ -464,8 +464,7 @@ function (_super) {
|
|
|
464
464
|
|
|
465
465
|
_this.onTabClick = function (e, index) {
|
|
466
466
|
var tabIndex = _this.state.tabIndex;
|
|
467
|
-
if (tabIndex === index) return;
|
|
468
|
-
e.currentTarget.scrollIntoView(false);
|
|
467
|
+
if (tabIndex === index) return; // e.currentTarget.scrollIntoView(false);
|
|
469
468
|
|
|
470
469
|
_this.setState({
|
|
471
470
|
tabIndex: index
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
overflow-x: auto;
|
|
64
64
|
padding-bottom: 15px;
|
|
65
65
|
|
|
66
|
+
&.pl_100 {
|
|
67
|
+
padding-left: 100px;
|
|
68
|
+
}
|
|
69
|
+
|
|
66
70
|
.productList {
|
|
67
71
|
display: flex;
|
|
68
72
|
flex-direction: row;
|
|
69
73
|
align-items: flex-start;
|
|
70
74
|
|
|
71
|
-
&.pl_100 {
|
|
72
|
-
padding-left: 100px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
75
|
.productCard {
|
|
76
76
|
margin-right: 12px;
|
|
77
77
|
}
|
|
@@ -475,8 +475,7 @@ function (_super) {
|
|
|
475
475
|
|
|
476
476
|
_this.onTabClick = function (e, index) {
|
|
477
477
|
var tabIndex = _this.state.tabIndex;
|
|
478
|
-
if (tabIndex === index) return;
|
|
479
|
-
e.currentTarget.scrollIntoView(false);
|
|
478
|
+
if (tabIndex === index) return; // e.currentTarget.scrollIntoView(false);
|
|
480
479
|
|
|
481
480
|
_this.setState({
|
|
482
481
|
tabIndex: index
|
|
@@ -94,15 +94,15 @@
|
|
|
94
94
|
overflow-x: auto;
|
|
95
95
|
padding-bottom: 15px;
|
|
96
96
|
|
|
97
|
+
&.pl_100 {
|
|
98
|
+
padding-left: 100px;
|
|
99
|
+
}
|
|
100
|
+
|
|
97
101
|
.productList {
|
|
98
102
|
display: flex;
|
|
99
103
|
flex-direction: row;
|
|
100
104
|
align-items: flex-start;
|
|
101
105
|
|
|
102
|
-
&.pl_100 {
|
|
103
|
-
padding-left: 100px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
106
|
.productCard {
|
|
107
107
|
margin-right: 20px;
|
|
108
108
|
}
|
|
@@ -121,9 +121,11 @@ function PageCompList(_a) {
|
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
var onMenuClick = function onMenuClick(
|
|
124
|
+
var onMenuClick = function onMenuClick(activeComp, operType) {
|
|
125
125
|
var newComponents = __spreadArrays(components);
|
|
126
126
|
|
|
127
|
+
var index = newComponents.indexOf(activeComp);
|
|
128
|
+
|
|
127
129
|
if (operType === operTypeMap.MOVE_UP) {
|
|
128
130
|
var temp = newComponents[index - 1];
|
|
129
131
|
newComponents[index - 1] = newComponents[index];
|
|
@@ -178,7 +180,7 @@ function PageCompList(_a) {
|
|
|
178
180
|
var menu = /*#__PURE__*/_react["default"].createElement(_antd.Menu, {
|
|
179
181
|
onClick: function onClick(_a) {
|
|
180
182
|
var item = _a.item;
|
|
181
|
-
return onMenuClick(
|
|
183
|
+
return onMenuClick(comp, item.props.value);
|
|
182
184
|
}
|
|
183
185
|
}, index !== 0 && /*#__PURE__*/_react["default"].createElement(_antd.Menu.Item, {
|
|
184
186
|
className: "menu_item",
|
|
@@ -723,7 +723,7 @@ function ImageModal(_a) {
|
|
|
723
723
|
className: "catg_img"
|
|
724
724
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Card, {
|
|
725
725
|
bodyStyle: {
|
|
726
|
-
height:
|
|
726
|
+
height: 410,
|
|
727
727
|
overflowX: 'auto'
|
|
728
728
|
}
|
|
729
729
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Spin, {
|
|
@@ -744,7 +744,7 @@ function ImageModal(_a) {
|
|
|
744
744
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
745
745
|
style: {
|
|
746
746
|
"float": 'right',
|
|
747
|
-
|
|
747
|
+
marginTop: '16px'
|
|
748
748
|
}
|
|
749
749
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Pagination, _extends({
|
|
750
750
|
size: "small"
|
|
@@ -513,13 +513,13 @@ var FilteredProductModal = function FilteredProductModal(props) {
|
|
|
513
513
|
queryStore();
|
|
514
514
|
}, []);
|
|
515
515
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
516
|
-
className: "
|
|
516
|
+
className: "mFilteredProductModal"
|
|
517
517
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
518
518
|
className: "proModalWrap"
|
|
519
519
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
520
520
|
className: "info"
|
|
521
521
|
}, (0, _locale.i18n)('THE_PRODUCT_QUANTITY_WILL_BE_AUTOMATICALLY_UPDATED_WITH_THE_ITEMS_THAT_MEET_THE_CATEGORY_CONDITIONS')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
522
|
-
className: "
|
|
522
|
+
className: "mFilteredProductModalContent"
|
|
523
523
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
524
524
|
className: "leftCot"
|
|
525
525
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Form, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.mFilteredProductModal {
|
|
2
2
|
.proModalWrap {
|
|
3
3
|
.info {
|
|
4
4
|
background: #ecf1fd;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
padding: 5px 0 5px 16px;
|
|
8
8
|
margin-bottom: 8px;
|
|
9
9
|
}
|
|
10
|
+
|
|
10
11
|
.prodImage {
|
|
11
12
|
width: 36px;
|
|
12
13
|
height: 36px;
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
background-size: contain;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
.
|
|
19
|
+
.mFilteredProductModalContent {
|
|
19
20
|
display: flex;
|
|
20
21
|
|
|
21
22
|
.rightCot {
|
|
@@ -87,6 +88,7 @@
|
|
|
87
88
|
box-sizing: border-box;
|
|
88
89
|
border-right: 1px solid #e0e0e0;
|
|
89
90
|
padding-right: 15px;
|
|
91
|
+
|
|
90
92
|
.price {
|
|
91
93
|
display: flex;
|
|
92
94
|
width: calc(100% - 16px);
|
|
@@ -100,9 +102,11 @@
|
|
|
100
102
|
border-radius: 2px;
|
|
101
103
|
}
|
|
102
104
|
}
|
|
105
|
+
|
|
103
106
|
.ant-form-item {
|
|
104
107
|
margin-bottom: 4px;
|
|
105
108
|
}
|
|
109
|
+
|
|
106
110
|
.buttonStyle {
|
|
107
111
|
margin-top: 10px;
|
|
108
112
|
text-align: right;
|
|
@@ -11,13 +11,15 @@
|
|
|
11
11
|
.content {
|
|
12
12
|
display: flex;
|
|
13
13
|
margin-bottom: 8px;
|
|
14
|
+
|
|
14
15
|
.rightCot {
|
|
15
16
|
width: calc(100% - 260px);
|
|
16
17
|
margin-left: 16px;
|
|
17
18
|
display: flex;
|
|
18
19
|
flex-direction: column;
|
|
19
20
|
justify-content: space-between;
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
.prodImg {
|
|
21
23
|
display: inline-block;
|
|
22
24
|
width: 36px;
|
|
23
25
|
height: 36px;
|
|
@@ -25,16 +27,18 @@
|
|
|
25
27
|
background-position: 50% 50%;
|
|
26
28
|
background-repeat: no-repeat;
|
|
27
29
|
}
|
|
30
|
+
|
|
28
31
|
.selectedCot {
|
|
32
|
+
padding-right: 18px;
|
|
29
33
|
margin-left: 4px;
|
|
30
|
-
height:
|
|
34
|
+
height: 78px;
|
|
31
35
|
background: #f8f8f8;
|
|
32
36
|
border: 1px solid #e0e0e0;
|
|
33
37
|
border-radius: 2px;
|
|
34
38
|
display: flex;
|
|
35
39
|
flex-direction: row;
|
|
36
|
-
flex-wrap: wrap;
|
|
37
|
-
overflow-
|
|
40
|
+
// flex-wrap: wrap;
|
|
41
|
+
overflow-x: auto;
|
|
38
42
|
|
|
39
43
|
.selectedItem {
|
|
40
44
|
box-sizing: border-box;
|
|
@@ -71,9 +75,9 @@
|
|
|
71
75
|
cursor: pointer;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
|
-
&:nth-child(n + 11) {
|
|
75
|
-
|
|
76
|
-
}
|
|
78
|
+
// &:nth-child(n + 11) {
|
|
79
|
+
// margin-top: 5px !important;
|
|
80
|
+
// }
|
|
77
81
|
|
|
78
82
|
.selectedItemImg {
|
|
79
83
|
height: 52px;
|
|
@@ -94,6 +98,7 @@
|
|
|
94
98
|
padding-right: 14px;
|
|
95
99
|
box-sizing: border-box;
|
|
96
100
|
border-right: 1px solid #e0e0e0;
|
|
101
|
+
|
|
97
102
|
.divider {
|
|
98
103
|
width: 10%;
|
|
99
104
|
display: inline-block;
|
|
@@ -177,6 +177,7 @@ function (_super) {
|
|
|
177
177
|
autoplay: data.setting.autoplay.open,
|
|
178
178
|
autoplaySpeed: data.setting.autoplay.interval * 1000,
|
|
179
179
|
speed: 500,
|
|
180
|
+
draggable: window.magicDesign.mode === 'renderer',
|
|
180
181
|
slidesToShow: colNum,
|
|
181
182
|
slidesToScroll: 1,
|
|
182
183
|
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
@@ -153,8 +153,6 @@ function (_super) {
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
var spacing = data.spacing[window.magicDesign.device];
|
|
157
|
-
if (spacing.contentWidth) bgStyle.width = spacing.contentWidth;
|
|
158
156
|
var settings = {
|
|
159
157
|
className: 'slider-wrap',
|
|
160
158
|
arrows: false,
|
|
@@ -162,6 +160,7 @@ function (_super) {
|
|
|
162
160
|
autoplay: data.setting.autoplay.open,
|
|
163
161
|
autoplaySpeed: data.setting.autoplay.interval * 1000,
|
|
164
162
|
speed: 500,
|
|
163
|
+
draggable: window.magicDesign.mode === 'renderer',
|
|
165
164
|
slidesToShow: colNum,
|
|
166
165
|
slidesToScroll: 1,
|
|
167
166
|
beforeChange: function beforeChange(oldIndex, newIndex) {
|
|
@@ -174,9 +173,12 @@ function (_super) {
|
|
|
174
173
|
fontSize: data.setting.navigation.size,
|
|
175
174
|
color: data.setting.navigation.color
|
|
176
175
|
};
|
|
176
|
+
var spacing = data.spacing[window.magicDesign.device];
|
|
177
177
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
178
178
|
className: "m-carousel-pc",
|
|
179
179
|
style: bgStyle
|
|
180
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
181
|
+
className: "content"
|
|
180
182
|
}, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
181
183
|
className: "carousel-icon-left",
|
|
182
184
|
onClick: function onClick() {
|
|
@@ -186,7 +188,11 @@ function (_super) {
|
|
|
186
188
|
onMouseLeave: this.mouseLeaveBtn,
|
|
187
189
|
style: navStyle,
|
|
188
190
|
type: "icon-left"
|
|
189
|
-
}), /*#__PURE__*/_react["default"].createElement(
|
|
191
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
192
|
+
style: {
|
|
193
|
+
width: spacing.contentWidth || 'calc(100% - 52px)'
|
|
194
|
+
}
|
|
195
|
+
}, /*#__PURE__*/_react["default"].createElement(_reactSlick["default"], _extends({
|
|
190
196
|
ref: function ref(slider) {
|
|
191
197
|
return _this.sliderRef = slider;
|
|
192
198
|
}
|
|
@@ -198,7 +204,6 @@ function (_super) {
|
|
|
198
204
|
className: "img"
|
|
199
205
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
200
206
|
data: item.image,
|
|
201
|
-
isBackground: true,
|
|
202
207
|
maxHeight: PC_IMG_SIZE[colNum - 1].maxH,
|
|
203
208
|
maxWidth: PC_IMG_SIZE[colNum - 1].maxW,
|
|
204
209
|
minWidth: PC_IMG_SIZE[colNum - 1].minW
|
|
@@ -220,7 +225,7 @@ function (_super) {
|
|
|
220
225
|
}), item.secondButtonTag.open && /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
221
226
|
data: item.secondButtonTag
|
|
222
227
|
}))));
|
|
223
|
-
})), data.setting.dots.open && Math.ceil(data.groupSource.length / colNum) > 1 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
228
|
+
}))), data.setting.dots.open && Math.ceil(data.groupSource.length / colNum) > 1 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
224
229
|
className: "swiper-ban"
|
|
225
230
|
}, data.groupSource.length > 1 && data.groupSource.map(function (item, i) {
|
|
226
231
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -245,7 +250,7 @@ function (_super) {
|
|
|
245
250
|
onMouseLeave: this.mouseLeaveBtn,
|
|
246
251
|
style: navStyle,
|
|
247
252
|
type: "icon-right"
|
|
248
|
-
}));
|
|
253
|
+
})));
|
|
249
254
|
};
|
|
250
255
|
|
|
251
256
|
CarouselPc.defaultProps = {
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
.m-carousel-pc {
|
|
2
|
-
display: flex;
|
|
3
2
|
position: relative;
|
|
4
|
-
|
|
3
|
+
overflow-x: auto;
|
|
4
|
+
width: 100%;
|
|
5
|
+
|
|
6
|
+
.content {
|
|
7
|
+
display: flex;
|
|
8
|
+
width: fit-content;
|
|
9
|
+
margin: 0 auto;
|
|
10
|
+
}
|
|
5
11
|
|
|
6
12
|
.carousel-icon-left {
|
|
7
13
|
float: left;
|
|
8
|
-
margin-left:
|
|
14
|
+
margin-left: 10px;
|
|
9
15
|
}
|
|
10
16
|
|
|
11
17
|
.carousel-icon-right {
|
|
12
18
|
float: right;
|
|
13
|
-
margin-right:
|
|
19
|
+
margin-right: 10px;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
.slider-wrap {
|
|
17
|
-
width:
|
|
23
|
+
width: 100%;
|
|
18
24
|
padding: 30px 0;
|
|
19
25
|
margin: 0 auto;
|
|
20
26
|
|
|
@@ -65,6 +71,8 @@
|
|
|
65
71
|
position: absolute;
|
|
66
72
|
width: 100%;
|
|
67
73
|
bottom: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
right: 0;
|
|
68
76
|
display: flex;
|
|
69
77
|
align-items: center;
|
|
70
78
|
justify-content: center;
|
|
@@ -464,8 +464,7 @@ function (_super) {
|
|
|
464
464
|
|
|
465
465
|
_this.onTabClick = function (e, index) {
|
|
466
466
|
var tabIndex = _this.state.tabIndex;
|
|
467
|
-
if (tabIndex === index) return;
|
|
468
|
-
e.currentTarget.scrollIntoView(false);
|
|
467
|
+
if (tabIndex === index) return; // e.currentTarget.scrollIntoView(false);
|
|
469
468
|
|
|
470
469
|
_this.setState({
|
|
471
470
|
tabIndex: index
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
overflow-x: auto;
|
|
64
64
|
padding-bottom: 15px;
|
|
65
65
|
|
|
66
|
+
&.pl_100 {
|
|
67
|
+
padding-left: 100px;
|
|
68
|
+
}
|
|
69
|
+
|
|
66
70
|
.productList {
|
|
67
71
|
display: flex;
|
|
68
72
|
flex-direction: row;
|
|
69
73
|
align-items: flex-start;
|
|
70
74
|
|
|
71
|
-
&.pl_100 {
|
|
72
|
-
padding-left: 100px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
75
|
.productCard {
|
|
76
76
|
margin-right: 12px;
|
|
77
77
|
}
|
|
@@ -475,8 +475,7 @@ function (_super) {
|
|
|
475
475
|
|
|
476
476
|
_this.onTabClick = function (e, index) {
|
|
477
477
|
var tabIndex = _this.state.tabIndex;
|
|
478
|
-
if (tabIndex === index) return;
|
|
479
|
-
e.currentTarget.scrollIntoView(false);
|
|
478
|
+
if (tabIndex === index) return; // e.currentTarget.scrollIntoView(false);
|
|
480
479
|
|
|
481
480
|
_this.setState({
|
|
482
481
|
tabIndex: index
|
|
@@ -94,15 +94,15 @@
|
|
|
94
94
|
overflow-x: auto;
|
|
95
95
|
padding-bottom: 15px;
|
|
96
96
|
|
|
97
|
+
&.pl_100 {
|
|
98
|
+
padding-left: 100px;
|
|
99
|
+
}
|
|
100
|
+
|
|
97
101
|
.productList {
|
|
98
102
|
display: flex;
|
|
99
103
|
flex-direction: row;
|
|
100
104
|
align-items: flex-start;
|
|
101
105
|
|
|
102
|
-
&.pl_100 {
|
|
103
|
-
padding-left: 100px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
106
|
.productCard {
|
|
107
107
|
margin-right: 20px;
|
|
108
108
|
}
|
|
@@ -121,9 +121,11 @@ function PageCompList(_a) {
|
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
var onMenuClick = function onMenuClick(
|
|
124
|
+
var onMenuClick = function onMenuClick(activeComp, operType) {
|
|
125
125
|
var newComponents = __spreadArrays(components);
|
|
126
126
|
|
|
127
|
+
var index = newComponents.indexOf(activeComp);
|
|
128
|
+
|
|
127
129
|
if (operType === operTypeMap.MOVE_UP) {
|
|
128
130
|
var temp = newComponents[index - 1];
|
|
129
131
|
newComponents[index - 1] = newComponents[index];
|
|
@@ -178,7 +180,7 @@ function PageCompList(_a) {
|
|
|
178
180
|
var menu = /*#__PURE__*/_react["default"].createElement(_antd.Menu, {
|
|
179
181
|
onClick: function onClick(_a) {
|
|
180
182
|
var item = _a.item;
|
|
181
|
-
return onMenuClick(
|
|
183
|
+
return onMenuClick(comp, item.props.value);
|
|
182
184
|
}
|
|
183
185
|
}, index !== 0 && /*#__PURE__*/_react["default"].createElement(_antd.Menu.Item, {
|
|
184
186
|
className: "menu_item",
|