index.wxml 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <view class="van-collapse-item custom-class {{ index !== 0 ? 'van-hairline--top' : '' }}">
  3. <van-cell
  4. title="{{ title }}"
  5. title-class="title-class"
  6. icon="{{ icon }}"
  7. value="{{ value }}"
  8. label="{{ label }}"
  9. is-link="{{ isLink }}"
  10. clickable="{{ clickable }}"
  11. border="{{ border && expanded }}"
  12. class="{{ utils.bem('collapse-item__title', { disabled, expanded }) }}"
  13. right-icon-class="van-cell__right-icon"
  14. custom-class="van-cell"
  15. hover-class="van-cell--hover"
  16. bind:click="onClick"
  17. >
  18. <slot
  19. name="title"
  20. slot="title"
  21. />
  22. <slot
  23. name="icon"
  24. slot="icon"
  25. />
  26. <slot name="value" />
  27. <slot
  28. name="right-icon"
  29. slot="right-icon"
  30. />
  31. </van-cell>
  32. <view
  33. class="{{ utils.bem('collapse-item__wrapper') }}"
  34. style="height: 0;"
  35. animation="{{ animation }}"
  36. >
  37. <view
  38. class="van-collapse-item__content content-class"
  39. >
  40. <slot />
  41. </view>
  42. </view>
  43. </view>