Skip to content

Commit 9c8e563

Browse files
committed
remove customOption
1 parent 55c455d commit 9c8e563

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/ve-table/src/index.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ export default {
273273
hasYScrollBar: false,
274274
// scroll bar width
275275
scrollBarWidth: 0,
276+
// preview table container scrollLeft (处理左列或右列固定效果)
277+
previewTableContainerScrollLeft: null,
276278
// cell selection key
277279
cellSelectionKeyData: {
278280
rowKey: "",
@@ -314,8 +316,6 @@ export default {
314316
previewVirtualScrollStartIndex: 0,
315317
//结束索引
316318
virtualScrollEndIndex: 0,
317-
// preview table container scrollLeft (处理左列或右列固定效果)
318-
previewTableContainerScrollLeft: null,
319319
},
320320
computed: {
321321
// actual render table data
@@ -1361,15 +1361,14 @@ export default {
13611361
tableContainerRef;
13621362

13631363
const { previewTableContainerScrollLeft: previewScrollLeft } =
1364-
this.$options.customOption;
1364+
this;
13651365

13661366
// 仅横向滚动需要处理
13671367
if (
13681368
previewScrollLeft === 0 ||
13691369
previewScrollLeft !== scrollLeft
13701370
) {
1371-
this.$options.customOption.previewTableContainerScrollLeft =
1372-
scrollLeft;
1371+
this.previewTableContainerScrollLeft = scrollLeft;
13731372

13741373
this.isLeftScrolling = scrollLeft > 0;
13751374
this.isRightScrolling =

0 commit comments

Comments
 (0)