From de85895ad6ad52b872b30b84e6b27621ed775998 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:59:44 +0800 Subject: [PATCH] feat: AI dialog box, left mouse button menu (#2005) --- ui/package.json | 3 +- .../component/answer-content/index.vue | 10 ++- .../component/chat-input-operate/index.vue | 4 + .../ai-chat/component/control/index.vue | 81 +++++++++++++++++++ ui/src/components/ai-chat/index.vue | 2 + ui/src/components/icons/index.ts | 21 +++++ 6 files changed, 119 insertions(+), 2 deletions(-) create mode 100644 ui/src/components/ai-chat/component/control/index.vue diff --git a/ui/package.json b/ui/package.json index bbf58bcca..669982cff 100644 --- a/ui/package.json +++ b/ui/package.json @@ -47,7 +47,8 @@ "vue-clipboard3": "^2.0.0", "vue-codemirror": "^6.1.1", "vue-i18n": "^9.13.1", - "vue-router": "^4.2.4" + "vue-router": "^4.2.4", + "vue3-menus": "^1.1.2" }, "devDependencies": { "@rushstack/eslint-patch": "^1.3.2", diff --git a/ui/src/components/ai-chat/component/answer-content/index.vue b/ui/src/components/ai-chat/component/answer-content/index.vue index 96bcd0cdd..942126d55 100644 --- a/ui/src/components/ai-chat/component/answer-content/index.vue +++ b/ui/src/components/ai-chat/component/answer-content/index.vue @@ -5,7 +5,7 @@ -
+
+ + + +
+ + + diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 9c976e1be..60eb658ed 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -46,6 +46,7 @@ > +