index.axml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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-date-picker
  18. min="{{ min }}"
  19. max="{{ max }}"
  20. format="{{ format }}"
  21. precision="{{ precision }}"
  22. cancelText="{{ cancelText }}"
  23. okText="{{ okText }}"
  24. placeholder="{{ placeholder }}"
  25. animationType="{{ animationType }}"
  26. maskClosable="{{ maskClosable }}"
  27. maskStyle="{{ maskStyle }}"
  28. popClassName="{{ popClassName }}"
  29. style="{{ style }}"
  30. popStyle="{{ popStyle }}"
  31. disabled="{{ disabled }}"
  32. title="{{ title }}"
  33. maskClassName="{{ maskClassName }}"
  34. indicatorStyle="{{ indicatorStyle }}"
  35. indicatorClassName="{{ indicatorClassName }}"
  36. value="{{ formData.value }}"
  37. onOk="onOk"
  38. onPickerChange="onPickerChange"
  39. onCancel="onDismissPicker"
  40. onVisibleChange="onVisibleChange"
  41. onFormatLabel="{{ handleFormatLabel ? handleFormatLabel : 'handleFormatLabel' }}"
  42. onFormat="{{ handleFormat ? handleFormat : 'handleFormat' }}">
  43. <slot
  44. name="content"
  45. slot="content" />
  46. <slot
  47. name="title"
  48. slot="title" />
  49. <ant-icon
  50. a:if="{{ arrowUtil.getArrow(arrow) }}"
  51. className="ant-form-date-picker-arrow"
  52. type="{{ arrowUtil.getArrow(arrow) }}"
  53. slot="suffix" />
  54. </ant-date-picker>
  55. </view>
  56. <view
  57. a:if="{{ !tooltip }}"
  58. slot="tooltip">
  59. <slot name="tooltip" />
  60. </view>
  61. <view slot="extra">
  62. <slot name="extra">{{ extra }}</slot>
  63. </view>
  64. <view
  65. slot="header"
  66. slot-scope="item">
  67. <slot
  68. name="header"
  69. errors="{{ item.errors }}"
  70. status="{{ item.status }}" />
  71. </view>
  72. <view
  73. slot="footer"
  74. slot-scope="item">
  75. <slot
  76. name="footer"
  77. errors="{{ item.errors }}"
  78. status="{{ item.status }}" />
  79. </view>
  80. </form-item>