index.axml 909 B

1234567891011121314151617
  1. <view class='dropdown-menu-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='./index.sjs' name='computed'>
  3. </import-sjs>
  4. <import-sjs from='../wxs/utils.sjs' name='utils'>
  5. </import-sjs>
  6. <view class='van-dropdown-menu van-dropdown-menu--top-bottom'>
  7. <view a:for='{{ itemListData }}' a:key='{{index}}' data-index='{{ index }}' class="{{ utils.bem('dropdown-menu__item', { disabled: item.disabled }) }}" ref-numbers='{{ itemListData }}' onTap='antmoveAction' data-antmove-tap='onTitleTap'>
  8. <view class="{{ item.titleClass }} {{ utils.bem('dropdown-menu__title', { active: item.showPopup, down: item.showPopup === (direction === 'down') }) }}" style="{{ item.showPopup ? 'color:' + activeColor : '' }}">
  9. <view class='van-ellipsis'>
  10. {{ computed.displayTitle(item) }}
  11. </view>
  12. </view>
  13. </view>
  14. <slot>
  15. </slot>
  16. </view>
  17. </view>