diff --git a/src/components/grid/DataGrid.vue b/src/components/grid/DataGrid.vue index db3b207f8..f39dac6e8 100644 --- a/src/components/grid/DataGrid.vue +++ b/src/components/grid/DataGrid.vue @@ -938,6 +938,7 @@ const { requestDeleteRow, confirmDeleteRow, restoreRow, + restoreRows, pendingDeleteRowIds, requestDeleteRows, cloneRows, @@ -1122,6 +1123,22 @@ function affectedRowIds(): number[] { return []; } +function exportSelectedRowsCsv() { + return exportCsv(affectedRowIds()); +} + +function exportSelectedRowsXlsx() { + return exportXlsx(affectedRowIds()); +} + +function exportSelectedRowsJson() { + return exportJson(affectedRowIds()); +} + +function exportSelectedRowsMarkdown() { + return exportMarkdown(affectedRowIds()); +} + function isRowActive(index: number): boolean { const item = displayItems.value[index]; if (item && isRowSelected(item.id)) return true; @@ -2632,8 +2649,12 @@ defineExpose({ {{ isMultiRow ? t("grid.cloneRows", { count: multiRowCount }) : t("grid.cloneRow") }} - - {{ t("grid.restoreRow") }} + + + {{ isMultiRow ? t("grid.restoreRows", { count: multiRowCount }) : t("grid.restoreRow") }} {{ t("grid.exportXlsx") }} {{ t("grid.exportJson") }} {{ t("grid.exportMarkdown") }} + @@ -2676,7 +2706,7 @@ defineExpose({ (truncated) {{ t("grid.rowsAffected", { count: result.affected_rows }) }} {{ result.execution_time_ms }}ms - {{ selectionSummary }} + {{ selectionSummary }}