Explorar el Código

docs: improve table doc about fixed columns

linyan hace 2 años
padre
commit
c4e3e7cb5b
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      content/show/table/index-en-US.md
  2. 1 1
      content/show/table/index.md

+ 1 - 1
content/show/table/index-en-US.md

@@ -811,7 +811,7 @@ render(App);
 You can fix the column by setting the Fixed attribute of the column and scroll.x, and fix the header by setting scroll.y.
 
 > -   Make sure that all elements inside the table do not affect the height of the cells after rendering (e.g. containing unloaded pictures, etc.). In this case, give the stator element a definite height to ensure that the left and right Fixed columns of cells are not deranged.
-> -   If the column header is not aligned with the content or there is a column duplication, specify the width width of the fixed column. If the specified width is not effective, try to recommend leaving a column with no width to accommodate the elastic layout, or check for ultra-long continuous fields to destroy the layout.
+> -   If the column header is not aligned with the content or there is a column duplication or when the fixed column fails, specify the width width of the fixed column, if still not effective, try to recommend leaving a column with no width to accommodate the elastic layout, or check for ultra-long continuous fields to destroy the layout.
 > -   It is recommended to specify scroll.x as a **fixed value** or percentage greater than the width of the table. It is recommended to set a fixed value of `>= the sum of all fixed column widths + the sum of all table column widths`.
 
 ```jsx live=true noInline=true dir="column"

+ 1 - 1
content/show/table/index.md

@@ -808,7 +808,7 @@ render(App);
 可以通过设置 column 的 `fixed` 属性以及 `scroll.x` 来进行列固定,通过设置 `scroll.y` 来进行表头固定。
 
 > -   请确保表格内部的所有元素在渲染后不会对单元格的高度造成影响(例如含有未加载完成的图片等),这种情况下请给定子元素一个确定的高度,以此确保左右固定列单元格不会错乱。
-> -   若列头与内容不对齐或出现列重复,请指定固定列的宽度 `width`。如果指定 `width` 不生效,请尝试建议留一列不设宽度以适应弹性布局,或者检查是否有超长连续字段破坏布局。
+> -   若列头与内容不对齐或出现列重复或者固定列失效的情况,请指定固定列的宽度 `width`,若指定宽度后仍不生效,请尝试建议留一列不设宽度以适应弹性布局,或者检查是否有超长连续字段破坏布局。
 > -   建议指定 `scroll.x` 为大于表格宽度的**固定值**或百分比。推荐设置为 `>=所有固定列宽之和+所有表格列宽之和` 的固定数值。
 
 ```jsx live=true noInline=true dir="column"