From 218580067ee0cba74a62d16ffd6baeee95a35bdd Mon Sep 17 00:00:00 2001 From: baiyaaaaa Date: Tue, 21 Feb 2017 10:43:56 +0800 Subject: [PATCH] add input step prop --- examples/docs/en-US/input.md | 5 +++-- examples/docs/zh-CN/input.md | 5 +++-- packages/input/src/input.vue | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/docs/en-US/input.md b/examples/docs/en-US/input.md index e9929fd82..b74aa8460 100644 --- a/examples/docs/en-US/input.md +++ b/examples/docs/en-US/input.md @@ -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 | — | — | diff --git a/examples/docs/zh-CN/input.md b/examples/docs/zh-CN/input.md index 7abd410b4..c937dc0af 100644 --- a/examples/docs/zh-CN/input.md +++ b/examples/docs/zh-CN/input.md @@ -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 | — | — | diff --git a/packages/input/src/input.vue b/packages/input/src/input.vue index 4bb926a5f..fb0b8c84a 100644 --- a/packages/input/src/input.vue +++ b/packages/input/src/input.vue @@ -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