mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
Merge pull request #1839 from RaoHai/FixedrowSelection
fix rowSelection display while some columns fixed left
This commit is contained in:
commit
38433f606b
@ -505,6 +505,9 @@ export default class Table extends React.Component {
|
||||
className: 'ant-table-selection-column',
|
||||
};
|
||||
}
|
||||
if (columns.some(column => column.fixed === 'left' || column.fixed === true)) {
|
||||
selectionColumn.fixed = 'left';
|
||||
}
|
||||
if (columns[0] && columns[0].key === 'selection-column') {
|
||||
columns[0] = selectionColumn;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user