diff --git a/src/components/grid/DataGrid.vue b/src/components/grid/DataGrid.vue index c72506448a..12c5a7e1a4 100644 --- a/src/components/grid/DataGrid.vue +++ b/src/components/grid/DataGrid.vue @@ -1081,6 +1081,13 @@ const { } = selection; const selectionSummary = computed(() => t("grid.selectedCells", { count: selectedCellCount.value })); + +function isRowActive(index: number): boolean { + const range = selectedRange.value; + if (!range) return false; + return index >= range.startRow && index <= range.endRow; +} + const contextRowItem = computed(() => (contextCell.value ? getRowItem(contextCell.value.rowId) : undefined)); const contextColumn = computed(() => { if (!contextCell.value || contextCell.value.col < 0) return null; @@ -2208,11 +2215,12 @@ defineExpose({ >