mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] fix card demo lint
This commit is contained in:
parent
91d1beb40b
commit
7375fb0078
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user