From 4388868619279d9606f77d55024aff99c3f8e8a3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 23 Jul 2026 13:28:17 +0800 Subject: [PATCH] feat: add drag-drop upload zone to kb detail right panel --- wwwroot/knowledge_bases_list/detail.ui | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/wwwroot/knowledge_bases_list/detail.ui b/wwwroot/knowledge_bases_list/detail.ui index b9501d8..39f57a4 100644 --- a/wwwroot/knowledge_bases_list/detail.ui +++ b/wwwroot/knowledge_bases_list/detail.ui @@ -55,7 +55,28 @@ "widgettype": "VBox", "options": {"id": "detail_content", "css": "filler", "padding": "16px", "spacing": "12px"}, "subwidgets": [ - {"widgettype": "Text", "options": {"text": "📂 请选择左侧目录查看文件", "cfontsize": 14, "color": "#888"}} + {"widgettype": "Text", "options": {"text": "📂 请选择左侧目录查看文件", "cfontsize": 14, "color": "#888"}}, + { + "widgettype": "VBox", + "options": { + "id": "upload_dropzone", + "width": "100%", + "cheight": 10, + "bgcolor": "#f8f9fa", + "padding": "24px", + "css": "card", + "border": "2px dashed #d0d0d0", + "alignItems": "center", + "justifyContent": "center", + "marginTop": "16px" + }, + "subwidgets": [ + {"widgettype": "Text", "options": {"text": "📂", "cfontsize": 32}}, + {"widgettype": "Text", "options": {"text": "拖拽文件到此处上传", "cfontsize": 16, "color": "#888"}}, + {"widgettype": "Text", "options": {"text": "支持: TXT, PDF, JPG, PNG, MP3, WAV, MP4, AVI", "cfontsize": 12, "color": "#aaa"}}, + {"widgettype": "Text", "options": {"text": "单个文件最大 500MB · 自动向量化入库", "cfontsize": 12, "color": "#aaa"}} + ] + } ] } ]