index.axml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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-cascader-picker
  18. options="{{ options }}"
  19. cancelText="{{ cancelText }}"
  20. okText="{{ okText }}"
  21. placeholder="{{ placeholder }}"
  22. animationType="{{ animationType }}"
  23. maskClosable="{{ maskClosable }}"
  24. maskStyle="{{ maskStyle }}"
  25. popClassName="{{ popClassName }}"
  26. style="{{ style }}"
  27. popStyle="{{ popStyle }}"
  28. disabled="{{ disabled }}"
  29. title="{{ title }}"
  30. maskClassName="{{ maskClassName }}"
  31. indicatorStyle="{{ indicatorStyle }}"
  32. indicatorClassName="{{ indicatorClassName }}"
  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="content"
  41. slot="content" />
  42. <slot
  43. name="title"
  44. slot="title" />
  45. <ant-icon
  46. a:if="{{ arrowUtil.getArrow(arrow) }}"
  47. className="ant-form-cascader-picker-arrow"
  48. type="{{ arrowUtil.getArrow(arrow) }}"
  49. slot="suffix" />
  50. </ant-cascader-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>