IDuxFE / idux

🚀 A UI Component Library for Vue3.x
https://idux.site
MIT License
546 stars 141 forks source link

fix(pro:textarea): optimize performance of row height collecting #1971

Closed sallerli1 closed 3 months ago

sallerli1 commented 3 months ago

PR Checklist

Please check if your PR fulfills the following requirements:

What is the current behavior?

每次输入内容导致内容的高度撑开时,都会触发所有行的重新计算

What is the new behavior?

只有当内容区域的宽度变化时,才应该重新计算所有行的高度,仅仅高度变化时不重新计算

Other information

idux-bot[bot] commented 3 months ago

This preview will be available after the AzureCI is passed.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.95%. Comparing base (4e5cdcc) to head (384fdbc).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1971 +/- ## ======================================= Coverage 90.95% 90.95% ======================================= Files 358 358 Lines 35691 35691 Branches 3889 3888 -1 ======================================= Hits 32463 32463 Misses 3228 3228 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.