Browse Source

docs: add Table components prop to API doc

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

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

@@ -4975,6 +4975,7 @@ render(App);
 | className | Outermost style name | string |  |
 | clickGroupedRowToExpand | Group content expands or collapses when the group header row is clicked | boolean |  | **0.29.0** |
 | columns | For a configuration description of the table column, see [Column](#Column) | Column [] | [] |
+| components | Override the elements of Table, such as table, body, row, td, th, etc. | <a target="_blank" href="https://github.com/DouyinFE/semi-design/blob/340c93e4e1612a879be869c43ad7a9a85ab5a302/packages/semi-ui/table/interface.ts#L200">TableComponents</a> |  |
 | dataSource | Data | RecordType[] | [] |
 | defaultExpandAllRows | All rows are expanded by default | boolean | false |
 | defaultExpandAllGroupRows | All grouped rows are expanded by default | boolean | false | **1.30.0** |

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

@@ -4984,6 +4984,7 @@ render(App);
 | className | 最外层样式名 | string |  |
 | clickGroupedRowToExpand | 点击分组表头行时分组内容展开或收起 | boolean |  | **0.29.0** |
 | columns | 表格列的配置描述,详见[Column](#Column) | Column[] | [] |
+| components | 覆盖 Table 的组成元素,如 table, body,row,td,th 等 | <a target="_blank" href="https://github.com/DouyinFE/semi-design/blob/340c93e4e1612a879be869c43ad7a9a85ab5a302/packages/semi-ui/table/interface.ts#L200">TableComponents</a> |  |
 | dataSource | 数据 | RecordType[] | [] |
 | defaultExpandAllRows | 默认是否展开所有行,动态加载数据时不生效 | boolean | false |
 | defaultExpandAllGroupRows | 默认是否展开分组行,动态加载数据时不生效 | boolean | false | **1.30.0** |