Tencent / wujie

极致的微前端框架
https://wujie-micro.github.io/doc/
Other
4.01k stars 572 forks source link

ANTV X6 子应用使用问题 #67

Open x13575300712 opened 2 years ago

x13575300712 commented 2 years ago

描述bug 在ANTV X6 使用中,会存在鼠标显示位置 和 操作位置不一致的问题

错误截图

企业微信截图_16606160011022

cchao123 commented 1 year ago

同问题,有解决方案了吗

sunyuehhh commented 11 months ago

image 遇到的鼠标拖动位置与实际位置不一样问题,用translate改变了一下坐标
if (window.POWERED_BY_WUJIE) { graph.on('batch:start', () => { setTimeout(() => { let dom: any = document?.getElementsByClassName('x6-widget-dnd')?.[0]; if (dom) { dom.style.transform = 'translate(-250px,-126px)'; } }, 0); }); }