Browse Source

docs: update Table header sticky desciption

shijia.me 1 year ago
parent
commit
4d4c4ec1b0
2 changed files with 4 additions and 0 deletions
  1. 2 0
      content/show/table/index-en-US.md
  2. 2 0
      content/show/table/index.md

+ 2 - 0
content/show/table/index-en-US.md

@@ -945,6 +945,8 @@ render(App);
 
 The header can be fixed to the top of the page with the `sticky` property. v2.21 version support. When passing `top`, you can control the distance from the scroll container.
 
+After turning on sticky, Table will automatically turn on the fixed layout, and the column width will be determined by `column.width`. Columns without a given width are automatically assigned by the browser.
+
 <StickyHeaderTable />
 
 ```jsx live=false noInline=true dir="column"

+ 2 - 0
content/show/table/index.md

@@ -1034,6 +1034,8 @@ render(App);
 
 通过 `sticky` 属性可以将表头固定在页面顶部。v2.21 版本支持。传入 `top` 时可以控制距离滚动容器的距离。
 
+开启 sticky 后,Table 会自动打开 fixed 布局,列宽将由 `column.width` 决定。没有给定 width 的列宽由浏览器自动分配。
+
 <StickyHeaderTable />
 
 ```jsx live=false noInline=true dir="column"