From 01a4f6341f6fe4806f45cf7a4c7b3bc450a6a0e0 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 07 五月 2026 16:08:53 +0800
Subject: [PATCH] feat(AIChatSidebar): 添加文件上传预览和消息中文件显示功能

---
 src/components/Dialog/FormDialog.vue |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/src/components/Dialog/FormDialog.vue b/src/components/Dialog/FormDialog.vue
index 1425b6d..8b657de 100644
--- a/src/components/Dialog/FormDialog.vue
+++ b/src/components/Dialog/FormDialog.vue
@@ -8,14 +8,18 @@
     <slot></slot>
     <template #footer>
       <div class="dialog-footer">
-        <el-button
-          v-if="showConfirm"
-          type="primary"
-          @click="handleConfirm"
-        >
-          纭
-        </el-button>
-        <el-button @click="handleCancel">鍙栨秷</el-button>
+        <!-- 鑷畾涔夋寜閽彃妲� -->
+        <slot name="footer">
+          <!-- 榛樿鎸夐挳 -->
+          <el-button
+            v-if="showConfirm"
+            type="primary"
+            @click="handleConfirm"
+          >
+            纭
+          </el-button>
+          <el-button @click="handleCancel">鍙栨秷</el-button>
+        </slot>
       </div>
     </template>
   </el-dialog>

--
Gitblit v1.9.3