Skip to content

Commit a2ecd5f

Browse files
committed
fix: table column resize not work, close #5348
1 parent ee6d489 commit a2ecd5f

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

components/table/style/index.less

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
@import '../../style/mixins/index';
33
@import './size';
44
@import './bordered';
5+
@import './resize.less';
56

67
@table-prefix-cls: ~'@{ant-prefix}-table';
78
@tree-prefix-cls: ~'@{ant-prefix}-tree';

components/table/style/resize.less

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.@{table-prefix-cls}-resize-handle {
2+
position: absolute;
3+
top: 0;
4+
height: 100% !important;
5+
bottom: 0;
6+
left: auto !important;
7+
right: -8px;
8+
cursor: col-resize;
9+
touch-action: none;
10+
user-select: auto;
11+
width: 16px;
12+
z-index: 1;
13+
&-line {
14+
display: block;
15+
width: 1px;
16+
margin-left: 7px;
17+
height: 100% !important;
18+
background-color: @primary-color;
19+
opacity: 0;
20+
}
21+
&:hover &-line {
22+
opacity: 1;
23+
}
24+
}
25+
26+
.dragging .@{table-prefix-cls}-resize-handle-line {
27+
opacity: 1;
28+
}

0 commit comments

Comments
 (0)