Skip to content

Commit 712683d

Browse files
committed
feat: 优化 ddemo
1 parent ce1a06e commit 712683d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/examples/row-hoverable.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,9 @@ interface RecordType {
1010
const data = [{ a: 'A' }, { a: 'B' }, { a: 'C' }];
1111

1212
const Demo = () => {
13-
const columns: TableProps<any>['columns'] = [
14-
{
15-
title: 'title',
16-
dataIndex: 'a',
17-
},
18-
];
13+
const columns: TableProps<RecordType>['columns'] = [{ title: 'title', dataIndex: 'a' }];
1914

20-
return <Table<RecordType> columns={columns} data={data} rowHoverable={false} />;
15+
return <Table columns={columns} data={data} rowHoverable={false} />;
2116
};
2217

2318
export default Demo;

0 commit comments

Comments
 (0)