Browse Source
chore: upgrade rc-table (#26973)
* chore: upgrade rc-table
* improve doc
pull/26993/head
骗你是小猫咪
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
4 additions and
4 deletions
-
components/table/index.en-US.md
-
components/table/index.zh-CN.md
-
components/table/style/index.less
-
package.json
|
|
@ -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 |
|
|
|
|
|
|
|
|
|
@ -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 用法 |
|
|
|
|
|
|
|
|
|
@ -607,7 +607,7 @@ |
|
|
|
z-index: @table-sticky-zindex; |
|
|
|
} |
|
|
|
&-scroll { |
|
|
|
position: fixed; |
|
|
|
position: sticky; |
|
|
|
bottom: 0; |
|
|
|
z-index: @table-sticky-zindex; |
|
|
|
display: flex; |
|
|
|
|
|
@ -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", |
|
|
|