feat: enhance document summary functionality with expandable/collapsible feature and overflow detection, improving user interaction

This commit is contained in:
wizardchen
2026-04-11 14:05:56 +08:00
committed by lyingbug
parent 98ff0761ed
commit 1a4b7b390d
9 changed files with 83 additions and 11 deletions
@@ -292,6 +292,7 @@ import { createKnowledgeBase, getKnowledgeBaseById, listKnowledgeFiles, updateKn
import { updateKBConfig, type KBModelConfigRequest } from '@/api/initialization'
import { listModels } from '@/api/model'
import { useUIStore } from '@/stores/ui'
import { useAuthStore } from '@/stores/auth'
import KBModelConfig from './settings/KBModelConfig.vue'
import KBParserSettings from './settings/KBParserSettings.vue'
import KBStorageSettings from './settings/KBStorageSettings.vue'
@@ -304,6 +305,7 @@ import DataSourceSettings from './settings/DataSourceSettings.vue'
import { useI18n } from 'vue-i18n'
const uiStore = useUIStore()
const authStore = useAuthStore()
const { t } = useI18n()
// Props
@@ -349,7 +351,7 @@ const navItems = computed(() => {
items.push({ key: 'datasource', icon: 'cloud-download', label: t('knowledgeEditor.sidebar.datasource'), badge: dsCount.value || undefined })
}
}
if (props.mode === 'edit' && props.kbId) {
if (props.mode === 'edit' && props.kbId && !authStore.isLiteMode) {
items.push({ key: 'share', icon: 'share', label: t('knowledgeEditor.sidebar.share') })
}
return items