element-plus [Bug Report] el-menu with many items devtools lags

wkftcu5l  于 2022-11-02  发布在  其他
关注(0)|答案(5)|浏览(219)

Element Plus version

2.0.2

OS/Browsers version

Fedora 35 / Google Chrome 97.0.4692.99

Vue version

3.2.31

https://github.com/hartois/bugtest-el-plus

Steps to reproduce

  1. Open devtools
  2. Open vue-devtools tab
  3. Try open menu, submenu

What is Expected?

Menu, submenu opens quickly

What is actually happening?

Serious lags before menu opens, high CPU usage, lags in vue-devtools

beq87vna

beq87vna1#

Maybe it's a problem with vue-devtools , close vue-devtools to try, it's best to use mac or windows

1hdlvixo

1hdlvixo2#

Without vue-devtools the problem does not appear.
But without el-menu the problem does not appear too.

With this vue-devtools but on vue2 and element-ui no problems!

I can't figure out which side the problem is: vue-devtools or el-menu.

tmb3ates

tmb3ates3#

same problem on windows

qlvxas9a

qlvxas9a4#

Same problem here. Lags appears also for el-tooltip component.
And the behavior is the same as hartois' description.
Without vue-devtools the problem does not appear. But without el-menu the problem does not appear too.

With this vue-devtools but on vue2 and element-ui no problems!

I can't figure out which side the problem is: vue-devtools or el-menu.

but5z9lq

but5z9lq5#

Lags are still in v2.2.11

相关问题