mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
fix ts checking (#7355)
* add title prop to Option component(for ts checking) * fix Checkbox onChange type
This commit is contained in:
parent
a5b0848efe
commit
fc8f533e67
@ -12,7 +12,7 @@ export interface AbstractCheckboxProps {
|
||||
checked?: boolean;
|
||||
style?: React.CSSProperties;
|
||||
disabled?: boolean;
|
||||
onChange?: React.FormEventHandler<any>;
|
||||
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
||||
onMouseEnter?: React.MouseEventHandler<any>;
|
||||
onMouseLeave?: React.MouseEventHandler<any>;
|
||||
value?: any;
|
||||
|
@ -55,6 +55,7 @@ export interface SelectProps extends AbstractSelectProps {
|
||||
export interface OptionProps {
|
||||
disabled?: boolean;
|
||||
value?: any;
|
||||
title?: string;
|
||||
}
|
||||
|
||||
export interface OptGroupProps {
|
||||
|
Loading…
Reference in New Issue
Block a user