element icon indicating copy to clipboard operation
element copied to clipboard

[Bug Report] el-table,el-tooltip,el-popover 内存泄漏

Open zx-95 opened this issue 3 months ago • 3 comments

Element UI version

2.15.14

OS/Browsers version

win10

Vue version

2.7.16

Reproduction Link

https://github.com/TangJang/elTableTest

Steps to reproduce

el-table中的v-mousewheel指令中,只做了事件绑定,没做事件解绑,导致使用地方的内存无法释放; el-tooltip中的focus事件绑定是事件解绑用的不是同一个函数,导致使用地方的内存无法释放; el-popover中事件解绑和事件绑定不一一对应,导致使用地方的内存无法释放;

What is Expected?

希望不再出现内存泄漏

What is actually happening?

现在使用的地方存在内存泄漏

zx-95 avatar Nov 03 '25 03:11 zx-95

有解决方案不

shuoshubao avatar Nov 08 '25 11:11 shuoshubao

暂时没有,直接引入element/packages中的代码覆盖element本身组件,vite本地运行正常,打包报错,需要更新element组件才能解决

zx-95 avatar Nov 10 '25 13:11 zx-95

自己拉仓库,然后自己pull上面的request,然后自己维护自己的私有源

furylee avatar Nov 26 '25 02:11 furylee