diff --git a/frontend/src/components/DeDrag/index.vue b/frontend/src/components/DeDrag/index.vue
index e0cf9c2d1e..49dc0f7295 100644
--- a/frontend/src/components/DeDrag/index.vue
+++ b/frontend/src/components/DeDrag/index.vue
@@ -21,7 +21,7 @@
@mouseenter="enter"
@mouseleave="leave"
>
-
+
{
+ this.recordMatrixCurShadowStyle()
+ }, 50)
this.$store.state.styleChangeTimes++
bus.$emit('auxiliaryMatrixChange')
},
+ // 记录当前样式 跟随阴影位置 矩阵处理
+ recordMatrixCurShadowStyle() {
+ // debugger
+ const left = (this.curComponent.x - 1) * this.curCanvasScale.matrixStyleWidth
+ const top = (this.curComponent.y - 1) * this.curCanvasScale.matrixStyleHeight
+ const width = this.curComponent.sizex * this.curCanvasScale.matrixStyleWidth
+ const height = this.curComponent.sizey * this.curCanvasScale.matrixStyleHeight
+ const style = {
+ left: left,
+ top: top,
+ width: width,
+ height: height
+ }
+ this.$store.commit('setShapeStyle', style)
+ // resize
+ this.$emit('resizeView')
+ },
edit() {
// 编辑时临时保存 当前修改的画布
this.$store.dispatch('panel/setComponentDataTemp', JSON.stringify(this.componentData))
diff --git a/frontend/src/components/canvas/components/Editor/index.vue b/frontend/src/components/canvas/components/Editor/index.vue
index 57d95d9558..c20deb0ce8 100644
--- a/frontend/src/components/canvas/components/Editor/index.vue
+++ b/frontend/src/components/canvas/components/Editor/index.vue
@@ -13,9 +13,9 @@
@scroll="canvasScroll"
>
-
+
-
+