wujie icon indicating copy to clipboard operation
wujie copied to clipboard

iviewUI中使用到element-resize-detector,在wujie中会报错

Open dengBox opened this issue 2 years ago • 3 comments

描述bug 使用iview/table时,发现改组件在初始化时会报错,原因是使用了element-resize-detector

如何复现 给出详细的复现步骤 1、进入单例模式的子系统,改子系统中使用iview-table,渲染一些数据即可。

错误截图

3cfd641e-fdcc-4b75-9d02-1cedc5452d04

最小复现仓库或者地址 经排查,该库在初始化时,会给要监听的dom元素插入一个object元素,但是由于wujie中拦截了appendChild方法.导致该库在添加dom元素之前,提前触发了监听。导致使用了该库 不能正常运行。

dengBox avatar May 04 '23 02:05 dengBox

请问 这个bug要怎么才能解决

clearlovehuan avatar May 24 '23 01:05 clearlovehuan

请问 这个bug要怎么才能解决

目前我是把这个库替换了,使用MutationObserver进行监听实现的

dengBox avatar May 24 '23 05:05 dengBox

请问是需要替换iviewUI内部依赖的element-resize-detector的插件嘛?

baozaibuding avatar May 26 '25 07:05 baozaibuding