[Improvement] Field: support v-model.number (#1221)

This commit is contained in:
neverland
2018-06-04 20:08:50 +08:00
committed by GitHub
parent 4eb328ae08
commit a3579a88e4
6 changed files with 19 additions and 39 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ Field 默认支持 Input 标签所有的原生属性,比如 `maxlength`、`pla
| 参数 | 说明 | 类型 | 默认值 |
|-----------|-----------|-----------|-------------|-------------|
| label | 标签 | `String` | - |
| value | 当前输入的值 | `String` | - |
| value | 当前输入的值 | `String | Number` | - |
| type | 可设置为任意原生类型, 如 `number` `tel` `textarea` | `String` | `text` |
| disabled | 是否禁用输入框 | `Boolean` | `false` |
| error | 是否将输入内容标红 | `Boolean` | `false` |