@fonixtree/magic-design 2.0.28 → 2.0.30
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/common/Field/index.js +20 -3
- package/es/common/LinkModal/CatgTable/index.js +1 -1
- package/es/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/es/common/LinkModal/ProductDetailPage/index.js +1 -1
- package/es/composite-comp/bol/components/Carousel/index.js +34 -3
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +4 -2
- package/es/composite-comp/bol/components/Carousel/pc/index.js +4 -2
- package/es/composite-comp/bol/components/Location/defaultJSON.js +22 -16
- package/es/composite-comp/bol/components/Location/index.js +20 -58
- package/es/composite-comp/bol/components/Location/index.less +15 -0
- package/es/composite-comp/bol/config-panels/LocationConfig/index.js +50 -23
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +16 -12
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/es/constants/component-types.js +6 -2
- package/es/constants/index.js +4 -0
- package/es/constants/layout.js +9 -1
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +1 -1
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +1 -1
- package/es/locale/en/en.json +2 -0
- package/es/locale/es/es.json +2 -0
- package/es/locale/id/id.json +2 -0
- package/es/meta-comp/components/Image/index.js +18 -3
- package/lib/common/Field/index.js +20 -3
- package/lib/common/LinkModal/CatgTable/index.js +1 -1
- package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/lib/common/LinkModal/ProductDetailPage/index.js +1 -1
- package/lib/composite-comp/bol/components/Carousel/index.js +34 -3
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +4 -2
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +4 -2
- package/lib/composite-comp/bol/components/Location/defaultJSON.js +22 -16
- package/lib/composite-comp/bol/components/Location/index.js +20 -58
- package/lib/composite-comp/bol/components/Location/index.less +15 -0
- package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +50 -23
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +16 -12
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +1 -1
- package/lib/constants/component-types.js +6 -2
- package/lib/constants/index.js +4 -0
- package/lib/constants/layout.js +9 -1
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +1 -1
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +1 -1
- package/lib/locale/en/en.json +2 -0
- package/lib/locale/es/es.json +2 -0
- package/lib/locale/id/id.json +2 -0
- package/lib/meta-comp/components/Image/index.js +18 -3
- package/package.json +1 -1
- package/es/composite-comp/bol/config-panels/LocationConfig/MyEditor/index.js +0 -42
- package/lib/composite-comp/bol/config-panels/LocationConfig/MyEditor/index.js +0 -42
package/lib/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.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.WalletLayout = void 0;
|
|
6
|
+
exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.WalletLayout = void 0;
|
|
7
7
|
|
|
8
8
|
var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
|
|
9
9
|
|
|
@@ -43,6 +43,8 @@ var _imageTextRight = _interopRequireDefault(require("../assets/images/layout-ic
|
|
|
43
43
|
|
|
44
44
|
var _newsletter = _interopRequireDefault(require("../assets/images/layout-icon/newsletter.svg"));
|
|
45
45
|
|
|
46
|
+
var _locationLayout = _interopRequireDefault(require("../assets/images/layout-icon/locationLayout.png"));
|
|
47
|
+
|
|
46
48
|
var _layoutRecommend = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-1.png"));
|
|
47
49
|
|
|
48
50
|
var _layoutRecommend2 = _interopRequireDefault(require("../assets/images/layout-icon/layout-recommend-2.png"));
|
|
@@ -90,6 +92,12 @@ var searchLayout = [{
|
|
|
90
92
|
image: _layoutSearch["default"]
|
|
91
93
|
}];
|
|
92
94
|
exports.searchLayout = searchLayout;
|
|
95
|
+
var locationLayout = [{
|
|
96
|
+
id: 'top',
|
|
97
|
+
name: 'top',
|
|
98
|
+
image: _locationLayout["default"]
|
|
99
|
+
}];
|
|
100
|
+
exports.locationLayout = locationLayout;
|
|
93
101
|
var imageGalleryLayout = [{
|
|
94
102
|
id: 'layout1',
|
|
95
103
|
name: 'layout1',
|
package/lib/locale/en/en.json
CHANGED
package/lib/locale/es/es.json
CHANGED
package/lib/locale/id/id.json
CHANGED
|
@@ -167,7 +167,8 @@ function (_super) {
|
|
|
167
167
|
var _c = this.props,
|
|
168
168
|
data = _c.data,
|
|
169
169
|
isBackground = _c.isBackground,
|
|
170
|
-
hoverState = _c.hoverState
|
|
170
|
+
hoverState = _c.hoverState,
|
|
171
|
+
notNeedLazy = _c.notNeedLazy;
|
|
171
172
|
var hoverImgSrc = this.state.hoverImgSrc; // const { hoverSrc } = this.state;
|
|
172
173
|
// console.log('--metaImage ', this.props);
|
|
173
174
|
|
|
@@ -192,7 +193,20 @@ function (_super) {
|
|
|
192
193
|
onClick: function onClick() {
|
|
193
194
|
(0, _coreUtil.clickUrl)(data.content.clickUrl);
|
|
194
195
|
}
|
|
195
|
-
}, srcImg && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(
|
|
196
|
+
}, srcImg && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, notNeedLazy ? /*#__PURE__*/_react["default"].createElement("img", {
|
|
197
|
+
ref: this.imgRef,
|
|
198
|
+
onLoad: function onLoad() {
|
|
199
|
+
var scale = _this.imgRef.current.clientWidth / 600;
|
|
200
|
+
|
|
201
|
+
_this.setState({
|
|
202
|
+
scale: scale
|
|
203
|
+
});
|
|
204
|
+
},
|
|
205
|
+
onMouseEnter: this.mouseEnterImg,
|
|
206
|
+
onMouseLeave: this.mouseLeaveImg,
|
|
207
|
+
src: srcImg,
|
|
208
|
+
style: (0, _commonUtil.pxToRem)(this.getStyle())
|
|
209
|
+
}) : /*#__PURE__*/_react["default"].createElement(_ImageLazy["default"], {
|
|
196
210
|
onLoadFunc: function onLoadFunc(clientWidth) {
|
|
197
211
|
var scale = clientWidth / 600;
|
|
198
212
|
|
|
@@ -231,7 +245,8 @@ function (_super) {
|
|
|
231
245
|
isBackground: false,
|
|
232
246
|
hoverState: false,
|
|
233
247
|
limitWidthHeight: false,
|
|
234
|
-
scale: 1
|
|
248
|
+
scale: 1,
|
|
249
|
+
notNeedLazy: false
|
|
235
250
|
};
|
|
236
251
|
Image = __decorate([_decorator.metaDecorator], Image);
|
|
237
252
|
return Image;
|
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
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 _reactAce = _interopRequireDefault(require("react-ace"));
|
|
11
|
-
|
|
12
|
-
require("ace-builds/src-noconflict/mode-html");
|
|
13
|
-
|
|
14
|
-
require("ace-builds/src-noconflict/mode-javascript");
|
|
15
|
-
|
|
16
|
-
require("ace-builds/src-noconflict/theme-github");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
// 可选的主题样式
|
|
21
|
-
var MyEditor = function MyEditor(props) {
|
|
22
|
-
var value = props.value,
|
|
23
|
-
changeVal = props.changeVal,
|
|
24
|
-
blurArea = props.blurArea;
|
|
25
|
-
return /*#__PURE__*/_react["default"].createElement(_reactAce["default"], {
|
|
26
|
-
editorProps: {
|
|
27
|
-
$blockScrolling: true
|
|
28
|
-
},
|
|
29
|
-
mode: "html",
|
|
30
|
-
name: "editor",
|
|
31
|
-
onBlur: blurArea,
|
|
32
|
-
onChange: changeVal,
|
|
33
|
-
style: {
|
|
34
|
-
width: '100%'
|
|
35
|
-
},
|
|
36
|
-
theme: "github",
|
|
37
|
-
value: value
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
var _default = MyEditor;
|
|
42
|
-
exports["default"] = _default;
|
|
@@ -1,42 +0,0 @@
|
|
|
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 _reactAce = _interopRequireDefault(require("react-ace"));
|
|
11
|
-
|
|
12
|
-
require("ace-builds/src-noconflict/mode-html");
|
|
13
|
-
|
|
14
|
-
require("ace-builds/src-noconflict/mode-javascript");
|
|
15
|
-
|
|
16
|
-
require("ace-builds/src-noconflict/theme-github");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
// 可选的主题样式
|
|
21
|
-
var MyEditor = function MyEditor(props) {
|
|
22
|
-
var value = props.value,
|
|
23
|
-
changeVal = props.changeVal,
|
|
24
|
-
blurArea = props.blurArea;
|
|
25
|
-
return /*#__PURE__*/_react["default"].createElement(_reactAce["default"], {
|
|
26
|
-
editorProps: {
|
|
27
|
-
$blockScrolling: true
|
|
28
|
-
},
|
|
29
|
-
mode: "html",
|
|
30
|
-
name: "editor",
|
|
31
|
-
onBlur: blurArea,
|
|
32
|
-
onChange: changeVal,
|
|
33
|
-
style: {
|
|
34
|
-
width: '100%'
|
|
35
|
-
},
|
|
36
|
-
theme: "github",
|
|
37
|
-
value: value
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
var _default = MyEditor;
|
|
42
|
-
exports["default"] = _default;
|