fix(fe): KsDataGrid - add missing redrawRows method
Problem: DataGridShell expects gridRef to have redrawRows() method but KsDataGrid.vue only exposed focusRow and gridApi Fixed: 1. Added redrawRows() function that calls gridApi.redrawRows() 2. Updated defineExpose to include redrawRows 3. Removed unused CellEditingStoppedEvent import Result: CommonCodeManagementPage.redrawRows() calls now work Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -181,8 +181,11 @@ function focusRow(rowIndex: number, colKey?: string): void {
|
||||
setTimeout(attempt, 150)
|
||||
}
|
||||
|
||||
function redrawRows(): void {
|
||||
gridApi.value?.redrawRows()
|
||||
}
|
||||
|
||||
import type { NavigateToNextCellParams, CellPosition, CellEditingStoppedEvent } from 'ag-grid-community'
|
||||
import type { NavigateToNextCellParams, CellPosition } from 'ag-grid-community'
|
||||
|
||||
|
||||
|
||||
@@ -231,7 +234,7 @@ function navigateToNextCell(params: NavigateToNextCellParams): CellPosition | nu
|
||||
return suggestedNextCell
|
||||
}
|
||||
|
||||
defineExpose({ focusRow, gridApi })
|
||||
defineExpose({ focusRow, redrawRows, gridApi })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user