Merge pull request #1839 from RaoHai/FixedrowSelection

fix rowSelection display while some columns fixed left
This commit is contained in:
RaoHai 2016-05-25 17:43:26 +08:00
commit 38433f606b

View File

@ -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 {