Skip to content

Commit 68f6bb0

Browse files
committed
bug fixed
1 parent 98f5cbc commit 68f6bb0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/ve-table/src/index.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2455,6 +2455,12 @@ export default {
24552455

24562456
const { currentCell } = cellSelectionData;
24572457

2458+
if (isOperationColumn(column.key, colgroups)) {
2459+
// select all cell
2460+
this[INSTANCE_METHODS.SET_ALL_CELL_SELECTION]();
2461+
return false;
2462+
}
2463+
24582464
// 需要先将之前选中单元格元素清空
24592465
if (isEmptyValue(headerIndicatorColKeys.startColKey)) {
24602466
// 值的比较(currentCell.colKey 会变化)
@@ -2467,12 +2473,6 @@ export default {
24672473
this.$refs[this.cellSelectionRef].clearNormalEndCellRect();
24682474
}
24692475

2470-
if (isOperationColumn(column.key, colgroups)) {
2471-
// select all cell
2472-
this[INSTANCE_METHODS.SET_ALL_CELL_SELECTION]();
2473-
return false;
2474-
}
2475-
24762476
const { startColKey, endColKey, startColKeyIndex, endColKeyIndex } =
24772477
headerIndicatorColKeys;
24782478

0 commit comments

Comments
 (0)