Skip to content

perf(PopoverConfirm): 组件界面元素多的时候 JS 有性能问题 #5444

@2881099

Description

@2881099

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

我在测试有350条记录的 Table 中使用了 PopoverConfirm 确认删除前的确认提示,发现速度较慢。

Image

分析到这个函数慢,domElements 750个长度,单击鼠标会触发这个事件。

删除 PopoverConfirm 后页面快到飞起。

Expected Behavior

使用 PopoverConfirm 后,每次鼠标单击页面(任何位置)卡1秒左右,性能有较大忧化空间。

Interactive render mode

Interactive Server (Interactive server-side rendering (interactive SSR) using Blazor Server)

Steps To Reproduce

blazor_demo01.zip

Exceptions (if any)

No response

.NET Version

NET9.0

Anything else?

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions