tm-card.wxml 3.8 KB

1
  1. <view data-event-opts="{{[['tap',[['onclick',['$event']]]]]}}" class="{{['tm-card','','data-v-30bd62d2','mx-32','my-24',black_tmeme?'grey-darken-5':bgColor,'round-'+round,'shadow-'+bgColor+'-'+shadow]}}" bindtap="__e"><view class="{{['data-v-30bd62d2','pa-24']}}"><view class="{{['data-v-30bd62d2',img?'flex-start':'']}}"><block wx:if="{{img}}"><view class="flex-shrink mr-24 data-v-30bd62d2"><block wx:if="{{$slots.img}}"><slot name="img"></slot><scoped-slots-img text="{{({data:img})}}" class="scoped-ref" bind:__l="__l"></scoped-slots-img></block><block wx:else><tm-images vue-id="0c89054f-1" round="{{imgRound}}" width="{{90}}" src="{{img}}" class="data-v-30bd62d2" bind:__l="__l"></tm-images></block></view></block><view class="fulled data-v-30bd62d2"><view class="subtitle_wk flex-between data-v-30bd62d2"><block wx:if="{{subTitle}}"><view class="subtitle text-size-s text-grey data-v-30bd62d2"><block wx:if="{{$slots.subTitle}}"><slot name="subTitle"></slot><scoped-slots-subTitle text="{{({data:subTitle})}}" class="scoped-ref" bind:__l="__l"></scoped-slots-subTitle></block><block wx:else>{{subTitle}}</block></view></block><view class="px-12 data-v-30bd62d2"></view><block wx:if="{{statusText}}"><view class="{{['substatus','flex-shrink','text','px-12','py-6','text-size-xs','round-6','text-weight-b','data-v-30bd62d2',black_tmeme?'bk':'',statusColor]}}"><block wx:if="{{$slots.statusText}}"><slot name="statusText"></slot><scoped-slots-statusText text="{{({data:statusText})}}" class="scoped-ref" bind:__l="__l"></scoped-slots-statusText></block><block wx:else>{{statusText}}</block></view></block></view><block wx:if="{{title}}"><view class="{{['','my-16','text-weight-b','text-overflow-2','data-v-30bd62d2','text-size-'+titleSize]}}"><block wx:if="{{$slots.title}}"><slot name="title"></slot><scoped-slots-title text="{{({data:title})}}" class="scoped-ref" bind:__l="__l"></scoped-slots-title></block><block wx:else>{{title}}</block></view></block><block wx:if="{{subText}}"><view class="text-size-s text-grey text-overflow-2 data-v-30bd62d2"><block wx:if="{{$slots.subText}}"><slot name="subText"></slot><scoped-slots-subText text="{{({data:subText})}}" class="scoped-ref" bind:__l="__l"></scoped-slots-subText></block><block wx:else>{{subText}}</block></view></block></view></view><block wx:if="{{titleBorder}}"><view class=" py-24 flex-center data-v-30bd62d2"><view class="{{['border-t-1','fulled','data-v-30bd62d2',black_tmeme?'bk':'']}}"></view></view></block><view class="{{['text-size-n','','data-v-30bd62d2',black_tmeme?'bk':'']}}"><block wx:if="{{$slots.content}}"><slot name="content"></slot><scoped-slots-content text="{{({data:content})}}" class="scoped-ref" bind:__l="__l"></scoped-slots-content></block><block wx:else><view selectable="{{true}}" class="data-v-30bd62d2">{{content}}</view></block></view><block wx:if="{{actionBorder}}"><view class=" py-24 flex-center data-v-30bd62d2"><view class="{{['border-t-1','fulled','data-v-30bd62d2',black_tmeme?'bk':'']}}"></view></view></block><block wx:if="{{btnColorToarrays.length>0}}"><view class="{{['flex-end','data-v-30bd62d2',black_tmeme?'bk':'']}}"><block wx:if="{{$slots.action}}"><slot name="action"></slot><scoped-slots-action action="{{({btn:action,color:btnColorToarrays})}}" class="scoped-ref" bind:__l="__l"></scoped-slots-action></block><block wx:else><block wx:for="{{action}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['actionClick',['$0',index],[[['action','',index]]]]]]]}}" class="d-inline-block data-v-30bd62d2" catchtap="__e"><tm-button vue-id="{{'0c89054f-2-'+index}}" round="{{actionRound}}" theme="{{btnColorToarrays[index]}}" black="{{black_tmeme}}" size="m" class="data-v-30bd62d2" bind:__l="__l" vue-slots="{{['default']}}">{{''+item+''}}</tm-button></view></block></block></view></block></view></view>