@fonixtree/magic-design 1.0.168 → 1.0.170
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/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
- package/es/common/Field/index.js +3 -3
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +31 -17
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +14 -8
- 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/components/ProductItem/index.js +1 -1
- package/es/composite-comp/dito/components/GroupedCarousel/pc/index.js +8 -2
- package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.js +114 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +2 -2
- package/es/constants/layout.js +23 -1
- package/es/meta-comp/config-panels/TextConfig/index.js +4 -8
- package/es/meta-comp/config-panels/TextConfig/index.less +7 -0
- package/es/utils/commonUtil.js +60 -89
- package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
- package/lib/common/Field/index.js +3 -3
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +31 -17
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +14 -8
- 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/components/ProductItem/index.js +1 -1
- package/lib/composite-comp/dito/components/GroupedCarousel/pc/index.js +8 -2
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.js +114 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +2 -2
- package/lib/constants/layout.js +23 -1
- package/lib/meta-comp/config-panels/TextConfig/index.js +4 -8
- package/lib/meta-comp/config-panels/TextConfig/index.less +7 -0
- package/lib/utils/commonUtil.js +60 -89
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
package/es/common/Field/index.js
CHANGED
|
@@ -71,13 +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
77
|
bold: split === 'bold',
|
|
78
78
|
solid: split === 'solid'
|
|
79
79
|
})
|
|
80
|
-
}
|
|
80
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
81
|
className: (0, _classnames["default"])('field-item', {
|
|
82
82
|
horizontal: layout === 'horizontal'
|
|
83
83
|
})
|
|
@@ -151,23 +151,37 @@ function (_super) {
|
|
|
151
151
|
maxWidth: "100%"
|
|
152
152
|
}));
|
|
153
153
|
}));
|
|
154
|
-
})),
|
|
155
|
-
className:
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
},
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
+
}))));
|
|
171
185
|
};
|
|
172
186
|
|
|
173
187
|
ImageGalleryMobile.defaultProps = {
|
|
@@ -16,12 +16,18 @@
|
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: center;
|
|
18
18
|
}
|
|
19
|
-
.m-image-gallery-mobile .fluid-content
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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;
|
|
27
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) {
|
package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js
CHANGED
|
@@ -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',
|
|
@@ -161,7 +161,7 @@ function (_super) {
|
|
|
161
161
|
}, data.url && /*#__PURE__*/_react["default"].createElement("img", {
|
|
162
162
|
alt: "welcome advertise",
|
|
163
163
|
onClick: function onClick() {
|
|
164
|
-
(
|
|
164
|
+
if (window.magicDesign.h5JumpUrlConfig) window.magicDesign.h5JumpUrlConfig(data.adObj, 'voucherRedeemed');
|
|
165
165
|
},
|
|
166
166
|
src: data.url
|
|
167
167
|
}));
|
|
@@ -127,10 +127,16 @@ function (_super) {
|
|
|
127
127
|
}
|
|
128
128
|
}, tab.groupName.open && (tabIndex === index ? /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
129
129
|
data: tab.hover.groupName,
|
|
130
|
-
iconHeight: 46
|
|
130
|
+
iconHeight: 46,
|
|
131
|
+
onTextInput: function onTextInput(text) {
|
|
132
|
+
tab.groupName.text = text;
|
|
133
|
+
}
|
|
131
134
|
}) : /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
|
|
132
135
|
data: tab.groupName,
|
|
133
|
-
iconHeight: 46
|
|
136
|
+
iconHeight: 46,
|
|
137
|
+
onTextInput: function onTextInput(text) {
|
|
138
|
+
tab.hover.groupName.text = text;
|
|
139
|
+
}
|
|
134
140
|
})));
|
|
135
141
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
136
142
|
className: "tab-content"
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
|
+
var _locale = require("../../../../../../../locale");
|
|
15
|
+
|
|
16
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
25
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
26
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
27
|
+
__proto__: []
|
|
28
|
+
} instanceof Array && function (d, b) {
|
|
29
|
+
d.__proto__ = b;
|
|
30
|
+
} || function (d, b) {
|
|
31
|
+
for (var p in b) {
|
|
32
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return _extendStatics(d, b);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return function (d, b) {
|
|
40
|
+
_extendStatics(d, b);
|
|
41
|
+
|
|
42
|
+
function __() {
|
|
43
|
+
this.constructor = d;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47
|
+
};
|
|
48
|
+
}();
|
|
49
|
+
|
|
50
|
+
var AComponent =
|
|
51
|
+
/** @class */
|
|
52
|
+
function (_super) {
|
|
53
|
+
__extends(AComponent, _super);
|
|
54
|
+
|
|
55
|
+
function AComponent() {
|
|
56
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
+
|
|
58
|
+
_this.state = {};
|
|
59
|
+
return _this;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
AComponent.prototype.render = function () {
|
|
63
|
+
var _a = this.props,
|
|
64
|
+
title = _a.title,
|
|
65
|
+
confirmText = _a.confirmText,
|
|
66
|
+
cancelText = _a.cancelText,
|
|
67
|
+
onConfirm = _a.onConfirm,
|
|
68
|
+
onClose = _a.onClose;
|
|
69
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
|
+
className: "search-dito-confirm-modal"
|
|
71
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
|
+
className: "modal-shadow",
|
|
73
|
+
onClick: onClose
|
|
74
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
|
+
className: "modal-content"
|
|
76
|
+
}, title && /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
+
className: "modal-title"
|
|
78
|
+
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
|
+
className: "modal-btn-wrap"
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
|
+
onClick: onClose
|
|
82
|
+
}, cancelText), /*#__PURE__*/_react["default"].createElement("div", {
|
|
83
|
+
onClick: onConfirm
|
|
84
|
+
}, confirmText))));
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
return AComponent;
|
|
88
|
+
}(_react.Component);
|
|
89
|
+
|
|
90
|
+
AComponent.propTypes = {
|
|
91
|
+
/** title */
|
|
92
|
+
title: _propTypes["default"].string,
|
|
93
|
+
|
|
94
|
+
/** confirmText */
|
|
95
|
+
confirmText: _propTypes["default"].string,
|
|
96
|
+
|
|
97
|
+
/** cancelText */
|
|
98
|
+
cancelText: _propTypes["default"].string,
|
|
99
|
+
|
|
100
|
+
/** 确认按钮点击 */
|
|
101
|
+
onConfirm: function onConfirm() {},
|
|
102
|
+
|
|
103
|
+
/** 取消按钮点击 */
|
|
104
|
+
onClose: function onClose() {}
|
|
105
|
+
};
|
|
106
|
+
AComponent.defaultProps = {
|
|
107
|
+
title: '',
|
|
108
|
+
confirmText: (0, _locale.i18n)('CONFIRM'),
|
|
109
|
+
cancelText: (0, _locale.i18n)('CANCEL'),
|
|
110
|
+
onConfirm: function onConfirm() {},
|
|
111
|
+
onCancel: function onCancel() {}
|
|
112
|
+
};
|
|
113
|
+
var _default = AComponent;
|
|
114
|
+
exports["default"] = _default;
|
|
@@ -486,7 +486,7 @@ function (_super) {
|
|
|
486
486
|
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
487
487
|
key: m.model.catgId,
|
|
488
488
|
onClick: function onClick() {
|
|
489
|
-
|
|
489
|
+
if (window.magicDesign.h5JumpUrlConfig) window.magicDesign.h5JumpUrlConfig(m.model.catgRela);
|
|
490
490
|
},
|
|
491
491
|
onMouseEnter: function onMouseEnter(e) {
|
|
492
492
|
return _this.onMouseEnter(e.target, m);
|
|
@@ -506,7 +506,7 @@ function (_super) {
|
|
|
506
506
|
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
507
507
|
key: m.model.catgId,
|
|
508
508
|
onClick: function onClick() {
|
|
509
|
-
|
|
509
|
+
if (window.magicDesign.h5JumpUrlConfig) window.magicDesign.h5JumpUrlConfig(m.model.catgRela);
|
|
510
510
|
}
|
|
511
511
|
}, /*#__PURE__*/_react["default"].createElement("div", null, m.model.catgName), /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
|
|
512
512
|
className: "icon_right",
|
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.pcFlashDealLayout = exports.newsletterLayout = exports.newsLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.groupedCarouselLayout = exports.flashDealLayout = exports.dividerLayout = exports.carouselLayout = exports.campaignLayout = 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"));
|
|
@@ -128,8 +132,26 @@ var imageGalleryLayout = [{
|
|
|
128
132
|
id: 'layout2',
|
|
129
133
|
name: 'layout2',
|
|
130
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"]
|
|
131
143
|
}];
|
|
132
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;
|
|
133
155
|
var WalletLayout = [{
|
|
134
156
|
id: 'layout1',
|
|
135
157
|
name: 'layout1',
|
|
@@ -177,7 +177,8 @@ function (_super) {
|
|
|
177
177
|
|
|
178
178
|
var _a = this.props,
|
|
179
179
|
data = _a.data,
|
|
180
|
-
outputType = _a.outputType
|
|
180
|
+
outputType = _a.outputType,
|
|
181
|
+
editText = _a.editText;
|
|
181
182
|
var textData = _mobx.store.textSelection ? _mobx.store.textSelection : data.content;
|
|
182
183
|
|
|
183
184
|
if (!data.spacing) {
|
|
@@ -360,14 +361,9 @@ function (_super) {
|
|
|
360
361
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
361
362
|
ref: this.containerRef,
|
|
362
363
|
className: "m-text-config"
|
|
363
|
-
}, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
364
|
+
}, editText && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
365
|
+
className: "text-input",
|
|
364
366
|
split: "solid",
|
|
365
|
-
style: {
|
|
366
|
-
marginTop: '20px',
|
|
367
|
-
marginBottom: '0',
|
|
368
|
-
paddingBottom: '24px',
|
|
369
|
-
borderColor: '#EDF0F4'
|
|
370
|
-
},
|
|
371
367
|
title: (0, _locale.i18n)('TEXT')
|
|
372
368
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Input, {
|
|
373
369
|
onChange: function onChange(e) {
|