@fonixtree/magic-design 0.0.69 → 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/assets/fonts/magic-box-iconfont.css +3 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +3 -3
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- 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/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/es/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -4
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +9 -15
- 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/composite-comp/dito/components/SearchBar/defaultJSON.js +20 -2
- package/es/composite-comp/dito/components/SearchBar/index.js +2 -1
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +3 -3
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +6 -6
- package/es/composite-comp/dito/components/SearchBar/pc/index.less +4 -2
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +1 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +3 -1
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +23 -7
- package/es/core/Designer/PageCompList/index.js +4 -2
- package/lib/assets/fonts/magic-box-iconfont.css +3 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -3
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- 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/bol/config-panels/NewsletterConfig/index.js +6 -4
- package/lib/composite-comp/dito/components/PcNavigation/defaultJSON.js +0 -4
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +9 -15
- 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/composite-comp/dito/components/SearchBar/defaultJSON.js +20 -2
- package/lib/composite-comp/dito/components/SearchBar/index.js +2 -1
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +3 -3
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +6 -6
- package/lib/composite-comp/dito/components/SearchBar/pc/index.less +4 -2
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js +1 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +23 -7
- package/lib/core/Designer/PageCompList/index.js +4 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1669616689172') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1669616689172') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1669616689172') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1669616689172') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1669616689172') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1669616689172') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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;
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _NewsletterContentSetting = _interopRequireDefault(require("./NewsletterContentSetting"));
|
|
11
11
|
|
|
12
|
+
var _locale = require("../../../../locale");
|
|
13
|
+
|
|
12
14
|
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
13
15
|
|
|
14
16
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
@@ -28,26 +30,26 @@ function NewsletterConfig(props) {
|
|
|
28
30
|
headerSize: "large",
|
|
29
31
|
source: [{
|
|
30
32
|
key: '1',
|
|
31
|
-
name: i18n('CONTENT'),
|
|
33
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
32
34
|
value: /*#__PURE__*/_react["default"].createElement(_NewsletterContentSetting["default"], {
|
|
33
35
|
panelProps: data.content
|
|
34
36
|
})
|
|
35
37
|
}, {
|
|
36
38
|
key: '2',
|
|
37
|
-
name: i18n('SPACING'),
|
|
39
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
38
40
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
39
41
|
data: data.spacing
|
|
40
42
|
})
|
|
41
43
|
}, {
|
|
42
44
|
key: '3',
|
|
43
|
-
name: i18n('CUSTOMIZE'),
|
|
45
|
+
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
44
46
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
45
47
|
data: data.customize,
|
|
46
48
|
layoutSource: _layout.newsletterLayout
|
|
47
49
|
})
|
|
48
50
|
}, {
|
|
49
51
|
key: '4',
|
|
50
|
-
name: i18n('BACKGROUND'),
|
|
52
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
51
53
|
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
52
54
|
data: data.background
|
|
53
55
|
})
|
|
@@ -75,7 +75,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
75
75
|
specialContent: [],
|
|
76
76
|
iconUrl: '',
|
|
77
77
|
content: {
|
|
78
|
-
backgroundColor: 'transparent',
|
|
79
78
|
sizeType: 'Customize font styles',
|
|
80
79
|
fontFamily: 'Open Sans',
|
|
81
80
|
fontWeight: 400,
|
|
@@ -89,7 +88,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
89
88
|
id: (0, _uuid.v4)(),
|
|
90
89
|
specialContent: [],
|
|
91
90
|
content: {
|
|
92
|
-
backgroundColor: 'transparent',
|
|
93
91
|
sizeType: 'Customize font styles',
|
|
94
92
|
fontFamily: 'Open Sans',
|
|
95
93
|
fontWeight: 400,
|
|
@@ -103,7 +101,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
103
101
|
id: (0, _uuid.v4)(),
|
|
104
102
|
specialContent: [],
|
|
105
103
|
content: {
|
|
106
|
-
backgroundColor: 'transparent',
|
|
107
104
|
sizeType: 'Customize font styles',
|
|
108
105
|
fontFamily: 'Open Sans',
|
|
109
106
|
fontWeight: 400,
|
|
@@ -117,7 +114,6 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
117
114
|
id: (0, _uuid.v4)(),
|
|
118
115
|
specialContent: [],
|
|
119
116
|
content: {
|
|
120
|
-
backgroundColor: 'transparent',
|
|
121
117
|
sizeType: 'Customize font styles',
|
|
122
118
|
fontFamily: 'Open Sans',
|
|
123
119
|
fontWeight: 400,
|
|
@@ -418,7 +418,12 @@ function (_super) {
|
|
|
418
418
|
|
|
419
419
|
_this.mouseLeaveBtn = function () {
|
|
420
420
|
var data = _this.props.data;
|
|
421
|
+
var categList = _this.state.categList;
|
|
421
422
|
document.querySelector('.all-category .m-meta-text').style.color = data.home.allCategory.content.color;
|
|
423
|
+
|
|
424
|
+
_this.setState({
|
|
425
|
+
list: [categList]
|
|
426
|
+
});
|
|
422
427
|
};
|
|
423
428
|
|
|
424
429
|
return _this;
|
|
@@ -434,32 +439,21 @@ function (_super) {
|
|
|
434
439
|
var data = this.props.data; // const { ready } = this.state;
|
|
435
440
|
|
|
436
441
|
console.log('----nav pc', data);
|
|
437
|
-
var
|
|
438
|
-
list = _a.list,
|
|
439
|
-
categList = _a.categList;
|
|
442
|
+
var list = this.state.list;
|
|
440
443
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
441
444
|
className: (0, _classnames["default"])('pc-navigation')
|
|
442
445
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
443
446
|
className: "menu-wrap",
|
|
444
|
-
onMouseLeave: function onMouseLeave() {
|
|
445
|
-
_this.setState({
|
|
446
|
-
list: [categList]
|
|
447
|
-
});
|
|
448
|
-
}
|
|
449
|
-
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
450
|
-
className: "menu-drop",
|
|
451
|
-
onClick: function onClick(e) {
|
|
452
|
-
return e.preventDefault();
|
|
453
|
-
},
|
|
454
447
|
onMouseEnter: this.mouseEnterBtn,
|
|
455
448
|
onMouseLeave: this.mouseLeaveBtn
|
|
449
|
+
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
450
|
+
className: "menu-drop"
|
|
456
451
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
457
452
|
alt: "icon",
|
|
458
453
|
src: data.home.allCategory.iconUrl || _menuIcon["default"]
|
|
459
454
|
}), /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
460
455
|
className: "all-category",
|
|
461
|
-
data: data.home.allCategory
|
|
462
|
-
readonly: true
|
|
456
|
+
data: data.home.allCategory
|
|
463
457
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
464
458
|
className: "category"
|
|
465
459
|
}, list.map(function (arrItem, index) {
|
|
@@ -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
|
}
|
|
@@ -39,12 +39,30 @@ var getDefaultJSON = function getDefaultJSON() {
|
|
|
39
39
|
box: {
|
|
40
40
|
id: (0, _uuid.v4)(),
|
|
41
41
|
open: true,
|
|
42
|
-
color:
|
|
42
|
+
color: {
|
|
43
|
+
pc: '#D92929',
|
|
44
|
+
mobile: '#D92929'
|
|
45
|
+
}
|
|
43
46
|
},
|
|
44
47
|
icon: {
|
|
45
48
|
id: (0, _uuid.v4)(),
|
|
46
49
|
open: true,
|
|
47
|
-
color:
|
|
50
|
+
color: {
|
|
51
|
+
pc: '#D92929',
|
|
52
|
+
mobile: '#D92929'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
spacing: {
|
|
56
|
+
pc: {
|
|
57
|
+
paddingTop: 20,
|
|
58
|
+
paddingBottom: 30,
|
|
59
|
+
marginBottom: 0
|
|
60
|
+
},
|
|
61
|
+
mobile: {
|
|
62
|
+
paddingTop: 8,
|
|
63
|
+
paddingBottom: 8,
|
|
64
|
+
marginBottom: 0
|
|
65
|
+
}
|
|
48
66
|
},
|
|
49
67
|
customize: {
|
|
50
68
|
layout: 'left',
|
|
@@ -71,7 +71,8 @@ function (_super) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
SearchBar.prototype.render = function () {
|
|
74
|
-
var nodeData = this.props.nodeData;
|
|
74
|
+
var nodeData = this.props.nodeData; // console.log('search nodeData', nodeData);
|
|
75
|
+
|
|
75
76
|
return /*#__PURE__*/_react["default"].createElement("div", null, (0, _coreUtil.isPc)() ? /*#__PURE__*/_react["default"].createElement(_index2["default"], {
|
|
76
77
|
data: nodeData
|
|
77
78
|
}) : /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
@@ -259,16 +259,16 @@ function (_super) {
|
|
|
259
259
|
return (0, _coreUtil.clickUrl)('/search-page');
|
|
260
260
|
},
|
|
261
261
|
style: {
|
|
262
|
-
borderColor: data.box.color
|
|
262
|
+
borderColor: data.box.color.mobile
|
|
263
263
|
}
|
|
264
264
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
265
|
-
color: data.box.color,
|
|
265
|
+
color: data.box.color.mobile,
|
|
266
266
|
size: 24,
|
|
267
267
|
type: "icon-search2"
|
|
268
268
|
})), data.icon.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
269
269
|
className: "message-wrap"
|
|
270
270
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
271
|
-
color: data.icon.color,
|
|
271
|
+
color: data.icon.color.mobile,
|
|
272
272
|
onClick: function onClick() {
|
|
273
273
|
return (0, _coreUtil.clickUrl)('/message-center');
|
|
274
274
|
},
|
|
@@ -98,7 +98,7 @@ function (_super) {
|
|
|
98
98
|
}, data.box.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
99
|
className: "search-input-wrap",
|
|
100
100
|
style: {
|
|
101
|
-
borderColor: data.box.color
|
|
101
|
+
borderColor: data.box.color.pc
|
|
102
102
|
}
|
|
103
103
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
104
104
|
className: "search-input",
|
|
@@ -112,7 +112,7 @@ function (_super) {
|
|
|
112
112
|
className: "search-icon",
|
|
113
113
|
onClick: this.searchProduct,
|
|
114
114
|
style: {
|
|
115
|
-
background: data.box.color
|
|
115
|
+
background: data.box.color.pc
|
|
116
116
|
}
|
|
117
117
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
118
118
|
color: "#fff",
|
|
@@ -124,11 +124,11 @@ function (_super) {
|
|
|
124
124
|
return (0, _coreUtil.clickUrl)('/cart');
|
|
125
125
|
},
|
|
126
126
|
style: {
|
|
127
|
-
borderColor: data.icon.color,
|
|
128
|
-
color: data.icon.color
|
|
127
|
+
borderColor: data.icon.color.pc,
|
|
128
|
+
color: data.icon.color.pc
|
|
129
129
|
}
|
|
130
130
|
}, /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
131
|
-
color: data.icon.color,
|
|
131
|
+
color: data.icon.color.pc,
|
|
132
132
|
size: 16,
|
|
133
133
|
type: "icon-ShoppingCartSimple"
|
|
134
134
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -136,7 +136,7 @@ function (_super) {
|
|
|
136
136
|
}, (0, _locale.i18n)('SHOPPING_CART')))), data.logo.open && /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
137
137
|
data: data.logo,
|
|
138
138
|
style: {
|
|
139
|
-
height:
|
|
139
|
+
height: 40
|
|
140
140
|
}
|
|
141
141
|
}));
|
|
142
142
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.pc-search-bar {
|
|
2
2
|
// height: 48px;
|
|
3
|
-
padding: 20px 100px 30px;
|
|
3
|
+
// padding: 20px 100px 30px;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row-reverse;
|
|
6
6
|
align-items: flex-start;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
.right {
|
|
11
11
|
display: flex;
|
|
12
|
+
flex: 1;
|
|
13
|
+
margin-left: 90px;
|
|
12
14
|
align-items: center;
|
|
13
15
|
justify-content: space-between;
|
|
14
16
|
|
|
@@ -17,7 +19,7 @@
|
|
|
17
19
|
border-radius: 6px;
|
|
18
20
|
height: 40px;
|
|
19
21
|
display: flex;
|
|
20
|
-
|
|
22
|
+
flex: 1;
|
|
21
23
|
.search-input {
|
|
22
24
|
border: none;
|
|
23
25
|
height: 38px;
|
package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavConfigCategory/index.js
CHANGED
|
@@ -73,7 +73,7 @@ function (_super) {
|
|
|
73
73
|
key: 'category1',
|
|
74
74
|
name: /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
75
|
onClick: function onClick() {
|
|
76
|
-
return
|
|
76
|
+
return window.open('/#/PageCategoryManagement');
|
|
77
77
|
}
|
|
78
78
|
}, (0, _locale.i18n)('ALL_CATEGORY'), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
79
79
|
color: "#2F54EB",
|
package/es/composite-comp/dito/config-panels/PcNavigationConfig/PcNavigationConfigGroup/index.js
CHANGED
|
@@ -19,6 +19,8 @@ var _defaultJSON = require("../../../components/PcNavigation/defaultJSON");
|
|
|
19
19
|
|
|
20
20
|
var _locale = require("../../../../../locale");
|
|
21
21
|
|
|
22
|
+
var _decorator = require("../../../../../decorator");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -118,7 +120,7 @@ function (_super) {
|
|
|
118
120
|
PcNavigationConfigGroup.defaultProps = {
|
|
119
121
|
source: []
|
|
120
122
|
};
|
|
121
|
-
PcNavigationConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer], PcNavigationConfigGroup);
|
|
123
|
+
PcNavigationConfigGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], PcNavigationConfigGroup);
|
|
122
124
|
return PcNavigationConfigGroup;
|
|
123
125
|
}(_react["default"].Component);
|
|
124
126
|
|