节点操作点击事件禁止冒泡
This commit is contained in:
parent
4c9f59d7d8
commit
c88030d1d2
|
@ -33,7 +33,7 @@
|
|||
:content="$t('test_track.module.rename')"
|
||||
placement="top"
|
||||
>
|
||||
<i @click="openEditNodeDialog('edit', data)" class="el-icon-edit"></i>
|
||||
<i @click.stop="openEditNodeDialog('edit', data)" class="el-icon-edit"></i>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
class="item"
|
||||
|
@ -42,32 +42,13 @@
|
|||
:content="$t('test_track.module.add_submodule')"
|
||||
placement="top"
|
||||
>
|
||||
<i @click="openEditNodeDialog('add', data)" class="el-icon-circle-plus-outline"></i>
|
||||
<i @click.stop="openEditNodeDialog('add', data)" class="el-icon-circle-plus-outline"></i>
|
||||
</el-tooltip>
|
||||
<el-tooltip class="item" effect="dark"
|
||||
:open-delay="200" :content="$t('commons.delete')" placement="top">
|
||||
<i @click="remove(node, data)" class="el-icon-delete"></i>
|
||||
<i @click.stop="remove(node, data)" class="el-icon-delete"></i>
|
||||
</el-tooltip>
|
||||
</span>
|
||||
|
||||
<!-- <el-dropdown v-if="type == 'edit'" class="node-dropdown child">
|
||||
<span class="el-dropdown-link">
|
||||
<i class="el-icon-folder-add"></i>
|
||||
</span>
|
||||
<el-dropdown-menu v-slot:default>
|
||||
<el-dropdown-item>
|
||||
<div @click="openEditNodeDialog('edit', data)">{{$t('test_track.module.rename')}}</div>
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item>
|
||||
<div
|
||||
@click="openEditNodeDialog('add', data)"
|
||||
>{{$t('test_track.module.add_submodule')}}</div>
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item>
|
||||
<div @click="remove(node, data)">{{$t('commons.delete')}}</div>
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>-->
|
||||
</span>
|
||||
</template>
|
||||
</el-tree>
|
||||
|
|
Loading…
Reference in New Issue