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