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
bffb1808
Commit
bffb1808
authored
May 29, 2017
by
Leopoldthecoder
Committed by
杨奕
Jun 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Select: add clear event
parent
0c121434
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
examples/docs/en-US/select.md
examples/docs/en-US/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
+1
-0
No files found.
examples/docs/en-US/select.md
View file @
bffb1808
...
@@ -665,6 +665,7 @@ Create and select new items that are not included in select options
...
@@ -665,6 +665,7 @@ Create and select new items that are not included in select options
| change | triggers when the selected value changes | current selected value |
| change | triggers when the selected value changes | current selected value |
| visible-change | triggers when the dropdown appears/disappears | true when it appears, and false otherwise |
| visible-change | triggers when the dropdown appears/disappears | true when it appears, and false otherwise |
| remove-tag | triggers when a tag is removed in multiple mode | removed tag value |
| remove-tag | triggers when a tag is removed in multiple mode | removed tag value |
| clear | triggers when the clear icon is clicked in a clearable Select | — |
### Option Group Attributes
### Option Group Attributes
| Attribute | Description | Type | Accepted Values | Default |
| Attribute | Description | Type | Accepted Values | Default |
...
...
examples/docs/zh-CN/select.md
View file @
bffb1808
...
@@ -660,6 +660,7 @@
...
@@ -660,6 +660,7 @@
| change | 选中值发生变化时触发 | 目前的选中值 |
| change | 选中值发生变化时触发 | 目前的选中值 |
| visible-change | 下拉框出现/隐藏时触发 | 出现则为 true,隐藏则为 false |
| visible-change | 下拉框出现/隐藏时触发 | 出现则为 true,隐藏则为 false |
| remove-tag | 多选模式下移除tag时触发 | 移除的tag值 |
| remove-tag | 多选模式下移除tag时触发 | 移除的tag值 |
| clear | 可清空的单选模式下用户点击清空按钮时触发 | — |
### Option Group Attributes
### Option Group Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
...
...
packages/select/src/select.vue
View file @
bffb1808
...
@@ -602,6 +602,7 @@
...
@@ -602,6 +602,7 @@
event
.
stopPropagation
();
event
.
stopPropagation
();
this
.
$emit
(
'
input
'
,
''
);
this
.
$emit
(
'
input
'
,
''
);
this
.
visible
=
false
;
this
.
visible
=
false
;
this
.
$emit
(
'
clear
'
);
},
},
deleteTag
(
event
,
tag
)
{
deleteTag
(
event
,
tag
)
{
...
...
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