mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(Stepper): fix minusDisabled、plusDisabled error when set value dynamic @rex-zsd (#1022)
This commit is contained in:
parent
43a9989673
commit
696ae3c661
@ -14,6 +14,7 @@ VantComponent({
|
||||
],
|
||||
|
||||
props: {
|
||||
value: Number,
|
||||
integer: Boolean,
|
||||
disabled: Boolean,
|
||||
disableInput: Boolean,
|
||||
@ -41,6 +42,14 @@ VantComponent({
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
value(value) {
|
||||
this.setData({
|
||||
value: this.range(value)
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
this.setData({
|
||||
value: this.range(this.data.value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user