[Improvement] Field: add blur method (#1264)

This commit is contained in:
neverland
2018-06-11 20:08:14 +08:00
committed by GitHub
parent c86405dd9f
commit 409055195b
6 changed files with 46 additions and 13 deletions
+10
View File
@@ -110,6 +110,7 @@ Use button slot to insert button
```
### API
Field support all native properties of input tagsuch as `maxlength`、`placeholder`、`readonly`、`autofocus`
| Attribute | Description | Type | Default |
@@ -125,12 +126,21 @@ Field support all native properties of input tagsuch as `maxlength`、`placeh
| left-icon | Left side icon name | `String` | - |
### Event
Field support all native events of input tagsuch as `focus`、`blur`、`keypress`
| Event | Description | Parameters |
|-----------|-----------|-----------|
| click-icon | Triggered when click the icon of Field | - |
### Methods
Use ref to get field instance and call instance methods
| Name | Attribute | Return value | Description |
|-----------|-----------|-----------|-------------|
| blur | - | - | Trigger input blur |
### Slot
| name | Description |