You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
930 B
25 lines
930 B
<wxs src="../wxs/utils.wxs" module="utils" /> |
|
<wxs src="./index.wxs" module="computed" /> |
|
|
|
<view class="van-dropdown-menu van-dropdown-menu--top-bottom custom-class"> |
|
<view |
|
wx:for="{{ itemListData }}" |
|
wx:key="index" |
|
data-index="{{ index }}" |
|
class="{{ utils.bem('dropdown-menu__item', { disabled: item.disabled }) }}" |
|
bind:tap="onTitleTap" |
|
> |
|
<view |
|
class="{{ item.titleClass }} {{ utils.bem('dropdown-menu__title', { active: item.showPopup, down: item.showPopup === (direction === 'down') }) }} title-class" |
|
style="{{ item.showPopup ? 'color:' + activeColor : '' }}" |
|
> |
|
<view class="van-ellipsis"> |
|
<text class='preffix'>{{item.title}}</text> |
|
<text class="select-title" style="color:{{computed.setTitleColor(item)}}"> {{ computed.displayTitle(item) }}</text> |
|
<text class='arrow' style="border-color:#17c653"></text> |
|
</view> |
|
</view> |
|
</view> |
|
|
|
<slot /> |
|
</view>
|
|
|