[bugfix] Card: centered prop not work (#584)

This commit is contained in:
neverland 2018-09-17 19:00:21 +08:00 committed by GitHub
parent c5c1f27cc0
commit 408579a046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<view class="custom-class van-card">
<view class="custom-class van-card {{ centered ? 'van-card--center' : '' }}">
<view class="van-card__thumb">
<image wx:if="{{ thumb }}" src="{{ thumb }}" class="van-card__img thumb-class" />
<slot wx:else name="thumb" />

View File

@ -1,4 +1,4 @@
<view class="custom-class van-card">
<view class="custom-class van-card {{ centered ? 'van-card--center' : '' }}">
<view class="van-card__thumb">
<image wx:if="{{ thumb }}" src="{{ thumb }}" class="van-card__img thumb-class" />
<slot wx:else name="thumb" />