index.axml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <form-item
  2. className="{{ className }}"
  3. style="{{ style }}"
  4. position="{{ position }}"
  5. label="{{ label }}"
  6. labelWidth="{{ labelWidth }}"
  7. status="{{ formData.status }}"
  8. errors="{{ formData.errors }}"
  9. tooltip="{{ tooltip }}"
  10. required="{{ formData.required }}"
  11. requiredMark="{{ requiredMark }}"
  12. validateStatus="{{ validateStatus }}"
  13. help="{{ help }}">
  14. <view>
  15. <stepper
  16. value="{{ formData.value }}"
  17. onChange="onChange"
  18. className="{{ stepperClassName }}"
  19. style="{{ stepperStyle }}"
  20. min="{{ min }}"
  21. max="{{ max }}"
  22. type="{{ type }}"
  23. disabled="{{ disabled }}"
  24. focus="{{ focus }}"
  25. inputClassName="{{ inputClassName }}"
  26. inputStyle="{{ inputStyle }}"
  27. precision="{{ precision }}"
  28. onBlur="onBlur"
  29. onConfirm="onConfirm"
  30. onFocus="onFocus" />
  31. </view>
  32. <view
  33. a:if="{{ !tooltip }}"
  34. slot="tooltip">
  35. <slot name="tooltip" />
  36. </view>
  37. <view slot="extra">
  38. <slot name="extra">{{ extra }}</slot>
  39. </view>
  40. <view
  41. slot="header"
  42. slot-scope="item">
  43. <slot
  44. name="header"
  45. errors="{{ item.errors }}"
  46. status="{{ item.status }}" />
  47. </view>
  48. <view
  49. slot="footer"
  50. slot-scope="item">
  51. <slot
  52. name="footer"
  53. errors="{{ item.errors }}"
  54. status="{{ item.status }}" />
  55. </view>
  56. </form-item>