@fonixtree/magic-design 1.0.167 → 1.0.169
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 +11 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- 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/assets/images/layout-icon/campaignLayout1.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
- package/es/common/Collapse/index.js +3 -1
- package/es/common/CountDown/index.js +29 -2
- package/es/common/CountDown/index.less +38 -5
- package/es/common/Field/index.js +5 -4
- package/es/common/Field/index.less +4 -0
- package/es/common/Iconfont/index.js +4 -2
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +33 -2
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -0
- package/es/composite-comp/bol/components/Video/defaultJSON.js +1 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +1 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +1 -0
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -1
- package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +1 -0
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.js +2 -1
- package/es/composite-comp/bol/components/Video/pc/Layout1/index.less +1 -0
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.js +8 -2
- package/es/composite-comp/bol/components/Video/pc/Layout2/index.less +2 -0
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.js +4 -1
- package/es/composite-comp/bol/components/Video/pc/Layout3/index.less +1 -0
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.js +2 -1
- package/es/composite-comp/bol/components/Video/pc/Layout4/index.less +1 -0
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.js +2 -1
- package/es/composite-comp/bol/components/Video/pc/Layout5/index.less +1 -0
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -0
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +1 -1
- package/es/composite-comp/bol/config-panels/VideoConfig/index.js +12 -0
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/es/composite-comp/dito/components/Campaign/defaultJSON.js +112 -0
- package/es/composite-comp/dito/components/Campaign/index.js +88 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +320 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.less +20 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +180 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.less +26 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +434 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.less +20 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +317 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.less +20 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +115 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.less +14 -0
- package/es/composite-comp/dito/components/Campaign/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/Campaign/mobile/index.js +125 -0
- package/es/composite-comp/dito/components/Campaign/mobile/index.less +57 -0
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +25 -11
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +8 -2
- package/es/composite-comp/dito/components/SearchDITO/defaultJSON.js +7 -1
- package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.js +114 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.js +12 -579
- package/es/composite-comp/dito/components/SearchDITO/pc/index.less +1 -185
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +29 -8
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +3 -1
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +5 -1
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +20 -13
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +4 -11
- package/es/composite-comp/dito/components/SlideImage/pc/index.js +2 -0
- package/es/composite-comp/dito/config-panels/CampaignConfig/ConfigContent/index.js +143 -0
- package/es/composite-comp/dito/config-panels/CampaignConfig/ConfigTitle/index.js +93 -0
- package/es/composite-comp/dito/config-panels/CampaignConfig/index.js +69 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +11 -2
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +6 -6
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +26 -0
- package/es/composite-comp/dito/second-config-panels/CampaignSecondConfig/index.js +109 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +11 -0
- package/es/constants/component-types.js +9 -3
- package/es/constants/index.js +4 -0
- package/es/constants/layout.js +38 -2
- package/es/core/Designer/ConfigPanel/index.js +4 -0
- package/es/decorator/compositeDecorator.js +5 -2
- package/es/locale/en/en.json +6 -1
- package/es/locale/es/es.json +6 -1
- package/es/locale/id/id.json +6 -1
- package/es/meta-comp/components/Button/index.js +4 -1
- package/es/meta-comp/components/Button/index.less +8 -1
- package/es/meta-comp/config-panels/ButtonConfig/index.js +1 -1
- package/es/meta-comp/config-panels/TextConfig/index.js +16 -3
- package/es/meta-comp/config-panels/TextConfig/index.less +7 -0
- package/lib/assets/fonts/magic-box-iconfont.css +11 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- 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/assets/images/layout-icon/campaignLayout1.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
- package/lib/common/Collapse/index.js +3 -1
- package/lib/common/CountDown/index.js +29 -2
- package/lib/common/CountDown/index.less +38 -5
- package/lib/common/Field/index.js +5 -4
- package/lib/common/Field/index.less +4 -0
- package/lib/common/Iconfont/index.js +4 -2
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +33 -2
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +15 -0
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +1 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/pc/Layout1/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.js +8 -2
- package/lib/composite-comp/bol/components/Video/pc/Layout2/index.less +2 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.js +4 -1
- package/lib/composite-comp/bol/components/Video/pc/Layout3/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/pc/Layout4/index.less +1 -0
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.js +2 -1
- package/lib/composite-comp/bol/components/Video/pc/Layout5/index.less +1 -0
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +1 -0
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +1 -1
- package/lib/composite-comp/bol/config-panels/VideoConfig/index.js +12 -0
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/lib/composite-comp/dito/components/Campaign/defaultJSON.js +112 -0
- package/lib/composite-comp/dito/components/Campaign/index.js +88 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +320 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.less +20 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +180 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.less +26 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +434 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.less +20 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +317 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.less +20 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +115 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.less +14 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/index.js +125 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/index.less +57 -0
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +25 -11
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +8 -2
- package/lib/composite-comp/dito/components/SearchDITO/defaultJSON.js +7 -1
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.js +114 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +12 -579
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.less +1 -185
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +29 -8
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +3 -1
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +5 -1
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +20 -13
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +4 -11
- package/lib/composite-comp/dito/components/SlideImage/pc/index.js +2 -0
- package/lib/composite-comp/dito/config-panels/CampaignConfig/ConfigContent/index.js +143 -0
- package/lib/composite-comp/dito/config-panels/CampaignConfig/ConfigTitle/index.js +93 -0
- package/lib/composite-comp/dito/config-panels/CampaignConfig/index.js +69 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +11 -2
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +6 -6
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +26 -0
- package/lib/composite-comp/dito/second-config-panels/CampaignSecondConfig/index.js +109 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +11 -0
- package/lib/constants/component-types.js +9 -3
- package/lib/constants/index.js +4 -0
- package/lib/constants/layout.js +38 -2
- package/lib/core/Designer/ConfigPanel/index.js +4 -0
- package/lib/decorator/compositeDecorator.js +5 -2
- package/lib/locale/en/en.json +6 -1
- package/lib/locale/es/es.json +6 -1
- package/lib/locale/id/id.json +6 -1
- package/lib/meta-comp/components/Button/index.js +4 -1
- package/lib/meta-comp/components/Button/index.less +8 -1
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +1 -1
- package/lib/meta-comp/config-panels/TextConfig/index.js +16 -3
- package/lib/meta-comp/config-panels/TextConfig/index.less +7 -0
- package/package.json +1 -1
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -265,7 +265,8 @@ function (_super) {
|
|
|
265
265
|
_this.getHeader = function (panel) {
|
|
266
266
|
var activeKey = _this.state.activeKey;
|
|
267
267
|
var name = panel.name,
|
|
268
|
-
key = panel.key
|
|
268
|
+
key = panel.key,
|
|
269
|
+
onClick = panel.onClick;
|
|
269
270
|
var _a = _this.props,
|
|
270
271
|
headerStyle = _a.headerStyle,
|
|
271
272
|
showActiveColor = _a.showActiveColor;
|
|
@@ -275,6 +276,7 @@ function (_super) {
|
|
|
275
276
|
} : {};
|
|
276
277
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
277
278
|
className: "header_wrap",
|
|
279
|
+
onClick: onClick,
|
|
278
280
|
onMouseEnter: function onMouseEnter() {
|
|
279
281
|
return _this.headerMouseEnter(panel);
|
|
280
282
|
},
|
|
@@ -9,10 +9,18 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
12
14
|
var _commonUtil = require("../../utils/commonUtil");
|
|
13
15
|
|
|
14
16
|
require("./index.less");
|
|
15
17
|
|
|
18
|
+
var _Iconfont = _interopRequireDefault(require("../Iconfont"));
|
|
19
|
+
|
|
20
|
+
var _coreUtil = require("../../utils/coreUtil");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
16
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
25
|
|
|
18
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -138,13 +146,32 @@ function (_super) {
|
|
|
138
146
|
};
|
|
139
147
|
|
|
140
148
|
CountDown.prototype.render = function () {
|
|
149
|
+
var type = this.props.type;
|
|
141
150
|
var _a = this.state,
|
|
142
151
|
hour = _a.hour,
|
|
143
152
|
min = _a.min,
|
|
144
153
|
second = _a.second;
|
|
145
154
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
146
|
-
className: "count-down-wrap
|
|
147
|
-
|
|
155
|
+
className: (0, _classnames["default"])('count-down-wrap', {
|
|
156
|
+
pc: type === 'pc'
|
|
157
|
+
})
|
|
158
|
+
}, (0, _coreUtil.isPc)() && /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
159
|
+
bold: true,
|
|
160
|
+
className: "icon_time",
|
|
161
|
+
color: "#000",
|
|
162
|
+
size: 24,
|
|
163
|
+
type: "icon-time1"
|
|
164
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
165
|
+
className: "num"
|
|
166
|
+
}, hour), (0, _coreUtil.isPc)() && /*#__PURE__*/_react["default"].createElement("span", {
|
|
167
|
+
className: "pots"
|
|
168
|
+
}, ":"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
169
|
+
className: "num"
|
|
170
|
+
}, min), (0, _coreUtil.isPc)() && /*#__PURE__*/_react["default"].createElement("span", {
|
|
171
|
+
className: "pots"
|
|
172
|
+
}, ":"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
173
|
+
className: "num"
|
|
174
|
+
}, second));
|
|
148
175
|
};
|
|
149
176
|
|
|
150
177
|
CountDown.defaultProps = {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
.count-down-wrap {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
font-family: 'Montserrat';
|
|
6
|
+
gap: 4px;
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
.num {
|
|
6
9
|
background: #CC1D20;
|
|
7
10
|
border-radius: 4px;
|
|
8
|
-
font-family: 'Montserrat';
|
|
9
11
|
font-style: normal;
|
|
10
12
|
font-weight: 500;
|
|
11
13
|
font-size: 12px;
|
|
@@ -14,10 +16,41 @@
|
|
|
14
16
|
line-height: 17px;
|
|
15
17
|
width: 24px;
|
|
16
18
|
text-align: center;
|
|
17
|
-
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pots {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.pc {
|
|
26
|
+
background-color: #F9CA1C;
|
|
27
|
+
border-radius: 20px;
|
|
28
|
+
padding: 0 12px;
|
|
29
|
+
gap: 2px;
|
|
30
|
+
|
|
31
|
+
.icon_time {
|
|
32
|
+
margin-right: 2px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.num {
|
|
36
|
+
background: none;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
font-size: 20px;
|
|
40
|
+
color: #000;
|
|
41
|
+
height: 36px;
|
|
42
|
+
line-height: 38px;
|
|
43
|
+
}
|
|
18
44
|
|
|
19
|
-
|
|
20
|
-
|
|
45
|
+
.pots {
|
|
46
|
+
display: inline-block;
|
|
47
|
+
font-style: normal;
|
|
48
|
+
font-weight: 700;
|
|
49
|
+
font-size: 20px;
|
|
50
|
+
color: #000;
|
|
51
|
+
height: 36px;
|
|
52
|
+
line-height: 35px;
|
|
53
|
+
margin-left: 3px;
|
|
21
54
|
}
|
|
22
55
|
}
|
|
23
56
|
}
|
|
@@ -71,12 +71,13 @@ function (_super) {
|
|
|
71
71
|
split = _a.split,
|
|
72
72
|
rest = __rest(_a, ["title", "children", "layout", "split"]);
|
|
73
73
|
|
|
74
|
-
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
75
|
-
className: (0, _classnames["default"])('m-field', {
|
|
74
|
+
return /*#__PURE__*/_react["default"].createElement("div", _extends({}, rest, {
|
|
75
|
+
className: (0, _classnames["default"])('m-field', "" + rest.className, {
|
|
76
76
|
split: split,
|
|
77
|
-
bold: split === 'bold'
|
|
77
|
+
bold: split === 'bold',
|
|
78
|
+
solid: split === 'solid'
|
|
78
79
|
})
|
|
79
|
-
}
|
|
80
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
81
|
className: (0, _classnames["default"])('field-item', {
|
|
81
82
|
horizontal: layout === 'horizontal'
|
|
82
83
|
})
|
|
@@ -105,7 +105,8 @@ function (_super) {
|
|
|
105
105
|
color = _a.color,
|
|
106
106
|
svg = _a.svg,
|
|
107
107
|
className = _a.className,
|
|
108
|
-
|
|
108
|
+
bold = _a.bold,
|
|
109
|
+
rest = __rest(_a, ["type", "size", "color", "svg", "className", "bold"]);
|
|
109
110
|
|
|
110
111
|
var _size = size;
|
|
111
112
|
|
|
@@ -124,7 +125,8 @@ function (_super) {
|
|
|
124
125
|
className: (0, _classnames["default"])('icon_container', className),
|
|
125
126
|
style: {
|
|
126
127
|
fontSize: _size,
|
|
127
|
-
color: color
|
|
128
|
+
color: color,
|
|
129
|
+
fontWeight: bold ? 'bold' : 'normal'
|
|
128
130
|
}
|
|
129
131
|
}, rest), svg ? /*#__PURE__*/_react["default"].createElement("svg", {
|
|
130
132
|
"aria-hidden": "true",
|
|
@@ -114,6 +114,7 @@ function (_super) {
|
|
|
114
114
|
var data = this.props.data;
|
|
115
115
|
var GAData = (0, _commonUtil.getGAData)(data);
|
|
116
116
|
var isHorizontal = data.customize.layout.h5Layout === 'layout2';
|
|
117
|
+
var isFluidLayout = data.customize.layout.h5Layout === 'layout3' || data.customize.layout.h5Layout === 'layout4';
|
|
117
118
|
var colNum = isHorizontal ? data.customize.rowNum : 1;
|
|
118
119
|
var newData = data.groupSource.reduce(function (prev, curr, index) {
|
|
119
120
|
var i = Math.floor(index / colNum);
|
|
@@ -122,7 +123,7 @@ function (_super) {
|
|
|
122
123
|
}, []);
|
|
123
124
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
125
|
className: "m-image-gallery-mobile"
|
|
125
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
|
+
}, !isFluidLayout && /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
127
|
className: "content"
|
|
127
128
|
}, newData.map(function (arr, index) {
|
|
128
129
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -150,7 +151,37 @@ function (_super) {
|
|
|
150
151
|
maxWidth: "100%"
|
|
151
152
|
}));
|
|
152
153
|
}));
|
|
153
|
-
}))
|
|
154
|
+
})), data.customize.layout.h5Layout === 'layout3' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
|
+
className: "fluid-content"
|
|
156
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
157
|
+
className: "left-img"
|
|
158
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
159
|
+
data: data.groupSource[0].image,
|
|
160
|
+
maxWidth: "100%"
|
|
161
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
162
|
+
className: "right-img"
|
|
163
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
164
|
+
data: data.groupSource[1].image,
|
|
165
|
+
maxWidth: "100%"
|
|
166
|
+
}), /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
167
|
+
data: data.groupSource[2].image,
|
|
168
|
+
maxWidth: "100%"
|
|
169
|
+
}))), data.customize.layout.h5Layout === 'layout4' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
className: "fluid-content"
|
|
171
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
172
|
+
className: "left-img"
|
|
173
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
174
|
+
data: data.groupSource[0].image,
|
|
175
|
+
maxWidth: "100%"
|
|
176
|
+
}), /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
177
|
+
data: data.groupSource[1].image,
|
|
178
|
+
maxWidth: "100%"
|
|
179
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
180
|
+
className: "right-img"
|
|
181
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
182
|
+
data: data.groupSource[2].image,
|
|
183
|
+
maxWidth: "100%"
|
|
184
|
+
}))));
|
|
154
185
|
};
|
|
155
186
|
|
|
156
187
|
ImageGalleryMobile.defaultProps = {
|
|
@@ -16,3 +16,18 @@
|
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: center;
|
|
18
18
|
}
|
|
19
|
+
.m-image-gallery-mobile .fluid-content {
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
.m-image-gallery-mobile .fluid-content > div {
|
|
23
|
+
width: calc((100% - 0.4rem) / 2);
|
|
24
|
+
}
|
|
25
|
+
.m-image-gallery-mobile .fluid-content .left-img > div:nth-child(2) {
|
|
26
|
+
margin-top: 0.2rem;
|
|
27
|
+
}
|
|
28
|
+
.m-image-gallery-mobile .fluid-content .right-img {
|
|
29
|
+
margin-left: 0.4rem;
|
|
30
|
+
}
|
|
31
|
+
.m-image-gallery-mobile .fluid-content .right-img > div:nth-child(2) {
|
|
32
|
+
margin-top: 0.2rem;
|
|
33
|
+
}
|
|
@@ -124,7 +124,8 @@ function (_super) {
|
|
|
124
124
|
key: group.id,
|
|
125
125
|
className: "video-item-wrap",
|
|
126
126
|
style: (0, _commonUtil.pxToRem)({
|
|
127
|
-
height: data.mobileHeight
|
|
127
|
+
height: data.mobileHeight,
|
|
128
|
+
borderRadius: data.arc
|
|
128
129
|
})
|
|
129
130
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
130
131
|
ref: function ref(el) {
|
|
@@ -156,7 +156,8 @@ function (_super) {
|
|
|
156
156
|
key: group.id,
|
|
157
157
|
className: "video-item-wrap",
|
|
158
158
|
style: (0, _commonUtil.pxToRem)({
|
|
159
|
-
height: data.mobileHeight
|
|
159
|
+
height: data.mobileHeight,
|
|
160
|
+
borderRadius: data.arc
|
|
160
161
|
})
|
|
161
162
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
162
163
|
ref: function ref(el) {
|
|
@@ -126,7 +126,8 @@ function (_super) {
|
|
|
126
126
|
key: group.id,
|
|
127
127
|
className: "video-item-wrap",
|
|
128
128
|
style: (0, _commonUtil.pxToRem)({
|
|
129
|
-
height: data.mobileHeight
|
|
129
|
+
height: data.mobileHeight,
|
|
130
|
+
borderRadius: data.arc
|
|
130
131
|
})
|
|
131
132
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
132
133
|
ref: function ref(el) {
|
|
@@ -123,7 +123,8 @@ function (_super) {
|
|
|
123
123
|
key: group.id,
|
|
124
124
|
className: "video-item-wrap",
|
|
125
125
|
style: {
|
|
126
|
-
height: data.pcHeight
|
|
126
|
+
height: data.pcHeight,
|
|
127
|
+
borderRadius: data.arc
|
|
127
128
|
}
|
|
128
129
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
129
130
|
ref: function ref(el) {
|
|
@@ -128,7 +128,10 @@ function (_super) {
|
|
|
128
128
|
}
|
|
129
129
|
}, firstGroup && /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
130
|
key: firstGroup.id,
|
|
131
|
-
className: "video-left-wrap"
|
|
131
|
+
className: "video-left-wrap",
|
|
132
|
+
style: {
|
|
133
|
+
borderRadius: data.arc
|
|
134
|
+
}
|
|
132
135
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
133
136
|
ref: function ref(el) {
|
|
134
137
|
if (!_this.videoRefMap[firstGroup.id]) {
|
|
@@ -181,7 +184,10 @@ function (_super) {
|
|
|
181
184
|
var isPlaying = !!((_a = _this.videoRefMap[group.id]) === null || _a === void 0 ? void 0 : _a.playing);
|
|
182
185
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
183
186
|
key: group.id,
|
|
184
|
-
className: "video-item-wrap"
|
|
187
|
+
className: "video-item-wrap",
|
|
188
|
+
style: {
|
|
189
|
+
borderRadius: data.arc
|
|
190
|
+
}
|
|
185
191
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
186
192
|
ref: function ref(el) {
|
|
187
193
|
if (!_this.videoRefMap[group.id]) {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
height: 100%;
|
|
25
25
|
position: relative;
|
|
26
26
|
width: 50%;
|
|
27
|
+
overflow: hidden;
|
|
27
28
|
|
|
28
29
|
.play-btn {
|
|
29
30
|
position: absolute;
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
flex-direction: column;
|
|
49
50
|
flex: 1;
|
|
50
51
|
width: 100%;
|
|
52
|
+
overflow: hidden;
|
|
51
53
|
|
|
52
54
|
.play-btn {
|
|
53
55
|
position: absolute;
|
|
@@ -133,7 +133,10 @@ function (_super) {
|
|
|
133
133
|
var isPlaying = !!((_a = _this.videoRefMap[group.id]) === null || _a === void 0 ? void 0 : _a.playing);
|
|
134
134
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
135
|
key: group.id,
|
|
136
|
-
className: "video-item-wrap"
|
|
136
|
+
className: "video-item-wrap",
|
|
137
|
+
style: {
|
|
138
|
+
borderRadius: data.arc
|
|
139
|
+
}
|
|
137
140
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
138
141
|
ref: function ref(el) {
|
|
139
142
|
if (!_this.videoRefMap[group.id]) {
|
|
@@ -126,7 +126,8 @@ function (_super) {
|
|
|
126
126
|
key: group.id,
|
|
127
127
|
className: "video-item-wrap",
|
|
128
128
|
style: {
|
|
129
|
-
height: data.pcHeight
|
|
129
|
+
height: data.pcHeight,
|
|
130
|
+
borderRadius: data.arc
|
|
130
131
|
}
|
|
131
132
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
132
133
|
ref: function ref(el) {
|
|
@@ -126,7 +126,8 @@ function (_super) {
|
|
|
126
126
|
key: group.id,
|
|
127
127
|
className: "video-item-wrap",
|
|
128
128
|
style: {
|
|
129
|
-
height: data.pcHeight
|
|
129
|
+
height: data.pcHeight,
|
|
130
|
+
borderRadius: data.arc
|
|
130
131
|
}
|
|
131
132
|
}, /*#__PURE__*/_react["default"].createElement(_common.Video, {
|
|
132
133
|
ref: function ref(el) {
|
|
@@ -131,6 +131,7 @@ function (_super) {
|
|
|
131
131
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
132
|
className: "btn_wrap"
|
|
133
133
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
134
|
+
disabled: source.length >= 3,
|
|
134
135
|
icon: "icon-add",
|
|
135
136
|
onClick: this.onAddClick,
|
|
136
137
|
type: "primary"
|
|
@@ -58,7 +58,7 @@ function ImageGalleryConfig(props) {
|
|
|
58
58
|
component: "imageGallery",
|
|
59
59
|
data: data.customize,
|
|
60
60
|
isHideAlign: true,
|
|
61
|
-
layoutSource: _layout.imageGalleryLayout,
|
|
61
|
+
layoutSource: (0, _coreUtil.isPc)() ? _layout.imageGalleryPcLayout : _layout.imageGalleryLayout,
|
|
62
62
|
selectedLayoutFun: function selectedLayoutFun(v) {
|
|
63
63
|
return getLayout(v);
|
|
64
64
|
}
|
|
@@ -128,6 +128,18 @@ function (_super) {
|
|
|
128
128
|
},
|
|
129
129
|
unit: "px",
|
|
130
130
|
value: data[(0, _coreUtil.isPc)() ? 'pcHeight' : 'mobileHeight']
|
|
131
|
+
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
132
|
+
title: "Arc"
|
|
133
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
134
|
+
onChange: function onChange(_a) {
|
|
135
|
+
var count = _a.count;
|
|
136
|
+
data.arc = count;
|
|
137
|
+
|
|
138
|
+
_this.selfRender();
|
|
139
|
+
},
|
|
140
|
+
value: {
|
|
141
|
+
count: data.arc
|
|
142
|
+
}
|
|
131
143
|
})))
|
|
132
144
|
}, {
|
|
133
145
|
key: 'Spacing',
|
|
@@ -49,47 +49,34 @@ function (_super) {
|
|
|
49
49
|
__extends(BackgroundConfig, _super);
|
|
50
50
|
|
|
51
51
|
function BackgroundConfig() {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
_this.state = {};
|
|
55
|
-
return _this;
|
|
52
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
BackgroundConfig.prototype.render = function () {
|
|
59
56
|
var _this = this;
|
|
60
57
|
|
|
61
|
-
var _a
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
component = _f.component;
|
|
66
|
-
|
|
67
|
-
if (!data.tabBackground) {
|
|
68
|
-
data.tabBackground = {
|
|
69
|
-
opacity: 100,
|
|
70
|
-
color: '#232F46',
|
|
71
|
-
image: '',
|
|
72
|
-
tabBgType: 'color'
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
58
|
+
var _a = this.props,
|
|
59
|
+
data = _a.data,
|
|
60
|
+
name = _a.name,
|
|
61
|
+
type = _a.type;
|
|
76
62
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
77
|
-
title:
|
|
78
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
63
|
+
title: name
|
|
64
|
+
}, type === 'all' && /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
79
65
|
onChange: function onChange(bgType) {
|
|
80
66
|
data.bgType = bgType;
|
|
67
|
+
data.tabBgType = bgType;
|
|
81
68
|
|
|
82
69
|
_this.selfRender();
|
|
83
70
|
},
|
|
84
71
|
style: {
|
|
85
72
|
marginBottom: '15px'
|
|
86
73
|
},
|
|
87
|
-
value: data.bgType
|
|
74
|
+
value: data.bgType || data.tabBgType
|
|
88
75
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
89
76
|
value: "color"
|
|
90
77
|
}, (0, _locale.i18n)('COLOR')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
91
78
|
value: "image"
|
|
92
|
-
}, (0, _locale.i18n)('IMAGE'))), data.bgType === 'color'
|
|
79
|
+
}, (0, _locale.i18n)('IMAGE'))), (type === 'color' || data.bgType === 'color' || data.tabBgType === 'color') && /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
93
80
|
colorType: "rgba",
|
|
94
81
|
onChange: function onChange(v) {
|
|
95
82
|
data.opacity = 1;
|
|
@@ -98,7 +85,7 @@ function (_super) {
|
|
|
98
85
|
_this.selfRender();
|
|
99
86
|
},
|
|
100
87
|
value: data.color
|
|
101
|
-
})
|
|
88
|
+
}), (type === 'image' || data.bgType === 'image' || data.tabBgType === 'image') && /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
|
|
102
89
|
imageSelectedWay: data.imageSelectedWay || {
|
|
103
90
|
pc: '',
|
|
104
91
|
mobile: ''
|
|
@@ -115,48 +102,6 @@ function (_super) {
|
|
|
115
102
|
_this.selfRender();
|
|
116
103
|
},
|
|
117
104
|
value: data.image
|
|
118
|
-
})), component === 'recommend' && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
119
|
-
title: (0, _locale.i18n)('TAB_BACKGROUND')
|
|
120
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
121
|
-
onChange: function onChange(tabBgType) {
|
|
122
|
-
data.tabBackground.tabBgType = tabBgType;
|
|
123
|
-
|
|
124
|
-
_this.selfRender();
|
|
125
|
-
},
|
|
126
|
-
style: {
|
|
127
|
-
marginBottom: '15px'
|
|
128
|
-
},
|
|
129
|
-
value: (_a = data.tabBackground) === null || _a === void 0 ? void 0 : _a.tabBgType
|
|
130
|
-
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
131
|
-
value: "color"
|
|
132
|
-
}, (0, _locale.i18n)('COLOR')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
133
|
-
value: "image"
|
|
134
|
-
}, (0, _locale.i18n)('IMAGE'))), ((_b = data.tabBackground) === null || _b === void 0 ? void 0 : _b.tabBgType) === 'color' ? /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
135
|
-
colorType: "rgba",
|
|
136
|
-
onChange: function onChange(v) {
|
|
137
|
-
data.tabBackground.opacity = 1;
|
|
138
|
-
data.tabBackground.color = v;
|
|
139
|
-
|
|
140
|
-
_this.selfRender();
|
|
141
|
-
},
|
|
142
|
-
value: (_c = data.tabBackground) === null || _c === void 0 ? void 0 : _c.color
|
|
143
|
-
}) : /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
|
|
144
|
-
imageSelectedWay: ((_d = data.tabBackground) === null || _d === void 0 ? void 0 : _d.imageSelectedWay) || {
|
|
145
|
-
pc: '',
|
|
146
|
-
mobile: ''
|
|
147
|
-
},
|
|
148
|
-
onChange: function onChange(v, way) {
|
|
149
|
-
if (v) {
|
|
150
|
-
data.tabBackground.image = v.url;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
if (way) {
|
|
154
|
-
data.tabBackground.imageSelectedWay = way;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
_this.selfRender();
|
|
158
|
-
},
|
|
159
|
-
value: (_e = data.tabBackground) === null || _e === void 0 ? void 0 : _e.image
|
|
160
105
|
})));
|
|
161
106
|
};
|
|
162
107
|
|
|
@@ -166,13 +111,10 @@ function (_super) {
|
|
|
166
111
|
color: '#232F46',
|
|
167
112
|
image: '',
|
|
168
113
|
bgType: 'color',
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
tabBgType: 'color'
|
|
174
|
-
}
|
|
175
|
-
}
|
|
114
|
+
tabBgType: 'color'
|
|
115
|
+
},
|
|
116
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
117
|
+
type: 'all'
|
|
176
118
|
};
|
|
177
119
|
return BackgroundConfig;
|
|
178
120
|
}(_BaseConfig["default"]);
|