diff --git a/components/switch/index.tsx b/components/switch/index.tsx index 7827a8073..c668a8bd4 100644 --- a/components/switch/index.tsx +++ b/components/switch/index.tsx @@ -31,6 +31,11 @@ const switchProps = { autofocus: PropTypes.looseBool, loading: PropTypes.looseBool, checked: PropTypes.looseBool, + onChange: PropTypes.func, + onClick: PropTypes.func, + onKeydown: PropTypes.func, + onMouseup: PropTypes.func, + 'onUpdate:checked': PropTypes.func }; export type SwitchProps = Partial>;