[fix] Icon: should not render info when value is empty string (#1888)

This commit is contained in:
neverland 2019-08-20 20:51:32 +08:00 committed by GitHub
parent f44a74e5c1
commit 550333a4f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
<view
wx:if="{{ info !== null }}"
wx:if="{{ info !== null && info !== '' }}"
class="custom-class van-info"
style="{{ customStyle }}"
>{{ info }}</view>