index.axml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <import-sjs
  2. from="../../_util/arrow.sjs"
  3. name="arrowUtil" />
  4. <form-item
  5. className="{{ className }}"
  6. position="{{ position }}"
  7. label="{{ label }}"
  8. labelWidth="{{ labelWidth }}"
  9. status="{{ formData.status }}"
  10. errors="{{ formData.errors }}"
  11. tooltip="{{ tooltip }}"
  12. required="{{ formData.required }}"
  13. requiredMark="{{ requiredMark }}"
  14. validateStatus="{{ validateStatus }}"
  15. help="{{ help }}">
  16. <view>
  17. <ant-picker
  18. cancelText="{{ cancelText }}"
  19. okText="{{ okText }}"
  20. placeholder="{{ placeholder }}"
  21. maskClosable="{{ maskClosable }}"
  22. maskStyle="{{ maskStyle }}"
  23. popClassName="{{ popClassName }}"
  24. style="{{ style }}"
  25. popStyle="{{ popStyle }}"
  26. animationType="{{ animationType }}"
  27. disabled="{{ disabled }}"
  28. title="{{ title }}"
  29. maskClassName="{{ maskClassName }}"
  30. indicatorStyle="{{ indicatorStyle }}"
  31. indicatorClassName="{{ indicatorClassName }}"
  32. options="{{ options }}"
  33. value="{{ formData.value }}"
  34. onOk="onOk"
  35. onChange="onChange"
  36. onCancel="onDismissPicker"
  37. onVisibleChange="onVisibleChange"
  38. onFormat="{{ handleFormat ? handleFormat : 'handleFormat' }}">
  39. <slot
  40. name="title"
  41. slot="title" />
  42. <slot
  43. name="content"
  44. slot="content" />
  45. <ant-icon
  46. a:if="{{ arrowUtil.getArrow(arrow) }}"
  47. className="ant-form-picker-arrow"
  48. type="{{ arrowUtil.getArrow(arrow) }}"
  49. slot="suffix" />
  50. </ant-picker>
  51. </view>
  52. <view
  53. a:if="{{ !tooltip }}"
  54. slot="tooltip">
  55. <slot name="tooltip" />
  56. </view>
  57. <view slot="extra">
  58. <slot name="extra">{{ extra }}</slot>
  59. </view>
  60. <view
  61. slot="header"
  62. slot-scope="item">
  63. <slot
  64. name="header"
  65. errors="{{ item.errors }}"
  66. status="{{ item.status }}" />
  67. </view>
  68. <view
  69. slot="footer"
  70. slot-scope="item">
  71. <slot
  72. name="footer"
  73. errors="{{ item.errors }}"
  74. status="{{ item.status }}" />
  75. </view>
  76. </form-item>