Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复启用keepItemSelectionOnPageChange时,selectedChange事件数据中的 selected… #11350

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cainiaokan
Copy link

…Items 仅包含当前页的问题

What

CRUD 组件当启用了keepItemSelectionOnPageChange时,组件的 selectedChange 事件数据中的 selectedItems只包含了当前 page 的数据,并未包含跨页选中的数据,不符合预期

Why

Table 组件在handleCheck时并未考虑keepItemSelectionOnPageChange,导致dispatchEvent 的时候只有当前 page 选中的 items

How

Table 组件中handleCheck函数中应当考虑keepItemSelectionOnPageChange设置项,讲老的选中行数据跟当前的选中行数据进行合并去重

@github-actions github-actions bot added the fix label Dec 10, 2024
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant