fix: 优化文件上传对话框布局
- 调整顶部导航按钮位置 - 隐藏对话框默认关闭按钮 - 优化文件上传流程交互 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -863,15 +863,12 @@ const deleteDocument = async (docId: string) => {
|
|||||||
width="calc(100vw - 40px)"
|
width="calc(100vw - 40px)"
|
||||||
top="20px"
|
top="20px"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
|
:show-close="false"
|
||||||
class="kb-dialog file-upload-dialog"
|
class="kb-dialog file-upload-dialog"
|
||||||
>
|
>
|
||||||
<div class="file-upload-layout">
|
<div class="file-upload-layout">
|
||||||
<!-- 顶部导航 -->
|
<!-- 顶部导航 -->
|
||||||
<div class="file-header">
|
<div class="file-header">
|
||||||
<button class="back-btn" @click="showFileUploadDialog = false">
|
|
||||||
<i class="fa-solid fa-arrow-left"></i>
|
|
||||||
</button>
|
|
||||||
<h2 class="file-title">{{ selectedKnowledge?.name || 'Knowledge Base' }}</h2>
|
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
ref="fileInput"
|
ref="fileInput"
|
||||||
@@ -883,6 +880,10 @@ const deleteDocument = async (docId: string) => {
|
|||||||
<i class="fa-solid fa-upload"></i>
|
<i class="fa-solid fa-upload"></i>
|
||||||
Upload
|
Upload
|
||||||
</button>
|
</button>
|
||||||
|
<h2 class="file-title">{{ selectedKnowledge?.name || 'Knowledge Base' }}</h2>
|
||||||
|
<button class="back-btn" @click="showFileUploadDialog = false">
|
||||||
|
<i class="fa-solid fa-xmark"></i>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 标签栏 -->
|
<!-- 标签栏 -->
|
||||||
|
|||||||
@@ -645,6 +645,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.file-title {
|
.file-title {
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
|||||||
Reference in New Issue
Block a user