index.axml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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-input
  14. ref="handleRef"
  15. allowClear="{{ allowClear }}"
  16. enableNative="{{ enableNative }}"
  17. className="{{ inputClassName }}"
  18. style="{{ inputStyle }}"
  19. disabled="{{ disabled }}"
  20. type="{{ type }}"
  21. password="{{ password }}"
  22. placeholder="{{ placeholder }}"
  23. alwaysSystem="{{ alwaysSystem }}"
  24. placeholderClassName="{{ placeholderClassName }}"
  25. placeholderStyle="{{ placeholderStyle }}"
  26. maxLength="{{ maxLength }}"
  27. confirmType="{{ confirmType }}"
  28. confirmHold="{{ confirmHold }}"
  29. cursor="{{ cursor }}"
  30. selectionStart="{{ selectionStart }}"
  31. selectionEnd="{{ selectionEnd }}"
  32. randomNumber="{{ randomNumber }}"
  33. onChange="onChange"
  34. onBlur="onBlur"
  35. onFocus="onFocus"
  36. onConfirm="onConfirm">
  37. <slot
  38. slot="prefix"
  39. name="prefix" />
  40. <slot
  41. slot="suffix"
  42. name="suffix" />
  43. </ant-input>
  44. <view
  45. a:if="{{ !tooltip }}"
  46. slot="tooltip">
  47. <slot name="tooltip" />
  48. </view>
  49. <view slot="extra">
  50. <slot name="extra">{{ extra }}</slot>
  51. </view>
  52. <view
  53. slot="header"
  54. slot-scope="item">
  55. <slot
  56. name="header"
  57. errors="{{ item.errors }}"
  58. status="{{ item.status }}" />
  59. </view>
  60. <view
  61. slot="footer"
  62. slot-scope="item">
  63. <slot
  64. name="footer"
  65. errors="{{ item.errors }}"
  66. status="{{ item.status }}" />
  67. </view>
  68. </form-item>