@ucloud-fe/react-components 1.11.0 → 1.12.0

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.
@@ -7,12 +7,16 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = ColGroup;
9
9
 
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
10
12
  var _newArrowCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/newArrowCheck"));
11
13
 
12
14
  var _react = _interopRequireDefault(require("react"));
13
15
 
14
16
  var _propTypes = _interopRequireDefault(require("prop-types"));
15
17
 
18
+ var _utils = require("./utils");
19
+
16
20
  function ColGroup(props, _ref) {
17
21
  var _this = this;
18
22
 
@@ -32,12 +36,12 @@ function ColGroup(props, _ref) {
32
36
  var leafColumns = table.columnManager.leafColumns();
33
37
  cols = cols.concat(leafColumns.map(function (c) {
34
38
  (0, _newArrowCheck2.default)(this, _this);
35
- return /*#__PURE__*/_react.default.createElement("col", {
39
+ return /*#__PURE__*/_react.default.createElement("col", (0, _extends2.default)({
36
40
  key: c.key || c.dataIndex,
37
41
  style: {
38
42
  width: c.width
39
43
  }
40
- });
44
+ }, c[_utils.INTERNAL_COL_DEFINE]));
41
45
  }.bind(this)));
42
46
  return /*#__PURE__*/_react.default.createElement("colgroup", null, cols);
43
47
  }
@@ -5,3 +5,4 @@ export function debounce(func: any, wait: any, immediate: any): {
5
5
  };
6
6
  export function warningOnce(condition: any, format: any, args: any): void;
7
7
  export function remove(array: any, item: any): any;
8
+ export const INTERNAL_COL_DEFINE: "RC_TABLE_INTERNAL_COL_DEFINE";
@@ -9,6 +9,7 @@ exports.measureScrollbar = measureScrollbar;
9
9
  exports.debounce = debounce;
10
10
  exports.warningOnce = warningOnce;
11
11
  exports.remove = remove;
12
+ exports.INTERNAL_COL_DEFINE = void 0;
12
13
 
13
14
  var _newArrowCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/newArrowCheck"));
14
15
 
@@ -114,4 +115,7 @@ function remove(array, item) {
114
115
  var front = array.slice(0, index);
115
116
  var last = array.slice(index + 1, array.length);
116
117
  return front.concat(last);
117
- }
118
+ }
119
+
120
+ var INTERNAL_COL_DEFINE = 'RC_TABLE_INTERNAL_COL_DEFINE';
121
+ exports.INTERNAL_COL_DEFINE = INTERNAL_COL_DEFINE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucloud-fe/react-components",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "title": "UCloud react components",
5
5
  "description": "UCloud react components",
6
6
  "keywords": [