feat(knowledge): 实现知识库上传功能并优化相关页面

- 新增上传到知识库的 API 接口和相关页面组件- 实现分段查看页面功能
- 优化文档详情页面布局和样式
- 调整知识库创建流程,支持直接上传至知识库
This commit is contained in:
陈昱达
2025-04-22 19:49:42 +08:00
parent 5637496340
commit 26e7ccac12
11 changed files with 125 additions and 37 deletions

View File

@@ -1,9 +1,7 @@
<template>
<el-dialog :visible.sync="visible" :title="title">
<div slot="default">
<div class="render-dialog-body">
<slot></slot>
</div>
<el-dialog :visible.sync="visible" :title="title" :append-to-body="appendToBody">
<div class="render-dialog-body">
<slot name="default"></slot>
</div>
<div slot="footer">
<slot name="footer">
@@ -20,6 +18,10 @@ export default {
return {}
},
props: {
appendToBody: {
type: Boolean,
default: false
},
visible: {
type: Boolean,
default: false