feat(CheckboxGroup): add toggleAll method (#4640)

This commit is contained in:
neverland
2019-09-30 14:47:35 +08:00
committed by GitHub
parent 9a79de0456
commit 1c5463150c
7 changed files with 240 additions and 114 deletions

View File

@@ -33,9 +33,7 @@ export default createComponent({
},
methods: {
toggle() {
const checked = !this.checked;
toggle(checked = !this.checked) {
// When toggle method is called multiple times at the same time,
// only the last call is valid.
// This is a hack for usage inside Cell.