介绍:
vant2,van-stepper,change和blur,一起用有冲突,不一起用监听不到输入框最后一个数字的删除
HTML
<van-stepper async-change class="card-desc-item-stepper" min="0" value="{{ item.goodProductAmount }}" bind:blur="onGoodProductAmountBlur" bind:change="onGoodProductAmountChange" data-index="{{index}}" />
JS
onGoodProductAmountBlur(e) {
let {index} = e.currentTarget.dataset
this.data.processList[index].goodProductAmount = e.detail.value
this.setData({
processList:this.data.processList,
})
},
onGoodProductAmountBlur(e) {
let {index} = e.currentTarget.dataset
this.data.processList[index].goodProductAmount = e.detail.value
this.setData({
processList:this.data.processList,
})
},