no message
Former-commit-id: 44455561540efd5ee7eeda99619b56bbdc3c4483 [formerly 9eff67380b88fb469a12628c38644aaa8d8e7886] [formerly 44455561540efd5ee7eeda99619b56bbdc3c4483 [formerly 9eff67380b88fb469a12628c38644aaa8d8e7886] [formerly 44455561540efd5ee7eeda99619b56bbdc3c4483 [formerly 9eff67380b88fb469a12628c38644aaa8d8e7886] [formerly 9eff67380b88fb469a12628c38644aaa8d8e7886 [formerly fd4d47079158260cb6d680d0795df0302715b512 [formerly 371c006bdf5609bb48566173dd118d439674032c]]]]] Former-commit-id: b105c75f6be816036ba15cda54b4500cf010f557 Former-commit-id: 66cf21c0c8b62a260ab0bfbfdfe8dfcd8d13e330 Former-commit-id: fd474a3d1044eeaf30c7ae6cb46fe3154afd9c3e [formerly dbc60930bc3cc385a4bea13408003daa41d73f4e] Former-commit-id: a406577f63e8997311b04785b53b87a804fed948 Former-commit-id: f20d752037021c97391b032e86df77b986a4bb6c Former-commit-id: 05d1e6a0dffbda5ac88b4c5b4b5c42ce23054abf Former-commit-id: dbf7091388cc539bd9332fb9090fe5e66e1b173b Former-commit-id: e7e320ae45961f33de11a4ca78aa0a69522ae65f
This commit is contained in:
@@ -19,22 +19,22 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="d2-multiple-page-control-btn">
|
||||
<el-dropdown split-button @click="handleControlBtnClick">
|
||||
<el-dropdown split-button @click="handleControlBtnClick" @command="handleControlItemClick">
|
||||
<d2-icon name="times-circle"/>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item>
|
||||
<el-dropdown-item command="left">
|
||||
<d2-icon name="arrow-left" class="d2-mr-10"/>
|
||||
关闭左侧
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item>
|
||||
<el-dropdown-item command="right">
|
||||
<d2-icon name="arrow-right" class="d2-mr-10"/>
|
||||
关闭右侧
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item>
|
||||
<el-dropdown-item command="other">
|
||||
<d2-icon name="times" class="d2-mr-10"/>
|
||||
关闭其它
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item>
|
||||
<el-dropdown-item command="all">
|
||||
<d2-icon name="times-circle" class="d2-mr-10"/>
|
||||
全部关闭
|
||||
</el-dropdown-item>
|
||||
@@ -59,6 +59,28 @@ export default {
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 接收点击关闭控制上选项的事件
|
||||
*/
|
||||
handleControlItemClick (command) {
|
||||
switch (command) {
|
||||
case 'left':
|
||||
console.log('left')
|
||||
break;
|
||||
case 'right':
|
||||
console.log('right')
|
||||
break;
|
||||
case 'other':
|
||||
console.log('other')
|
||||
break;
|
||||
case 'all':
|
||||
console.log('all')
|
||||
break;
|
||||
default:
|
||||
console.log('无效指令')
|
||||
break;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 接收点击关闭控制上按钮的事件
|
||||
*/
|
||||
@@ -88,6 +110,24 @@ export default {
|
||||
this.closeTag(tagName)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 关闭左侧的 tag
|
||||
*/
|
||||
closeAllTagLeft () {
|
||||
//
|
||||
},
|
||||
/**
|
||||
* 关闭右侧的 tag
|
||||
*/
|
||||
closeAllTagRight () {
|
||||
//
|
||||
},
|
||||
/**
|
||||
* 关闭其它的 tag
|
||||
*/
|
||||
closeAllTagOther () {
|
||||
//
|
||||
},
|
||||
/**
|
||||
* 关闭全部的 tag
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user