mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
correct type in Switch (#14727)
This commit is contained in:
parent
6cdc203a2f
commit
99eeefc25d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user