cloud-b2b 1.1.12 → 1.1.15

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.
@@ -6,9 +6,7 @@ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/inst
6
6
  import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
7
  import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
8
  import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
- import _Row from "antd/es/row";
10
9
  import _Button from "antd/es/button";
11
- import _Col from "antd/es/col";
12
10
  import _Input from "antd/es/input";
13
11
  import _asyncToGenerator from "@babel/runtime-corejs3/helpers/asyncToGenerator";
14
12
  import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
@@ -117,10 +115,11 @@ var CodeInput = /*#__PURE__*/function (_React$Component) {
117
115
  });
118
116
 
119
117
  _defineProperty(_assertThisInitialized(_this), "inputProps", function (props) {
120
- var inpPros = _Object$assign(helper.getObjectExclude(props, ['onGetCode']));
118
+ var inpPros = _Object$assign(helper.getObjectExclude(props, ['onGetCode', 'value']));
121
119
 
122
120
  return _objectSpread(_objectSpread({}, inpPros), {}, {
123
- size: 'large'
121
+ size: 'large',
122
+ defaultValue: props.value || ''
124
123
  });
125
124
  });
126
125
 
@@ -139,9 +138,11 @@ var CodeInput = /*#__PURE__*/function (_React$Component) {
139
138
  readonly = _this$props.readonly,
140
139
  value = _this$props.value;
141
140
  var time = this.state.time;
142
- return /*#__PURE__*/React.createElement(_Row, null, /*#__PURE__*/React.createElement(_Col, {
143
- span: 20
144
- }, /*#__PURE__*/React.createElement(_Input, this.inputProps(this.props))), /*#__PURE__*/React.createElement(_Col, null, /*#__PURE__*/React.createElement(_Button, this.btnProps(this.props), time === 0 ? "\u83B7\u53D6\u9A8C\u8BC1\u7801" : "".concat(time, "s\u83B7\u53D6\u9A8C\u8BC1\u7801"))));
141
+ return /*#__PURE__*/React.createElement("div", {
142
+ style: {
143
+ display: 'flex'
144
+ }
145
+ }, /*#__PURE__*/React.createElement(_Input, this.inputProps(this.props)), /*#__PURE__*/React.createElement(_Button, this.btnProps(this.props), time === 0 ? "\u83B7\u53D6\u9A8C\u8BC1\u7801" : "".concat(time, "s\u83B7\u53D6\u9A8C\u8BC1\u7801")));
145
146
  }
146
147
  }]);
147
148
 
@@ -420,7 +420,7 @@ var SuperForm = /*#__PURE__*/function (_React$Component2) {
420
420
  'resize': 'none'
421
421
  };
422
422
  } else {
423
- props.autosize = {
423
+ props.autoSize = {
424
424
  minRows: 1,
425
425
  maxRows: 5
426
426
  };
@@ -446,7 +446,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
446
446
  'resize': 'none'
447
447
  };
448
448
  } else {
449
- props.autosize = {
449
+ props.autoSize = {
450
450
  minRows: 1,
451
451
  maxRows: 5
452
452
  };
@@ -420,7 +420,11 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
420
420
  minWidth: '100px',
421
421
  maxWidth: "".concat(col.width - 16, "px"),
422
422
  overflow: 'hidden',
423
- textOverflow: 'ellipsis'
423
+ textOverflow: 'ellipsis',
424
+ display: '-webkit-box',
425
+ WebkitLineClamp: 2,
426
+ WebkitBoxOrient: "vertical",
427
+ whiteSpace: 'break-spaces'
424
428
  },
425
429
  title: value
426
430
  }, value);
@@ -471,7 +475,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
471
475
  });
472
476
 
473
477
  case 'custom':
474
- return _this.props.callback.onRenderCustom(record.key, col.key, value, col.props);
478
+ return _this.props.callback.onRenderCustom(record.key, col.key, value, col.props, col);
475
479
 
476
480
  case 'toolbar':
477
481
  //showByKey为true时,每条数据中与按钮key相同的属性值决定按钮是否显示,建议key用下划线开始命名,避免与后台数据冲突
@@ -26,9 +26,9 @@
26
26
  background: #2CBB45!important;
27
27
  }
28
28
 
29
- :global(.ant-table-fixed){
30
- width: 100% !important;
31
- }
29
+ //:global(.ant-table-fixed){
30
+ // width: 100% !important;
31
+ //}
32
32
  :global(.ant-table-tbody){
33
33
  width: 100% !important;
34
34
  }
@@ -22,6 +22,7 @@
22
22
  }
23
23
 
24
24
  :global(.ant-upload-select-picture-card) {
25
- display: block !important;
25
+ margin: 10px;
26
+ display: none !important;
26
27
  }
27
28
  }
@@ -28,12 +28,8 @@ exports["default"] = void 0;
28
28
 
29
29
  var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs3/regenerator"));
30
30
 
31
- var _row = _interopRequireDefault(require("antd/lib/row"));
32
-
33
31
  var _button = _interopRequireDefault(require("antd/lib/button"));
34
32
 
35
- var _col = _interopRequireDefault(require("antd/lib/col"));
36
-
37
33
  var _input = _interopRequireDefault(require("antd/lib/input"));
38
34
 
39
35
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));
@@ -148,9 +144,10 @@ var CodeInput = /*#__PURE__*/function (_React$Component) {
148
144
  });
149
145
  });
150
146
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "inputProps", function (props) {
151
- var inpPros = (0, _assign["default"])(_helper["default"].getObjectExclude(props, ['onGetCode']));
147
+ var inpPros = (0, _assign["default"])(_helper["default"].getObjectExclude(props, ['onGetCode', 'value']));
152
148
  return _objectSpread(_objectSpread({}, inpPros), {}, {
153
- size: 'large'
149
+ size: 'large',
150
+ defaultValue: props.value || ''
154
151
  });
155
152
  });
156
153
  _this.state = {
@@ -168,9 +165,11 @@ var CodeInput = /*#__PURE__*/function (_React$Component) {
168
165
  readonly = _this$props.readonly,
169
166
  value = _this$props.value;
170
167
  var time = this.state.time;
171
- return /*#__PURE__*/_react["default"].createElement(_row["default"], null, /*#__PURE__*/_react["default"].createElement(_col["default"], {
172
- span: 20
173
- }, /*#__PURE__*/_react["default"].createElement(_input["default"], this.inputProps(this.props))), /*#__PURE__*/_react["default"].createElement(_col["default"], null, /*#__PURE__*/_react["default"].createElement(_button["default"], this.btnProps(this.props), time === 0 ? "\u83B7\u53D6\u9A8C\u8BC1\u7801" : "".concat(time, "s\u83B7\u53D6\u9A8C\u8BC1\u7801"))));
168
+ return /*#__PURE__*/_react["default"].createElement("div", {
169
+ style: {
170
+ display: 'flex'
171
+ }
172
+ }, /*#__PURE__*/_react["default"].createElement(_input["default"], this.inputProps(this.props)), /*#__PURE__*/_react["default"].createElement(_button["default"], this.btnProps(this.props), time === 0 ? "\u83B7\u53D6\u9A8C\u8BC1\u7801" : "".concat(time, "s\u83B7\u53D6\u9A8C\u8BC1\u7801")));
174
173
  }
175
174
  }]);
176
175
  return CodeInput;
@@ -450,7 +450,7 @@ var SuperForm = /*#__PURE__*/function (_React$Component2) {
450
450
  'resize': 'none'
451
451
  };
452
452
  } else {
453
- props.autosize = {
453
+ props.autoSize = {
454
454
  minRows: 1,
455
455
  maxRows: 5
456
456
  };
@@ -475,7 +475,7 @@ var SuperForm2 = /*#__PURE__*/function (_React$Component2) {
475
475
  'resize': 'none'
476
476
  };
477
477
  } else {
478
- props.autosize = {
478
+ props.autoSize = {
479
479
  minRows: 1,
480
480
  maxRows: 5
481
481
  };
@@ -469,7 +469,11 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
469
469
  minWidth: '100px',
470
470
  maxWidth: "".concat(col.width - 16, "px"),
471
471
  overflow: 'hidden',
472
- textOverflow: 'ellipsis'
472
+ textOverflow: 'ellipsis',
473
+ display: '-webkit-box',
474
+ WebkitLineClamp: 2,
475
+ WebkitBoxOrient: "vertical",
476
+ whiteSpace: 'break-spaces'
473
477
  },
474
478
  title: value
475
479
  }, value);
@@ -520,7 +524,7 @@ var SuperTable2 = /*#__PURE__*/function (_React$Component) {
520
524
  });
521
525
 
522
526
  case 'custom':
523
- return _this.props.callback.onRenderCustom(record.key, col.key, value, col.props);
527
+ return _this.props.callback.onRenderCustom(record.key, col.key, value, col.props, col);
524
528
 
525
529
  case 'toolbar':
526
530
  //showByKey为true时,每条数据中与按钮key相同的属性值决定按钮是否显示,建议key用下划线开始命名,避免与后台数据冲突
@@ -26,9 +26,9 @@
26
26
  background: #2CBB45!important;
27
27
  }
28
28
 
29
- :global(.ant-table-fixed){
30
- width: 100% !important;
31
- }
29
+ //:global(.ant-table-fixed){
30
+ // width: 100% !important;
31
+ //}
32
32
  :global(.ant-table-tbody){
33
33
  width: 100% !important;
34
34
  }
@@ -22,6 +22,7 @@
22
22
  }
23
23
 
24
24
  :global(.ant-upload-select-picture-card) {
25
- display: block !important;
25
+ margin: 10px;
26
+ display: none !important;
26
27
  }
27
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-b2b",
3
- "version": "1.1.12",
3
+ "version": "1.1.15",
4
4
  "description": "A react component library dependent antd",
5
5
  "keywords": [
6
6
  "react",