fix:拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行

This commit is contained in:
yangchch6 2019-07-26 12:46:52 +08:00
parent d75c725d78
commit 95fa534d17
4 changed files with 7 additions and 4 deletions

View File

@ -250,7 +250,8 @@ var TableHeader = function (_Component) {
if (table) {
var innerTable = table.querySelector('.u-table-body-inner');
if (innerTable) {
overflow.x && (innerTable.style.overflowX = overflow.x);
//fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行
// overflow.x && (innerTable.style.overflowX = overflow.x);
overflow.y && (innerTable.style.overflowY = overflow.y);
}
}

3
dist/demo.js vendored
View File

@ -37654,7 +37654,8 @@
if (table) {
var innerTable = table.querySelector('.u-table-body-inner');
if (innerTable) {
overflow.x && (innerTable.style.overflowX = overflow.x);
//fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行
// overflow.x && (innerTable.style.overflowX = overflow.x);
overflow.y && (innerTable.style.overflowY = overflow.y);
}
}

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -390,7 +390,8 @@ class TableHeader extends Component {
if(table){
const innerTable = table.querySelector('.u-table-body-inner');
if(innerTable){
overflow.x && (innerTable.style.overflowX = overflow.x);
//fixbug: 拖拽列宽后,滚动条滚到表格底部,会导致固定列和非固定列错行
// overflow.x && (innerTable.style.overflowX = overflow.x);
overflow.y && (innerTable.style.overflowY = overflow.y);
}