[Doc] Button: add demo of image icon (#3516)

This commit is contained in:
neverland
2019-06-14 20:29:11 +08:00
committed by GitHub
parent 09707479eb
commit da514e100d
4 changed files with 38 additions and 20 deletions

View File

@@ -58,7 +58,11 @@
/>
<van-button
loading
type="primary"
loading-type="spinner"
/>
<van-button
loading
:loading-text="$t('loadingText')"
type="danger"
/>
@@ -83,10 +87,16 @@
icon="star-o"
/>
<van-button
type="danger"
type="primary"
icon="star-o"
:text="$t('button')"
/>
<van-button
plain
type="primary"
icon="https://img.yzcdn.cn/vant/logo.png"
:text="$t('button')"
/>
</demo-block>
<demo-block :title="$t('size')">