[Doc] Stepper: optimize async demo (#3098)
This commit is contained in:
@@ -51,9 +51,16 @@ export default {
|
|||||||
stepper3: null
|
stepper3: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onChange(value) {
|
onChange(value) {
|
||||||
|
if (this.changing) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.changing = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
this.changing = false;
|
||||||
this.stepper2 = value;
|
this.stepper2 = value;
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,8 +51,14 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onChange(value) {
|
onChange(value) {
|
||||||
|
if (this.changing) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.changing = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
|
this.changing = false;
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,8 +53,14 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onChange(value) {
|
onChange(value) {
|
||||||
|
if (this.changing) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.changing = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
|
this.changing = false;
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user