Skip to content

Table 组件文档的 change 事件回调参数说明不全 #1432

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

Closed
1 task done
EmiyaYang opened this issue Nov 18, 2019 · 5 comments
Closed
1 task done

Table 组件文档的 change 事件回调参数说明不全 #1432

EmiyaYang opened this issue Nov 18, 2019 · 5 comments

Comments

@EmiyaYang
Copy link

EmiyaYang commented Nov 18, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

table 组件的 change 事件的回调函数参数不全。遗漏了最后一个也是最核心的包含变更后 dataSource 的参数对象,具体调用时可以打印出来,希望文档能补充完整,让使用者少走一些弯路。

遗漏文档地址

What does the proposed API look like?

希望补充: change ----> Function(pagination, filters, sorter, { currentDataSource })

@EmiyaYang
Copy link
Author

EmiyaYang commented Nov 25, 2019

@tangjinzhou handleChange事件有立即触发的方法吗?我这边希望能拿到默认排序、筛选或分页过后的数据。

@tangjinzhou
Copy link
Member

欢迎pr 补充文档,
立即触发?不需要啊,数据驱动,理论上默认值都是你自己设置的

@EmiyaYang
Copy link
Author

@tangjinzhou 感谢回复,稍后提 PR。
可能我的问题没有描述清楚。具体一点,如果对表格组件的 columns 数组项设置了 defaultSortOrder ,要怎么做才能拿到排序后的 dataSource?

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants