@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.
Files changed (141) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +18 -6
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +15 -12
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -5
  4. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -5
  5. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  6. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  8. package/es/assets/images/base64/index.js +28 -2
  9. package/es/common/ImagePicker/index.js +0 -2
  10. package/es/common/LinkModal/FunctionTable/index.js +2 -1
  11. package/es/common/LinkModal/index.js +14 -2
  12. package/es/common/MyModal/index.less +1 -1
  13. package/es/common/UrlPicker/index.js +3 -1
  14. package/es/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  15. package/es/composite-comp/bol/components/Video/index.js +1 -2
  16. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  17. package/es/composite-comp/common/components/AffiliateProductItem/index.less +1 -1
  18. package/es/composite-comp/common/components/ImageLabel/index.less +10 -3
  19. package/es/composite-comp/common/components/ProductItem/index.js +25 -17
  20. package/es/composite-comp/common/components/ProductItem/index.less +17 -8
  21. package/es/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +1 -1
  22. package/es/composite-comp/dito/components/AffiliateRecommend/pc/index.js +6 -6
  23. package/es/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  24. package/es/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  25. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  26. package/es/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  27. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  28. package/es/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  29. package/es/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  30. package/es/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  31. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  32. package/es/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  33. package/es/composite-comp/dito/components/Recommend/mobile/index.js +4 -4
  34. package/es/composite-comp/dito/components/Recommend/pc/index.js +6 -6
  35. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  36. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  37. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  38. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  39. package/es/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  40. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  41. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  42. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  43. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  44. package/es/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  45. package/es/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  46. package/es/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  47. package/es/constants/component-types.js +15 -3
  48. package/es/constants/index.js +8 -0
  49. package/es/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  50. package/es/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  51. package/es/core/Designer/ChatRobot/index.js +36 -14
  52. package/es/core/Designer/ChatRobot/index.less +69 -28
  53. package/es/core/Designer/History/index.js +2 -2
  54. package/es/core/Designer/PageCompList/index.js +5 -3
  55. package/es/core/Designer/RenderHtml/index.js +18 -15
  56. package/es/core/Designer/RenderHtml/index.less +1 -1
  57. package/es/core/Designer/ToolBarModal/index.js +8 -7
  58. package/es/core/Designer/index.js +8 -0
  59. package/es/core/Renderer/index.js +3 -1
  60. package/es/decorator/compositeDecorator.js +23 -0
  61. package/es/locale/en/en.json +3 -0
  62. package/es/locale/es/es.json +3 -0
  63. package/es/locale/id/id.json +3 -0
  64. package/es/meta-comp/components/Text/formats/textAlign.js +58 -0
  65. package/es/meta-comp/components/Text/index.js +2 -0
  66. package/es/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  67. package/es/meta-comp/config-panels/ImageConfig/index.js +4 -2
  68. package/es/utils/businessUtil.js +3 -3
  69. package/es/utils/commonUtil.js +2 -2
  70. package/lib/assets/fonts/magic-box-iconfont.css +18 -6
  71. package/lib/assets/fonts/magic-box-iconfont.css.bak +15 -12
  72. package/lib/assets/fonts/magic-box-iconfont.js +1 -5
  73. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -5
  74. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  75. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  76. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  77. package/lib/assets/images/base64/index.js +28 -2
  78. package/lib/common/ImagePicker/index.js +0 -2
  79. package/lib/common/LinkModal/FunctionTable/index.js +2 -1
  80. package/lib/common/LinkModal/index.js +14 -2
  81. package/lib/common/MyModal/index.less +1 -1
  82. package/lib/common/UrlPicker/index.js +3 -1
  83. package/lib/composite-comp/bol/components/ImageText/pc/index.js +2 -2
  84. package/lib/composite-comp/bol/components/Video/index.js +1 -2
  85. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +8 -6
  86. package/lib/composite-comp/common/components/AffiliateProductItem/index.less +1 -1
  87. package/lib/composite-comp/common/components/ImageLabel/index.less +10 -3
  88. package/lib/composite-comp/common/components/ProductItem/index.js +25 -17
  89. package/lib/composite-comp/common/components/ProductItem/index.less +17 -8
  90. package/lib/composite-comp/dito/components/AffiliateRecommend/mobile/index.less +1 -1
  91. package/lib/composite-comp/dito/components/AffiliateRecommend/pc/index.js +6 -6
  92. package/lib/composite-comp/dito/components/HeadNavigation/defaultJSON.js +97 -0
  93. package/lib/composite-comp/dito/components/HeadNavigation/index.js +84 -0
  94. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.js +112 -0
  95. package/lib/composite-comp/dito/components/HeadNavigation/mobile/index.less +34 -0
  96. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.js +206 -0
  97. package/lib/composite-comp/dito/components/MenuNavigation/MenuNavMetaImage/index.less +25 -0
  98. package/lib/composite-comp/dito/components/MenuNavigation/defaultJSON.js +107 -0
  99. package/lib/composite-comp/dito/components/MenuNavigation/index.js +84 -0
  100. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.js +87 -0
  101. package/lib/composite-comp/dito/components/MenuNavigation/mobile/index.less +8 -0
  102. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +4 -4
  103. package/lib/composite-comp/dito/components/Recommend/pc/index.js +6 -6
  104. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.js +203 -0
  105. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/GroupList/index.less +72 -0
  106. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/HeadNavConfigImageGroup/index.js +142 -0
  107. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.js +123 -0
  108. package/lib/composite-comp/dito/config-panels/HeadNavigationConfig/index.less +23 -0
  109. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.js +203 -0
  110. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/GroupList/index.less +72 -0
  111. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.js +137 -0
  112. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/MenuNavConfigImageGroup/index.less +6 -0
  113. package/lib/composite-comp/dito/config-panels/MenuNavigationConfig/index.js +40 -0
  114. package/lib/composite-comp/dito/second-config-panels/HeadNavigationSecondConfig/index.js +127 -0
  115. package/lib/composite-comp/dito/second-config-panels/MenuNavigationSecondConfig/index.js +127 -0
  116. package/lib/constants/component-types.js +15 -3
  117. package/lib/constants/index.js +8 -0
  118. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.js +110 -0
  119. package/lib/core/Designer/ChatRobot/components/SearchCondition/index.less +33 -0
  120. package/lib/core/Designer/ChatRobot/index.js +36 -14
  121. package/lib/core/Designer/ChatRobot/index.less +69 -28
  122. package/lib/core/Designer/History/index.js +2 -2
  123. package/lib/core/Designer/PageCompList/index.js +5 -3
  124. package/lib/core/Designer/RenderHtml/index.js +18 -15
  125. package/lib/core/Designer/RenderHtml/index.less +1 -1
  126. package/lib/core/Designer/ToolBarModal/index.js +8 -7
  127. package/lib/core/Designer/index.js +8 -0
  128. package/lib/core/Renderer/index.js +3 -1
  129. package/lib/decorator/compositeDecorator.js +23 -0
  130. package/lib/locale/en/en.json +3 -0
  131. package/lib/locale/es/es.json +3 -0
  132. package/lib/locale/id/id.json +3 -0
  133. package/lib/meta-comp/components/Text/formats/textAlign.js +58 -0
  134. package/lib/meta-comp/components/Text/index.js +2 -0
  135. package/lib/meta-comp/config-panels/ButtonConfig/index.js +5 -5
  136. package/lib/meta-comp/config-panels/ImageConfig/index.js +4 -2
  137. package/lib/utils/businessUtil.js +3 -3
  138. package/lib/utils/commonUtil.js +2 -2
  139. package/package.json +1 -1
  140. package/es/assets/fonts/.DS_Store +0 -0
  141. 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
- document.querySelector('#render-html-wrap > div').style = 'max-width:600px;margin:auto;';
62
- /** 去除设计器模式下元素 */
63
-
64
- document.querySelectorAll('#render-html-wrap > div .composite_mask').forEach(function (el) {
65
- el.remove();
66
- });
67
- var html = document.querySelector('#render-html-wrap').innerHTML;
68
- /** 处理背景图资源引号问题 */
69
-
70
- html = html.replace(/url\("((\S|\s)*)"\)/g, 'url($1)');
71
- resolve(html);
72
-
73
- _this.setState({
74
- renderProps: null
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
  };
@@ -1,5 +1,5 @@
1
1
  #render-html-wrap {
2
2
  position: fixed;
3
- top: 10px;
3
+ top: -99999px;
4
4
  left: 0;
5
5
  }
@@ -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'] === undefined,
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 () {
@@ -1,4 +1,7 @@
1
1
  {
2
+ "DISPLAY_PAGE": "Display page",
3
+ "NAME": "Name",
4
+ "ADD_MENU": "Add Menu",
2
5
  "TIPS": "Tips",
3
6
  "AL": "AL",
4
7
  "PEEK": "Peek",
@@ -1,4 +1,7 @@
1
1
  {
2
+ "DISPLAY_PAGE": "Display page",
3
+ "NAME": "Name",
4
+ "ADD_MENU": "Add Menu",
2
5
  "TIPS": "Tips",
3
6
  "AL": "AL",
4
7
  "PEEK": "Peek",
@@ -1,4 +1,7 @@
1
1
  {
2
+ "DISPLAY_PAGE": "Display page",
3
+ "NAME": "Name",
4
+ "ADD_MENU": "Add Menu",
2
5
  "TIPS": "Tips",
3
6
  "AL": "AL",
4
7
  "PEEK": "Peek",
@@ -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);
@@ -19,6 +19,8 @@ require("./formats/textDecorationColor");
19
19
 
20
20
  require("./formats/fontStyle");
21
21
 
22
+ require("./formats/textAlign");
23
+
22
24
  require("./formats/listStyleTypeStyle");
23
25
 
24
26
  require("./formats/textDecorationStyle");
@@ -11,7 +11,7 @@ var _antd = require("antd");
11
11
 
12
12
  require("./index.less");
13
13
 
14
- var _lodash = require("lodash");
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, _lodash.cloneDeep)(data.buttonBorder),
110
- buttonIcon: (0, _lodash.cloneDeep)(data.buttonIcon),
111
- buttonText: (0, _lodash.cloneDeep)(data.buttonText),
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, _lodash.cloneDeep)(data.content.backgroundColor)
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 (event) {// console.log(event);
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
 
@@ -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 _lodash = require("lodash");
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, _lodash.pickBy)(_qs["default"].parse(value), function (value) {
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, _lodash.pickBy)(_qs["default"].parse(arg1), function (value) {
269
+ params: (0, _pickBy["default"])(_qs["default"].parse(arg1), function (value) {
270
270
  return value;
271
271
  })
272
272
  }
@@ -27,7 +27,7 @@ exports.styleStringify = void 0;
27
27
 
28
28
  var _axios = _interopRequireDefault(require("axios"));
29
29
 
30
- var _lodash = require("lodash");
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, _lodash.cloneDeep)(data);
643
+ var newData = (0, _cloneDeep["default"])(data);
644
644
  func(newData);
645
645
  return JSON.stringify(newData);
646
646
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.62",
4
+ "version": "2.0.64",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",
Binary file
Binary file