@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.
- package/es/assets/fonts/magic-box-iconfont.css +23 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +23 -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/assets/images/layout-icon/locationLayout.png +0 -0
- package/es/common/ColorPicker/index.js +4 -1
- package/es/common/ImagePicker/index.js +3 -1
- package/es/composite-comp/bol/components/Location/defaultJSON.js +54 -0
- package/es/composite-comp/bol/components/Location/index.js +138 -0
- package/es/composite-comp/bol/config-panels/LocationConfig/MyEditor/index.js +42 -0
- package/es/composite-comp/bol/config-panels/LocationConfig/index.js +122 -0
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +66 -7
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +95 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +129 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
- package/es/core/Designer/TextEditModal/ToolBar/index.js +209 -0
- package/es/core/Designer/TextEditModal/ToolBar/index.less +19 -0
- package/es/core/Designer/TextEditModal/index.js +100 -0
- package/es/core/Designer/TextEditModal/index.less +4 -0
- package/es/core/Designer/TextEditModal_old/index.js +142 -0
- package/es/core/Designer/TextEditModal_old/index.less +25 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +95 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +34 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +129 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
- package/es/core/Designer/ToolBarModal/index.js +281 -0
- package/es/core/Designer/ToolBarModal/index.less +32 -0
- package/es/core/Designer/index.js +30 -8
- package/es/locale/en/en.json +2 -0
- package/es/locale/es/es.json +2 -0
- package/es/locale/id/id.json +2 -0
- package/es/meta-comp/components/Text/index.js +101 -386
- package/es/meta-comp/components/Text/index.less +57 -0
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
- package/es/meta-comp/config-panels/TextConfig/index.less +19 -0
- package/es/mobx/Frame.js +7 -1
- package/es/utils/commonUtil.js +18 -4
- package/lib/assets/fonts/magic-box-iconfont.css +23 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +23 -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/assets/images/layout-icon/locationLayout.png +0 -0
- package/lib/common/ColorPicker/index.js +4 -1
- package/lib/common/ImagePicker/index.js +3 -1
- package/lib/composite-comp/bol/components/Location/defaultJSON.js +54 -0
- package/lib/composite-comp/bol/components/Location/index.js +138 -0
- package/lib/composite-comp/bol/config-panels/LocationConfig/MyEditor/index.js +42 -0
- package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +122 -0
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +66 -7
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +95 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +129 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
- package/lib/core/Designer/TextEditModal/ToolBar/index.js +209 -0
- package/lib/core/Designer/TextEditModal/ToolBar/index.less +19 -0
- package/lib/core/Designer/TextEditModal/index.js +100 -0
- package/lib/core/Designer/TextEditModal/index.less +4 -0
- package/lib/core/Designer/TextEditModal_old/index.js +142 -0
- package/lib/core/Designer/TextEditModal_old/index.less +25 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +95 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +34 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +129 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
- package/lib/core/Designer/ToolBarModal/index.js +281 -0
- package/lib/core/Designer/ToolBarModal/index.less +32 -0
- package/lib/core/Designer/index.js +30 -8
- package/lib/locale/en/en.json +2 -0
- package/lib/locale/es/es.json +2 -0
- package/lib/locale/id/id.json +2 -0
- package/lib/meta-comp/components/Text/index.js +101 -386
- package/lib/meta-comp/components/Text/index.less +57 -0
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
- package/lib/meta-comp/config-panels/TextConfig/index.less +19 -0
- package/lib/mobx/Frame.js +7 -1
- package/lib/utils/commonUtil.js +18 -4
- package/package.json +3 -1
- package/es/assets/fonts/.DS_Store +0 -0
- 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
|
/** 修改状态 */
|
package/lib/utils/commonUtil.js
CHANGED
|
@@ -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'
|
|
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'
|
|
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] =
|
|
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.
|
|
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
|