Browse Source

chore: upgrade rc-table (#26973)

* chore: upgrade rc-table

* improve doc
pull/26993/head
骗你是小猫咪 4 years ago
committed by GitHub
parent
commit
bd62870258
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/table/index.en-US.md
  2. 2
      components/table/index.zh-CN.md
  3. 2
      components/table/style/index.less
  4. 2
      package.json

2
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

2
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 用法

2
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;

2
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",

Loading…
Cancel
Save