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
954caf12
Commit
954caf12
authored
Mar 23, 2017
by
pcf
Committed by
杨奕
Mar 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Select: fix delete-tag
parent
a3dca68f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
examples/docs/en-US/select.md
examples/docs/en-US/select.md
+1
-1
packages/select/src/select.vue
packages/select/src/select.vue
+2
-2
No files found.
examples/docs/en-US/select.md
View file @
954caf12
...
@@ -647,7 +647,7 @@ Create and select new items that are not included in select options
...
@@ -647,7 +647,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 |
| delete-tag | triggers when
deletes tag
in multiple mode | deleted tag value |
| delete-tag | triggers when
a tag is deleted
in multiple mode | deleted tag value |
### Option Group Attributes
### Option Group Attributes
| Attribute | Description | Type | Accepted Values | Default |
| Attribute | Description | Type | Accepted Values | Default |
...
...
packages/select/src/select.vue
View file @
954caf12
...
@@ -599,8 +599,8 @@
...
@@ -599,8 +599,8 @@
deleteTag
(
event
,
tag
)
{
deleteTag
(
event
,
tag
)
{
let
index
=
this
.
selected
.
indexOf
(
tag
);
let
index
=
this
.
selected
.
indexOf
(
tag
);
if
(
index
>
-
1
&&
!
this
.
disabled
)
{
if
(
index
>
-
1
&&
!
this
.
disabled
)
{
let
deletedTag
=
this
.
value
.
splice
(
index
,
1
)[
0
]
;
this
.
value
.
splice
(
index
,
1
)
;
this
.
$emit
(
'
delete-tag
'
,
deletedT
ag
);
this
.
$emit
(
'
delete-tag
'
,
t
ag
);
}
}
event
.
stopPropagation
();
event
.
stopPropagation
();
},
},
...
...
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