Skip to content

Commit 61c4d3d

Browse files
committed
fix: setScrolling function indentation
1 parent 5051ebd commit 61c4d3d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Diff for: packages/ve-table/src/index.jsx

+7-6
Original file line numberDiff line numberDiff line change
@@ -2055,10 +2055,11 @@ export default {
20552055
// set scrolling
20562056
setScrolling(tableContainerRef) {
20572057
if (this.hasFixedColumn) {
2058-
const { scrollWidth, clientWidth, scrollLeft } =
2059-
tableContainerRef;
2060-
const { previewTableContainerScrollLeft: previewScrollLeft } =
2061-
this;
2058+
const { scrollWidth, clientWidth, scrollLeft } =
2059+
tableContainerRef;
2060+
2061+
const { previewTableContainerScrollLeft: previewScrollLeft } =
2062+
this;
20622063

20632064
// 仅横向滚动需要处理
20642065
if (
@@ -2076,8 +2077,8 @@ export default {
20762077
}
20772078

20782079
if (this.fixedHeader) {
2079-
const { scrollTop } = tableContainerRef;
2080-
this.isVerticalScrolling = scrollTop > 0;
2080+
const { scrollTop } = tableContainerRef;
2081+
this.isVerticalScrolling = scrollTop > 0;
20812082
}
20822083
},
20832084

0 commit comments

Comments
 (0)