feat(knowledge): 新增知识库表单组件并优化相关功能- 新增知识库表单组件,用于创建和编辑知识库- 优化知识库列表和详情页面的样式和布局

- 添加新的 SCSS 文件以定义表单标签和单选框样式
- 修改按钮和输入框的样式,增加激活和焦点状态
- 更新 RenderDialog 组件,支持自定义宽度和销毁选项
-调整 RenderTable 组件,移除条纹样式
This commit is contained in:
陈昱达
2025-04-23 18:20:02 +08:00
parent f10085fdde
commit 6ef9349b44
11 changed files with 162 additions and 65 deletions

View File

@@ -1,5 +1,5 @@
<template>
<el-dialog :visible.sync="visible" :title="title" :append-to-body="appendToBody">
<el-dialog :visible.sync="visible" :title="title" :append-to-body="appendToBody" :destroy-on-close="destroyOnClose" :width="width">
<div class="render-dialog-body">
<slot name="default"></slot>
</div>
@@ -18,10 +18,18 @@ export default {
return {}
},
props: {
width: {
type: String,
default: '30%'
},
appendToBody: {
type: Boolean,
default: false
},
destroyOnClose: {
type: Boolean,
default: false
},
visible: {
type: Boolean,
default: false

View File

@@ -9,7 +9,6 @@
@sort-change="sortChange"
ref="renderTable"
:border="border"
stripe
:header-align="align"
size="small"
default-expand-all