cloud-b2b 1.1.21 → 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.
@@ -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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-b2b",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "A react component library dependent antd",
5
5
  "keywords": [
6
6
  "react",