fix:选择时间组件后拖动时间组件,顶部的操作栏不会跟着一起移动
This commit is contained in:
parent
fcc05f3121
commit
95fdfc16c6
@ -218,7 +218,7 @@ import generateID from '@/components/canvas/utils/generateID'
|
||||
import RectangleAttr from '@/components/canvas/components/RectangleAttr'
|
||||
import TextAttr from '@/components/canvas/components/TextAttr'
|
||||
import FilterTextAttr from '@/components/canvas/components/FilterTextAttr'
|
||||
import {queryPanelJumpInfo} from "@/api/panel/linkJump";
|
||||
import { queryPanelJumpInfo } from '@/api/panel/linkJump'
|
||||
|
||||
export default {
|
||||
name: 'PanelEdit',
|
||||
@ -560,6 +560,11 @@ export default {
|
||||
this.currentFilterCom.style.top = (this.dragComponentInfo.y - 1) * this.curCanvasScale.matrixStyleOriginHeight
|
||||
this.currentFilterCom.style.width = this.dragComponentInfo.sizex * this.curCanvasScale.matrixStyleOriginWidth
|
||||
this.currentFilterCom.style.height = this.dragComponentInfo.sizey * this.curCanvasScale.matrixStyleOriginHeight
|
||||
} else {
|
||||
this.currentFilterCom.style.left = this.dragComponentInfo.shadowStyle.x
|
||||
this.currentFilterCom.style.top = this.dragComponentInfo.shadowStyle.y
|
||||
this.currentFilterCom.style.width = this.dragComponentInfo.style.width
|
||||
this.currentFilterCom.style.height = this.dragComponentInfo.style.height
|
||||
}
|
||||
this.currentFilterCom.id = newComponentId
|
||||
this.currentFilterCom.auxiliaryMatrix = this.canvasStyleData.auxiliaryMatrix
|
||||
|
||||
Loading…
Reference in New Issue
Block a user