From ad1981934f9e528ded4d9ddca6202ca83f1de37e Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Mon, 2 Dec 2024 20:37:57 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=89=B9=E6=B3=A8=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TextArea.vue | 2 ++ src/views/Editor/NotesPanel.vue | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/TextArea.vue b/src/components/TextArea.vue index ed85280d..7ac3560b 100644 --- a/src/components/TextArea.vue +++ b/src/components/TextArea.vue @@ -16,6 +16,7 @@ @input="$event => handleInput($event)" @focus="$event => emit('focus', $event)" @blur="$event => emit('blur', $event)" + @keydown.enter="$event => emit('enter', $event)" > @@ -40,6 +41,7 @@ const emit = defineEmits<{ (event: 'update:value', payload: string): void (event: 'focus', payload: FocusEvent): void (event: 'blur', payload: FocusEvent): void + (event: 'enter', payload: FocusEvent): void }>() const handleInput = (e: Event) => { diff --git a/src/views/Editor/NotesPanel.vue b/src/views/Editor/NotesPanel.vue index fff348b2..4471a649 100644 --- a/src/views/Editor/NotesPanel.vue +++ b/src/views/Editor/NotesPanel.vue @@ -48,7 +48,7 @@
-