[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: {
onChange(value) {
if (this.changing) {
return;
}
this.$toast.loading({ forbidClick: true });
this.changing = true;
setTimeout(() => {
this.changing = false;
this.stepper6 = value;
this.$toast.clear();
}, 500);
}
}

View File

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

View File

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