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

跳转页码后也支持默认选中。 #1656

Open
RuxChen opened this issue Feb 20, 2022 · 6 comments
Open

跳转页码后也支持默认选中。 #1656

RuxChen opened this issue Feb 20, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@RuxChen
Copy link

RuxChen commented Feb 20, 2022

这个需求解决了什么问题:

默认选中,通过指定 [checkRowKeys]设置默认选中的行,指定默认值需要有 [row-id],通过 [highlight]设置高亮选中行

建议的 API 是什么样的:

跳转页码后也支持默认选中。

是否已有其他不错的替代方案:

No response

@RuxChen RuxChen added the enhancement New feature or request label Feb 20, 2022
@RuxChen
Copy link
Author

RuxChen commented Feb 20, 2022

表格在渲染前从接口拿到需要表格默认选中的行id和表格数据,需要默认选中的行id分布在表格数据的第一页第二页第三页,我将它们赋值给checkRowKeys属性,表格在第一页能够默认选中第一页,但是切换页码调获取第二页表格数据的接口后不能选中第二页的行。

@xlz26296
Copy link
Contributor

建议通过调用 setCheckboxRow 方法自定义实现特殊业务逻辑

@WHIPLASHCZ
Copy link

+1,目前仍然没解决...

@WHIPLASHCZ
Copy link

我觉得这是个bug

@WHIPLASHCZ
Copy link

我尝试解决了一下这个问题并且提交了一个PR:#2387

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

No branches or pull requests

3 participants