Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions packages/web-vue/components/table/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,13 @@
// stripe: true
&-stripe {
&:not(.@{table-prefix-cls}-dragging)
.@{table-cls-tr}:not(.@{table-prefix-cls}-tr-empty):not(.@{table-prefix-cls}-tr-summary):nth-child(even),
.@{table-cls-tr}:not(.@{table-prefix-cls}-tr-empty):not(
.@{table-prefix-cls}-tr-summary
):nth-child(even),
.@{table-cls-tr}-drag {
.@{table-cls-td}:not(.@{table-prefix-cls}-col-fixed-left):not(.@{table-prefix-cls}-col-fixed-right) {
.@{table-cls-td}:not(.@{table-prefix-cls}-col-fixed-left):not(
.@{table-prefix-cls}-col-fixed-right
) {
background-color: @table-color-bg-body-stripe-row;
}

Expand All @@ -735,9 +739,13 @@

&-hover {
&:not(.@{table-prefix-cls}-dragging)
.@{table-cls-tr}:not(.@{table-prefix-cls}-tr-empty):not(.@{table-prefix-cls}-tr-summary):hover,
.@{table-cls-tr}:not(.@{table-prefix-cls}-tr-empty):not(
.@{table-prefix-cls}-tr-summary
):hover,
.@{table-cls-tr}-drag {
.@{table-cls-td}:not(.@{table-prefix-cls}-col-fixed-left):not(.@{table-prefix-cls}-col-fixed-right) {
.@{table-cls-td}:not(.@{table-prefix-cls}-col-fixed-left):not(
.@{table-prefix-cls}-col-fixed-right
) {
background-color: @table-color-bg-body-row_hover;
}

Expand All @@ -757,15 +765,19 @@
}

.@{table-cls-tr}-expand:not(.@{table-prefix-cls}-tr-empty):hover {
.@{table-cls-td}:not(.@{table-prefix-cls}-col-fixed-left):not(.@{table-prefix-cls}-col-fixed-right) {
.@{table-cls-td}:not(.@{table-prefix-cls}-col-fixed-left):not(
.@{table-prefix-cls}-col-fixed-right
) {
background-color: @table-color-bg-expand-content_hover;
}
}

// 去除嵌套子表格的 hover 效果
.@{table-prefix-cls}-tr-expand .@{table-cls-td} & {
.@{table-cls-tr}:not(.@{table-prefix-cls}-tr-empty) {
.@{table-cls-td}:not(.@{table-prefix-cls}-col-fixed-left):not(.@{table-prefix-cls}-col-fixed-right) {
.@{table-cls-td}:not(.@{table-prefix-cls}-col-fixed-left):not(
.@{table-prefix-cls}-col-fixed-right
) {
background-color: transparent;
}

Expand All @@ -784,7 +796,7 @@
z-index: 1;
flex-shrink: 0;
width: 100%;
overflow-x: auto;
overflow-x: hidden;
background-color: @table-color-bg-tfoot;
box-shadow: 0 -@table-border-width 0 @table-color-border;
scrollbar-color: transparent transparent;
Expand Down