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

setSelectedRowKeys碰到勾选项不在当前页时标签页卡死现象 #5263

Closed
RacingK93 opened this issue Aug 16, 2023 · 2 comments
Closed

Comments

@RacingK93
Copy link

RacingK93 commented Aug 16, 2023

版本号:3.5.3
前端版本:vue3版
问题描述:打开弹窗,弹窗是一个分页的table列表,请求接口a渲染table列表数据,请求接口b拿到table选中的数据,此时要做setSelectedRowKeys的操作,此时发现一个问题,假如b返回的数据在a接口的第一页中不存在,此时页面直接卡死,无法任何操作,只能关闭浏览器标签页才行;我用前端不分页,传一页size:10000条,设置最小最大高度滚动,才解决这个问题;初始代码是online生成的,后期加了自定义弹框;
截图&代码:

微信图片_20230815142444

@zhangdaiscott
Copy link
Member

录个视频

@liaozhiyang
Copy link

已修复,下一个版本发布。
你可以在useCustomSelection.tsx文件setSelectedRowKeys方法,像以下代码一样加强判断。
image

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

No branches or pull requests

3 participants