Commit 66c5e01d by caoyanzhi

下拉菜单展示“添加 标签”可配置

parent c5c8073d
......@@ -10,7 +10,7 @@
已选标签
<span class="color-c0c4cc font-14">(同一个输入框内标签关系为且)</span>
</div>
<tags-group-list :selectedTagsData="ruleForm.selectedTags" v-model="ruleForm.selectedTags" />
<tags-group-list :selectedTagsData="ruleForm.selectedTags" v-model="ruleForm.selectedTags" :showAddMenu="true" />
</el-form-item>
<el-form-item label="" prop="groupName" class="w-220">
<div>分组名称</div>
......
......@@ -7,7 +7,7 @@
:showTagsRelation="(index === 0 && selectedTagsData.length > 1) || (index === 1 && selectedTagsData.length > 2)"
:tagsGroupIndex="index"
tagsRelation="or"
:showAddMenu="true"
:showAddMenu="showAddMenu"
:active="activeTagsGroup === index"
@addTags="addTags"
@delTags="delTags"
......@@ -69,7 +69,11 @@ import { getMemberTagCount } from '@/request/memberGroup.js';
export default {
name: 'tags-detail',
props: {
selectedTagsData: Array
selectedTagsData: Array,
showAddMenu: {
type: Boolean,
default: false
}
},
components: {
tagsGroup,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment