mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Stepper: value can not be zero (#1687)
This commit is contained in:
parent
ec875e5a17
commit
8052125d00
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user