Skip to content

Commit 6b34c47

Browse files
author
liyuan-meng
committed
修改表格 index.md
1 parent ce4b08e commit 6b34c47

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/components/c-table/demos/front-table1.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ function TableDemo({ data, setData }) {
5555
<Button style={{ marginBottom: 20 }} onClick={onAdd}>新增数据</Button>
5656
<CTable
5757
ref={tableRef}
58-
maxHeight={260}
5958
columnData={columns}
6059
ajaxData={{ totals: data.length, data }}
6160
onCell={(row, index) => {

src/components/c-table/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ group:
2323
| rowKey | 表格数据的唯一标识 | string | 'id' | |
2424
| bordered | 是否展示表格边框 | boolean | false | |
2525
| headerBordered | 表头带线条 | boolean | false | |
26-
| noScroll | 表格不展示滚动条,表格高度由内容高度决定,配置该参数后,无需设置表格高度 | boolean | false | |
2726
| size | 表格大小,可选 `default` `small` `large` | string | `default` | |
2827
| maxHeight | tbody最大高度 | string/number | - |
2928
| onLoadGridAfter | 表格刷新后回调,Function(res) | function | () => {} | |
3029
| onLoadGridBefore | 表格刷新前回调,Function(params) | function | () => {} | |
3130
| onRow | 表格刷新后回调,设置自定义 row 属性,Function(record, index) | function | () => {} | |
3231
| scroll | 表格是否可以在x/y方向上滚动,x或y可以是表示表体宽度和高度的数字 {x: 500, y: 300} | object | - | |
3332

33+
[comment]: <> (| noScroll | 表格不展示滚动条,表格高度由内容高度决定,配置该参数后,无需设置表格高度 | boolean | false | |)
3434

3535
### CTable 手动刷新表格
3636
this.tableRef.current.refreshTable(gotoFirstPage?, params?);
@@ -374,6 +374,6 @@ this.tableRef.current.setColumn(columnData, isReloadGrid?);
374374

375375
<embed src="@components/c-table/demos/front-table1.md" />
376376

377-
<embed src="@components/c-table/demos/front-table2.md" />
377+
[comment]: <> (<embed src="@components/c-table/demos/front-table2.md" />)
378378

379379
<embed src="@components/c-table/demos/table-in-tab.md" />

0 commit comments

Comments
 (0)