From bd62870258f33efe3a421fc08cc15854ae95bacd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AA=97=E4=BD=A0=E6=98=AF=E5=B0=8F=E7=8C=AB=E5=92=AA?= Date: Wed, 30 Sep 2020 20:41:34 +0800 Subject: [PATCH] chore: upgrade rc-table (#26973) * chore: upgrade rc-table * improve doc --- components/table/index.en-US.md | 2 +- components/table/index.zh-CN.md | 2 +- components/table/style/index.less | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/table/index.en-US.md b/components/table/index.en-US.md index 4d28a2bc7c..a6640357f2 100644 --- a/components/table/index.en-US.md +++ b/components/table/index.en-US.md @@ -84,7 +84,7 @@ const columns = [ | getPopupContainer | The render container of dropdowns in table | (triggerNode) => HTMLElement | () => TableHtmlElement | | | sortDirections | Supported sort way, could be `ascend`, `descend` | Array | \[`ascend`, `descend`] | | | showSorterTooltip | The header show next sorter direction tooltip | boolean | true | | -| sticky | Set sticky header and scroll bar | boolean \| `{offsetHeader?: number, offsetScroll?: number}` | - | 4.6.0 | +| sticky | Set sticky header and scroll bar | boolean \| `{offsetHeader?: number, offsetScroll?: number, getContainer?: () => HTMLElement}` | - | 4.6.0 (getContainer: 4.7.0) | #### onRow usage diff --git a/components/table/index.zh-CN.md b/components/table/index.zh-CN.md index 2b881f06fb..72c236ed34 100644 --- a/components/table/index.zh-CN.md +++ b/components/table/index.zh-CN.md @@ -91,7 +91,7 @@ const columns = [ | getPopupContainer | 设置表格内各类浮层的渲染节点,如筛选菜单 | (triggerNode) => HTMLElement | () => TableHtmlElement | | | sortDirections | 支持的排序方式,取值为 `ascend` `descend` | Array | \[`ascend`, `descend`] | | | showSorterTooltip | 表头是否显示下一次排序的 tooltip 提示 | boolean | true | | -| sticky | 设置粘性头部和滚动条 | boolean \| `{offsetHeader?: number, offsetScroll?: number}` | - | 4.6.0 | +| sticky | 设置粘性头部和滚动条 | boolean \| `{offsetHeader?: number, offsetScroll?: number, getContainer?: () => HTMLElement}` | - | 4.6.0 (getContainer: 4.7.0) | #### onRow 用法 diff --git a/components/table/style/index.less b/components/table/style/index.less index 8ff5fcd779..4183b8c5a6 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -607,7 +607,7 @@ z-index: @table-sticky-zindex; } &-scroll { - position: fixed; + position: sticky; bottom: 0; z-index: @table-sticky-zindex; display: flex; diff --git a/package.json b/package.json index 2e4dffb148..357ca8cb24 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "rc-slider": "~9.5.1", "rc-steps": "~4.1.0", "rc-switch": "~3.2.0", - "rc-table": "~7.9.2", + "rc-table": "~7.10.0", "rc-tabs": "~11.6.0", "rc-textarea": "~0.3.0", "rc-tooltip": "~5.0.0",