fix: 移除不使用的占位标签 (#187)

[improvement] Cell: 移除组件运行时不使用的占位标签
This commit is contained in:
刘建东 2018-04-12 14:53:45 +08:00 committed by Yao
parent 18a071f609
commit 7ceeca9d4c

View File

@ -7,14 +7,14 @@
</view>
<view class="zan-cell__bd">
<view class="zan-cell__text">{{ title }}</view>
<view class="zan-cell__desc">{{ label }}</view>
<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">
{{ value }}
<block wx:if="{{ !value }}">
<block wx:if="{{value}}">{{ value }}</block>
<block wx:else>
<slot name="footer"></slot>
</block>
</view>