提交 46cd2128 authored 作者: wangjiahao's avatar wangjiahao

fix:边界问题

上级 0890e636
<template> <template>
<div <div
v-if="editShow"
id="editor" id="editor"
class="editor" class="editor"
:class="[ :class="[
...@@ -943,7 +944,8 @@ export default { ...@@ -943,7 +944,8 @@ export default {
positionBoxInfoArray: [], positionBoxInfoArray: [],
yourList: [], yourList: [],
linkJumpSetVisible: false, linkJumpSetVisible: false,
linkJumpSetViewId: null linkJumpSetViewId: null,
editShow: false
} }
}, },
computed: { computed: {
...@@ -1059,7 +1061,11 @@ export default { ...@@ -1059,7 +1061,11 @@ export default {
}, },
mounted() { mounted() {
this.changeScale() setTimeout(() => {
this.changeScale()
this.editShow = true
}, 500)
// this.changeScale()
// 获取编辑器元素 // 获取编辑器元素
this.$store.commit('getEditor') this.$store.commit('getEditor')
const _this = this const _this = this
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<de-main-container> <de-main-container>
<panel-main v-show="componentName==='PanelMain'" ref="panel_main" /> <panel-main v-show="componentName==='PanelMain'" ref="panel_main" />
<chart-edit v-if="componentName==='ChartEdit'" :param="param" /> <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" />--> <!-- <component :is="component" :param="param" />-->
</de-main-container> </de-main-container>
</de-container> </de-container>
...@@ -24,8 +24,7 @@ export default { ...@@ -24,8 +24,7 @@ export default {
return { return {
component: PanelMain, component: PanelMain,
componentName: 'PanelMain', componentName: 'PanelMain',
param: {}, param: {}
editShow: true
} }
}, },
watch: { watch: {
...@@ -43,17 +42,6 @@ export default { ...@@ -43,17 +42,6 @@ export default {
this.param = c.param this.param = c.param
this.componentName = c.name this.componentName = c.name
this.$store.dispatch('panel/setMainActiveName', 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) { // switch (c.name) {
// case 'PanelEdit': // case 'PanelEdit':
// this.component = PanelEdit // this.component = PanelEdit
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论