diff --git a/packages/stepper/demo/index.vue b/packages/stepper/demo/index.vue index 3b20351aa..c3fbc1efa 100644 --- a/packages/stepper/demo/index.vue +++ b/packages/stepper/demo/index.vue @@ -51,9 +51,16 @@ export default { stepper3: null }; }, + methods: { onChange(value) { + if (this.changing) { + return; + } + + this.changing = true; setTimeout(() => { + this.changing = false; this.stepper2 = value; }, 500); } diff --git a/packages/stepper/en-US.md b/packages/stepper/en-US.md index 3add0f3c9..0f3602ba5 100644 --- a/packages/stepper/en-US.md +++ b/packages/stepper/en-US.md @@ -51,8 +51,14 @@ export default { methods: { onChange(value) { + if (this.changing) { + return; + } + + this.changing = true; setTimeout(() => { this.value = value; + this.changing = false; }, 500); } } diff --git a/packages/stepper/zh-CN.md b/packages/stepper/zh-CN.md index a3ffcba7b..eee1ed89d 100644 --- a/packages/stepper/zh-CN.md +++ b/packages/stepper/zh-CN.md @@ -53,8 +53,14 @@ export default { methods: { onChange(value) { + if (this.changing) { + return; + } + + this.changing = true; setTimeout(() => { this.value = value; + this.changing = false; }, 500); } }