index.axml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. <ant-textarea
  14. ref="handleRef"
  15. allowClear="{{ allowClear }}"
  16. enableNative="{{ enableNative }}"
  17. disabled="{{ disabled }}"
  18. placeholder="{{ placeholder }}"
  19. placeholderClassName="{{ placeholderClassName }}"
  20. placeholderStyle="{{ placeholderStyle }}"
  21. maxLength="{{ maxLength }}"
  22. autoHeight="{{ autoHeight }}"
  23. showCount="{{ showCount }}"
  24. onChange="onChange"
  25. onBlur="onBlur"
  26. onFocus="onFocus"
  27. onConfirm="onConfirm" />
  28. <view
  29. a:if="{{ !tooltip }}"
  30. slot="tooltip">
  31. <slot name="tooltip" />
  32. </view>
  33. <view slot="extra">
  34. <slot name="extra">{{ extra }}</slot>
  35. </view>
  36. <view
  37. slot="header"
  38. slot-scope="item">
  39. <slot
  40. name="header"
  41. errors="{{ item.errors }}"
  42. status="{{ item.status }}" />
  43. </view>
  44. <view
  45. slot="footer"
  46. slot-scope="item">
  47. <slot
  48. name="footer"
  49. errors="{{ item.errors }}"
  50. status="{{ item.status }}" />
  51. </view>
  52. </form-item>