feat: 优化知识库分块操作区与滚动导航
- 将向量化操作上移到分块预览前的统一操作区 - 增加页顶页末双气泡并完善边界禁用状态
This commit is contained in:
@@ -51,6 +51,8 @@
|
||||
"submitPublishApproval": "Submit Publish Approval",
|
||||
"viewSegmentation": "View Segments",
|
||||
"continueProcess": "Continue",
|
||||
"backToTop": "Back to top",
|
||||
"goToBottom": "Go to bottom",
|
||||
"startIndex": "Start Indexing",
|
||||
"retryParse": "Retry Parse",
|
||||
"retryIndex": "Retry Index"
|
||||
|
||||
@@ -51,6 +51,8 @@
|
||||
"submitPublishApproval": "提交发布审批",
|
||||
"viewSegmentation": "查看分段",
|
||||
"continueProcess": "继续处理",
|
||||
"backToTop": "回到页顶",
|
||||
"goToBottom": "到达页末",
|
||||
"startIndex": "开始向量化",
|
||||
"retryParse": "重试解析",
|
||||
"retryIndex": "重试向量化"
|
||||
|
||||
@@ -432,19 +432,7 @@ watch(
|
||||
</div>
|
||||
</ElForm>
|
||||
|
||||
<section class="workbench__content">
|
||||
<SplitterDocPreview
|
||||
:loading="previewLoading"
|
||||
:preview-items="previewItems"
|
||||
@preview-session-change="handlePreviewSessionChange"
|
||||
/>
|
||||
</section>
|
||||
|
||||
<div v-if="previewError" class="workbench__error">
|
||||
{{ previewError }}
|
||||
</div>
|
||||
|
||||
<div class="workbench__footer">
|
||||
<div class="workbench__actions">
|
||||
<ElButton :disabled="startLoading" @click="handleCancel">
|
||||
{{ $t('button.cancel') }}
|
||||
</ElButton>
|
||||
@@ -457,6 +445,18 @@ watch(
|
||||
{{ $t('button.startIndex') }}
|
||||
</ElButton>
|
||||
</div>
|
||||
|
||||
<section class="workbench__content">
|
||||
<SplitterDocPreview
|
||||
:loading="previewLoading"
|
||||
:preview-items="previewItems"
|
||||
@preview-session-change="handlePreviewSessionChange"
|
||||
/>
|
||||
</section>
|
||||
|
||||
<div v-if="previewError" class="workbench__error">
|
||||
{{ previewError }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -484,6 +484,15 @@ watch(
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.workbench__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
justify-content: flex-end;
|
||||
padding-bottom: 16px;
|
||||
border-bottom: 1px solid var(--el-border-color-lighter);
|
||||
}
|
||||
|
||||
.workbench__content {
|
||||
min-height: 620px;
|
||||
}
|
||||
@@ -500,22 +509,6 @@ watch(
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.workbench__footer {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
padding: 16px 0 8px;
|
||||
margin-top: auto;
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
rgb(246 248 251 / 0%) 0%,
|
||||
rgb(246 248 251 / 82%) 30%,
|
||||
rgb(246 248 251 / 100%) 100%
|
||||
);
|
||||
}
|
||||
|
||||
:deep(.el-form-item__label) {
|
||||
padding-bottom: 6px;
|
||||
font-size: 13px;
|
||||
|
||||
Reference in New Issue
Block a user