mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[Bugfix] Stepper: allow delete input to empty (#1160)
This commit is contained in:
parent
b277a508ce
commit
d21858c450
@ -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)
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user