fix ts checking (#7355)

* add title prop to Option component(for ts checking)

* fix Checkbox onChange type
This commit is contained in:
Leo 2017-08-29 08:58:51 +08:00 committed by Wei Zhu
parent a5b0848efe
commit fc8f533e67
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -55,6 +55,7 @@ export interface SelectProps extends AbstractSelectProps {
export interface OptionProps {
disabled?: boolean;
value?: any;
title?: string;
}
export interface OptGroupProps {