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
46b70a5b
Commit
46b70a5b
authored
Mar 28, 2018
by
Leopoldthecoder
Committed by
杨奕
Mar 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Select: add blur method
parent
7ae2662b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
0 deletions
+13
-0
examples/docs/en-US/select.md
examples/docs/en-US/select.md
+1
-0
examples/docs/es/select.md
examples/docs/es/select.md
+1
-0
examples/docs/zh-CN/select.md
examples/docs/zh-CN/select.md
+1
-0
packages/select/src/select.vue
packages/select/src/select.vue
+5
-0
types/select.d.ts
types/select.d.ts
+5
-0
No files found.
examples/docs/en-US/select.md
View file @
46b70a5b
...
...
@@ -713,3 +713,4 @@ If the binding value of Select is an object, make sure to assign `value-key` as
| Method | Description | Parameters |
|------|--------|-------|
| focus | focus the Input component | - |
| blur | blur the Input component, and hide the dropdown | - |
examples/docs/es/select.md
View file @
46b70a5b
...
...
@@ -719,3 +719,4 @@ Si el valor de encuadernación de Select es un objeto, asegúrese de asignar `va
| Metodo | Descripción | Parametros |
| ------ | --------------------------- | ---------- |
| focus | Foco en el componente input | - |
| blur | blur the Input component, and hide the dropdown | - |
examples/docs/zh-CN/select.md
View file @
46b70a5b
...
...
@@ -708,3 +708,4 @@
| 方法名 | 说明 | 参数 |
| ---- | ---- | ---- |
| focus | 使 input 获取焦点 | - |
| blur | 使 input 失去焦点,并隐藏下拉框 | - |
packages/select/src/select.vue
View file @
46b70a5b
...
...
@@ -537,6 +537,11 @@
}
},
blur
()
{
this
.
visible
=
false
;
this
.
$refs
.
reference
.
blur
();
},
handleBlur
(
event
)
{
this
.
$emit
(
'
blur
'
,
event
);
},
...
...
types/select.d.ts
View file @
46b70a5b
...
...
@@ -73,4 +73,9 @@ export declare class ElSelect extends ElementUIComponent {
* Focus the Input component
*/
focus
():
void
/**
* Blur the Input component, and hide the dropdown
*/
blur
():
void
}
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