fix:边界问题
This commit is contained in:
parent
0890e636dd
commit
46cd212853
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div
|
||||
v-if="editShow"
|
||||
id="editor"
|
||||
class="editor"
|
||||
:class="[
|
||||
@ -943,7 +944,8 @@ export default {
|
||||
positionBoxInfoArray: [],
|
||||
yourList: [],
|
||||
linkJumpSetVisible: false,
|
||||
linkJumpSetViewId: null
|
||||
linkJumpSetViewId: null,
|
||||
editShow: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@ -1059,7 +1061,11 @@ export default {
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.changeScale()
|
||||
setTimeout(() => {
|
||||
this.changeScale()
|
||||
this.editShow = true
|
||||
}, 500)
|
||||
// this.changeScale()
|
||||
// 获取编辑器元素
|
||||
this.$store.commit('getEditor')
|
||||
const _this = this
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<de-main-container>
|
||||
<panel-main v-show="componentName==='PanelMain'" ref="panel_main" />
|
||||
<chart-edit v-if="componentName==='ChartEdit'" :param="param" />
|
||||
<panel-edit v-if="editShow&&componentName==='PanelEdit'" />
|
||||
<panel-edit v-if="componentName==='PanelEdit'" />
|
||||
<!-- <component :is="component" :param="param" />-->
|
||||
</de-main-container>
|
||||
</de-container>
|
||||
@ -24,8 +24,7 @@ export default {
|
||||
return {
|
||||
component: PanelMain,
|
||||
componentName: 'PanelMain',
|
||||
param: {},
|
||||
editShow: true
|
||||
param: {}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -43,17 +42,6 @@ export default {
|
||||
this.param = c.param
|
||||
this.componentName = c.name
|
||||
this.$store.dispatch('panel/setMainActiveName', c.name)
|
||||
if (this.componentName === 'PanelEdit') {
|
||||
setTimeout(() => {
|
||||
this.editShow = false
|
||||
this.$nextTick(() => {
|
||||
this.editShow = true
|
||||
})
|
||||
}, 500)
|
||||
} else {
|
||||
this.editShow = true
|
||||
}
|
||||
|
||||
// switch (c.name) {
|
||||
// case 'PanelEdit':
|
||||
// this.component = PanelEdit
|
||||
|
||||
Loading…
Reference in New Issue
Block a user