mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 10:20:19 +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: {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user