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