[Bugfix] Stepper: allow delete input to empty (#1160)

This commit is contained in:
Chuangbo Li 2018-12-26 20:05:52 +08:00 committed by neverland
parent b277a508ce
commit d21858c450

View File

@ -14,7 +14,7 @@ VantComponent({
], ],
props: { props: {
value: Number, value: null,
integer: Boolean, integer: Boolean,
disabled: Boolean, disabled: Boolean,
asyncChange: Boolean, asyncChange: Boolean,
@ -45,9 +45,11 @@ VantComponent({
watch: { watch: {
value(value) { value(value) {
this.set({ if (value !== '') {
value: this.range(value) this.set({
}); value: this.range(value)
});
}
} }
}, },