cloud-b2b 1.1.19 → 1.1.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.
@@ -66,9 +66,11 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
66
66
  options = _this$props$options === void 0 ? [] : _this$props$options,
67
67
  onSearch = _this$props.onSearch,
68
68
  _this$props$value = _this$props.value,
69
- value = _this$props$value === void 0 ? [] : _this$props$value;
69
+ value = _this$props$value === void 0 ? [] : _this$props$value,
70
+ _this$props$searchWhe = _this$props.searchWhenClick,
71
+ searchWhenClick = _this$props$searchWhe === void 0 ? false : _this$props$searchWhe; // if (onSearch && (options.length <= value.length)) {
70
72
 
71
- if (onSearch && options.length <= value.length) {
73
+ if (onSearch && searchWhenClick) {
72
74
  onSearch(e.target.value);
73
75
  }
74
76
  });
@@ -503,7 +503,10 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
503
503
  maxWidth: "".concat(col.width, "px")
504
504
  }
505
505
  }, /*#__PURE__*/React.createElement("img", {
506
- src: _includesInstanceProperty(_context8 = value.img).call(_context8, 'http') ? value.img : _concatInstanceProperty(_context9 = "".concat(window.location.origin, "/api/proxy/file-center-service/")).call(_context9, value.img),
506
+ 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),
507
+ onError: function onError(e) {
508
+ return e.target.src = '/productDefault.png';
509
+ },
507
510
  style: {
508
511
  width: '80px',
509
512
  height: '80px'
@@ -100,9 +100,11 @@ var InputSelect = /*#__PURE__*/function (_React$Component) {
100
100
  options = _this$props$options === void 0 ? [] : _this$props$options,
101
101
  onSearch = _this$props.onSearch,
102
102
  _this$props$value = _this$props.value,
103
- value = _this$props$value === void 0 ? [] : _this$props$value;
103
+ value = _this$props$value === void 0 ? [] : _this$props$value,
104
+ _this$props$searchWhe = _this$props.searchWhenClick,
105
+ searchWhenClick = _this$props$searchWhe === void 0 ? false : _this$props$searchWhe; // if (onSearch && (options.length <= value.length)) {
104
106
 
105
- if (onSearch && options.length <= value.length) {
107
+ if (onSearch && searchWhenClick) {
106
108
  onSearch(e.target.value);
107
109
  }
108
110
  });
@@ -552,7 +552,10 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
552
552
  maxWidth: "".concat(col.width, "px")
553
553
  }
554
554
  }, /*#__PURE__*/_react["default"].createElement("img", {
555
- src: (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),
555
+ 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),
556
+ onError: function onError(e) {
557
+ return e.target.src = '/productDefault.png';
558
+ },
556
559
  style: {
557
560
  width: '80px',
558
561
  height: '80px'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-b2b",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
4
4
  "description": "A react component library dependent antd",
5
5
  "keywords": [
6
6
  "react",