@fonixtree/magic-design 2.0.62 → 2.0.64
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 +18 -6
- package/es/assets/fonts/magic-box-iconfont.css.bak +15 -12
- package/es/assets/fonts/magic-box-iconfont.js +1 -5
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -5
- 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/base64/index.js +28 -2
- package/es/common/ImagePicker/index.js +0 -2
- package/es/common/LinkModal/FunctionTable/index.js +2 -1
- package/es/common/LinkModal/index.js +14 -2
- package/es/common/MyModal/index.less +1 -1
- package/es/common/UrlPicker/index.js +3 -1
- package/es/composite-comp/bol/components/ImageText/pc/index.js +2 -2
- package/es/composite-comp/bol/components/Video/index.js +1 -2
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
- package/es/composite-comp/common/components/AffiliateProductItem/index.less +1 -1
- package/es/composite-comp/common/components/ImageLabel/index.less +10 -3
- package/es/composite-comp/common/components/ProductItem/index.js +25 -17
- package/es/composite-comp/common/components/ProductItem/index.less +17 -8
- package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +1 -1
- package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +6 -6
- package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
- package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
- package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
- package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
- package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
- package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
- package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +4 -4
- package/es/composite-comp/dito/components/Recommend/pc/index.js +6 -6
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
- package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
- package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
- package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- package/es/constants/component-types.js +15 -3
- package/es/constants/index.js +8 -0
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
- package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/es/core/Designer/ChatRobot/index.js +36 -14
- package/es/core/Designer/ChatRobot/index.less +69 -28
- package/es/core/Designer/History/index.js +2 -2
- package/es/core/Designer/PageCompList/index.js +5 -3
- package/es/core/Designer/RenderHtml/index.js +18 -15
- package/es/core/Designer/RenderHtml/index.less +1 -1
- package/es/core/Designer/ToolBarModal/index.js +8 -7
- package/es/core/Designer/index.js +8 -0
- package/es/core/Renderer/index.js +3 -1
- package/es/decorator/compositeDecorator.js +23 -0
- package/es/locale/en/en.json +3 -0
- package/es/locale/es/es.json +3 -0
- package/es/locale/id/id.json +3 -0
- package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
- package/es/meta-comp/components/Text/index.js +2 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +5 -5
- package/es/meta-comp/config-panels/ImageConfig/index.js +4 -2
- package/es/utils/businessUtil.js +3 -3
- package/es/utils/commonUtil.js +2 -2
- package/lib/assets/fonts/magic-box-iconfont.css +18 -6
- package/lib/assets/fonts/magic-box-iconfont.css.bak +15 -12
- package/lib/assets/fonts/magic-box-iconfont.js +1 -5
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -5
- 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/base64/index.js +28 -2
- package/lib/common/ImagePicker/index.js +0 -2
- package/lib/common/LinkModal/FunctionTable/index.js +2 -1
- package/lib/common/LinkModal/index.js +14 -2
- package/lib/common/MyModal/index.less +1 -1
- package/lib/common/UrlPicker/index.js +3 -1
- package/lib/composite-comp/bol/components/ImageText/pc/index.js +2 -2
- package/lib/composite-comp/bol/components/Video/index.js +1 -2
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
- package/lib/composite-comp/common/components/AffiliateProductItem/index.less +1 -1
- package/lib/composite-comp/common/components/ImageLabel/index.less +10 -3
- package/lib/composite-comp/common/components/ProductItem/index.js +25 -17
- package/lib/composite-comp/common/components/ProductItem/index.less +17 -8
- package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +1 -1
- package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +6 -6
- package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
- package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
- package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
- package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
- package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
- package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
- package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +4 -4
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +6 -6
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
- package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
- package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
- package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
- package/lib/constants/component-types.js +15 -3
- package/lib/constants/index.js +8 -0
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
- package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
- package/lib/core/Designer/ChatRobot/index.js +36 -14
- package/lib/core/Designer/ChatRobot/index.less +69 -28
- package/lib/core/Designer/History/index.js +2 -2
- package/lib/core/Designer/PageCompList/index.js +5 -3
- package/lib/core/Designer/RenderHtml/index.js +18 -15
- package/lib/core/Designer/RenderHtml/index.less +1 -1
- package/lib/core/Designer/ToolBarModal/index.js +8 -7
- package/lib/core/Designer/index.js +8 -0
- package/lib/core/Renderer/index.js +3 -1
- package/lib/decorator/compositeDecorator.js +23 -0
- package/lib/locale/en/en.json +3 -0
- package/lib/locale/es/es.json +3 -0
- package/lib/locale/id/id.json +3 -0
- package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
- package/lib/meta-comp/components/Text/index.js +2 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +5 -5
- package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -2
- package/lib/utils/businessUtil.js +3 -3
- package/lib/utils/commonUtil.js +2 -2
- package/package.json +1 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -58,21 +58,24 @@ function (_super) {
|
|
|
58
58
|
_this.setState({
|
|
59
59
|
renderProps: renderProps
|
|
60
60
|
}, function () {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
61
|
+
/** 兼容分批加载 */
|
|
62
|
+
setTimeout(function () {
|
|
63
|
+
document.querySelector('#render-html-wrap > div').style = 'max-width:600px;margin:auto;';
|
|
64
|
+
/** 去除设计器模式下元素 */
|
|
65
|
+
|
|
66
|
+
document.querySelectorAll('#render-html-wrap > div .composite_mask').forEach(function (el) {
|
|
67
|
+
el.remove();
|
|
68
|
+
});
|
|
69
|
+
var html = document.querySelector('#render-html-wrap').innerHTML;
|
|
70
|
+
/** 处理背景图资源引号问题 */
|
|
71
|
+
|
|
72
|
+
html = html.replace(/url\("((\S|\s)*)"\)/g, 'url($1)');
|
|
73
|
+
resolve(html);
|
|
74
|
+
|
|
75
|
+
_this.setState({
|
|
76
|
+
renderProps: null
|
|
77
|
+
});
|
|
78
|
+
}, 1000);
|
|
76
79
|
});
|
|
77
80
|
});
|
|
78
81
|
};
|
|
@@ -160,6 +160,8 @@ function (_super) {
|
|
|
160
160
|
_this.props.quillRef.format('font', value);
|
|
161
161
|
} else if (type == 'font-weight') {
|
|
162
162
|
_this.props.quillRef.format('font-weight', value);
|
|
163
|
+
} else if (type == 'text-align') {
|
|
164
|
+
_this.props.quillRef.format('text-align', value);
|
|
163
165
|
} else if (type == 'font-style') {
|
|
164
166
|
_this.props.quillRef.format('font-style', 'italic' === quillFormat['font-style'] ? '' : 'italic');
|
|
165
167
|
} else if (type == 'font-family') {
|
|
@@ -231,7 +233,6 @@ function (_super) {
|
|
|
231
233
|
var _this = this;
|
|
232
234
|
|
|
233
235
|
var quillFormat = this.state.quillFormat;
|
|
234
|
-
console.log('quillFormat render', quillFormat);
|
|
235
236
|
|
|
236
237
|
var _fontWeightList = quillFormat['font-family'] === 'OpenSans' ? OpenSansFontWeightList : fontWeightList;
|
|
237
238
|
|
|
@@ -370,25 +371,25 @@ function (_super) {
|
|
|
370
371
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
371
372
|
className: "tool-item"
|
|
372
373
|
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
373
|
-
active: quillFormat['align'] ===
|
|
374
|
+
active: quillFormat['text-align'] === 'left',
|
|
374
375
|
onChange: function onChange() {
|
|
375
|
-
_this.onToolBtnClick('align', '');
|
|
376
|
+
_this.onToolBtnClick('text-align', 'left');
|
|
376
377
|
},
|
|
377
378
|
type: "alignLeft"
|
|
378
379
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
379
380
|
className: "tool-item"
|
|
380
381
|
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
381
|
-
active: quillFormat['align'] === 'center',
|
|
382
|
+
active: quillFormat['text-align'] === 'center',
|
|
382
383
|
onChange: function onChange() {
|
|
383
|
-
_this.onToolBtnClick('align', 'center');
|
|
384
|
+
_this.onToolBtnClick('text-align', 'center');
|
|
384
385
|
},
|
|
385
386
|
type: "alignCenter"
|
|
386
387
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
387
388
|
className: "tool-item"
|
|
388
389
|
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
389
|
-
active: quillFormat['align'] === 'right',
|
|
390
|
+
active: quillFormat['text-align'] === 'right',
|
|
390
391
|
onChange: function onChange() {
|
|
391
|
-
_this.onToolBtnClick('align', 'right');
|
|
392
|
+
_this.onToolBtnClick('text-align', 'right');
|
|
392
393
|
},
|
|
393
394
|
type: "alignRight"
|
|
394
395
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -263,6 +263,7 @@ window.magicDesign = {
|
|
|
263
263
|
|
|
264
264
|
var setDesignConfig = function setDesignConfig(data) {
|
|
265
265
|
window.magicDesign = __assign(__assign(__assign({}, window.magicDesign), data), {
|
|
266
|
+
designMode: true,
|
|
266
267
|
compWidth: Number(data.compWidth),
|
|
267
268
|
compSpacing: Number(data.compSpacing),
|
|
268
269
|
MBaseUrl: data.MBaseUrl || 'operation/v1',
|
|
@@ -271,6 +272,13 @@ var setDesignConfig = function setDesignConfig(data) {
|
|
|
271
272
|
};
|
|
272
273
|
|
|
273
274
|
var debug = require('debug')('worker:Designer');
|
|
275
|
+
|
|
276
|
+
_antd.message.config({
|
|
277
|
+
getContainer: function getContainer() {
|
|
278
|
+
return document.querySelector('[magic_design]');
|
|
279
|
+
},
|
|
280
|
+
prefixCls: 'cylon-message'
|
|
281
|
+
});
|
|
274
282
|
/**
|
|
275
283
|
* @class Designer
|
|
276
284
|
* 主入口。
|
|
@@ -43,11 +43,13 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
43
43
|
|
|
44
44
|
var setDesignConfig = function setDesignConfig(props) {
|
|
45
45
|
var config = props.config,
|
|
46
|
-
device = props.device
|
|
46
|
+
device = props.device,
|
|
47
|
+
isPreview = props.isPreview;
|
|
47
48
|
window.magicDesign = __assign(__assign({
|
|
48
49
|
pageBackground: '#f2f2f2',
|
|
49
50
|
mode: 'renderer',
|
|
50
51
|
device: device,
|
|
52
|
+
designMode: isPreview,
|
|
51
53
|
navigatePreUrl: ''
|
|
52
54
|
}, config), {
|
|
53
55
|
compSpacing: Number(config.compSpacing),
|
|
@@ -153,6 +153,19 @@ function compositeDecorator(WrappedComponent) {
|
|
|
153
153
|
|
|
154
154
|
if (device === _constants.deviceTypeMap.PC && compWidth && !((_a = spacing === null || spacing === void 0 ? void 0 : spacing.pc) === null || _a === void 0 ? void 0 : _a.fillUp)) {
|
|
155
155
|
wrapStyle.width = compWidth;
|
|
156
|
+
} // 如果是菜单 则需要设为fixed
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
if (nodeData.type === 'HEAD_NAVIGATION' || nodeData.type === 'MENU_NAVIGATION') {
|
|
160
|
+
wrapStyle.position = 'absolute';
|
|
161
|
+
wrapStyle.left = 0;
|
|
162
|
+
wrapStyle.width = '100%';
|
|
163
|
+
|
|
164
|
+
if (nodeData.type === 'HEAD_NAVIGATION') {
|
|
165
|
+
wrapStyle.top = 0;
|
|
166
|
+
} else {
|
|
167
|
+
wrapStyle.bottom = 0;
|
|
168
|
+
}
|
|
156
169
|
}
|
|
157
170
|
|
|
158
171
|
return wrapStyle;
|
|
@@ -228,6 +241,15 @@ function compositeDecorator(WrappedComponent) {
|
|
|
228
241
|
});
|
|
229
242
|
};
|
|
230
243
|
|
|
244
|
+
_this.getOuterWrapStyle = function () {
|
|
245
|
+
var nodeData = _this.props.nodeData;
|
|
246
|
+
|
|
247
|
+
if (window.magicDesign.designMode && (nodeData.type === 'HEAD_NAVIGATION' || nodeData.type === 'MENU_NAVIGATION')) {
|
|
248
|
+
var element = document.querySelector('.phone_view_area .device_border') || document.querySelector('#root .render_wrap');
|
|
249
|
+
element.style.position = 'relative';
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
|
|
231
253
|
return _this;
|
|
232
254
|
}
|
|
233
255
|
|
|
@@ -240,6 +262,7 @@ function compositeDecorator(WrappedComponent) {
|
|
|
240
262
|
hoveredFloor: _mobx.store.hoveredFloor
|
|
241
263
|
});
|
|
242
264
|
});
|
|
265
|
+
this.getOuterWrapStyle();
|
|
243
266
|
};
|
|
244
267
|
|
|
245
268
|
Wrapper.prototype.componentWillUnmount = function () {
|
package/es/locale/en/en.json
CHANGED
package/es/locale/es/es.json
CHANGED
package/es/locale/id/id.json
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TextAlignStyleAttributor = exports.TextAlignStyle = void 0;
|
|
7
|
+
|
|
8
|
+
var _quill = _interopRequireDefault(require("quill"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
13
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
14
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
15
|
+
__proto__: []
|
|
16
|
+
} instanceof Array && function (d, b) {
|
|
17
|
+
d.__proto__ = b;
|
|
18
|
+
} || function (d, b) {
|
|
19
|
+
for (var p in b) {
|
|
20
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return _extendStatics(d, b);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return function (d, b) {
|
|
28
|
+
_extendStatics(d, b);
|
|
29
|
+
|
|
30
|
+
function __() {
|
|
31
|
+
this.constructor = d;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
+
};
|
|
36
|
+
}();
|
|
37
|
+
|
|
38
|
+
var Parchment = _quill["default"]["import"]('parchment');
|
|
39
|
+
|
|
40
|
+
var TextAlignStyleAttributor =
|
|
41
|
+
/** @class */
|
|
42
|
+
function (_super) {
|
|
43
|
+
__extends(TextAlignStyleAttributor, _super);
|
|
44
|
+
|
|
45
|
+
function TextAlignStyleAttributor() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return TextAlignStyleAttributor;
|
|
50
|
+
}(Parchment.Attributor.Style);
|
|
51
|
+
|
|
52
|
+
exports.TextAlignStyleAttributor = TextAlignStyleAttributor;
|
|
53
|
+
var TextAlignStyle = new TextAlignStyleAttributor('text-align', 'text-align', {
|
|
54
|
+
scope: Parchment.Scope.BLOCK_BLOT
|
|
55
|
+
});
|
|
56
|
+
exports.TextAlignStyle = TextAlignStyle;
|
|
57
|
+
|
|
58
|
+
_quill["default"].register('formats/text-align', TextAlignStyle, true);
|
|
@@ -11,7 +11,7 @@ var _antd = require("antd");
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
15
15
|
|
|
16
16
|
var _locale = require("../../../locale");
|
|
17
17
|
|
|
@@ -106,11 +106,11 @@ function (_super) {
|
|
|
106
106
|
|
|
107
107
|
_this.updateAttr(data, 'hover', {
|
|
108
108
|
open: true,
|
|
109
|
-
buttonBorder: (0,
|
|
110
|
-
buttonIcon: (0,
|
|
111
|
-
buttonText: (0,
|
|
109
|
+
buttonBorder: (0, _cloneDeep["default"])(data.buttonBorder),
|
|
110
|
+
buttonIcon: (0, _cloneDeep["default"])(data.buttonIcon),
|
|
111
|
+
buttonText: (0, _cloneDeep["default"])(data.buttonText),
|
|
112
112
|
content: {
|
|
113
|
-
backgroundColor: (0,
|
|
113
|
+
backgroundColor: (0, _cloneDeep["default"])(data.content.backgroundColor)
|
|
114
114
|
}
|
|
115
115
|
}); // console.log('--ffd, button hover first click', data);
|
|
116
116
|
|
|
@@ -202,7 +202,7 @@ function (_super) {
|
|
|
202
202
|
function ImageConfig() {
|
|
203
203
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
204
204
|
|
|
205
|
-
_this.onClick = function (
|
|
205
|
+
_this.onClick = function () {// console.log(event);
|
|
206
206
|
};
|
|
207
207
|
|
|
208
208
|
_this.getImg = function (v, way) {
|
|
@@ -320,7 +320,8 @@ function (_super) {
|
|
|
320
320
|
needHover = _a.needHover,
|
|
321
321
|
needClickArea = _a.needClickArea,
|
|
322
322
|
needURL = _a.needURL,
|
|
323
|
-
recommendImgSize = _a.recommendImgSize
|
|
323
|
+
recommendImgSize = _a.recommendImgSize,
|
|
324
|
+
onlySpecificCode = _a.onlySpecificCode;
|
|
324
325
|
var selectImg = this.getSelectedImg(data);
|
|
325
326
|
|
|
326
327
|
var ContentSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.ImagePicker, {
|
|
@@ -348,6 +349,7 @@ function (_super) {
|
|
|
348
349
|
|
|
349
350
|
_this.selfRender();
|
|
350
351
|
},
|
|
352
|
+
onlySpecificCode: onlySpecificCode,
|
|
351
353
|
value: data.content.clickUrl
|
|
352
354
|
})));
|
|
353
355
|
|
package/es/utils/businessUtil.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.renderPreview = exports.parseUrl = exports.newParseUrl = exports.listToT
|
|
|
7
7
|
|
|
8
8
|
var _qs = _interopRequireDefault(require("qs"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _pickBy = _interopRequireDefault(require("lodash/pickBy"));
|
|
11
11
|
|
|
12
12
|
var _commonUtil = require("./commonUtil");
|
|
13
13
|
|
|
@@ -92,7 +92,7 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
92
92
|
action: 'jump',
|
|
93
93
|
params: {
|
|
94
94
|
type: 'PRODUCT_LIST',
|
|
95
|
-
params: (0,
|
|
95
|
+
params: (0, _pickBy["default"])(_qs["default"].parse(value), function (value) {
|
|
96
96
|
return value;
|
|
97
97
|
})
|
|
98
98
|
}
|
|
@@ -266,7 +266,7 @@ var parseUrl = function parseUrl(url) {
|
|
|
266
266
|
action: 'jump',
|
|
267
267
|
params: {
|
|
268
268
|
type: 'PRODUCT_LIST',
|
|
269
|
-
params: (0,
|
|
269
|
+
params: (0, _pickBy["default"])(_qs["default"].parse(arg1), function (value) {
|
|
270
270
|
return value;
|
|
271
271
|
})
|
|
272
272
|
}
|
package/es/utils/commonUtil.js
CHANGED
|
@@ -27,7 +27,7 @@ exports.styleStringify = void 0;
|
|
|
27
27
|
|
|
28
28
|
var _axios = _interopRequireDefault(require("axios"));
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
31
31
|
|
|
32
32
|
var _uuid = require("uuid");
|
|
33
33
|
|
|
@@ -640,7 +640,7 @@ function pushGA(data, eventName) {
|
|
|
640
640
|
|
|
641
641
|
|
|
642
642
|
function covertKey(data, func) {
|
|
643
|
-
var newData = (0,
|
|
643
|
+
var newData = (0, _cloneDeep["default"])(data);
|
|
644
644
|
func(newData);
|
|
645
645
|
return JSON.stringify(newData);
|
|
646
646
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
|
-
font-family: "magic-box-iconfont";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
url('magic-box-iconfont.ttf?t=1699520254143') format('truetype');
|
|
2
|
+
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1700809570587') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1700809570587') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1700809570587') format('truetype');
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
.magic-box-iconfont {
|
|
@@ -14,6 +13,18 @@
|
|
|
14
13
|
-moz-osx-font-smoothing: grayscale;
|
|
15
14
|
}
|
|
16
15
|
|
|
16
|
+
.magic-box-icon-circle-down:before {
|
|
17
|
+
content: "\e686";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.magic-box-icon-circle-up:before {
|
|
21
|
+
content: "\e687";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.magic-box-icon-Sidebar:before {
|
|
25
|
+
content: "\e685";
|
|
26
|
+
}
|
|
27
|
+
|
|
17
28
|
.magic-box-icon-text-align-center:before {
|
|
18
29
|
content: "\e682";
|
|
19
30
|
}
|
|
@@ -504,4 +515,5 @@
|
|
|
504
515
|
|
|
505
516
|
.magic-box-icon-image:before {
|
|
506
517
|
content: "\e608";
|
|
507
|
-
}
|
|
518
|
+
}
|
|
519
|
+
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
url('magic-box-iconfont.
|
|
6
|
-
url('magic-box-iconfont.ttf?t=1699520254143') format('truetype');
|
|
7
|
-
=======
|
|
8
|
-
src: url('magic-box-iconfont.woff2?t=1698821773295') format('woff2'),
|
|
9
|
-
url('magic-box-iconfont.woff?t=1698821773295') format('woff'),
|
|
10
|
-
url('magic-box-iconfont.ttf?t=1698821773295') format('truetype');
|
|
11
|
-
>>>>>>> 86531b2d2d408d9c7659ae4abbc8532b5abc431d
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1700809570587') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1700809570587') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1700809570587') format('truetype');
|
|
12
6
|
}
|
|
13
7
|
|
|
14
8
|
.magic-box-iconfont {
|
|
@@ -19,7 +13,18 @@
|
|
|
19
13
|
-moz-osx-font-smoothing: grayscale;
|
|
20
14
|
}
|
|
21
15
|
|
|
22
|
-
|
|
16
|
+
.icon-circle-down:before {
|
|
17
|
+
content: "\e686";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.icon-circle-up:before {
|
|
21
|
+
content: "\e687";
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.icon-Sidebar:before {
|
|
25
|
+
content: "\e685";
|
|
26
|
+
}
|
|
27
|
+
|
|
23
28
|
.icon-text-align-center:before {
|
|
24
29
|
content: "\e682";
|
|
25
30
|
}
|
|
@@ -32,8 +37,6 @@
|
|
|
32
37
|
content: "\e684";
|
|
33
38
|
}
|
|
34
39
|
|
|
35
|
-
=======
|
|
36
|
-
>>>>>>> 86531b2d2d408d9c7659ae4abbc8532b5abc431d
|
|
37
40
|
.icon-Wallet:before {
|
|
38
41
|
content: "\e681";
|
|
39
42
|
}
|