Skip to content

Commit 735028c

Browse files
committed
fix(table): auto hide unnecessary scrollbar
隐藏无需显示的滚动条时
1 parent c8c7615 commit 735028c

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

CHANGELOG.zh_CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
- 修复全局配置`fetchSetting`可能会被局部配置意外修改的问题
2727
- 修复`handleSearchInfoFn`的参数包含多余空白键的问题
2828
- 修复为 table 提供 rowSelection.onChange 时,无法手动变更 table 的选中项的问题
29+
- 修复滚动条在无需显示的时候仍然持续显示的问题
2930
- **Icon** 修复 SvgIcon 缺少部分样式的问题
3031
- **Menu**
3132
- 修复路由映射模式下,单级菜单刷新不会激活

src/design/ant/index.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import './pagination.less';
22
@import './input.less';
33
@import './btn.less';
4+
@import './table.less';
45

56
// TODO beta.11 fix
67
.ant-col {

src/design/ant/table.less

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@prefix-cls: ~'@{namespace}-basic-table';
2+
3+
// fix table unnecessary scrollbar
4+
.@{prefix-cls} {
5+
.ant-table-wrapper {
6+
.ant-spin-nested-loading {
7+
.ant-spin-container {
8+
.ant-table {
9+
.ant-table-content {
10+
.ant-table-scroll {
11+
.ant-table-hide-scrollbar {
12+
overflow-y: auto !important;
13+
}
14+
15+
.ant-table-body {
16+
overflow: auto !important;
17+
}
18+
}
19+
20+
.ant-table-fixed-right {
21+
.ant-table-body-outer {
22+
.ant-table-body-inner {
23+
overflow-y: auto !important;
24+
}
25+
}
26+
}
27+
}
28+
}
29+
}
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)