@fonixtree/magic-design 0.1.57 → 1.0.2
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/less/cylon-antd.less +17659 -23296
- package/es/assets/less/modal.less +1 -0
- package/es/common/ImageModal/index.js +2 -35
- package/es/common/ImagePicker/index.js +134 -64
- package/es/common/ImagePicker/index.less +103 -2
- package/es/common/LinkModal/SelectVideoModal/index.js +0 -2
- package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -23
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -38
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +50 -41
- package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/es/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
- package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -2
- package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -1
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/es/composite-comp/dito/components/PcNavigation/index.js +0 -1
- package/es/composite-comp/dito/components/PcNavigation/pc/index.js +1 -3
- package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +0 -1
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +0 -2
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +80 -76
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -1
- package/es/core/Renderer/index.js +1 -1
- package/es/locale/en/en.json +3 -0
- package/es/locale/es/es.json +3 -0
- package/es/locale/id/id.json +3 -0
- package/es/meta-comp/config-panels/TextConfig/index.js +3 -3
- package/es/utils/commonUtil.js +31 -37
- package/lib/assets/less/cylon-antd.less +17659 -23296
- package/lib/assets/less/modal.less +1 -0
- package/lib/common/ImageModal/index.js +2 -35
- package/lib/common/ImagePicker/index.js +134 -64
- package/lib/common/ImagePicker/index.less +103 -2
- package/lib/common/LinkModal/SelectVideoModal/index.js +0 -2
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
- package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -23
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -38
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +50 -41
- package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
- package/lib/composite-comp/bol/components/Wallet/mobile/index.js +1 -1
- package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +0 -2
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +0 -1
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +0 -1
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
- package/lib/composite-comp/dito/components/PcNavigation/index.js +0 -1
- package/lib/composite-comp/dito/components/PcNavigation/pc/index.js +1 -3
- package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +0 -1
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +0 -2
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +80 -76
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +0 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/index.js +0 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +0 -1
- package/lib/core/Renderer/index.js +1 -1
- package/lib/locale/en/en.json +3 -0
- package/lib/locale/es/es.json +3 -0
- package/lib/locale/id/id.json +3 -0
- package/lib/meta-comp/config-panels/TextConfig/index.js +3 -3
- package/lib/utils/commonUtil.js +31 -37
- package/package.json +2 -2
|
@@ -1,51 +1,58 @@
|
|
|
1
1
|
.m-search-bar {
|
|
2
|
-
height:
|
|
3
|
-
padding:
|
|
2
|
+
height: 48px;
|
|
3
|
+
padding: 8px 0;
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row-reverse;
|
|
6
6
|
align-items: center;
|
|
7
7
|
justify-content: space-between;
|
|
8
8
|
width: 100%;
|
|
9
|
-
|
|
10
|
-
.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
9
|
+
|
|
10
|
+
.right {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex: 1;
|
|
13
|
+
margin-left: 15px;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
|
|
17
|
+
.search-input-wrap {
|
|
18
|
+
flex: 1;
|
|
19
|
+
background: #fff;
|
|
20
|
+
border-radius: 4px;
|
|
21
|
+
border: 1px solid #D2D9E5;
|
|
22
|
+
padding: 4px 12px;
|
|
23
|
+
height: 32px;
|
|
24
|
+
text-align: right;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.message-wrap {
|
|
30
|
+
position: relative;
|
|
31
|
+
margin-left: 10px;
|
|
32
|
+
|
|
33
|
+
.num {
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: -6px;
|
|
36
|
+
right: -6px;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
padding: 1px 2px;
|
|
39
|
+
min-width: 17px;
|
|
40
|
+
text-align: center;
|
|
41
|
+
background-color: #CE1126;
|
|
42
|
+
border: 1px solid #fff;
|
|
43
|
+
border-radius: 8px;
|
|
44
|
+
font-family: 'Montserrat';
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
font-size: 8px;
|
|
48
|
+
color: #FFFFFF;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.logo {
|
|
54
|
+
img {
|
|
55
|
+
width: auto;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -68,7 +68,6 @@ function (_super) {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
_this.searchProduct = function () {
|
|
71
|
-
console.log('--input', _this.state.inputVal);
|
|
72
71
|
(0, _coreUtil.clickUrl)("/product/list?q=" + _this.state.inputVal);
|
|
73
72
|
};
|
|
74
73
|
|
|
@@ -88,7 +87,6 @@ function (_super) {
|
|
|
88
87
|
|
|
89
88
|
var data = this.props.data;
|
|
90
89
|
var inputVal = this.state.inputVal;
|
|
91
|
-
console.log('--pc data', data);
|
|
92
90
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
91
|
className: "pc-search-bar"
|
|
94
92
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -1,78 +1,82 @@
|
|
|
1
1
|
.m-sign-board-bar {
|
|
2
2
|
width: 100%;
|
|
3
|
-
|
|
4
|
-
.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
3
|
+
|
|
4
|
+
.search {
|
|
5
|
+
width: 100%;
|
|
6
|
+
background: #EEEEEE;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
padding: 8px 12px;
|
|
9
|
+
height: 36px;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
margin-bottom: 4px;
|
|
14
|
+
.search-input {
|
|
15
|
+
height: 20px;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
line-height: 20px;
|
|
19
|
+
padding: 0;
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
border: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.store-info-wrap {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
margin-top: 20px;
|
|
29
|
+
.number {
|
|
30
|
+
font-family: 'Montserrat';
|
|
31
|
+
font-weight: 400;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
line-height: 16px;
|
|
34
|
+
color: #696973;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
&> img {
|
|
38
|
+
width: 14px;
|
|
39
|
+
}
|
|
40
|
+
&> span {
|
|
41
|
+
font-weight: 700;
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
line-height: 18px;
|
|
44
|
+
color: #333333;
|
|
45
|
+
margin: 0 4px;
|
|
46
|
+
}
|
|
47
|
+
&:nth-child(2) {
|
|
48
|
+
margin-left: 24px;
|
|
49
|
+
flex: 1;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.chat-btn {
|
|
53
|
+
padding: 5px 12px;
|
|
54
|
+
// height: 26px;
|
|
55
|
+
background: #FFFFFF;
|
|
56
|
+
border: 1px solid #333333;
|
|
57
|
+
border-radius: 4px;
|
|
58
|
+
width: fit-content;
|
|
59
|
+
font-family: 'Montserrat';
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
font-size: 12px;
|
|
62
|
+
line-height: 16px;
|
|
63
|
+
text-transform: uppercase;
|
|
64
|
+
color: #333333;
|
|
65
|
+
}
|
|
66
|
+
.store-logo {
|
|
67
|
+
width: 44px;
|
|
68
|
+
height: 44px;
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
}
|
|
71
|
+
.store-name {
|
|
72
|
+
flex: 1;
|
|
73
|
+
margin-left: 12px;
|
|
74
|
+
font-weight: 500;
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
line-height: 20px;
|
|
77
|
+
color: #070707;
|
|
78
|
+
font-family: 'Montserrat';
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
|
@@ -139,7 +139,6 @@ function (_super) {
|
|
|
139
139
|
|
|
140
140
|
PcNavigationConfig.prototype.render = function () {
|
|
141
141
|
var data = this.props.data;
|
|
142
|
-
console.log('-----pc', data);
|
|
143
142
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
144
143
|
divider: "bold",
|
|
145
144
|
headerSize: "large",
|
|
@@ -86,7 +86,6 @@ function (_super) {
|
|
|
86
86
|
var _this = this;
|
|
87
87
|
|
|
88
88
|
var data = this.props.data;
|
|
89
|
-
console.log('data', data);
|
|
90
89
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
91
90
|
divider: "bold",
|
|
92
91
|
headerSize: "large",
|
|
@@ -79,7 +79,7 @@ var Renderer = function Renderer(props) {
|
|
|
79
79
|
|
|
80
80
|
(0, _react.useEffect)(function () {
|
|
81
81
|
// const data = await fishFetch('/h5/ga/mediaid', {}, 'GET');
|
|
82
|
-
importAsync('https://www.googletagmanager.com/gtag/js?id=G-7B9GSSLVX3', 'js').then(function () {
|
|
82
|
+
(0, _commonUtil.importAsync)('https://www.googletagmanager.com/gtag/js?id=G-7B9GSSLVX3', 'js').then(function () {
|
|
83
83
|
window.dataLayer = window.dataLayer || [];
|
|
84
84
|
|
|
85
85
|
function gtag() {
|
package/es/locale/en/en.json
CHANGED
package/es/locale/es/es.json
CHANGED
package/es/locale/id/id.json
CHANGED
|
@@ -212,7 +212,7 @@ function (_super) {
|
|
|
212
212
|
lineHeight: '1.1em',
|
|
213
213
|
fontFamily: sizeType.fontFamily,
|
|
214
214
|
fontWeight: sizeType.fontWeight,
|
|
215
|
-
fontSize: (0, _coreUtil.isPc)() ? sizeType.
|
|
215
|
+
fontSize: (0, _coreUtil.isPc)() ? sizeType.pcFontSize : sizeType.fontSize
|
|
216
216
|
},
|
|
217
217
|
value: sizeType.key
|
|
218
218
|
}, sizeType.key);
|
|
@@ -249,7 +249,7 @@ function (_super) {
|
|
|
249
249
|
var count = _a.count;
|
|
250
250
|
|
|
251
251
|
if (window.magicDesign.device == 'pc') {
|
|
252
|
-
textData.
|
|
252
|
+
textData.pcFontSize = count;
|
|
253
253
|
} else {
|
|
254
254
|
textData.fontSize = count;
|
|
255
255
|
}
|
|
@@ -258,7 +258,7 @@ function (_super) {
|
|
|
258
258
|
},
|
|
259
259
|
unit: "px",
|
|
260
260
|
value: {
|
|
261
|
-
count: window.magicDesign.device == 'pc' ? textData.
|
|
261
|
+
count: window.magicDesign.device == 'pc' ? textData.pcFontSize : textData.fontSize
|
|
262
262
|
}
|
|
263
263
|
}))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
264
264
|
title: ""
|
package/es/utils/commonUtil.js
CHANGED
|
@@ -721,15 +721,13 @@ var asyncNextTick = function asyncNextTick(asyncFunc, interval, count) {
|
|
|
721
721
|
exports.asyncNextTick = asyncNextTick;
|
|
722
722
|
|
|
723
723
|
var convertToRem = function convertToRem(value) {
|
|
724
|
-
|
|
725
|
-
if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
|
|
726
|
-
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
return remValue + "rem";
|
|
724
|
+
return value; // PTO项目 解开注释
|
|
725
|
+
// if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
|
|
726
|
+
// return value;
|
|
727
|
+
// }
|
|
728
|
+
// const pxValue = parseFloat(value);
|
|
729
|
+
// const remValue = pxValue / 50; // 假设1rem = 50px
|
|
730
|
+
// return `${remValue}rem`;
|
|
733
731
|
};
|
|
734
732
|
/** px to rem */
|
|
735
733
|
|
|
@@ -737,34 +735,30 @@ var convertToRem = function convertToRem(value) {
|
|
|
737
735
|
exports.convertToRem = convertToRem;
|
|
738
736
|
|
|
739
737
|
var pxToRem = function pxToRem(styleObj) {
|
|
740
|
-
|
|
741
|
-
if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
|
|
742
|
-
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
return remObj;
|
|
738
|
+
return styleObj; // PTO项目 解开注释
|
|
739
|
+
// if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
|
|
740
|
+
// return styleObj;
|
|
741
|
+
// }
|
|
742
|
+
// const remObj = {};
|
|
743
|
+
// for (const key in styleObj) {
|
|
744
|
+
// if (styleObj.hasOwnProperty(key)) {
|
|
745
|
+
// const value = styleObj[key];
|
|
746
|
+
// if (typeof value === 'string' && value.endsWith('px')) {
|
|
747
|
+
// remObj[key] = key === 'opacity' || key === 'lineHeight' ? value : convertToRem(value);
|
|
748
|
+
// } else if (typeof value === 'number') {
|
|
749
|
+
// remObj[key] = convertToRem(value);
|
|
750
|
+
// } else if ((key === 'padding' || key === 'margin') && typeof value === 'string') {
|
|
751
|
+
// const paddingValues = value.split(' ');
|
|
752
|
+
// const remPaddingValues = paddingValues.map((paddingValue) => {
|
|
753
|
+
// return paddingValue.endsWith('px') ? convertToRem(paddingValue) : paddingValue;
|
|
754
|
+
// });
|
|
755
|
+
// remObj[key] = remPaddingValues.join(' ');
|
|
756
|
+
// } else {
|
|
757
|
+
// remObj[key] = value;
|
|
758
|
+
// }
|
|
759
|
+
// }
|
|
760
|
+
// }
|
|
761
|
+
// return remObj;
|
|
768
762
|
};
|
|
769
763
|
|
|
770
764
|
exports.pxToRem = pxToRem;
|