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

如何在翻页时保存好选中的行的数据? #87

Open
futianshu opened this issue Jul 18, 2020 · 2 comments
Open

如何在翻页时保存好选中的行的数据? #87

futianshu opened this issue Jul 18, 2020 · 2 comments

Comments

@futianshu
Copy link

请问,pl-table是否支持el-table中type=“selection”的列的 reserve-selection 属性?或者用其他方式,能实现在翻页的同时,保存选中的行的数据(而不仅仅是行的id)。

我注意到pl-table的 record-table-select 属性只能保存行的id,而不能保存行的其他数据。

@futianshu
Copy link
Author

我尝试设在type=“selection”的列设置 reserve-selection 属性。
在第一页选中若干行,翻到第二页,再点击每行的checkbox,是可以跨翻页多选行数据的。
但是,在翻到第二页后,如果点击了表头上全选的checkbox,则会丢失第一页选中的行数据,此时选中的只有第二页的数据。
请问这个问题要怎么解决?谢谢

@parlay96
Copy link
Owner

加群吧

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

2 participants