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
bc144582
Commit
bc144582
authored
Nov 30, 2017
by
Leopoldthecoder
Committed by
杨奕
Nov 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: update input docs
parent
79cc629f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
examples/docs/en-US/input.md
examples/docs/en-US/input.md
+1
-1
examples/docs/zh-CN/input.md
examples/docs/zh-CN/input.md
+25
-0
No files found.
examples/docs/en-US/input.md
View file @
bc144582
...
...
@@ -647,6 +647,7 @@ Search data from server-side.
|maxlength| maximum Input text length| number| — | — |
|minlength| minimum Input text length| number | — | — |
|placeholder| placeholder of Input| string | — | — |
| clearable | whether to show clear button | boolean | — | false |
|disabled | whether Input is disabled | boolean | — | false |
|size | size of Input, works when
`type`
is not 'textarea' | string | medium / small / mini | — |
| prefix-icon | prefix icon class | string | — | — |
...
...
@@ -663,7 +664,6 @@ Search data from server-side.
|autofocus | same as
`autofocus`
in native input | boolean | — | false |
|form | same as
`form`
in native input | string | — | — |
| label | label text | string | — | — |
| clearable | whether to show clear button | boolean | — | false |
### Input slots
...
...
examples/docs/zh-CN/input.md
View file @
bc144582
...
...
@@ -16,6 +16,7 @@
input7: '',
input8: '',
input9: '',
input10: '',
textarea: '',
textarea2: '',
textarea3: '',
...
...
@@ -224,6 +225,29 @@ export default {
```
:::
### 可清空
::: demo 使用
`clearable`
属性即可得到一个可清空的输入框
```
html
<el-input
placeholder=
"请输入内容"
v-model=
"input10"
clearable
>
</el-input>
<script>
export
default
{
data
()
{
return
{
input10
:
''
}
}
}
</script>
```
:::
### 带 icon 的输入框
带有图标标记输入类型
...
...
@@ -779,6 +803,7 @@ export default {
| maxlength | 最大输入长度 | number | — | — |
| minlength | 最小输入长度 | number | — | — |
| placeholder | 输入框占位文本 | string | — | — |
| clearable | 是否可清空 | boolean | — | false |
| disabled | 禁用 | boolean | — | false |
| size | 输入框尺寸,只在
`type!="textarea"`
时有效 | string | medium / small / mini | — |
| prefix-icon | 输入框头部图标 | string | — | — |
...
...
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