Commit 735028c43055e8e80ebc7344af0cd0f51c744f98
1 parent
c8c76155
fix(table): auto hide unnecessary scrollbar
隐藏无需显示的滚动条时
Showing
3 changed files
with
34 additions
and
0 deletions
CHANGELOG.zh_CN.md
... | ... | @@ -26,6 +26,7 @@ |
26 | 26 | - 修复全局配置`fetchSetting`可能会被局部配置意外修改的问题 |
27 | 27 | - 修复`handleSearchInfoFn`的参数包含多余空白键的问题 |
28 | 28 | - 修复为 table 提供 rowSelection.onChange 时,无法手动变更 table 的选中项的问题 |
29 | + - 修复滚动条在无需显示的时候仍然持续显示的问题 | |
29 | 30 | - **Icon** 修复 SvgIcon 缺少部分样式的问题 |
30 | 31 | - **Menu** |
31 | 32 | - 修复路由映射模式下,单级菜单刷新不会激活 | ... | ... |
src/design/ant/index.less
src/design/ant/table.less
0 → 100644
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 | +} | ... | ... |