@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
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = FlashDealConfig;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _ConfigTitle = _interopRequireDefault(require("./ConfigTitle"));
|
|
11
|
+
|
|
12
|
+
var _ConfigContent = _interopRequireDefault(require("./ConfigContent"));
|
|
13
|
+
|
|
14
|
+
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
15
|
+
|
|
16
|
+
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
17
|
+
|
|
18
|
+
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
19
|
+
|
|
20
|
+
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
21
|
+
|
|
22
|
+
var _locale = require("../../../../locale");
|
|
23
|
+
|
|
24
|
+
var _layout = require("../../../../constants/layout");
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
|
|
28
|
+
function FlashDealConfig(props) {
|
|
29
|
+
var data = props.data;
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
31
|
+
divider: "bold",
|
|
32
|
+
headerSize: "large",
|
|
33
|
+
source: [{
|
|
34
|
+
key: '1',
|
|
35
|
+
name: (0, _locale.i18n)('TITLE'),
|
|
36
|
+
value: /*#__PURE__*/_react["default"].createElement(_ConfigTitle["default"], {
|
|
37
|
+
panelProps: data.title
|
|
38
|
+
})
|
|
39
|
+
}, {
|
|
40
|
+
key: '2',
|
|
41
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
42
|
+
value: /*#__PURE__*/_react["default"].createElement(_ConfigContent["default"], {
|
|
43
|
+
panelProps: data
|
|
44
|
+
})
|
|
45
|
+
}, {
|
|
46
|
+
key: '3',
|
|
47
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
48
|
+
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
49
|
+
configCompSpace: true,
|
|
50
|
+
data: data.spacing
|
|
51
|
+
})
|
|
52
|
+
}, {
|
|
53
|
+
key: '4',
|
|
54
|
+
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
55
|
+
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
56
|
+
data: data.customize,
|
|
57
|
+
isHideAlign: true,
|
|
58
|
+
layoutSource: _layout.campaignLayout
|
|
59
|
+
})
|
|
60
|
+
}, {
|
|
61
|
+
key: '5',
|
|
62
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
63
|
+
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
64
|
+
data: data.background
|
|
65
|
+
})
|
|
66
|
+
}],
|
|
67
|
+
type: "triangle"
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
@@ -11,6 +11,8 @@ var _TextConfig = _interopRequireDefault(require("../../../../../meta-comp/confi
|
|
|
11
11
|
|
|
12
12
|
var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
|
|
13
13
|
|
|
14
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ImageConfig"));
|
|
15
|
+
|
|
14
16
|
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
15
17
|
|
|
16
18
|
var _common = require("../../../../../common");
|
|
@@ -65,21 +67,7 @@ function (_super) {
|
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
FlashDealConfigTitle.prototype.render = function () {
|
|
68
|
-
var _this = this;
|
|
69
|
-
|
|
70
70
|
var panelProps = this.props.panelProps;
|
|
71
|
-
|
|
72
|
-
var iconSetting = /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
73
|
-
title: ""
|
|
74
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.IconPicker, {
|
|
75
|
-
onChange: function onChange(icon) {
|
|
76
|
-
panelProps.icon.url = icon;
|
|
77
|
-
|
|
78
|
-
_this.reRender();
|
|
79
|
-
},
|
|
80
|
-
value: panelProps.icon.url
|
|
81
|
-
}));
|
|
82
|
-
|
|
83
71
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
72
|
className: "flash_sale_title"
|
|
85
73
|
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
@@ -88,8 +76,10 @@ function (_super) {
|
|
|
88
76
|
source: [{
|
|
89
77
|
key: 'iconConfig',
|
|
90
78
|
name: (0, _locale.i18n)('ICON'),
|
|
91
|
-
value:
|
|
92
|
-
|
|
79
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
80
|
+
data: panelProps.image
|
|
81
|
+
}),
|
|
82
|
+
metaOption: panelProps.image
|
|
93
83
|
}, {
|
|
94
84
|
key: 'headlineConfig',
|
|
95
85
|
name: (0, _locale.i18n)('HEADLINE'),
|
|
@@ -117,10 +107,7 @@ function (_super) {
|
|
|
117
107
|
|
|
118
108
|
FlashDealConfigTitle.defaultProps = {
|
|
119
109
|
panelProps: {
|
|
120
|
-
|
|
121
|
-
open: true,
|
|
122
|
-
url: ''
|
|
123
|
-
},
|
|
110
|
+
image: {},
|
|
124
111
|
headline: {},
|
|
125
112
|
button: {},
|
|
126
113
|
countDown: {
|
|
@@ -21,12 +21,23 @@ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
|
21
21
|
|
|
22
22
|
var _locale = require("../../../../locale");
|
|
23
23
|
|
|
24
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
25
|
+
|
|
24
26
|
var _layout = require("../../../../constants/layout");
|
|
25
27
|
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
29
|
|
|
28
30
|
function FlashDealConfig(props) {
|
|
29
31
|
var data = props.data;
|
|
32
|
+
|
|
33
|
+
var getLayout = function getLayout(v) {
|
|
34
|
+
if ((0, _coreUtil.isPc)()) {
|
|
35
|
+
data.customize.layout.pcLayout = v;
|
|
36
|
+
} else {
|
|
37
|
+
data.customize.layout.h5Layout = v;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
30
41
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
31
42
|
divider: "bold",
|
|
32
43
|
headerSize: "large",
|
|
@@ -55,7 +66,10 @@ function FlashDealConfig(props) {
|
|
|
55
66
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
56
67
|
data: data.customize,
|
|
57
68
|
isHideAlign: true,
|
|
58
|
-
layoutSource: _layout.flashDealLayout
|
|
69
|
+
layoutSource: (0, _coreUtil.isPc)() ? _layout.pcFlashDealLayout : _layout.flashDealLayout,
|
|
70
|
+
selectedLayoutFun: function selectedLayoutFun(v) {
|
|
71
|
+
getLayout(v);
|
|
72
|
+
}
|
|
59
73
|
})
|
|
60
74
|
}, {
|
|
61
75
|
key: '5',
|
|
@@ -86,6 +86,15 @@ function (_super) {
|
|
|
86
86
|
var _this = this;
|
|
87
87
|
|
|
88
88
|
var data = this.props.data;
|
|
89
|
+
|
|
90
|
+
var backgroundConfigs = /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
91
|
+
data: data.background,
|
|
92
|
+
name: (0, _locale.i18n)('PRODUCT_BACKGROUND')
|
|
93
|
+
}), /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
94
|
+
data: data.background.tabBackground,
|
|
95
|
+
name: (0, _locale.i18n)('TAB_BACKGROUND')
|
|
96
|
+
}));
|
|
97
|
+
|
|
89
98
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
90
99
|
divider: "bold",
|
|
91
100
|
headerSize: "large",
|
|
@@ -123,10 +132,7 @@ function (_super) {
|
|
|
123
132
|
}, {
|
|
124
133
|
key: '5',
|
|
125
134
|
name: (0, _locale.i18n)('BACKGROUND'),
|
|
126
|
-
value:
|
|
127
|
-
component: "recommend",
|
|
128
|
-
data: data.background
|
|
129
|
-
})
|
|
135
|
+
value: backgroundConfigs
|
|
130
136
|
}],
|
|
131
137
|
type: "triangle"
|
|
132
138
|
}));
|
|
@@ -21,6 +21,8 @@ var _coreUtil = require("../../../../../utils/coreUtil");
|
|
|
21
21
|
|
|
22
22
|
var _locale = require("../../../../../locale");
|
|
23
23
|
|
|
24
|
+
var _BackgroundConfig = _interopRequireDefault(require("../../../../common/config-panels/BackgroundConfig"));
|
|
25
|
+
|
|
24
26
|
require("./index.less");
|
|
25
27
|
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -139,14 +141,21 @@ function (_super) {
|
|
|
139
141
|
}),
|
|
140
142
|
metaOption: panelProps.login
|
|
141
143
|
}];
|
|
142
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
144
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
|
+
className: "search_dito_config_content"
|
|
146
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
143
147
|
headerSize: "middle",
|
|
144
148
|
noChange: true,
|
|
145
149
|
onRefresh: this.selfRender,
|
|
146
150
|
showActiveColor: true,
|
|
147
151
|
source: source,
|
|
148
152
|
type: "switch"
|
|
149
|
-
})
|
|
153
|
+
}), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
154
|
+
className: "topLine"
|
|
155
|
+
}, /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
156
|
+
data: panelProps.searchBarBg,
|
|
157
|
+
name: (0, _locale.i18n)('SEARCH_BAR_BACKGROUND')
|
|
158
|
+
})));
|
|
150
159
|
};
|
|
151
160
|
|
|
152
161
|
return SearchBarConfigContent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
.search_dito_config_content {
|
|
2
|
+
.topLine {
|
|
3
|
+
border-top: 1px solid #EDF0F4;
|
|
4
|
+
padding-top: 20px;
|
|
5
|
+
margin-top: 5px;
|
|
6
|
+
}
|
|
7
7
|
}
|
|
@@ -15,6 +15,8 @@ var _SpacingConfig = _interopRequireDefault(require("../../../common/config-pane
|
|
|
15
15
|
|
|
16
16
|
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
17
17
|
|
|
18
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
19
|
+
|
|
18
20
|
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
19
21
|
|
|
20
22
|
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
@@ -59,11 +61,35 @@ function (_super) {
|
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
SlideImageConfig.prototype.render = function () {
|
|
64
|
+
var _a, _b;
|
|
65
|
+
|
|
62
66
|
var data = this.props.data;
|
|
67
|
+
var source = [{
|
|
68
|
+
key: '1',
|
|
69
|
+
name: (0, _locale.i18n)('MOVE_IN_LOGO'),
|
|
70
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
71
|
+
data: (_a = data.content) === null || _a === void 0 ? void 0 : _a.moveIcon
|
|
72
|
+
}),
|
|
73
|
+
metaOption: (_b = data.content) === null || _b === void 0 ? void 0 : _b.moveIcon
|
|
74
|
+
}];
|
|
75
|
+
|
|
76
|
+
var contentConfig = /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
77
|
+
headerSize: "middle",
|
|
78
|
+
noChange: true,
|
|
79
|
+
onRefresh: this.selfRender,
|
|
80
|
+
showActiveColor: true,
|
|
81
|
+
source: source,
|
|
82
|
+
type: "switch"
|
|
83
|
+
});
|
|
84
|
+
|
|
63
85
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
64
86
|
divider: "bold",
|
|
65
87
|
headerSize: "large",
|
|
66
88
|
source: [{
|
|
89
|
+
key: '0',
|
|
90
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
91
|
+
value: contentConfig
|
|
92
|
+
}, {
|
|
67
93
|
key: '1',
|
|
68
94
|
name: (0, _locale.i18n)('GROUP'),
|
|
69
95
|
value: /*#__PURE__*/_react["default"].createElement(_ConfigGroup["default"], {
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _locale = require("../../../../locale");
|
|
11
|
+
|
|
12
|
+
var _common = require("../../../../common");
|
|
13
|
+
|
|
14
|
+
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
15
|
+
|
|
16
|
+
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
17
|
+
|
|
18
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
23
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
24
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
25
|
+
__proto__: []
|
|
26
|
+
} instanceof Array && function (d, b) {
|
|
27
|
+
d.__proto__ = b;
|
|
28
|
+
} || function (d, b) {
|
|
29
|
+
for (var p in b) {
|
|
30
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
return _extendStatics(d, b);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return function (d, b) {
|
|
38
|
+
_extendStatics(d, b);
|
|
39
|
+
|
|
40
|
+
function __() {
|
|
41
|
+
this.constructor = d;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45
|
+
};
|
|
46
|
+
}();
|
|
47
|
+
|
|
48
|
+
var CampaignSecondConfig =
|
|
49
|
+
/** @class */
|
|
50
|
+
function (_super) {
|
|
51
|
+
__extends(CampaignSecondConfig, _super);
|
|
52
|
+
|
|
53
|
+
function CampaignSecondConfig() {
|
|
54
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
+
|
|
56
|
+
_this.state = {};
|
|
57
|
+
|
|
58
|
+
_this.getContentPanel = function () {
|
|
59
|
+
var panelProps = _this.props.panelProps;
|
|
60
|
+
var defaultSource = [{
|
|
61
|
+
key: 'defaultSource_1',
|
|
62
|
+
name: (0, _locale.i18n)('TITLE'),
|
|
63
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
64
|
+
data: panelProps.groupName,
|
|
65
|
+
editText: true
|
|
66
|
+
}),
|
|
67
|
+
metaOption: panelProps.groupName
|
|
68
|
+
}];
|
|
69
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
70
|
+
headerSize: "middle",
|
|
71
|
+
onRefresh: function onRefresh() {
|
|
72
|
+
return (0, _coreUtil.renderPreview)();
|
|
73
|
+
},
|
|
74
|
+
showActiveColor: true,
|
|
75
|
+
source: defaultSource,
|
|
76
|
+
type: "switch"
|
|
77
|
+
}));
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
return _this;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
CampaignSecondConfig.prototype.render = function () {
|
|
84
|
+
var _this = this;
|
|
85
|
+
|
|
86
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
|
+
className: "campaign_second_conf_wrap"
|
|
88
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
89
|
+
divider: "bold",
|
|
90
|
+
headerSize: "large",
|
|
91
|
+
onRefresh: function onRefresh() {
|
|
92
|
+
return _this.resetHover();
|
|
93
|
+
},
|
|
94
|
+
source: [{
|
|
95
|
+
key: '1',
|
|
96
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
97
|
+
value: this.getContentPanel()
|
|
98
|
+
}]
|
|
99
|
+
}));
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
CampaignSecondConfig.defaultProps = {
|
|
103
|
+
panelProps: {}
|
|
104
|
+
};
|
|
105
|
+
return CampaignSecondConfig;
|
|
106
|
+
}(_BaseConfig["default"]);
|
|
107
|
+
|
|
108
|
+
var _default = CampaignSecondConfig;
|
|
109
|
+
exports["default"] = _default;
|
|
@@ -19,6 +19,8 @@ var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-
|
|
|
19
19
|
|
|
20
20
|
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
21
21
|
|
|
22
|
+
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
23
|
+
|
|
22
24
|
var _locale = require("../../../../locale");
|
|
23
25
|
|
|
24
26
|
require("./index.less");
|
|
@@ -206,6 +208,7 @@ function (_super) {
|
|
|
206
208
|
}
|
|
207
209
|
|
|
208
210
|
SlideImageSecondConfig.prototype.render = function () {
|
|
211
|
+
var panelProps = this.props.panelProps;
|
|
209
212
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
210
213
|
className: "slide_image_second_conf_wrap"
|
|
211
214
|
}, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
@@ -218,6 +221,14 @@ function (_super) {
|
|
|
218
221
|
key: 'video1',
|
|
219
222
|
name: (0, _locale.i18n)('CONTENT'),
|
|
220
223
|
value: this.getVideoContent()
|
|
224
|
+
}, {
|
|
225
|
+
key: 'video2',
|
|
226
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
227
|
+
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
228
|
+
data: panelProps.background,
|
|
229
|
+
name: "",
|
|
230
|
+
type: "image"
|
|
231
|
+
})
|
|
221
232
|
}]
|
|
222
233
|
}));
|
|
223
234
|
};
|
|
@@ -69,6 +69,8 @@ var _SearchDITO = _interopRequireDefault(require("../composite-comp/dito/compone
|
|
|
69
69
|
|
|
70
70
|
var _News = _interopRequireDefault(require("../composite-comp/dito/components/News"));
|
|
71
71
|
|
|
72
|
+
var _Campaign = _interopRequireDefault(require("../composite-comp/dito/components/Campaign"));
|
|
73
|
+
|
|
72
74
|
var _BannerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/BannerConfig"));
|
|
73
75
|
|
|
74
76
|
var _DividerConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/DividerConfig"));
|
|
@@ -133,6 +135,8 @@ var _SearchDITOConfig = _interopRequireDefault(require("../composite-comp/dito/c
|
|
|
133
135
|
|
|
134
136
|
var _NewsConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/NewsConfig"));
|
|
135
137
|
|
|
138
|
+
var _CampaignConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/CampaignConfig"));
|
|
139
|
+
|
|
136
140
|
var _BannerSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/BannerSecondConfig"));
|
|
137
141
|
|
|
138
142
|
var _TextSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/TextSecondConfig"));
|
|
@@ -179,6 +183,8 @@ var _SearchDITOSecondConfig = _interopRequireDefault(require("../composite-comp/
|
|
|
179
183
|
|
|
180
184
|
var _NewsSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/NewsSecondConfig"));
|
|
181
185
|
|
|
186
|
+
var _CampaignSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/CampaignSecondConfig"));
|
|
187
|
+
|
|
182
188
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
183
189
|
|
|
184
190
|
var _a, _b, _c; // 组件
|
|
@@ -187,17 +193,17 @@ var _a, _b, _c; // 组件
|
|
|
187
193
|
/**
|
|
188
194
|
* 渲染组件索引
|
|
189
195
|
*/
|
|
190
|
-
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a[_SearchBanner["default"].type] = _SearchBanner["default"], _a[_GroupedCarousel["default"].type] = _GroupedCarousel["default"], _a[_SlideImage["default"].type] = _SlideImage["default"], _a[_SearchDITO["default"].type] = _SearchDITO["default"], _a[_News["default"].type] = _News["default"], _a);
|
|
196
|
+
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_GroupBuy["default"].type] = _GroupBuy["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_MenuNavigation["default"].type] = _MenuNavigation["default"], _a[_HeadNavigation["default"].type] = _HeadNavigation["default"], _a[_PersonalInformation["default"].type] = _PersonalInformation["default"], _a[_CommonFunctions["default"].type] = _CommonFunctions["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a[_Bargain["default"].type] = _Bargain["default"], _a[_SearchBanner["default"].type] = _SearchBanner["default"], _a[_GroupedCarousel["default"].type] = _GroupedCarousel["default"], _a[_SlideImage["default"].type] = _SlideImage["default"], _a[_SearchDITO["default"].type] = _SearchDITO["default"], _a[_News["default"].type] = _News["default"], _a[_Campaign["default"].type] = _Campaign["default"], _a);
|
|
191
197
|
/**
|
|
192
198
|
* 一级配置面板索引
|
|
193
199
|
*/
|
|
194
200
|
|
|
195
201
|
exports.componentMap = componentMap;
|
|
196
|
-
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b[_SearchBanner["default"].type] = _SearchBannerConfig["default"], _b[_GroupedCarousel["default"].type] = _GroupedCarouselConfig["default"], _b[_SlideImage["default"].type] = _SlideImageConfig["default"], _b[_SearchDITO["default"].type] = _SearchDITOConfig["default"], _b[_News["default"].type] = _NewsConfig["default"], _b);
|
|
202
|
+
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_GroupBuy["default"].type] = _GroupBuyConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_MenuNavigation["default"].type] = _MenuNavigationConfig["default"], _b[_HeadNavigation["default"].type] = _HeadNavigationConfig["default"], _b[_PersonalInformation["default"].type] = _PersonalInformationConfig["default"], _b[_CommonFunctions["default"].type] = _CommonFunctionsConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b[_Bargain["default"].type] = _BargainConfig["default"], _b[_SearchBanner["default"].type] = _SearchBannerConfig["default"], _b[_GroupedCarousel["default"].type] = _GroupedCarouselConfig["default"], _b[_SlideImage["default"].type] = _SlideImageConfig["default"], _b[_SearchDITO["default"].type] = _SearchDITOConfig["default"], _b[_News["default"].type] = _NewsConfig["default"], _b[_Campaign["default"].type] = _CampaignConfig["default"], _b);
|
|
197
203
|
/**
|
|
198
204
|
* 二级配置面板索引
|
|
199
205
|
*/
|
|
200
206
|
|
|
201
207
|
exports.configPanelMap = configPanelMap;
|
|
202
|
-
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_SearchBanner["default"].type] = _SearchBannerSecondConfig["default"], _c[_GroupedCarousel["default"].type] = _GroupedCarouselSecondConfig["default"], _c[_SlideImage["default"].type] = _SlideImageSecondConfig["default"], _c[_SearchDITO["default"].type] = _SearchDITOSecondConfig["default"], _c[_News["default"].type] = _NewsSecondConfig["default"], _c);
|
|
208
|
+
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_MenuNavigation["default"].type] = _MenuNavigationSecondConfig["default"], _c[_HeadNavigation["default"].type] = _HeadNavigationSecondConfig["default"], _c[_PersonalInformation["default"].type] = _PersonalInformationSecondConfig["default"], _c[_CommonFunctions["default"].type] = _CommonFunctionsSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c[_SearchBanner["default"].type] = _SearchBannerSecondConfig["default"], _c[_GroupedCarousel["default"].type] = _GroupedCarouselSecondConfig["default"], _c[_SlideImage["default"].type] = _SlideImageSecondConfig["default"], _c[_SearchDITO["default"].type] = _SearchDITOSecondConfig["default"], _c[_News["default"].type] = _NewsSecondConfig["default"], _c[_Campaign["default"].type] = _CampaignSecondConfig["default"], _c);
|
|
203
209
|
exports.secondConfigPanelMap = secondConfigPanelMap;
|
package/es/constants/index.js
CHANGED
package/es/constants/layout.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.videoPCLayout = exports.videoH5Layout = exports.slideImageLayout = exports.searchLayout = exports.searchDitoLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.newsLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.groupedCarouselLayout = exports.flashDealLayout = exports.dividerLayout = exports.carouselLayout = exports.bannerSlideLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
|
|
6
|
+
exports.videoPCLayout = exports.videoH5Layout = exports.slideImageLayout = exports.searchLayout = exports.searchDitoLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.pcFlashDealLayout = exports.newsletterLayout = exports.newsLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryPcLayout = exports.imageGalleryLayout = exports.groupedCarouselLayout = exports.flashDealLayout = exports.dividerLayout = exports.carouselLayout = exports.campaignLayout = exports.bannerSlideLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
|
|
7
7
|
|
|
8
8
|
var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
|
|
9
9
|
|
|
@@ -13,6 +13,10 @@ var _imageGalleryLayout = _interopRequireDefault(require("../assets/images/layou
|
|
|
13
13
|
|
|
14
14
|
var _imageGalleryLayout2 = _interopRequireDefault(require("../assets/images/layout-icon/imageGalleryLayout2.png"));
|
|
15
15
|
|
|
16
|
+
var _imageGalleryLayout3 = _interopRequireDefault(require("../assets/images/layout-icon/imageGalleryLayout3.png"));
|
|
17
|
+
|
|
18
|
+
var _imageGalleryLayout4 = _interopRequireDefault(require("../assets/images/layout-icon/imageGalleryLayout4.png"));
|
|
19
|
+
|
|
16
20
|
var _walletNuriLayout = _interopRequireDefault(require("../assets/images/layout-icon/walletNuriLayout1.png"));
|
|
17
21
|
|
|
18
22
|
var _walletLayout = _interopRequireDefault(require("../assets/images/layout-icon/walletLayout1.png"));
|
|
@@ -97,6 +101,8 @@ var _searchDitoLayout = _interopRequireDefault(require("../assets/images/layout-
|
|
|
97
101
|
|
|
98
102
|
var _newsLayout = _interopRequireDefault(require("../assets/images/layout-icon/news-layout1.png"));
|
|
99
103
|
|
|
104
|
+
var _campaignLayout = _interopRequireDefault(require("../assets/images/layout-icon/campaignLayout1.png"));
|
|
105
|
+
|
|
100
106
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
101
107
|
|
|
102
108
|
// import p3 from '../assets/images/layout-icon/layout-imagetext-p3.png';
|
|
@@ -126,8 +132,26 @@ var imageGalleryLayout = [{
|
|
|
126
132
|
id: 'layout2',
|
|
127
133
|
name: 'layout2',
|
|
128
134
|
image: _imageGalleryLayout2["default"]
|
|
135
|
+
}, {
|
|
136
|
+
id: 'layout3',
|
|
137
|
+
name: 'layout3',
|
|
138
|
+
image: _imageGalleryLayout3["default"]
|
|
139
|
+
}, {
|
|
140
|
+
id: 'layout4',
|
|
141
|
+
name: 'layout4',
|
|
142
|
+
image: _imageGalleryLayout4["default"]
|
|
129
143
|
}];
|
|
130
144
|
exports.imageGalleryLayout = imageGalleryLayout;
|
|
145
|
+
var imageGalleryPcLayout = [{
|
|
146
|
+
id: 'layout1',
|
|
147
|
+
name: 'layout1',
|
|
148
|
+
image: _imageGalleryLayout["default"]
|
|
149
|
+
}, {
|
|
150
|
+
id: 'layout2',
|
|
151
|
+
name: 'layout2',
|
|
152
|
+
image: _imageGalleryLayout2["default"]
|
|
153
|
+
}];
|
|
154
|
+
exports.imageGalleryPcLayout = imageGalleryPcLayout;
|
|
131
155
|
var WalletLayout = [{
|
|
132
156
|
id: 'layout1',
|
|
133
157
|
name: 'layout1',
|
|
@@ -353,6 +377,12 @@ var flashDealLayout = [{
|
|
|
353
377
|
image: _layoutImagetextM4["default"]
|
|
354
378
|
}];
|
|
355
379
|
exports.flashDealLayout = flashDealLayout;
|
|
380
|
+
var pcFlashDealLayout = [{
|
|
381
|
+
id: 'layout1',
|
|
382
|
+
name: 'layout1',
|
|
383
|
+
image: _flashDealLayout["default"]
|
|
384
|
+
}];
|
|
385
|
+
exports.pcFlashDealLayout = pcFlashDealLayout;
|
|
356
386
|
var groupedCarouselLayout = [{
|
|
357
387
|
id: 'layout1',
|
|
358
388
|
name: 'layout1',
|
|
@@ -376,4 +406,10 @@ var newsLayout = [{
|
|
|
376
406
|
name: 'layout1',
|
|
377
407
|
image: _newsLayout["default"]
|
|
378
408
|
}];
|
|
379
|
-
exports.newsLayout = newsLayout;
|
|
409
|
+
exports.newsLayout = newsLayout;
|
|
410
|
+
var campaignLayout = [{
|
|
411
|
+
id: 'layout1',
|
|
412
|
+
name: 'layout1',
|
|
413
|
+
image: _campaignLayout["default"]
|
|
414
|
+
}];
|
|
415
|
+
exports.campaignLayout = campaignLayout;
|
|
@@ -144,6 +144,10 @@ var getSecondConfigName = function getSecondConfigName(selectedNode, clickedGrou
|
|
|
144
144
|
case 'PERSONAL_INFOMATION':
|
|
145
145
|
groupName = panelProps.sourceType;
|
|
146
146
|
break;
|
|
147
|
+
|
|
148
|
+
case 'CAMPAIGN':
|
|
149
|
+
groupName = panelProps.type;
|
|
150
|
+
break;
|
|
147
151
|
}
|
|
148
152
|
|
|
149
153
|
return groupName || 'Group Name';
|
|
@@ -144,7 +144,7 @@ function compositeDecorator(WrappedComponent) {
|
|
|
144
144
|
var zIndex = '0';
|
|
145
145
|
var position = 'relative';
|
|
146
146
|
|
|
147
|
-
if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY') {
|
|
147
|
+
if (nodeData.type === 'CAROUSEL' || nodeData.type === 'IMAGE_GALLERY' || nodeData.type === 'SEARCH_DITO') {
|
|
148
148
|
zIndex = '1';
|
|
149
149
|
} // 解决pc导航hover上去,类目被下面组件遮罩的问题
|
|
150
150
|
|
|
@@ -196,7 +196,10 @@ function compositeDecorator(WrappedComponent) {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
if (nodeData.type === 'SLIDE_IMAGE') {
|
|
200
|
+
wrapStyle.overflow = 'hidden';
|
|
201
|
+
}
|
|
202
|
+
|
|
200
203
|
return wrapStyle;
|
|
201
204
|
};
|
|
202
205
|
|
package/es/locale/en/en.json
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"FLASH_SALE": "Flash Sale",
|
|
2
3
|
"COLLECT_VOUCHER_SUCCESS": "Voucher collection successful!",
|
|
4
|
+
"MOVE_IN_LOGO": "Move In Logo",
|
|
5
|
+
"SEARCH_BAR_BACKGROUND": "Search Bar Background",
|
|
6
|
+
"CONFIRM_TO_LOGOUT": "Confirm to Logout",
|
|
7
|
+
"LOG_OUT": "Log Out",
|
|
8
|
+
"MY_ACCOUNT": "My Account",
|
|
3
9
|
"LOGIN_BUTTON": "Login Button",
|
|
4
10
|
"SEARCH_ICON": "Search Icon",
|
|
5
11
|
"NAVIGATION": "Navigation",
|
|
@@ -288,7 +294,6 @@
|
|
|
288
294
|
"QUERY": "Query",
|
|
289
295
|
"SEARCH": "Search",
|
|
290
296
|
"GROUP_BY": "Group By",
|
|
291
|
-
"FLASH_SALE": "Flash Sale",
|
|
292
297
|
"THE_PRODUCT_QUANTITY_WILL_BE_AUTOMATICALLY_UPDATED_WITH_THE_ITEMS_THAT_MEET_THE_CATEGORY_CONDITIONS": "The product quantity will be automatically updated with the items that meet the category conditions",
|
|
293
298
|
"OK": "OK",
|
|
294
299
|
"CANCEL": "Cancel",
|