@fonixtree/magic-design 2.0.14 → 2.0.16

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 (173) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +23 -3
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +23 -3
  3. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  4. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  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/layout-icon/locationLayout.png +0 -0
  9. package/es/common/ColorPicker/index.js +4 -1
  10. package/es/common/ImagePicker/index.js +3 -1
  11. package/es/composite-comp/bol/components/Location/defaultJSON.js +54 -0
  12. package/es/composite-comp/bol/components/Location/index.js +138 -0
  13. package/es/composite-comp/bol/config-panels/LocationConfig/MyEditor/index.js +42 -0
  14. package/es/composite-comp/bol/config-panels/LocationConfig/index.js +122 -0
  15. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  16. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +66 -7
  17. package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  18. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  19. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  20. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  21. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  22. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  23. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  24. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
  25. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
  26. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +95 -0
  27. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  28. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  29. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  30. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
  31. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
  32. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
  33. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
  34. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
  35. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
  36. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
  37. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
  38. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
  39. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
  40. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +129 -0
  41. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
  42. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
  43. package/es/core/Designer/TextEditModal/ToolBar/index.js +209 -0
  44. package/es/core/Designer/TextEditModal/ToolBar/index.less +19 -0
  45. package/es/core/Designer/TextEditModal/index.js +100 -0
  46. package/es/core/Designer/TextEditModal/index.less +4 -0
  47. package/es/core/Designer/TextEditModal_old/index.js +142 -0
  48. package/es/core/Designer/TextEditModal_old/index.less +25 -0
  49. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  50. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  51. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  52. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  53. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  54. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  55. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  56. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +95 -0
  57. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  58. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  59. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  60. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  61. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  62. package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  63. package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  64. package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  65. package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  66. package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  67. package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  68. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +34 -0
  69. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  70. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +129 -0
  71. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  72. package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  73. package/es/core/Designer/ToolBarModal/index.js +281 -0
  74. package/es/core/Designer/ToolBarModal/index.less +32 -0
  75. package/es/core/Designer/index.js +30 -8
  76. package/es/locale/en/en.json +2 -0
  77. package/es/locale/es/es.json +2 -0
  78. package/es/locale/id/id.json +2 -0
  79. package/es/meta-comp/components/Text/index.js +101 -386
  80. package/es/meta-comp/components/Text/index.less +57 -0
  81. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  82. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  83. package/es/meta-comp/config-panels/TextConfig/index.less +19 -0
  84. package/es/mobx/Frame.js +7 -1
  85. package/es/utils/commonUtil.js +18 -4
  86. package/lib/assets/fonts/magic-box-iconfont.css +23 -3
  87. package/lib/assets/fonts/magic-box-iconfont.css.bak +23 -3
  88. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  89. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  90. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  91. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  92. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  93. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  94. package/lib/common/ColorPicker/index.js +4 -1
  95. package/lib/common/ImagePicker/index.js +3 -1
  96. package/lib/composite-comp/bol/components/Location/defaultJSON.js +54 -0
  97. package/lib/composite-comp/bol/components/Location/index.js +138 -0
  98. package/lib/composite-comp/bol/config-panels/LocationConfig/MyEditor/index.js +42 -0
  99. package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +122 -0
  100. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  101. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +66 -7
  102. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  103. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  104. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  105. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  106. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  107. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  108. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  109. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
  110. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
  111. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +95 -0
  112. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  113. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  114. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  115. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
  116. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
  117. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
  118. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
  119. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
  120. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
  121. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
  122. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
  123. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
  124. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
  125. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +129 -0
  126. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
  127. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
  128. package/lib/core/Designer/TextEditModal/ToolBar/index.js +209 -0
  129. package/lib/core/Designer/TextEditModal/ToolBar/index.less +19 -0
  130. package/lib/core/Designer/TextEditModal/index.js +100 -0
  131. package/lib/core/Designer/TextEditModal/index.less +4 -0
  132. package/lib/core/Designer/TextEditModal_old/index.js +142 -0
  133. package/lib/core/Designer/TextEditModal_old/index.less +25 -0
  134. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  135. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  136. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  137. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  138. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  139. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  140. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  141. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +95 -0
  142. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  143. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  144. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  145. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  146. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  147. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  148. package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  149. package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  150. package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  151. package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  152. package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  153. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +34 -0
  154. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  155. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +129 -0
  156. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  157. package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  158. package/lib/core/Designer/ToolBarModal/index.js +281 -0
  159. package/lib/core/Designer/ToolBarModal/index.less +32 -0
  160. package/lib/core/Designer/index.js +30 -8
  161. package/lib/locale/en/en.json +2 -0
  162. package/lib/locale/es/es.json +2 -0
  163. package/lib/locale/id/id.json +2 -0
  164. package/lib/meta-comp/components/Text/index.js +101 -386
  165. package/lib/meta-comp/components/Text/index.less +57 -0
  166. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  167. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  168. package/lib/meta-comp/config-panels/TextConfig/index.less +19 -0
  169. package/lib/mobx/Frame.js +7 -1
  170. package/lib/utils/commonUtil.js +18 -4
  171. package/package.json +3 -1
  172. package/es/assets/fonts/.DS_Store +0 -0
  173. package/lib/assets/fonts/.DS_Store +0 -0
@@ -0,0 +1,100 @@
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 _reactQuill = _interopRequireDefault(require("react-quill"));
11
+
12
+ require("react-quill/dist/quill.snow.css");
13
+
14
+ var _antd = require("antd");
15
+
16
+ require("./index.less");
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
+
20
+ var __extends = void 0 && (void 0).__extends || function () {
21
+ var _extendStatics = function extendStatics(d, b) {
22
+ _extendStatics = Object.setPrototypeOf || {
23
+ __proto__: []
24
+ } instanceof Array && function (d, b) {
25
+ d.__proto__ = b;
26
+ } || function (d, b) {
27
+ for (var p in b) {
28
+ if (b.hasOwnProperty(p)) d[p] = b[p];
29
+ }
30
+ };
31
+
32
+ return _extendStatics(d, b);
33
+ };
34
+
35
+ return function (d, b) {
36
+ _extendStatics(d, b);
37
+
38
+ function __() {
39
+ this.constructor = d;
40
+ }
41
+
42
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
+ };
44
+ }();
45
+
46
+ var TextEditModal =
47
+ /** @class */
48
+ function (_super) {
49
+ __extends(TextEditModal, _super);
50
+
51
+ function TextEditModal() {
52
+ var _this = _super !== null && _super.apply(this, arguments) || this;
53
+
54
+ _this.state = {
55
+ value: ''
56
+ };
57
+ _this.reactQuillRef = null;
58
+ _this.quillRef = null;
59
+
60
+ _this.getHtml = function () {
61
+ return _this.quillRef.root.innerHTML;
62
+ };
63
+
64
+ return _this;
65
+ }
66
+
67
+ TextEditModal.prototype.componentDidMount = function () {
68
+ this.quillRef = this.reactQuillRef.getEditor();
69
+ };
70
+
71
+ TextEditModal.prototype.render = function () {
72
+ var _this = this;
73
+
74
+ var _a = this.props,
75
+ onCancel = _a.onCancel,
76
+ onOk = _a.onOk;
77
+ var value = this.state.value;
78
+ return /*#__PURE__*/_react["default"].createElement(_antd.Modal, {
79
+ closable: false,
80
+ onCancel: onCancel,
81
+ onOk: onOk,
82
+ visible: true,
83
+ width: 1000
84
+ }, /*#__PURE__*/_react["default"].createElement(_reactQuill["default"], {
85
+ ref: function ref(el) {
86
+ _this.reactQuillRef = el;
87
+ },
88
+ style: {
89
+ height: 600
90
+ },
91
+ value: value
92
+ }));
93
+ };
94
+
95
+ TextEditModal.defaultProps = {};
96
+ return TextEditModal;
97
+ }(_react["default"].Component);
98
+
99
+ var _default = TextEditModal;
100
+ exports["default"] = _default;
@@ -0,0 +1,25 @@
1
+ .text-label-content {
2
+ background-color: #f5f6f7;
3
+
4
+ .label-wrap {
5
+ display: flex;
6
+ align-items: center;
7
+ flex-wrap: wrap;
8
+
9
+ .label-item {
10
+ padding: 5px 11px;
11
+ font-size: 14px;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ border-radius: 5px;
16
+ background-color: #fff;
17
+ margin: 8px;
18
+ cursor: pointer;
19
+
20
+ &:hover {
21
+ background-color: #f6f6f7;
22
+ }
23
+ }
24
+ }
25
+ }
@@ -3,22 +3,41 @@
3
3
  flex-direction: column;
4
4
  padding: 0 12px;
5
5
  background-color: #F5F6F7;
6
+
6
7
  .line-config {
7
8
  text-decoration-line: line-through;
8
9
  text-decoration-color: #000;
9
10
  font-size: 14px;
10
11
  font-weight: 600;
11
12
  }
13
+
12
14
  .line-solid {
13
15
  text-decoration-style: solid;
14
16
  }
17
+
15
18
  .dashed-line {
16
19
  text-decoration-style: dashed;
17
20
  }
21
+
18
22
  .double-line {
19
23
  text-decoration-style: double;
20
24
  }
25
+
21
26
  .wavy-line {
22
27
  text-decoration-style: wavy;
23
28
  }
29
+
30
+ .edit-text-btn {
31
+ margin: 8px auto;
32
+ padding: 6px 16px;
33
+ background-color: #2e54eb;
34
+ color: #fff;
35
+ font-size: 14px;
36
+ border-radius: 8px;
37
+ cursor: pointer;
38
+
39
+ &:hover {
40
+ background-color: #0837f4;
41
+ }
42
+ }
24
43
  }
package/lib/mobx/Frame.js CHANGED
@@ -38,11 +38,17 @@ function () {
38
38
  content: '',
39
39
  okText: 'Ok',
40
40
  cancelText: 'Cancel',
41
+ quillRef: null,
41
42
  onOk: function onOk() {},
42
43
  onCancel: function onCancel() {}
43
44
  };
45
+ this.textModalState = {
46
+ visible: false,
47
+ onOk: function onOk() {}
48
+ };
44
49
  (0, _mobx.makeObservable)(this, {
45
- confirmState: _mobx.observable
50
+ confirmState: _mobx.observable,
51
+ textModalState: _mobx.observable
46
52
  });
47
53
  }
48
54
  /** 修改状态 */
@@ -744,7 +744,7 @@ exports.asyncNextTick = asyncNextTick;
744
744
 
745
745
  var convertToRem = function convertToRem(value) {
746
746
  // return value; // PTO项目 解开注释
747
- if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
747
+ if (window.magicDesign.device === 'pc') {
748
748
  return value + "px";
749
749
  }
750
750
 
@@ -763,7 +763,7 @@ exports.convertToRem = convertToRem;
763
763
 
764
764
  var pxToRem = function pxToRem(styleObj) {
765
765
  // return styleObj; // PTO项目 解开注释
766
- if (window.magicDesign.device === 'pc' || window.magicDesign.mode === 'designer') {
766
+ if (window.magicDesign.device === 'pc') {
767
767
  return styleObj;
768
768
  }
769
769
 
@@ -774,9 +774,9 @@ var pxToRem = function pxToRem(styleObj) {
774
774
  var value = styleObj[key];
775
775
 
776
776
  if (typeof value === 'string' && value.endsWith('px')) {
777
- remObj[key] = key === 'opacity' || key === 'lineHeight' ? value : convertToRem(value);
777
+ remObj[key] = convertToRem(value.split('px')[0]);
778
778
  } else if (typeof value === 'number') {
779
- remObj[key] = convertToRem(value);
779
+ remObj[key] = ['opacity', 'lineHeight', 'zIndex'].includes(key) ? value : convertToRem(value);
780
780
  } else if ((key === 'padding' || key === 'margin') && typeof value === 'string') {
781
781
  var paddingValues = value.split(' ');
782
782
  var remPaddingValues = paddingValues.map(function (paddingValue) {
@@ -843,6 +843,20 @@ var compatibleNewPageData = function compatibleNewPageData(pageData) {
843
843
  };
844
844
  }
845
845
  }); // console.log('--compatibleNewPageData -- video add group.playIcon ', child.groupSource);
846
+ } // 兼容新功能:SEARCH 新增控制购物车和消息图标的开关
847
+
848
+
849
+ if (child.type === 'SEARCH') {
850
+ if (!child.content.icon.cartIcon || !child.content.icon.messageIcon) {
851
+ child.content.icon.cartIcon = {
852
+ pc: true,
853
+ mobile: false
854
+ };
855
+ child.content.icon.messageIcon = {
856
+ pc: false,
857
+ mobile: true
858
+ };
859
+ }
846
860
  }
847
861
  });
848
862
  }
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.14",
4
+ "version": "2.0.16",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",
@@ -20,6 +20,7 @@
20
20
  "push:biz": "cp -r ./pub-dist/es ../bizme/node_modules/@fonixtree/magic-design/"
21
21
  },
22
22
  "dependencies": {
23
+ "@types/quill": "^2.0.10",
23
24
  "antd": "4.24.8",
24
25
  "axios": "0.27.2",
25
26
  "immutability-helper": "3.1.1",
@@ -31,6 +32,7 @@
31
32
  "mobx-react": "7.5.2",
32
33
  "moment": "2.29.3",
33
34
  "postcss-pxtorem": "^6.0.0",
35
+ "quill": "^1.3.7",
34
36
  "ramda": "^0.28.0",
35
37
  "react-ace": "^10.1.0",
36
38
  "react-color": "2.17.0",
Binary file
Binary file