## Field ### Install ``` javascript import { Field } from 'vant'; Vue.use(Field); ``` ### Usage #### Basic Usage The value of filed is bound with v-model. ```html ``` #### Custom type Use `type` prop to custom diffrent type fileds. ```html ``` #### Disabled ```html ``` #### Error info ```html ``` #### Auto resize Textarea Filed can be auto resize when has `autosize` prop ```html ``` ### API Filed support all native properties of input tag,such as `maxlength`、`placeholder`、`readonly`、`autofocus` | Attribute | Description | Type | Default | Accepted Values | |-----------|-----------|-----------|-------------|-------------| | type | Filed type | `String` | `text` | `number` `email` `textarea` `tel` `datetime` `date` `password` `url` | | value | Filed value | `String` | - | - | | label | Filed label | `String` | - | - | | disabled | Disable field | `Boolean` | `false` | - | | error | Whether to show error info | `Boolean` | `false` | - | | autosize | Textarea auto resize | `Boolean` | `false` | - | | icon | Right side Icon name | `String` | - | - | ### Event Filed support all native events of input tag,such as `focus`、`blur`、`keypress` | Event | Description | Parameters | |-----------|-----------|-----------| | click-icon | Triggered when click the icon of filed | - | ### Slot | name | Description | |-----------|-----------| | icon | Custom icon |