From d690c5548d54642c4c7c87f1e49253a4799b13bc Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 22 Jun 2019 11:54:24 +0800 Subject: [PATCH] [Doc] Stepper: update async change demo (#3601) --- packages/stepper/demo/index.vue | 7 ++----- packages/stepper/en-US.md | 7 ++----- packages/stepper/zh-CN.md | 7 ++----- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/packages/stepper/demo/index.vue b/packages/stepper/demo/index.vue index 52a590c2c..0d59084ed 100644 --- a/packages/stepper/demo/index.vue +++ b/packages/stepper/demo/index.vue @@ -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); } } diff --git a/packages/stepper/en-US.md b/packages/stepper/en-US.md index 0afc3abe9..08947ba89 100644 --- a/packages/stepper/en-US.md +++ b/packages/stepper/en-US.md @@ -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); } } diff --git a/packages/stepper/zh-CN.md b/packages/stepper/zh-CN.md index 17a62a929..6077a2604 100644 --- a/packages/stepper/zh-CN.md +++ b/packages/stepper/zh-CN.md @@ -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); } }