no message
Former-commit-id: 2ec2adeb18748e8d7d3393613e79811818743abe [formerly 2ec2adeb18748e8d7d3393613e79811818743abe [formerly 2ec2adeb18748e8d7d3393613e79811818743abe [formerly 2ec2adeb18748e8d7d3393613e79811818743abe [formerly f0879e759cbb2d309119f0b623bafab25ff7f8a1 [formerly 8f484b46cbdabf58ef4a66bf504a5fa08bcb2228]]]]] Former-commit-id: b8b12d6500e0a0c5ee5ff94d6d25d6cf85dbfbf4 Former-commit-id: 546fa77e4593eb327aa30f9ce5ab650f7797072b Former-commit-id: 5d2475d9c827bee2b01762ad5a5c44d61e068a9e [formerly b70996164fc0dbd06feae0885a02c5f036eb9a00] Former-commit-id: 3f9b5468f37fc1f9082eb876a9b2fe729933f2f0 Former-commit-id: c684a3306cb1dadc2a743e194704997b1bf1170a Former-commit-id: e71581dba805576e1fffa2d440272d4cf43788ce Former-commit-id: b0ebc8cb2a3a1e488f999734d6e25f7133bbb007 Former-commit-id: ad2caaa61a285a636965b7fd58da3a9cf2ca70c6
This commit is contained in:
@@ -20,11 +20,20 @@
|
||||
</div>
|
||||
<div class="d2-multiple-page-control-btn">
|
||||
<el-dropdown split-button @click="handleClick">
|
||||
<d2-icon name="trash"/>
|
||||
<d2-icon name="times"/>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item>关闭左侧</el-dropdown-item>
|
||||
<el-dropdown-item>关闭右侧</el-dropdown-item>
|
||||
<el-dropdown-item>全部关闭</el-dropdown-item>
|
||||
<el-dropdown-item>
|
||||
<d2-icon name="arrow-left" class="d2-mr-10"/>
|
||||
关闭左侧
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item>
|
||||
<d2-icon name="arrow-right" class="d2-mr-10"/>
|
||||
关闭右侧
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item>
|
||||
<d2-icon name="times" class="d2-mr-10"/>
|
||||
全部关闭
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
@@ -46,6 +55,9 @@ export default {
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 接收点击 tab 标签的事件
|
||||
*/
|
||||
handleClick (tab, event) {
|
||||
const page = this.pageOpenedList.find(page => page.name === tab.name)
|
||||
if (page) {
|
||||
@@ -56,11 +68,13 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击 tab 上的删除按钮后首先触发这里
|
||||
*/
|
||||
handleTabsEdit(tagName, action) {
|
||||
if (action === 'remove') {
|
||||
if (tagName !== 'index') {
|
||||
this.closeTag(tagName)
|
||||
}
|
||||
// 首页的删除按钮已经隐藏 因此这里不用判断是 index
|
||||
this.closeTag(tagName)
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user