From 20eed250d2592a52e3cb87b54e3ce4d0cfd65e19 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Sun, 17 May 2026 16:12:49 +0800 Subject: [PATCH] feat(structure): add multiline column comment editor --- .../structure/TableStructureEditorDialog.vue | 40 ++++++++++++++++++- src/i18n/locales/en.ts | 2 + src/i18n/locales/es.ts | 2 + src/i18n/locales/zh-CN.ts | 2 + .../tableStructureEditorPresentation.test.ts | 12 ++++++ 5 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 tests/tableStructureEditorPresentation.test.ts diff --git a/src/components/structure/TableStructureEditorDialog.vue b/src/components/structure/TableStructureEditorDialog.vue index a1995f7d6..9a199e433 100644 --- a/src/components/structure/TableStructureEditorDialog.vue +++ b/src/components/structure/TableStructureEditorDialog.vue @@ -14,6 +14,7 @@ import { Database, KeyRound, Loader2, + Maximize2, Plus, RefreshCw, Save, @@ -27,6 +28,7 @@ import { DropdownMenuContent, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; +import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { useConnectionStore } from "@/stores/connectionStore"; import { useToast } from "@/composables/useToast"; @@ -409,7 +411,43 @@ watch(open, (value) => { /> - +
+ + + + + + +
+ + {{ t("structureEditor.editComment") }} + + + {{ column.name || t("structureEditor.columnName") }} + +
+