quqingfei

Results 14 comments of quqingfei

change Event Unable to trigger,source code not achieved

this can only use full screen, and you want to customize the width of the container

https://github.com/Tencent/wujie/pull/214#issuecomment-1277226699 新版本已经解决了。 已经发布 appendOrInsertElementHook 采用这个 plugin

[EventTargetPlugin](https://wujie-polyfill.github.io/doc/plugins/eventTarget.html) 直接安装这个插件引用一下即可

昨晚熬夜4个小时排查原因,以及使用最小代价实现弹框偏移解决办法:刚刚写了热乎的文章。可以参考一下。 [微前端下element-ui弹框偏移问题解决](https://segmentfault.com/a/1190000044158847) 另外附上实现效果: ![GIF](https://github.com/Tencent/wujie/assets/16645035/ddd8e6b1-dc3d-4695-9be9-1a1596f60b38)

调用destroy(xxx); xxx是wujie的name。销毁实例。重新调用一下就能刷新子应用。

> 有些场景需要弹窗全局展示(弹窗通常是fixed定位的) 子应用的一些导航栏之类的布局样式也通常是fixed定位的,但是展示在主应用中就会很奇怪。 如何较好地解决这种比较矛盾的问题。 给子应用的最顶级的div添加style="transform: scale(1);" `` 这样即可解决fixed定位不在子应用中的奇怪问题! @cloydlau @czhlin

我这个帖子内回复了使用最小成本实现elemet-ui在popper.js内通过代替源码方式实现弹框偏移解决方案,你可以看看。 https://github.com/Tencent/wujie/issues/682#issuecomment-1696111047 你可以参考一下,因为antd也用的是popper.js实现的

https://github.com/Tencent/wujie/issues/123 解决方法在这里搜