Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

E Table组件自定义rowSelection的rowKey #490

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

menggeNiu
Copy link
Collaborator

close #485

@liufei
Copy link
Member

liufei commented Sep 17, 2019

@@ -173,6 +174,7 @@ export default class TableBody extends React.PureComponent {
fixLeftList = fixLeft ? fixLeftColumns : fixRightColumns
fixRightList = fixLeft ? fixRightColumns : fixLeftColumns
}
const rowKey = this.props.rowSelection?.rowKey ?? ''
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个写法没有看懂是什么意思

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可选链和双问号

@@ -44,5 +44,7 @@ module.exports = {
},
],
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这两个提案还处于stage 3,建议等到stage 4再用

@liufei liufei modified the milestones: 2.0.10, 2.1 Nov 4, 2019
@lusssn lusssn self-requested a review November 4, 2019 10:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Table的selectedRowKeys只能以index索引作为取值逻辑
3 participants