correct type in Switch (#14727)

This commit is contained in:
何乐 2019-02-05 11:01:36 +08:00 committed by zombieJ
parent 6cdc203a2f
commit 99eeefc25d

View File

@ -13,7 +13,8 @@ export interface SwitchProps {
className?: string;
checked?: boolean;
defaultChecked?: boolean;
onChange?: (checked: boolean) => any;
onChange?: (checked: boolean, event: MouseEvent) => any;
onClick?: (checked: boolean, event: MouseEvent) => any;
checkedChildren?: React.ReactNode;
unCheckedChildren?: React.ReactNode;
disabled?: boolean;