[Doc] Search: add more api document (#1983)

This commit is contained in:
neverland
2018-10-26 16:10:40 +08:00
committed by GitHub
parent eef6c8f336
commit a995c203dc
4 changed files with 20 additions and 9 deletions
+7 -2
View File
@@ -56,15 +56,20 @@ Use `action` slot to custom right button, `cancel` event will no longer be trigg
```
### API
Search support all native properties of input tagsuch as `maxlength`、`placeholder`、`readonly`、`autofocus`
Search support all native properties of input tagsuch as `maxlength`、`placeholder`、`autofocus`
| Attribute | Description | Type | Default |
|------|------|------|------|
| placeholder | Input placeholder | `String` | - |
| background | Background color | `String` | `#f2f2f2` |
| show-action | Whether to show right button | `Boolean` | `false` |
| disabled | Whether to disable field | `Boolean` | `false` |
| readonly | Whether to be readonly | `Boolean` | `false` |
| error | Whether to show error info | `Boolean` | `false` |
| input-align | Input text align, can be set to `center` `right` | `String` | `left` |
### Event
Search support all native events of input tagsuch as `focus`、`blur`、`keypress`
| Event | Description | Arguments |