docs(Search): Search demo desc adjustment (#5603)

This commit is contained in:
Lindy
2020-01-19 17:42:42 +08:00
committed by neverland
parent 0bfbcf6ca9
commit a30bf27559
4 changed files with 94 additions and 1 deletions
+19 -1
View File
@@ -4,6 +4,18 @@
<van-search v-model="value" :placeholder="$t('placeholder')" />
</demo-block>
<demo-block :title="$t('background')">
<van-search v-model="value" :placeholder="$t('placeholder')" background="#c8c9cc" />
</demo-block>
<demo-block :title="$t('disabled')">
<van-search v-model="value" :placeholder="$t('placeholder')" disabled />
</demo-block>
<demo-block :title="$t('inputAlign')">
<van-search placeholder="Placeholder" v-model="value" input-align="center" />
</demo-block>
<demo-block :title="$t('listenToEvents')">
<form action="/">
<van-search
@@ -40,14 +52,20 @@ export default {
label: '地址',
placeholder: '请输入搜索关键词',
customButton: '自定义按钮',
background: '自定义背景色',
inputAlign: '搜索框内容对齐',
listenToEvents: '事件监听',
disabled: '禁用搜索框'
},
'en-US': {
label: 'Address',
placeholder: 'Placeholder',
customButton: 'Custom Action Button',
background: 'Custom Background Color',
inputAlign: 'Search Bar Content Alignment',
listenToEvents: 'Listen to Events',
},
disabled: 'Disable Search Bar'
}
},
data() {