Skip to content

🐛 [Bug]: 非必要避免使用getBoundingClientRect api,复杂页面使用此导致强制重排影响性能 #3985

@tweet

Description

@tweet

Version

5.2.6

Vue Version

2.6.14

Link to minimal reproduction

/

Step to reproduce

/

What is expected

避免使用getBoundingClientRect api

What is actually happening

const inputClientRect = (inputEl && inputEl.getBoundingClientRect()) || {}

看了下面对此值的使用,只是获取元素宽高,建议替换成其他的实现

What is your project name

Any additional comments (optional)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions