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
+17
View File
@@ -24,6 +24,23 @@ export default {
}
}
```
### Custom Background Color
```html
<van-search placeholder="Placeholder" v-model="value" background="#c8c9cc"/>
```
### Disable Search Bar
```html
<van-search placeholder="Placeholder" v-model="value" disabled/>
```
### Search Bar Content Alignment
```html
<van-search placeholder="Placeholder" v-model="value" input-align="center"/>
```
### Listen to Events