mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-22 06:49:57 +08:00
fix(stage): 旋转、缩放组件后没有更新dsl
This commit is contained in:
parent
b3bae36d94
commit
bbb5927e0c
@ -395,10 +395,14 @@ export default class StageDragResize extends EventEmitter {
|
|||||||
this.dragStatus = StageDragStatus.END;
|
this.dragStatus = StageDragStatus.END;
|
||||||
const frame = this.moveableHelper?.getFrame(e.target);
|
const frame = this.moveableHelper?.getFrame(e.target);
|
||||||
this.emit('update', {
|
this.emit('update', {
|
||||||
el: this.target,
|
data: [
|
||||||
style: {
|
{
|
||||||
transform: frame?.get('transform'),
|
el: this.target,
|
||||||
},
|
style: {
|
||||||
|
transform: frame?.get('transform'),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -422,10 +426,14 @@ export default class StageDragResize extends EventEmitter {
|
|||||||
this.dragStatus = StageDragStatus.END;
|
this.dragStatus = StageDragStatus.END;
|
||||||
const frame = this.moveableHelper?.getFrame(e.target);
|
const frame = this.moveableHelper?.getFrame(e.target);
|
||||||
this.emit('update', {
|
this.emit('update', {
|
||||||
el: this.target,
|
data: [
|
||||||
style: {
|
{
|
||||||
transform: frame?.get('transform'),
|
el: this.target,
|
||||||
},
|
style: {
|
||||||
|
transform: frame?.get('transform'),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user