File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments