mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
[bugfix] Stepper: value can not be zero (#1687)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user