[Doc] Stepper: update async change demo (#3601)

This commit is contained in:
neverland 2019-06-22 11:54:24 +08:00 committed by GitHub
parent 8ecf51a135
commit d690c5548d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 15 deletions

View File

@ -91,14 +91,11 @@ export default {
methods: { methods: {
onChange(value) { onChange(value) {
if (this.changing) { this.$toast.loading({ forbidClick: true });
return;
}
this.changing = true;
setTimeout(() => { setTimeout(() => {
this.changing = false;
this.stepper6 = value; this.stepper6 = value;
this.$toast.clear();
}, 500); }, 500);
} }
} }

View File

@ -70,14 +70,11 @@ export default {
methods: { methods: {
onChange(value) { onChange(value) {
if (this.changing) { Toast.loading({ forbidClick: true });
return;
}
this.changing = true;
setTimeout(() => { setTimeout(() => {
Toast.claer();
this.value = value; this.value = value;
this.changing = false;
}, 500); }, 500);
} }
} }

View File

@ -72,14 +72,11 @@ export default {
methods: { methods: {
onChange(value) { onChange(value) {
if (this.changing) { Toast.loading({ forbidClick: true });
return;
}
this.changing = true;
setTimeout(() => { setTimeout(() => {
Toast.claer();
this.value = value; this.value = value;
this.changing = false;
}, 500); }, 500);
} }
} }