cloud-b2b 1.1.43 → 1.1.45

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].customConfig.menus = menus);
68
+ menus && (this[inputKey].config.menus = menus);
69
69
  //配置颜色
70
- color && (this[inputKey].customConfig.menus = color);
70
+ color && (this[inputKey].config.menus = color);
71
71
  //配置菜单
72
- this[inputKey].customConfig.menus = defaultMenus;
72
+ this[inputKey].config.menus = defaultMenus;
73
73
  if (menus) {
74
- this[inputKey].customConfig.menus = menus;
74
+ this[inputKey].config.menus = menus;
75
75
  }
76
- this[inputKey].customConfig.uploadImgShowBase64 = uploadImgShowBase64; //是否可以上传图片
77
- this[inputKey].customConfig.showLinkImg = showLinkImg; //隐藏网络图片
76
+ this[inputKey].config.uploadImgShowBase64 = uploadImgShowBase64; //是否可以上传图片
77
+ this[inputKey].config.showLinkImg = showLinkImg; //隐藏网络图片
78
78
 
79
- this[inputKey].customConfig.onchange = function (html) {
79
+ this[inputKey].config.onchange = function (html) {
80
80
  onChange && onChange(html);
81
81
  };
82
82
  //配置编辑区域的 z-index
83
- this[inputKey].customConfig.zIndex = 0;
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
- var _this$props2 = this.props,
92
- inputKey = _this$props2.inputKey,
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$props3 = this.props,
102
- inputKey = _this$props3.inputKey,
103
- readonly = _this$props3.readonly,
104
- value = _this$props3.value;
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", {
@@ -487,7 +487,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
487
487
  maxWidth: "".concat(col.width, "px")
488
488
  }
489
489
  }, /*#__PURE__*/React.createElement("img", {
490
- src: value.img === '' ? '/productDefault.png' : _includesInstanceProperty(_context8 = value.img).call(_context8, 'http') ? value.img : _concatInstanceProperty(_context9 = "".concat(window.location.origin, "/api/proxy/file-center-service/")).call(_context9, value.img),
490
+ src: value.img ? '/productDefault.png' : _includesInstanceProperty(_context8 = value.img).call(_context8, 'http') ? value.img : _concatInstanceProperty(_context9 = "".concat(window.location.origin, "/api/proxy/file-center-service/")).call(_context9, value.img),
491
491
  onError: function onError(e) {
492
492
  return e.target.src = '/productDefault.png';
493
493
  },
@@ -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].customConfig.menus = menus);
76
+ menus && (this[inputKey].config.menus = menus);
77
77
  //配置颜色
78
- color && (this[inputKey].customConfig.menus = color);
78
+ color && (this[inputKey].config.menus = color);
79
79
  //配置菜单
80
- this[inputKey].customConfig.menus = defaultMenus;
80
+ this[inputKey].config.menus = defaultMenus;
81
81
  if (menus) {
82
- this[inputKey].customConfig.menus = menus;
82
+ this[inputKey].config.menus = menus;
83
83
  }
84
- this[inputKey].customConfig.uploadImgShowBase64 = uploadImgShowBase64; //是否可以上传图片
85
- this[inputKey].customConfig.showLinkImg = showLinkImg; //隐藏网络图片
84
+ this[inputKey].config.uploadImgShowBase64 = uploadImgShowBase64; //是否可以上传图片
85
+ this[inputKey].config.showLinkImg = showLinkImg; //隐藏网络图片
86
86
 
87
- this[inputKey].customConfig.onchange = function (html) {
87
+ this[inputKey].config.onchange = function (html) {
88
88
  onChange && onChange(html);
89
89
  };
90
90
  //配置编辑区域的 z-index
91
- this[inputKey].customConfig.zIndex = 0;
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
- var _this$props2 = this.props,
100
- inputKey = _this$props2.inputKey,
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$props3 = this.props,
110
- inputKey = _this$props3.inputKey,
111
- readonly = _this$props3.readonly,
112
- value = _this$props3.value;
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", {
@@ -500,7 +500,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
500
500
  maxWidth: "".concat(col.width, "px")
501
501
  }
502
502
  }, /*#__PURE__*/_react["default"].createElement("img", {
503
- src: value.img === '' ? '/productDefault.png' : (0, _includes["default"])(_context8 = value.img).call(_context8, 'http') ? value.img : (0, _concat["default"])(_context9 = "".concat(window.location.origin, "/api/proxy/file-center-service/")).call(_context9, value.img),
503
+ src: value.img ? '/productDefault.png' : (0, _includes["default"])(_context8 = value.img).call(_context8, 'http') ? value.img : (0, _concat["default"])(_context9 = "".concat(window.location.origin, "/api/proxy/file-center-service/")).call(_context9, value.img),
504
504
  onError: function onError(e) {
505
505
  return e.target.src = '/productDefault.png';
506
506
  },
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-b2b",
3
- "version": "1.1.43",
3
+ "version": "1.1.45",
4
4
  "description": "A react component library dependent antd",
5
5
  "keywords": [
6
6
  "react",