We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 759f18b commit 3c5c6beCopy full SHA for 3c5c6be
components/switch/index.tsx
@@ -24,7 +24,11 @@ const Switch = defineComponent({
24
defaultChecked: PropTypes.looseBool,
25
autofocus: PropTypes.looseBool,
26
loading: PropTypes.looseBool,
27
+ change: PropTypes.func,
28
+ click: PropTypes.func,
29
+ 'onUpdate:checked': PropTypes.func
30
},
31
+ emits: ['change', 'click', 'update:checked'],
32
setup() {
33
return {
34
refSwitchNode: undefined,
0 commit comments