We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1207090 commit 5051ebdCopy full SHA for 5051ebd
packages/ve-table/src/index.jsx
@@ -2054,12 +2054,11 @@ export default {
2054
2055
// set scrolling
2056
setScrolling(tableContainerRef) {
2057
- const { scrollWidth, clientWidth, scrollLeft, scrollTop } =
2058
- tableContainerRef;
2059
-
2060
if (this.hasFixedColumn) {
2061
- const { previewTableContainerScrollLeft: previewScrollLeft } =
2062
- this;
+ const { scrollWidth, clientWidth, scrollLeft } =
+ tableContainerRef;
+ const { previewTableContainerScrollLeft: previewScrollLeft } =
+ this;
2063
2064
// 仅横向滚动需要处理
2065
if (
@@ -2077,6 +2076,7 @@ export default {
2077
2076
}
2078
2079
if (this.fixedHeader) {
+ const { scrollTop } = tableContainerRef;
2080
this.isVerticalScrolling = scrollTop > 0;
2081
2082
},
0 commit comments