fix: table column resize not work, close #5348

pull/5361/head
tangjinzhou 2022-03-17 22:07:58 +08:00
parent ee6d489bf4
commit a2ecd5f48e
2 changed files with 29 additions and 0 deletions

View File

@ -2,6 +2,7 @@
@import '../../style/mixins/index';
@import './size';
@import './bordered';
@import './resize.less';
@table-prefix-cls: ~'@{ant-prefix}-table';
@tree-prefix-cls: ~'@{ant-prefix}-tree';

View File

@ -0,0 +1,28 @@
.@{table-prefix-cls}-resize-handle {
position: absolute;
top: 0;
height: 100% !important;
bottom: 0;
left: auto !important;
right: -8px;
cursor: col-resize;
touch-action: none;
user-select: auto;
width: 16px;
z-index: 1;
&-line {
display: block;
width: 1px;
margin-left: 7px;
height: 100% !important;
background-color: @primary-color;
opacity: 0;
}
&:hover &-line {
opacity: 1;
}
}
.dragging .@{table-prefix-cls}-resize-handle-line {
opacity: 1;
}