Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复存在表格左边冻结列,往右边滚动时,hover表头出现边框后,表头冻结列和表格内容冻结列没有对齐问题 #1197

Merged
merged 2 commits into from
Mar 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions style/web/components/table/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,16 @@
border-top: @border;
}
}

/** 表格左边有冻结列滚动时,去掉hover表头时多出的一个像素,避免出现表头的冻结列跟表内容的冻结列没有对齐的问题 */
&.@{prefix}-table__content--scrollable-to-left.@{prefix}-table__content--scrollable-to-right,
&.@{prefix}-table__content--scrollable-to-left {
thead.@{prefix}-table__header:hover {
.@{prefix}-table__cell--fixed-left-last:not(:last-child) {
border-right: 0;
}
}
}
}

/** 可选中行的场景下,将 Checkbox 和 Radio 铺满整个单元格,增大点击范围,方便用户选中 */
Expand Down