perf: switch add events declare

close #3439
This commit is contained in:
tangjinzhou 2020-12-26 15:35:30 +08:00
parent 759f18b476
commit 3c5c6becbf

View File

@ -24,7 +24,11 @@ const Switch = defineComponent({
defaultChecked: PropTypes.looseBool,
autofocus: PropTypes.looseBool,
loading: PropTypes.looseBool,
change: PropTypes.func,
click: PropTypes.func,
'onUpdate:checked': PropTypes.func
},
emits: ['change', 'click', 'update:checked'],
setup() {
return {
refSwitchNode: undefined,