mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 11:18:14 +08:00
onKeyPress and onKeyDown typings (#9316)
* Update Checkbox.tsx * Update button.tsx
This commit is contained in:
parent
3ffe718476
commit
1e92ff8efd
@ -47,6 +47,8 @@ export interface ButtonProps {
|
||||
onClick?: React.FormEventHandler<any>;
|
||||
onMouseUp?: React.FormEventHandler<any>;
|
||||
onMouseDown?: React.FormEventHandler<any>;
|
||||
onKeyPress?: React.KeyboardEvent<any>;
|
||||
onKeyDown?: React.KeyboardEvent<any>;
|
||||
tabIndex?: number;
|
||||
loading?: boolean | { delay?: number };
|
||||
disabled?: boolean;
|
||||
|
@ -15,6 +15,8 @@ export interface AbstractCheckboxProps {
|
||||
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
||||
onMouseEnter?: React.MouseEventHandler<any>;
|
||||
onMouseLeave?: React.MouseEventHandler<any>;
|
||||
onKeyPress?: React.KeyboardEvent<any>;
|
||||
onKeyDown?: React.KeyboardEvent<any>;
|
||||
value?: any;
|
||||
tabIndex?: number;
|
||||
name?: string;
|
||||
|
Loading…
Reference in New Issue
Block a user