Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
memberTag
memberTag-web
Commits
9a84e522
Commit
9a84e522
authored
May 07, 2019
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限制最后一个标签框不能被删除
parent
eb4d4b4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
tags-group-list.vue
src/view/memberGroup/tags-group-list.vue
+1
-0
tags-group.vue
src/view/memberGroup/tags-group.vue
+4
-2
No files found.
src/view/memberGroup/tags-group-list.vue
View file @
9a84e522
...
...
@@ -8,6 +8,7 @@
:tagsGroupIndex=
"index"
:tagsRelation=
"tagsGroupRelation[index]"
:showAddMenu=
"showAddMenu"
:show-del-menu=
"selectedTagsData.length > 1"
:active=
"activeTagsGroupIndex === index"
@
addTags=
"addTags"
@
delTags=
"delTags"
...
...
src/view/memberGroup/tags-group.vue
View file @
9a84e522
...
...
@@ -2,7 +2,7 @@
<div
class=
"w-427 border-box"
>
<div
:class=
"['tags-group',
{ 'tags-group--active': active }]" @click="checkTagsGroup">
<!--右上角的下拉菜单-->
<el-dropdown
class=
"tags-group__dropdown"
placement=
"bottom-end"
>
<el-dropdown
class=
"tags-group__dropdown"
placement=
"bottom-end"
v-if=
"showAddMenu || showDelMenu"
>
<el-popover
width=
"200"
placement=
"top"
v-model=
"showDelPop"
trigger=
"manual"
>
<p
class=
"m-b-20"
>
确认删除输入框及内部所有标签?
</p>
<div
class=
"text-right"
>
...
...
@@ -13,7 +13,7 @@
</el-popover>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
v-if=
"showAddMenu"
@
click
.
native=
"addTags"
>
添加标签
</el-dropdown-item>
<el-dropdown-item
@
click
.
native=
"showDelPop = true"
>
删除
</el-dropdown-item>
<el-dropdown-item
v-if=
"showDelMenu"
@
click
.
native=
"showDelPop = true"
>
删除
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<!--展示选中的标签-->
...
...
@@ -75,6 +75,8 @@ export default {
tagsGroupIndex
:
Number
,
// 下拉菜单是否显示"添加标签"菜单项
showAddMenu
:
Boolean
,
// 下拉菜单是否显示"删除"菜单项
showDelMenu
:
Boolean
,
// 标签组是否选中
active
:
Boolean
},
...
...
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