[bugfix] Stepper: value can not be zero (#1687)

This commit is contained in:
neverland
2018-08-24 20:17:28 +08:00
committed by GitHub
parent ec875e5a17
commit 8052125d00

View File

@@ -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);
}