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
Add sortColumn to title render #19008
Conversation
* add tree-select async demo * TreeSelect支持clearIcon和removeIcon * remove docs and demo * run test * clear code * add ui test
from typescript and documentation close #18847
Deploy preview for ant-design ready! Built with commit 454153c |
Codecov Report
@@ Coverage Diff @@
## feature #19008 +/- ##
===========================================
- Coverage 96.96% 96.92% -0.04%
===========================================
Files 281 281
Lines 7601 7555 -46
Branches 2136 2109 -27
===========================================
- Hits 7370 7323 -47
- Misses 229 230 +1
Partials 2 2
Continue to review full report at Codecov.
|
feature branch please~ |
@afc163 I changed the base branch to |
You need to checkout from feature then send PR to it. |
I have done this incorrectly, let me open a new PR |
New PR on feature branch here: #19012 |
Fixes #19007
🤔 This is a ...
🔗 Related issue link
#19007
Title render function is missing information about exactly which column is currently sorted. This is limiting when trying to render a custom sorter.
💡 Background and solution
Solution is to send the
sortColumn
that is stored in the table state. This way the user can infer which column is currently sorted while implementing thetitle
render function.📝 Changelog
Title render function argument object now contains a new key,
sortColumn
.☑️ Self Check before Merge
View rendered components/table/index.en-US.md
View rendered components/table/index.zh-CN.md