思路:
我研究最簡單的方法就是外層加一個(gè)標(biāo)簽岭洲,用catchtap去阻止
關(guān)鍵代碼
html:
<view catchtap="stepper">
<van-stepper value="{{ item.amount }}" long-press="{{ false }}" data-index='{{index}}'
data-item='{{item}}' input-width="30px" button-size="20px" min="1" integer max="9999"
bind:change="amountChange" plus-class="num-icon" minus-class="num-icon"
input-class="num-input" />
</view>
js:
// 阻止加減按鈕冒泡
stepper() {
//什么也不做
},