From b98f8de879679db350e0433f5e3574826f7aada5 Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Tue, 12 Dec 2023 00:47:32 +0800 Subject: [PATCH] update conversation ui --- src/components/chat/InputBox.vue | 10 ++--- src/components/chat/Message.vue | 6 --- src/components/chat/Sidebar.vue | 64 +++++++++++++++++++++++++++----- src/i18n/zh/chat/message.ts | 3 +- src/operators/chat/models.ts | 3 ++ src/operators/chat/operator.ts | 38 +++++++++++++++++-- src/pages/chat/Conversation.vue | 6 ++- src/pages/chat/Index.vue | 7 ++++ 8 files changed, 108 insertions(+), 29 deletions(-) diff --git a/src/components/chat/InputBox.vue b/src/components/chat/InputBox.vue index 2f141bc1..6ed5cc52 100644 --- a/src/components/chat/InputBox.vue +++ b/src/components/chat/InputBox.vue @@ -4,7 +4,7 @@ v-model="value" :rows="2" type="textarea" - placeholder="Please input" + :placeholder="$t('chat.message.newMessagePlaceholder')" @keydown.enter.exact.prevent="onSubmit" /> @@ -12,16 +12,12 @@