@fonixtree/magic-design 2.0.20 → 2.0.21

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 (63) hide show
  1. package/es/assets/fonts/magic-box-iconfont.css +3 -3
  2. package/es/assets/fonts/magic-box-iconfont.css.bak +3 -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/common/LinkModal/FilteredProductModal/index.js +2 -2
  9. package/es/common/LinkModal/ProductDetailPage/index.js +1 -1
  10. package/es/common/ProductModal/index.js +2 -2
  11. package/es/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
  12. package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -1
  13. package/es/core/Designer/AiImageGenerator/History/index.less +2 -0
  14. package/es/core/Designer/AiImageGenerator/index.less +5 -1
  15. package/es/core/Designer/ChatRobot/index.js +10 -2
  16. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +8 -2
  17. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
  18. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +7 -0
  19. package/es/core/Designer/TextEditModal/ToolBar/index.js +10 -0
  20. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +12 -2
  21. package/es/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  22. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +3 -1
  23. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +12 -0
  24. package/es/core/Designer/ToolBarModal/index.js +85 -24
  25. package/es/meta-comp/components/Text/index.js +8 -10
  26. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  27. package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  28. package/es/meta-comp/config-panels/TextConfig/index.js +9 -30
  29. package/es/meta-comp/config-panels/TextConfig/index.less +0 -23
  30. package/es/utils/androidUtil.js +6 -0
  31. package/lib/assets/fonts/magic-box-iconfont.css +3 -3
  32. package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -3
  33. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  34. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  35. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  36. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  37. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  38. package/lib/common/LinkModal/FilteredProductModal/index.js +2 -2
  39. package/lib/common/LinkModal/ProductDetailPage/index.js +1 -1
  40. package/lib/common/ProductModal/index.js +2 -2
  41. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
  42. package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -1
  43. package/lib/core/Designer/AiImageGenerator/History/index.less +2 -0
  44. package/lib/core/Designer/AiImageGenerator/index.less +5 -1
  45. package/lib/core/Designer/ChatRobot/index.js +10 -2
  46. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +8 -2
  47. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
  48. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +7 -0
  49. package/lib/core/Designer/TextEditModal/ToolBar/index.js +10 -0
  50. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +12 -2
  51. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
  52. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +3 -1
  53. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +12 -0
  54. package/lib/core/Designer/ToolBarModal/index.js +85 -24
  55. package/lib/meta-comp/components/Text/index.js +8 -10
  56. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
  57. package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
  58. package/lib/meta-comp/config-panels/TextConfig/index.js +9 -30
  59. package/lib/meta-comp/config-panels/TextConfig/index.less +0 -23
  60. package/lib/utils/androidUtil.js +6 -0
  61. package/package.json +1 -1
  62. package/es/assets/fonts/.DS_Store +0 -0
  63. package/lib/assets/fonts/.DS_Store +0 -0
@@ -0,0 +1,26 @@
1
+ .underline-select-wrap {
2
+ .line-config {
3
+ text-decoration-line: line-through;
4
+ text-decoration-color: #000;
5
+ font-size: 14px;
6
+ font-weight: 600;
7
+
8
+ &.line-solid {
9
+ text-decoration-style: solid;
10
+ }
11
+
12
+ &.dashed-line {
13
+ text-decoration-style: dashed;
14
+ }
15
+
16
+ &.double-line {
17
+ text-decoration-style: double;
18
+ }
19
+
20
+ &.wavy-line {
21
+ text-decoration-style: wavy;
22
+ }
23
+ }
24
+
25
+
26
+ }
@@ -13,6 +13,8 @@ var _antd = require("antd");
13
13
 
14
14
  var _TextLabel = _interopRequireDefault(require("./TextLabel"));
15
15
 
16
+ var _UnderlineSelect = _interopRequireDefault(require("./UnderlineSelect"));
17
+
16
18
  var _coreUtil = require("../../../utils/coreUtil");
17
19
 
18
20
  var _locale = require("../../../locale");
@@ -146,6 +148,7 @@ function (_super) {
146
148
  var _this = _super !== null && _super.apply(this, arguments) || this;
147
149
 
148
150
  _this.state = {};
151
+ _this.containerRef = /*#__PURE__*/_react["default"].createRef();
149
152
 
150
153
  _this.onSizeTypeChange = function (v, obj) {
151
154
  _extends(obj, sizeTypeMap[v]);
@@ -329,42 +332,17 @@ function (_super) {
329
332
  value: data.underline.textDecorationColor
330
333
  })), /*#__PURE__*/_react["default"].createElement(_common.Field, {
331
334
  title: (0, _locale.i18n)('UNDERLINE_STYLE')
332
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
335
+ }, /*#__PURE__*/_react["default"].createElement(_UnderlineSelect["default"], {
333
336
  onChange: function onChange(v) {
334
337
  data.underline.textDecorationStyle = v;
335
338
 
336
339
  _this.selfRender();
337
340
  },
341
+ style: {
342
+ width: '100%'
343
+ },
338
344
  value: data.underline.textDecorationStyle
339
- }, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
340
- value: "solid"
341
- }, /*#__PURE__*/_react["default"].createElement("div", {
342
- className: "line-config line-solid",
343
- dangerouslySetInnerHTML: {
344
- __html: ' '.repeat(50)
345
- }
346
- })), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
347
- value: "dashed"
348
- }, /*#__PURE__*/_react["default"].createElement("div", {
349
- className: "line-config dashed-line",
350
- dangerouslySetInnerHTML: {
351
- __html: ' '.repeat(50)
352
- }
353
- })), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
354
- value: "double"
355
- }, /*#__PURE__*/_react["default"].createElement("div", {
356
- className: "line-config double-line",
357
- dangerouslySetInnerHTML: {
358
- __html: ' '.repeat(50)
359
- }
360
- })), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
361
- value: "wavy"
362
- }, /*#__PURE__*/_react["default"].createElement("div", {
363
- className: "line-config wavy-line",
364
- dangerouslySetInnerHTML: {
365
- __html: ' '.repeat(50)
366
- }
367
- }))))),
345
+ }))),
368
346
  metaOption: data.underline,
369
347
  toggleType: 'checkbox'
370
348
  }];
@@ -380,6 +358,7 @@ function (_super) {
380
358
  }
381
359
 
382
360
  return /*#__PURE__*/_react["default"].createElement("div", {
361
+ ref: this.containerRef,
383
362
  className: "m-text-config"
384
363
  }, /*#__PURE__*/_react["default"].createElement(_common.Collapse // divider="dashed"
385
364
  // headerSize="small"
@@ -4,29 +4,6 @@
4
4
  padding: 0 12px;
5
5
  background-color: #F5F6F7;
6
6
 
7
- .line-config {
8
- text-decoration-line: line-through;
9
- text-decoration-color: #000;
10
- font-size: 14px;
11
- font-weight: 600;
12
- }
13
-
14
- .line-solid {
15
- text-decoration-style: solid;
16
- }
17
-
18
- .dashed-line {
19
- text-decoration-style: dashed;
20
- }
21
-
22
- .double-line {
23
- text-decoration-style: double;
24
- }
25
-
26
- .wavy-line {
27
- text-decoration-style: wavy;
28
- }
29
-
30
7
  .edit-text-btn {
31
8
  margin: 8px auto;
32
9
  padding: 6px 16px;
@@ -117,6 +117,12 @@ var sendToApp = function sendToApp(params) {
117
117
  // 对接flutter版本
118
118
  if (window.flutter_inject_js_bridge && window.flutter_inject_js_bridge.postMessage) {
119
119
  window.flutter_inject_js_bridge.postMessage(JSON.stringify(params));
120
+ } // 对接Nuri App
121
+
122
+
123
+ if (window.WebViewJavascriptBridge) {
124
+ window.WebViewJavascriptBridge.callHandler('action', // 调用java的函数名字
125
+ params);
120
126
  } // 对接mpaas版本
121
127
 
122
128
 
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.20",
4
+ "version": "2.0.21",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",
Binary file
Binary file