[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ export default create({
}, },
data() { 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) { if (value !== +this.value) {
this.$emit('input', value); this.$emit('input', value);
} }