docs(Button): update block element section

This commit is contained in:
陈嘉涵
2020-01-18 11:06:09 +08:00
parent 735ccaa042
commit 3a18622125
3 changed files with 18 additions and 21 deletions
+4 -7
View File
@@ -54,6 +54,10 @@
<van-button type="primary" size="mini">{{ $t('mini') }}</van-button>
</demo-block>
<demo-block :title="$t('blockElement')">
<van-button type="primary" block>{{ $t('blockElement') }}</van-button>
</demo-block>
<demo-block :title="$t('router')">
<van-button :text="$t('urlRoute')" type="primary" url="/vant/mobile.html" />
<van-button :text="$t('vueRoute')" type="primary" to="index" />
@@ -64,13 +68,6 @@
<van-button plain color="#7232dd" :text="$t('pure')" />
<van-button color="linear-gradient(to right, #4bb0ff, #6149f6)" :text="$t('gradient')" />
</demo-block>
<demo-block :title="$t('blockElement')">
<div class="demo-button-row">
<van-button type="primary">{{ $t('normal') }}</van-button>
</div>
<van-button type="primary" block>{{ $t('blockElement') }}</van-button>
</demo-block>
</demo-section>
</template>