From 8052125d00b17ba37020b22ce44b6efa86199db2 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 24 Aug 2018 20:17:28 +0800 Subject: [PATCH] [bugfix] Stepper: value can not be zero (#1687) --- packages/stepper/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stepper/index.vue b/packages/stepper/index.vue index de6244f0c..cebf5a286 100644 --- a/packages/stepper/index.vue +++ b/packages/stepper/index.vue @@ -49,7 +49,7 @@ export default create({ }, data() { - const value = this.range(this.value || this.defaultValue); + const value = this.range(this.isDef(this.value) ? this.value : this.defaultValue); if (value !== +this.value) { this.$emit('input', value); }