index.axml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <checkbox-group
  15. options="{{ options }}"
  16. value="{{ formData.value }}"
  17. onChange="onChange"
  18. color="{{ color }}"
  19. disabled="{{ disabled }}"
  20. position="{{ checkboxPosition }}">
  21. <slot
  22. name="checkboxLabel"
  23. slot="label"
  24. slot-scope="props"
  25. value="{{ props.value }}"
  26. index="{{ props.index }}" />
  27. </checkbox-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>