cloud-b2b 1.1.20 → 1.1.22

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; // if (onSearch && (options.length <= value.length)) {
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) {
73
+ if (onSearch && searchWhenClick) {
72
74
  onSearch(e.target.value);
73
75
  }
74
76
  });
@@ -755,10 +755,12 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
755
755
  key: "render",
756
756
  value: function render() {
757
757
  this.initValidState();
758
+ var _this$props$layout = this.props.layout,
759
+ layout = _this$props$layout === void 0 ? 'horizontal' : _this$props$layout;
758
760
  return /*#__PURE__*/React.createElement("div", {
759
761
  className: variables('SuperForm2')
760
762
  }, /*#__PURE__*/React.createElement(_Form, {
761
- layout: "horizontal",
763
+ layout: layout,
762
764
  style: {
763
765
  maxWidth: this.props.allFullFather ? '100%' : this.getMaxWidth()
764
766
  }
@@ -788,8 +790,9 @@ _defineProperty(SuperForm2, "propTypes", {
788
790
  onGetCode: PropTypes.func,
789
791
  onFileChange: PropTypes.func,
790
792
  onAreaSearch: PropTypes.func,
791
- buildSuperUploadProps: PropTypes.func //构建type===uploadImg时,SuperUpload组件需要的公共属性函数,已在项目公共文件state.js中提供,可直接引用
792
-
793
+ buildSuperUploadProps: PropTypes.func,
794
+ //构建type===uploadImg时,SuperUpload组件需要的公共属性函数,已在项目公共文件state.js中提供,可直接引用
795
+ layout: PropTypes.string
793
796
  });
794
797
 
795
798
  export default SuperForm2;
@@ -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; // if (onSearch && (options.length <= value.length)) {
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) {
107
+ if (onSearch && searchWhenClick) {
106
108
  onSearch(e.target.value);
107
109
  }
108
110
  });
@@ -764,10 +764,12 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
764
764
  key: "render",
765
765
  value: function render() {
766
766
  this.initValidState();
767
+ var _this$props$layout = this.props.layout,
768
+ layout = _this$props$layout === void 0 ? 'horizontal' : _this$props$layout;
767
769
  return /*#__PURE__*/_react["default"].createElement("div", {
768
770
  className: (0, _variables["default"])('SuperForm2')
769
771
  }, /*#__PURE__*/_react["default"].createElement(_form["default"], {
770
- layout: "horizontal",
772
+ layout: layout,
771
773
  style: {
772
774
  maxWidth: this.props.allFullFather ? '100%' : this.getMaxWidth()
773
775
  }
@@ -796,8 +798,9 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
796
798
  onGetCode: _propTypes["default"].func,
797
799
  onFileChange: _propTypes["default"].func,
798
800
  onAreaSearch: _propTypes["default"].func,
799
- buildSuperUploadProps: _propTypes["default"].func //构建type===uploadImg时,SuperUpload组件需要的公共属性函数,已在项目公共文件state.js中提供,可直接引用
800
-
801
+ buildSuperUploadProps: _propTypes["default"].func,
802
+ //构建type===uploadImg时,SuperUpload组件需要的公共属性函数,已在项目公共文件state.js中提供,可直接引用
803
+ layout: _propTypes["default"].string
801
804
  });
802
805
  var _default = SuperForm2;
803
806
  exports["default"] = _default;
@@ -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.20",
3
+ "version": "1.1.22",
4
4
  "description": "A react component library dependent antd",
5
5
  "keywords": [
6
6
  "react",