Skip to content

dropdown组件和popover组件会频繁渲染子节点 #8370

@hanpkpk

Description

@hanpkpk
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.6

Environment

Windows 11, Chrome 139.0.7258.155, Vue 3.5.21

Reproduction link

Edit on CodeSandbox

Steps to reproduce

当下拉菜单或卡片展开的时候,菜单内的元素会频繁渲染导致性能下降,数据过多是会出现卡顿。使用Native UI,相同的功能,只会渲染2次,而andv会渲染9次。

What is expected?

减少不必要的渲染,提高性能

What is actually happening?

如最小复现代码,dropdown组件中的元素中的方法由于频繁渲染导致运行多次。在下拉菜单显示或隐藏时都会频繁渲染。popover组件也有这个问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions