From 631db17a08d08791cf46cf637c40c3aec8bf78ea Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Thu, 7 May 2026 23:48:51 +0800 Subject: [PATCH] refactor: merge data table info bar and transaction toolbar into one row Move refresh/commit/rollback buttons from DataGrid's internal toolbar to ContentArea's table info header. Remove the redundant second row and the column count display. --- src/components/grid/DataGrid.vue | 54 +-------------------------- src/components/layout/ContentArea.vue | 41 ++++++++++++++++++-- 2 files changed, 40 insertions(+), 55 deletions(-) diff --git a/src/components/grid/DataGrid.vue b/src/components/grid/DataGrid.vue index a3a00c854c..8fe7ab5602 100644 --- a/src/components/grid/DataGrid.vue +++ b/src/components/grid/DataGrid.vue @@ -28,9 +28,6 @@ import { Info, Rows3, TriangleAlert, - RefreshCcw, - RotateCcw, - Table2, } from "lucide-vue-next"; import { Button } from "@/components/ui/button"; import { @@ -1088,6 +1085,8 @@ function escapeAndHighlightKeywords(s: string): string { .replace(/>/g, ">") .replace(SQL_KEYWORDS, '$1'); } + +defineExpose({ useTransaction, transactionActive, isSaving, onToolbarRefresh, onToolbarCommit, onToolbarRollback });