-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
跳转页码后也支持默认选中。 #1656
Labels
enhancement
New feature or request
Comments
表格在渲染前从接口拿到需要表格默认选中的行id和表格数据,需要默认选中的行id分布在表格数据的第一页第二页第三页,我将它们赋值给checkRowKeys属性,表格在第一页能够默认选中第一页,但是切换页码调获取第二页表格数据的接口后不能选中第二页的行。 |
建议通过调用 setCheckboxRow 方法自定义实现特殊业务逻辑 |
+1,目前仍然没解决... |
我觉得这是个bug |
我尝试解决了一下这个问题并且提交了一个PR:#2387 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个需求解决了什么问题:
默认选中,通过指定 [checkRowKeys]设置默认选中的行,指定默认值需要有 [row-id],通过 [highlight]设置高亮选中行
建议的 API 是什么样的:
跳转页码后也支持默认选中。
是否已有其他不错的替代方案:
No response
The text was updated successfully, but these errors were encountered: