index.wxml 960 B

1234567891011121314151617181920212223242526272829
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <view class="van-stepper custom-class">
  3. <view
  4. class="minus-class {{ utils.bem('stepper__minus', { disabled: minusDisabled }) }}"
  5. style="{{ showMinus ? '' : 'display: none;' }}"
  6. hover-class="van-stepper__minus--hover"
  7. hover-stay-time="70"
  8. bind:tap="onMinus"
  9. />
  10. <input
  11. type="{{ integer ? 'number' : 'digit' }}"
  12. class="input-class {{ utils.bem('stepper__input', { disabled: disabled || disableInput }) }}"
  13. style="{{ inputWidth ? 'width: ' + inputWidth : '' }}"
  14. value="{{ value }}"
  15. focus="{{ focus }}"
  16. disabled="{{ disabled || disableInput }}"
  17. bindinput="onInput"
  18. bind:focus="onFocus"
  19. bind:blur="onBlur"
  20. />
  21. <view
  22. class="plus-class {{ utils.bem('stepper__plus', { disabled: plusDisabled }) }}"
  23. style="{{ showPlus ? '' : 'display: none;' }}"
  24. hover-class="van-stepper__plus--hover"
  25. hover-stay-time="70"
  26. bind:tap="onPlus"
  27. />
  28. </view>