@fonixtree/magic-design 0.1.22 → 0.1.24
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/input.less +4 -0
- package/es/common/Collapse/index.js +4 -0
- package/es/common/Collapse/index.less +3 -0
- package/es/common/FontStyles/index.less +2 -1
- package/es/common/InputNumber/index.less +5 -0
- package/es/common/LinkModal/MiniAppTable/index.js +250 -0
- package/es/common/LinkModal/index.js +6 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/es/composite-comp/bol/components/Banner/pc/index.js +11 -3
- package/es/composite-comp/bol/components/Banner/pc/index.less +2 -2
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +4 -4
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/es/composite-comp/bol/components/Carousel/pc/index.js +5 -4
- 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/common/config-panels/CustomizeConfig/index.js +12 -40
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -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/Recommend/mobile/index.less +86 -73
- package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/es/constants/index.js +2 -1
- package/es/core/Designer/CompListPanel/CompCard/index.js +5 -1
- package/es/meta-comp/components/Image/index.js +1 -1
- package/es/meta-comp/config-panels/ButtonConfig/index.js +18 -1
- package/es/utils/businessUtil.js +12 -0
- package/es/utils/commonUtil.js +4 -0
- package/es/utils/coreUtil.js +0 -1
- package/lib/assets/less/input.less +4 -0
- package/lib/common/Collapse/index.js +4 -0
- package/lib/common/Collapse/index.less +3 -0
- package/lib/common/FontStyles/index.less +2 -1
- package/lib/common/InputNumber/index.less +5 -0
- package/lib/common/LinkModal/MiniAppTable/index.js +250 -0
- package/lib/common/LinkModal/index.js +6 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
- package/lib/composite-comp/bol/components/Banner/pc/index.js +11 -3
- package/lib/composite-comp/bol/components/Banner/pc/index.less +2 -2
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +4 -4
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +5 -4
- 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/common/config-panels/CustomizeConfig/index.js +12 -40
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +2 -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/Recommend/mobile/index.less +86 -73
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
- package/lib/constants/index.js +2 -1
- package/lib/core/Designer/CompListPanel/CompCard/index.js +5 -1
- package/lib/meta-comp/components/Image/index.js +1 -1
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +18 -1
- package/lib/utils/businessUtil.js +12 -0
- package/lib/utils/commonUtil.js +4 -0
- package/lib/utils/coreUtil.js +0 -1
- 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
|
+
}
|
package/lib/constants/index.js
CHANGED
|
@@ -26,7 +26,11 @@ function CompCard(_a) {
|
|
|
26
26
|
className: "compCard"
|
|
27
27
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
28
28
|
className: "comp-info"
|
|
29
|
-
}, /*#__PURE__*/_react["default"].createElement("span",
|
|
29
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
30
|
+
style: {
|
|
31
|
+
display: 'flex'
|
|
32
|
+
}
|
|
33
|
+
}, /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
30
34
|
className: "comp-icon",
|
|
31
35
|
type: icon || ((_b = _constants.compInfoMap[type]) === null || _b === void 0 ? void 0 : _b.icon)
|
|
32
36
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -121,7 +121,7 @@ function (_super) {
|
|
|
121
121
|
} else {
|
|
122
122
|
if (data.content.h5ImgWidth) obj.width = data.content.h5ImgWidth * scale; // if (data.content.h5ImgHeight) obj.height = data.content.h5ImgHeight * scale;
|
|
123
123
|
|
|
124
|
-
if (data.content.h5ImgWidth > data.content.h5ImgHeight) {
|
|
124
|
+
if (data.content.h5ImgWidth > data.content.h5ImgHeight || data.content.h5ImgHeight > maxHeight) {
|
|
125
125
|
obj.height = 'auto';
|
|
126
126
|
} else if (data.content.h5ImgHeight) obj.height = data.content.h5ImgHeight * scale;
|
|
127
127
|
}
|
|
@@ -96,6 +96,22 @@ function (_super) {
|
|
|
96
96
|
data[key] = value;
|
|
97
97
|
|
|
98
98
|
_this.selfRender();
|
|
99
|
+
}; // button 的hover打开时,继承上方的配置内容
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
_this.hoverClickEvent = function () {
|
|
103
|
+
var data = _this.props.data;
|
|
104
|
+
|
|
105
|
+
_this.updateAttr(data, 'hover', {
|
|
106
|
+
open: true,
|
|
107
|
+
buttonBorder: data.buttonBorder,
|
|
108
|
+
buttonIcon: data.buttonIcon,
|
|
109
|
+
buttonText: data.buttonText,
|
|
110
|
+
content: {
|
|
111
|
+
backgroundColor: data.content.backgroundColor
|
|
112
|
+
}
|
|
113
|
+
}); // console.log('--ffd, button hover first click', data);
|
|
114
|
+
|
|
99
115
|
};
|
|
100
116
|
|
|
101
117
|
return _this;
|
|
@@ -322,7 +338,8 @@ function (_super) {
|
|
|
322
338
|
name: (0, _locale.i18n)('HOVER'),
|
|
323
339
|
value: hoverSetting,
|
|
324
340
|
toggleType: 'checkbox',
|
|
325
|
-
metaOption: data.hover
|
|
341
|
+
metaOption: data.hover,
|
|
342
|
+
checkClick: this.hoverClickEvent
|
|
326
343
|
});
|
|
327
344
|
}
|
|
328
345
|
|
|
@@ -111,6 +111,18 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
111
111
|
};
|
|
112
112
|
break;
|
|
113
113
|
|
|
114
|
+
case _constants.urlTypeMap.MINI_APP:
|
|
115
|
+
// 跳转小程序
|
|
116
|
+
link = '';
|
|
117
|
+
params = {
|
|
118
|
+
action: 'jump',
|
|
119
|
+
params: {
|
|
120
|
+
type: 'MINI_APP',
|
|
121
|
+
url: value
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
break;
|
|
125
|
+
|
|
114
126
|
default:
|
|
115
127
|
var map = {
|
|
116
128
|
'/main/cart': 'CART',
|
package/lib/utils/commonUtil.js
CHANGED
package/lib/utils/coreUtil.js
CHANGED