vant-weapp/packages/cell/index.wxml

25 lines
717 B
Plaintext

<view
catchtap="cellTap"
class="cell-class zan-cell {{ isLastCell ? 'last-cell' : '' }} {{ isLink ? 'zan-cell--access' : '' }} {{ noBorder ? 'no-border' : ''}}"
>
<view class="zan-cell__icon">
<slot name="icon"></slot>
</view>
<view class="title-class zan-cell__title" style="width: {{ titleWidth }}">
<view wx:if="{{ title }}" class="zan-cell__text">{{ title }}</view>
<view wx:if="{{ label }}" class="zan-cell__desc">{{ label }}</view>
</view>
<view class="zan-cell__bd">
<slot></slot>
</view>
<view bindtap="footerTap" class="zan-cell__ft">
<block wx:if="{{value}}">{{ value }}</block>
<block wx:else>
<slot name="footer"></slot>
</block>
</view>
</view>