cloud-b2b 1.1.43 → 1.1.44
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.
|
@@ -65,22 +65,22 @@ var InputEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
65
65
|
var elem = this.refs[inputKey];
|
|
66
66
|
this[inputKey] = new E(elem);
|
|
67
67
|
//配置菜单
|
|
68
|
-
menus && (this[inputKey].
|
|
68
|
+
menus && (this[inputKey].config.menus = menus);
|
|
69
69
|
//配置颜色
|
|
70
|
-
color && (this[inputKey].
|
|
70
|
+
color && (this[inputKey].config.menus = color);
|
|
71
71
|
//配置菜单
|
|
72
|
-
this[inputKey].
|
|
72
|
+
this[inputKey].config.menus = defaultMenus;
|
|
73
73
|
if (menus) {
|
|
74
|
-
this[inputKey].
|
|
74
|
+
this[inputKey].config.menus = menus;
|
|
75
75
|
}
|
|
76
|
-
this[inputKey].
|
|
77
|
-
this[inputKey].
|
|
76
|
+
this[inputKey].config.uploadImgShowBase64 = uploadImgShowBase64; //是否可以上传图片
|
|
77
|
+
this[inputKey].config.showLinkImg = showLinkImg; //隐藏网络图片
|
|
78
78
|
|
|
79
|
-
this[inputKey].
|
|
79
|
+
this[inputKey].config.onchange = function (html) {
|
|
80
80
|
onChange && onChange(html);
|
|
81
81
|
};
|
|
82
82
|
//配置编辑区域的 z-index
|
|
83
|
-
this[inputKey].
|
|
83
|
+
this[inputKey].config.zIndex = 0;
|
|
84
84
|
this[inputKey].create();
|
|
85
85
|
this[inputKey].txt.html(value);
|
|
86
86
|
}
|
|
@@ -88,20 +88,16 @@ var InputEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
88
88
|
}, {
|
|
89
89
|
key: "componentDidUpdate",
|
|
90
90
|
value: function componentDidUpdate() {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
_this$props2$value = _this$props2.value,
|
|
94
|
-
value = _this$props2$value === void 0 ? '' : _this$props2$value,
|
|
95
|
-
readonly = _this$props2.readonly;
|
|
96
|
-
!readonly && !value && this[inputKey].txt.html(value); //支持清空操作
|
|
91
|
+
// const {inputKey,value='', readonly} = this.props;
|
|
92
|
+
// !readonly && value && this[inputKey].txt.html(value); //支持清空操作
|
|
97
93
|
}
|
|
98
94
|
}, {
|
|
99
95
|
key: "render",
|
|
100
96
|
value: function render() {
|
|
101
|
-
var _this$
|
|
102
|
-
inputKey = _this$
|
|
103
|
-
readonly = _this$
|
|
104
|
-
value = _this$
|
|
97
|
+
var _this$props2 = this.props,
|
|
98
|
+
inputKey = _this$props2.inputKey,
|
|
99
|
+
readonly = _this$props2.readonly,
|
|
100
|
+
value = _this$props2.value;
|
|
105
101
|
return /*#__PURE__*/React.createElement("div", {
|
|
106
102
|
className: variables('InputEditor')
|
|
107
103
|
}, readonly ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -632,7 +632,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
632
632
|
text = helper.toThousands(text, col.decimalPlaces ? col.decimalPlaces : 2);
|
|
633
633
|
return "\uFFE5".concat(text);
|
|
634
634
|
} else {
|
|
635
|
-
return "\uFFE5".concat(text.toFixed(2));
|
|
635
|
+
return text ? "\uFFE5".concat(text.toFixed(2)) : text;
|
|
636
636
|
}
|
|
637
637
|
};
|
|
638
638
|
}
|
|
@@ -73,22 +73,22 @@ var InputEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
73
73
|
var elem = this.refs[inputKey];
|
|
74
74
|
this[inputKey] = new E(elem);
|
|
75
75
|
//配置菜单
|
|
76
|
-
menus && (this[inputKey].
|
|
76
|
+
menus && (this[inputKey].config.menus = menus);
|
|
77
77
|
//配置颜色
|
|
78
|
-
color && (this[inputKey].
|
|
78
|
+
color && (this[inputKey].config.menus = color);
|
|
79
79
|
//配置菜单
|
|
80
|
-
this[inputKey].
|
|
80
|
+
this[inputKey].config.menus = defaultMenus;
|
|
81
81
|
if (menus) {
|
|
82
|
-
this[inputKey].
|
|
82
|
+
this[inputKey].config.menus = menus;
|
|
83
83
|
}
|
|
84
|
-
this[inputKey].
|
|
85
|
-
this[inputKey].
|
|
84
|
+
this[inputKey].config.uploadImgShowBase64 = uploadImgShowBase64; //是否可以上传图片
|
|
85
|
+
this[inputKey].config.showLinkImg = showLinkImg; //隐藏网络图片
|
|
86
86
|
|
|
87
|
-
this[inputKey].
|
|
87
|
+
this[inputKey].config.onchange = function (html) {
|
|
88
88
|
onChange && onChange(html);
|
|
89
89
|
};
|
|
90
90
|
//配置编辑区域的 z-index
|
|
91
|
-
this[inputKey].
|
|
91
|
+
this[inputKey].config.zIndex = 0;
|
|
92
92
|
this[inputKey].create();
|
|
93
93
|
this[inputKey].txt.html(value);
|
|
94
94
|
}
|
|
@@ -96,20 +96,16 @@ var InputEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
96
96
|
}, {
|
|
97
97
|
key: "componentDidUpdate",
|
|
98
98
|
value: function componentDidUpdate() {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
_this$props2$value = _this$props2.value,
|
|
102
|
-
value = _this$props2$value === void 0 ? '' : _this$props2$value,
|
|
103
|
-
readonly = _this$props2.readonly;
|
|
104
|
-
!readonly && !value && this[inputKey].txt.html(value); //支持清空操作
|
|
99
|
+
// const {inputKey,value='', readonly} = this.props;
|
|
100
|
+
// !readonly && value && this[inputKey].txt.html(value); //支持清空操作
|
|
105
101
|
}
|
|
106
102
|
}, {
|
|
107
103
|
key: "render",
|
|
108
104
|
value: function render() {
|
|
109
|
-
var _this$
|
|
110
|
-
inputKey = _this$
|
|
111
|
-
readonly = _this$
|
|
112
|
-
value = _this$
|
|
105
|
+
var _this$props2 = this.props,
|
|
106
|
+
inputKey = _this$props2.inputKey,
|
|
107
|
+
readonly = _this$props2.readonly,
|
|
108
|
+
value = _this$props2.value;
|
|
113
109
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
110
|
className: (0, _variables["default"])('InputEditor')
|
|
115
111
|
}, readonly ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -645,7 +645,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
|
|
|
645
645
|
text = _helper["default"].toThousands(text, col.decimalPlaces ? col.decimalPlaces : 2);
|
|
646
646
|
return "\uFFE5".concat(text);
|
|
647
647
|
} else {
|
|
648
|
-
return "\uFFE5".concat(text.toFixed(2));
|
|
648
|
+
return text ? "\uFFE5".concat(text.toFixed(2)) : text;
|
|
649
649
|
}
|
|
650
650
|
};
|
|
651
651
|
}
|