cloud-b2b 1.1.13 → 1.1.14

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.
@@ -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用下划线开始命名,避免与后台数据冲突
@@ -250,7 +250,7 @@ function SuperUpload(props) {
250
250
  }
251
251
 
252
252
  fetchImgData();
253
- }, []);
253
+ }, [props.fileList]);
254
254
 
255
255
  var onPreview = /*#__PURE__*/function () {
256
256
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(file) {
@@ -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用下划线开始命名,避免与后台数据冲突
@@ -292,7 +292,7 @@ function SuperUpload(props) {
292
292
  }
293
293
 
294
294
  fetchImgData();
295
- }, []);
295
+ }, [props.fileList]);
296
296
 
297
297
  var onPreview = /*#__PURE__*/function () {
298
298
  var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(file) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-b2b",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "A react component library dependent antd",
5
5
  "keywords": [
6
6
  "react",