index.axml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <import-sjs
  2. from="../../_util/arrow.sjs"
  3. name="arrowUtil" />
  4. <view
  5. class="ant-list-item {{ className ? className : '' }}"
  6. style="{{ style || '' }}"
  7. onTap="{{ onTap ? 'onTap' : '' }}"
  8. catchTap="{{ catchTap ? 'catchTap' : '' }}"
  9. hover-class="{{ onTap || catchTap ? 'ant-list-item-hover' : '' }}"
  10. hover-start-time="{{ 20 }}"
  11. hover-stay-time="{{ 40 }}">
  12. <view
  13. class="ant-list-item-line {{ showDivider ? 'ant-list-item-line-divider' : '' }} {{ disabled ? 'ant-list-item-line-disabled' : '' }}">
  14. <view class="ant-list-item-image-container">
  15. <slot name="image">
  16. <image-icon
  17. a:if="{{ image }}"
  18. image="{{ image }}"
  19. className="ant-list-item-image" />
  20. </slot>
  21. </view>
  22. <view class="ant-list-item-content-container">
  23. <view class="ant-list-item-content-title-container">
  24. <slot name="title">
  25. <view
  26. a:if="{{ title }}"
  27. class="ant-list-item-content-title">
  28. {{ title }}
  29. </view>
  30. </slot>
  31. </view>
  32. <view class="ant-list-item-content-main">
  33. <slot />
  34. </view>
  35. <view class="ant-list-item-content-brief-container">
  36. <slot name="brief">
  37. <view
  38. a:if="{{ brief }}"
  39. class="ant-list-item-content-brief">
  40. {{ brief }}
  41. </view>
  42. </slot>
  43. </view>
  44. </view>
  45. <view class="ant-list-item-extra-container">
  46. <view class="ant-list-item-extra">
  47. <slot name="extra">{{ extra }}</slot>
  48. </view>
  49. <view class="ant-list-item-extra-brief">
  50. <slot name="extraBrief">{{ extraBrief }}</slot>
  51. </view>
  52. </view>
  53. <view class="ant-list-item-arrow">
  54. <icon
  55. a:if="{{ arrowUtil.getArrow(arrow) }}"
  56. type="{{ arrowUtil.getArrow(arrow) }}" />
  57. </view>
  58. </view>
  59. </view>