diff --git a/assets/index.less b/assets/index.less index 97aa4337f..6403c5410 100644 --- a/assets/index.less +++ b/assets/index.less @@ -169,7 +169,6 @@ position: absolute; top: 0; overflow: hidden; - z-index: 1; table { width: auto; background: #fff; diff --git a/src/Table.jsx b/src/Table.jsx index bead2255b..b4dfd86de 100644 --- a/src/Table.jsx +++ b/src/Table.jsx @@ -709,15 +709,15 @@ export default class Table extends React.Component {
(this.tableNode = node)} className={className} style={props.style}> {this.getTitle()}
- {this.columnManager.isAnyColumnsLeftFixed() && -
- {this.getLeftFixedTable()} -
}
{this.getTable({ columns: this.columnManager.groupedColumns() })} {this.getEmptyText()} {this.getFooter()}
+ {this.columnManager.isAnyColumnsLeftFixed() && +
+ {this.getLeftFixedTable()} +
} {this.columnManager.isAnyColumnsRightFixed() &&
{this.getRightFixedTable()} diff --git a/tests/__snapshots__/Table.fixedColumns.spec.js.snap b/tests/__snapshots__/Table.fixedColumns.spec.js.snap index a65d5641c..c7b6eb57d 100644 --- a/tests/__snapshots__/Table.fixedColumns.spec.js.snap +++ b/tests/__snapshots__/Table.fixedColumns.spec.js.snap @@ -3,152 +3,6 @@ exports[`Table.fixedColumns renders correctly 1`] = ` class="rc-table rc-table-scroll-position-left">
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- title1 - - title2 -
- - 123 - - xxxxxxxx -
- - cdd - - edd12221 -
- - 133 - -
- - 133 - -
- - 133 - -
- - 133 - -
- - 133 - -
- - 133 - -
- - 133 - -
-
-
-
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ title1 + + title2 +
+ + 123 + + xxxxxxxx +
+ + cdd + + edd12221 +
+ + 133 + +
+ + 133 + +
+ + 133 + +
+ + 133 + +
+ + 133 + +
+ + 133 + +
+ + 133 + +
+
+
+