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
11b3c8bb
Commit
11b3c8bb
authored
Nov 24, 2017
by
liyl
Committed by
杨奕
Nov 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Autocomplete: support suffixIcon & prefixIcon (#8446)
* feat: update autocomplete * Feat: update input doc
parent
0462d9ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
examples/docs/en-US/input.md
examples/docs/en-US/input.md
+2
-0
examples/docs/zh-CN/input.md
examples/docs/zh-CN/input.md
+2
-0
packages/autocomplete/src/autocomplete.vue
packages/autocomplete/src/autocomplete.vue
+2
-0
No files found.
examples/docs/en-US/input.md
View file @
11b3c8bb
...
@@ -674,6 +674,8 @@ Attribute | Description | Type | Options | Default
...
@@ -674,6 +674,8 @@ Attribute | Description | Type | Options | Default
| name | same as
`name`
in native input | string | — | — |
| name | same as
`name`
in native input | string | — | — |
| select-when-unmatched | whether to emit a
`select`
event on enter when there is no autocomplete match | boolean | — | false |
| select-when-unmatched | whether to emit a
`select`
event on enter when there is no autocomplete match | boolean | — | false |
| label | label text | string | — | — |
| label | label text | string | — | — |
| prefix-icon | prefix icon class | string | — | — |
| suffix-icon | suffix icon class | string | — | — |
### Autocomplete slots
### Autocomplete slots
...
...
examples/docs/zh-CN/input.md
View file @
11b3c8bb
...
@@ -831,6 +831,8 @@ export default {
...
@@ -831,6 +831,8 @@ export default {
| name | 原生属性 | string | — | — |
| name | 原生属性 | string | — | — |
| select-when-unmatched | 在输入没有任何匹配建议的情况下,按下回车是否触发
`select`
事件 | boolean | — | false |
| select-when-unmatched | 在输入没有任何匹配建议的情况下,按下回车是否触发
`select`
事件 | boolean | — | false |
| label | 输入框关联的label文字 | string | — | — |
| label | 输入框关联的label文字 | string | — | — |
| prefix-icon | 输入框头部图标 | string | — | — |
| suffix-icon | 输入框尾部图标 | string | — | — |
### Autocomplete slots
### Autocomplete slots
| name | 说明 |
| name | 说明 |
...
...
packages/autocomplete/src/autocomplete.vue
View file @
11b3c8bb
...
@@ -103,6 +103,8 @@
...
@@ -103,6 +103,8 @@
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
prefixIcon
:
String
,
suffixIcon
:
String
,
label
:
String
,
label
:
String
,
debounce
:
{
debounce
:
{
type
:
Number
,
type
:
Number
,
...
...
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