From 53dd9dca0f9636efbe8d99d84c75c6db1653ae97 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 16 Jan 2026 07:46:41 +0000 Subject: [PATCH] =?UTF-8?q?feat(ai-assistant):=20=E6=B5=AE=E5=8A=A8?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=94=AF=E6=8C=81=E6=8B=96=E6=8B=BD=E5=88=B0?= =?UTF-8?q?=E8=BE=B9=E7=BC=98=E8=87=AA=E5=8A=A8=E6=94=B6=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 拖拽按钮到屏幕边缘(≤12px)松开后自动收起为窄条 - 鼠标悬停窄条时自动展开,离开 1 秒后收起 - 点击收起状态的窄条直接打开 AI 助手 - 收起/展开过渡动画平滑,按钮中心位置保持不变 - 仅在 AI 插件安装后显示浮动按钮 --- .../components/AIAssistant/float-button.vue | 261 ++++++++++++++---- 1 file changed, 213 insertions(+), 48 deletions(-) diff --git a/resources/assets/js/components/AIAssistant/float-button.vue b/resources/assets/js/components/AIAssistant/float-button.vue index 8fdbf0df5..30b307959 100644 --- a/resources/assets/js/components/AIAssistant/float-button.vue +++ b/resources/assets/js/components/AIAssistant/float-button.vue @@ -2,18 +2,28 @@
- - - + class="ai-float-button-wrapper" + :class="wrapperClass" + :style="wrapperStyle" + @mouseenter="onMouseEnter" + @mouseleave="onMouseLeave"> +
+ + + + +