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. <rate
  15. value="{{ formData.value }}"
  16. count="{{ count }}"
  17. gutter="{{ gutter }}"
  18. readonly="{{ readonly }}"
  19. allowHalf="{{ allowHalf }}"
  20. allowClear="{{ allowClear }}"
  21. className="{{ rateClassName }}"
  22. style="{{ rateStyle }}"
  23. characterActiveClassName="{{ characterActiveClassName }}"
  24. characterClassName="{{ characterClassName }}"
  25. onChange="onChange">
  26. <view slot="character">
  27. <slot name="character">
  28. <icon type="StarFill" />
  29. </slot>
  30. </view>
  31. </rate>
  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>