Skip to content

Commit 015927a

Browse files
committed
update
1 parent 86f6450 commit 015927a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/examples/measureRowRender.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ const data = [
3030
{ key: 3, name: 'Jime', age: 35 },
3131
];
3232

33-
// 自定义 MeasureRow 渲染,隐藏弹层内容
33+
// 注意,这个 measureRow 实际上是一个 <tr> 元素
34+
// 按照 html 规范,tr 的父元素必须是 table/thead/tbody/tfoot,tr 的子元素必须是 th/td
35+
// 因此这里我们用一个 div 包裹是不对的,在控制台中会报错
3436
const measureRowRender: TableProps['measureRowRender'] = measureRow => (
3537
<div style={{ display: 'none' }}>{measureRow}</div>
3638
);

0 commit comments

Comments
 (0)