index.axml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. <slider
  16. value="{{ formData.value }}"
  17. className="{{ sliderClassName }}"
  18. style="{{ sliderStyle }}"
  19. activeLineClassName="{{ activeLineClassName }}"
  20. activeLineStyle="{{ activeLineStyle }}"
  21. activeDotClassName="{{ activeDotClassName }}"
  22. activeDotStyle="{{ activeDotStyle }}"
  23. min="{{ min }}"
  24. max="{{ max }}"
  25. range="{{ range }}"
  26. showNumber="{{ showNumber }}"
  27. step="{{ step }}"
  28. showTicks="{{ showTicks }}"
  29. showTooltip="{{ showTooltip }}"
  30. disabled="{{ disabled }}"
  31. onChange="onChange"
  32. onAfterChange="onAfterChange" />
  33. </view>
  34. <view
  35. a:if="{{ !tooltip }}"
  36. slot="tooltip">
  37. <slot name="tooltip" />
  38. </view>
  39. <view slot="extra">
  40. <slot name="extra">{{ extra }}</slot>
  41. </view>
  42. <view
  43. slot="header"
  44. slot-scope="item">
  45. <slot
  46. name="header"
  47. errors="{{ item.errors }}"
  48. status="{{ item.status }}" />
  49. </view>
  50. <view
  51. slot="footer"
  52. slot-scope="item">
  53. <slot
  54. name="footer"
  55. errors="{{ item.errors }}"
  56. status="{{ item.status }}" />
  57. </view>
  58. </form-item>