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
3dc98d70
Commit
3dc98d70
authored
Jan 16, 2017
by
baiyaaaaa
Committed by
cinwell.li
Jan 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add input-number size docs (#2415)
parent
f1b8909e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
2 deletions
+60
-2
examples/docs/en-US/input-number.md
examples/docs/en-US/input-number.md
+30
-1
examples/docs/zh-CN/input-number.md
examples/docs/zh-CN/input-number.md
+30
-1
No files found.
examples/docs/en-US/input-number.md
View file @
3dc98d70
...
...
@@ -4,7 +4,10 @@
return {
num1: 1,
num2: 1,
num3: 5
num3: 5,
num4: 1,
num5: 1,
num6: 1
}
},
methods: {
...
...
@@ -86,6 +89,32 @@ Allows you to define incremental steps.
```
:::
### Size
Additional
`large`
and
`small`
sizes of the input box are available
:::demo
```
html
<template>
<el-input-number
size=
"large"
v-model=
"num4"
></el-input-number>
<el-input-number
v-model=
"num5"
></el-input-number>
<el-input-number
size=
"small"
v-model=
"num6"
></el-input-number>
</template>
<script>
export
default
{
data
()
{
return
{
num4
:
1
,
num5
:
1
,
num6
:
1
}
}
};
</script>
```
:::
### Attributes
| Attribute | Description | Type | Accepted Values | Default |
...
...
examples/docs/zh-CN/input-number.md
View file @
3dc98d70
...
...
@@ -4,7 +4,10 @@
return {
num1: 1,
num2: 1,
num3: 5
num3: 5,
num4: 1,
num5: 1,
num6: 1
}
},
methods: {
...
...
@@ -92,6 +95,32 @@
```
:::
### 尺寸
额外提供了
`large`
、
`small`
两种尺寸的数字输入框
:::demo
```
html
<template>
<el-input-number
size=
"large"
v-model=
"num4"
></el-input-number>
<el-input-number
v-model=
"num5"
></el-input-number>
<el-input-number
size=
"small"
v-model=
"num6"
></el-input-number>
</template>
<script>
export
default
{
data
()
{
return
{
num4
:
1
,
num5
:
1
,
num6
:
1
}
}
};
</script>
```
:::
### Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|----------|-------------- |----------|-------------------------------- |-------- |
...
...
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