[Doc] beautify demo

This commit is contained in:
陈嘉涵
2019-05-16 14:08:44 +08:00
parent 3b89baedab
commit 0387fc7da8
26 changed files with 268 additions and 68 deletions

View File

@@ -1,7 +1,10 @@
<template>
<demo-section>
<demo-block :title="$t('default')">
<van-button @touchstart.stop="keyboard = 'default'">
<van-button
type="primary"
@touchstart.stop="keyboard = 'default'"
>
{{ $t('button1') }}
</van-button>
@@ -16,7 +19,10 @@
</demo-block>
<demo-block :title="$t('custom')">
<van-button @touchstart.stop="keyboard = 'custom'">
<van-button
type="primary"
@touchstart.stop="keyboard = 'custom'"
>
{{ $t('button2') }}
</van-button>