Skip to content

Commit e782ba7

Browse files
committed
bug fixed
1 parent b2296c1 commit e782ba7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/ve-table/src/selection/index.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ export default {
8181
type: Object,
8282
required: true,
8383
},
84-
previewTableContainerScrollLeft: {
85-
type: Number,
86-
default: 0,
87-
},
8884
isCellEditing: {
8985
type: Boolean,
9086
default: false,
@@ -492,6 +488,7 @@ export default {
492488
// set selection positions
493489
setSelectionPositions({ type }) {
494490
const {
491+
allRowKeys,
495492
tableEl,
496493
currentCellEl,
497494
normalEndCellEl,
@@ -500,6 +497,11 @@ export default {
500497
virtualScrollVisibleIndexs,
501498
} = this;
502499

500+
// table empty
501+
if (allRowKeys.length === 0) {
502+
return false;
503+
}
504+
503505
if (!tableEl) {
504506
return false;
505507
}

0 commit comments

Comments
 (0)