Doc: use upper case types

This commit is contained in:
陈嘉涵
2017-09-01 13:02:12 +08:00
parent 25c69fcf44
commit c061e0fb26
14 changed files with 71 additions and 59 deletions

View File

@@ -133,19 +133,19 @@ Vue.component(Field.name, Field);
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|-----------|-----------|-----------|-------------|-------------|
| type | 输入框类型 | `string` | `text` | `text`, `number`, `email`, `url`, `tel`, `date`, `datetime`, `password`, `textarea` |
| placeholder | 输入框placeholder | `string` | | |
| value | 输入框的值 | `string` | | |
| label | 输入框标签 | `string` | | |
| disabled | 是否禁用输入框 | `boolean` | `false` | |
| error | 输入框是否有错误 | `boolean` | `false` | |
| readonly | 输入框是否只读 | `boolean` | `false` | |
| maxlength | 输入框maxlength | `string`, `number` | | |
| rows | textarea rows | `string`, `number` | | |
| cols | textarea cols | `string`, `number` | | |
| autosize | 自动调整高度(仅支持textarea) | `boolean` | `false` | `true`, `false` |
| icon | 输入框尾部图标 | `string` | | icon中支持的类型 |
| onIconClick | 点击图标的回调函数 | `function` | | |
| type | 输入框类型 | `String` | `text` | `text`, `number`, `email`, `url`, `tel`, `date`, `datetime`, `password`, `textarea` |
| placeholder | 输入框placeholder | `String` | | |
| value | 输入框的值 | `String` | | |
| label | 输入框标签 | `String` | | |
| disabled | 是否禁用输入框 | `Boolean` | `false` | |
| error | 输入框是否有错误 | `Boolean` | `false` | |
| readonly | 输入框是否只读 | `Boolean` | `false` | |
| maxlength | 输入框maxlength | `String`, `Number` | | |
| rows | textarea rows | `String`, `Number` | | |
| cols | textarea cols | `String`, `Number` | | |
| autosize | 自动调整高度(仅支持textarea) | `Boolean` | `false` | `true`, `false` |
| icon | 输入框尾部图标 | `String` | | icon中支持的类型 |
| onIconClick | 点击图标的回调函数 | `Function` | | |
### Slot