Skip to content

Commit

Permalink
feat: 优化 ddemo
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyair committed Mar 26, 2024
1 parent ce1a06e commit 712683d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions docs/examples/row-hoverable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ interface RecordType {
const data = [{ a: 'A' }, { a: 'B' }, { a: 'C' }];

const Demo = () => {
const columns: TableProps<any>['columns'] = [
{
title: 'title',
dataIndex: 'a',
},
];
const columns: TableProps<RecordType>['columns'] = [{ title: 'title', dataIndex: 'a' }];

return <Table<RecordType> columns={columns} data={data} rowHoverable={false} />;
return <Table columns={columns} data={data} rowHoverable={false} />;
};

export default Demo;

0 comments on commit 712683d

Please sign in to comment.