index.wxml 1.0 KB

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