index.axml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <form-item
  2. className="{{ className }}"
  3. position="{{ position }}"
  4. label="{{ label }}"
  5. labelWidth="{{ labelWidth }}"
  6. status="{{ formData.status }}"
  7. errors="{{ formData.errors }}"
  8. tooltip="{{ tooltip }}"
  9. required="{{ formData.required }}"
  10. requiredMark="{{ requiredMark }}"
  11. validateStatus="{{ validateStatus }}"
  12. help="{{ help }}">
  13. <view>
  14. <ant-radio-group
  15. options="{{ options }}"
  16. value="{{ formData.value }}"
  17. onChange="onChange"
  18. color="{{ color }}"
  19. disabled="{{ disabled }}"
  20. position="{{ radioPosition }}">
  21. <slot
  22. name="radioLabel"
  23. slot="label"
  24. slot-scope="props"
  25. value="{{props.value}}"
  26. index="{{props.index}}" />
  27. </ant-radio-group>
  28. </view>
  29. <view
  30. a:if="{{ !tooltip }}"
  31. slot="tooltip">
  32. <slot name="tooltip" />
  33. </view>
  34. <view slot="extra">
  35. <slot name="extra">{{ extra }}</slot>
  36. </view>
  37. <view
  38. slot="header"
  39. slot-scope="item">
  40. <slot
  41. name="header"
  42. errors="{{item.errors}}"
  43. status="{{item.status}}" />
  44. </view>
  45. <view
  46. slot="footer"
  47. slot-scope="item">
  48. <slot
  49. name="footer"
  50. errors="{{item.errors}}"
  51. status="{{item.status}}" />
  52. </view>
  53. </form-item>