Skip to content

Commit 2c321fb

Browse files
committed
add typescript table onRowClick
1 parent dab03cd commit 2c321fb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "element-react",
3-
"version": "1.4.34",
2+
"name": "element-react-ts",
3+
"version": "0.1.1",
44
"description": "Element UI for React",
55
"private": false,
66
"main": "dist/npm/es5/index.js",

typings/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ declare namespace ElementReact {
634634
onCurrentChange?(): void
635635
onSelectAll?(): void
636636
onSelectChange?(): void
637+
onRowClick?(row: RowType, event: React.SyntheticEvent<HTMLInputElement>, column: Object):void
637638
}
638639
export class Table<RowType extends Object = Object> extends ElementReactLibs.Component<TableProps<RowType>, {}> { }
639640

0 commit comments

Comments
 (0)