Skip to content

Commit

Permalink
fix(table): fixed cell z-index is not higher than show type components
Browse files Browse the repository at this point in the history
  • Loading branch information
shijiatongxue committed Dec 10, 2021
1 parent 14ee2fd commit 087d643
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/semi-foundation/table/table.scss
Expand Up @@ -104,7 +104,7 @@ $module: #{$prefix}-table;

&-left,
&-right {
z-index: 1;
z-index: $z-table_fixed_column;
position: sticky;
background-color: $color-table-bg-default;

Expand Down Expand Up @@ -247,7 +247,7 @@ $module: #{$prefix}-table;

&-left,
&-right {
z-index: 1;
z-index: $z-table_fixed_column;;
position: sticky;
background-color: $color-table-bg-default;
}
Expand Down
3 changes: 3 additions & 0 deletions packages/semi-foundation/table/variables.scss
Expand Up @@ -82,3 +82,6 @@ $shadow-table_right: 3px 0 0 0 $color-table_shadow-bg-default; // 表格滚动
$border-table: #{$width-table_base_border} #{$border-table_base-borderStyle} $color-table-border-default; // 表格默认描边
$border-table_head-bottom: #{$width-table_header_border} #{$border-table_base-borderStyle} $color-table_th-border-default; // 表头单元格描边 - 底部
$border-table_resizer: $width-table_resizer_border solid $color-table_resizer-bg-default; // 表格拉伸标识描边

$z-table-fixed: 101!default; // fixed列的zIndex值
$z-table_fixed_column: $z-table-fixed; // fixed列的zIndex值
2 changes: 2 additions & 0 deletions packages/semi-theme-default/scss/variables.scss
Expand Up @@ -31,6 +31,8 @@ $z-portal: 1; // 抽象插槽,适用于未经特殊定制的所有组件
$z-affix: 10; // 固定位置的页面元素 z-index
$z-backtop: 10; // 返回顶部 z-index
$z-badge: 10; // badge z-index
// $z-avatar-default: 100;
$z-table-fixed: 101; // table fixed column
$z-modal: 1000; // modal z-index
$z-modal-mask: 1000; // modal 遮罩 z-index

Expand Down

0 comments on commit 087d643

Please sign in to comment.