Skip to content

Commit 3c5c6be

Browse files
committed
perf: switch add events declare
close #3439
1 parent 759f18b commit 3c5c6be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/switch/index.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ const Switch = defineComponent({
2424
defaultChecked: PropTypes.looseBool,
2525
autofocus: PropTypes.looseBool,
2626
loading: PropTypes.looseBool,
27+
change: PropTypes.func,
28+
click: PropTypes.func,
29+
'onUpdate:checked': PropTypes.func
2730
},
31+
emits: ['change', 'click', 'update:checked'],
2832
setup() {
2933
return {
3034
refSwitchNode: undefined,

0 commit comments

Comments
 (0)