vant-weapp/packages/cell/index.wxml
刘建东 7ceeca9d4c fix: 移除不使用的占位标签 (#187)
[improvement] Cell: 移除组件运行时不使用的占位标签
2018-04-12 14:53:45 +08:00

21 lines
584 B
Plaintext

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