+
{{ $t('panel.panelNull') }}
@@ -101,7 +101,7 @@ export default {
const _this = this
const erd = elementResizeDetectorMaker()
// 监听div变动事件
- erd.listenTo(document.getElementById('canvasInfo'), element => {
+ erd.listenTo(document.getElementById('canvasInfoTemp'), element => {
_this.$nextTick(() => {
_this.restore()
})
@@ -116,8 +116,8 @@ export default {
getStyle,
restore() {
debugger
- const canvasHeight = document.getElementById('canvasInfo').offsetHeight
- const canvasWidth = document.getElementById('canvasInfo').offsetWidth
+ const canvasHeight = document.getElementById('canvasInfoTemp').offsetHeight
+ const canvasWidth = document.getElementById('canvasInfoTemp').offsetWidth
this.scaleWidth = canvasWidth * 100 / parseInt(this.canvasStyleData.width)// 获取宽度比
this.scaleHeight = canvasHeight * 100 / parseInt(this.canvasStyleData.height)// 获取高度比
if (this.showType === 'width') {
diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue
index e14df6876c..f6ed8155d5 100644
--- a/frontend/src/views/panel/edit/index.vue
+++ b/frontend/src/views/panel/edit/index.vue
@@ -101,7 +101,7 @@
@mousedown="handleMouseDown"
@mouseup="deselectCurComponent"
>
-
+
@@ -135,14 +135,10 @@
-