Skip to content

Commit 7286429

Browse files
committed
fix(Table): z-index of stickyheader with lock columns, close #2832
1 parent 6510882 commit 7286429

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/table/main.scss

+6-1
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,14 @@
7272
}
7373
}
7474
&-affix {
75-
z-index: 10;
75+
z-index: 1;
7676
overflow: hidden;
7777
}
78+
&-stickylock {
79+
#{$table-prefix}-affix {
80+
z-index: 10;
81+
}
82+
}
7883
&-header-resizable {
7984
position: relative;
8085
#{$table-prefix}-resize-handler {

src/table/new-lock.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ export default function stickyLock(BaseComponent) {
368368
components.Row = components.Row || LockRow;
369369
className = classnames({
370370
[`${prefix}table-lock`]: true,
371+
[`${prefix}table-stickylock`]: true,
371372
[`${prefix}table-wrap-empty`]: !dataSource.length,
372373
[className]: className,
373374
});

0 commit comments

Comments
 (0)