Conversation
715ff05 to
4c8d472
Compare
Member
Member
Author
|
Yeah, aligned cell can be implemented through custom component: const CenterCell = (props) => <th {...props} style={{ textAlign: 'center' }} />;
<Table components={{ body: { cell: CenterCell } }} /> |
Member
|
column.align will be easier to use. |
4c8d472 to
ac3c4de
Compare
Member
Author
|
After introducing |
Member
Author
|
|
ac3c4de to
e7458ae
Compare
This was referenced Nov 13, 2017
Closed
Closed
补充一下 |
|
@yesmeck Is there a way to just wrap the |
|
do components work in virtual table ? I have been trying to add a custom row component but it seems it is getting ignored when virtual table is enabled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses many long living issues.
Added
componentsto allow overriding default table elements.Added
onRow,onHeaderRow,column[onCell]andcolumn[onHeaderCell]to allow overriding row and cell props.Integrate with react-dnd
See https://yesmeck.github.io/table/examples/react-dnd.html
Close ant-design/ant-design#4639, #83
Integrate with styled-components
See https://yesmeck.github.io/table/examples/styled-components.html.
Ability to add any event listener to the table element with
onRowandonCellDon't need add tons of
onRowXXXprops.Close ant-design/ant-design#7096, #127, #141, #117, #149
Ability to optimize table row with sCU
Related ant-design/ant-design#2884
Others
Close ant-design/ant-design#5776, #139