[bugfix] Cell: value not rendered when passing zero (#844)

This commit is contained in:
neverland 2018-11-01 19:13:00 +08:00 committed by GitHub
parent f7f82ff571
commit 3ce1aa0e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@
</view>
<view class="van-cell__value value-class">
<block wx:if="{{ value }}">{{ value }}</block>
<block wx:if="{{ value || value === 0 }}">{{ value }}</block>
<slot wx:else />
</view>