index.axml 1.1 KB

12345678910111213141516171819202122
  1. <view class='collapse-item-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='../wxs/utils.sjs' name='utils'>
  3. </import-sjs>
  4. <view class="van-collapse-item {{customClass}} {{ index !== 0 ? 'van-hairline--top' : '' }}">
  5. <van-cell title='{{ title }}' title-class='{{titleClass}}' icon='{{ icon }}' value='{{ value }}' label='{{ label }}' is-link='{{ isLink }}' clickable='{{ clickable }}' border='{{ border && expanded }}' class="{{ utils.bem('collapse-item__title', { disabled, expanded }) }}" right-icon-class='van-cell__right-icon' custom-class='van-cell' hover-class='van-cell--hover' onClick='onClick' ref='saveChildRef1'>
  6. <slot name='title' slot='title'>
  7. </slot>
  8. <slot name='icon' slot='icon'>
  9. </slot>
  10. <slot name='value'>
  11. </slot>
  12. <slot name='right-icon' slot='right-icon'>
  13. </slot>
  14. </van-cell>
  15. <view class="{{ utils.bem('collapse-item__wrapper') }}" style='height: 0;' animation='{{ animation }}'>
  16. <view class='van-collapse-item__content {{contentClass}}'>
  17. <slot>
  18. </slot>
  19. </view>
  20. </view>
  21. </view>
  22. </view>