mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] Stepper: update async change demo (#3601)
This commit is contained in:
parent
8ecf51a135
commit
d690c5548d
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user