[Improvement] Field: add label slot (#1048)

This commit is contained in:
neverland
2018-05-12 11:17:08 +08:00
committed by GitHub
parent 9d8b615392
commit 60e183f76d
3 changed files with 8 additions and 5 deletions

View File

@@ -113,9 +113,9 @@ Filed support all native properties of input tagsuch as `maxlength`、`placeh
| Attribute | Description | Type | Default |
|-----------|-----------|-----------|-------------|
| type | Input type | `String` | `text` |
| value | Filed value | `String` | - |
| label | Filed label | `String` | - |
| type | Input type | `String` | `text` |
| disabled | Disable field | `Boolean` | `false` |
| error | Whether to show error info | `Boolean` | `false` |
| error-message | Error message | `String` | `''` |
@@ -133,5 +133,6 @@ Filed support all native events of input tagsuch as `focus`、`blur`、`keypr
| name | Description |
|-----------|-----------|
| label | Custom label |
| icon | Custom icon |
| button | Insert button |