@hi-ui/table 4.1.0-beta.5 → 4.1.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.
- package/CHANGELOG.md +10 -38
- package/lib/cjs/TableBody.js +2 -0
- package/lib/cjs/hooks/use-colgroup.js +1 -2
- package/lib/esm/TableBody.js +2 -0
- package/lib/esm/hooks/use-colgroup.js +1 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,55 +1,27 @@
|
|
|
1
1
|
# @hi-ui/table
|
|
2
2
|
|
|
3
|
-
## 4.1.0
|
|
3
|
+
## 4.1.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- [#2474](https://github.com/XiaoMi/hiui/pull/2474) [`e95268aa4`](https://github.com/XiaoMi/hiui/commit/e95268aa4af48edaaa9f6afcf5a262342a550cd1) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: rowSelection onChange 回调增加已选数据集合参数
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- [#2474](https://github.com/XiaoMi/hiui/pull/2474) [`e95268aa4`](https://github.com/XiaoMi/hiui/commit/e95268aa4af48edaaa9f6afcf5a262342a550cd1) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 增加虚拟滚动功能
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
- 0bed8c060: feat: data 增加 disabled 配置,用于是否禁用列设置操作
|
|
11
|
+
- [#2474](https://github.com/XiaoMi/hiui/pull/2474) [`e95268aa4`](https://github.com/XiaoMi/hiui/commit/e95268aa4af48edaaa9f6afcf5a262342a550cd1) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 增加 dataSource 功能
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
- [#2474](https://github.com/XiaoMi/hiui/pull/2474) [`e95268aa4`](https://github.com/XiaoMi/hiui/commit/e95268aa4af48edaaa9f6afcf5a262342a550cd1) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 列设置增加 checkDisabledColKeys api,用于禁用列选择操作
|
|
16
14
|
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
## 4.1.0-beta.3
|
|
15
|
+
- [#2474](https://github.com/XiaoMi/hiui/pull/2474) [`e95268aa4`](https://github.com/XiaoMi/hiui/commit/e95268aa4af48edaaa9f6afcf5a262342a550cd1) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: add SettingDrawer component
|
|
20
16
|
|
|
21
17
|
### Patch Changes
|
|
22
18
|
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
## 4.1.0-beta.2
|
|
26
|
-
|
|
27
|
-
### Patch Changes
|
|
28
|
-
|
|
29
|
-
- ec96a225e: 优化 setting 设置
|
|
30
|
-
|
|
31
|
-
## 4.1.0-beta.1
|
|
19
|
+
- [#2474](https://github.com/XiaoMi/hiui/pull/2474) [`e95268aa4`](https://github.com/XiaoMi/hiui/commit/e95268aa4af48edaaa9f6afcf5a262342a550cd1) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 数据排序样式不对
|
|
32
20
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- 优化 setting 设置
|
|
36
|
-
|
|
37
|
-
## 4.1.0-beta.0
|
|
38
|
-
|
|
39
|
-
### Minor Changes
|
|
40
|
-
|
|
41
|
-
- 094ff4861: rowSelection onChange 回调增加已选数据集合参数
|
|
42
|
-
- 增加虚拟滚动功能
|
|
43
|
-
- f74da3dc8: 增加 dataSource 功能
|
|
44
|
-
|
|
45
|
-
### Patch Changes
|
|
21
|
+
- [#2473](https://github.com/XiaoMi/hiui/pull/2473) [`3d5f9ba15`](https://github.com/XiaoMi/hiui/commit/3d5f9ba15868ccdc385cdcdc8a3bbe2e55542b39) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 修复 sonarcloud 扫描的 Bugs
|
|
46
22
|
|
|
47
|
-
- Updated dependencies
|
|
48
|
-
-
|
|
49
|
-
- @hi-ui/spinner@4.0.5-beta.0
|
|
50
|
-
- @hi-ui/loading@4.1.0-beta.0
|
|
51
|
-
- @hi-ui/select@4.0.10-beta.0
|
|
52
|
-
- @hi-ui/pagination@4.0.9-beta.0
|
|
23
|
+
- Updated dependencies [[`e95268aa4`](https://github.com/XiaoMi/hiui/commit/e95268aa4af48edaaa9f6afcf5a262342a550cd1)]:
|
|
24
|
+
- @hi-ui/loading@4.1.0
|
|
53
25
|
|
|
54
26
|
## 4.0.13
|
|
55
27
|
|
package/lib/cjs/TableBody.js
CHANGED
|
@@ -64,6 +64,7 @@ var TableBody = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
64
64
|
bodyTableRef = _useTableContext.bodyTableRef,
|
|
65
65
|
scrollBodyElementRef = _useTableContext.scrollBodyElementRef,
|
|
66
66
|
onTableBodyScroll = _useTableContext.onTableBodyScroll,
|
|
67
|
+
onTableBodyScrollMock = _useTableContext.onTableBodyScrollMock,
|
|
67
68
|
maxHeight = _useTableContext.maxHeight,
|
|
68
69
|
canScroll = _useTableContext.canScroll,
|
|
69
70
|
scrollWidth = _useTableContext.scrollWidth,
|
|
@@ -114,6 +115,7 @@ var TableBody = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
114
115
|
ref: scrollBodyElementRef,
|
|
115
116
|
className: cls,
|
|
116
117
|
onScroll: onVirtualContainerScroll,
|
|
118
|
+
onWheel: onTableBodyScrollMock,
|
|
117
119
|
style: {
|
|
118
120
|
maxHeight: maxHeight !== undefined ? maxHeight : undefined,
|
|
119
121
|
// maxHeight 小于 table 实际高度才出现纵向滚动条
|
|
@@ -74,8 +74,7 @@ var useColumns = function useColumns(_ref) {
|
|
|
74
74
|
}, [flattedColumns]);
|
|
75
75
|
|
|
76
76
|
var _React$useMemo2 = React__default["default"].useMemo(function () {
|
|
77
|
-
var
|
|
78
|
-
var nextColumns = preset.concat( // @ts-ignore
|
|
77
|
+
var nextColumns = [].concat( // @ts-ignore
|
|
79
78
|
// flattedColumns.filter((col) => isLeaf(col)) as FlattedTableColumnItemData[]
|
|
80
79
|
flattedColumns); // 表头分组
|
|
81
80
|
// 在最后一层,colSpan = 1, rowSpan = maxDepth - depth + 1
|
package/lib/esm/TableBody.js
CHANGED
|
@@ -39,6 +39,7 @@ var TableBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
39
39
|
bodyTableRef = _useTableContext.bodyTableRef,
|
|
40
40
|
scrollBodyElementRef = _useTableContext.scrollBodyElementRef,
|
|
41
41
|
onTableBodyScroll = _useTableContext.onTableBodyScroll,
|
|
42
|
+
onTableBodyScrollMock = _useTableContext.onTableBodyScrollMock,
|
|
42
43
|
maxHeight = _useTableContext.maxHeight,
|
|
43
44
|
canScroll = _useTableContext.canScroll,
|
|
44
45
|
scrollWidth = _useTableContext.scrollWidth,
|
|
@@ -89,6 +90,7 @@ var TableBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
89
90
|
ref: scrollBodyElementRef,
|
|
90
91
|
className: cls,
|
|
91
92
|
onScroll: onVirtualContainerScroll,
|
|
93
|
+
onWheel: onTableBodyScrollMock,
|
|
92
94
|
style: {
|
|
93
95
|
maxHeight: maxHeight !== undefined ? maxHeight : undefined,
|
|
94
96
|
// maxHeight 小于 table 实际高度才出现纵向滚动条
|
|
@@ -56,8 +56,7 @@ var useColumns = function useColumns(_ref) {
|
|
|
56
56
|
}, [flattedColumns]);
|
|
57
57
|
|
|
58
58
|
var _React$useMemo2 = React__default.useMemo(function () {
|
|
59
|
-
var
|
|
60
|
-
var nextColumns = preset.concat( // @ts-ignore
|
|
59
|
+
var nextColumns = [].concat( // @ts-ignore
|
|
61
60
|
// flattedColumns.filter((col) => isLeaf(col)) as FlattedTableColumnItemData[]
|
|
62
61
|
flattedColumns); // 表头分组
|
|
63
62
|
// 在最后一层,colSpan = 1, rowSpan = maxDepth - depth + 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hi-ui/table",
|
|
3
|
-
"version": "4.1.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "HiUI <mi-hiui@xiaomi.com>",
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"@hi-ui/func-utils": "^4.0.1",
|
|
55
55
|
"@hi-ui/icon-button": "^4.0.4",
|
|
56
56
|
"@hi-ui/icons": "^4.0.4",
|
|
57
|
-
"@hi-ui/loading": "^4.1.0
|
|
57
|
+
"@hi-ui/loading": "^4.1.0",
|
|
58
58
|
"@hi-ui/object-utils": "^4.0.1",
|
|
59
|
-
"@hi-ui/pagination": "^4.0.
|
|
59
|
+
"@hi-ui/pagination": "^4.0.8",
|
|
60
60
|
"@hi-ui/popper": "^4.0.4",
|
|
61
61
|
"@hi-ui/react-utils": "^4.0.1",
|
|
62
|
-
"@hi-ui/select": "^4.0.
|
|
63
|
-
"@hi-ui/spinner": "^4.0.
|
|
62
|
+
"@hi-ui/select": "^4.0.8",
|
|
63
|
+
"@hi-ui/spinner": "^4.0.4",
|
|
64
64
|
"@hi-ui/times": "^4.0.1",
|
|
65
65
|
"@hi-ui/tree-utils": "^4.0.2",
|
|
66
66
|
"@hi-ui/type-assertion": "^4.0.1",
|