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
b7795606
Commit
b7795606
authored
Nov 06, 2016
by
baiyaaaaa
Committed by
GitHub
Nov 06, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #859 from Leopoldthecoder/number-doc
InputNumber: update doc
parents
3057984a
16c057e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
examples/docs/zh-cn/input-number.md
examples/docs/zh-cn/input-number.md
+29
-2
No files found.
examples/docs/zh-cn/input-number.md
View file @
b7795606
...
@@ -39,6 +39,11 @@
...
@@ -39,6 +39,11 @@
return
{
return
{
num1
:
1
num1
:
1
};
};
},
methods
:
{
handleChange
(
value
)
{
console
.
log
(
value
);
}
}
}
};
};
</script>
</script>
...
@@ -50,7 +55,18 @@
...
@@ -50,7 +55,18 @@
:::demo
`disabled`
属性接受一个
`Boolean`
,设置为
`true`
即可禁用整个组件,如果你只需要控制数值在某一范围内,可以设置
`min`
属性和
`max`
属性,不设置
`min`
和
`max`
时,最小值为 0。
:::demo
`disabled`
属性接受一个
`Boolean`
,设置为
`true`
即可禁用整个组件,如果你只需要控制数值在某一范围内,可以设置
`min`
属性和
`max`
属性,不设置
`min`
和
`max`
时,最小值为 0。
```
html
```
html
<el-input-number
v-model=
"num2"
:disabled=
"true"
></el-input-number>
<template>
<el-input-number
v-model=
"num2"
:disabled=
"true"
></el-input-number>
</template>
<script>
export
default
{
data
()
{
return
{
num2
:
1
}
}
};
</script>
```
```
:::
:::
...
@@ -61,7 +77,18 @@
...
@@ -61,7 +77,18 @@
:::demo 设置
`step`
属性可以控制步长,接受一个
`Number`
。
:::demo 设置
`step`
属性可以控制步长,接受一个
`Number`
。
```
html
```
html
<el-input-number
v-model=
"num3"
:step=
"2"
></el-input-number>
<template>
<el-input-number
v-model=
"num3"
:step=
"2"
></el-input-number>
</template>
<script>
export
default
{
data
()
{
return
{
num3
:
5
}
}
};
</script>
```
```
:::
:::
...
...
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