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: {
|
props: {
|
||||||
|
value: Number,
|
||||||
integer: Boolean,
|
integer: Boolean,
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
disableInput: Boolean,
|
disableInput: Boolean,
|
||||||
@ -41,6 +42,14 @@ VantComponent({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
watch: {
|
||||||
|
value(value) {
|
||||||
|
this.setData({
|
||||||
|
value: this.range(value)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.setData({
|
this.setData({
|
||||||
value: this.range(this.data.value)
|
value: this.range(this.data.value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user