feat: Enhance KnowledgeBaseEditorModal and KnowledgeBaseList with tdesign icons and improved styles
- Replaced emoji icons with tdesign icons in KnowledgeBaseEditorModal for consistency. - Updated button in KnowledgeBaseList to include an icon and improved layout. - Adjusted styles for navigation items and buttons for better alignment and visual appeal. - Added new sections for TenantInfo and ApiInfo in Settings.vue to enhance settings organization.
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
:class="['nav-item', { 'active': currentSection === item.key }]"
|
||||
@click="currentSection = item.key"
|
||||
>
|
||||
<span class="nav-icon">{{ item.icon }}</span>
|
||||
<t-icon :name="item.icon" class="nav-icon" />
|
||||
<span class="nav-label">{{ item.label }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -143,10 +143,10 @@ const allModels = ref<any[]>([])
|
||||
const hasFiles = ref(false)
|
||||
|
||||
const navItems = [
|
||||
{ key: 'basic', icon: 'ℹ️', label: '基本信息' },
|
||||
{ key: 'models', icon: '🤖', label: '模型配置' },
|
||||
{ key: 'chunking', icon: '📄', label: '分块设置' },
|
||||
{ key: 'advanced', icon: '⚙️', label: '高级设置' }
|
||||
{ key: 'basic', icon: 'info-circle', label: '基本信息' },
|
||||
{ key: 'models', icon: 'control-platform', label: '模型配置' },
|
||||
{ key: 'chunking', icon: 'file-copy', label: '分块设置' },
|
||||
{ key: 'advanced', icon: 'setting', label: '高级设置' }
|
||||
]
|
||||
|
||||
// 模型配置引用
|
||||
@@ -638,7 +638,11 @@ watch(() => props.visible, async (newVal) => {
|
||||
|
||||
.nav-icon {
|
||||
margin-right: 8px;
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.nav-label {
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
<!-- 头部 -->
|
||||
<div class="header">
|
||||
<h2>知识库</h2>
|
||||
<button class="create-btn" @click="openCreateModal">新建知识库</button>
|
||||
<button class="create-btn" @click="openCreateModal">
|
||||
<t-icon name="add" size="16px" class="btn-icon" />
|
||||
<span>新建知识库</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- 未初始化知识库提示 -->
|
||||
@@ -274,12 +277,15 @@ const handleKBEditorSuccess = (kbId: string) => {
|
||||
}
|
||||
|
||||
.create-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 8px 20px;
|
||||
height: 36px;
|
||||
background: #07c05f;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
border-radius: 8px;
|
||||
font-family: "PingFang SC";
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
@@ -293,6 +299,10 @@ const handleKBEditorSuccess = (kbId: string) => {
|
||||
&:active {
|
||||
background: #048f45;
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.warning-banner {
|
||||
|
||||
Reference in New Issue
Block a user