index.axml 983 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. <switch
  15. className="{{ switchClassName }}"
  16. checked="{{ formData.value }}"
  17. checkedText="{{ checkedText }}"
  18. color="{{ color }}"
  19. disabled="{{ disabled }}"
  20. uncheckedText="{{ uncheckedText }}"
  21. size="{{ size }}"
  22. style="{{ switchStyle }}"
  23. onChange="onChange" />
  24. </view>
  25. <view
  26. a:if="{{ !tooltip }}"
  27. slot="tooltip">
  28. <slot name="tooltip" />
  29. </view>
  30. <view slot="extra">
  31. <slot name="extra">{{ extra }}</slot>
  32. </view>
  33. <view slot="header">
  34. <slot name="header" />
  35. </view>
  36. <view slot="footer">
  37. <slot name="footer" />
  38. </view>
  39. </form-item>