[bugfix] Field: hide clear icon when readonly (#1395)

This commit is contained in:
neverland
2018-07-04 01:01:48 +08:00
committed by GitHub
parent 60fcfd4d46
commit 64a9b423eb
5 changed files with 11 additions and 6 deletions
+2 -1
View File
@@ -111,7 +111,7 @@ Use button slot to insert button
### API
Field support all native properties of input tagsuch as `maxlength`、`placeholder`、`readonly`、`autofocus`
Field support all native properties of input tagsuch as `maxlength`、`placeholder`、`autofocus`
| Attribute | Description | Type | Default |
|-----------|-----------|-----------|-------------|
@@ -120,6 +120,7 @@ Field support all native properties of input tagsuch as `maxlength`、`placeh
| type | Input type | `String` | `text` |
| border | Whether to show inner border | `Boolean` | `true` |
| disabled | Whether to disable field | `Boolean` | `false` |
| readonly | Whether to be readonly | `Boolean` | `false` |
| clearable | Whether to be clearable | `Boolean` | `false` |
| required | Whether to show required mark | `Boolean` | `false`
| is-link | Whether to show link icon | `Boolean` | `false` |