tm-menu.wxml 1.9 KB

1
  1. <view class="tm-menu relative d-inline-block data-v-4a7ec535"><view data-event-opts="{{[['tap',[['toogle',['$event']]]]]}}" catchtap="__e" class="data-v-4a7ec535"><slot></slot></view><block wx:if="{{showMenu}}"><view class="{{['tm-menu-block','absolute','animation','data-v-4a7ec535',direction,mentDirection]}}"><block wx:if="{{direction==='bottom'}}"><view class="{{['','px-16','data-v-4a7ec535',tipFangx]}}"><text class="{{['iconfont','icon-sort-up','','','data-v-4a7ec535',(!black_tmeme)?'text-white':'',(black_tmeme)?'text-grey-darken-3':'']}}" style="font-size:46rpx;line-height:0.5;margin-bottom:-4rpx;"></text></view></block><view class="round-3 overflow-x data-v-4a7ec535" style="{{'max-height:'+(maxHeight+'rpx')+';'}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><tm-listitem vue-id="{{'055a6271-1-'+index}}" black="{{black_tmeme}}" dense="{{true}}" left-icon="{{item['icon']}}" left-icon-color="{{item['iconColor']||iconColor}}" left-icon-size="{{36}}" show-left-icon="{{item['icon']?true:false}}" round="{{0}}" data-event-opts="{{[['^click',[['e0']]]]}}" data-event-params="{{({index,item})}}" bind:click="__e" class="data-v-4a7ec535" bind:__l="__l" vue-slots="{{['default']}}"><text class="text-size-n data-v-4a7ec535">{{''+(listType?item:item[rangKey])+''}}</text></tm-listitem></block></view><block wx:if="{{direction==='top'}}"><view class="{{['','px-16','data-v-4a7ec535',tipFangx]}}"><text class="{{['iconfont','icon-sort-down','','','data-v-4a7ec535',(!black_tmeme)?'text-white':'',(black_tmeme)?'text-grey-darken-3':'']}}" style="font-size:46rpx;line-height:0.5;margin-top:-4rpx;"></text></view></block></view></block><tm-mask-flow bind:input="__e" vue-id="055a6271-2" blur="{{false}}" bgColor="none" value="{{showMenu}}" data-event-opts="{{[['^input',[['__set_model',['','showMenu','$event',[]]]]]]}}" class="data-v-4a7ec535" bind:__l="__l"></tm-mask-flow></view>