From afa670dc85541785fb4ecc7735f10f234b1275a7 Mon Sep 17 00:00:00 2001 From: MyGit <3282299728@qq.com> Date: Fri, 12 Jul 2024 11:30:30 +0800 Subject: [PATCH] =?UTF-8?q?style:stop=E6=8C=89=E9=92=AE=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bs-comp/chatComponent/ChatInput.tsx | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx b/src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx index 7607d0114..802337dde 100644 --- a/src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx +++ b/src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx @@ -11,6 +11,7 @@ import { useTranslation } from "react-i18next"; import GuideQuestions from "./GuideQuestions"; import { useMessageStore } from "./messageStore"; import { formatDate } from "@/util/utils"; +import { StopIcon } from "@radix-ui/react-icons"; export default function ChatInput({ clear, form, stop, questions, inputForm, wsUrl, onBeforSend }) { const { toast } = useToast() @@ -290,11 +291,14 @@ export default function ChatInput({ clear, form, stop, questions, inputForm, wsU {/* send */}
-
{ !inputLock.locked && handleSendClick() }} - >
+ onClick={() => { !inputLock.locked && handleSendClick() }}> + +
} + {!stoped && { setStoped(true); sendWsMsg({ "action": "stop" }); }}/>} {/* question */} - {/* stop */} - { - stop &&
- -
- }

{appConfig.dialogTips}