docs: add version tip in en docs (#4262)
This commit is contained in:
+26
-28
@@ -120,34 +120,32 @@ Use button slot to insert button
|
||||
|
||||
### Props
|
||||
|
||||
Field support all native properties of input tag,such as `maxlength`、`placeholder`、`autofocus`
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| value | Field value | `string | number` | - |
|
||||
| label | Field label | `string` | - |
|
||||
| type | Input type, can be set to `tel` `number`<br>`textarea` `password` | `string` | `text` |
|
||||
| size | Size,can be set to `large` | `string` | - |
|
||||
| maxlength | Max length of value | `string | number` | - |
|
||||
| placeholder | Placeholder | `string` | - |
|
||||
| border | Whether to show inner border | `boolean` | `true` |
|
||||
| disabled | Whether to disable field | `boolean` | `false` |
|
||||
| readonly | Whether to be readonly | `boolean` | `false` |
|
||||
| required | Whether to show required mark | `boolean` | `false` |
|
||||
| clearable | Whether to be clearable | `boolean` | `false` |
|
||||
| clickable | Whether to show click feedback when clicked | `boolean` | `false` |
|
||||
| is-link | Whether to show link icon | `boolean` | `false` |
|
||||
| error | Whether to show error info | `boolean` | `false` |
|
||||
| arrow-direction | Can be set to `left` `up` `down` | `string` | - |
|
||||
| error-message | Error message | `string` | `''` |
|
||||
| label-class | Label className | `any` | - |
|
||||
| label-width | Label width | `string | number` | `90px` |
|
||||
| label-align | Label text align, can be set to `center` `right` | `string` | `left` |
|
||||
| input-align | Input text align, can be set to `center` `right` | `string` | `left` |
|
||||
| error-message-align | Error message text align, can be set to `center` `right` | `string` | `left` |
|
||||
| autosize | Textarea auto resize,can accpet an object,<br>e.g. { maxHeight: 100, minHeight: 50 } | `boolean | object` | `false` |
|
||||
| left-icon | Left side icon name | `string` | - |
|
||||
| right-icon | Right side icon name | `string` | - |
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| value | Field value | `string | number` | - | - |
|
||||
| label | Field label | `string` | - | - |
|
||||
| type | Input type, can be set to `tel` `number`<br>`textarea` `password` | `string` | `text` | - |
|
||||
| size | Size,can be set to `large` | `string` | - | - |
|
||||
| maxlength | Max length of value | `string | number` | - | - |
|
||||
| placeholder | Placeholder | `string` | - | - |
|
||||
| border | Whether to show inner border | `boolean` | `true` | - |
|
||||
| disabled | Whether to disable field | `boolean` | `false` | - |
|
||||
| readonly | Whether to be readonly | `boolean` | `false` | - |
|
||||
| required | Whether to show required mark | `boolean` | `false` | - |
|
||||
| clearable | Whether to be clearable | `boolean` | `false` | - |
|
||||
| clickable | Whether to show click feedback when clicked | `boolean` | `false` | - |
|
||||
| is-link | Whether to show link icon | `boolean` | `false` | - |
|
||||
| error | Whether to show error info | `boolean` | `false` | - |
|
||||
| arrow-direction | Can be set to `left` `up` `down` | `string` | - | 2.0.4 |
|
||||
| error-message | Error message | `string` | `''` | - |
|
||||
| label-class | Label className | `any` | - | - |
|
||||
| label-width | Label width | `string | number` | `90px` | - |
|
||||
| label-align | Label text align, can be set to `center` `right` | `string` | `left` | - |
|
||||
| input-align | Input text align, can be set to `center` `right` | `string` | `left` | - |
|
||||
| error-message-align | Error message text align, can be set to `center` `right` | `string` | `left` | - |
|
||||
| autosize | Textarea auto resize,can accpet an object,<br>e.g. { maxHeight: 100, minHeight: 50 } | `boolean | object` | `false` | - |
|
||||
| left-icon | Left side icon name | `string` | - | - |
|
||||
| right-icon | Right side icon name | `string` | - | - |
|
||||
|
||||
### Events
|
||||
|
||||
|
||||
Reference in New Issue
Block a user