index.axml 2.3 KB

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