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

对rowSelection的onSelect与onSelectAll的建议 #254

Open
ustczy opened this issue Nov 20, 2018 · 1 comment
Open

对rowSelection的onSelect与onSelectAll的建议 #254

ustczy opened this issue Nov 20, 2018 · 1 comment

Comments

@ustczy
Copy link

ustczy commented Nov 20, 2018

目前业务中不止一次使用到rowSelection事件,每次无非就是在业务代码里去写一段逻辑,最终实现的效果就是想得到选中的数据,然后在业务state中维护一份选中的数据。但是表格中选中的数据也只有在onSelect与onSelectAll事件触发的时候拿到,建议可以增加一个随时随刻拿选中数据的方法,比如this.table.getCheckedData(),仅供参考

@eternalsky
Copy link
Member

table getData 的时候就有一个字段可以标识是否是 checked 的了,内部默认是用 jsxchecked,但是这个也可以通过配置一列的形式,替换。

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