mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
refactor(editor): 拖动添加组件,避免覆盖默认样式
This commit is contained in:
parent
fbd7f80c4f
commit
64e751bdd8
@ -209,6 +209,7 @@ export default defineComponent({
|
||||
const { scrollTop, scrollLeft } = stage.mask;
|
||||
if (layout === Layout.ABSOLUTE) {
|
||||
config.style = {
|
||||
...(config.style || {}),
|
||||
position: 'absolute',
|
||||
top: e.clientY - containerRect.top + scrollTop,
|
||||
left: e.clientX - containerRect.left + scrollLeft,
|
||||
|
Loading…
x
Reference in New Issue
Block a user