Former-commit-id: 30f393a0c40078ffd7d0d007e770ed73d9536eab
This commit is contained in:
liyang
2019-01-28 19:48:21 +08:00
parent 0be08723fb
commit c0785ccd1f
3 changed files with 23 additions and 32 deletions
@@ -32,7 +32,7 @@
<el-dropdown
size="default"
split-button
@click="handleControlBtnClick"
@click="closeAll"
@command="command => handleControlItemClick(command)">
<d2-icon name="times-circle"/>
<el-dropdown-menu slot="dropdown">
@@ -131,8 +131,7 @@ export default {
this.contextmenuFlag = false
}
const params = {
pageSelect: tagName,
vm: this
pageSelect: tagName
}
switch (command) {
case 'left':
@@ -145,19 +144,13 @@ export default {
this.closeOther(params)
break
case 'all':
this.closeAll(this)
this.closeAll()
break
default:
this.$message.error('无效的操作')
break
}
},
/**
* @description 接收点击关闭控制上按钮的事件
*/
handleControlBtnClick () {
this.closeAll(this)
},
/**
* @description 接收点击 tab 标签的事件
*/