tanzhongheY/components/stepper/stepper.wxml

9 lines
382 B
Plaintext

<!-- 主容器 -->
<view class="stepper">
<!-- 减号 -->
<button class="{{minusStatus}} default" hover-class="none" size="mini" bindtap="bindMinus">-</button>
<!-- 数值 -->
<input type="number" bindchange="bindManual" value="{{num}}" />
<!-- 加号 -->
<button class="default" size="mini" hover-class="none" bindtap="bindPlus">+</button>
</view>