We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efa477a commit f5026ddCopy full SHA for f5026dd
components/switch/index.tsx
@@ -24,8 +24,8 @@ const Switch = defineComponent({
24
defaultChecked: PropTypes.looseBool,
25
autofocus: PropTypes.looseBool,
26
loading: PropTypes.looseBool,
27
- change: PropTypes.func,
28
- click: PropTypes.func,
+ onChange: PropTypes.func,
+ onClick: PropTypes.func,
29
'onUpdate:checked': PropTypes.func,
30
},
31
emits: ['change', 'click', 'update:checked'],
0 commit comments