[Doc] fix card demo lint

This commit is contained in:
陈嘉涵 2018-12-17 21:56:31 +08:00
parent 91d1beb40b
commit 7375fb0078
2 changed files with 42 additions and 8 deletions

View File

@ -20,13 +20,39 @@
:title="$t('title')"
:thumb="imageURL"
>
<div slot="tags" class="card__tags">
<van-tag plain type="danger">标签1</van-tag>
<van-tag plain type="danger">标签2</van-tag>
<div
slot="tags"
class="card__tags"
>
<van-tag
plain
type="danger"
>
标签1
</van-tag>
<van-tag
plain
type="danger"
>
标签2
</van-tag>
</div>
<div slot="footer" class="card__footer">
<van-button round size="mini">{{ $t('button') }}</van-button>
<van-button round size="mini">{{ $t('button') }}</van-button>
<div
slot="footer"
class="card__footer"
>
<van-button
round
size="mini"
>
{{ $t('button') }}
</van-button>
<van-button
round
size="mini"
>
{{ $t('button') }}
</van-button>
</div>
</van-card>
</demo-block>

View File

@ -36,7 +36,11 @@ exports[`renders demo correctly 1`] = `
<div class="van-card__desc van-ellipsis">
描述信息
</div>
<div class="card__tags"><span class="van-tag van-tag--plain van-hairline--surround" style="color:#f44;">标签1</span> <span class="van-tag van-tag--plain van-hairline--surround" style="color:#f44;">标签2</span></div>
<div class="card__tags"><span class="van-tag van-tag--plain van-hairline--surround" style="color:#f44;">
标签1
</span> <span class="van-tag van-tag--plain van-hairline--surround" style="color:#f44;">
标签2
</span></div>
<div class="van-card__bottom">
<div class="van-card__price">
¥ 2.00
@ -50,7 +54,11 @@ exports[`renders demo correctly 1`] = `
</div>
</div>
<div class="van-card__footer">
<div class="card__footer"><button class="van-button van-button--default van-button--mini van-button--round"><span class="van-button__text">按钮</span></button> <button class="van-button van-button--default van-button--mini van-button--round"><span class="van-button__text">按钮</span></button></div>
<div class="card__footer"><button class="van-button van-button--default van-button--mini van-button--round"><span class="van-button__text">
按钮
</span></button> <button class="van-button van-button--default van-button--mini van-button--round"><span class="van-button__text">
按钮
</span></button></div>
</div>
</div>
</div>