From 2e5928450d19b423a5986bd823673ef27d6d9b06 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 4 Sep 2019 18:21:54 +0800 Subject: [PATCH] :memo: Improve Table doc about tableLayout --- components/table/index.en-US.md | 2 +- components/table/index.zh-CN.md | 2 +- site/theme/static/markdown.less | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/components/table/index.en-US.md b/components/table/index.en-US.md index 1b372a49baa2..c9097e111b6b 100644 --- a/components/table/index.en-US.md +++ b/components/table/index.en-US.md @@ -59,7 +59,7 @@ const columns = [ | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | -| tableLayout | [table-layout](https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout) attribute of table element | 'auto' \| 'fixed' | 'auto'

`fixed` when header/columns are fixed, or using `column.ellipsis` | 3.24.0 | +| tableLayout | [table-layout](https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout) attribute of table element | - \| 'auto' \| 'fixed' | -
`fixed` when header/columns are fixed, or using `column.ellipsis` | 3.24.0 | | bordered | Whether to show all table borders | boolean | `false` | | | childrenColumnName | The column contains children to display | string\[] | children | 3.4.2 | | columns | Columns of table | [ColumnProps](https://git.io/vMMXC)\[] | - | | diff --git a/components/table/index.zh-CN.md b/components/table/index.zh-CN.md index 21f5d5ecafa9..32ae5496bbda 100644 --- a/components/table/index.zh-CN.md +++ b/components/table/index.zh-CN.md @@ -64,7 +64,7 @@ const columns = [ | 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | -| tableLayout | 表格元素的 [table-layout](https://developer.mozilla.org/zh-CN/docs/Web/CSS/table-layout) 属性,设为 `fixed` 表示内容不会影响列的布局 | 'auto' \| 'fixed' | 'auto'

固定表头/列或使用了 `column.ellipsis` 时,默认值为 `fixed` | 3.24.0 | +| tableLayout | 表格元素的 [table-layout](https://developer.mozilla.org/zh-CN/docs/Web/CSS/table-layout) 属性,设为 `fixed` 表示内容不会影响列的布局 | - \| 'auto' \| 'fixed' | 无
固定表头/列或使用了 `column.ellipsis` 时,默认值为 `fixed` | 3.24.0 | | bordered | 是否展示外边框和列边框 | boolean | false | | | childrenColumnName | 指定树形结构的列名 | string\[] | children | 3.4.2 | | columns | 表格列的配置描述,具体项见下表 | [ColumnProps](https://git.io/vMMXC)\[] | - | | diff --git a/site/theme/static/markdown.less b/site/theme/static/markdown.less index f176def9d542..4d64e6c09cd8 100644 --- a/site/theme/static/markdown.less +++ b/site/theme/static/markdown.less @@ -252,11 +252,15 @@ word-break: break-all; } &:nth-child(4) { - width: 13%; + width: 16%; font-size: @font-size-base - 1px; } } } + + hr { + margin: 12px 0; + } } .grid-demo,