代码风格统一
Former-commit-id: ff6dcea49152011f7ffadf67b3439a772dadf70c [formerly ff6dcea49152011f7ffadf67b3439a772dadf70c [formerly ff6dcea49152011f7ffadf67b3439a772dadf70c [formerly ff6dcea49152011f7ffadf67b3439a772dadf70c [formerly 036ab14e128b321b4a4f17972e276cffb62b4cf1 [formerly d24e01dcd8ef7f71d7e4b2f3e01b5b5b5f0d69de]]]]] Former-commit-id: f5fc086d537466936ac404d4640381a99b9700e9 Former-commit-id: 8da9ee34c4814c6880e8cbb17a1c8f3c901c11f6 Former-commit-id: 074ba19730618a3f4e68ad553a5aa363efe5a21f [formerly 596f38d6e42274034b180513447dcf7bcacef2b3] Former-commit-id: af1c1e83fc7e2136a1209548ce2f7dc49023847d Former-commit-id: b3e4c457de4dabd533a2bd0df8723bf4b82a09b7 Former-commit-id: 073a989e801e02ccf52b67eb8e93fc512c021447 Former-commit-id: d7dee6ae60cadd4655536af792089ea468657033 Former-commit-id: e4c72e70c50356888fbeeebf4c92f4418dd97359
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
:x="contentmenuX"
|
||||
:y="contentmenuY">
|
||||
<d2-contextmenu-list
|
||||
:menulist="contextmenuList"
|
||||
:menulist="tagName === 'index' ? contextmenuListIndex : contextmenuList"
|
||||
@rowClick="contextmenuClick"/>
|
||||
</d2-contextmenu>
|
||||
<el-tabs
|
||||
@@ -27,7 +27,9 @@
|
||||
</el-tabs>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d2-multiple-page-control-btn" flex-box="0">
|
||||
<div
|
||||
class="d2-multiple-page-control-btn"
|
||||
flex-box="0">
|
||||
<el-dropdown
|
||||
split-button
|
||||
@click="handleControlBtnClick"
|
||||
@@ -58,39 +60,24 @@
|
||||
|
||||
<script>
|
||||
import { mapState, mapMutations } from 'vuex'
|
||||
import D2Contextmenu from '../contextmenu'
|
||||
import D2ContextmenuList from '../contextmenu/components/contentmenuList'
|
||||
export default {
|
||||
components: {
|
||||
D2Contextmenu,
|
||||
D2ContextmenuList
|
||||
D2Contextmenu: () => import('../contextmenu'),
|
||||
D2ContextmenuList: () => import('../contextmenu/components/contentmenuList')
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
contextmenuFlag: false,
|
||||
contentmenuX: 0,
|
||||
contentmenuY: 0,
|
||||
contextmenuListIndex: [
|
||||
{ icon: 'times-circle', title: '关闭全部', value: 'all' }
|
||||
],
|
||||
contextmenuList: [
|
||||
{
|
||||
icon: 'arrow-left',
|
||||
title: '关闭左侧',
|
||||
value: 'left'
|
||||
},
|
||||
{
|
||||
icon: 'arrow-right',
|
||||
title: '关闭右侧',
|
||||
value: 'right'
|
||||
},
|
||||
{
|
||||
icon: 'times',
|
||||
title: '关闭其它',
|
||||
value: 'other'
|
||||
},
|
||||
{
|
||||
icon: 'times-circle',
|
||||
title: '关闭全部',
|
||||
value: 'all'
|
||||
}
|
||||
{ icon: 'arrow-left', title: '关闭左侧', value: 'left' },
|
||||
{ icon: 'arrow-right', title: '关闭右侧', value: 'right' },
|
||||
{ icon: 'times', title: '关闭其它', value: 'other' },
|
||||
{ icon: 'times-circle', title: '关闭全部', value: 'all' }
|
||||
],
|
||||
tagName: 'index'
|
||||
}
|
||||
@@ -132,7 +119,9 @@ export default {
|
||||
* @description 接收点击关闭控制上选项的事件
|
||||
*/
|
||||
handleControlItemClick (command, tagName = null) {
|
||||
if (tagName) this.contextmenuFlag = false
|
||||
if (tagName) {
|
||||
this.contextmenuFlag = false
|
||||
}
|
||||
const params = {
|
||||
pageSelect: tagName,
|
||||
vm: this
|
||||
|
||||
Reference in New Issue
Block a user