vant-weapp/packages/cell/index.wxml
Yao ce948df12f
[improvement] Cell: 增加默认白色背景色 (#270)
* 修复stepper文档错误

* 采用极大数字来代替 infinity

* 增加 cell 背景色

* 增加外部样式类
2018-05-24 00:05:28 +08:00

21 lines
594 B
Plaintext

<view
catchtap="cellTap"
class="cell-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 bindtap="footerTap" class="zan-cell__ft">
<block wx:if="{{value}}">{{ value }}</block>
<block wx:else>
<slot name="footer"></slot>
</block>
</view>
</view>