IDuxFE / idux

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

fix(comp:table): initial selectedRowKeys absent from dataSource is re… #1951

Closed sallerli1 closed 3 months ago

sallerli1 commented 4 months ago

…moved after check change

PR Checklist

Please check if your PR fulfills the following requirements:

What is the current behavior?

表格初始的 selectedRowKeys,如果并不在当前的dataSource中,则会在勾选变化后,被异常移除掉

What is the new behavior?

修复以上问题

Other information

idux-bot[bot] commented 4 months ago

This preview will be available after the AzureCI is passed.

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 73.68421% with 5 lines in your changes missing coverage. Please review.

Project coverage is 90.69%. Comparing base (9c81358) to head (906c741). Report is 3 commits behind head on main.

Files Patch % Lines
packages/components/utils/src/useTreeCheckState.ts 73.68% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1951 +/- ## ========================================== - Coverage 90.70% 90.69% -0.01% ========================================== Files 360 360 Lines 35595 35611 +16 Branches 3863 3868 +5 ========================================== + Hits 32286 32298 +12 - Misses 3309 3313 +4 ```

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