mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-04 07:09:19 +08:00
parent
4a59b4b0f4
commit
9e167474a2
@ -263,12 +263,13 @@ export default class StageDragResize extends EventEmitter {
|
|||||||
const { beforeTranslate } = drag;
|
const { beforeTranslate } = drag;
|
||||||
this.dragStatus = StageDragStatus.ING;
|
this.dragStatus = StageDragStatus.ING;
|
||||||
|
|
||||||
this.moveableHelper?.onResize(e);
|
|
||||||
|
|
||||||
// 流式布局
|
// 流式布局
|
||||||
if (this.mode === Mode.SORTABLE) {
|
if (this.mode === Mode.SORTABLE) {
|
||||||
this.target.style.top = '0px';
|
this.target.style.top = '0px';
|
||||||
|
this.dragEl.style.width = `${width}px`;
|
||||||
|
this.dragEl.style.height = `${height}px`;
|
||||||
} else {
|
} else {
|
||||||
|
this.moveableHelper?.onResize(e);
|
||||||
this.target.style.left = `${frame.left + beforeTranslate[0]}px`;
|
this.target.style.left = `${frame.left + beforeTranslate[0]}px`;
|
||||||
this.target.style.top = `${frame.top + beforeTranslate[1]}px`;
|
this.target.style.top = `${frame.top + beforeTranslate[1]}px`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user