types(Checkbox): add toggle method type (#5354)

This commit is contained in:
neverland
2019-12-22 13:03:25 +08:00
committed by GitHub
parent 24def10a1e
commit 216ca56e63
5 changed files with 21 additions and 8 deletions
+1
View File
@@ -33,6 +33,7 @@ export default createComponent({
},
methods: {
// @exposed-api
toggle(checked = !this.checked) {
// When toggle method is called multiple times at the same time,
// only the last call is valid.