Skip to content

Commit

Permalink
📝 Add instruction for one column without width left in fixed table
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jan 2, 2019
1 parent 95660c4 commit 3ca6a18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/table/demo/fixed-columns-header.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ title:

适合同时展示有大量数据和数据列。

> 若列头与内容不对齐或出现列重复,请指定列的宽度 `width`
> 若列头与内容不对齐或出现列重复,请指定**固定列**的宽度 `width`
>
> 建议指定 `scroll.x` 为大于表格宽度的固定值或百分比。注意,且非固定列宽度之和不要超过 `scroll.x`
## en-US

A Solution for displaying large amounts of data with long columns.

> Specify the width of columns if header and cell do not align properly.
> Specify the width of columns if header and cell do not align properly. (Leave one column at least without width to fit fluid layout)
>
> A fixed value which is greater than table width for `scroll.x` is recommended. The sum of unfixed columns should not greater than `scroll.x`.
Expand Down
4 changes: 2 additions & 2 deletions components/table/demo/fixed-columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ title:

对于列数很多的数据,可以固定前后的列,横向滚动查看其它数据,需要和 `scroll.x` 配合使用。

> 若列头与内容不对齐或出现列重复,请指定列的宽度 `width`
> 若列头与内容不对齐或出现列重复,请指定**固定列**的宽度 `width`
>
> 建议指定 `scroll.x` 为大于表格宽度的固定值或百分比。注意,且非固定列宽度之和不要超过 `scroll.x`
## en-US

To fix some columns and scroll inside other columns, and you must set `scroll.x` meanwhile.

> Specify the width of columns if header and cell do not align properly.
> Specify the width of columns if header and cell do not align properly. (Leave one column at least without width to fit fluid layout)
>
> A fixed value which is greater than table width for `scroll.x` is recommended. The sum of unfixed columns should not greater than `scroll.x`.
Expand Down
4 changes: 2 additions & 2 deletions components/table/demo/fixed-header.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ title:

方便一页内展示大量数据。

需要指定 column 的 `width` 属性,否则列头和内容可能不对齐。
需要指定 column 的 `width` 属性,否则列头和内容可能不对齐。(建议留一列不设宽度以适应弹性布局)

## en-US

Display large amounts of data in scrollable view.

> Specify the width of each column if header and cell do not align properly.
> Specify width of columns if header and cell do not align properly. (Leave one column at least without width to fit fluid layout)
````jsx
import { Table } from 'antd';
Expand Down

0 comments on commit 3ca6a18

Please sign in to comment.