@ucloud-fe/react-components 1.10.3 → 1.11.1
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.
- package/CHANGELOG.md +21 -0
- package/dist/main.min.js +7 -7
- package/lib/components/AutoComplete/AutoComplete.d.ts +1 -1
- package/lib/components/AutoComplete/AutoComplete.js +3 -1
- package/lib/components/Message/method.js +36 -17
- package/lib/components/Table/ColumnConfigButton.js +1 -0
- package/lib/components/Table/Table.js +29 -19
- package/lib/components/Table/style/index.js +19 -18
- package/lib/components/Tabs/TabBar.d.ts +2 -1
- package/lib/components/Tabs/TabBar.js +26 -11
- package/lib/components/Tabs/Tabs.d.ts +3 -1
- package/lib/components/Tabs/Tabs.js +6 -3
- package/lib/components/Tabs/index.d.ts +1 -1
- package/lib/components/Tabs/style/index.js +2 -2
- package/lib/libs/rc-table/ColGroup.js +6 -2
- package/lib/libs/rc-table/utils.d.ts +1 -0
- package/lib/libs/rc-table/utils.js +5 -1
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -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;
|