fix:拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行
This commit is contained in:
parent
d75c725d78
commit
95fa534d17
|
@ -250,7 +250,8 @@ var TableHeader = function (_Component) {
|
||||||
if (table) {
|
if (table) {
|
||||||
var innerTable = table.querySelector('.u-table-body-inner');
|
var innerTable = table.querySelector('.u-table-body-inner');
|
||||||
if (innerTable) {
|
if (innerTable) {
|
||||||
overflow.x && (innerTable.style.overflowX = overflow.x);
|
//fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行
|
||||||
|
// overflow.x && (innerTable.style.overflowX = overflow.x);
|
||||||
overflow.y && (innerTable.style.overflowY = overflow.y);
|
overflow.y && (innerTable.style.overflowY = overflow.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37654,7 +37654,8 @@
|
||||||
if (table) {
|
if (table) {
|
||||||
var innerTable = table.querySelector('.u-table-body-inner');
|
var innerTable = table.querySelector('.u-table-body-inner');
|
||||||
if (innerTable) {
|
if (innerTable) {
|
||||||
overflow.x && (innerTable.style.overflowX = overflow.x);
|
//fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行
|
||||||
|
// overflow.x && (innerTable.style.overflowX = overflow.x);
|
||||||
overflow.y && (innerTable.style.overflowY = overflow.y);
|
overflow.y && (innerTable.style.overflowY = overflow.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -390,7 +390,8 @@ class TableHeader extends Component {
|
||||||
if(table){
|
if(table){
|
||||||
const innerTable = table.querySelector('.u-table-body-inner');
|
const innerTable = table.querySelector('.u-table-body-inner');
|
||||||
if(innerTable){
|
if(innerTable){
|
||||||
overflow.x && (innerTable.style.overflowX = overflow.x);
|
//fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行
|
||||||
|
// overflow.x && (innerTable.style.overflowX = overflow.x);
|
||||||
overflow.y && (innerTable.style.overflowY = overflow.y);
|
overflow.y && (innerTable.style.overflowY = overflow.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue