From abb7006874b332c95734df6347cef432f165594a Mon Sep 17 00:00:00 2001 From: kibumpark Date: Fri, 27 Dec 2024 16:10:13 +0900 Subject: [PATCH] =?UTF-8?q?auto=20modeling=20UI=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/global-style.css | 3 -- .../designer/modeling/AutoModelingDialog.vue | 54 ++++++++++++------- .../modeling/generators/CJMDialoger.vue | 2 +- .../modeling/generators/ESDialoger.vue | 4 +- .../modeling/generators/UIWizardDialoger.vue | 10 ++-- .../modeling/generators/UMLDialoger.vue | 2 +- 6 files changed, 45 insertions(+), 30 deletions(-) diff --git a/public/global-style.css b/public/global-style.css index 8592399c..25b5cf26 100644 --- a/public/global-style.css +++ b/public/global-style.css @@ -710,10 +710,7 @@ code[class*=language-]:nth-child(1) { .auto-modeling-user-story-card { white-space: pre !important; - margin: 10px !important; margin-bottom: -10px !important; - float: right !important; - width: 90% !important; } .lab-list-group-box .v-list-group__items{ diff --git a/src/components/designer/modeling/AutoModelingDialog.vue b/src/components/designer/modeling/AutoModelingDialog.vue index 9225f802..79bfd9e9 100644 --- a/src/components/designer/modeling/AutoModelingDialog.vue +++ b/src/components/designer/modeling/AutoModelingDialog.vue @@ -14,18 +14,19 @@ - - + + @keydown="openProjectDialogHandleKeydown" + auto-grow + :rows="1" + > @@ -48,19 +49,24 @@ - -
+ + + + +
@@ -444,6 +450,18 @@ }); }, methods: { + startGenHandleKeydown(genType) { + if (event.key === 'Enter' && !event.shiftKey) { + event.preventDefault(); // 기본 Enter 동작 방지 + this.startGen(genType) // 메서드 실행 + } + }, + openProjectDialogHandleKeydown(event) { + if (event.key === 'Enter' && !event.shiftKey) { + event.preventDefault(); // 기본 Enter 동작 방지 + this.openProjectDialog(); // 메서드 실행 + } + }, setAutoModelingText(inputAutoModelingChip) { var me = this me.projectInfo.prompt = inputAutoModelingChip; diff --git a/src/components/designer/modeling/generators/CJMDialoger.vue b/src/components/designer/modeling/generators/CJMDialoger.vue index 047d6fde..634222bf 100644 --- a/src/components/designer/modeling/generators/CJMDialoger.vue +++ b/src/components/designer/modeling/generators/CJMDialoger.vue @@ -1,6 +1,6 @@