perf: add checkbox events declare

close #3440
feat-less4
tangjinzhou 2020-12-26 15:43:33 +08:00
parent 3c5c6becbf
commit 8baf85f7f9
2 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export default defineComponent({
onChange: PropTypes.func,
'onUpdate:checked': PropTypes.func,
},
emits: ['change', 'update:checked'],
setup() {
return {
configProvider: inject('configProvider', defaultConfigProvider),

View File

@ -25,6 +25,7 @@ export default defineComponent({
disabled: PropTypes.looseBool,
onChange: PropTypes.func,
},
emits: ['change', 'update:value'],
setup() {
return {
configProvider: inject('configProvider', defaultConfigProvider),