@fonixtree/magic-design 0.1.54 → 0.1.55
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/.DS_Store +0 -0
- package/es/assets/less/cylon-antd.less +0 -1
- 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.less +40 -27
- 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/Recommend/mobile/index.less +86 -73
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +3 -3
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +80 -76
- package/es/composite-comp/dito/components/SignBoard/pc/index.js +2 -2
- package/es/meta-comp/config-panels/TextConfig/index.js +28 -20
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/less/cylon-antd.less +0 -1
- 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.less +40 -27
- 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/Recommend/mobile/index.less +86 -73
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +3 -3
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +80 -76
- package/lib/composite-comp/dito/components/SignBoard/pc/index.js +2 -2
- package/lib/meta-comp/config-panels/TextConfig/index.js +28 -20
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -331,10 +331,10 @@ function (_super) {
|
|
|
331
331
|
};
|
|
332
332
|
|
|
333
333
|
SignBoardMobile.prototype.render = function () {
|
|
334
|
-
var _this = this;
|
|
334
|
+
var _this = this; // const { data } = this.props;
|
|
335
|
+
// console.log('--SignBoard', data);
|
|
336
|
+
|
|
335
337
|
|
|
336
|
-
var data = this.props.data;
|
|
337
|
-
console.log('--SignBoard', data);
|
|
338
338
|
var _a = this.state,
|
|
339
339
|
storeInfo = _a.storeInfo,
|
|
340
340
|
isFollow = _a.isFollow,
|
|
@@ -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
|
+
}
|
|
@@ -321,8 +321,8 @@ function (_super) {
|
|
|
321
321
|
SignBoardPc.prototype.render = function () {
|
|
322
322
|
var _this = this;
|
|
323
323
|
|
|
324
|
-
var data = this.props.data;
|
|
325
|
-
|
|
324
|
+
var data = this.props.data; // console.log('--SignBoardPc data', data);
|
|
325
|
+
|
|
326
326
|
var _a = this.state,
|
|
327
327
|
storeInfo = _a.storeInfo,
|
|
328
328
|
isFollow = _a.isFollow,
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _antd = require("antd");
|
|
13
13
|
|
|
14
|
+
var _coreUtil = require("src/components/utils/coreUtil");
|
|
15
|
+
|
|
14
16
|
var _TextLabel = _interopRequireDefault(require("./TextLabel"));
|
|
15
17
|
|
|
16
18
|
var _locale = require("../../../locale");
|
|
@@ -81,56 +83,56 @@ var sizeTypeList = [{
|
|
|
81
83
|
}, {
|
|
82
84
|
key: 'Headline 1',
|
|
83
85
|
fontFamily: 'Montserrat',
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
fontSize: 42,
|
|
87
|
+
pcFontSize: 52,
|
|
86
88
|
fontWeight: 600
|
|
87
89
|
}, {
|
|
88
90
|
key: 'Headline 2',
|
|
89
91
|
fontFamily: 'Montserrat',
|
|
90
|
-
|
|
91
|
-
|
|
92
|
+
fontSize: 32,
|
|
93
|
+
pcFontSize: 42,
|
|
92
94
|
fontWeight: 600
|
|
93
95
|
}, {
|
|
94
96
|
key: 'Headline 3',
|
|
95
97
|
fontFamily: 'Montserrat',
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
fontSize: 30,
|
|
99
|
+
pcFontSize: 38,
|
|
98
100
|
fontWeight: 600
|
|
99
101
|
}, {
|
|
100
102
|
key: 'Title 1',
|
|
101
103
|
fontFamily: 'Montserrat',
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
fontSize: 28,
|
|
105
|
+
pcFontSize: 32,
|
|
104
106
|
fontWeight: 400
|
|
105
107
|
}, {
|
|
106
108
|
key: 'Title 2',
|
|
107
109
|
fontFamily: 'Montserrat',
|
|
108
|
-
|
|
109
|
-
|
|
110
|
+
fontSize: 20,
|
|
111
|
+
pcFontSize: 24,
|
|
110
112
|
fontWeight: 400
|
|
111
113
|
}, {
|
|
112
114
|
key: 'Title 3',
|
|
113
115
|
fontFamily: 'Montserrat',
|
|
114
|
-
|
|
115
|
-
|
|
116
|
+
fontSize: 18,
|
|
117
|
+
pcFontSize: 20,
|
|
116
118
|
fontWeight: 400
|
|
117
119
|
}, {
|
|
118
120
|
key: 'Body 1',
|
|
119
121
|
fontFamily: 'Open Sans',
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
fontSize: 16,
|
|
123
|
+
pcFontSize: 18,
|
|
122
124
|
fontWeight: 400
|
|
123
125
|
}, {
|
|
124
126
|
key: 'Body 2',
|
|
125
127
|
fontFamily: 'Open Sans',
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
fontSize: 14,
|
|
129
|
+
pcFontSize: 16,
|
|
128
130
|
fontWeight: 400
|
|
129
131
|
}, {
|
|
130
132
|
key: 'Body 3',
|
|
131
133
|
fontFamily: 'Open Sans',
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
fontSize: 12,
|
|
135
|
+
pcFontSize: 14,
|
|
134
136
|
fontWeight: 400
|
|
135
137
|
}];
|
|
136
138
|
exports.sizeTypeList = sizeTypeList;
|
|
@@ -206,6 +208,12 @@ function (_super) {
|
|
|
206
208
|
}, sizeTypeList.map(function (sizeType) {
|
|
207
209
|
return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
208
210
|
key: sizeType.key,
|
|
211
|
+
style: {
|
|
212
|
+
lineHeight: '1.1em',
|
|
213
|
+
fontFamily: sizeType.fontFamily,
|
|
214
|
+
fontWeight: sizeType.fontWeight,
|
|
215
|
+
fontSize: (0, _coreUtil.isPc)() ? sizeType.fontSize : sizeType.fontSize
|
|
216
|
+
},
|
|
209
217
|
value: sizeType.key
|
|
210
218
|
}, sizeType.key);
|
|
211
219
|
}))), textData.sizeType == 'Customize font styles' && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
@@ -241,7 +249,7 @@ function (_super) {
|
|
|
241
249
|
var count = _a.count;
|
|
242
250
|
|
|
243
251
|
if (window.magicDesign.device == 'pc') {
|
|
244
|
-
textData.
|
|
252
|
+
textData.fontSize = count;
|
|
245
253
|
} else {
|
|
246
254
|
textData.fontSize = count;
|
|
247
255
|
}
|
|
@@ -250,7 +258,7 @@ function (_super) {
|
|
|
250
258
|
},
|
|
251
259
|
unit: "px",
|
|
252
260
|
value: {
|
|
253
|
-
count: window.magicDesign.device == 'pc' ? textData.
|
|
261
|
+
count: window.magicDesign.device == 'pc' ? textData.fontSize : textData.fontSize
|
|
254
262
|
}
|
|
255
263
|
}))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
256
264
|
title: ""
|
|
Binary file
|
|
@@ -1,54 +1,80 @@
|
|
|
1
1
|
.m-banner-mobile {
|
|
2
2
|
position: relative;
|
|
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
|
-
}
|
|
3
|
+
// .turnPage {
|
|
4
|
+
// position: absolute;
|
|
5
|
+
// top: 50%;
|
|
6
|
+
// transform: translateY(-50%);
|
|
7
|
+
// z-index: 3;
|
|
8
|
+
// cursor: pointer;
|
|
9
|
+
// }
|
|
10
|
+
// .leftBtn {
|
|
11
|
+
// left: 20px;
|
|
12
|
+
// }
|
|
13
|
+
// .rightBtn {
|
|
14
|
+
// right: 20px;
|
|
15
|
+
// }
|
|
16
|
+
|
|
17
|
+
.cylon-carousel {
|
|
18
|
+
.slick-track {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.carouselItem {
|
|
25
|
+
// height: 386px;
|
|
26
|
+
position: relative;
|
|
27
|
+
display: flex;
|
|
28
|
+
|
|
29
|
+
.carouseContent {
|
|
30
|
+
padding: 80px 28px 0;
|
|
31
|
+
position: absolute;
|
|
32
|
+
z-index: 2;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
margin-bottom: auto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.title {
|
|
39
|
+
margin-bottom: 8px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sub-title {
|
|
43
|
+
margin-bottom: 20px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.btn-wrap {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: flex-start;
|
|
50
|
+
|
|
51
|
+
.btn {
|
|
52
|
+
margin-right: 12px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.swiper-ban {
|
|
58
|
+
position: absolute;
|
|
59
|
+
width: 100%;
|
|
60
|
+
bottom: 10px;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
|
|
65
|
+
.ban {
|
|
66
|
+
font-size: 16px;
|
|
67
|
+
width: 1.5em;
|
|
68
|
+
height: 0.3em;
|
|
69
|
+
background: #FFF;
|
|
70
|
+
cursor: inherit;
|
|
71
|
+
margin-right: 0.3em;
|
|
72
|
+
transition: all .5s;
|
|
73
|
+
|
|
74
|
+
&.active {
|
|
75
|
+
width: 1.5em;
|
|
76
|
+
opacity: 1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|