add input step prop

pull/2748/merge
baiyaaaaa 2017-02-21 10:43:56 +08:00 committed by cinwell.li
parent 42bd58d9fe
commit 218580067e
3 changed files with 8 additions and 4 deletions

View File

@ -609,8 +609,9 @@ Search data from server-side.
|auto-complete | same as `auto-complete` in native input | string | on/off | off |
|name | same as `name` in native input | string | — | — |
| readonly | same as `readonly` in native input | boolean | — | false |
|max | same as `max` in native input | * | — | — |
|min | same as `min` in native input | * | — | — |
|max | same as `max` in native input | — | — | — |
|min | same as `min` in native input | — | — | — |
|step| same as `step` in native input | — | — | — |
|resize| control the resizability | string | none, both, horizontal, vertical | — |
|autofocus | same as `autofocus` in native input | boolean | — | false |
|form | same as `form` in native input | string | — | — |

View File

@ -771,8 +771,9 @@ export default {
| auto-complete | 原生属性,自动补全 | string | on, off | off |
| name | 原生属性 | string | — | — |
| readonly | 原生属性,是否只读 | boolean | — | false |
| max | 原生属性,设置最大值 | * | — | — |
| min | 原生属性,设置最小值 | * | — | — |
| max | 原生属性,设置最大值 | — | — | — |
| min | 原生属性,设置最小值 | — | — | — |
| step | 原生属性,设置输入字段的合法数字间隔 | — | — | — |
| resize | 控制是否能被用户缩放 | string | none, both, horizontal, vertical | — |
| autofocus | 原生属性,自动获取焦点 | boolean | true, false | false |
| form | 原生属性 | string | — | — |

View File

@ -39,6 +39,7 @@
:autofocus="autofocus"
:min="min"
:max="max"
:step="step"
:form="form"
:value="currentValue"
ref="input"
@ -123,6 +124,7 @@
minlength: Number,
max: {},
min: {},
step: {},
validateEvent: {
type: Boolean,
default: true