Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
21858006
Commit
21858006
authored
Feb 21, 2017
by
baiyaaaaa
Committed by
cinwell.li
Feb 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add input step prop
parent
42bd58d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
examples/docs/en-US/input.md
examples/docs/en-US/input.md
+3
-2
examples/docs/zh-CN/input.md
examples/docs/zh-CN/input.md
+3
-2
packages/input/src/input.vue
packages/input/src/input.vue
+2
-0
No files found.
examples/docs/en-US/input.md
View file @
21858006
...
...
@@ -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 | — | — |
...
...
examples/docs/zh-CN/input.md
View file @
21858006
...
...
@@ -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 | — | — |
...
...
packages/input/src/input.vue
View file @
21858006
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment