index.axml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <view
  2. class="ant-stepper {{ className ? className : '' }}"
  3. style="{{ style }}">
  4. <ant-button
  5. className="ant-stepper-button ant-stepper-button-down {{ disabled || mixin.value !== '' && mixin.value !== undefined && mixin.value <= min ? 'ant-stepper-button-disabled' : '' }}"
  6. activeClassName="ant-stepper-button-hover"
  7. icon="MinusOutline"
  8. type="text"
  9. data-mode="minus"
  10. disabled="{{ disabled || mixin.value !== '' && mixin.value !== undefined && mixin.value <= min }}"
  11. onTap="onTap" />
  12. <view class="ant-stepper-input-wrap">
  13. <view
  14. a:if="{{ inputReadOnly }}"
  15. class="ant-stepper-input ant-stepper-input-readonly">
  16. {{ mixin.value }}
  17. </view>
  18. <ant-input
  19. a:else
  20. className="ant-stepper-input {{ disabled ? 'ant-stepper-input-disabled' : '' }} {{ inputClassName ? inputClassName : '' }}"
  21. style="{{ inputStyle }}"
  22. type="{{ type }}"
  23. enableNative="{{ enableNative }}"
  24. alwaysSystem="{{ alwaysSystem }}"
  25. confirm-type="{{ confirmType }}"
  26. confirm-hold="{{ confirmHold }}"
  27. disabled="{{ disabled }}"
  28. focus="{{ focus }}"
  29. onChange="onChange"
  30. onFocus="onFocus"
  31. onBlur="onBlur"
  32. onConfirm="onConfirm"
  33. value="{{ mixin.value }}" />
  34. </view>
  35. <ant-button
  36. className="ant-stepper-button ant-stepper-button-up {{ disabled || mixin.value !== '' && mixin.value !== undefined && mixin.value >= max ? 'ant-stepper-button-disabled' : '' }}"
  37. activeClassName="ant-stepper-button-hover"
  38. icon="AddOutline"
  39. type="text"
  40. data-mode="add"
  41. disabled="{{ disabled || mixin.value !== '' && mixin.value !== undefined && mixin.value >= max }}"
  42. onTap="onTap" />
  43. </view>