## Field 输入框
`input`或`textarea`的输入框。
### 使用指南
``` javascript
import { Field } from 'vant';
Vue.use(Field);
```
### 代码演示
#### 基础用法
通过 v-model 绑定输入框的值
```html
```
#### 自定义类型
根据`type`属性定义不同类型的输入框
```html
```
#### 禁用输入框
```html
```
#### 错误提示
通过`error`或者`error-message`属性增加对应的错误提示
```html
```
#### 高度自适应
对于 textarea,可以通过`autosize`属性设置高度自适应
```html
```
### API
Filed 默认支持 Input 标签所有的原生属性,比如 `maxlength`、`placeholder`、`readonly`、`autofocus` 等
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|-----------|-----------|-----------|-------------|-------------|
| type | 输入框类型 | `String` | `text` | `number` `email` `textarea` `tel` `datetime` `date` `password` `url` |
| value | 输入框的值 | `String` | - | - |
| label | 输入框标签 | `String` | - | - |
| disabled | 是否禁用输入框 | `Boolean` | `false` | - |
| error | 输入框是否有错误 | `Boolean` | `false` | - |
| error-message | 输入框底部错误提示文案 | `String` | `''` | - |
| autosize | 高度自适应(仅支持textarea) | `Boolean` | `false` | - |
| icon | 输入框尾部图标 | `String` | - | Icon 组件支持的类型 |
### Event
Filed 默认支持 Input 标签所有的原生事件,如 `focus`、`blur`、`keypress` 等
| 事件 | 说明 | 回调参数 |
|-----------|-----------|-----------|
| click-icon | 点击尾部图标时触发 | - |
### Slot
| 名称 | 说明 |
|-----------|-----------|
| icon | 自定义icon |