fix: table column resize not work, close #5348
parent
ee6d489bf4
commit
a2ecd5f48e
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue