@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.
- package/es/assets/fonts/magic-box-iconfont.css +3 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +3 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- 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/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/es/common/LinkModal/ProductDetailPage/index.js +1 -1
- package/es/common/ProductModal/index.js +2 -2
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
- package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -1
- package/es/core/Designer/AiImageGenerator/History/index.less +2 -0
- package/es/core/Designer/AiImageGenerator/index.less +5 -1
- package/es/core/Designer/ChatRobot/index.js +10 -2
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +8 -2
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +7 -0
- package/es/core/Designer/TextEditModal/ToolBar/index.js +10 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +12 -2
- package/es/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +3 -1
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +12 -0
- package/es/core/Designer/ToolBarModal/index.js +85 -24
- package/es/meta-comp/components/Text/index.js +8 -10
- package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
- package/es/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
- package/es/meta-comp/config-panels/TextConfig/index.js +9 -30
- package/es/meta-comp/config-panels/TextConfig/index.less +0 -23
- package/es/utils/androidUtil.js +6 -0
- package/lib/assets/fonts/magic-box-iconfont.css +3 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +3 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- 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/common/LinkModal/FilteredProductModal/index.js +2 -2
- package/lib/common/LinkModal/ProductDetailPage/index.js +1 -1
- package/lib/common/ProductModal/index.js +2 -2
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +2 -1
- package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -1
- package/lib/core/Designer/AiImageGenerator/History/index.less +2 -0
- package/lib/core/Designer/AiImageGenerator/index.less +5 -1
- package/lib/core/Designer/ChatRobot/index.js +10 -2
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +8 -2
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +7 -0
- package/lib/core/Designer/TextEditModal/ToolBar/index.js +10 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +12 -2
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/BackgroundSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +3 -1
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +12 -0
- package/lib/core/Designer/ToolBarModal/index.js +85 -24
- package/lib/meta-comp/components/Text/index.js +8 -10
- package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.js +108 -0
- package/lib/meta-comp/config-panels/TextConfig/UnderlineSelect/index.less +26 -0
- package/lib/meta-comp/config-panels/TextConfig/index.js +9 -30
- package/lib/meta-comp/config-panels/TextConfig/index.less +0 -23
- package/lib/utils/androidUtil.js +6 -0
- package/package.json +1 -1
- package/es/assets/fonts/.DS_Store +0 -0
- 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(
|
|
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
|
-
},
|
|
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;
|
package/es/utils/androidUtil.js
CHANGED
|
@@ -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
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1691480393512') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1691480393512') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1691480393512') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "magic-box-iconfont"; /* Project id 3317752 */
|
|
3
|
-
src: url('magic-box-iconfont.woff2?t=
|
|
4
|
-
url('magic-box-iconfont.woff?t=
|
|
5
|
-
url('magic-box-iconfont.ttf?t=
|
|
3
|
+
src: url('magic-box-iconfont.woff2?t=1691480393512') format('woff2'),
|
|
4
|
+
url('magic-box-iconfont.woff?t=1691480393512') format('woff'),
|
|
5
|
+
url('magic-box-iconfont.ttf?t=1691480393512') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.magic-box-iconfont {
|