Skip to content

Commit f5026dd

Browse files
authored
fix: switch event trigger #3453 (#3454)
1 parent efa477a commit f5026dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/switch/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const Switch = defineComponent({
2424
defaultChecked: PropTypes.looseBool,
2525
autofocus: PropTypes.looseBool,
2626
loading: PropTypes.looseBool,
27-
change: PropTypes.func,
28-
click: PropTypes.func,
27+
onChange: PropTypes.func,
28+
onClick: PropTypes.func,
2929
'onUpdate:checked': PropTypes.func,
3030
},
3131
emits: ['change', 'click', 'update:checked'],

0 commit comments

Comments
 (0)