Merge branch '1.x' into 'dev'

This commit is contained in:
陈嘉涵
2019-05-07 20:32:32 +08:00
9 changed files with 51 additions and 12 deletions

View File

@@ -30,7 +30,15 @@ export default sfc({
methods: {
toggle() {
this.checked = !this.checked;
const 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.
clearTimeout(this.toggleTask);
this.toggleTask = setTimeout(() => {
this.checked = checked;
});
},
onClickIcon() {